/* F PIERCE INTERMODAL LLC
   Houston dock ledger — ink on warm paper.
   Not the six-block carrier template. */

:root {
  --paper: #fffaf3;
  --paper-2: #f1e6d4;
  --ink: #1c2430;
  --mute: #5c564c;
  --line: #d9cbb6;
  --brand: #c45c26;
  --brand-2: #9a3f14;
  --ok: #2f6b4f;
  --err: #b33b2e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --max: 1120px;
  --gutter: 28px;
  --dock: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
[id] { scroll-margin-top: 88px; }
body, h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
  padding-bottom: var(--dock);
}

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 80;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip:focus { top: 10px; }

.shell { width: min(var(--max), 100% - (var(--gutter) * 2)); margin-inline: auto; }

/* Masthead — city running head, not sticky glass bar */
.mast {
  border-bottom: 1px solid var(--ink);
  padding: 14px var(--gutter) 18px;
}
.mast-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.mast-city {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
}
.wordmark {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1;
}
.wordmark small {
  display: block; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand);
  margin-top: 6px;
}
.menu-btn {
  display: none; background: none; border: 1px solid var(--ink);
  padding: 8px 14px; cursor: pointer; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.75rem;
}
.nav {
  display: flex; gap: 22px; align-items: center;
  font-size: 0.92rem;
}
.nav a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand-2); }

/* Home stage */
.stage { padding: 56px 0 24px; }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.stage h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.95;
  letter-spacing: -0.03em; max-width: 14ch;
}
.standfirst {
  margin-top: 22px; max-width: 38rem; color: var(--mute); font-size: 1.08rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 28px;
}
.hero-actions .go { margin-top: 0; }

.collage {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px;
  margin-top: 48px; align-items: end;
}
.shot {
  position: relative; overflow: hidden; background: var(--paper-2);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-a { min-height: 420px; }
.shot-a img { aspect-ratio: 16 / 10; object-position: 80% 40%; }
.shot-b {
  min-height: 280px; transform: translateY(-28px);
  box-shadow: 12px 12px 0 var(--ink);
}
.shot-b img { aspect-ratio: 3 / 4; object-position: 50% 20%; }
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--paper); color: var(--ink);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px;
}

/* Ledger — identifiers as a bill, not four stat tiles */
.ledger {
  border-block: 1px solid var(--ink);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.ledger div { padding: 22px 16px; border-right: 1px solid var(--line); }
.ledger div:last-child { border-right: 0; }
.ledger dt {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 6px;
}
.ledger dd { font-family: var(--serif); font-size: 1.25rem; }

.who {
  display: grid; grid-template-columns: 1fr 0.9fr; gap: 56px;
  padding: 72px 0; align-items: start;
}
.who h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; letter-spacing: -0.02em; margin-bottom: 16px;
}
.who p + p { margin-top: 14px; }
.who .quiet { color: var(--mute); margin-top: 18px; }
.who .shot { min-height: 360px; }
.who .shot img { aspect-ratio: 4 / 5; object-position: 30% 40%; }

.lanes { padding: 8px 0 72px; }
.lanes h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; margin-bottom: 8px;
}
.lanes .note { color: var(--mute); max-width: 40rem; margin-bottom: 32px; }
.cap-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.cap {
  border: 1px solid var(--ink); padding: 28px 24px;
  background: var(--paper);
}
.cap h3 { font-size: 1.2rem; margin-bottom: 10px; }
.cap p { color: var(--mute); }
.lane-row { display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: start; }
.lane-row + .lane-row { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.lane-num {
  font-family: var(--serif); font-size: 2.4rem; color: var(--brand); line-height: 1;
}
.lane-row h3 { font-size: 1.15rem; margin-bottom: 6px; }
.lane-row p { color: var(--mute); max-width: 42rem; }

.hiring { padding: 0 0 72px; }
.hiring h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; margin-bottom: 18px;
}
.hiring .note { color: var(--mute); max-width: 42rem; margin-top: 20px; }
.role {
  border: 1px solid var(--ink);
  display: grid; grid-template-columns: 1fr 1fr;
}
.role div {
  display: grid; grid-template-columns: 140px 1fr;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.role div:nth-child(even) { border-right: 0; }
.role div:nth-last-child(-n+2) { border-bottom: 0; }
.role dt, .role dd { padding: 14px 16px; }
.role dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute);
}
.role dd { font-family: var(--serif); font-size: 1.2rem; }

.reach {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 0 0 28px; max-width: 640px;
  border-top: 1px solid #6b645a;
}
.reach div { padding: 16px 0; border-bottom: 1px solid #6b645a; }
.reach dt {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #c9c1b4; margin-bottom: 6px;
}
.reach dd { font-family: var(--serif); font-size: 1.15rem; }

/* Inverted dispatch slab */
.slab {
  background: var(--ink); color: var(--paper);
  padding: 56px 0 64px;
}
.slab h2 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; margin-bottom: 10px;
}
.slab .lede { color: #c9c1b4; max-width: 36rem; margin-bottom: 28px; }
.slab .eyebrow { color: #f0c4a8; }
.slab a { color: #f0c4a8; text-decoration: underline; text-underline-offset: 3px; }
.slab a:hover { color: #fff; }

.form {
  display: grid; gap: 14px;
  max-width: 640px;
}
.stack { display: grid; gap: 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute);
}
.slab label { color: #c9c1b4; }
input, select, textarea {
  width: 100%; border: 0; border-bottom: 1px solid currentColor;
  background: transparent; color: inherit; padding: 10px 0;
  border-radius: 0;
}
.paper-form input,
.paper-form select,
.paper-form textarea { color: var(--ink); border-bottom-color: var(--ink); }
.slab input,
.slab select,
.slab textarea { color: var(--paper); border-bottom-color: #6b645a; }
input::placeholder, textarea::placeholder { color: #8a8378; }
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.go {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px; padding: 14px 22px; cursor: pointer;
  background: var(--brand); color: #fff; border: 0;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.go:hover { background: var(--brand-2); }
.go-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.go-ghost:hover { background: var(--ink); color: var(--paper); }
.slab .go-ghost { color: var(--paper); border-color: #c9c1b4; }
.slab .go-ghost:hover { background: var(--paper); color: var(--ink); }

.status { font-size: 0.95rem; color: #c9c1b4; }
.status[data-state="ok"] { color: #8fcaad; }
.status[data-state="err"] { color: #f0a090; }
.hint { font-size: 0.9rem; color: #c9c1b4; }

.drive-strip {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line);
}
.drive-strip p { max-width: 36rem; color: var(--mute); }

.colophon {
  padding: 40px var(--gutter) 48px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
  font-size: 0.92rem; color: var(--mute);
}
.colophon strong {
  display: block; color: var(--ink); font-family: var(--serif);
  font-size: 1.2rem; font-weight: 400; margin-bottom: 8px;
}
.colophon a:hover { color: var(--brand); }
.tiny { margin-top: 28px; font-size: 0.78rem; grid-column: 1 / -1;
  border-top: 1px solid var(--line); padding-top: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.dock {
  display: none;
}

/* Inner pages */
.leaf { padding: 48px 0 72px; }
.leaf h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.03em;
  line-height: 0.95; max-width: 16ch;
}
.leaf .lede { margin-top: 18px; max-width: 40rem; color: var(--mute); }
.leaf .role { margin-top: 36px; }

.bill {
  margin-top: 48px; border: 1px solid var(--ink);
}
.bill div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.bill div:last-child { border-bottom: 0; }
.bill dt, .bill dd { padding: 14px 16px; }
.bill dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); background: var(--paper-2);
}

.nums { display: grid; gap: 22px; margin-top: 40px; }
.nums li {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 12px;
  font-size: 1.05rem;
}
.nums b { font-family: var(--serif); font-size: 1.8rem; color: var(--brand); font-weight: 400; }

.paper-form {
  margin-top: 40px; max-width: 640px;
}
.paper-form .hint, .paper-form .status { color: var(--mute); }
.paper-form .status[data-state="ok"] { color: var(--ok); }
.paper-form .status[data-state="err"] { color: var(--err); }

.contact-lead {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 28px 0;
}
.contact-lead a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--brand-2); }

@media (max-width: 960px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger div:nth-child(2n) { border-right: 0; }
  .who, .collage, .cap-grid, .role, .reach { grid-template-columns: 1fr; }
  .role div, .role div:nth-child(even) { border-right: 0; }
  .role div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .role div:last-child { border-bottom: 0; }
  .shot-b { transform: none; }
  .colophon { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; --dock: 76px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding-top: 12px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pair, .lane-row, .bill div, .role div { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .colophon { grid-template-columns: 1fr; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed;
    left: 10px; right: 10px; bottom: 10px; z-index: 40;
    background: var(--ink); color: var(--paper); overflow: hidden;
  }
  .dock a { text-align: center; padding: 14px 8px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .dock a:last-child { background: var(--brand); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
