@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/BigShouldersDisplay-100_900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans-400_700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --soot: #12100e;
  --soot-2: #1a1714;
  --soot-3: #24201b;
  --line: #3a332a;
  --cream: #efe6d6;
  --dust: #a89e8d;
  --brass: #d9a84a;
  --brass-deep: #8f6a24;
  --signal: #e8572c;
  --zozo: #3b82f6;
  --zozo-soft: #8fbaff;
  --moodful: #9b88c6;
  --moodful-warm: #e2946c;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--soot);
  color: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
/* Fine grain so the flat dark reads as a surface rather than a void. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(217, 168, 74, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(232, 87, 44, .05), transparent 60%);
  z-index: -1;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brass); color: var(--soot); }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--soot); padding: 8px 14px; font-weight: 600; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow span { color: var(--line); padding: 0 .4em; }

/* ---------- top bar ---------- */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; color: var(--brass); }
.brand-bridge { fill: var(--signal); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dust); text-decoration: none; }
.nav a:hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(52px, 7vw, 104px);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin: 22px 0 28px;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); color: #d8cfbf; max-width: 34em; }
.lede a { color: var(--cream); font-weight: 600; text-decoration-color: var(--brass); }
.lede a:hover { color: var(--brass); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 22px;
  border: 1.5px solid var(--brass);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-solid { background: var(--brass); color: var(--soot); }
.btn-solid:hover { background: var(--cream); border-color: var(--cream); color: var(--soot); }
.btn-line { color: var(--cream); border-color: var(--line); }
.btn-line:hover { border-color: var(--cream); color: var(--cream); }
.btn:active { transform: translateY(1px); }

.hero-plan { position: relative; }
.hero-plan figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--dust);
  max-width: 44ch;
  margin: 6px auto 0;
  text-align: center;
}

/* ---------- the plan drawing ---------- */
.plan { width: 100%; height: auto; display: block; }
.plan [data-stall] { cursor: pointer; }
.plan .house { fill: #211d18; stroke: none; }
.plan .wall { fill: none; stroke: #54493b; stroke-width: 2; }
.plan .wall-outer { stroke: #a08a63; stroke-width: 6; stroke-linecap: square; }
.plan .ridge { fill: none; stroke: #54493b; stroke-width: 1; stroke-dasharray: 2 7; }
.plan .rail { fill: none; stroke: #9c907b; stroke-width: 1.5; }
.plan .ties { fill: none; stroke: #4a4135; stroke-width: 17; stroke-dasharray: 2.2 7.8; }
.plan .pit { fill: #0b0a08; stroke: var(--brass-deep); stroke-width: 2; }
.plan .pit-rail { fill: none; stroke: #4b4337; stroke-width: 1.4; }
.plan .bridge-deck { fill: var(--soot-3); stroke: var(--brass); stroke-width: 1.5; }
.plan .bridge .rail { stroke: var(--brass); }
.plan .bridge-cab { fill: var(--signal); }
.plan .bridge-pivot { fill: var(--brass); }
.plan .stall-no { font-family: var(--mono); font-size: 12px; fill: #8a7f6c; text-anchor: middle; letter-spacing: .08em; }
.plan .stall-product { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: .08em; text-anchor: middle; fill: var(--cream); transition: fill .3s; }
.plan .floor { opacity: .22; transition: opacity .4s; }
.plan .floor-zozo { fill: var(--zozo); }
.plan .floor-moodful { fill: var(--moodful); }
.plan .engine-body { stroke-width: 1.5; }
.plan .engine-cab { fill: #0b0a08; stroke-width: 1.5; }
.plan .engine-band { fill: none; stroke: rgba(0, 0, 0, .35); stroke-width: 2; }
.plan .engine-lamp { fill: #fff6dc; }
.plan .engine-glow { opacity: .35; transition: opacity .4s; }
.plan .occupant-zozo .engine-body { fill: #2c63c4; stroke: var(--zozo-soft); }
.plan .occupant-zozo .engine-cab { stroke: var(--zozo-soft); }
.plan .occupant-zozo .engine-glow { fill: var(--zozo); }
.plan .occupant-moodful .engine-body { fill: #6c5a96; stroke: #c9bbe8; }
.plan .occupant-moodful .engine-cab { stroke: #c9bbe8; }
.plan .occupant-moodful .engine-glow { fill: var(--moodful-warm); }
/* A stall lights up when the bridge lines up with it. */
.plan .floor.is-lit { opacity: .5; }
.plan .occupant.is-lit .engine-glow { opacity: 1; }
.plan .stall-name-zozo.is-lit .stall-product { fill: var(--zozo-soft); }
.plan .stall-name-moodful.is-lit .stall-product { fill: var(--moodful-warm); }
.plan .stall-name.is-lit .stall-no { fill: var(--cream); }

/* ---------- section scaffolding ---------- */
.products, .ways, .company, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter); }
.section-head { margin-bottom: clamp(32px, 5vw, 60px); }
h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 84px);
  line-height: .95;
  text-transform: uppercase;
  margin-top: 14px;
}
.products { border-top: 1px solid var(--line); }

/* ---------- products ---------- */
.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .3s;
}
.product + .product { margin-top: clamp(20px, 3vw, 36px); }
.product::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent); }
.product-zozo { --accent: var(--zozo); --accent-soft: var(--zozo-soft); background: linear-gradient(120deg, #0f1420, #0b0d11 60%); }
.product-moodful { --accent: var(--moodful); --accent-soft: var(--moodful-warm); background: linear-gradient(120deg, #1d1a26, #15131b 60%); }
.product.is-lit { border-color: var(--accent); }
.stall-tag { display: flex; gap: 14px; align-items: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dust); }
.in-service { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-soft); }
.in-service::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 10px var(--accent-soft); }
.product h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 18px 0 6px;
}
.product h3 img { width: clamp(48px, 5vw, 68px); height: auto; border-radius: 14px; }
.product-moodful h3 img { border-radius: 50%; }
.product-line { font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--accent-soft); margin-bottom: 14px; }
.product-copy > p:not([class]) { color: #d0c8ba; max-width: 32em; }
.product-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.product .btn-solid { background: var(--accent-soft); border-color: var(--accent-soft); }
.product .btn-solid:hover { background: var(--cream); border-color: var(--cream); }
.product-shot img { border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.shot-wide { margin-right: clamp(-140px, -9vw, -40px); }
.shot-phone { display: flex; justify-content: center; }
.shot-phone img { width: min(250px, 62%); border-radius: 24px; transform: rotate(2.5deg); }

/* ---------- how the house runs ---------- */
.ways { border-top: 1px solid var(--line); }
.ways-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); counter-reset: way; }
.ways-list li { counter-increment: way; border-top: 3px solid var(--brass); padding-top: 20px; }
.ways-list li::before { content: "0" counter(way); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--brass); }
.ways-list h3 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 10px; }
.ways-list p { color: #cfc6b7; font-size: 17px; }

/* ---------- company ---------- */
.company {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.plate svg { width: 100%; max-width: 480px; display: block; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); }
.plate-body { fill: var(--brass); }
.plate-rim { fill: none; stroke: #7a5a1d; stroke-width: 2.5; }
.plate-arc { font-family: var(--display); font-weight: 900; font-size: 27px; letter-spacing: .08em; text-anchor: middle; fill: #2a1f0a; }
.plate-arc-small { font-size: 17px; letter-spacing: .2em; font-weight: 800; }
.plate-no { font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: .04em; text-anchor: middle; fill: #2a1f0a; }
.plate-bolt { fill: #7a5a1d; }
.facts { margin-top: 30px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dust); padding-top: 4px; }
.facts dd { color: var(--cream); }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); text-align: center; }
.contact h2 { font-size: clamp(26px, 5.4vw, 76px); text-transform: none; letter-spacing: 0; margin: 18px 0 22px; overflow-wrap: anywhere; }
.contact h2 a { color: var(--cream); text-decoration-color: var(--brass); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.contact h2 a:hover { color: var(--brass); }
.contact > p:last-child { color: var(--dust); max-width: 40em; margin: 0 auto; font-size: 17px; }

/* ---------- footer ---------- */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 44px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dust);
}
.foot p { margin: 0; }
.foot a { color: var(--dust); }
.foot a:hover { color: var(--cream); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; }
  .hero-plan { max-width: 560px; margin: 0 auto; width: 100%; }
  .product { grid-template-columns: 1fr; }
  .shot-wide { margin-right: 0; }
  .ways-list { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; }
  .plate svg { max-width: 340px; }
}
@media (max-width: 520px) {
  .nav a:first-child { display: none; }
  .brand-name { font-size: 21px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .plan .stall-product { font-size: 30px; }
  .plan .stall-no { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
