/* ===================================================================
   Sea Movers Shipping LLC

   Palette is drawn from the ship itself: sea-slate hull, deck steel,
   bone-white superstructure paint, and the brass of fittings and
   instruments. Space Mono carries the telex voice that shipbroking
   still runs on — fixture recaps have looked like teleprinter output
   for fifty years, and the enquiry form leans on that deliberately.

   No framework. Plain CSS, custom properties, one stylesheet.
   =================================================================== */

:root {
  --hull:      #0D1B21;
  --deck:      #15282F;
  --steel:     #1E3A43;
  --bone:      #E6E4DC;
  --bone-2:    #D8D5CA;
  --brass:     #C8952F;
  --brass-lt:  #E0B152;
  --seaglass:  #5FA8A0;

  --ink:       #0D1B21;
  --ink-60:    rgba(13, 27, 33, 0.62);
  --ink-40:    rgba(13, 27, 33, 0.40);
  --paper-70:  rgba(230, 228, 220, 0.70);
  --paper-45:  rgba(230, 228, 220, 0.45);
  --paper-18:  rgba(230, 228, 220, 0.18);

  --display: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Public Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono:    'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brass); color: var(--hull);
  padding: .75rem 1.25rem; font: 700 .75rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .12em; text-decoration: none;
}
.skip:focus { left: 0; }

section[id] { scroll-margin-top: 5rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 860px; }

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.hdr.solid {
  background: rgba(13, 27, 33, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--paper-18);
}
.hdr-in {
  max-width: var(--max); margin: 0 auto; padding: 1.05rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--bone);
}
.brand-mark { width: 26px; height: 26px; color: var(--brass); flex: none; }
.brand-name {
  font: 900 1.02rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .04em;
  display: flex; flex-direction: column; gap: .18rem;
}
.brand-sub {
  font: 400 .58rem/1 var(--mono);
  letter-spacing: .22em; color: var(--paper-45);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font: 500 .78rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--paper-70); text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover { color: var(--bone); }
.nav .nav-cta {
  color: var(--hull); background: var(--brass);
  padding: .72rem 1.15rem; font-weight: 700;
  transition: background .2s ease;
}
.nav .nav-cta:hover { background: var(--brass-lt); color: var(--hull); }

.burger {
  display: none; width: 40px; height: 32px;
  background: none; border: 0; padding: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px;
}
.burger span {
  display: block; height: 2px; width: 100%; background: var(--bone);
  transition: transform .3s ease, opacity .2s ease;
}
body.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.menu-open .burger span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

.mnav {
  display: none; flex-direction: column;
  background: var(--hull); border-top: 1px solid var(--paper-18);
}
.mnav a {
  padding: 1.05rem var(--gut);
  font: 500 .85rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--paper-70); text-decoration: none;
  border-bottom: 1px solid var(--paper-18);
}

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--hull); }

.hero-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}

/* Weighted to the left, where the type sits, so the footage stays open
   on the right rather than being dimmed flat. */
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(13,27,33,.94) 0%, rgba(13,27,33,.72) 38%, rgba(13,27,33,.12) 72%),
    linear-gradient(180deg, rgba(13,27,33,.72) 0%, rgba(13,27,33,0) 26%, rgba(13,27,33,.85) 100%);
}

.hero-in {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 8rem var(--gut) 9rem;
  color: var(--bone);
}

.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font: 400 .72rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .26em;
  color: var(--brass-lt); margin: 0 0 1.6rem;
}
.eyebrow .rule { width: 2.4rem; height: 1px; background: var(--brass); flex: none; }

.hero-h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.9rem, 8.5vw, 6.6rem);
  line-height: .93; letter-spacing: -.025em;
  text-transform: uppercase; margin: 0;
  max-width: 14ch;
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line-in { display: block; }

.hero-sub {
  margin: 2rem 0 0; max-width: 46ch;
  color: var(--paper-70); font-size: 1.06rem; line-height: 1.65;
}

.hero-cta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1.05rem 1.7rem;
  font: 700 .78rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.btn svg { width: 15px; height: 15px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--brass); color: var(--hull); }
.btn-primary:hover { background: var(--brass-lt); }
.btn-ghost { border-color: var(--paper-18); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }

/* Telex status strip */
.telex {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--paper-18);
  background: rgba(13, 27, 33, 0.72);
  backdrop-filter: blur(6px);
}
.telex-in {
  max-width: var(--max); margin: 0 auto; padding: .95rem var(--gut);
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  font: 400 .7rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--paper-45);
}
.telex strong { color: var(--bone); font-weight: 700; }
.telex-sep { color: var(--brass); }
.telex-dot {
  width: 7px; height: 7px; background: var(--seaglass); flex: none;
  border-radius: 50%; animation: blip 2.6s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* -------------------------------------------------------------
   Sections
   ------------------------------------------------------------- */
.sec { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.sec-bone { background: var(--bone); color: var(--ink); }
.sec-deck { background: var(--deck); color: var(--bone); }
.sec-hull { background: var(--hull); color: var(--bone); }

.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.kicker {
  font: 400 .72rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .26em;
  color: var(--ink-40); margin: 0 0 1.1rem;
}
.kicker-brass { color: var(--brass); }

.h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.02; letter-spacing: -.02em;
  text-transform: uppercase; margin: 0;
}
.h2-light { color: var(--bone); }

/* Services */
.grid-6 {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  background: rgba(13, 27, 33, 0.14);
  border: 1px solid rgba(13, 27, 33, 0.14);
}
.card {
  background: var(--bone); padding: 2rem 1.75rem 2.2rem;
  transition: background .25s ease;
}
.card:hover { background: var(--bone-2); }
.card h3 {
  font: 700 1.06rem/1.2 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  margin: 0 0 .85rem;
}
.card p { margin: 0; color: var(--ink-60); font-size: .95rem; line-height: 1.62; }

/* Fixture steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li {
  display: grid; grid-template-columns: 5.5rem 1fr;
  column-gap: 1.5rem; row-gap: .6rem;
  padding: 2rem 0; border-top: 1px solid var(--paper-18);
}
.steps li:last-child { border-bottom: 1px solid var(--paper-18); }
/* Three children in a two-column grid: without this the paragraph
   auto-places onto row 2 column 1 and wraps inside the 5.5rem number
   column. Both the heading and the body belong in the wide column. */
.steps h3,
.steps p { grid-column: 2; }
.step-n {
  grid-column: 1; grid-row: 1;
  font: 700 .95rem/1 var(--mono);
  color: var(--brass); letter-spacing: .1em; padding-top: .35rem;
}
.steps h3 {
  font: 700 1.15rem/1.25 var(--display);
  text-transform: uppercase; margin: 0 0 .6rem; color: var(--bone);
}
.steps p { margin: 0; color: var(--paper-70); font-size: .97rem; max-width: 62ch; }

/* Trades */
.trades {
  list-style: none; margin: 0 0 2.75rem; padding: 0;
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  background: rgba(13, 27, 33, 0.14);
  border: 1px solid rgba(13, 27, 33, 0.14);
}
.trades li {
  background: var(--bone); padding: 1.35rem 1.5rem;
  font: 500 .82rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .12em;
}
.cargo-note { border-left: 3px solid var(--brass); padding-left: 1.5rem; max-width: 62ch; }
.cargo-note p { margin: 0; color: var(--ink-60); }
.cargo-note strong { color: var(--ink); }

/* -------------------------------------------------------------
   Enquiry — the fixture recap
   ------------------------------------------------------------- */
.recap { border: 1px solid var(--paper-18); background: rgba(30, 58, 67, 0.28); }

.recap-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.4rem;
  border-bottom: 1px solid var(--paper-18);
  background: rgba(13, 27, 33, 0.5);
  font: 700 .68rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--brass);
}
.recap-ref { color: var(--paper-45); font-weight: 400; }

.recap-body { padding: clamp(1.4rem, 3.5vw, 2.4rem); display: grid; gap: 1.5rem; }

.fld-row { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; }

.fld { display: grid; gap: .55rem; }
.fld label {
  font: 400 .68rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--paper-45);
  display: flex; align-items: baseline; gap: .6rem;
}
.req {
  font-size: .58rem; letter-spacing: .14em;
  color: var(--brass); text-transform: uppercase;
}

/* Hairline fields rather than boxed inputs — a recap is typed onto a
   ruled sheet, not filled into a web form. */
.fld input,
.fld select,
.fld textarea {
  width: 100%; background: transparent; color: var(--bone);
  border: 0; border-bottom: 1px solid var(--paper-18);
  padding: .6rem 0; font: 400 1rem/1.5 var(--body);
  border-radius: 0; transition: border-color .2s ease;
}
.fld textarea { resize: vertical; min-height: 6.5rem; }
.fld select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
                    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 12px) 1.15rem, calc(100% - 7px) 1.15rem;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.8rem;
}
.fld select option { background: var(--deck); color: var(--bone); }
.fld input::placeholder,
.fld textarea::placeholder { color: rgba(230, 228, 220, 0.28); }
.fld input:focus,
.fld select:focus,
.fld textarea:focus { outline: none; border-bottom-color: var(--brass); }
.fld input:focus-visible,
.fld select:focus-visible,
.fld textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.fld.invalid input,
.fld.invalid textarea,
.fld.invalid select { border-bottom-color: #E0685A; }
.fld-err {
  font: 400 .7rem/1.4 var(--mono);
  color: #E0685A; letter-spacing: .06em;
}

.recap-rule { height: 1px; background: var(--paper-18); }

/* Honeypot: off-screen, never shown, never focusable. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin: 0; font: 400 .82rem/1.5 var(--mono); color: #E0685A; }
.form-msg:empty { display: none; }

.recap-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  padding-top: .5rem;
}
.foot-note { margin: 0; font-size: .82rem; color: var(--paper-45); max-width: 34ch; }

button[disabled] { opacity: .55; cursor: progress; }

/* Success state */
.sent { border: 1px solid var(--brass); padding: clamp(2rem, 5vw, 3.25rem); }
.sent-tag {
  font: 700 .7rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .3em;
  color: var(--brass); margin: 0 0 1.3rem;
}
.sent h3 {
  font: 900 clamp(1.4rem, 3vw, 2rem)/1.15 var(--display);
  text-transform: uppercase; margin: 0 0 1rem; color: var(--bone);
}
.sent-body { margin: 0 0 1.6rem; color: var(--paper-70); max-width: 48ch; }
.sent-ref {
  margin: 0; font: 400 .78rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .16em; color: var(--paper-45);
}
.sent-ref strong { color: var(--brass); }

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.ftr { background: #081319; color: var(--paper-45); padding: 3rem 0; }
.ftr-in { display: grid; gap: .6rem; }
.ftr-brand {
  margin: 0; font: 900 1rem/1 var(--display);
  text-transform: uppercase; letter-spacing: .04em; color: var(--bone);
}
.ftr-meta, .ftr-copy {
  margin: 0; font: 400 .72rem/1.6 var(--mono);
  text-transform: uppercase; letter-spacing: .14em;
}
.ftr-copy { margin-top: .8rem; }

/* -------------------------------------------------------------
   Load-in. One orchestrated moment, on the hero only.
   ------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1) var(--d, 0s),
              transform .8s cubic-bezier(.2,.7,.3,1) var(--d, 0s);
}
.hero-h1 .line-in.reveal { transform: translateY(105%); }
body.ready .reveal { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: flex; }
  body.menu-open .mnav { display: flex; }
  .telex-hide { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .fld-row { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: .5rem; }
  /* Single column now, so release the explicit placement above. */
  .steps h3,
  .steps p,
  .step-n { grid-column: 1; }
  .step-n { grid-row: auto; padding-top: 0; }
  .hero-in { padding: 7rem var(--gut) 8.5rem; }
}

/* -------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-h1 .line-in.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .telex-dot { animation: none; }
  .btn svg { transition: none; }
}
