/* ============================================================================
   DESIGN PLAN — ALTUS, project development & construction (fictional demo)

   Design language: the WORKING DRAWING ("Planwerk"). The page is art-directed
   like a set of construction documents — because that is the one visual world
   only a builder owns:
     · the film is cut at its two real scene cuts into THREE scrub acts;
       between them sit short static plan sheets — film, sheet, film, sheet,
       film, sheet (each act scrubs its slice via a per-act manifest `first`)
     · sheets open with an index row  SHEET 01 ····· STRUCTURE  and close with
       a full-width dimension line (Maßkette) carrying the act's measure
     · data sits in plan legends with dotted leaders
     · the reference project carries a real title block (Plankopf) incl.
       sheet no. / scale / revision
     · one dark closing statement (ruler at 100 %, survey crosses) after act III
     · a site-hoarding ticker (Bauzaun band) of materials in outlined caps
     · huge outlined ghost numerals mark each sheet
     · ONE hazard-stripe accent (CTA), because safety yellow is earned, not decor
     · the gauge lives in every act and shows GLOBAL progress (0→33→66→100 %)

   Palette (sampled from footage, frames 0001/0070/0150/0260/0285):
     --ink     #15171a  cool graphite near-black (concrete shadow / steel)
     --bone    #e9e6e0  warm concrete-light off-white
     --concrete#9aa2a8  raw concrete / overcast sky (mid)
     --steel   #6e7b86  cool steel grey-blue (deep mid) — secondary text
     --accent  #f4b400  crane / safety yellow — sparingly
   Type: display "Space Grotesk" (engineered grotesque) / body "Archivo".
   Fixed kit pieces (do not touch): signature intro, branded cursor,
   scroll engine hero + construction-progress gauge.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 640;
  font-display: swap;
  font-style: normal;
}

:root {
  --ink:      #15171a;
  --bone:     #e9e6e0;
  --concrete: #9aa2a8;
  --steel:    #6e7b86;
  --accent:   #f4b400;

  --bone-2: #dfdbd3;       /* slightly deeper bone for section alternation */
  --rule: rgba(21, 23, 26, 0.16);
  --rule-soft: rgba(21, 23, 26, 0.09);
  --grid-line: rgba(21, 23, 26, 0.045);   /* plan-paper grid on light sheets */

  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 12vh, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

/* Lenis smooth scroll (local copy in lib/) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0;
}

/* small surveyor's diamond — the recurring registration mark of the system
   (same shape as the gauge nodes in the hero) */
.diamond {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}

/* ---- signature intro (logo lands into the nav) ----------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bone);
  /* self-healing: if JS never takes over, the splash still clears on its own */
  animation: introFail 1s var(--ease) 2.8s forwards;
}
.intro__brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 8rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;              /* matches .brand so the landing is seamless */
  color: var(--ink);
  will-change: transform;
}
.intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease);
  animation: none;                 /* JS is driving — cancel the fallback */
}
@keyframes introFail { to { opacity: 0; visibility: hidden; } }
html:not(.js) .intro { display: none; }

/* the rest of the bar fades in once the wordmark has taken its seat
   (auto-completes on a timer, so it never depends on JS finishing) */
html.intro-on .site-header__loc,
html.intro-on .nav { animation: navReveal .7s var(--ease) 1.75s both; }
@keyframes navReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  html.intro-on .site-header__loc,
  html.intro-on .nav { animation: none; }
}

/* ---- header / nav ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* loc · centered wordmark · links */
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.7rem, 3.4vw, 2.8rem) var(--pad) clamp(1rem, 2.4vw, 1.6rem);
  color: var(--ink);
  transition: transform .55s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
}
/* scroll-away: hides on scroll-down, returns on scroll-up (JS toggles) */
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__loc {
  justify-self: start;
  position: relative;
  z-index: 1;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(21, 23, 26, 0.82);                  /* dark enough to read on sky */
  text-shadow: 0 1px 14px rgba(233, 230, 224, 0.6); /* halo over busy footage */
  white-space: nowrap;
}
.site-header.is-stuck .site-header__loc { text-shadow: none; }
/* subtle light scrim so the wordmark reads over bright footage — not a flat bar */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(233,230,224,0.6), rgba(233,230,224,0));
  pointer-events: none;
  opacity: 1;
  transition: opacity .5s var(--ease);
}
.site-header.is-stuck {
  background: rgba(233, 230, 224, 0.92);
  backdrop-filter: saturate(1.1) blur(6px);
  box-shadow: 0 1px 0 var(--rule-soft);
}
.site-header.is-stuck::before { opacity: 0; }

.brand {
  justify-self: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);   /* a touch larger, centered */
  letter-spacing: 0.2em;
  text-indent: 0.2em;                          /* optically centre the tracking */
  text-decoration: none;
  position: relative;
  z-index: 1;
}
/* ---- nav (right-hand links) ------------------------------------------------ */
.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.5vw, 2.25rem);
  position: relative;
  z-index: 1;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

/* Build with us sits in a square outlined box, filling on hover */
.nav__reserve {
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.55em 1.1em;
  letter-spacing: 0.06em;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.nav__reserve::after { content: none; }          /* no underline — it's a box */
.nav__reserve:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.7em 1.3em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn--accent { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--lg { font-size: 0.95rem; padding: 0.9em 1.8em; }

/* ---- story hero (engine contract) ----------------------------------------- */
.story { height: var(--story-length, 640vh); position: relative; }
.story__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.story__canvas, .story__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story__canvas { opacity: 0; transition: opacity .5s ease; }
.story.is-ready .story__canvas { opacity: 1; }
.story.is-ready .story__poster { opacity: 0; transition: opacity .5s ease .1s; }

/* cinematic grade: a gentle lens vignette + cool top/bottom scrims. Darkens the
   corners the way a real wide lens does, and quietly buys legibility for the
   overlays without ever laying a flat bar over the footage. */
.story__grade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8,10,12,0.30) 0%, rgba(8,10,12,0) 22%),
    linear-gradient(to top,    rgba(8,10,12,0.40) 0%, rgba(8,10,12,0) 32%),
    radial-gradient(120% 100% at 50% 42%, rgba(8,10,12,0) 50%, rgba(8,10,12,0.46) 100%);
}
/* fine film grain — an SVG noise tile blended over the image. Real footage is
   never this clean; the moving grain is what tips it from "render" to "shot". */
.story__grain {
  position: absolute;
  inset: -50%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  will-change: transform;
  animation: grainshift 0.6s steps(2) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6%, 3%); }
  50%  { transform: translate(4%, -5%); }
  75%  { transform: translate(-3%, -2%); }
  100% { transform: translate(5%, 4%); }
}

.story__overlay {
  position: absolute;
  z-index: 3;
  max-width: min(46ch, 80vw);
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.story__overlay .eyebrow {
  color: var(--bone);
  opacity: 0.92;
  margin-bottom: 1rem;
  text-shadow: 0 1px 18px rgba(8, 10, 12, 0.65), 0 1px 3px rgba(8, 10, 12, 0.5);
}
.story__overlay h1, .story__overlay h2 {
  color: var(--bone);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  /* soft radial scrim behind text only — never a full-width bar. Layered wide
     blurs so the line still reads over bright sky and the pale plaza. */
  text-shadow:
    0 2px 56px rgba(8, 10, 12, 0.66),
    0 1px 22px rgba(8, 10, 12, 0.5),
    0 1px 3px  rgba(8, 10, 12, 0.45);
}
.story__overlay--left  { left: var(--pad); top: 28%; text-align: left; }
.story__overlay--right { right: var(--pad); top: 32%; text-align: right; }
/* the right overlay (envelope act) crosses bright sky and cloud: a soft ellipse
   bleeding off the frame edge buys the missing contrast — grad filter, not a bar */
.story__overlay--right::before {
  content: "";
  position: absolute;
  inset: -24% -42% -24% -28%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 62% 50%, rgba(8, 10, 12, 0.36), rgba(8, 10, 12, 0) 70%);
}
.story__overlay--bottom { left: var(--pad); bottom: 18%; text-align: left; }

.story__handoff-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.4rem;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  text-shadow: 0 1px 18px rgba(8, 10, 12, 0.65), 0 1px 3px rgba(8, 10, 12, 0.5);
}
.story__handoff-cue::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.story__handoff-cue:hover::after { width: 46px; }

/* signature: construction-progress instrument — a horizontal scrubber along the
   foot of the hero. Spans a centred width so it never crowds the overlays; the
   fill/tick travel left→right as the building rises, the figure counts 0→100 %,
   and the active phase name lights up. */
.story__gauge {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  transform: translateX(-50%);
  width: min(680px, 88vw);
  z-index: 4;
  display: grid;
  gap: 0.6rem;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 14px rgba(8, 10, 12, 0.6); /* legible over the footage */
}
.gauge__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.gauge__label {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  white-space: nowrap;
}
.gauge__value {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}
.gauge__unit { font-size: 0.8rem; opacity: 0.7; margin-left: 0.1em; }
.gauge__track {
  position: relative;
  height: 2px;
  background: rgba(233, 230, 224, 0.26);
}
/* fine measure-tape ticks riding above the track — quiet surveyor detail */
.gauge__track::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -8px;
  height: 5px;
  background-image: repeating-linear-gradient(to right,
    rgba(233, 230, 224, 0.34) 0 1px, transparent 1px 3.333%);
  pointer-events: none;
}
.gauge__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
}
.gauge__node {
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  background: var(--bone);
  opacity: 0.5;
  transform: translate(-50%, -50%) rotate(45deg);  /* small diamond surveyor mark */
}
.gauge__tick {
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(8, 10, 12, 0.22);
}
.gauge__phases {
  display: flex;
  justify-content: space-between;
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.gauge__phases b {
  font-weight: 600;
  opacity: 0.45;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.gauge__phases b.is-active { opacity: 1; color: var(--accent); }

/* ---- reveal (one orchestrated pattern for the whole page) ------------------
   Progressive enhancement: content is visible by default. Only when JS is
   present (html.js) do we set the hidden start state, so a JS failure or a
   no-JS client still renders every section. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  html.js .reveal.is-in { opacity: 1; transform: none; }
  html.js .reveal[data-delay="1"] { transition-delay: .08s; }
  html.js .reveal[data-delay="2"] { transition-delay: .16s; }
  html.js .reveal[data-delay="3"] { transition-delay: .24s; }
}

/* ---- closing statement (dark threshold after the trilogy) ------------------
   A graphite band with survey crosses at opposite corners and the progress
   ruler at 100 % — handover complete, the brand idea lands. */
.inter {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(6.5rem, 15vh, 10.5rem);
}
.inter__frame { position: relative; }
/* registration marks: two survey crosses framing the statement */
.inter__frame::before,
.inter__frame::after {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  opacity: 0.38;
  pointer-events: none;
  background:
    linear-gradient(var(--bone), var(--bone)) center / 1px 100% no-repeat,
    linear-gradient(var(--bone), var(--bone)) center / 100% 1px no-repeat;
}
.inter__frame::before { top: -2.4rem; left: var(--pad); transform: translateX(-50%); }
.inter__frame::after  { bottom: -2.4rem; right: var(--pad); transform: translateX(50%); }

.inter__mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 5vh, 3.2rem);
}
.inter__ruler {
  position: relative;
  width: 150px;
  height: 1px;
  background: rgba(233, 230, 224, 0.28);
}
.inter__ruler i {
  position: absolute;
  left: 0; top: -1px;
  height: 3px;
  background: var(--accent);
}
.inter__pct {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: rgba(233, 230, 224, 0.62);
  font-variant-numeric: tabular-nums;
}
/* the statement's asymmetric lead + body pairing */
.inter--idea .inter__lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-left: clamp(0rem, 8vw, 9rem); /* asymmetric, generous left margin */
  text-wrap: balance;
}
.inter--idea .inter__lead em {
  font-style: normal;
  color: var(--accent);
}
.inter--idea .inter__body {
  max-width: 44ch;
  margin-left: auto;
  margin-top: 2.5rem;
  color: rgba(233, 230, 224, 0.74);
  font-size: 1.06rem;
}

/* ---- sheets (short static sections between the film acts) ------------------
   Light plan-paper sections — the pauses between the three scrub acts. Each
   opens with an index row (sheet no. ····· phase), then a compact 7/5 grid:
   body column over a huge outlined ghost numeral + plan legend on one side,
   the offset site photo on the other. A full-width dimension line closes the
   sheet like the bottom edge of a working drawing. Alternate sheets mirror. */
.sheet {
  padding-block: clamp(4.5rem, 10vh, 7rem);
  background-color: var(--bone);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
}

.sheet__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.sheet__no { display: inline-flex; align-items: center; gap: 0.7rem; }
.sheet__no::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.sheet__leader {
  flex: 1;
  border-bottom: 1px dotted rgba(21, 23, 26, 0.35);
  transform: translateY(-0.35em);
}
.sheet__phase { color: var(--steel); }

.sheet__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.sheet--flip .sheet__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sheet--flip .sheet__body   { order: 2; }
.sheet--flip .sheet__detail { order: 1; }

/* dimension line (Maßkette): hairline with perpendicular end ticks, the
   measurement label sitting on the line like on a working drawing */
.dim {
  position: relative;
  margin: 0.95rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.3rem;
}
.dim::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 9px;
  transform: translateY(-50%);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat;
}
.dim__label {
  position: relative;
  padding-inline: 0.9em;
  background: var(--bone);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

.sheet__body { position: relative; padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.sheet__body > * { position: relative; z-index: 1; }

/* ghost numeral — the sheet number, outlined like a stencil on raw concrete.
   Hidden unless text-stroke is supported (a filled fallback would shout). */
.sheet__num {
  display: none;
  position: absolute;
  top: -0.22em;
  right: -0.04em;
  z-index: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(6rem, 13vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: transparent;
  pointer-events: none;
  user-select: none;
}
@supports (-webkit-text-stroke: 1px #000) {
  .sheet__num {
    display: block;
    -webkit-text-stroke: 1.5px rgba(21, 23, 26, 0.15);
  }
}

.sheet__body h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 500;
  max-width: 16ch;
  margin-bottom: 1.3rem;
}
.sheet__body > p {
  color: var(--steel);
  max-width: 42ch;
}

/* plan legend: label ······ value rows with dotted leaders */
.legend {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 40ch;
}
.legend li {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  font-size: 0.92rem;
}
.legend__k { color: var(--steel); letter-spacing: 0.02em; }
.legend__lead {
  flex: 1;
  min-width: 2em;
  border-bottom: 1px dotted rgba(21, 23, 26, 0.35);
  transform: translateY(-0.3em);
}
.legend__v {
  font-family: var(--display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* site photo — printed, bone-mounted, captioned like a survey record */
.sheet__detail {
  margin: 0;
  width: 100%;
}
.sheet__detail img {
  width: 100%;
  height: auto;
  border: 10px solid var(--bone);
  outline: 1px solid var(--rule-soft);
  box-shadow: 0 18px 40px -18px rgba(21, 23, 26, 0.35);
}
.sheet__detail figcaption {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.sheet__detail .diamond { width: 5px; height: 5px; }

/* the sheet's bottom edge: a full-width dimension line with the act's measure */
.sheet__dim { margin-top: clamp(2.6rem, 5vw, 3.6rem); }

/* ---- ticker (site-hoarding band) --------------------------------------------
   Materials in outlined caps rolling past like lettering on a Bauzaun. */
.ticker {
  overflow: hidden;
  padding-block: clamp(1.1rem, 2.6vh, 1.7rem);
  border-block: 1px solid var(--rule);
  background: var(--bone);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 36s linear infinite;
}
.ticker__group {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  padding-right: clamp(1.6rem, 3vw, 2.6rem);
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--concrete);
}
@supports (-webkit-text-stroke: 1px #000) {
  .ticker__group {
    color: transparent;
    -webkit-text-stroke: 1px rgba(21, 23, 26, 0.55);
  }
}
.ticker .diamond { width: 8px; height: 8px; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---- section: reference project with title block ---------------------------- */
.feature {
  background: var(--bone-2);
  padding-block: var(--section-y);
}
.feature__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--concrete);
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
  max-width: 14ch;
}
.feature__body .eyebrow { margin-bottom: 0.9rem; }
.feature__body > p { color: var(--steel); max-width: 42ch; }

/* the Plankopf: a working drawing's title block, borrowed 1:1 */
.titleblock {
  margin-top: 2rem;
  border: 1px solid var(--ink);
  background: var(--bone);
  font-size: 0.88rem;
}
.titleblock__row {
  display: grid;
  grid-template-columns: 36% 1fr;
  border-bottom: 1px solid var(--rule);
}
.titleblock__row .k {
  padding: 0.55rem 0.9rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  border-right: 1px solid var(--rule);
  align-self: center;
}
.titleblock__row .v {
  padding: 0.55rem 0.9rem;
  font-family: var(--display);
  font-weight: 500;
}
.titleblock__foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.titleblock__foot span {
  padding: 0.6rem 0.9rem;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  white-space: nowrap;
}
.titleblock__foot span + span { border-left: 1px solid var(--rule); }
.titleblock__foot b {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-right: 0.5em;
}

/* ---- section: CTA (sheet 04 — your site) + footer --------------------------- */
.cta {
  padding-block: clamp(6rem, 16vh, 11rem);
  text-align: center;
}
/* the one hazard-stripe moment on the page — a short strip, not a banner */
.cta__stripe {
  display: block;
  width: 116px;
  height: 10px;
  margin: 0 auto 2.2rem;
  background: repeating-linear-gradient(-45deg,
    var(--accent) 0 12px, var(--ink) 12px 24px);
}
.cta .eyebrow { margin-bottom: 1.4rem; }
.cta h2 {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-inline: auto;
}
.cta p { margin: 1.4rem auto 2.4rem; max-width: 48ch; color: var(--steel); }

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(3.5rem, 8vh, 6rem) 2.5rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(233, 230, 224, 0.16);
}
.footer__brand { font-family: var(--display); font-size: 1.8rem; letter-spacing: 0.16em; font-weight: 600; }
.footer__brand + p { margin-top: 1rem; color: rgba(233,230,224,0.64); max-width: 34ch; font-size: 0.95rem; }
.footer__col h3 {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--concrete);
  margin-bottom: 1rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer__col a { text-decoration: none; font-size: 0.95rem; color: rgba(233,230,224,0.82); }
.footer__col a:hover { color: var(--bone); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.8rem;
  font-size: 0.78rem;
  color: rgba(233,230,224,0.55);
  letter-spacing: 0.03em;
}

/* ---- bespoke native cursor (fine pointers only) ---------------------------- */
@media (hover: hover) and (pointer: fine) {
  /* a slim arrow in crane-yellow with a graphite edge; tip hotspot at 3,2 */
  html { cursor: url("img/cursor-arrow.svg") 3 2, auto; }
  /* clickable things get a small filled disc, centred hotspot */
  a, button, label, summary, select,
  [role="button"], .lang button, [data-cursor] {
    cursor: url("img/cursor-dot.svg") 9 9, pointer;
  }
  /* text fields keep a real caret */
  input, textarea { cursor: text; }
}

/* ---- language switch ------------------------------------------------------- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lang button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--steel);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button.is-active { color: var(--ink); }
.lang span { color: var(--rule); }

/* ---- responsive ------------------------------------------------------------ */
@media (max-width: 900px) {
  .sheet__grid,
  .sheet--flip .sheet__grid { grid-template-columns: 1fr; }
  .sheet--flip .sheet__body   { order: 0; }
  .sheet--flip .sheet__detail { order: 0; }
  .sheet__body { padding-top: 1.2rem; }
  .sheet__num { top: -0.32em; right: 0; }
  .sheet__detail { width: min(78%, 460px); margin-left: auto; }
  .sheet--flip .sheet__detail { margin-left: 0; margin-right: auto; }
  .inter--idea .inter__lead { margin-left: 0; }
  .inter--idea .inter__body { margin-left: 0; }
  .feature__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .story__gauge { display: none; }     /* keep phones clean + memory-light */
  .story__overlay h1, .story__overlay h2 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .sheet__head { letter-spacing: 0.16em; font-size: 0.7rem; }
  .sheet__detail { width: 100%; }
  .legend { max-width: none; }
  .inter__frame::before, .inter__frame::after { display: none; }
  .titleblock__foot { grid-template-columns: 1fr; }
  .titleblock__foot span + span { border-left: 0; border-top: 1px solid var(--rule); }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  /* tight phones: drop the location + section links, keep wordmark + box */
  .site-header { grid-template-columns: 1fr auto; }
  .site-header__loc,
  .nav a:not(.nav__reserve) { display: none; }
  .brand { justify-self: start; }
}

/* ---- reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .story__grain { animation: none; }
  .ticker__track { animation: none; }
  * { scroll-behavior: auto; }
}
