* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--text-primary);
  background: #08080d;
  font-family: var(--font-body);
  font-feature-settings: "palt" 1;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

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

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h3,
p {
  text-wrap: pretty;
}

.site-header {
  transition: background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 13, 0.86);
}

.scroll-story {
  position: relative;
  height: 520svh;
  min-height: 3200px;
  background: #08080d;
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.story-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #08080d;
}

.story-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 13, 0.98) 0%, rgba(8, 8, 13, 0.9) 27%, rgba(8, 8, 13, 0.2) 61%, rgba(8, 8, 13, 0.06) 100%),
    linear-gradient(0deg, rgba(8, 8, 13, 0.58), transparent 44%);
  pointer-events: none;
}

.story-scenes {
  position: relative;
  z-index: 2;
  height: 100%;
  pointer-events: none;
}

.story-scene {
  --scene-opacity: 0;
  --scene-shift: 32px;
  position: absolute;
  top: 50%;
  left: 0;
  width: min(590px, 48vw);
  opacity: var(--scene-opacity);
  transform: translate3d(0, calc(-50% + var(--scene-shift)), 0);
  will-change: opacity, transform;
}

.story-scene:first-child {
  --scene-opacity: 1;
  --scene-shift: 0px;
}

.story-scene.is-interactive {
  pointer-events: auto;
}

.story-scene--hero {
  top: 51%;
  width: min(640px, 49vw);
}

.story-product,
.story-index,
.test-section__index {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.story-product {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.45vw, 23px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.story-product::before {
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--gold);
  content: "";
}

.story-eyebrow {
  margin: 0 0 22px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.story-scene h1,
.story-scene h2 {
  margin: 0;
  color: #f5f1e8;
  font-size: clamp(58px, 6.4vw, 102px);
  line-height: 1.08;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.26);
}

.story-scene h2 {
  max-width: 610px;
  font-size: clamp(48px, 5.3vw, 82px);
  line-height: 1.14;
}

.story-scene--hero h1 span,
.story-promise span {
  display: block;
}

.story-promise {
  max-width: 540px;
  margin: 28px 0 0;
  color: #e8e2d7;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.15vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.6;
}

.story-scene:not(.story-scene--hero) > p:last-of-type {
  max-width: 530px;
  margin: 26px 0 0;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 2;
}

.story-button {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  margin-top: 30px;
  padding: 0 24px;
  color: #12110d;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.story-button:hover,
.story-button:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.story-text-link {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 7px;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold-line);
  font-size: 13px;
  font-weight: 700;
}

.story-status {
  position: absolute;
  z-index: 3;
  right: max(26px, calc((100vw - var(--shell)) / 2));
  bottom: 32px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.story-status__current {
  color: var(--gold-bright);
  font-size: 22px;
}

.story-status__separator {
  opacity: 0.45;
}

.story-status small {
  margin-left: 14px;
  color: var(--text-tertiary);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.story-chapters {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: max(26px, calc((100vw - var(--shell)) / 2));
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}

.story-chapters li {
  color: rgba(243, 240, 232, 0.34);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: right;
}

.story-chapters li.is-active {
  color: var(--gold-bright);
}

.test-section {
  position: relative;
  padding: clamp(92px, 10vw, 146px) 0;
}

.test-section--paper {
  --text-primary: #17161c;
  --text-secondary: #4e4b43;
  --text-tertiary: #736f64;
  --line-subtle: rgba(23, 22, 28, 0.09);
  --line-default: rgba(23, 22, 28, 0.17);
  --gold: #8b681c;
  --gold-bright: #6e5010;
  color: var(--text-primary);
  background: #f4f0e6;
}

.test-section--soft {
  background: #e9e3d6;
}

.test-section__head {
  display: grid;
  grid-template-columns: minmax(150px, 2.4fr) minmax(0, 9.6fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  margin-bottom: 64px;
}

.test-section__head h2,
.position h2,
.test-cta h2 {
  margin-bottom: 22px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.18;
}

.test-section__head > div > p,
.position header > p {
  max-width: 670px;
  color: var(--text-secondary);
  line-height: 1.95;
}

.deliverable-list {
  border-top: 1px solid var(--line-default);
}

.deliverable-row {
  display: grid;
  grid-template-columns: 58px minmax(110px, 1.6fr) minmax(320px, 5.6fr) minmax(170px, 2.8fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  padding: 42px 0 46px;
  border-bottom: 1px solid var(--line-default);
}

.deliverable-row__number {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
}

.deliverable-row__tag {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.deliverable-row h3 {
  margin: -7px 0 14px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.65vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.deliverable-row div > p {
  max-width: 590px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.deliverable-row ul {
  margin: -3px 0 0;
  padding: 0;
  color: var(--text-secondary);
  list-style: none;
}

.deliverable-row li {
  padding: 5px 0;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 11px;
}

.position {
  background: #0c0c12;
}

.position::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(243, 240, 232, 0.05);
  content: "";
}

.position__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(480px, 7fr);
  gap: clamp(50px, 8vw, 116px);
  align-items: center;
}

.position .test-section__index {
  margin-bottom: 26px;
}

.choice-table {
  border-top: 1px solid var(--line-default);
  border-bottom: 1px solid var(--line-default);
}

.choice-table__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-default);
}

.choice-table__head p,
.choice-table__head strong {
  margin: 0;
  font-size: 12px;
}

.choice-table__head p {
  color: var(--text-secondary);
}

.choice-table__head strong {
  color: var(--gold-bright);
}

.choice-table dl {
  margin: 0;
}

.choice-table dl > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.choice-table dt {
  color: var(--text-tertiary);
  font-size: 12px;
}

.choice-table dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.choice-table__foot {
  margin: 0;
  padding: 18px 0;
  color: var(--text-tertiary);
  font-size: 11px;
}

.service-list {
  border-top: 1px solid var(--line-default);
}

.service-list > a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  gap: 22px;
  align-items: center;
  min-height: 160px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-default);
  transition: padding 180ms ease, color 180ms ease;
}

.service-list > a:hover,
.service-list > a:focus-visible {
  padding-right: 14px;
  padding-left: 14px;
}

.service-list > a > span,
.service-list > a > b {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
}

.service-list > a > b {
  text-align: right;
  opacity: 0.55;
}

.service-list small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.service-list h3 {
  margin: 3px 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
}

.service-list p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.test-cta {
  padding: clamp(94px, 11vw, 156px) 0;
  background: #08080d;
}

.test-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: end;
}

.test-cta .test-section__index {
  margin-bottom: 24px;
}

.test-cta h2 {
  margin: 0;
}

.test-cta__inner > div:last-child > p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.test-cta__inner > div:last-child > small {
  display: block;
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 10px;
}

.test-footer {
  padding: 42px 0;
  color: var(--text-secondary);
  background: #060609;
  border-top: 1px solid var(--line-subtle);
}

.test-footer .shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.test-footer strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 24px;
}

.test-footer p,
.test-footer small {
  margin: 0;
  font-size: 11px;
}

.test-footer small {
  color: var(--text-tertiary);
  text-align: right;
}

.webgl-fallback .story-canvas {
  display: none;
}

.webgl-fallback .story-shade {
  background: #08080d;
}

@media (min-width: 981px) {
  .position h2 {
    font-size: clamp(40px, 4vw, 52px);
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 40px, 760px);
    --header-height: 68px;
  }

  .site-header,
  .site-header.is-scrolled {
    background: rgba(8, 8, 13, 0.94);
    backdrop-filter: none;
  }

  .global-nav {
    position: fixed;
    z-index: var(--z-menu);
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    margin: 0;
    padding: 28px 20px;
    background: #08080d;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }

  .site-header.is-menu-open .global-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .global-nav a {
    min-height: 60px;
    padding: 0 8px;
    border-bottom: 1px solid var(--line-subtle);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .story-shade {
    background: linear-gradient(0deg, rgba(8, 8, 13, 0.98) 0%, rgba(8, 8, 13, 0.88) 40%, rgba(8, 8, 13, 0.1) 72%, rgba(8, 8, 13, 0.08) 100%);
  }

  .story-scene,
  .story-scene--hero {
    top: auto;
    bottom: 9vh;
    width: min(680px, calc(100vw - 96px));
    transform: translate3d(0, var(--scene-shift), 0);
  }

  .story-scene h1 {
    font-size: clamp(54px, 10vw, 82px);
  }

  .story-scene h2 {
    font-size: clamp(44px, 8vw, 67px);
  }

  .story-promise {
    font-size: clamp(22px, 3.5vw, 30px);
  }

  .story-status {
    bottom: 24px;
  }

  .story-chapters {
    top: calc(var(--header-height) + 28px);
    bottom: auto;
    grid-auto-flow: column;
    transform: none;
  }

  .story-chapters li {
    text-align: left;
  }

  .test-section__head,
  .position__grid,
  .test-cta__inner {
    grid-template-columns: 1fr;
  }

  .position__grid {
    gap: 54px;
  }

  .position::before {
    display: none;
  }

  .deliverable-row {
    grid-template-columns: 44px 130px minmax(0, 1fr);
  }

  .deliverable-row ul {
    display: none;
  }

  .test-footer .shell {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .test-footer small {
    text-align: left;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .story-shade {
    background:
      linear-gradient(90deg, rgba(8, 8, 13, 0.98) 0%, rgba(8, 8, 13, 0.86) 38%, rgba(8, 8, 13, 0.2) 62%, rgba(8, 8, 13, 0.04) 100%),
      linear-gradient(0deg, rgba(8, 8, 13, 0.42), transparent 48%);
  }

  .story-scene,
  .story-scene--hero {
    top: 51%;
    bottom: auto;
    width: min(390px, 47vw);
    transform: translate3d(0, calc(-50% + var(--scene-shift)), 0);
  }

  .story-scene h1 {
    font-size: clamp(48px, 6.4vw, 56px);
  }

  .story-scene h2 {
    font-size: clamp(40px, 5.25vw, 47px);
  }

  .story-promise {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .brand__name {
    font-size: 23px;
  }

  .scroll-story {
    height: 480svh;
    min-height: 2840px;
  }

  .story-sticky {
    min-height: 560px;
  }

  .story-scene,
  .story-scene--hero {
    right: 16px;
    bottom: 68px;
    left: 16px;
    width: auto;
  }

  .story-product {
    margin-bottom: 7px;
    font-size: 17px;
  }

  .story-product::before {
    width: 24px;
  }

  .story-eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .story-scene h1 {
    font-size: clamp(42px, 11.6vw, 56px);
    line-height: 1.13;
  }

  .story-scene h2 {
    font-size: clamp(38px, 10vw, 48px);
    line-height: 1.2;
  }

  .story-promise {
    margin-top: 17px;
    font-size: clamp(20px, 5.35vw, 25px);
    line-height: 1.55;
  }

  .story-scene:not(.story-scene--hero) > p:last-of-type {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.8;
  }

  .story-button {
    min-height: 52px;
    margin-top: 20px;
    padding: 0 18px;
    font-size: 12px;
  }

  .story-text-link {
    margin-top: 18px;
  }

  .story-status {
    right: 16px;
    bottom: 16px;
  }

  .story-status small {
    display: none;
  }

  .story-chapters {
    top: calc(var(--header-height) + 17px);
    right: 16px;
    gap: 10px;
  }

  .story-chapters li {
    font-size: 8px;
  }

  .test-section {
    padding: 78px 0;
  }

  .test-section__head {
    gap: 24px;
    margin-bottom: 40px;
  }

  .test-section__head h2,
  .position h2,
  .test-cta h2 {
    font-size: clamp(36px, 10.5vw, 49px);
  }

  .deliverable-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 30px 0 34px;
  }

  .deliverable-row > div {
    grid-column: 2;
  }

  .deliverable-row h3 {
    margin-top: 0;
    font-size: 27px;
  }

  .choice-table__head {
    flex-direction: column;
    gap: 5px;
  }

  .choice-table dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px 0;
  }

  .service-list > a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 26px 0;
  }

  .service-list > a > b {
    display: none;
  }

  .service-list h3 {
    font-size: 21px;
  }

  .test-cta__inner {
    gap: 34px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
