/* ARCA Services: homepage. Tokens come from DESIGN.md (sales deck theme).
   The page is one building: roof, six floors, the bin room, then out the
   loading dock onto the street. Every storey is windows | room | chute shaft. */

@font-face {
  font-family: "Fahkwang";
  src: url("assets/fonts/fahkwang-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand colours (deck theme) */
  --olive: #3E451E;
  --moss: #4A5324;
  --leaf: #759746;
  --ink: #2A2A22;
  --cream: #F6F5EF;
  --paper: #EFEEE4;
  --stone: #E4E1D0;
  --sand: #BFAF7C;
  --sand-light: #CDBF92;
  --sage: #8A8F7C;
  --bark: #5A5F4E;
  --error: #7A2E1A;

  /* type */
  --display: "Fahkwang", "Optima", "Candara", "Segoe UI", "Gill Sans", sans-serif;
  --text: "Schibsted Grotesk", "Helvetica Neue", "Segoe UI", "Arial", sans-serif;
  /* five roles, far apart (type.md §2): small, body, lead, head, display */
  --fs-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-h2: clamp(1.5rem, 0.8rem + 2.9vw, 3.25rem);
  --fs-h1: clamp(2rem, 0.55rem + 5.6vw, 5.5rem);
  --fs-poster: clamp(2.75rem, 1rem + 6.4vw, 7.25rem);

  /* the building */
  --facade: clamp(1.25rem, 0.2rem + 5.4vw, 7rem);
  --shaft: clamp(2.75rem, 1.5rem + 4.6vw, 6.5rem);
  --slab: clamp(0.875rem, 0.6rem + 1vw, 1.625rem);
  --chute-w: clamp(1rem, 0.6rem + 1.3vw, 2rem);
  --bin-h: clamp(5.5rem, 3rem + 7vw, 9.5rem);
  --room-x: clamp(1rem, 0.25rem + 3.6vw, 4rem);

  /* space */
  --g: clamp(1rem, 0.5rem + 2.2vw, 2rem);
  --section: clamp(4.5rem, 2.5rem + 8vw, 10rem);
  --max: 1440px;

  /* motion (Emil Kowalski tokens) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --press: 140ms;
  --hover: 180ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scrollbar-color: var(--sage) var(--cream);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  caret-color: var(--olive);
  accent-color: var(--olive);
}

::selection { background: var(--sand); color: var(--ink); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-kerning: normal;
  text-wrap: balance;
  hyphens: none;
  color: inherit;
}
/* tracking tightens as size grows (type.md §3) */
h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: var(--fs-lead); line-height: 1.18; letter-spacing: -0.012em; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
figure { margin: 0; }

a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a, button, [role="button"], label { touch-action: manipulation; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--g);
}

.skip {
  position: absolute;
  left: var(--g);
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--olive);
  color: var(--cream);
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.lead { font-size: var(--fs-lead); line-height: 1.35; max-width: 34ch; letter-spacing: -0.005em; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: 0;
  font: 600 var(--fs-body)/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--hover) ease, transform var(--press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 2.75rem; padding: 0.625rem 1.125rem; }
.btn-olive { background: var(--olive); color: var(--cream); }
.btn-sand { background: var(--sand); color: var(--olive); }
.btn[disabled] { cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  color: var(--olive);
  font-weight: 600;
  font-size: var(--fs-body);
  text-decoration: underline;
  text-decoration-color: var(--leaf);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color var(--hover) ease;
}
.link-arrow svg {
  width: 1.25rem; height: 1.25rem;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-olive:hover { background: var(--moss); }
  .btn-sand:hover { background: var(--sand-light); }
  .link-arrow:hover { text-decoration-color: var(--olive); }
  .link-arrow:hover svg { transform: translateX(4px); }
}

/* ---------- header ---------- */

.site-header { background: var(--cream); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 5.5rem;
}
.brand { color: var(--olive); display: inline-flex; padding-block: 0.5rem; }
.logo { width: clamp(7.5rem, 6rem + 4vw, 9.5rem); height: auto; fill: currentColor; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, 0.5rem + 1.4vw, 2rem); }
.nav a {
  display: inline-block;
  padding-block: 0.5rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { text-decoration-color: var(--leaf); }
}
@media (max-width: 52.49em) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; min-height: 4.5rem; }
}

/* ---------- the lift indicator, in the chute shaft ---------- */

.lift {
  position: fixed;
  top: 0.75rem;
  right: calc(var(--shaft) / 2);
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-width: min(3.5rem, calc(var(--shaft) - 0.5rem));
  margin: 0;
  padding: 0.5rem 0.375rem;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  line-height: 1;
  text-align: center;
  transform: translateX(50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
  pointer-events: none;
}
.lift.on { opacity: 1; visibility: visible; transition: opacity 240ms ease; }
.lift-arrow {
  width: 0.75rem;
  height: 0.5rem;
  background: var(--leaf);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.lift-level { display: block; font-variant-numeric: tabular-nums; }

/* ---------- ROOF ---------- */

.roof { background: var(--cream); }
.roof-grid { display: grid; gap: 3rem; padding-top: clamp(1.5rem, 0.5rem + 3.5vw, 4rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.roof-copy { display: grid; align-content: start; gap: 1.75rem; }
.hero-title {
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.038em;
  margin-left: -0.04em;
  color: var(--olive);
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; }
.hero-sub { font-size: var(--fs-lead); line-height: 1.35; max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.proof { display: grid; gap: 0.375rem; max-width: 40ch; color: var(--bark); }
.proof li { font-variant-numeric: lining-nums; }
.proof strong { color: var(--ink); font-weight: 600; }

/* the building directory, like the board in a lobby */
.directory {
  align-self: start;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--olive);
  color: var(--cream);
}
.directory-title { font-family: var(--text); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--sand); }
.directory ol { display: grid; margin-top: 1rem; }
.directory a {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none;
}
.directory a span:last-child {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--hover) ease;
}
.dir-level { font-family: var(--display); font-weight: 600; color: var(--sand); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .directory a:hover span:last-child { text-decoration-color: var(--sand); }
}
@media (min-width: 60em) {
  .roof-grid { grid-template-columns: 7fr 4fr; column-gap: clamp(3rem, 6vw, 7rem); align-items: start; }
  .hero-title { grid-column: 1 / -1; }
}

/* the city, with our roof in front of it */
.skyline { position: relative; }
.skyline-photo { width: 100%; height: clamp(15rem, 6rem + 30vw, 38rem); object-fit: cover; object-position: 50% 40%; }

/* ---------- storeys: windows | room | shaft ---------- */

.storey {
  display: grid;
  grid-template-columns: var(--facade) minmax(0, 1fr) var(--shaft);
}

.roof-top {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(6rem, 3rem + 12vw, 14rem);
}
.roof-mid { position: relative; min-width: 0; }
.roof-mid::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: var(--olive); }
.roof-art { width: 100%; height: 90%; max-width: none; object-fit: cover; object-position: 50% 100%; }
.facade-cap, .shaft-cap { position: relative; }
.facade-cap::after, .shaft-cap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10%;
  background: var(--olive);
}
.vent {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--chute-w);
  height: 72%;
  background: var(--leaf);
  transform: translateX(-50%);
}
.vent::before {
  content: "";
  position: absolute;
  left: -40%; right: -40%;
  top: 0;
  height: 0.5rem;
  background: var(--sand);
}

.building { position: relative; background: var(--olive); }

.floor { position: relative; }
/* the concrete slab each floor hangs from */
.floor::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--slab);
  z-index: 2;
  background: var(--bark);
}

/* the street side: a window onto the city */
.facade { position: relative; background: var(--olive); }
.pane {
  position: absolute;
  left: 22%; right: 22%;
  top: calc(var(--slab) + 9%);
  bottom: 12%;
  background: var(--moss) url("assets/photos/melbourne-skyline-1200.jpg") 50% 40% / cover no-repeat;
}
.pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 69, 30, 0.22);
}
.pane::after {
  content: "";
  position: absolute;
  left: calc(50% - 3px);
  top: 0; bottom: 0;
  width: 6px;
  background: var(--olive);
}
@media (min-width: 60em) and (hover: hover) {
  /* the view moves as you go down, like looking out each floor's window */
  .pane { background-image: url("assets/photos/melbourne-skyline.jpg"); background-attachment: fixed; background-size: cover; }
}
@media (max-width: 47.99em) {
  .pane { left: 3px; right: 3px; }
  .pane::after { display: none; }
}
.facade-earth { background: var(--bark); }

/* the chute shaft */
.shaft { position: relative; background: var(--moss); }
/* a hopper door on the face of the chute, one per floor */
.hopper {
  position: absolute;
  z-index: 4;
  bottom: 22%;
  left: calc(50% - var(--chute-w) * 0.8);
  width: calc(var(--chute-w) * 1.6);
  aspect-ratio: 200 / 269;
  background: url("assets/chute/hopper.webp") center / contain no-repeat;
}
/* the bin under the chute's discharge; the render's pipe is 38% of its width */
.chute-bin {
  position: absolute;
  bottom: 0;
  left: calc(50% - var(--chute-w) * 0.995);
  width: calc(var(--chute-w) / 0.382);
  aspect-ratio: 267 / 565;
  background: url("assets/chute/bin.webp") center bottom / contain no-repeat;
}
.shaft-end .hopper { bottom: calc(var(--chute-w) * 5.8 + 1rem); }

/* one continuous chute from the roof to the bin room, and the bag in it */
.chute-run {
  position: absolute;
  top: 0;
  bottom: calc(var(--chute-w) * 5.45);
  right: calc(var(--shaft) / 2 - var(--chute-w) / 1.7);
  width: calc(var(--chute-w) / 0.85);
  z-index: 3;
  background: url("assets/chute/tile.webp") center top / 100% auto repeat-y;
}
.bag {
  position: sticky;
  top: 46vh;
  display: block;
  width: 96%;
  margin-left: 2%;
  aspect-ratio: 172 / 208;
  background: url("assets/chute/bag.webp") center / contain no-repeat;
}
.bag-tie { display: none; }

/* the room on each floor */
.room {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: calc(var(--slab) + clamp(5rem, 2.5rem + 8vw, 11rem)) var(--room-x) 0;
  overflow: hidden;
}
.wall-paper .room { background: var(--paper); }
.wall-cream .room { background: var(--cream); }
.wall-stone .room { background: var(--stone); }
.room-content { position: relative; z-index: 1; max-width: 78rem; padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.room-content h2 { color: var(--olive); }
.room-content h2 + .lead, .room-content h2 + p { margin-top: 1.5rem; }
.room-content .lead + p { margin-top: 1.25rem; }
.props {
  position: relative;
  display: block;
  width: calc(100% + 2 * var(--room-x));
  max-width: none;
  height: clamp(9rem, 5rem + 10vw, 15rem);
  margin-inline: calc(-1 * var(--room-x));
  margin-top: auto;
  object-fit: cover;
  object-position: 50% 100%;
}

/* the ceiling: real light fittings, rendered off and on */
.ceiling {
  position: absolute;
  left: 0; right: 0;
  top: var(--slab);
  aspect-ratio: 12 / 1;
  pointer-events: none;
}
.ceiling img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
.ceil-on { opacity: 1; }
.js .ceil-on { opacity: 0; }
.js .floor.lit .ceil-on { opacity: 1; }

/* the light each fitting throws down the wall: flat, hard-edged, like the daylight */
.ceiling { container-type: inline-size; z-index: 0; }
.beam {
  --fan: 5;
  position: absolute;
  top: var(--y);
  left: calc((var(--x) - var(--w) / 2 - var(--fan)) * 1cqw);
  width: calc((var(--w) + 2 * var(--fan)) * 1cqw);
  height: clamp(14rem, 30cqw, 30rem);
  clip-path: polygon(calc(var(--fan) * 1cqw) 0, calc(100% - var(--fan) * 1cqw) 0, 100% 100%, 0 100%);
  /* light falling off down the wall, not a decorative fill */
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.35) 55%, rgb(255 255 255 / 0)); /* taste-skill-ignore: light falloff from the fitting */
  z-index: -1;
  transform-origin: 50% 0;
}
.ceiling img { z-index: 1; }
.js .beam { opacity: 0; }
.js .floor.lit .beam { opacity: 1; }
.floor-basement .beam { background: linear-gradient(to bottom, rgb(246 245 239 / 0.2), rgb(246 245 239 / 0.07) 55%, rgb(246 245 239 / 0)); } /* taste-skill-ignore: light falloff */

/* the level sign by the lift, like the wayfinding in a real building */
.level-sign {
  position: absolute;
  right: var(--room-x);
  top: calc(var(--slab) + clamp(3.25rem, 1.5rem + 5vw, 7.5rem));
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 3.25em;
  margin: 0;
  padding: 0.625rem 0.75rem;
  background: var(--olive);
  color: var(--cream);
  max-width: none;
}
.ls-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.floor-basement .level-sign { background: var(--ink); }
@media (max-width: 47.99em) {
  .level-sign { position: relative; right: auto; top: auto; align-self: flex-start; margin-bottom: 1.5rem; padding: 0.5rem 0.625rem; }
}

/* ---------- photos ---------- */

.photo .frame { position: relative; overflow: hidden; background: var(--moss); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { margin-top: 0.625rem; font-size: var(--fs-small); line-height: 1.45; color: var(--bark); max-width: 44ch; }
.photo-portrait .frame { aspect-ratio: 4 / 5; }
.photo-square .frame { aspect-ratio: 1 / 1; }
.photo-events .frame { aspect-ratio: 4 / 5; }

/* ---------- floor layouts ---------- */

.ticks { display: grid; gap: 0.625rem; margin-top: 1.75rem; max-width: 46ch; }
.ticks li { position: relative; padding-left: 1.375rem; line-height: 1.45; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.5rem; height: 0.5rem;
  background: var(--leaf);
}

.split { display: grid; gap: 2.5rem; align-items: start; }
.split .photo { max-width: 26rem; }
@media (min-width: 60em) {
  .split { grid-template-columns: 7fr 4fr; column-gap: clamp(2.5rem, 5vw, 6rem); }
  .split-reverse { grid-template-columns: 4fr 7fr; }
  .split-reverse > div { align-self: center; }
}
@media (max-width: 59.99em) { .split-reverse > div { order: -1; } }

/* L4 offices: the service name set as a poster across the floor */
.poster-title { font-size: var(--fs-poster); line-height: 0.92; letter-spacing: -0.045em; margin-left: -0.05em; max-width: 9em; }
.poster-detail { margin-top: 1.5rem; max-width: 32em; }
.poster-detail .lead { margin-top: 0; }
@media (min-width: 60em) {
  .poster { display: grid; grid-template-columns: 7fr 4fr; column-gap: 3rem; align-items: end; }
  .poster-detail { margin-top: 0; }
}

/* L3: the steps on the whiteboard */
.whiteboard {
  position: relative;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #FBFAF6;
  border: 10px solid var(--sage);
}
.steps { display: grid; gap: 1.75rem; }
.steps li { display: grid; gap: 0.5rem; align-content: start; max-width: 52rem; }
.steps h3 { color: var(--olive); }
.steps li::before {
  content: "";
  display: block;
  width: 3rem;
  height: 6px;
  background: var(--leaf);
  margin-bottom: 0.5rem;
}
.board-tray {
  position: absolute;
  left: 8%; right: 8%;
  bottom: -26px;
  height: 12px;
  background: var(--sage);
  display: flex;
  gap: 1rem;
  padding-left: 2rem;
}
.board-tray i { display: block; width: 3rem; height: 8px; margin-top: -8px; background: var(--leaf); }
.board-tray i + i { background: var(--olive); }
/* the steps go down the board like a staircase */
.steps li:nth-child(2) { margin-left: 4%; }
.steps li:nth-child(3) { margin-left: 8%; }
.steps li:nth-child(4) { margin-left: 12%; }
.steps li:nth-child(5) { margin-left: 16%; }
@media (min-width: 48em) {
  .steps li { grid-template-columns: minmax(12rem, 5fr) 7fr; column-gap: 2rem; align-items: baseline; }
  .steps li::before { grid-column: 1 / -1; }
}

@media (max-width: 47.99em) {
  .whiteboard { border-width: 6px; padding: 1.25rem 1rem; }
  .steps li:nth-child(n) { margin-left: 0; }
  .noticeboard { border-width: 6px; padding: 0.75rem; }
  .slip { padding: 1.75rem 1rem calc(1.25rem + var(--tooth)); }
}

/* L2: what's covered, and the site record pinned to the noticeboard */
.cover-title { margin-top: 2.5rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); color: var(--olive); }
.cover-list { margin-top: 1rem; }
.cover-list li { font-size: var(--fs-lead); line-height: 1.4; }
.coverage { margin-top: 1.75rem; max-width: 30em; }
.noticeboard {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--sand);
  border: 10px solid var(--bark);
}
.slip {
  --tooth: 12px;
  position: relative;
  padding: 2rem 1.75rem calc(1.75rem + var(--tooth));
  background: var(--cream);
  transform: rotate(-1.2deg);
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - var(--tooth)),
    95% 100%, 90% calc(100% - var(--tooth)), 85% 100%, 80% calc(100% - var(--tooth)),
    75% 100%, 70% calc(100% - var(--tooth)), 65% 100%, 60% calc(100% - var(--tooth)),
    55% 100%, 50% calc(100% - var(--tooth)), 45% 100%, 40% calc(100% - var(--tooth)),
    35% 100%, 30% calc(100% - var(--tooth)), 25% 100%, 20% calc(100% - var(--tooth)),
    15% 100%, 10% calc(100% - var(--tooth)), 5% 100%, 0 calc(100% - var(--tooth))
  );
}
.pin {
  position: absolute;
  left: calc(50% - 0.5rem);
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--leaf);
}
.slip-head { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; color: var(--olive); }
.slip-mark { width: 1.5rem; height: auto; fill: var(--olive); }
.slip-rows { display: grid; gap: 1.125rem; margin-top: 1.5rem; }
.slip-rows li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.875rem; align-items: start; }
.slip-rows strong { color: var(--olive); }
.slip-check { position: relative; width: 1.5rem; height: 1.5rem; margin-top: 0.1rem; background: var(--stone); }
.slip-check::after {
  content: "";
  position: absolute;
  left: 0.5rem; top: 0.2rem;
  width: 0.45rem; height: 0.8rem;
  border: solid var(--olive);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* G: the lobby, with the form on the front desk */
.lobby { display: grid; gap: 2.5rem; align-items: start; max-width: none; }
.lobby-intro { display: grid; gap: 1.25rem; }
.lobby-intro .lead { margin-top: 0; }
.lobby-note { max-width: 30em; }
.order-alt a { color: var(--olive); font-weight: 600; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; }
.desk { position: relative; padding-bottom: 3.75rem; }
.counter {
  position: absolute;
  left: -1rem; right: -1rem;
  bottom: 0;
  height: 3.75rem;
  background: var(--olive);
}
.counter::before {
  content: "";
  position: absolute;
  left: -0.5rem; right: -0.5rem;
  top: 0;
  height: 0.875rem;
  background: var(--sand);
}
@media (min-width: 60em) {
  .lobby { grid-template-columns: 4fr 7fr; column-gap: clamp(2.5rem, 5vw, 6rem); }
}

/* B1: the bin room */
.floor-basement .room { background: var(--bark); color: var(--cream); }
.floor-basement h2 { color: var(--cream); }
.floor-basement .lead { color: var(--stone); }
.chute-items { display: grid; gap: 2rem; margin-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.chute-items li { display: grid; gap: 0.5rem; align-content: start; max-width: 28em; }
.chute-items h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); color: #E3DAB9; }
@media (min-width: 48em) {
  .chute-items { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; }
}

/* ---------- the loading dock: a roller door onto the street ---------- */

.dock { position: relative; height: 170vh; background: var(--ink); view-timeline-name: --dock; }
.dock-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.dock-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dock-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 34, 0.5);
}
.roller-sign {
  position: absolute;
  left: 50%;
  top: 38%;
  max-width: min(22rem, 80%);
  padding: 1rem 1.25rem;
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
}
.roller {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bark);
  transform: translateY(-101%);
}
.roller i { flex: 1; background: var(--sage); }
.roller-handle {
  position: absolute;
  left: calc(50% - 3rem);
  bottom: 1.5rem;
  width: 6rem;
  height: 0.75rem;
  background: var(--ink);
}

/* ---------- THE STREET: events ---------- */

.events {
  padding-block: var(--section);
  background: var(--olive);
  color: var(--cream);
}
.events-head { display: grid; gap: 1.25rem; }
.events-head h2 { font-size: var(--fs-h1); color: var(--cream); }
.events-head .lead { color: var(--stone); max-width: 30em; }

.scale { display: grid; gap: 2rem; margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.scale-claim { max-width: 22em; font-size: var(--fs-lead); line-height: 1.45; color: var(--stone); }
.scale-claim strong { color: var(--cream); font-weight: 600; }
.scale-figure {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(9rem, 4rem + 22vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.scale-figure .plus { color: var(--leaf); }

.tally { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: end; }
.tally-group, .tally-plus { position: relative; display: inline-flex; gap: 6px; height: 3.25rem; align-items: end; }
.tally i { display: block; width: 6px; height: 100%; background: var(--leaf); transform-origin: 50% 100%; }
.tally .cross {
  position: absolute;
  left: -6px;
  top: 50%;
  width: calc(100% + 12px);
  height: 6px;
  transform: rotate(-24deg);
  transform-origin: 0 50%;
  background: var(--sand);
}
.tally-plus { width: 3.25rem; }
.tally-plus i { position: absolute; left: calc(50% - 3px); }
.tally-plus .flat { left: 0; top: calc(50% - 3px); width: 100%; height: 6px; }
@media (min-width: 60em) {
  .scale { grid-template-columns: 5fr 7fr; grid-template-areas: "claim figure" "tally tally"; align-items: end; column-gap: 3rem; }
  .scale-claim { grid-area: claim; }
  .scale-figure { grid-area: figure; justify-self: end; }
  .tally { grid-area: tally; }
}

.events-grid { display: grid; gap: 2rem; margin-top: clamp(3.5rem, 2rem + 5vw, 7rem); }
.events-grid > div { display: grid; gap: 0.625rem; align-content: start; }
.events-grid h3 { color: var(--sand); }
.events-grid p { color: var(--stone); }
@media (min-width: 48em) {
  .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; }
}
.induction {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  max-width: 48rem;
  background: var(--moss);
  font-weight: 500;
}

.lineup-wrap { display: grid; gap: 3rem; margin-block: clamp(3.5rem, 2.5rem + 4vw, 7rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.lineup { width: 100%; border-collapse: collapse; }
.lineup caption { text-align: left; padding-bottom: 1.25rem; font-weight: 600; color: var(--sand); }
.lineup thead th { padding: 0 1rem 0.75rem 0; text-align: left; font-size: var(--fs-small); font-weight: 500; color: var(--stone); }
.lineup tbody th, .lineup td {
  padding: 0.75rem 1rem 0.75rem 0;
  text-align: left;
  vertical-align: top;
  font-size: var(--fs-lead);
  line-height: 1.35;
}
.lineup tbody th { font-family: var(--display); font-weight: 600; color: var(--cream); letter-spacing: -0.01em; }
.lineup td { color: var(--stone); }
.lineup tbody tr:nth-child(odd) { background: rgba(74, 83, 36, 0.55); }
.lineup tbody tr > *:first-child { padding-left: 0.75rem; }
.photo-events figcaption { color: var(--stone); }
@media (max-width: 39.99em) {
  .lineup thead { display: none; }
  .lineup tbody tr { display: grid; padding: 0.75rem; }
  .lineup tbody th, .lineup td { padding: 0; }
  .lineup tbody tr > *:first-child { padding-left: 0; }
}
@media (min-width: 60em) {
  .lineup-wrap { grid-template-columns: 8fr 4fr; column-gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .photo-events { position: sticky; top: 2rem; }
}

/* ---------- the form ---------- */

.form { display: grid; gap: 1.25rem 1.5rem; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--cream); }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .choice legend { font-size: var(--fs-small); font-weight: 600; }
.opt { font-weight: 400; color: var(--bark); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--sage);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.4 var(--text);
  transition: border-color var(--hover) ease;
}
.form textarea { resize: vertical; min-height: 7rem; }
.form select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%233E451E' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
}
@media (hover: hover) and (pointer: fine) {
  .form input:hover, .form select:hover, .form textarea:hover { border-color: var(--olive); }
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--olive); outline-offset: 0; }
.form [aria-invalid="true"] { border-color: var(--error); outline: 1px solid var(--error); outline-offset: -2px; }
.field-error { font-size: var(--fs-small); font-weight: 500; color: var(--error); animation: note-in 220ms var(--ease-out) both; }
.choice { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; border: 0; }
.choice legend { margin-bottom: 0.5rem; padding: 0; width: 100%; }
.choice label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden honeypot, not a rule */
.form-foot { display: grid; gap: 1rem; justify-items: start; margin-top: 0.5rem; }
.btn-submit .btn-label { transition: filter 200ms ease, opacity 200ms ease; }
.btn-submit.is-sending .btn-label { filter: blur(2px); opacity: 0.7; }
.form-status { font-weight: 500; max-width: 34em; }
.form-status:empty { display: none; }
.form-status[data-state] { animation: note-in 260ms var(--ease-out) both; }
.form-status[data-state="success"] { color: var(--olive); font-family: var(--display); font-weight: 600; font-size: var(--fs-lead); line-height: 1.3; }
.form-status[data-state="error"], .form-status[data-state="notice"] { padding: 1rem 1.25rem; background: var(--stone); }
.form-status a { color: var(--olive); font-weight: 600; }
@media (min-width: 40em) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice, .field-full { grid-column: 1 / -1; }
}
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(4rem, 3rem + 5vw, 8rem) 2.5rem;
  background: var(--ink);
  color: var(--cream);
}
.footer-logo { width: min(100%, 64rem); height: auto; fill: var(--cream); transform-origin: 0 100%; }
.footer-grid { display: grid; gap: 2rem; margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.footer-contact { display: grid; gap: 0.5rem; font-size: var(--fs-lead); }
.footer-contact a { text-decoration-color: var(--sand); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.footer-nav { display: grid; gap: 0.375rem; }
.footer-nav a {
  color: var(--stone);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: color var(--hover) ease, text-decoration-color var(--hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { color: var(--cream); text-decoration-color: var(--sand); }
}
.footer-legal { display: grid; gap: 0.75rem; font-size: var(--fs-small); color: var(--stone); max-width: 30em; }
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 5fr 3fr 4fr; align-items: start; }
}

/* =========================================================
   MOTION
   Focal sequence: the headline rises and the roof goes up.
   Scroll: the bag falls down the chute (sticky, no script),
   each floor's lights come on, the roller door rolls up.
   Delight: the 40+ tally. Plus entrances and feedback.
   ========================================================= */

@media (prefers-reduced-motion: no-preference) {

  .hero-title .line > span { animation: line-up 900ms var(--ease-out) both; }
  .hero-title .line:nth-child(1) > span { animation-delay: 120ms; }
  .hero-title .line:nth-child(2) > span { animation-delay: 230ms; }
  .roof-copy > * { animation: rise 800ms var(--ease-out) both; animation-delay: 420ms; }
  .directory { animation: rise 800ms var(--ease-out) 520ms both; }
  .directory li { animation: rise 500ms var(--ease-out) both; }
  .directory li:nth-child(1) { animation-delay: 640ms; }
  .directory li:nth-child(2) { animation-delay: 690ms; }
  .directory li:nth-child(3) { animation-delay: 740ms; }
  .directory li:nth-child(4) { animation-delay: 790ms; }
  .directory li:nth-child(5) { animation-delay: 840ms; }
  .directory li:nth-child(6) { animation-delay: 890ms; }
  .directory li:nth-child(7) { animation-delay: 940ms; }
  .directory li:nth-child(8) { animation-delay: 990ms; }
  .roof-art { transform-origin: 50% 100%; animation: storey 800ms var(--ease-out) 550ms both; }
  .js .floor .props { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out) 200ms, transform 900ms var(--ease-out) 200ms; }
  .js .floor.lit .props { opacity: 1; transform: none; }
  .vent { transform-origin: 50% 100%; animation: vent-up 800ms var(--ease-out) 800ms both; }

  /* the fittings switch on as you reach each floor (JS adds .lit once) */
  .js .floor.lit .ceil-on { animation: flicker 900ms steps(1, end) 150ms both; }
  .js .floor.lit .beam { animation: flicker 900ms steps(1, end) 150ms both, beam-down 900ms var(--ease-out) 150ms both; }

  /* the roller door rolls up as you scroll through the dock */
  @supports (animation-timeline: view()) {
    .roller {
      transform: none;
      animation: roll-up linear both;
      animation-timeline: --dock;
      animation-range: contain 8% contain 70%;
    }
    .footer-logo { animation: wordmark-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }

  .js [data-reveal="rise"] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-out) var(--d, 0ms); }
  .js [data-reveal="rise"].in { opacity: 1; transform: none; }

  .js [data-reveal="shutter"] .frame { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js [data-reveal="shutter"] img { transform: scale(1.12); transition: transform 1500ms cubic-bezier(0.33, 1, 0.68, 1); }
  .js [data-reveal="shutter"].in .frame { clip-path: inset(0 0 0 0); }
  .js [data-reveal="shutter"].in img { transform: none; }

  .js [data-reveal="slip"] .slip { opacity: 0; transform: translateY(-30px) rotate(-6deg); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal="slip"].in .slip { opacity: 1; transform: rotate(-1.2deg); }
  .js [data-reveal="slip"] .slip-check::after { opacity: 0; transform: rotate(45deg) scale(0.6); transition: opacity 200ms ease, transform 260ms var(--ease-out); }
  .js [data-reveal="slip"].in .slip-rows li:nth-child(1) .slip-check::after { opacity: 1; transform: rotate(45deg); transition-delay: 600ms; }
  .js [data-reveal="slip"].in .slip-rows li:nth-child(2) .slip-check::after { opacity: 1; transform: rotate(45deg); transition-delay: 780ms; }
  .js [data-reveal="slip"].in .slip-rows li:nth-child(3) .slip-check::after { opacity: 1; transform: rotate(45deg); transition-delay: 960ms; }
  .js [data-reveal="slip"].in .slip-rows li:nth-child(4) .slip-check::after { opacity: 1; transform: rotate(45deg); transition-delay: 1140ms; }

  .js .whiteboard .steps li { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .js .whiteboard.in .steps li { opacity: 1; transform: none; }
  .js .whiteboard.in .steps li:nth-child(2) { transition-delay: 120ms; }
  .js .whiteboard.in .steps li:nth-child(3) { transition-delay: 240ms; }
  .js .whiteboard.in .steps li:nth-child(4) { transition-delay: 360ms; }
  .js .whiteboard.in .steps li:nth-child(5) { transition-delay: 480ms; }

  .js .tally i { transform: scaleY(0); transition: transform 320ms var(--ease-out); transition-delay: calc(var(--i) * 28ms); }
  .js .tally .cross { transform: rotate(-24deg) scaleX(0); }
  .js .tally.in i { transform: scaleY(1); }
  .js .tally.in .cross { transform: rotate(-24deg) scaleX(1); }
  .js .tally .flat { transform: scaleX(0); transform-origin: 0 50%; }
  .js .tally.in .flat { transform: scaleX(1); }

  .lift-level.tick { animation: tick 360ms var(--ease-out) both; }
}

@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes storey { from { opacity: 0; transform: translateY(20px); } }
@keyframes vent-up { from { transform: translateX(-50%) scaleY(0); } to { transform: translateX(-50%); } }
@keyframes flicker { 0% { opacity: 0.35; } 20% { opacity: 1; } 35% { opacity: 0.45; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes beam-down { from { transform: scaleY(0.4); } }
@keyframes roll-up { from { transform: none; } to { transform: translateY(-101%); } }
@keyframes wordmark-settle { from { transform: scale(0.94); } to { transform: none; } }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Reduced motion: no travel, short fades where they help. The roller door stays open. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 0; transition: opacity 240ms ease; }
  .js [data-reveal].in { opacity: 1; }
  .field-error, .form-status[data-state] { animation: fade 200ms ease both; }
  .btn:active { transform: none; }
  .dock { height: auto; }
  .dock-stage { position: relative; height: 70vh; }
}
