/*
 * styles.css — Creative Cargo Lifts
 * Design system: "The Cable Line" — one taut black steel cable spine
 * threads the nav rule, hero frame edge, section margins, photo/video
 * frames, and footer terminus. Warm limestone/cedar fields; powder-coat
 * steel structure; one whispered Gulf-Aqua accent. Zilla Slab + Hanken.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  --color-primary: #9A3B24;        /* Cedar Rust — ink + CTA */
  --color-secondary: #1B1A17;      /* Powder-Coat Steel — the cable spine */
  --color-accent: #2C6E6A;         /* Gulf Aqua — one whispered accent */
  --color-bg: #F4EDE1;             /* Limestone — dominant field */
  --color-surface: #FBF7EF;        /* Warm Chalk — quiet lifted blocks */
  --color-cedar-wash: #E7D3C6;     /* Cedar wash — featured teaser band */
  --color-deep-cedar: #6E2A19;     /* Deep Cedar — the lead-form "cab" */
  --color-cream: #F7F1E6;          /* Cream ink on dark fields */
  --color-cream-warm: #EAD9C9;     /* warm cedar-tinted cream */
  --color-text: #211E19;           /* Warm Ink */
  --color-text-secondary: #5C544A;
  --color-text-on-primary: #FBF7EF;
  --color-border: #DCD1BF;

  --font-primary: 'Zilla Slab', Georgia, serif;      /* built, slab, headlines */
  --font-secondary: 'Hanken Grotesk', system-ui, sans-serif; /* warm, plainspoken body */
  --font-size-base: 17px;
  --spacing-base: 8px;

  --motion-duration: 240ms;
  --motion-duration-slow: 520ms;
  --motion-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --wrap-max: 1180px;
  --wrap-pad: clamp(1.25rem, 5vw, 3.5rem);
  --rail: clamp(1.5rem, 3.5vw, 3rem);
  --spine-w: 2px;
}

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--font-size-base, 16px); scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary, sans-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  padding-bottom: 42px; /* required */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Focus states — WCAG AA */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* Skip navigation link — WCAG 2.4.1 (managed by fix_ada_safe.py) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 0.75rem 1.25rem; background: var(--color-surface);
  color: var(--color-primary); font-weight: 700; text-decoration: none;
  border: 2px solid var(--color-primary); border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-primary); font-weight: 700; line-height: 1.06; color: var(--color-text); }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { max-width: 68ch; }
strong { font-weight: 700; }
.text-cedar { color: var(--color-primary); }
.text-aqua { color: var(--color-accent); }

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5; color: var(--color-text-secondary);
  max-width: 60ch; font-weight: 400;
}

/* ============================================================
   Layout primitives — wrap, section, the cable spine
   ============================================================ */
.wrap { max-width: var(--wrap-max); margin-inline: auto; position: relative;
  padding-left: calc(var(--wrap-pad) + var(--rail)); padding-right: var(--wrap-pad); }
.wrap--narrow { max-width: 820px; }

.section { position: relative; padding-block: clamp(3.25rem, 7vw, 6rem); }

/* The cable spine — one continuous steel hairline down the left margin,
   drawn per-section so it stays visible on top of every field. Sections
   touch, so the segments read as one line threading the whole page. */
.section::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: max(var(--wrap-pad), calc(50% - var(--wrap-max) / 2 + var(--wrap-pad)));
  width: var(--spine-w); background: var(--color-secondary);
  z-index: 2; pointer-events: none;
}
/* On dark/cedar fields the steel line would vanish — lift it to a warm hairline */
.section--steel::before,
.section--deep-cedar::before { background: color-mix(in srgb, var(--color-cream) 55%, transparent); }
.section--cedar::before { background: color-mix(in srgb, var(--color-secondary) 70%, var(--color-cream) 30%); }
.section--flush::before { content: none; }

/* Interior headers and the ledger also sit on the spine */
.pagehead, .ledger { position: relative; }
.pagehead::before, .ledger::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: max(var(--wrap-pad), calc(50% - var(--wrap-max) / 2 + var(--wrap-pad)));
  width: var(--spine-w); background: var(--color-secondary);
  z-index: 2; pointer-events: none;
}

/* Rail — content sits just right of the spine; rubric numerals hang on it */
.rail { position: relative; padding-left: var(--rail); }

/* ============================================================
   Buttons & links
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-secondary); font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; transition: background var(--motion-duration) var(--motion-ease),
    color var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
}
.btn--primary { background: var(--color-primary); color: var(--color-text-on-primary); }
.btn--primary:hover { background: var(--color-deep-cedar); }
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { background: var(--color-primary); color: var(--color-text-on-primary); }
.btn--cream { background: var(--color-surface); color: var(--color-primary); }
.btn--cream:hover { background: var(--color-cream); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--color-text);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: color var(--motion-duration) var(--motion-ease), border-color var(--motion-duration) var(--motion-ease);
}
.link-quiet:hover { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.link-quiet .ph { color: var(--color-accent); }

/* A single Gulf-Aqua node dot */
.aqua-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); display: inline-block; }

/* ============================================================
   Navigation — the cable spine's first segment is the bottom rule
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  height: 68px; padding-inline: clamp(1.25rem, 4vw, 3rem);
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-secondary); /* cable spine start */
  overflow: visible;
}
.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__brand img { height: 40px; width: auto; max-width: 200px; display: block; }
.nav__menu { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2rem); list-style: none; }
.nav__link {
  font-family: var(--font-secondary); font-size: 0.9375rem; /* 15px floor */
  color: var(--color-text); font-weight: 500;
  transition: color var(--motion-duration) var(--motion-ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-primary); }
.nav__link[aria-current="page"] { font-weight: 600; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--color-primary); color: var(--color-text-on-primary);
  padding: 0.55rem 1.05rem; border-radius: 3px;
  font-family: var(--font-secondary); font-weight: 600; font-size: 0.9375rem;
  transition: background var(--motion-duration) var(--motion-ease);
}
.nav__cta:hover { background: var(--color-deep-cedar); }
.nav__cta .ph { font-size: 1.05rem; }
.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.7rem; color: var(--color-text); padding: 0.25rem;
}

/* ============================================================
   Hero — docked install frame + cable spine
   ============================================================ */
.hero { position: relative; background: var(--color-bg); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: max(var(--wrap-pad), calc(50% - var(--wrap-max) / 2 + var(--wrap-pad)));
  width: var(--spine-w); background: var(--color-secondary); z-index: 3; pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 48% 52%; align-items: stretch;
  min-height: 88vh;
}
.hero__type {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) clamp(2.5rem, 5vw, 4.5rem)
           max(var(--wrap-pad), calc(50vw - var(--wrap-max) / 2 + var(--wrap-pad) + var(--rail)));
  position: relative;
}
.hero__statement {
  font-family: var(--font-primary); font-weight: 700;
  font-size: clamp(2.9rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--color-text);
}
.hero__statement .accent { color: var(--color-primary); }
.hero__sub { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--color-text-secondary); max-width: 42ch; }
.hero__actions { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero__seelink { position: relative; }
.hero__seelink .aqua-dot { position: absolute; left: -1.05rem; top: 50%; transform: translateY(-50%); }

.hero__frame {
  position: relative; align-self: stretch;
  border-left: var(--spine-w) solid var(--color-secondary); /* the cable-rule = frame inner edge = spine */
  min-height: 88vh; overflow: hidden; /* image bleeds off top & right of the field */
}
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
  filter: saturate(1.04) contrast(1.02);
}

/* ============================================================
   Credibility ledger — one struck slab line on the cable rule
   ============================================================ */
.ledger { background: var(--color-bg); padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.ledger__line {
  font-family: var(--font-primary); font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.5rem); line-height: 1.35; color: var(--color-text);
  padding-top: 1.4rem; border-top: 2px solid var(--color-secondary); /* struck across the steel rule */
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.9rem;
}
.ledger__line .dot { color: var(--color-border); font-weight: 400; }
.ledger__line .exclusive { color: var(--color-primary); }

/* ============================================================
   Problem / narrative — asymmetric copy + atmosphere field
   ============================================================ */
.problem { position: relative; overflow: hidden; }
.problem__grid { display: grid; grid-template-columns: 1.55fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.problem__atmos {
  position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
  background-size: cover; background-position: center;
  opacity: 0.24; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent);
          mask-image: linear-gradient(to left, #000 45%, transparent);
}
.problem__grid > * { position: relative; z-index: 1; }

.rubric-num {
  font-family: var(--font-primary); font-weight: 700; color: var(--color-primary);
  font-size: clamp(1rem, 1.4vw, 1.15rem); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
}
.rubric-num::after { content: ""; width: 2rem; height: 2px; background: var(--color-secondary); }

.prose p + p { margin-top: 1.15rem; }
.prose p { color: var(--color-text); }

/* ============================================================
   Floor directory — services read as elevator levels on the spine
   ============================================================ */
.floors { list-style: none; }
.floor {
  position: relative;
  display: grid; grid-template-columns: minmax(3.5rem, auto) 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.4rem, 2.6vw, 2.1rem) 0;
  border-top: 2px solid var(--color-secondary); /* each level seated on its own cable-rule */
  transition: background var(--motion-duration) var(--motion-ease);
}
.floor:last-child { border-bottom: 2px solid var(--color-secondary); }
.floor__num {
  font-family: var(--font-primary); font-weight: 700; color: var(--color-primary);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1;
}
.floor__body h3 { margin-bottom: 0.35rem; }
.floor__desc { color: var(--color-text-secondary); font-size: 1rem; max-width: 60ch; }
.floor__meta { justify-self: end; }
/* the aqua platform-dot rides to the hovered/active level, sitting on the spine */
.floor::before {
  content: ""; position: absolute; left: calc(-1 * var(--rail) - 4px); top: 50%;
  width: 11px; height: 11px; border-radius: 50%; background: var(--color-accent);
  transform: translateY(-50%) scale(0);
  transition: transform var(--motion-duration) var(--motion-ease);
}
.floor:hover::before, .floor:focus-within::before, .floor.is-active::before { transform: translateY(-50%) scale(1); }
.floor:hover, .floor.is-active { background: color-mix(in srgb, var(--color-surface) 70%, transparent); }
.floor__link { color: var(--color-text); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.floor__link:hover { color: var(--color-primary); }
.floor__link .ph { color: var(--color-accent); }

/* Full services page: a material inset at one level */
.floor--material { grid-template-columns: minmax(3.5rem, auto) 1fr; }
.floor__inset {
  grid-column: 1 / -1; margin-top: 1rem;
  border: var(--spine-w) solid var(--color-secondary); overflow: hidden;
  max-height: 260px;
}
.floor__inset img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Featured teaser — proof hung on the cable line
   ============================================================ */
.teaser { background: var(--color-cedar-wash); }
.teaser__grid { display: grid; grid-template-columns: 0.95fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.teaser__frame { border: var(--spine-w) solid var(--color-secondary); overflow: hidden; aspect-ratio: 4 / 5; }
.teaser__frame img { width: 100%; height: 100%; object-fit: cover; }
.teaser__body h2 { color: var(--color-deep-cedar); }
.teaser__body p { margin-top: 1rem; color: var(--color-text); }
.teaser__watch { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 600; color: var(--color-text); }
.teaser__ring {
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 2px solid var(--color-accent); display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-accent); transition: transform var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.teaser__watch:hover .teaser__ring { box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent) 22%, transparent); }
.teaser__watch:hover { color: var(--color-primary); }

/* ============================================================
   Lead form "cab" — deep-cedar enclosed stop on the spine
   ============================================================ */
.leadform { background: var(--color-deep-cedar); color: var(--color-cream); }
.leadform__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.leadform__intro h2 { color: var(--color-cream); }
.leadform__intro p { margin-top: 1rem; color: var(--color-cream-warm); }
.leadform__phone { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-primary); font-size: 1.5rem; font-weight: 600; color: var(--color-cream); }
.leadform__phone .ph { color: var(--color-accent); }

/* ============================================================
   Forms — warm chalk inputs, aqua focus rings
   ============================================================ */
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-row--two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; }
.field input, .field textarea {
  font-family: var(--font-secondary); font-size: 1rem; color: var(--color-text);
  background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: 3px;
  padding: 0.8rem 0.95rem; width: 100%;
  transition: border-color var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 30%, transparent);
}
.leadform .field label { color: var(--color-cream); }
.contact-form .btn[type="submit"] { justify-self: start; margin-top: 0.35rem; }

/* Contact-page form panel edged by the cable-rule */
.formpanel {
  background: var(--color-surface); border: var(--spine-w) solid var(--color-secondary);
  padding: clamp(1.6rem, 4vw, 2.75rem);
}

/* ============================================================
   Phone-CTA band — the plain confident close
   ============================================================ */
.callband { background: var(--color-primary); color: var(--color-text-on-primary); }
.callband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.callband__line { font-family: var(--font-primary); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--color-cream); max-width: 22ch; }
.callband__right { display: flex; flex-direction: column; gap: 0.4rem; }
.callband__phone {
  font-family: var(--font-primary); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--color-cream); line-height: 1; letter-spacing: -0.01em;
  border-bottom: 3px solid transparent; align-self: flex-start;
  transition: border-color var(--motion-duration) var(--motion-ease);
}
.callband__phone:hover { border-bottom-color: var(--color-accent); }
.callband__hours { font-family: var(--font-secondary); font-size: 1rem; color: var(--color-cream-warm); }

/* ============================================================
   Interior page header
   ============================================================ */
.pagehead { position: relative; overflow: hidden; background: var(--color-bg); padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.pagehead__atmos {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background-size: cover; background-position: center; opacity: 0.22; z-index: 0;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent);
          mask-image: linear-gradient(to left, #000 40%, transparent);
}
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead__rubric { font-family: var(--font-primary); font-weight: 700; color: var(--color-primary); font-size: 1.05rem; margin-bottom: 0.9rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.pagehead__rubric::after { content: ""; width: 2rem; height: 2px; background: var(--color-secondary); }
.pagehead h1 { max-width: 18ch; }
.pagehead .lead { margin-top: 1.3rem; }

/* ============================================================
   About narrative — rule-and-runover pulled sentence
   ============================================================ */
.pullline {
  font-family: var(--font-primary); font-weight: 600; color: var(--color-primary);
  font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.2;
  margin: 2.5rem 0; padding-top: 1.5rem;
  border-top: 2px solid var(--color-secondary);
  max-width: none; margin-left: clamp(-3rem, -4vw, -1rem);
}
.pullline .aqua { color: var(--color-accent); }

/* ============================================================
   Work — gallery + native video, all on the same steel edge
   ============================================================ */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.gallery figure { margin: 0; }
.gallery figure:nth-child(2) { margin-top: clamp(0, 6vw, 4rem); }
.gallery__frame { border: var(--spine-w) solid var(--color-secondary); overflow: hidden; }
.gallery__frame img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.gallery figcaption { margin-top: 0.85rem; font-size: 0.95rem; color: var(--color-text-secondary); line-height: 1.5; }
.gallery figcaption strong { color: var(--color-primary); font-weight: 600; }

.videoblock { background: var(--color-surface); }
.videoblock__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.videoblock__label { font-family: var(--font-primary); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.videoblock__label .ph { color: var(--color-accent); vertical-align: -2px; margin-right: 0.4rem; }
.videoframe {
  max-width: 380px; width: 100%; aspect-ratio: 9 / 16;
  border: var(--spine-w) solid var(--color-secondary); overflow: hidden; background: #000;
}
.videoframe video { width: 100%; height: 100%; object-fit: cover; }
.videoblock__caption { color: var(--color-text-secondary); font-size: 0.95rem; max-width: 46ch; }

/* ============================================================
   Certified-dealer callout — riveted onto the one steel band
   ============================================================ */
.steelband { position: relative; background: var(--color-secondary); color: var(--color-cream); overflow: hidden; }
.steelband__tex { position: absolute; inset: 0; opacity: 0.14; background-size: cover; background-position: center; z-index: 0; }
.steelband .wrap { position: relative; z-index: 1; }
.steelband__line {
  font-family: var(--font-primary); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.28; max-width: 24ch; padding-top: 1.4rem; border-top: 2px solid color-mix(in srgb, var(--color-cream) 45%, transparent);
}
.steelband__line .place { color: var(--color-cream-warm); }
.steelband__tick { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; color: var(--color-cream-warm); font-family: var(--font-secondary); font-size: 0.95rem; }
.steelband__tick .aqua-dot { flex-shrink: 0; }

/* ============================================================
   Contact facts stacked as floor-levels on the spine
   ============================================================ */
.facts { list-style: none; margin-top: 0.5rem; }
.facts li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.05rem 0; border-top: 2px solid var(--color-secondary);
  font-family: var(--font-secondary); font-size: 1.1rem;
}
.facts li:last-child { border-bottom: 2px solid var(--color-secondary); }
.facts .ph { color: var(--color-primary); font-size: 1.4rem; flex-shrink: 0; }
.facts a { color: var(--color-primary); font-family: var(--font-primary); font-weight: 600; }
.facts a:hover { border-bottom: 2px solid var(--color-accent); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ============================================================
   Footer — dark steel; the cable spine docks at its top edge
   ============================================================ */
.footer { position: relative; background: var(--color-secondary); color: var(--color-cream); border-top: 2px solid var(--color-secondary); }
.footer .wrap { position: relative; z-index: 1; padding-left: var(--wrap-pad); }
.footer__motif { position: absolute; top: 16px; right: clamp(1rem, 4vw, 3rem); width: 58px; height: auto; opacity: 0.15; z-index: 0; filter: brightness(0) invert(1); pointer-events: none; }
.footer__tick { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--color-accent) 0 64px, color-mix(in srgb, var(--color-cream) 30%, transparent) 64px); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: clamp(1.75rem, 4vw, 3.5rem); padding-block: clamp(2.75rem, 5vw, 4rem); }
.footer__brand img { height: 34px; width: auto; max-width: 160px; margin-bottom: 1rem; }
.footer__positioning { color: var(--color-cream-warm); max-width: 34ch; font-size: 0.98rem; line-height: 1.55; }
.footer__zone h4 { font-family: var(--font-primary); font-size: 1rem; font-weight: 600; color: var(--color-cream); margin-bottom: 0.9rem; letter-spacing: 0.02em; }
.footer__links { list-style: none; display: grid; gap: 0.55rem; }
.footer__links a { color: var(--color-cream); font-size: 0.98rem; }
.footer__links a:hover { color: var(--color-accent); }
.footer__contact { list-style: none; display: grid; gap: 0.7rem; font-size: 0.98rem; color: var(--color-cream); }
.footer__contact li { display: flex; align-items: center; gap: 0.6rem; }
.footer__contact .ph { color: var(--color-cream-warm); font-size: 1.15rem; }
.footer__contact a { color: var(--color-cream); font-weight: 600; }
.footer__contact a:hover { color: var(--color-accent); }
.footer__copyright { border-top: 1px solid color-mix(in srgb, var(--color-cream) 18%, transparent); padding-block: 1.25rem; font-size: 0.9rem; color: var(--color-cream-warm); }

/* ============================================================
   Reveal-gating floor — visible without JS; hidden only under html.js
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--motion-duration-slow) var(--motion-ease), transform var(--motion-duration-slow) var(--motion-ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
/* Hero "print hangs true" — trues level onto the cable baseline once */
html.js .reveal--hang { opacity: 0; transform: translateY(-10px) scale(1.015); }
html.js .reveal--hang.is-in { opacity: 1; transform: translateY(0) scale(1); transition: opacity var(--motion-duration-slow) var(--motion-ease), transform var(--motion-duration-slow) var(--motion-ease); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal--hang { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Gallery lightbox — scaffolded shared mechanism (do not remove)
   ============================================================ */
.lightbox-zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 320; display: none; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 2.5rem); }
.lightbox.is-open { display: flex; animation: lightbox-in var(--motion-duration) var(--motion-ease); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox.is-open { animation: none; } }
.lightbox__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-secondary) 90%, transparent); }
.lightbox__frame { position: relative; z-index: 1; margin: 0; max-width: min(1200px, 92vw); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.lightbox__img { max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; border: var(--spine-w) solid var(--color-secondary); box-shadow: 0 24px 80px -16px color-mix(in srgb, var(--color-secondary) 70%, transparent); }
.lightbox__caption { font-family: var(--font-secondary); font-size: 0.9rem; line-height: 1.5; color: var(--color-cream); text-align: center; max-width: 60ch; }
.lightbox__counter { position: absolute; bottom: 1.1rem; left: 50%; transform: translateX(-50%); z-index: 1; font-family: var(--font-secondary); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--color-cream); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; z-index: 2; width: 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; background: var(--color-surface); color: var(--color-text); box-shadow: 0 2px 10px color-mix(in srgb, var(--color-secondary) 25%, transparent); font-size: 1.15rem; line-height: 1; }
.lightbox__close:hover, .lightbox__close:focus-visible, .lightbox__prev:hover, .lightbox__prev:focus-visible, .lightbox__next:hover, .lightbox__next:focus-visible { color: var(--color-accent); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__caption[hidden], .lightbox__counter[hidden], .lightbox__prev[hidden], .lightbox__next[hidden] { display: none; }

/* ============================================================
   404
   ============================================================ */
.notfound { min-height: 62vh; display: flex; align-items: center; }
.notfound__num { font-family: var(--font-primary); font-weight: 700; font-size: clamp(4rem, 12vw, 8rem); color: var(--color-primary); line-height: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .problem__grid { grid-template-columns: 1fr; }
  .teaser__grid, .leadform__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav → hamburger drawer; phone is the first drawer item */
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-surface); border-bottom: 2px solid var(--color-secondary);
    padding: 0.5rem clamp(1.25rem, 5vw, 2rem) 1.5rem;
    transform: translateY(-140%); transition: transform var(--motion-duration) var(--motion-ease);
    max-height: calc(100vh - 68px); overflow-y: auto; z-index: 99;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; order: 2; }
  .nav__link { padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); font-size: 1.05rem; }
  .nav__cta { order: 1; justify-content: center; margin: 0.75rem 0; padding: 0.85rem 1rem; font-size: 1rem; }

  /* Hero flips: type above, frame becomes a right-bleeding band (never a generic stack) */
  .hero__grid { grid-template-columns: 1fr; min-height: auto; }
  .hero__type { padding: clamp(2.25rem, 8vw, 3rem) var(--wrap-pad); padding-left: calc(var(--wrap-pad) + var(--rail)); }
  .hero__frame { min-height: 56vh; margin-right: calc(-1 * var(--wrap-pad)); margin-top: 0; }
  .hero__frame img { object-position: center 25%; }

  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(2) { margin-top: 0; }

  .floor { grid-template-columns: auto 1fr; row-gap: 0.5rem; }
  .floor__meta { grid-column: 2; justify-self: start; }
  .floor--material { grid-template-columns: auto 1fr; }

  .callband__inner { flex-direction: column; align-items: flex-start; }
  .facts li { font-size: 1rem; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .ledger__line { font-size: 1.05rem; }
  .hero__statement { font-size: clamp(2.6rem, 11vw, 3.4rem); }
}

/* ============================================================
   Self-hosted Google Fonts (localized by 20_performance_sweep)
   ============================================================ */
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpQ59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpS59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpT59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpd59CxCis4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpQ59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpS59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpT59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpd59CxCis4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpQ59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpS59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpT59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpd59CxCis4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpQ59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* vietnamese */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpS59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpT59CxCis4UvI.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ieVn2YZDLWuGJpnzaiwFXS9tYtpd59CxCis4.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dFa6ZfeM_74wlPZtksIFajQ6_V6LVlBKdA.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dFa6ZfeM_74wlPZtksIFajo6_V6LVlA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dFa5ZfeM_74wlPZtksIFYskZ6H2pW3pwfa3Efg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dFa5ZfeM_74wlPZtksIFYskZ6HOpW3pwfa0.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/dFa5ZfeM_74wlPZtksIFYuUe6H2pW3pwfa3Efg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/dFa5ZfeM_74wlPZtksIFYuUe6HOpW3pwfa0.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dFa5ZfeM_74wlPZtksIFYoEf6H2pW3pwfa3Efg.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dFa5ZfeM_74wlPZtksIFYoEf6HOpW3pwfa0.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
