﻿:root {
  color-scheme: dark;
  --obsidian: #0a0b0c;
  --charcoal: #16181b;
  --slate: #354047;
  --concrete: #b8b2a7;
  --paper: #ededed;
  --muted: #8b8d91;
  --gold: #c2a052;
  --gold-strong: #d8bf82;
  --silver: #d3d4d6;
  --silver-dim: #9a9ca0;
  --red: #8b1e1e;
  --line: rgba(190, 186, 176, 0.2);
  --edge: rgba(194, 160, 82, 0.55);
  --frame: min(100vw, 480px);
  --pad: clamp(20px, 6vw, 32px);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Archivo", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--obsidian);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--obsidian);
  font-family: var(--sans);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: var(--pad);
  top: 12px;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--paper);
  color: var(--obsidian);
  padding: 10px 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-menu,
.screen-rail {
  left: 50%;
  width: var(--frame);
  transform: translateX(-50%);
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 22px) var(--pad) 14px;
  pointer-events: none;
}

.brand,
.menu-toggle {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  height: 42px;
  width: auto;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.brand-copy span:first-child {
  font-size: 1.12rem;
  letter-spacing: 0.38em;
  font-weight: 500;
}

.brand-copy span:last-child {
  color: var(--concrete);
  font-size: 0.62rem;
  letter-spacing: 0.46em;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}

.menu-toggle span:not(.sr-only) {
  width: 27px;
  height: 1px;
  background: currentColor;
  transition: transform 260ms ease, opacity 260ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  inset: 0;
  left: 50%;
  width: var(--frame);
  transform: translateX(-50%);
  z-index: 18;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: calc(env(safe-area-inset-top) + 104px) var(--pad) calc(env(safe-area-inset-bottom) + 30px);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(178, 135, 47, 0.1), transparent 55%),
    linear-gradient(rgba(184, 178, 167, 0.05) 1px, transparent 1px) 0 0 / 42px 42px,
    #07090a;
}

.site-menu[hidden] {
  display: none;
}

.menu-eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
}

.menu-list {
  align-self: center;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  min-height: 68px;
  padding: 0 2px 0 20px;
  border-left: 1px solid var(--edge);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--serif);
  text-transform: uppercase;
  font-size: 1.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: padding-left 240ms ease, color 240ms ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  padding-left: 30px;
  color: #e9dcc0;
}

.menu-list a::after {
  content: attr(data-index);
  align-self: center;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(242, 242, 242, 0.6);
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.menu-footer a {
  color: var(--gold);
  text-decoration: none;
}

.story {
  position: fixed;
  inset: 0;
  left: 50%;
  width: var(--frame);
  transform: translateX(-50%);
  display: flex;
  flex-flow: row nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--obsidian);
}

.story::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.poster {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.poster::before {
  content: attr(data-index);
  position: absolute;
  right: var(--pad);
  top: calc(env(safe-area-inset-top) + 116px);
  z-index: 2;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0 var(--pad) auto var(--pad);
  top: calc(env(safe-area-inset-top) + 86px);
  z-index: 2;
  height: 1px;
  background: var(--line);
}

.poster-image,
.contact-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster-image {
  z-index: -1;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.001);
  transition: transform 1600ms ease, opacity 900ms ease;
  will-change: transform;
}

.poster.is-active .poster-image {
  opacity: 1;
  transform: scale(1.035);
}

.poster--structure .poster-image {
  object-position: 42% 50%;
}

.poster--conditions .poster-image {
  object-position: 50% 44%;
}

.poster--architecture .poster-image {
  object-position: 54% 50%;
}

.poster--mobility .poster-image {
  object-position: 58% 52%;
}

.poster-grid {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  align-content: end;
  gap: 17px;
  padding: calc(env(safe-area-inset-top) + 104px) var(--pad) calc(env(safe-area-inset-bottom) + 104px);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.62);
}

.poster--structure .poster-grid {
  align-content: center;
  padding-right: var(--pad);
  padding-bottom: calc(env(safe-area-inset-bottom) + 82px);
}

.poster--conditions .poster-grid,
.poster--architecture .poster-grid {
  align-content: start;
  padding-top: calc(env(safe-area-inset-top) + 136px);
}

.poster--architecture .poster-grid {
  gap: 12px;
  padding-top: calc(env(safe-area-inset-top) + 126px);
}

.poster--mobility .poster-grid {
  align-content: center;
  padding-right: var(--pad);
}

.poster--contact .poster-grid {
  align-content: start;
  gap: 14px;
  padding-top: calc(env(safe-area-inset-top) + 126px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 118px);
  text-shadow: none;
}

.kicker {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.67rem;
  line-height: 1.45;
  letter-spacing: 0.28em;
  font-weight: 650;
}

.kicker::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 14px;
  background: var(--gold);
}

.poster-title {
  max-width: 11ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.05rem, 16vw, 4.65rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poster--structure .poster-title {
  max-width: 100%;
  font-size: clamp(2.42rem, 10.9vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.025em;
}

.poster--conditions .poster-title,
.poster--mobility .poster-title,
.poster--contact .poster-title {
  font-size: clamp(2.35rem, 13vw, 3.65rem);
  line-height: 0.97;
}

.poster--architecture .poster-title {
  max-width: 100%;
  font-size: clamp(2.05rem, 10.8vw, 3rem);
  line-height: 0.98;
}

.poster--mobility .poster-title {
  max-width: 100%;
  font-size: clamp(2.16rem, 11vw, 3.1rem);
  line-height: 0.98;
}

.poster-copy {
  max-width: 25ch;
  margin: 0;
  color: var(--concrete);
  font-size: 1rem;
  line-height: 1.62;
}

.text-cta,
.quiet-link,
.inquiry-form button {
  justify-self: start;
  min-height: 46px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  font-weight: 700;
}

/* Filled gold call-to-action button — one per section */
.text-cta,
.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 12px;
  padding: 0 18px;
  color: var(--obsidian);
  background: linear-gradient(180deg, #c99a3c, var(--gold));
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: filter 200ms ease, transform 200ms ease;
}

.text-cta:hover,
.quiet-link:hover,
.text-cta:focus-visible,
.quiet-link:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.text-cta::after,
.quiet-link::after {
  content: "→";
  font-size: 0.95rem;
  line-height: 1;
}

.vertical-note {
  position: absolute;
  z-index: 2;
  right: calc(var(--pad) - 4px);
  bottom: calc(env(safe-area-inset-bottom) + 118px);
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(242, 242, 242, 0.52);
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
}

.marker-set span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(178, 135, 47, 0.09), 0 0 18px rgba(178, 135, 47, 0.38);
}

.marker-set span::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--paper);
}

.process-list {
  display: grid;
  gap: 1px;
  margin: 2svh 0 0;
  padding: 0;
  list-style: none;
  max-width: 335px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 5px 12px;
  padding: 10px 0;
  color: var(--concrete);
  font-size: 0.78rem;
  line-height: 1.36;
  border-bottom: 1px solid rgba(184, 178, 167, 0.16);
}

.process-list li:last-child {
  border-bottom: 0;
}

.process-list span {
  grid-row: 1 / 3;
  color: var(--gold);
  letter-spacing: 0.18em;
}

.process-list strong {
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
}

.contact-field {
  z-index: -1;
  background: var(--obsidian);
}

.contact-field::before,
.contact-field::after {
  content: "";
  position: absolute;
  inset: 0;
}

.contact-field::before {
  background-image:
    linear-gradient(rgba(184, 178, 167, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 178, 167, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.contact-field::after {
  border-left: 1px solid var(--edge);
  border-right: 1px solid rgba(184, 178, 167, 0.12);
  margin: 0 var(--pad);
}

.contact-field span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 28px rgba(178, 135, 47, 0.4);
}

.contact-field span:nth-child(1) { left: 22%; top: 24%; }
.contact-field span:nth-child(2) { right: 18%; top: 34%; }
.contact-field span:nth-child(3) { left: 36%; bottom: 28%; background: var(--red); }
.contact-field span:nth-child(4) { right: 32%; bottom: 18%; }

.inquiry-form {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
}

.inquiry-form label span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.61rem;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 0 11px;
  color: var(--paper);
  background: transparent;
  resize: vertical;
}

.inquiry-form textarea {
  min-height: 102px;
}

.inquiry-form button {
  margin-top: 6px;
  width: 100%;
  border: 0;
  color: var(--obsidian);
  background: linear-gradient(180deg, #c99a3c, var(--gold));
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.inquiry-form button::after {
  content: "→";
  font-size: 0.95rem;
  line-height: 1;
}

.inquiry-form button:hover,
.inquiry-form button:focus-visible {
  filter: brightness(1.08);
}

.screen-rail {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  z-index: 16;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.screen-rail button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.screen-rail span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(242, 242, 242, 0.38);
  transition: width 240ms ease, background 240ms ease;
}

.screen-rail button.is-active span {
  width: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.marker-dialog {
  width: min(calc(100vw - 40px), 390px);
  border: 1px solid var(--edge);
  padding: 0;
  color: var(--paper);
  background: #101315;
}

.marker-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.marker-dialog form {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.marker-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marker-dialog p:not(.kicker) {
  margin: 0;
  color: var(--concrete);
  line-height: 1.58;
}

.dialog-close {
  justify-self: end;
  border: 0;
  padding: 0;
  color: var(--gold);
  background: transparent;
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

@media (min-width: 520px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    border-inline: calc((100vw - var(--frame)) / 2) solid #111820;
    pointer-events: none;
  }

  .story {
    box-shadow: 0 0 0 1px rgba(184, 178, 167, 0.12), 0 0 70px rgba(0, 0, 0, 0.72);
  }
}

@media (max-width: 370px) {
  :root {
    --pad: 18px;
  }

  .poster-title {
    font-size: clamp(2.75rem, 15vw, 3.5rem);
  }

  .poster-copy {
    font-size: 0.92rem;
  }

  .process-list {
    margin-top: 4svh;
  }
}

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





/* Authority pass: cinematic mobile composition and lower-third operating language */
.poster {
  border-right: 1px solid rgba(184, 178, 167, 0.18);
}

.poster::before {
  top: calc(env(safe-area-inset-top) + 118px);
  right: calc(var(--pad) + 2px);
}

.poster::after {
  top: calc(env(safe-area-inset-top) + 88px);
  background: linear-gradient(90deg, rgba(178, 135, 47, 0.58), rgba(184, 178, 167, 0.18) 22%, rgba(184, 178, 167, 0.06));
}

.poster-grid {
  gap: 14px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 34svh);
  background: linear-gradient(
    to top,
    rgba(6, 8, 9, 0.82) 0%,
    rgba(6, 8, 9, 0.52) 22%,
    rgba(6, 8, 9, 0.16) 44%,
    rgba(6, 8, 9, 0.04) 60%,
    transparent 76%
  );
}

.poster--structure .poster-grid,
.poster--mobility .poster-grid {
  background: linear-gradient(
    to top,
    rgba(6, 8, 9, 0.78) 0%,
    rgba(6, 8, 9, 0.42) 26%,
    rgba(6, 8, 9, 0.08) 50%,
    transparent 70%
  );
}

/* The floating full-height vertical line was crashing through the headline;
   the gold accent now lives on the kicker as a single L-bracket (see .kicker). */

.poster--structure .poster-grid {
  align-content: start;
  padding-top: calc(env(safe-area-inset-top) + 13svh);
  padding-right: calc(var(--pad) + 3vw);
}

/* Dots + CTA are pinned in the poster (not the grid) using the SAME bottom
   reference as the core-domains panel, so they always sit a fixed gap above
   it regardless of viewport-unit / grid-height quirks. --panel-h is the
   panel's measured height, set in script.js. */
.poster--structure .hero-actions {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--actions-bottom, calc(env(safe-area-inset-bottom) + 76px + 26svh));
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.62);
  /* stay hidden until JS has measured its final position, so it can't be
     seen jumping into place on first paint */
  opacity: 0;
  transition: opacity 420ms ease;
}

.poster--structure .hero-actions.is-anchored {
  opacity: 1;
}

.poster--structure .hero-actions .hero-dots {
  margin-top: 0;
}

/* Frosted-glass treatment for the hero CTA: ~14% translucent fill, a blur,
   a light rim, and a stronger glow when the sheen sweeps across. */
.hero-actions .text-cta {
  color: #f0d18a;
  background: rgba(214, 170, 90, 0.05);
  -webkit-backdrop-filter: blur(9px) saturate(135%);
  backdrop-filter: blur(9px) saturate(135%);
  border: 1px solid rgba(230, 193, 108, 0.32);
  /* the gold glow layer lives here at 0 alpha so it can smoothly transition up
     and back down (transition — not animation — so it never fights rise-in) */
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 0 rgba(226, 182, 92, 0),
    inset 0 1px 0 rgba(247, 220, 140, 0.18);
  transition: transform 220ms ease, background 400ms ease,
    border-color 800ms ease, box-shadow 800ms ease;
}

.hero-actions .text-cta:hover,
.hero-actions .text-cta:focus-visible {
  background: rgba(214, 170, 90, 0.15);
  filter: none;
}

/* glow + fill ease up while the sheen is active, then ease back down when the
   class is removed. */
.hero-actions .text-cta.is-shining {
  background: rgba(214, 170, 90, 0.12);
  border-color: rgba(247, 220, 140, 0.55);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(226, 182, 92, 0.42),
    inset 0 1px 0 rgba(247, 220, 140, 0.32);
}

.poster--conditions .poster-grid {
  align-content: start;
  padding-top: calc(env(safe-area-inset-top) + 9svh);
  padding-right: calc(var(--pad) + 6vw);
}

.poster--architecture .poster-grid {
  align-content: start;
  gap: 8px;
  padding-top: calc(env(safe-area-inset-top) + 8svh);
  padding-bottom: calc(env(safe-area-inset-bottom) + 32svh);
}

/* keep the approach title from eating the whole screen */
.poster--architecture .poster-title {
  font-size: clamp(1.9rem, 9.5vw, 2.6rem);
  line-height: 0.98;
}
.poster--architecture .process-list li {
  padding: 6px 0;
}

.poster--mobility .poster-grid {
  align-content: start;
  padding-top: calc(env(safe-area-inset-top) + 8svh);
  padding-right: calc(var(--pad) + 5vw);
}

/* content-heavy slides carry a longer body block — give it a slightly
   smaller, tighter setting and let it use a bit more width */
.poster--conditions .poster-copy,
.poster--mobility .poster-copy {
  font-size: 0.85rem;
  line-height: 1.46;
  max-width: 32ch;
}

/* let the map panel shrink to its content so the copy has more room */
.poster--conditions .micro-layer--map {
  min-height: 0;
  bottom: calc(env(safe-area-inset-bottom) + 56px);
}

.poster--contact .poster-grid {
  padding-top: calc(env(safe-area-inset-top) + 13svh);
  padding-bottom: calc(env(safe-area-inset-bottom) + 26svh);
}

.poster-title {
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.68);
}

.poster--structure .poster-title {
  max-width: 9.4ch;
  font-size: clamp(2.45rem, 12vw, 3.16rem);
  line-height: 0.96;
}

.poster--conditions .poster-title {
  max-width: 9.2ch;
  font-size: clamp(2.45rem, 12.5vw, 3.28rem);
}

.poster--architecture .poster-title {
  max-width: 10ch;
  font-size: clamp(2rem, 9.8vw, 2.72rem);
}

.poster--mobility .poster-title {
  max-width: 9.5ch;
  font-size: clamp(2.28rem, 11.4vw, 3rem);
}

.poster--contact .poster-title {
  max-width: 8.6ch;
}

.poster-copy {
  max-width: 26ch;
  color: rgba(242, 242, 242, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.kicker {
  position: relative;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(0.54rem, 3vw, 0.63rem);
  letter-spacing: 0.2em;
  color: #c19a48;
}

/* Eyebrow carries no decorative mark; the section CTA is the gold accent. */
.kicker::before,
.kicker::after {
  content: none;
}

.process-list {
  max-width: 340px;
  margin-top: 1svh;
  border-top-color: rgba(178, 135, 47, 0.42);
}

.process-list li {
  padding: 8px 0;
  font-size: 0.74rem;
  line-height: 1.28;
}

.process-list strong {
  font-size: 0.68rem;
}

.text-cta,
.quiet-link {
  min-height: 46px;
}

.micro-layer {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(env(safe-area-inset-bottom) + 76px);
  z-index: 4;
  min-height: 20svh;
  max-height: 28svh;
  display: grid;
  align-content: end;
  gap: 10px;
  color: rgba(242, 242, 242, 0.72);
  pointer-events: none;
}

.micro-layer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 1px;
  background: rgba(178, 135, 47, 0.42);
}

.micro-rule,
.route-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
}

.micro-rule span:last-child,
.route-line span:last-child {
  color: rgba(242, 242, 242, 0.62);
}

.micro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(184, 178, 167, 0.22);
  border-left: 1px solid rgba(184, 178, 167, 0.18);
}

.micro-strip span {
  min-height: 52px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-right: 1px solid rgba(184, 178, 167, 0.18);
  border-bottom: 1px solid rgba(184, 178, 167, 0.18);
}

.micro-strip b,
.micro-ledger span::before {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  font-weight: 500;
}

.micro-strip em {
  color: rgba(242, 242, 242, 0.82);
  font-style: normal;
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
}

.micro-strip--tight span {
  min-height: 42px;
}

.micro-ledger,
.micro-menu {
  display: grid;
  gap: 1px;
  font-size: 0.58rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.micro-ledger span,
.micro-menu span {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(184, 178, 167, 0.15);
}

.micro-ledger span::before {
  content: "0" counter(ledger);
  counter-increment: ledger;
  margin-right: 12px;
}

.micro-ledger {
  counter-reset: ledger;
}

.micro-map {
  position: relative;
  min-height: 92px;
  border: 1px solid rgba(184, 178, 167, 0.18);
  background-image:
    linear-gradient(rgba(184, 178, 167, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 178, 167, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.micro-map::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 12%;
  top: 48%;
  height: 1px;
  background: rgba(178, 135, 47, 0.42);
  transform: rotate(-7deg);
  transform-origin: center;
}

.micro-map i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(178, 135, 47, 0.09);
}

.micro-menu--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.axis-grid {
  position: relative;
  min-height: 88px;
  border: 1px solid rgba(184, 178, 167, 0.18);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.axis-grid::before,
.axis-grid::after {
  content: "";
  position: absolute;
  background: rgba(178, 135, 47, 0.32);
}

.axis-grid::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.axis-grid::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.axis-grid span {
  display: grid;
  place-items: center;
  padding: 8px;
  color: rgba(242, 242, 242, 0.68);
  text-transform: uppercase;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
}

.route-line i {
  flex: 1;
  height: 1px;
  background: rgba(178, 135, 47, 0.52);
}

.micro-layer--mobility .micro-menu span:nth-child(2),
.micro-layer--contact .micro-menu span:nth-child(4),
.micro-layer--map .micro-menu span:nth-child(3) {
  color: var(--gold);
}

.micro-layer--contact {
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  min-height: 16svh;
  max-height: 22svh;
}

.form-note {
  margin: -2px 0 0;
  color: rgba(184, 178, 167, 0.74);
  font-size: 0.68rem;
  line-height: 1.38;
}

.poster--contact .inquiry-form {
  gap: 10px;
}

.poster--contact .inquiry-form textarea {
  min-height: 78px;
}

.poster--contact .inquiry-form button {
  min-height: 46px;
}

body[data-screen="05"] .screen-rail {
  opacity: 0.24;
}

@media (max-width: 370px) {
  .poster--structure .poster-title,
  .poster--conditions .poster-title,
  .poster--mobility .poster-title {
    font-size: clamp(2.08rem, 10.6vw, 2.58rem);
  }

  .poster--architecture .poster-title {
    font-size: clamp(1.82rem, 9.2vw, 2.34rem);
  }

  .micro-layer {
    bottom: calc(env(safe-area-inset-bottom) + 68px);
    gap: 8px;
  }

  .micro-strip span {
    min-height: 44px;
    padding: 7px;
  }

  .micro-map,
  .axis-grid {
    min-height: 76px;
  }
}

/* Spacing fixes after mobile visual review */
.micro-layer--mobility {
  bottom: calc(env(safe-area-inset-bottom) + 108px);
  min-height: 16svh;
}

.micro-layer--mobility .micro-menu span {
  min-height: 23px;
}

.poster--contact .poster-grid {
  padding-top: calc(env(safe-area-inset-top) + 12svh);
  padding-bottom: calc(env(safe-area-inset-bottom) + 21svh);
}

.poster--contact .poster-title {
  font-size: clamp(2.5rem, 12.5vw, 3.45rem);
}

.poster--contact .poster-copy {
  max-width: 28ch;
  font-size: 0.9rem;
  line-height: 1.42;
}

.poster--contact .inquiry-form {
  gap: 8px;
}

.poster--contact .inquiry-form input,
.poster--contact .inquiry-form textarea {
  padding: 7px 0 8px;
}

.poster--contact .inquiry-form textarea {
  min-height: 62px;
}

.poster--contact .inquiry-form button {
  min-height: 43px;
}

.poster--contact .form-note {
  font-size: 0.61rem;
  line-height: 1.28;
}

.micro-layer--contact {
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  min-height: 72px;
  max-height: 86px;
  align-content: end;
  gap: 6px;
}

.micro-layer--contact .micro-rule {
  font-size: 0.5rem;
}

.micro-layer--contact .micro-menu--split {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid rgba(184, 178, 167, 0.16);
}

.micro-layer--contact .micro-menu span {
  min-height: 28px;
  padding: 0 5px;
  border-right: 1px solid rgba(184, 178, 167, 0.16);
  font-size: 0.47rem;
  letter-spacing: 0.12em;
  justify-content: center;
  text-align: center;
}

.process-list {
  max-width: 292px;
}

.process-list li {
  grid-template-columns: 38px minmax(0, 1fr);
}

/* Useful lower-third systems: boxes, concepts, and JS map */
.micro-layer {
  bottom: calc(env(safe-area-inset-bottom) + 74px);
  min-height: 24svh;
  max-height: 31svh;
  gap: 8px;
  align-content: end;
}

.micro-layer--contact {
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  min-height: 22svh;
  max-height: 27svh;
}

.micro-layer--mobility {
  bottom: calc(env(safe-area-inset-bottom) + 92px);
  min-height: 22svh;
}

.micro-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  line-height: 1.3;
}

.micro-heading span:last-child {
  color: rgba(242, 242, 242, 0.58);
}

/* Lower module: ONE solid framed panel per section. A bold gold top edge,
   a single hairline border, thin dividers only between cells, and a large
   serif numeral as the graphic anchor. Identical on every screen. */
.concept-grid {
  display: grid;
  gap: 0;
  border: 1px solid rgba(184, 178, 167, 0.22);
  border-top: 2px solid var(--gold);
  background: rgba(7, 9, 10, 0.55);
}

.concept-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.concept-grid--four,
.concept-grid--principles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.concept-box {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 9px;
  margin: 0;
  padding: 13px 14px 15px;
  border: 0;
  background: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.concept-grid--three .concept-box:not(:nth-child(3n + 1)),
.concept-grid--four .concept-box:not(:nth-child(2n + 1)),
.concept-grid--principles .concept-box:not(:nth-child(2n + 1)) {
  border-left: 1px solid rgba(184, 178, 167, 0.16);
}

.concept-grid--four .concept-box:nth-child(n + 3),
.concept-grid--principles .concept-box:nth-child(n + 3) {
  border-top: 1px solid rgba(184, 178, 167, 0.16);
}

.concept-box span {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 0.85;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
}

.concept-box strong {
  color: var(--paper);
  text-transform: uppercase;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.13em;
  font-weight: 650;
}

.concept-box p {
  margin: 0;
  color: rgba(242, 242, 242, 0.58);
  font-size: 0.6rem;
  line-height: 1.34;
}

.hud-map {
  position: relative;
  height: 108px;
  overflow: hidden;
  border: 1px solid rgba(184, 178, 167, 0.22);
  border-top: 2px solid var(--gold);
  background: rgba(7, 9, 10, 0.55);
}

.hud-map::before {
  display: none;
}

.hud-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hud-readout {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.hud-readout span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hud-readout b {
  flex: none;
  color: rgba(242, 242, 242, 0.74);
  font-weight: 500;
  white-space: nowrap;
}

.site-tape {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: rgba(242, 242, 242, 0.5);
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
}

.site-tape span {
  position: relative;
  padding-left: 11px;
  transition: color 240ms ease;
}

.site-tape span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: rgba(178, 135, 47, 0.5);
}

.site-tape span.is-active {
  color: var(--gold);
}

.site-tape span.is-active::before {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(178, 135, 47, 0.7);
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-left: 1px solid rgba(184, 178, 167, 0.18);
  border-top: 1px solid rgba(184, 178, 167, 0.18);
}

.site-grid span {
  min-height: 24px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(184, 178, 167, 0.18);
  border-bottom: 1px solid rgba(184, 178, 167, 0.18);
  color: rgba(242, 242, 242, 0.68);
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.micro-layer--map {
  min-height: 26svh;
  max-height: 32svh;
}

.micro-layer--map .micro-heading {
  margin-bottom: -1px;
}

@media (max-width: 370px) {
  .micro-layer {
    min-height: 23svh;
    max-height: 30svh;
  }

  .concept-box {
    min-height: 64px;
    padding: 7px 6px;
  }

  .concept-box strong {
    font-size: 0.54rem;
  }

  .concept-box p {
    font-size: 0.54rem;
  }

  .hud-map {
    height: 96px;
  }
}

/* Remove stray hairlines now replaced by the solid panel framing */
.poster::after,
.micro-layer::before {
  display: none;
}

/* ============================================================
   Brand direction pass — align style + color to the DC logo:
   metallic silver + brass gold, bold uppercase SANS display
   type (no serif), and outlined gold CTAs.
   ============================================================ */

/* Display headings: bold uppercase sans instead of serif */
.poster-title {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.poster--structure .poster-title {
  font-size: clamp(2.2rem, 10.4vw, 2.85rem);
}

.poster--conditions .poster-title,
.poster--mobility .poster-title {
  font-size: clamp(2.15rem, 11vw, 2.95rem);
}

.poster--architecture .poster-title {
  font-size: clamp(1.9rem, 9vw, 2.5rem);
}

.poster--contact .poster-title {
  font-size: clamp(2.3rem, 11.5vw, 3.1rem);
}

/* Menu + dialog headings also drop the serif */
.menu-list a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.marker-dialog h2 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Numerals in bold sans, matching a stat-block language */
.concept-box span {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}

/* CTAs: outlined brass gold with arrow (reference style) */
.text-cta,
.quiet-link,
.inquiry-form button {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--gold);
  box-shadow: none;
}

.text-cta::after,
.quiet-link::after,
.inquiry-form button::after {
  color: var(--gold);
}

.text-cta:hover,
.text-cta:focus-visible,
.quiet-link:hover,
.quiet-link:focus-visible,
.inquiry-form button:hover,
.inquiry-form button:focus-visible {
  background: rgba(194, 160, 82, 0.12);
  filter: none;
  transform: none;
}

/* Brand: metallic DC monogram + wordmark, brass "CONSULTING" */
.brand-mark {
  filter: drop-shadow(0 1px 7px rgba(0, 0, 0, 0.6));
}

.brand-copy span:first-child {
  color: var(--silver);
}

.brand-copy span:last-child {
  color: var(--gold);
}

/* ============================================================
   Elegance pass — cinematic gradients + metallic display type.
   ============================================================ */

/* Brushed-steel headlines that echo the DC monogram */
.poster-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.005em;
  background: linear-gradient(174deg, #ffffff 0%, #efede7 32%, #cbc8c0 68%, #a7a49b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55));
}

/* A single accent line in warm brass (kept, not clipped) */
.poster-title .accent {
  -webkit-text-fill-color: initial;
  color: var(--gold);
  background: none;
}

/* Cinematic light: warm glow near the source + soft grade + vignette.
   Layered gradients read as photography grading, not a flat scrim. */
.poster-grid,
.poster--structure .poster-grid,
.poster--mobility .poster-grid {
  background:
    radial-gradient(72% 46% at 74% 15%, rgba(214, 172, 96, 0.15), transparent 62%),
    linear-gradient(to top, rgba(6, 7, 9, 0.85) 0%, rgba(6, 7, 9, 0.42) 20%, rgba(6, 7, 9, 0.07) 42%, transparent 60%),
    radial-gradient(140% 110% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.58) 100%);
}

/* ---- Cinematic reveal: content rises + fades in when its screen activates.
   Animation-driven (not a persistent hidden state) so content defaults to
   visible and can never get stuck invisible if activation is missed. ---- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.poster.is-active .kicker,
.poster.is-active .poster-copy,
.poster.is-active .process-list,
.poster.is-active .text-cta,
.poster.is-active .quiet-link,
.poster.is-active .inquiry-form,
.poster.is-active .micro-layer {
  animation: rise-in 950ms cubic-bezier(0.16, 0.7, 0.2, 1) both;
}

.poster.is-active .kicker { animation-delay: 80ms; }
.poster.is-active .poster-copy,
.poster.is-active .process-list { animation-delay: 320ms; }
.poster.is-active .text-cta,
.poster.is-active .quiet-link,
.poster.is-active .inquiry-form { animation-delay: 450ms; }
.poster.is-active .micro-layer { animation-delay: 590ms; }

/* Title rises in, then keeps its slow steel sheen */
.poster.is-active .poster-title {
  animation:
    rise-in 950ms cubic-bezier(0.16, 0.7, 0.2, 1) 190ms both,
    steel-sheen 9s ease-in-out 1200ms infinite;
}

/* Atmospheric gold-dust layer over the whole frame */
.atmosphere {
  position: fixed;
  inset: 0;
  left: 50%;
  width: var(--frame);
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  opacity: 0.7;
  mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
  .poster.is-active .kicker,
  .poster.is-active .poster-title,
  .poster.is-active .poster-copy,
  .poster.is-active .process-list,
  .poster.is-active .text-cta,
  .poster.is-active .quiet-link,
  .poster.is-active .inquiry-form,
  .poster.is-active .micro-layer {
    animation: none;
  }
  .atmosphere { display: none; }
}

/* Slow light glint travelling across the brushed-steel headline */
@keyframes steel-sheen {
  0%   { background-position: 190% 0; }
  100% { background-position: -90% 0; }
}

.poster-title {
  background-image: linear-gradient(
    100deg,
    #b7b4ac 0%, #cecbc3 28%, #ffffff 46%, #f6f4ee 54%, #cbc8c0 70%, #a5a299 100%
  );
  background-size: 265% 100%;
  animation: steel-sheen 9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .poster-title { animation: none; background-position: 42% 0; }
}

/* ============================================================
   Slide 01 — rotating hero (three copy states, one frame)
   ============================================================ */
.hero-rotator {
  position: relative;
  display: grid;
}

/* Each state occupies the same cell so the CTA below never jumps.
   Constrained to 80% of the frame; JS shrinks any title that would
   otherwise spill past that box (see fitHeroTitles in script.js). */
.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  max-width: 80%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.16, 0.7, 0.2, 1),
    visibility 0s linear 720ms;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.16, 0.7, 0.2, 1),
    visibility 0s;
  pointer-events: auto;
}

/* Brushed-steel headline, matched to .poster-title */
.hero-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1;
  font-size: clamp(1.7rem, 8.4vw, 2.35rem);
  text-wrap: balance;
  background-image: linear-gradient(
    100deg,
    #b7b4ac 0%, #cecbc3 28%, #ffffff 46%, #f6f4ee 54%, #cbc8c0 70%, #a5a299 100%
  );
  background-size: 265% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.55));
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.68);
}

.hero-slide.is-active .hero-title {
  animation: steel-sheen 9s ease-in-out infinite;
}

/* small vertical gap between two title lines */
.title-gap {
  display: block;
  margin-top: 0.32em;
}

/* Slide 01: brand sits small above the big statement headline */
.hero-title--lead {
  line-height: 1.04;
}

/* Slide 01 opening state: the full brand lockup, blended into the dark
   scene so its grey plate reads as an etched wall rather than a pasted box */
.hero-slide--logo {
  max-width: 100%;
  align-content: center;
  justify-items: center;
}

.hero-logo {
  width: 88%;
  height: auto;
  max-height: 30svh;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  /* nudge right by half the hero column's extra right padding so the mark
     centres to the frame, not to the asymmetric text content box */
  transform: translateX(1.5vw);
  /* transparent PNG with its own soft drop shadow — no blend needed */
}

/* Slide 01 brand lockup: DARST in white, CONSULTING in gold beneath */
.hero-brand-mark {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.16em;
}

.hero-brand-darst,
.hero-brand-consulting {
  display: block;
  font-size: clamp(1.18rem, 5.6vw, 1.5rem);
}

.hero-brand-darst {
  color: #f4f4f4;
}

.hero-brand-consulting {
  color: var(--gold);
}

.hero-lede {
  max-width: 30ch;
  margin: 0;
  color: rgba(242, 242, 242, 0.78);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Hero state indicator — vertical dashes pinned to the right edge */
.hero-dots {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hero-dots button {
  width: 3px;
  height: 20px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(184, 178, 167, 0.32);
  transition: height 240ms ease, background 240ms ease;
}

.hero-dots button.is-active {
  height: 30px;
  background: var(--gold);
}

.hero-dots button:hover,
.hero-dots button:focus-visible {
  background: rgba(216, 191, 130, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 200ms linear;
    transform: none;
  }
  .hero-slide.is-active .hero-title {
    animation: none;
    background-position: 42% 0;
  }
}

/* ============================================================
   Slide 04 — tempting "prize" engage CTA (replaces capability boxes)
   ============================================================ */
.mobility-engage {
  align-content: end;
  justify-items: start;
  gap: 12px;
  right: auto;                 /* release full-width stretch: sit bottom-left */
  max-width: min(24rem, 78%);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.engage-eyebrow {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  font-weight: 650;
}

.engage-line {
  margin: 0;
  max-width: 22ch;
  color: rgba(242, 242, 242, 0.84);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* The prize button — polished gold, breathing glow, a periodic light sweep */
.prize-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  padding: 15px 22px;
  color: #14110a;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  background: linear-gradient(135deg, #f6d98f 0%, #d3a04a 42%, #b8862f 56%, #ecc86e 100%);
  box-shadow:
    0 0 0 1px rgba(247, 220, 140, 0.55),
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(216, 170, 74, 0.32);
  animation: prize-glow 3.4s ease-in-out infinite;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.prize-cta > * {
  position: relative;
  z-index: 2;
}

.prize-cta-arrow {
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.prize-cta:hover,
.prize-cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 0 0 1px rgba(247, 220, 140, 0.85),
    0 18px 42px rgba(0, 0, 0, 0.55),
    0 0 44px rgba(216, 170, 74, 0.62);
}

.prize-cta:hover .prize-cta-arrow,
.prize-cta:focus-visible .prize-cta-arrow {
  transform: translateX(5px);
}

/* (the light sweep is now the shared random glass sheen — see below) */

@keyframes prize-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(247, 220, 140, 0.42),
      0 12px 30px rgba(0, 0, 0, 0.5),
      0 0 18px rgba(216, 170, 74, 0.26);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(247, 220, 140, 0.7),
      0 12px 30px rgba(0, 0, 0, 0.5),
      0 0 38px rgba(216, 170, 74, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prize-cta {
    animation: none;
  }
}

/* ============================================================
   Shared glass sheen — a classy reflective sweep + glow that JS fires
   at random 2–6s intervals on every CTA button (see script.js).
   ============================================================ */
.text-cta,
.quiet-link,
.inquiry-form button,
.prize-cta {
  position: relative;
  overflow: hidden;
}

.cta-sheen {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -85%;
  width: 55%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-20deg);
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.06) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
}

.is-shining .cta-sheen {
  animation: cta-sheen-sweep 1700ms cubic-bezier(0.4, 0, 0.25, 1);
}

/* brief background glow during the sweep (filter so it never fights the
   buttons' own box-shadows or the prize button's breathing glow) */
.is-shining {
  animation: cta-shine-glow 1700ms ease-in-out;
}

@keyframes cta-sheen-sweep {
  0% { left: -85%; opacity: 0; }
  12% { opacity: 1; }
  86% { opacity: 1; }
  100% { left: 145%; opacity: 0; }
}

@keyframes cta-shine-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(226, 182, 92, 0)); }
  50% { filter: drop-shadow(0 0 11px rgba(226, 182, 92, 0.32)); }
}

@media (prefers-reduced-motion: reduce) {
  .is-shining .cta-sheen,
  .is-shining {
    animation: none;
  }
}

/* ============================================================
   Slide 02 — content aligned to the right
   ============================================================ */
.poster--conditions .poster-grid {
  justify-items: end;
  text-align: right;
  padding-left: calc(var(--pad) + 6vw);
  padding-right: var(--pad);
}

.poster--conditions .poster-title,
.poster--conditions .poster-copy {
  margin-left: auto;
}

.poster--conditions .quiet-link,
.poster--conditions .text-cta {
  justify-self: end;
}

/* ============================================================
   Popup FX — approach steps & principles open a translucent dark-gold
   panel that unfolds vertically, then horizontally, with white copy.
   ============================================================ */
.popup-trigger {
  cursor: pointer;
  pointer-events: auto;   /* clickable even inside pointer-events:none panels */
}
.popup-trigger:focus-visible {
  outline: 1px solid rgba(230, 193, 108, 0.7);
  outline-offset: 3px;
}

.popup-fx {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.popup-fx[hidden] { display: none; }

.popup-fx-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 320ms ease;
}
.popup-fx.is-open .popup-fx-backdrop { opacity: 1; }

.popup-fx-panel {
  position: relative;
  z-index: 1;
  width: min(90vw, calc(var(--frame) * 0.9));
  max-width: 90vw;
  max-height: 78svh;
  overflow: auto;
  padding: 30px 26px 30px;
  color: #fff;
  /* translucent dark gold, with a soft gold halo behind the crest */
  background:
    radial-gradient(78% 52% at 50% 0%, rgba(216, 170, 74, 0.22), transparent 62%),
    linear-gradient(158deg, rgba(96, 71, 24, 0.62), rgba(54, 40, 13, 0.66));
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(230, 193, 108, 0.5);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 0 46px rgba(216, 170, 74, 0.22),
    inset 0 0 0 1px rgba(247, 220, 140, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform-origin: center;
  /* base: a thin, zero-height sliver */
  transform: scaleX(0.035) scaleY(0);
  opacity: 0;
  transition: transform 360ms cubic-bezier(0.2, 0.75, 0.2, 1), opacity 200ms ease;
}
/* stage 1 — unfold vertically (still thin) */
.popup-fx-panel.v {
  transform: scaleX(0.035) scaleY(1);
  opacity: 1;
}
/* stage 2 — unfold horizontally to full width */
.popup-fx-panel.vh {
  transform: scaleX(1) scaleY(1);
  opacity: 1;
}

/* one-shot gold light sweep across the panel as it opens */
.popup-fx-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 32%,
    rgba(255, 244, 214, 0.16) 47%,
    rgba(255, 249, 232, 0.4) 50%,
    rgba(255, 244, 214, 0.16) 53%,
    transparent 68%
  );
  background-size: 260% 100%;
  background-position: 170% 0;
  opacity: 0;
}
.popup-fx-panel.vh::after {
  animation: popup-sheen 1150ms ease-out 240ms both;
}
@keyframes popup-sheen {
  0% { background-position: 170% 0; opacity: 0; }
  22% { opacity: 1; }
  100% { background-position: -70% 0; opacity: 0; }
}

/* content rises + fades in once the panel is fully open */
.popup-fx-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 460ms cubic-bezier(0.16, 0.7, 0.2, 1);
}
.popup-fx-panel.vh .popup-fx-content {
  opacity: 1;
  transform: none;
  transition-delay: 150ms;
}

.popup-fx-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}
.popup-fx-close:hover,
.popup-fx-close:focus-visible {
  color: #fff;
  transform: scale(1.1);
}

.popup-fx-logo {
  display: block;
  height: 46px;
  width: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 12px rgba(216, 170, 74, 0.45));
}

.popup-fx-eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  font-weight: 650;
}
.popup-fx-title {
  margin: 0 0 12px;
  padding-bottom: 12px;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.5rem, 7vw, 1.9rem);
  color: #fff;
  border-bottom: 1px solid rgba(230, 193, 108, 0.28);
}
.popup-fx-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .popup-fx-panel,
  .popup-fx-content { transition: opacity 160ms ease; }
  .popup-fx-panel.v,
  .popup-fx-panel.vh { transform: none; }
  .popup-fx-content { transform: none; }
  .popup-fx-panel.vh::after { animation: none; }
}

/* ============================================================
   Contact page (05) — recomposed after removing the criteria boxes.
   Real breathing room for the form + a balanced vertical rhythm.
   ============================================================ */
.poster--contact .poster-grid {
  align-content: start;
  gap: 12px;
  padding-top: calc(env(safe-area-inset-top) + 6svh);
  padding-bottom: calc(env(safe-area-inset-bottom) + 48px);
}

.poster--contact .poster-title {
  font-size: clamp(2rem, 10.5vw, 2.7rem);
  line-height: 0.98;
  margin-bottom: 0;
}

.poster--contact .poster-copy {
  max-width: 32ch;
  font-size: 0.84rem;
  line-height: 1.42;
}

.poster--contact .inquiry-form {
  gap: 12px;
  margin-top: 2px;
}

.poster--contact .inquiry-form label {
  gap: 6px;
}

.poster--contact .inquiry-form input,
.poster--contact .inquiry-form textarea {
  padding: 8px 0 9px;
}

.poster--contact .inquiry-form textarea {
  min-height: 0;
  height: 62px;
}

.poster--contact .form-note {
  margin-top: 0;
  font-size: 0.58rem;
  line-height: 1.36;
  color: rgba(242, 242, 242, 0.5);
}

.poster--contact .inquiry-form button {
  margin-top: 6px;
  min-height: 48px;
}

/* short screens: tighten so the whole form still clears the nav dots.
   (the textarea keeps its rows=4 height unless we set an explicit height) */
@media (max-height: 740px) {
  .poster--contact .poster-grid {
    gap: 9px;
    padding-top: calc(env(safe-area-inset-top) + 4svh);
    padding-bottom: calc(env(safe-area-inset-bottom) + 46px);
  }
  .poster--contact .poster-title { font-size: clamp(1.7rem, 8.5vw, 2.2rem); margin-bottom: 0; }
  .poster--contact .poster-copy { font-size: 0.8rem; line-height: 1.36; }
  .poster--contact .inquiry-form { gap: 9px; margin-top: 0; }
  .poster--contact .inquiry-form label { gap: 5px; }
  .poster--contact .inquiry-form input,
  .poster--contact .inquiry-form textarea { padding: 6px 0 7px; }
  .poster--contact .inquiry-form textarea { min-height: 0; height: 50px; }
  .poster--contact .inquiry-form button { margin-top: 4px; min-height: 44px; }
}
@media (max-height: 620px) {
  .poster--contact .poster-grid { gap: 7px; padding-top: calc(env(safe-area-inset-top) + 3svh); }
  .poster--contact .poster-title { font-size: 1.55rem; }
  .poster--contact .poster-copy { font-size: 0.75rem; line-height: 1.32; }
  .poster--contact .inquiry-form { gap: 7px; }
  .poster--contact .inquiry-form textarea { height: 42px; }
  .poster--contact .inquiry-form button { min-height: 40px; }
}

/* ============================================================
   Secure inquiry form — keyphrase gate, matrix cipher panel, button states
   ============================================================ */
.form-fields {
  display: grid;
  gap: inherit;
}
.form-fields[hidden] { display: none; }

.keyphrase span b {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}
[data-keyphrase-input].is-wrong {
  border-bottom-color: rgba(170, 60, 60, 0.75);
}
[data-keyphrase-input].is-ok {
  border-bottom-color: rgba(120, 200, 130, 0.7);
}

.cipher-panel {
  border: 1px solid rgba(120, 200, 140, 0.28);
  border-left: 2px solid rgba(120, 210, 150, 0.6);
  background: rgba(4, 10, 6, 0.55);
  padding: 12px 12px 13px;
  max-height: 168px;
  overflow: auto;
  box-shadow: inset 0 0 24px rgba(60, 160, 90, 0.08);
}
.cipher-panel[hidden] { display: none; }

.cipher-text {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.6rem;
  line-height: 1.5;
  color: #9fe6ac;
  white-space: pre-wrap;
  word-break: break-all;
  text-shadow: 0 0 7px rgba(120, 230, 150, 0.4);
}

.secure-status {
  margin: 0;
  min-height: 0.85em;
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* the send state entices the click with the shared gold glow */
[data-secure-btn].is-ready {
  animation: prize-glow 2.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-secure-btn].is-ready { animation: none; }
}

/* ============================================================
   Unify every poster CTA (pages 1-4) to the page-1 frosted-gold glass
   button — kills the old outlined-box borders / underlines / prize gradient
   that were colliding with the panels and text.
   ============================================================ */
.text-cta,
.quiet-link,
.prize-cta {
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 18px;
  color: #f0d18a;
  background: rgba(214, 170, 90, 0.05);
  -webkit-backdrop-filter: blur(9px) saturate(135%);
  backdrop-filter: blur(9px) saturate(135%);
  border: 1px solid rgba(230, 193, 108, 0.32);
  border-radius: 0;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 0 rgba(226, 182, 92, 0),
    inset 0 1px 0 rgba(247, 220, 140, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  filter: none;
  animation: none;
  transition: transform 220ms ease, background 400ms ease,
    border-color 800ms ease, box-shadow 800ms ease;
}

.text-cta::after,
.quiet-link::after {
  content: "→";
  color: #f0d18a;
  font-size: 0.95rem;
  line-height: 1;
}
.prize-cta > span { flex: 0 1 auto; }
.prize-cta .prize-cta-arrow { color: #f0d18a; }

.text-cta:hover, .text-cta:focus-visible,
.quiet-link:hover, .quiet-link:focus-visible,
.prize-cta:hover, .prize-cta:focus-visible {
  background: rgba(214, 170, 90, 0.15);
  transform: translateY(-1px);
  filter: none;
}

.text-cta.is-shining,
.quiet-link.is-shining,
.prize-cta.is-shining {
  background: rgba(214, 170, 90, 0.12);
  border-color: rgba(247, 220, 140, 0.55);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(226, 182, 92, 0.42),
    inset 0 1px 0 rgba(247, 220, 140, 0.32);
}

/* focus ring must sit ON the box, never larger than it */
.popup-trigger:focus-visible {
  outline: 1px solid rgba(230, 193, 108, 0.8);
  outline-offset: -3px;
}

/* Approach page (03): short-screen tightening so the CTA clears the panel.
   The box descriptions collapse on very short screens — full copy lives in
   the popup anyway. */
@media (max-height: 760px) {
  .poster--architecture .poster-grid { padding-top: calc(env(safe-area-inset-top) + 4svh); gap: 5px; }
  .poster--architecture .poster-title { font-size: clamp(1.5rem, 7.5vw, 2rem); line-height: 0.96; }
  .poster--architecture .process-list li { padding: 3px 0; }
  .poster--architecture .process-list li strong { font-size: 0.66rem; }
  .poster--architecture .text-cta { min-height: 44px; margin-top: 8px; }
  .poster--architecture .concept-box { padding: 9px 11px 10px; gap: 5px; }
  .poster--architecture .concept-box span { font-size: 1.15rem; }
  .poster--architecture .concept-box strong { font-size: 0.62rem; }
  .poster--architecture .concept-box p { font-size: 0.6rem; line-height: 1.3; }
}
@media (max-height: 640px) {
  .poster--architecture .poster-title { font-size: 1.4rem; }
  .poster--architecture .concept-box p { display: none; }
}
