:root {
  --white: #ffffff;
  --paper: #ffffff;
  --ink: #0f0f0f;
  --muted: #71675d;
  --line: rgba(20, 17, 14, 0.11);
  --nav-glass: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(20, 17, 14, 0.1);
  --card-bg: #f0f0f0;
  --card-bg-raised: rgba(255, 255, 255, 0.58);
  --soft-panel: rgba(255, 255, 255, 0.8);
  --orange: #d86824;
  --orange-dark: #9f4315;
  --graphite: #000000;
  --shadow-soft: 0 30px 90px rgba(20, 17, 14, 0.11);
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-soft: cubic-bezier(0.23, 1, 0.32, 1);
}

body.theme-night {
  --paper: #000000;
  --ink: #f5efe7;
  --muted: #bdb2a6;
  --line: rgba(255, 255, 255, 0.11);
  --nav-glass: rgba(14, 14, 14, 0.82);
  --nav-border: rgba(255, 255, 255, 0.13);
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-bg-raised: rgba(255, 255, 255, 0.075);
  --soft-panel: rgba(255, 255, 255, 0.075);
  --orange-dark: #e18845;
  --graphite: #000000;
  --shadow-soft: 0 30px 100px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body.theme-night {
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 94%, #000 6%), var(--paper) 24rem),
    var(--paper);
  color: var(--ink);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition: background 260ms var(--ease-in-out), color 260ms var(--ease-in-out);
}

img,
video {
  max-width: 100%;
}

picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  transform: translateY(-140%);
  border-radius: 6px;
  background: #a84e18;
  padding: 10px 14px;
  color: var(--white);
  font-weight: 900;
  transition: transform 180ms var(--ease-out);
}

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

.nav {
  position: fixed;
  top: 18px;
  left: clamp(16px, 4vw, 64px);
  right: clamp(16px, 4vw, 64px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 10px 0;
  color: var(--white);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    color 260ms ease,
    padding 260ms ease,
    backdrop-filter 260ms ease;
}

.nav.is-solid {
  border: 1px solid var(--nav-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--nav-glass) 94%, transparent);
  box-shadow: 0 22px 70px rgba(20, 17, 14, 0.1);
  color: var(--ink);
  padding: 10px 14px;
  backdrop-filter: blur(20px);
}

.nav.is-solid::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 104, 36, 0.34), transparent);
  opacity: 0.58;
  pointer-events: none;
}

body.theme-night .nav.is-solid {
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.brand,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-actions {
  gap: clamp(14px, 2vw, 24px);
}

.brand {
  gap: 12px;
  font-weight: 900;
  font-size: 1.12rem;
  white-space: nowrap;
  letter-spacing: 0;
  min-height: 40px;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: var(--orange);
  box-shadow: 0 14px 38px rgba(216, 104, 36, 0.22);
}

.nav.is-solid .brand-mark {
  box-shadow: 0 10px 24px rgba(216, 104, 36, 0.12);
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.brand-logo--white {
  opacity: 0;
}

.brand-logo--orange {
  opacity: 0;
}

.brand-logo--white {
  opacity: 1;
}


.nav-links {
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links a {
  opacity: 0.88;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 74px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
  color: currentColor;
  font: inherit;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav.is-solid .theme-toggle {
  border-color: var(--line);
  background: rgba(21, 17, 13, 0.06);
}

body.theme-night .nav.is-solid .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle__option {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 220ms ease;
}

.theme-toggle__option svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.theme-toggle__option--day svg circle {
  fill: var(--orange);
  stroke: none;
}

.nav.is-solid .theme-toggle__option {
  color: rgba(21, 17, 13, 0.54);
}

body:not(.theme-night) .theme-toggle__option--day,
body.theme-night .theme-toggle__option--night {
  color: var(--ink);
}

body:not(.theme-night) .theme-toggle__option--day {
  color: var(--orange);
}

body.theme-night .nav:not(.is-solid) .theme-toggle__option--night {
  color: #fff;
}

.theme-toggle__thumb {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 240ms var(--ease-in-out), background 220ms ease;
  will-change: transform;
}

body.theme-night .theme-toggle__thumb {
  transform: translateX(38px);
  background: var(--orange);
}

.opening {
  position: relative;
  min-height: 104vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 128px clamp(20px, 5vw, 76px) 110px;
  color: var(--white);
}

.opening-image,
.opening-shade {
  position: absolute;
  inset: 0;
}

.opening-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: opacity 520ms ease, transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

.opening-image--night,
.handover-image--night {
  opacity: 0;
}

body.theme-night .opening-image--day,
body.theme-night .handover-image--day {
  opacity: 0;
}

body.theme-night .opening-image--night,
body.theme-night .handover-image--night {
  opacity: 1;
}

body.theme-night .opening-image {
  transform: scale(1.02);
}

.opening-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(12, 10, 8, 0.14) 54%, rgba(0, 0, 0, 0.32)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 48%),
    transparent;
}

body.theme-night .opening-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 48%),
    transparent;
}

.opening-copy {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.opening-copy::before {
  content: "";
  display: block;
  width: 84px;
  height: 1px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.5);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}


.opening-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.52em;
}

.eyebrow-separator {
  color: rgba(255, 255, 255, 0.56);
}


@media (min-width: 641px) {
  .opening-kicker {
    width: fit-content;
    margin-bottom: 20px;
    padding: 9px 14px 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-left-color: rgba(216, 104, 36, 0.82);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--orange);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px) saturate(1.04);
    -webkit-backdrop-filter: blur(14px) saturate(1.04);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.48);
  }

  .opening-kicker span:first-child,
  .opening-kicker span:last-child {
    color: var(--orange);
  }

  .opening-kicker .eyebrow-separator {
    color: var(--orange);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h3 {
  font-weight: 700;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: 0;
}


.opening h1 {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.74), 0 26px 70px rgba(0, 0, 0, 0.58);
}
.opening-copy > p:not(.eyebrow) {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: clamp(0.96rem, 1.08vw, 1.12rem);
  font-weight: 500;
  line-height: 1.48;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78), 0 18px 44px rgba(0, 0, 0, 0.56);
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 24px;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms var(--ease-out), box-shadow 180ms ease;
}

.button-primary {
  border: 1px solid rgba(255, 210, 166, 0.22);
  background: #a94612;
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 46px rgba(132, 51, 13, 0.28),
    0 14px 34px rgba(0, 0, 0, 0.24);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.075);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.opening-metrics {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: 120px;
  z-index: 2;
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.opening-metrics span {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 900;
  cursor: default;
  transition: color 260ms ease, padding-left 260ms ease, transform 260ms ease;
}

.opening-metrics span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 210, 166, 0.62));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 340ms ease;
}

.opening-metrics span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  opacity: 0;
  transform: translate(-16px, -50%) rotate(45deg);
  transition: opacity 260ms ease, transform 260ms ease;
}

.project-signals {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin: clamp(72px, 8vw, 116px) clamp(20px, 5vw, 76px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--orange) 5%, transparent), transparent 42%),
    color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: var(--shadow-soft);
}

.project-signals::before {
  position: absolute;
  z-index: 2;
  top: 92px;
  right: 16.666%;
  left: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange) 52%, #d99462);
  content: "";
}

.project-signal {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px clamp(24px, 2.4vw, 38px) 30px;
  transition: background-color 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft);
}

.project-signal + .project-signal {
  border-left: 1px solid var(--line);
}

.project-signal::after {
  position: absolute;
  z-index: 0;
  top: 88px;
  right: -0.02em;
  color: color-mix(in srgb, var(--ink) 4%, transparent);
  content: attr(data-step);
  font-size: clamp(7rem, 11vw, 11rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.09em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.project-signal:hover {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--ink) 6%, transparent) inset;
}

.project-signal__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-signal__step {
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.project-signal__discipline {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-signal__node {
  position: absolute;
  z-index: 3;
  top: 84px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  background: var(--orange);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--orange-dark) 42%, transparent),
    0 5px 16px color-mix(in srgb, var(--orange) 28%, transparent);
  transform: translateX(-50%);
}

.project-signal__copy {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin-top: 112px;
}

.project-signal__copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.project-signal__copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.project-signal__outcome {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-signal__outcome span {
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-signal__outcome strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .opening-metrics span,
  .opening-metrics span::before,
  .opening-metrics span::after {
    transition: none;
  }

  .motion-ready [data-reveal],
  .motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .command-card {
    transform: none !important;
  }

  .h-card {
    opacity: 1;
    transform: none;
  }

  .build-story {
    height: auto !important;
  }

  .sequence-pin {
    position: relative !important;
  }

  .sequence-copy-stack {
    min-height: auto !important;
  }

  .sequence-copy-panel {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
  }

}

.build-story {
  height: 240vh;
  background:
    radial-gradient(circle at 78% 18%, rgba(216, 104, 36, 0.13), transparent 28%),
    linear-gradient(180deg, #111111, #000000 76%, var(--paper)),
    #000000;
  color: var(--white);
  position: relative;
}

.sequence-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  overflow: hidden;
  padding: clamp(70px, 8vw, 104px) clamp(20px, 5vw, 76px) clamp(40px, 5vw, 64px);
}

.sequence-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.sequence-copy-stack {
  position: relative;
  margin-top: 56px;
  min-height: 470px;
}

.sequence-copy-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 360ms ease,
    transform 520ms var(--ease-out);
  pointer-events: none;
}

.build-story.is-reversing .sequence-copy-panel {
  transform: translateY(-30px);
}

.sequence-copy-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sequence-copy-panel h2 {
  max-width: 620px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.6rem;
  font-style: italic;
  font-weight: 400;
  line-height: 0.92;
}

.sequence-copy-panel p {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.24vw, 1.18rem);
  line-height: 1.68;
}

.sequence-stage {
  position: relative;
  min-height: min(76vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.36);
  isolation: isolate;
}

.sequence-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent 38%);
  pointer-events: none;
  z-index: 2;
}

.sequence-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(0.94) contrast(0.96);
  transition:
    opacity 420ms ease,
    transform 900ms var(--ease-out),
    filter 520ms ease;
}

.sequence-stage img.is-active {
  opacity: 1;
  transform: scale(1.015);
  filter: saturate(1) contrast(1);
  z-index: 1;
}

.sequence-stage img.is-exiting {
  opacity: 0;
  transform: scale(1);
}

.sequence-scrub {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.sequence-scrub span {
  display: block;
  height: 100%;
  background: #d99462;
  transform: scaleX(var(--sequence-progress, 0));
  transform-origin: left;
}


.horizontal-scroll-section {
  height: 320vh;
  background: #000000;
  color: var(--white);
}

.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 9vw, 112px) 0 clamp(36px, 4vw, 56px) clamp(20px, 5vw, 76px);
}

.h-scroll-header {
  flex: 0 0 auto;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.h-scroll-header .eyebrow {
  color: var(--orange);
}

.h-scroll-header h2 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.96;
}

.h-scroll-header h2 em {
  color: #d99462;
  font-style: italic;
}

.h-scroll-track-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.h-scroll-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  height: 100%;
  padding-right: clamp(20px, 5vw, 76px);
  transition: transform 0ms linear;
}

.h-card {
  flex: 0 0 clamp(300px, 32vw, 430px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  padding: clamp(24px, 3vw, 36px);
  opacity: 0;
  transform: translateY(40px);
  transition: border-color 220ms ease, background 220ms ease;
}

.h-card:hover {
  border-color: rgba(216, 104, 36, 0.44);
  background: rgba(216, 104, 36, 0.08);
}

.h-card__num {
  color: rgba(255, 255, 255, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 4.2rem);
  font-style: italic;
  line-height: 1;
}

.h-card h3 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
}

.h-card p {
  flex: 1;
  margin: 0;
  color: #adadad;
  font-size: 1.01rem;
  line-height: 1.6;
}

.h-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-card li {
  position: relative;
  padding-left: 16px;
  color: #939393;
  font-size: 0.86rem;
  font-weight: 700;
}

.h-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
}

.h-card--cta {
  justify-content: center;
  border-color: rgba(216, 104, 36, 0.3);
  background: rgba(216, 104, 36, 0.08);
}

.h-card--cta .h-card__num {
  color: rgba(216, 104, 36, 0.72);
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.h-card--cta h3 {
  color: #d99462;
}

.h-card--cta .button-primary {
  width: fit-content;
  margin-top: 10px;
}

.h-scroll-progress-bar {
  flex: 0 0 auto;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 28px;
  margin-right: clamp(20px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.14);
}

.h-scroll-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #d99462);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.control-section {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 11vw, 150px) clamp(20px, 5vw, 76px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--paper) 90%, #000 10%), var(--paper) 42%),
    var(--paper);
}

.control-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.section-kicker {
  color: var(--orange);
}

.control-command {
  display: grid;
  grid-template-columns: minmax(320px, 0.48fr) minmax(420px, 0.52fr);
  gap: clamp(36px, 7vw, 112px);
  align-items: center;
}

.command-copy {
  position: sticky;
  top: 130px;
}

.command-copy h2 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 6.4vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.command-copy p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.command-board {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 52%),
    #f0f0f0;
  box-shadow: 0 30px 100px rgba(20, 17, 14, 0.08);
  padding: clamp(18px, 2.4vw, 34px);
}

body.theme-night .command-board {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 52%),
    #000000;
}

.command-board::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.48;
  pointer-events: none;
}

.command-board::after {
  content: "";
  position: absolute;
  left: clamp(42px, 7vw, 92px);
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--line);
  opacity: 0.7;
}

.board-rail {
  position: absolute;
  left: clamp(42px, 7vw, 92px);
  top: 74px;
  bottom: 74px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--line);
}

.board-rail span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(216, 104, 36, 0.42);
  border-radius: 999px;
  background: var(--paper);
  transform: translateX(-5.5px);
}

.command-card {
  position: relative;
  z-index: 2;
  --card-x: 0px;
  --card-y: 0px;
  --card-scale: 1;
  display: grid;
  gap: 14px;
  width: min(560px, calc(100% - 76px));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: clamp(18px, 2vw, 26px);
  box-shadow: 0 22px 70px rgba(20, 17, 14, 0.11);
  transform: translate3d(var(--card-x), var(--card-y), 0) scale(var(--card-scale));
  transform-origin: center;
  transition:
    border-color 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    transform 360ms var(--ease-soft),
    box-shadow 260ms ease;
  will-change: transform;
}

body.theme-night .command-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: #111111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.command-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--orange), transparent 74%);
}

.command-card--cost {
  margin-left: clamp(48px, 9vw, 120px);
  z-index: 4;
}

.command-card--schedule {
  margin-left: clamp(92px, 15vw, 190px);
  z-index: 3;
}

.command-card--site {
  margin-left: clamp(64px, 11vw, 142px);
  z-index: 2;
}

.command-card span {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.3vw, 2.55rem);
  line-height: 1;
}

.command-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.command-card strong {
  border-top: 1px solid var(--line);
  color: var(--ink);
  margin-top: 12px;
  padding-top: 18px;
  font-weight: 900;
}

.basement-reveal {
  height: 280vh;
  background: var(--graphite);
  color: var(--white);
}

.basement-stage {
  --basement-progress: 0%;
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: 88px clamp(18px, 4vw, 64px) 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(216, 104, 36, 0.1), transparent 34%),
    var(--graphite);
}

.basement-copy {
  max-width: 520px;
}

.basement-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6.2vw, 6.4rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.basement-copy p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
  line-height: 1.66;
}

.compare-frame {
  position: relative;
  min-height: clamp(430px, 72vh, 760px);
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #111;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
}

.compare-image,
.compare-after-wrap {
  position: absolute;
  inset: 0;
}

.compare-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before {
  filter: saturate(0.72) contrast(1.04);
}

.compare-before--night,
.compare-after--night {
  opacity: 0;
}

body.theme-night .compare-before--day,
body.theme-night .compare-after--day {
  opacity: 0;
}

body.theme-night .compare-before--night,
body.theme-night .compare-after--night {
  opacity: 1;
}

.compare-after-wrap {
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--basement-progress)) 0 0);
  box-shadow: 16px 0 46px rgba(216, 104, 36, 0.12);
  will-change: clip-path;
}

.compare-after {
  width: 100%;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--basement-progress);
  z-index: 4;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(216, 104, 36, 0.96) 16%, rgba(216, 104, 36, 0.96) 84%, transparent);
  transform: translateX(-1px);
}

.compare-handle span {
  position: absolute;
  top: clamp(22px, 7vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 44px;
}


.subtle-progress--basement {
  left: auto;
  right: clamp(18px, 4vw, 64px);
  bottom: 42px;
  width: min(420px, calc(100% - 36px));
  background: rgba(255, 255, 255, 0.2);
}

.handover {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
  min-height: 100vh;
  background: var(--graphite);
  color: var(--white);
}

.handover-image-stack {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.handover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  transition: opacity 520ms ease;
  will-change: opacity;
}

.handover > div {
  align-self: center;
  padding: clamp(44px, 7vw, 92px);
}

.handover h2 {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: clamp(2.6rem, 5.8vw, 6rem);
  font-weight: 900;
  line-height: 0.96;
}

.handover a {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--orange);
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--ease-out), box-shadow 180ms ease;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.64fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, #000 6%);
  color: var(--ink);
  padding: clamp(86px, 11vw, 150px) clamp(20px, 5vw, 76px);
}

body.theme-night .contact-section {
  background: #000000;
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-copy h2 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6.8vw, 7.4rem);
  font-weight: 900;
  line-height: 0.94;
}

.contact-copy p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.66;
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card-bg-raised) 72%, transparent), transparent 48%),
    color-mix(in srgb, var(--card-bg) 78%, transparent);
  padding: clamp(20px, 3.2vw, 34px);
  box-shadow: 0 26px 90px rgba(20, 17, 14, 0.1);
}

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

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

.contact-form label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body.theme-night .contact-form input,
body.theme-night .contact-form select,
body.theme-night .contact-form textarea {
  background: rgba(255, 255, 255, 0.07);
}

body.theme-night .contact-form select {
  background-color: #111111;
}

body.theme-night .contact-form select option {
  background-color: #111111;
  color: #f5efe7;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(216, 104, 36, 0.5);
  box-shadow: 0 0 0 4px rgba(216, 104, 36, 0.1);
}

.contact-form button {
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--ease-out), box-shadow 180ms ease;
}

.form-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 76px) 28px;
  transition: background 260ms var(--ease-in-out), color 260ms var(--ease-in-out), border-color 260ms ease;
}

body.theme-night .site-footer {
  background: #000000;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  padding-bottom: clamp(36px, 5vw, 62px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 26px);
  width: fit-content;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.footer-brand .brand-mark {
  width: clamp(64px, 8vw, 112px);
  height: clamp(64px, 8vw, 112px);
  border-radius: clamp(8px, 1vw, 14px);
  box-shadow: 0 22px 58px rgba(216, 104, 36, 0.18);
}

.footer-top p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-grid > div {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-bg) 72%, transparent);
  padding: 24px;
}

.footer-label {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.site-footer a {
  transition: color 180ms ease;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 360ms ease var(--reveal-delay, 0ms),
    transform 420ms var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .command-card[data-reveal] {
  --card-x: 86px;
  opacity: 0;
  transform: translate3d(var(--card-x), var(--card-y), 0) scale(var(--card-scale));
  transition:
    opacity 420ms ease var(--reveal-delay, 0ms),
    transform 560ms var(--ease-soft) var(--reveal-delay, 0ms),
    border-color 180ms ease,
    filter 180ms ease,
    box-shadow 260ms ease;
}

.motion-ready .command-card[data-reveal].is-visible {
  --card-x: 0px;
  opacity: 1;
  transform: translate3d(var(--card-x), var(--card-y), 0) scale(var(--card-scale));
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--orange);
    opacity: 1;
    transform: translateY(-1px);
  }

  .theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 104, 36, 0.48);
  }

  .theme-toggle:active {
    transform: translateY(0) scale(0.98);
  }

  .opening-metrics span:hover,
  .opening-metrics span:focus-visible {
    color: #f0b77d;
    padding-left: 20px;
    transform: translateX(4px);
  }

  .opening-metrics span:hover::before,
  .opening-metrics span:focus-visible::before {
    transform: scaleX(1);
  }

  .opening-metrics span:hover::after,
  .opening-metrics span:focus-visible::after {
    opacity: 1;
    transform: translate(2px, -50%) rotate(45deg);
  }

  .opening-metrics:has(span:hover) span:not(:hover) {
    opacity: 0.58;
  }

  .command-board:hover .command-card {
    filter: saturate(0.9);
  }

  .command-board .command-card:hover {
    border-color: rgba(216, 104, 36, 0.3);
    box-shadow: 0 28px 90px rgba(20, 17, 14, 0.14);
    filter: none;
    z-index: 12;
    --card-x: -10px;
    --card-y: -8px;
    --card-scale: 1.015;
  }

  body.theme-night .command-board .command-card:hover {
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  }

  .handover a:hover {
    background: #c05e1c;
    box-shadow: 0 16px 46px rgba(216, 104, 36, 0.26);
    transform: translateY(-2px);
  }

  .contact-form button:hover {
    background: #c05e1c;
    box-shadow: 0 16px 46px rgba(216, 104, 36, 0.26);
    transform: translateY(-2px);
  }

  .handover a:active,
  .contact-form button:active {
    transform: translateY(0) scale(0.985);
  }

  .site-footer a:hover {
    color: var(--orange);
  }

  .button-primary:hover {
    background: #b7531b;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      0 24px 64px rgba(132, 51, 13, 0.34),
      0 16px 34px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
  }

  .button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
  }

  .button-primary:active,
  .button-secondary:active {
    transform: translateY(0) scale(0.985);
  }
}

@media (max-width: 1280px) {
  .opening-metrics {
    display: none;
  }

  .opening-copy {
    max-width: 820px;
  }
  .opening-copy > p:not(.eyebrow) {
    width: min(100%, 760px);
    max-width: calc(100vw - 48px);
    white-space: normal;
    font-size: clamp(0.92rem, 1.55vw, 1.04rem);
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(5rem, 15vw, 12rem);
  }

  .sequence-pin {
    grid-template-columns: minmax(330px, 0.84fr) minmax(0, 1.16fr);
  }

  .sequence-copy-stack {
    min-height: 430px;
  }

  .sequence-copy-panel h2 {
    font-size: 4.85rem;
  }
}

@media (max-width: 980px) {
  .nav {
    top: 10px;
    left: 12px;
    right: 12px;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .nav.is-solid {
    padding: 12px;
  }

  .brand {
    padding-right: 72px;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    font-size: clamp(0.72rem, 1.8vw, 0.84rem);
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .theme-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 58px;
    height: 30px;
    padding: 3px;
  }

  .theme-toggle__option {
    width: 24px;
    height: 24px;
  }

  .theme-toggle__option svg {
    width: 13px;
    height: 13px;
  }

  .theme-toggle__thumb {
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
  }

  body.theme-night .theme-toggle__thumb {
    transform: translateX(28px);
  }

  .opening {
    min-height: 100vh;
    padding-top: 148px;
  }

  .opening-metrics {
    display: none;
  }

  .control-command,
  .project-signals,
  .footer-grid,
  .footer-top,
  .basement-stage,
  .contact-section,
  .handover {
    grid-template-columns: 1fr;
  }

  .build-story {
    height: 230vh;
    padding: 0;
  }

  .sequence-pin {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 46vh) minmax(0, 1fr);
    align-content: center;
    gap: clamp(20px, 4vw, 32px);
    min-height: 100svh;
    padding: clamp(96px, 13vw, 132px) clamp(14px, 4vw, 36px) clamp(28px, 5vw, 48px);
  }

  .sequence-stage {
    order: -1;
    min-height: 0;
    height: 100%;
  }

  .sequence-copy {
    max-width: none;
  }

  .sequence-copy-stack {
    display: block;
    min-height: 270px;
  }

  .sequence-copy-panel {
    position: absolute;
    opacity: 0;
    transform: translateY(22px);
    padding-bottom: 0;
    border-bottom: 0;
  }

  .build-story.is-reversing .sequence-copy-panel {
    transform: translateY(-22px);
  }

  .sequence-copy-panel.is-active {
    opacity: 1;
    transform: translateY(0);
  }

  .sequence-copy-panel h2 {
    font-size: clamp(3rem, 8vw, 4.3rem);
  }
.horizontal-scroll-section {
    height: auto;
  }

  .h-scroll-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding-right: clamp(20px, 5vw, 76px);
  }

  .h-scroll-track {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    transform: none !important;
  }

  .h-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .h-scroll-progress-bar {
    display: none;
  }

  .project-signals {
    margin-block: clamp(58px, 8vw, 84px);
  }

  .project-signals::before {
    top: 44px;
    right: auto;
    bottom: 44px;
    left: 39px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--orange-dark), var(--orange) 52%, #d99462);
  }

  .project-signal {
    min-height: 330px;
    padding: 28px 24px 28px 76px;
  }

  .project-signal + .project-signal {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-signal::after {
    top: 74px;
    font-size: clamp(7rem, 34vw, 10rem);
  }

  .project-signal__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .project-signal__node {
    top: 36px;
    left: 31px;
    transform: none;
  }

  .project-signal__copy {
    margin-top: 54px;
  }

  .project-signal__outcome {
    margin-top: 42px;
  }

  .command-copy {
    position: static;
  }

  .command-board {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .command-board::after,
  .board-rail {
    display: none;
  }

  .command-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .contact-copy {
    position: static;
  }

  .basement-stage {
    align-content: center;
  }

  .compare-frame {
    min-height: 50vh;
  }

}

/* About section */

.about-section {
  padding: clamp(86px, 11vw, 150px) clamp(20px, 5vw, 76px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.54fr) minmax(280px, 0.46fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.about-copy h2 {
  max-width: 760px;
  margin-bottom: 32px;
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.about-copy p {
  max-width: 580px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.72;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-name-note {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.12rem) !important;
}

.about-stats {
  position: sticky;
  top: 130px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-bg) 78%, transparent);
  padding: clamp(18px, 2.2vw, 28px);
  transition: border-color 200ms ease, background 200ms ease;
}

.about-stat:hover {
  border-color: rgba(216, 104, 36, 0.3);
  background: rgba(216, 104, 36, 0.04);
}

body.theme-night .about-stat {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-night .about-stat:hover {
  border-color: rgba(216, 104, 36, 0.32);
  background: rgba(216, 104, 36, 0.08);
}

.about-stat strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 900;
}

.about-stat span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.54;
}

/* Work / Projects section */

.work-section {
  padding: clamp(86px, 11vw, 150px) clamp(20px, 5vw, 76px);
  background: #000000;
  color: var(--white);
}

.work-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.work-header {
  max-width: 860px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.work-header .eyebrow {
  color: var(--orange);
}

.work-header h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.96;
}

.work-intro {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.6;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.work-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.work-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease-out);
}

.work-card:hover .work-card__image-wrap img {
  transform: scale(1.04);
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.2vw, 26px);
  flex: 1;
}

.work-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.work-tag {
  display: inline-flex;
  border: 1px solid rgba(216, 104, 36, 0.38);
  border-radius: 999px;
  background: rgba(216, 104, 36, 0.1);
  color: #d99462;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.work-location {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

.work-card h3 {
  margin-bottom: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  font-weight: 400;
  line-height: 1.1;
}

.work-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.94rem;
  line-height: 1.62;
}

.work-talk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.work-talk-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color 220ms ease, background 220ms ease;
}

.work-talk-card:hover {
  border-color: rgba(216, 104, 36, 0.38);
  background: rgba(216, 104, 36, 0.06);
}

.work-talk-card h3 {
  margin-bottom: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  font-weight: 400;
  line-height: 1.1;
}

.work-talk-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.98rem;
  line-height: 1.66;
}

.work-cta {
  display: flex;
}

@media (max-width: 980px) {
  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-stats {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .work-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .work-talk-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 10px;
  }

  .nav-actions {
    width: 100%;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  /* Hamburger sits left of the theme toggle */
  .nav-hamburger {
    right: 80px;
  }

  /* Hide hero body paragraph — clean mobile landing */
  .opening-copy p:not(.eyebrow) {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.78rem;
    overflow-x: auto;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .opening {
    min-height: 100svh;
    padding: 112px 18px clamp(48px, 12svh, 82px);
    align-items: flex-end;
  }

  .opening-copy {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: clamp(5.7rem, 25vw, 7.6rem);
    line-height: 0.72;
    margin-bottom: 10px;
    transform: translateX(-3px);
  }

  .opening-copy::before {
    width: 64px;
    margin-bottom: 18px;
  }

  .opening-copy .opening-kicker {
    display: inline-grid;
    width: fit-content;
    max-width: min(100%, 330px);
    gap: 3px;
    margin-bottom: 12px;
    padding: 8px 11px 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-left: 2px solid rgba(216, 104, 36, 0.82);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--orange);
    font-size: clamp(0.68rem, 2.8vw, 0.78rem);
    line-height: 1.08;
    backdrop-filter: blur(14px) saturate(1.04);
    -webkit-backdrop-filter: blur(14px) saturate(1.04);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.48);
  }

  .opening-copy .opening-kicker span:first-child {
    color: var(--orange);
  }

  .opening-copy .eyebrow-separator {
    display: none;
  }

  /* Remove secondary CTA, make primary full-width and bold */
  .opening-actions .button-secondary {
    display: none;
  }

  .opening-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
  }

  .opening-actions::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.32);
  }

  .opening-actions .button-primary {
    min-height: 48px;
    padding: 0 22px;
    background: #a94612;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 10px 28px rgba(132, 51, 13, 0.34),
      0 10px 22px rgba(0, 0, 0, 0.18);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  }

  .opening-metrics {
    display: none !important;
  }

  .opening-metrics span {
    flex: 1;
    display: block;
    padding: 0;
    border-bottom: none;
    text-align: center;
    font-size: 0.66rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.1em;
    overflow: visible;
    transition: none;
    transform: none !important;
  }

  .opening-metrics span::before,
  .opening-metrics span::after {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .opening-image {
    object-position: 50% center;
  }

  .sequence-stage {
    min-height: clamp(260px, 42svh, 360px);
  }
.sequence-copy-stack {
    min-height: 300px;
  }

  .sequence-copy-panel h2 {
    font-size: clamp(2.35rem, 10.4vw, 3.2rem);
  }

  .sequence-copy-panel p {
    font-size: 0.96rem;
  }

  .footer-brand {
    font-size: clamp(2.4rem, 16vw, 4.2rem);
  }

  .footer-brand .brand-mark {
    width: 58px;
    height: 58px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Team section */

.team-section {
  padding: clamp(86px, 11vw, 150px) clamp(20px, 5vw, 76px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.team-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.team-header {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.team-header h2 {
  font-size: clamp(2.8rem, 6vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  margin-bottom: 0;
}

.team-card {
  display: grid;
  grid-template-columns: clamp(160px, 18vw, 240px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  max-width: 920px;
}

.team-photo {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-name {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.1;
}

.team-role {
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.team-bio p {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.72;
  margin-bottom: 16px;
  max-width: 580px;
}

.team-bio p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .team-card {
    grid-template-columns: 1fr;
  }

  .team-photo {
    max-width: 160px;
    aspect-ratio: 1;
  }
}

/* Testimonials section */

.testimonials-section {
  padding: clamp(86px, 11vw, 150px) clamp(20px, 5vw, 76px);
  background: #000000;
  color: var(--white);
}

.testimonials-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.testimonials-header {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.testimonials-header .eyebrow {
  color: var(--orange);
}

.testimonials-header h2 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  font-weight: 400;
  line-height: 0.96;
  margin-bottom: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: clamp(24px, 3vw, 36px);
}

.testimonial-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-style: italic;
  line-height: 1.62;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-top: 20px;
}

.testimonial-card footer strong {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
}

.testimonial-card footer span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* FAQ section */

.faq-section {
  padding: clamp(86px, 11vw, 150px) clamp(20px, 5vw, 76px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.faq-header {
  position: sticky;
  top: 130px;
}

.about-section .eyebrow,
.faq-section .eyebrow,
.team-section .eyebrow {
  color: var(--orange);
}

.faq-header h2 {
  font-size: clamp(2.6rem, 5.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.92;
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  cursor: pointer;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 800;
  list-style: none;
  color: var(--ink);
  transition: color 180ms ease;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center/1px 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/10px 1px no-repeat;
  transition: transform 260ms var(--ease-out), background 180ms ease, border-color 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--orange);
  background:
    linear-gradient(var(--orange), var(--orange)) center/1px 10px no-repeat,
    linear-gradient(var(--orange), var(--orange)) center/10px 1px no-repeat;
}

.faq-item[open] summary {
  color: var(--orange-dark);
}

.faq-item p {
  margin: 0 0 22px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.2vw, 1.06rem);
  line-height: 1.72;
  max-width: 640px;
}

@media (max-width: 980px) {
  .faq-inner {
    grid-template-columns: 1fr;
  }

  .faq-header {
    position: static;
  }
}

/* Footer social links */

.footer-social {
  display: flex;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  margin-bottom: -10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  transition: color 180ms ease;
}

.footer-social a:hover {
  color: var(--orange);
}

/* Form optional label */

.form-optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9em;
}

/* Back-to-top button */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 240ms ease, transform 240ms var(--ease-out), background 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(12px);
}

.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(216, 104, 36, 0.46);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}

/* Mobile hamburger menu */

.nav-hamburger {
  display: none;
  position: absolute;
  top: 12px;
  right: 80px;
  z-index: 3;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 240ms var(--ease-out), opacity 180ms ease, width 180ms ease;
  transform-origin: center;
}

.nav.nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.nav-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav.nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .nav.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* ── Light theme: remove black backgrounds from dark sections ─── */

body:not(.theme-night) .build-story {
  background: var(--paper);
  color: var(--ink);
}

body:not(.theme-night) .sequence-copy-panel h2 {
  color: var(--ink);
}

body:not(.theme-night) .sequence-copy-panel p {
  color: var(--muted);
}

body:not(.theme-night) .sequence-stage {
  border-color: var(--line);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

body:not(.theme-night) .sequence-scrub {
  background: var(--line);
}

body:not(.theme-night) .horizontal-scroll-section {
  background: var(--paper);
  color: var(--ink);
}

body:not(.theme-night) .h-scroll-header .eyebrow {
  color: var(--orange);
}

body:not(.theme-night) .h-scroll-header h2 {
  color: var(--ink);
}

body:not(.theme-night) .h-scroll-header h2 em {
  color: var(--orange-dark);
}

body:not(.theme-night) .h-card {
  border-color: var(--line);
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
}

body:not(.theme-night) .h-card__num {
  color: rgba(20, 17, 14, 0.22);
}

body:not(.theme-night) .h-card h3 {
  color: var(--ink);
}

body:not(.theme-night) .h-card p {
  color: var(--muted);
}

body:not(.theme-night) .h-card li {
  color: var(--muted);
}

body:not(.theme-night) .h-card--cta {
  border-color: rgba(216, 104, 36, 0.3);
  background: rgba(216, 104, 36, 0.06);
}

body:not(.theme-night) .h-card--cta h3 {
  color: var(--orange-dark);
}

body:not(.theme-night) .h-card--cta .h-card__num {
  color: rgba(216, 104, 36, 0.42);
}

body:not(.theme-night) .h-scroll-progress-bar {
  background: var(--line);
}

body:not(.theme-night) .work-section {
  background: var(--paper);
  color: var(--ink);
}

body:not(.theme-night) .work-header .eyebrow {
  color: var(--orange);
}

body:not(.theme-night) .work-header h2 {
  color: var(--ink);
}

body:not(.theme-night) .work-intro {
  color: var(--muted);
}

body:not(.theme-night) .work-talk-card {
  border-color: var(--line);
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
}

body:not(.theme-night) .work-talk-card h3 {
  color: var(--ink);
}

body:not(.theme-night) .work-talk-card p {
  color: var(--muted);
}

body:not(.theme-night) .testimonials-section {
  background: var(--paper);
  color: var(--ink);
}

body:not(.theme-night) .testimonials-header .eyebrow {
  color: var(--orange);
}

body:not(.theme-night) .testimonials-header h2 {
  color: var(--ink);
}

body:not(.theme-night) .testimonial-card {
  border-color: var(--line);
  background: color-mix(in srgb, var(--card-bg) 80%, transparent);
}

body:not(.theme-night) .testimonial-card p {
  color: var(--ink);
}

body:not(.theme-night) .testimonial-card footer {
  border-top-color: var(--line);
}

body:not(.theme-night) .testimonial-card footer strong {
  color: var(--ink);
}

body:not(.theme-night) .testimonial-card footer span {
  color: var(--muted);
}

body:not(.theme-night) .basement-reveal {
  background: var(--paper);
  color: var(--ink);
}

body:not(.theme-night) .basement-stage {
  background: var(--paper);
}

body:not(.theme-night) .basement-copy h2 {
  color: var(--ink);
}

body:not(.theme-night) .basement-copy p:last-child {
  color: var(--muted);
}

body:not(.theme-night) .compare-frame {
  border-color: var(--line);
  background: var(--card-bg);
}

body:not(.theme-night) .handover {
  background: var(--paper);
  color: var(--ink);
}

body:not(.theme-night) .handover h2 {
  color: var(--ink);
}

body:not(.theme-night) .handover a {
  color: var(--white);
}
/* Single-icon theme flip button */
.theme-toggle {
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  perspective: 600px;
  background: rgba(255, 255, 255, 0.16);
}

.nav.is-solid .theme-toggle {
  background: rgba(255, 255, 255, 0.72);
}

body.theme-night .nav.is-solid .theme-toggle,
body.theme-night .theme-toggle {
  background: rgba(216, 104, 36, 0.16);
}

.theme-toggle__thumb {
  display: none !important;
}

.theme-toggle__option {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  opacity: 0;
  transform: rotateY(92deg) scale(0.92);
  backface-visibility: hidden;
  transition: opacity 180ms ease, transform 260ms var(--ease-in-out), background 180ms ease, color 180ms ease;
}

.theme-toggle__option svg {
  width: 16px;
  height: 16px;
}

body:not(.theme-night) .theme-toggle__option--day {
  opacity: 1;
  color: var(--orange) !important;
  background: rgba(255, 255, 255, 0.92);
  transform: rotateY(0deg) scale(1);
}

body.theme-night .theme-toggle__option--night {
  opacity: 1;
  color: var(--white) !important;
  background: var(--orange);
  transform: rotateY(0deg) scale(1);
}

@media (max-width: 980px) {
  .theme-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
  }

  .theme-toggle__option {
    width: 100%;
    height: 100%;
  }

  .theme-toggle__option svg {
    width: 14px;
    height: 14px;
  }
}

/* Mobile refinement pass */
@media (max-width: 640px) {
  .opening {
    min-height: 92svh;
    padding-bottom: clamp(42px, 10svh, 72px);
  }

  .opening-actions .button-primary {
    min-height: 46px;
    padding-inline: 20px;
    font-size: 0.95rem;
  }

  .project-signals {
    margin: 48px 20px 64px;
  }

  .project-signal {
    min-height: 360px;
  }

  .sequence-pin {
    gap: 18px;
  }

  .sequence-copy {
    padding-left: 0;
  }

  .sequence-copy-stack {
    min-height: 280px;
  }

  .sequence-copy-panel h2 {
    font-size: clamp(2.25rem, 9.4vw, 2.9rem);
    line-height: 0.96;
  }

  .sequence-copy-panel p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .h-card,
  .work-talk-card,
  .testimonial-card,
  .contact-form {
    border-radius: 8px;
  }

  .about-section,
  .work-section,
  .faq-section,
  .contact-section {
    padding-block: 72px;
  }
}
/* Smart display / short landscape refinement */
@media (min-width: 981px) and (max-height: 720px) {
  .h-scroll-sticky {
    padding-top: clamp(76px, 10vh, 88px);
    padding-bottom: 22px;
  }

  .h-scroll-header {
    margin-bottom: 18px;
  }

  .h-scroll-header h2 {
    font-size: clamp(3rem, 5.2vw, 4.7rem);
    line-height: 0.92;
  }

  .h-scroll-track-wrap {
    max-height: 315px;
  }

  .h-scroll-track {
    gap: 14px;
  }

  .h-card {
    flex-basis: clamp(285px, 30vw, 340px);
    gap: 10px;
    padding: 18px 22px;
  }

  .h-card__num {
    font-size: clamp(2.2rem, 3.6vw, 3rem);
  }

  .h-card h3 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.02;
  }

  .h-card p {
    font-size: 0.9rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .h-card ul {
    gap: 5px;
  }

  .h-card li {
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .h-card--cta {
    justify-content: flex-start;
  }

  .h-card--cta .h-card__num {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  }

  .h-card--cta .button-primary {
    min-height: 46px;
    margin-top: auto;
  }

  .h-scroll-progress-bar {
    margin-top: 14px;
  }
}
/* Hero kicker glass override for tablet and desktop */
@media (min-width: 641px) {
  .opening-copy .opening-kicker {
    position: relative;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.52em;
    margin-bottom: 20px;
    padding: 9px 15px 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-left: 2px solid var(--orange);
    border-radius: 6px;
    background: rgba(12, 11, 10, 0.36);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 18px 54px rgba(0, 0, 0, 0.28);
    color: var(--orange);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .opening-copy .opening-kicker span {
    color: var(--orange);
  }
}
/* Ruach visual polish overrides: keep known-good motion, restore premium button and consultation cards. */
:root {
  --font-sans: 'Inter', Arial, Helvetica, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --measure-tight: 48ch;
  --text-label: 0.76rem;
  --text-small: clamp(0.88rem, 0.84rem + 0.16vw, 0.96rem);
  --display-serif: clamp(3rem, 6.8vw, 7.4rem);
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-panel: 10px;
  --shadow-card: 0 18px 56px rgba(20, 17, 14, 0.1);
  --shadow-panel: 0 24px 80px rgba(20, 17, 14, 0.1);
  --shadow-action: 0 16px 38px rgba(132, 51, 13, 0.24), 0 10px 24px rgba(0, 0, 0, 0.18);
}

body.theme-night {
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-panel: 0 30px 92px rgba(0, 0, 0, 0.38);
}

.button-primary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-control);
  background: #fe632f;
  color: #0f0f0f;
  box-shadow: var(--shadow-action);
  text-shadow: none;
}

.work-talk-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.065);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 180ms ease;
}

.work-talk-card::before {
  content: "";
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: #fe632f;
}

.work-talk-card h3 {
  max-width: 12ch;
  margin-bottom: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  font-weight: 900;
  line-height: 0.95;
}

.work-talk-card p {
  max-width: var(--measure-tight);
  margin-top: auto;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--text-small);
  line-height: 1.58;
}

@media (hover: hover) and (pointer: fine) {
  .button-primary:hover {
    background: #fe632f;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      0 24px 64px rgba(132, 51, 13, 0.34),
      0 16px 34px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
  }

  .work-talk-card:hover {
    border-color: rgba(254, 99, 47, 0.5);
    background: rgba(255, 255, 255, 0.085);
    box-shadow: var(--shadow-card);
  }
}

body:not(.theme-night) .work-talk-card {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, #000 6%);
  box-shadow: var(--shadow-card);
}

body:not(.theme-night) .work-talk-card:hover {
  border-color: rgba(254, 99, 47, 0.34);
  background: color-mix(in srgb, var(--paper) 91%, #fe632f 9%);
  box-shadow: var(--shadow-card);
}

body:not(.theme-night) .work-talk-card h3 {
  color: var(--ink);
}

body:not(.theme-night) .work-talk-card p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .work-talk-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .work-talk-card {
    border-radius: var(--radius-card);
  }
}
