/* U.S. Grain Storage Systems: a galvanized-grey page, one serif, the company's own photographs at full size.
   Direction "The place carries it" (see .taste-skill/notes.md). */

/* Erode by Indian Type Foundry, self-hosted from Fontshare (ITF Free Font License). */
@font-face { font-family: "Erode"; src: url("/fonts/erode-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Erode"; src: url("/fonts/erode-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Erode"; src: url("/fonts/erode-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Georgia tuned to Erode's size, so text doesn't jump when Erode arrives. */
@font-face { font-family: "Erode Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --bg: #a8a8aa;          /* galvanized steel */
  --surface: #b4b4b6;
  --surface-2: #9c9c9f;
  --ink: #0e0e0e;
  --muted: #2f2f31;
  --accent: #1d4f91;      /* the blue of their bin jacks */
  --accent-press: #163d70;
  --accent-ink: #ffffff;
  --field-1: #1b1b1c;
  --field-1-ink: #ffffff;
  --field-1-soft: #c9c9cc;
  --paper: #f1f1f2;

  --font: "Erode", "Erode Fallback", Georgia, serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-sub: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 5rem);
  --step-giant: clamp(3rem, 1rem + 8vw, 8.125rem);

  --m: clamp(16px, 2.2vw, 32px);   /* the page's one pair of outer margins */
  --gap: clamp(120px, 14vw, 200px); /* between sections */
  --rail: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rail) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--font); font-kerning: normal; position: relative; }
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; text-wrap: balance; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { padding-left: var(--m); padding-right: var(--m); }
.h1 { font-size: var(--step-head); }
.h2 { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.prose p + p, .lead p + p { margin-top: 0.8em; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-thickness 0.2s var(--ease); }
.link:hover { text-decoration-thickness: 3px; }

/* buttons: flat, square corners, one fill */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); font: 600 var(--step-body)/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.btn:hover { background: var(--accent-press); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { min-height: 42px; padding: 0 16px; }
.btn-block { display: flex; width: 100%; }

/* ---------- the photographs behind the top of the home page ---------- */
.hero-media { position: absolute; inset: 0 0 auto 0; height: 200svh; z-index: 0; overflow: hidden; }
.hero-media figure { margin: 0; position: absolute; left: 0; width: 100%; height: 100svh; overflow: hidden; background: var(--field-1); }
.hero-a { top: 0; }
.hero-b { top: 100svh; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-a img { object-position: 50% 62%; }
.hero-b img.detail { object-position: 57% 30%; transform: scale(1.9); transform-origin: 58% 30%; }
.rail-gap { height: calc(50svh - var(--rail) / 2); }
.hero-gap { height: calc(150svh - var(--rail) / 2); position: relative; z-index: 1; pointer-events: none; }
.hero-corner { display: none; }

/* ---------- the rail: name, sentence, links and the one action on one line ---------- */
.rail { position: sticky; top: 0; z-index: 20; height: var(--rail); background: var(--bg); color: var(--ink); transition: background 0.35s var(--ease), color 0.35s var(--ease); }
.rail.on-photo { background: rgba(14, 14, 14, 0.42); color: var(--paper); }
.rail.on-photo.docked { background: var(--bg); color: var(--ink); }
.rail-in { height: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px; padding: 0 var(--m); }
.rail-name { font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.025em; line-height: 1; white-space: nowrap; margin: 0; }
.rail-name a { text-decoration: none; }
.rail-line { font-size: var(--step-body); line-height: 1.2; max-width: 34ch; justify-self: start; }
.rail-nav { display: flex; gap: 22px; font-size: var(--step-body); }
.rail-nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.25s var(--ease); }
.rail-nav a:hover, .rail-nav a[aria-current="page"] { background-size: 100% 2px; }
.rail-act[aria-current="page"] { background: var(--ink); color: var(--paper); }
.rail-menu { display: none; position: relative; }
.rail-call { display: none; text-decoration: none; font-size: var(--step-body); padding: 10px 14px; background: var(--accent); color: var(--accent-ink); }
.rail-call:hover { background: var(--accent-press); }
.rail-menu summary { list-style: none; cursor: pointer; font-size: var(--step-body); padding: 10px 0 10px 12px; }
.rail-menu summary::-webkit-details-marker { display: none; }
.rail-menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; background: var(--paper); color: var(--ink); padding: 10px 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); display: grid; }
.rail-menu nav a { padding: 12px 20px; text-decoration: none; font-size: var(--step-body); }
.rail-menu nav a:hover, .rail-menu nav a[aria-current="page"] { background: var(--surface); }
body:not(.page-home) .rail-in { grid-template-columns: 1fr auto auto auto; }

main { position: relative; z-index: 1; }
.page-home main { padding-top: 0; }
.preview-bar { position: relative; z-index: 2; background: var(--ink); color: var(--paper); padding: 12px var(--m); }
.closure { background: var(--paper); padding: 14px var(--m); font-size: var(--step-body); }
main > .closure { margin: 24px var(--m) 0; }

/* ---------- page headers on inner pages ---------- */
.phead { padding-top: clamp(72px, 10vw, 150px); padding-bottom: clamp(48px, 6vw, 96px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; align-items: end; }
.phead .h1 { grid-column: 1 / span 7; }
.phead-intro { grid-column: 8 / span 5; }
.contact .phead-intro { margin-top: 20px; }

/* ---------- services: rows hanging from one axis, a photo or drawing in the right margin ---------- */
.feat { margin-top: var(--gap); }
.page-home .feat { margin-top: 0; padding-top: var(--gap); }
.feat-open { min-height: 62svh; display: grid; align-content: center; gap: 28px; padding-left: 35%; }
.feat-open .h2 { max-width: 13ch; }
.rows { display: grid; gap: clamp(96px, 9vw, 120px); padding-left: 35%; }
.feat-page { margin-top: 0; }
.feat-page .rows { padding-left: 35%; }
.row { display: grid; grid-template-columns: minmax(0, 34ch) 1fr; gap: 32px; align-items: start; }
.row-title { font-size: var(--step-sub); margin-bottom: 18px; }
.row-text p { max-width: 34ch; }
.terms { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.terms li { background: var(--surface); padding: 6px 12px; font-size: var(--step-small); }
.row-fig { margin: 0; justify-self: end; overflow: hidden; background: var(--surface-2); }
.row-fig img, .row-fig svg { width: 100%; height: 100%; object-fit: cover; }
.row-fig.tall { width: clamp(220px, 21vw, 320px); aspect-ratio: 4 / 5; }
.row-fig.wide { width: clamp(280px, 30vw, 460px); aspect-ratio: 3 / 2; }
.row-fig.square { width: clamp(180px, 17vw, 260px); aspect-ratio: 1; }
.row-fig.drawn svg { width: 100%; height: 100%; }
.d-bg { fill: #c4c4c6; }
.d-soil { fill: #6b6a66; }
.d-conc { fill: #8e8d89; }
.d-steel { fill: #e3e3e5; }
.d-steel-d { fill: #8a8a8e; }
.d-grain { fill: #c9a24a; }
.d-ink { fill: var(--ink); }
.d-accent { fill: var(--accent); }
.d-line { stroke: var(--ink); stroke-width: 6; }
.feat-more { padding-left: 35%; margin-top: 72px; font-size: var(--step-lead); }

/* ---------- bin jacking: one frame, three distances ---------- */
.jack { position: relative; height: 300vh; margin-top: var(--gap); }
.jack-stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.jack-h { position: absolute; inset: 0; pointer-events: none; font-size: var(--step-giant); text-align: center; line-height: 0.95; }
.jack-a { position: absolute; left: 0; right: 0; top: calc(50svh - 37.5vw / 2 - 1.05em); }
.jack-b { position: absolute; left: 0; right: 0; top: calc(50svh + 37.5vw / 2 + 0.12em); opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); z-index: 2; }
.jack-frame { margin: 0; width: 30vw; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); position: relative; z-index: 1; }
.jack-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); transform-origin: 50% 50%; }
.jack-frame[data-stage="2"] img { transform: scale(1.5); transform-origin: 54% 60%; }
.jack-frame[data-stage="3"] img { transform: scale(2.1); transform-origin: 46% 41%; }
.jack-cap { position: absolute; left: calc(50% + 15vw + 32px); top: calc(50svh - 37.5vw / 2); width: 28ch; opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.jack.s2 .jack-b, .jack.s3 .jack-b { opacity: 1; transform: none; }
.jack.s3 .jack-cap { opacity: 1; transform: none; }
.jack-mark { position: absolute; left: 0; width: 1px; height: 1px; }
.jack-mark[data-to="1"] { top: 0; }
.jack-mark[data-to="2"] { top: 100vh; }
.jack-mark[data-to="3"] { top: 190vh; }
/* Without the script every stage shows at once, in order. */
html:not(.js) .jack { height: auto; }
html:not(.js) .jack-stage { position: static; height: auto; display: block; padding: 0 var(--m); }
html:not(.js) .jack-h { position: static; }
html:not(.js) .jack-a, html:not(.js) .jack-b { position: static; display: block; opacity: 1; transform: none; }
html:not(.js) .jack-frame { margin: 24px auto; }
html:not(.js) .jack-cap { position: static; opacity: 1; transform: none; margin: 0 auto; }

/* ---------- the bin calculator ---------- */
.calc { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.calc-text { grid-column: 1 / span 5; display: grid; gap: 28px; }
.calc-form { display: grid; gap: 22px; margin-top: 12px; }
.calc-field { display: grid; gap: 8px; font-size: var(--step-body); }
.calc-field select { font: inherit; min-height: 48px; padding: 0 14px; background: var(--paper); color: var(--ink); border: 0; max-width: 240px; }
.calc-field output { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.calc-out { font-size: var(--step-lead); line-height: 1.3; }
.calc-num { display: block; font-size: var(--step-head); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-note { font-size: var(--step-small); color: var(--muted); max-width: 44ch; }
.calc-form .btn { justify-self: start; }
.calc-fig { grid-column: 7 / span 6; margin: 0; background: var(--surface); aspect-ratio: 4 / 3; display: grid; grid-template-rows: 1fr auto; padding: 24px 24px 16px; }
.calc-svg { width: 100%; height: 100%; }
.c-ground { fill: #6b6a66; }
.c-body { fill: #e3e3e5; }
.c-roof { fill: #8a8a8e; }
.calc-svg.ready .c-body, .calc-svg.ready .c-roof { transition: all 0.45s var(--ease); }
.c-rings line { stroke: #9c9c9f; stroke-width: 1.4; }
.c-person { fill: var(--ink); }
.calc-cap { font-size: var(--step-small); color: var(--muted); margin-top: 10px; }

/* ---------- about teaser on the home page ---------- */
.about-teaser { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 32px; }
.about-teaser { align-items: center; }
.about-teaser-text { grid-column: 1 / span 6; display: grid; gap: 32px; }
.about-teaser .h2 { max-width: 11ch; }
.about-teaser .about-map { grid-column: 8 / span 5; }
.lead-prose { font-size: var(--step-lead); line-height: 1.4; }
.lead-prose p:last-child { font-size: var(--step-body); margin-top: 1.2em; }

/* ---------- the visit card on a photograph ---------- */
.visit { position: relative; height: 100svh; margin-top: var(--gap); }
.visit-ph { margin: 0; position: absolute; inset: 0; overflow: hidden; background: var(--field-1); }
.visit-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.visit-card { position: absolute; top: 60px; right: 60px; width: 380px; background: var(--paper); padding: 32px 32px 0; display: grid; gap: 18px; }
.visit-h { font-size: var(--step-sub); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.visit-addr { font-size: var(--step-body); }
.visit-rows { margin: 0; display: grid; gap: 8px; font-size: var(--step-body); }
.visit-rows div { display: flex; justify-content: space-between; gap: 16px; }
.visit-rows dt { color: var(--muted); }
.visit-rows dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.visit-card .btn { margin: 8px -32px 0; min-height: 52px; width: auto; }

/* ---------- projects: full panels with one row of text across the middle ---------- */
.panels { display: block; }
.panel { position: relative; height: 100svh; overflow: hidden; background: var(--field-1); }
.panel-ph { margin: 0; position: absolute; inset: 0; }
.panel-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.panel-row { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); min-height: 90px; display: grid; grid-template-columns: 10% 1fr minmax(0, 40ch); align-items: center; gap: 24px; padding: 18px var(--m); background: rgba(14, 14, 14, 0.62); color: var(--paper); }
.panel-year { font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.panel-title { font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1.05; }
.panel-fact { font-size: var(--step-body); justify-self: end; text-align: right; }
.jobs { margin-top: var(--gap); }
.jobs .h2 { margin-bottom: 40px; }
.jobs-table { width: 100%; border-collapse: collapse; font-size: var(--step-body); }
.jobs-table th, .jobs-table td { text-align: left; padding: 16px 16px 16px 0; vertical-align: top; }
.jobs-table thead th { font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.jobs-table tbody tr:nth-child(odd) { background: var(--surface); }
.jobs-table tbody th, .jobs-table tbody td:first-child { padding-left: 16px; }
.jobs-table tbody th { font-weight: 600; white-space: nowrap; }
.jobs-table td:first-child { font-variant-numeric: tabular-nums; width: 6ch; }
.more { margin-top: var(--gap); }
.more .h2 { margin-bottom: 40px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-grid figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.more-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about: wide photo, colour tile, facts ---------- */
.about { padding-top: clamp(72px, 10vw, 150px); }
.about-lead { margin-top: 24px; max-width: 46ch; }
.about-tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 72px; align-items: start; }
.about-ph { grid-column: 1 / span 8; margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.about-ph img { width: 100%; height: 100%; object-fit: cover; }
.about-note { position: absolute; top: 0; right: 0; width: 340px; background: var(--paper); padding: 20px; font-size: var(--step-body); }
.about-side { grid-column: 9 / span 4; display: grid; gap: 28px; }
.about-map { background: var(--field-1); aspect-ratio: 3 / 2.4; display: grid; place-items: center; padding: 28px; }
.about-map svg { width: 100%; height: auto; }
.m-state { fill: var(--surface); }
.m-dot { fill: var(--accent); stroke: var(--paper); stroke-width: 3; }
.m-label { fill: var(--paper); font: 600 15px var(--font); }
.about-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.about-facts dt { font-size: var(--step-small); color: var(--muted); }
.about-facts dd { margin: 4px 0 0; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.specs { margin-top: var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.specs .h2 { grid-column: 1 / span 5; }
.spec-sheet { grid-column: 6 / span 7; margin: 0; display: grid; gap: 4px; }
.spec-sheet div { display: grid; grid-template-columns: 14ch 1fr; gap: 24px; background: var(--surface); padding: 16px 20px; }
.spec-sheet dt { color: var(--muted); }
.spec-sheet dd { margin: 0; }
.spec-sheet ul { margin: 0; padding-left: 1.1em; }

/* ---------- careers ---------- */
.careers { padding-top: clamp(72px, 10vw, 150px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: center; }
.careers-ph { grid-column: 1 / span 7; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.careers-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.careers-text { grid-column: 8 / span 5; display: grid; gap: 28px; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }

/* ---------- request a quote ---------- */
.contact { padding-top: clamp(72px, 9vw, 130px); padding-bottom: var(--gap); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: start; }
.c-main { grid-column: 1 / span 7; }
.c-side { grid-column: 9 / span 4; background: var(--paper); position: sticky; top: calc(var(--rail) + 24px); }
.c-side-in { padding: 28px 32px 32px; }
.c-ph { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.c-ph img { width: 100%; height: 100%; object-fit: cover; }
.strip { padding-bottom: var(--gap); }
.strip .h2 { margin-bottom: 40px; }
.strip-row { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 16px; align-items: start; }
.strip-item { display: grid; gap: 6px; text-decoration: none; }
.strip-item figure { margin: 0 0 8px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.strip-item:hover img { transform: scale(1.04); }
.strip-title { font-size: var(--step-sub); letter-spacing: -0.02em; line-height: 1.05; }
.strip-fact { max-width: 40ch; }
.about-row { display: grid; grid-template-columns: 4fr 3fr 5fr; gap: 16px; margin-top: 16px; align-items: start; }
.about-row figure, .careers-pair { margin: 0; display: grid; gap: 10px; }
.about-row img, .careers-pair img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.about-row figcaption, .careers-pair figcaption { max-width: 46ch; }
.careers-pair.p0 { grid-column: 1 / span 6; }
.careers-pair.p1 { grid-column: 8 / span 5; }
.c-side-h { font-size: var(--step-sub); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px; }
.c-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: var(--step-body); }
.c-lines li { display: grid; gap: 2px; }
.c-lines span:first-child { font-size: var(--step-small); color: var(--muted); }
.c-lines a { overflow-wrap: anywhere; }
.c-noscript { margin-top: 24px; background: var(--paper); padding: 16px; }
.quote { margin-top: 40px; display: grid; gap: 28px; }
.quote[hidden] { display: none; }
.q-jobs { border: 0; padding: 0; margin: 0; }
.q-jobs legend { font-size: var(--step-lead); margin-bottom: 14px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--paper); font-size: var(--step-body); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.chip:hover span { background: #ffffff; }
.chip input:checked + span { background: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.q-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .q-flabel { font-size: var(--step-body); }
.opt { color: var(--muted); font-size: var(--step-small); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--step-body); color: var(--ink); background: var(--paper); border: 2px solid transparent; padding: 12px 14px; min-height: 48px; width: 100%; border-radius: 0; transition: border-color 0.2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field [aria-invalid="true"] { border-color: #8f1d14; }
.hint { font-size: var(--step-body); color: var(--ink); }
.f-err, .q-err { color: #6e130c; font-weight: 600; font-size: var(--step-body); }
.q-err { background: var(--paper); padding: 12px 16px; }
.q-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--surface); padding: 18px; transition: background 0.2s var(--ease); }
.q-drop.over { background: var(--paper); }
.field .q-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; padding: 0; min-height: 0; border: 0; }
.q-pick { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--paper); cursor: pointer; font-size: var(--step-body); }
.q-file:focus-visible + .q-pick { outline: 3px solid var(--accent); outline-offset: 3px; }
.q-droptext { color: var(--muted); font-size: var(--step-small); }
.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.q-list:empty { display: none; }
.q-list li { display: flex; gap: 12px; align-items: center; background: var(--paper); padding: 8px 12px; font-size: var(--step-body); }
.q-fname { flex: 1; overflow-wrap: anywhere; }
.q-fsize { color: var(--muted); font-size: var(--step-small); }
.q-rm { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--step-small); color: var(--ink); padding: 6px; }
.q-sum { font-size: var(--step-lead); line-height: 1.35; }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.q-progress { font-size: var(--step-body); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer: columns above, the name across the bottom ---------- */
.foot { background: var(--field-1); color: var(--field-1-soft); min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; padding-top: 40px; position: relative; z-index: 1; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: var(--step-body); }
.f-cols > * { display: grid; gap: 6px; align-content: start; }
.f-h { color: var(--field-1-ink); }
.f-cols a { text-decoration: none; overflow-wrap: anywhere; }
.f-cols a:hover { text-decoration: underline; color: var(--field-1-ink); }
.f-mark { grid-row: 3; padding-top: 48px; color: var(--field-1-ink); }
.wordmark { width: 100%; height: auto; overflow: visible; }
.wordmark text { font-family: var(--font); font-weight: 500; font-size: 118px; fill: currentColor; letter-spacing: -2px; }
.f-last { grid-row: 4; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding-top: 20px; padding-bottom: 24px; font-size: var(--step-small); }
.f-last a { color: var(--field-1-soft); }
.f-credits { flex: 1 1 420px; max-width: 75ch; }
.f-credits a { text-decoration: underline; }

.ph { width: 100%; height: 100%; background: var(--surface-2); }

/* ---------- entrances (only with the script running and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
  html.js .rise.in { opacity: 1; transform: none; }
  .hero-a img { animation: drift 28s var(--ease) both; }
  /* First-screen entrances on inner pages: plain CSS, so nothing depends on the script and everything ends visible. */
  @keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .phead .h1, .about > .h1, .careers-text > .h1, .c-main > .h1 { animation: rise-in 0.8s var(--ease) both; }
  .phead-intro, .about-lead, .careers-text > .lead, .c-main > .phead-intro { animation: rise-in 0.8s 0.08s var(--ease) both; }
  .careers-text > .prose, .about-ph, .quote > .q-jobs { animation: rise-in 0.8s 0.16s var(--ease) both; }
  .careers-text > .steps, .about-map, .quote > .q-row:first-of-type, .careers-ph { animation: rise-in 0.8s 0.24s var(--ease) both; }
  .about-facts, .c-side, .quote > .field:first-of-type { animation: rise-in 0.8s 0.32s var(--ease) both; }

  @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
  .panel-ph img { transition: transform 1.2s var(--ease); }
  .panel.in .panel-ph img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .jack { height: auto; }
  .jack-stage { position: static; height: auto; display: block; padding: 0 var(--m); }
  .jack-h { position: static; }
  .jack-a, .jack-b { position: static; display: block; opacity: 1 !important; transform: none !important; }
  .jack-frame { margin: 24px auto; }
  .jack-cap { position: static; opacity: 1 !important; transform: none !important; margin: 0 auto; }
  .panel { position: relative; }
}

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .rail-line { display: none; }
  .rail-in { grid-template-columns: auto 1fr auto; }
  .rail-nav { justify-self: end; }
  .hero-corner { display: grid; gap: 16px; position: absolute; left: var(--m); z-index: 2; width: min(420px, calc(100% - 2 * var(--m))); color: var(--paper); }
  .page-home .hero-corner { top: calc(100svh - 190px); bottom: auto; }
  .hero-corner p { font-size: var(--step-lead); line-height: 1.25; }
  .hero-corner::before { content: ""; position: absolute; inset: -22px calc(-1 * var(--m)) -20px calc(-1 * var(--m)); background: rgba(14, 14, 14, 0.45); z-index: -1; }
  .feat-open, .rows, .feat-more, .feat-page .rows { padding-left: 12%; }
  .phead .h1 { grid-column: 1 / -1; }
  .phead-intro { grid-column: 1 / span 9; }
}
@media (max-width: 960px) {
  .rail-nav, .rail-act { display: none; }
  .rail-menu { display: block; justify-self: end; }
  .rail-call { display: block; }
  .rail-in, body:not(.page-home) .rail-in { grid-template-columns: 1fr auto auto; gap: 12px; }
  .calc-text, .calc-fig { grid-column: 1 / -1; }
  .calc-fig { margin-top: 48px; }
  .about-teaser-text, .about-teaser .about-map { grid-column: 1 / -1; }
  .about-ph, .about-side { grid-column: 1 / -1; }
  .about-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .careers-ph, .careers-text { grid-column: 1 / -1; }
  .c-main, .c-side { grid-column: 1 / -1; }
  .c-side { position: static; }
  .strip-row { grid-template-columns: 1fr 1fr; }
  .about-row { grid-template-columns: 1fr 1fr; }
  .careers-pair.p0, .careers-pair.p1 { grid-column: auto / span 6; }
  .specs .h2, .spec-sheet { grid-column: 1 / -1; }
  .spec-sheet { margin-top: 32px; }
  .jack-frame { width: 52vw; }
  .jack-a { top: calc(50svh - 65vw / 2 - 1.05em); }
  .jack-b { top: calc(50svh + 65vw / 2 + 0.12em); }
  .jack-cap { position: absolute; left: 50%; transform: translate(-50%, 16px); top: auto; bottom: 6svh; text-align: center; width: min(36ch, 90vw); }
  .jack.s3 .jack-cap { transform: translate(-50%, 0); }
  .f-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --rail: 72px; }
  .rail-name { font-size: var(--step-sub); white-space: normal; line-height: 1.02; }
  .page-home .hero-corner { top: auto; bottom: auto; top: calc(100svh - 228px); }
  .feat-open { min-height: 50svh; padding-left: 0; }
  .feat-open .h2 { font-size: 9.6vw; }
  .rows, .feat-more, .feat-page .rows { padding-left: 0; }
  .rows { gap: 64px; }
  .row { grid-template-columns: 1fr; gap: 20px; }
  .row-title { font-size: var(--step-sub); }
  .row-fig.tall { width: 100%; }
  .row-fig.wide { width: 70%; justify-self: end; }
  .row-fig.square { width: 55%; justify-self: start; }
  .h1, .h2 { font-size: 10vw; }
  .jack-h { font-size: 12vw; }
  .jack-frame { width: 70vw; }
  .jack-a { top: calc(50svh - 87.5vw / 2 - 1.1em); }
  .jack-b { top: calc(50svh + 87.5vw / 2 + 0.15em); }
  .jack-cap { bottom: 3svh; }
  .calc-fig { aspect-ratio: 1; padding: 16px; }
  .visit { height: auto; padding-bottom: 0; }
  .visit-ph { position: relative; height: 70svh; }
  .visit-card { position: relative; top: auto; right: auto; width: auto; margin: -80px var(--m) 0; padding: 24px 24px 0; }
  .visit-card .btn { margin: 8px -24px 0; min-height: 56px; }
  .panel { height: 82svh; }
  .panel-row { top: auto; bottom: 20px; transform: none; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 16px var(--m); }
  .panel-title { grid-column: 1 / -1; grid-row: 1; }
  .panel-year { grid-row: 2; font-size: var(--step-small); }
  .panel-fact { grid-row: 2; font-size: var(--step-small); }
  .jobs-table thead { display: none; }
  .jobs-table, .jobs-table tbody, .jobs-table tr, .jobs-table th, .jobs-table td { display: block; }
  .jobs-table tr { padding: 14px 16px; }
  .jobs-table tbody th, .jobs-table tbody td, .jobs-table tbody td:first-child { padding: 2px 0; width: auto; white-space: normal; }
  .more-grid { grid-template-columns: 1fr; }
  .about-note { position: static; width: auto; }
  .about-ph { aspect-ratio: auto; display: grid; }
  .about-ph img { aspect-ratio: 4 / 3; height: auto; }
  .about-side { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: 1fr; }
  .c-side-in { padding: 24px; }
  .strip-row, .about-row { grid-template-columns: 1fr; }
  .careers-pair.p0, .careers-pair.p1 { grid-column: 1 / -1; }
  .f-mark { padding-top: 20svh; }
}

/* The page buyers see after sending a quote request */
.sent { min-height: 100svh; display: grid; place-items: center; padding: 48px var(--m); }
.sent-card { background: var(--paper); padding: clamp(28px, 5vw, 56px); max-width: 640px; display: grid; gap: 20px; }
.sent-card .h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.sent-name { font-size: var(--step-sub); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
