:root {
  --ink: #0a0c10;
  --ink-soft: #10141c;
  --ink-lift: #161b26;
  --steel: #a0a9ba;
  --steel-bright: #d6dbe5;
  --snow: #f2f4f8;
  --accent: #3de0c4;
  --accent-dim: rgba(61, 224, 196, 0.16);
  --rule: rgba(160, 169, 186, 0.28);
  --veil: rgba(10, 12, 16, 0.68);
  --veil-strong: rgba(10, 12, 16, 0.86);
  --text-shadow-soft: 0 1px 2px rgba(10, 12, 16, 0.55),
    0 8px 28px rgba(10, 12, 16, 0.45);
  --font-display: "Instrument Serif", "Times New Roman", Times, serif;
  --font-body: "Outfit", "Helvetica Neue", Helvetica, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.35rem, 4.5vw, 3.5rem);
  --max: 72rem;
  --prose: 38rem;
  --hero-fade: 1;
  --hero-shift: 0px;
  --progress: 0%;
  --pin-progress: 0;
  --rail-inset: 0;
}

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

html {
  margin: 0;
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--snow);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
}

.skip-link:focus-visible {
  outline: 2px solid var(--snow);
  outline-offset: 2px;
}

/* —— Progress + atmosphere —— */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 50;
  background: rgba(160, 169, 186, 0.16);
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: var(--progress);
  background: linear-gradient(90deg, var(--accent), #7aefe0);
  transform-origin: left center;
  will-change: width;
  box-shadow: 0 0 12px rgba(61, 224, 196, 0.35);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}

body.is-ready .atmosphere {
  opacity: 1;
}

.atmosphere__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(
      ellipse 55% 45% at 12% 88%,
      rgba(61, 224, 196, 0.09),
      transparent 62%
    ),
    radial-gradient(
      ellipse 45% 40% at 88% 12%,
      rgba(160, 169, 186, 0.1),
      transparent 60%
    );
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* —— Chapter rail —— */
.chapter-rail {
  position: fixed;
  z-index: 45;
  pointer-events: none;
}

.chapter-rail__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.15rem;
}

.chapter-rail__link {
  pointer-events: auto;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.35rem 0.45rem;
  text-decoration: none;
  color: var(--steel-bright);
  opacity: 0.72;
  text-shadow: 0 1px 10px rgba(10, 12, 16, 0.85);
  transition:
    opacity 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.chapter-rail__link:hover,
.chapter-rail__link:focus-visible {
  opacity: 1;
  color: var(--snow);
}

.chapter-rail__link.is-active {
  opacity: 1;
  color: var(--accent);
  text-shadow:
    0 0 12px rgba(10, 12, 16, 0.9),
    0 1px 2px rgba(10, 12, 16, 0.7);
}

.chapter-rail__num {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.chapter-rail__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Desktop: vertical side rail */
@media (min-width: 1100px) {
  .chapter-rail {
    top: 50%;
    left: clamp(0.75rem, 2vw, 1.5rem);
    transform: translateY(-50%);
  }

  .chapter-rail__list {
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.4rem;
    background: rgba(10, 12, 16, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(160, 169, 186, 0.18);
    border-radius: 4px;
  }

  .chapter-rail__link {
    padding: 0.4rem 0.35rem;
    text-shadow: none;
  }

  .chapter-rail__link.is-active {
    text-shadow: none;
  }

  .chapter-rail__link.is-active .chapter-rail__num::before {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 1px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: var(--accent);
  }
}

/* Tablet / mobile: compact top chips */
@media (max-width: 1099px) {
  .chapter-rail {
    top: max(0.5rem, env(safe-area-inset-top));
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 max(0.75rem, env(safe-area-inset-left)) 0
      max(0.75rem, env(safe-area-inset-right));
  }

  .chapter-rail__list {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0.05rem;
    padding: 0.15rem;
    background: rgba(10, 12, 16, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(160, 169, 186, 0.22);
    border-radius: 999px;
  }

  .chapter-rail__link {
    text-shadow: none;
  }

  .chapter-rail__link.is-active {
    text-shadow: none;
  }

  .chapter-rail__list::-webkit-scrollbar {
    display: none;
  }

  .chapter-rail__link {
    min-width: 44px;
    min-height: 44px;
    padding: 0.4rem 0.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
  }

  .chapter-rail__label {
    display: none;
  }

  .chapter-rail__link.is-active .chapter-rail__label {
    display: inline;
    margin-left: 0.2rem;
  }

  .chapter-rail__num {
    font-size: 0.62rem;
  }

  .chapter-rail__label {
    font-size: 0.58rem;
  }
}

@media (max-width: 480px) {
  .chapter-rail__link.is-active {
    padding-inline: 0.65rem;
  }
}

main {
  position: relative;
  z-index: 2;
}

.section-label {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 1px 12px rgba(10, 12, 16, 0.75);
}

/* —— Hero —— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100dvh;
  padding: var(--pad);
  padding-bottom: clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.48) 0%,
      rgba(10, 12, 16, 0.62) 28%,
      rgba(10, 12, 16, 0.78) 52%,
      rgba(10, 12, 16, 0.96) 100%
    ),
    radial-gradient(
      ellipse 70% 55% at 20% 80%,
      rgba(61, 224, 196, 0.1),
      transparent 60%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  opacity: var(--hero-fade);
  transform: translate3d(0, var(--hero-shift), 0)
    scale(calc(0.97 + 0.03 * var(--hero-fade)));
  transform-origin: left bottom;
  will-change: transform, opacity;
}

.hero__brand {
  margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 14vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--snow);
  font-style: normal;
  text-shadow: var(--text-shadow-soft);
}

.hero__brand-word {
  display: inline-block;
}

.hero__brand-word + .hero__brand-word {
  margin-left: 0.28em;
}

.hero__headline {
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-shadow:
    0 1px 2px rgba(10, 12, 16, 0.7),
    0 6px 24px rgba(10, 12, 16, 0.55);
}

.hero__support {
  margin: 0 0 2rem;
  max-width: 30rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.65;
  font-weight: 300;
  color: var(--snow);
  text-shadow: 0 1px 14px rgba(10, 12, 16, 0.65);
}

.hero__cta,
.close__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 0;
  border: none;
  background: none;
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 241, 246, 0.35);
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.hero__cta:hover,
.hero__cta:focus-visible,
.close__cta:hover,
.close__cta:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.hero__cta::after {
  content: "→";
  transition: transform 0.25s var(--ease-out);
}

.hero__cta:hover::after,
.hero__cta:focus-visible::after {
  transform: translateX(0.25rem);
}

.hero__scroll {
  position: absolute;
  right: max(var(--pad), env(safe-area-inset-right));
  bottom: max(var(--pad), env(safe-area-inset-bottom));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-bright);
  opacity: 1;
  text-shadow: 0 1px 10px rgba(10, 12, 16, 0.8);
  transition: opacity 0.6s var(--ease-out);
}

.hero__scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(
    180deg,
    rgba(214, 219, 229, 0.75),
    transparent
  );
}

.hero__scroll-chevron {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.35rem;
  border-right: 1px solid var(--steel-bright);
  border-bottom: 1px solid var(--steel-bright);
  transform: rotate(45deg);
  opacity: 0.85;
  animation: scrollNudge 1.8s var(--ease-out) infinite;
}

@keyframes scrollNudge {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.35;
  }
  50% {
    transform: rotate(45deg) translate(0.12rem, 0.12rem);
    opacity: 0.85;
  }
}

/* —— Shared chapter —— */
.chapter {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8rem) 0;
  background: var(--ink);
}

.chapter--thesis,
.chapter--portfolio {
  padding-top: 0;
}

.chapter__visual {
  position: relative;
  overflow: hidden;
}

.chapter__visual--wide {
  aspect-ratio: 3 / 2;
  max-height: 34rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.chapter__visual--wide img,
.chapter__visual--split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}

.chapter__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.2) 0%,
    rgba(10, 12, 16, 0.35) 35%,
    rgba(10, 12, 16, 0.78) 72%,
    rgba(10, 12, 16, 0.94) 100%
  );
  pointer-events: none;
}

.chapter__rail {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.chapter__rail--wide {
  max-width: 46rem;
}

.chapter__rail--split {
  max-width: none;
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad);
}

.chapter__headline {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--snow);
  text-wrap: balance;
}

.chapter__support {
  margin: -0.75rem 0 clamp(2rem, 5vw, 3rem);
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.65;
  font-weight: 300;
  color: var(--steel-bright);
}

.chapter__split {
  display: grid;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  align-items: stretch;
}

.chapter__visual--split {
  min-height: clamp(14rem, 42vw, 28rem);
  aspect-ratio: 3 / 2;
}

@media (min-width: 900px) {
  .chapter__split {
    grid-template-columns: 1fr 1.05fr;
    padding: 0 var(--pad);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .chapter__visual--split {
    border-radius: 0;
    min-height: 100%;
    aspect-ratio: auto;
    height: auto;
  }

  .chapter__rail--split {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.prose p {
  margin: 0 0 1.35rem;
  font-size: clamp(1.02rem, 2.1vw, 1.175rem);
  line-height: 1.78;
  font-weight: 300;
  color: var(--steel-bright);
}

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

.prose h3 {
  margin: 2.25rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--snow);
}

.prose h3:first-child {
  margin-top: 0;
}

.prose--venture {
  max-width: var(--prose);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) var(--pad) clamp(3.5rem, 10vw, 7rem);
}

.prose--close p {
  color: var(--steel-bright);
}

/* —— Pull quotes —— */
.pullquote {
  max-width: var(--prose);
  margin: 0 auto;
  padding: clamp(2.75rem, 8vw, 4.5rem) var(--pad);
}

.pullquote__text {
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 4.2vw, 2.15rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--snow);
  text-wrap: balance;
}

.pullquote__text::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-bottom: 1.15rem;
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 12px rgba(61, 224, 196, 0.35);
}

/* —— Ken Burns —— */
[data-kenburns] img {
  transform-origin: center center;
}

[data-kenburns].is-inview img {
  animation: kenBurns 22s linear both;
}

.hero__media[data-kenburns].is-inview .hero__img {
  animation: kenBurnsHero 28s linear both;
}

@keyframes kenBurns {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

@keyframes kenBurnsHero {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.16);
  }
}

/* —— Sticky venture pins (desktop) —— */
.venture-pin {
  position: relative;
  background: var(--ink);
}

.venture-pin__sticky {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  z-index: 1;
}

.venture-pin__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform, opacity;
  transform: scale(calc(1.05 + (var(--pin-progress) * 0.08)));
  opacity: calc(1 - (var(--pin-progress) * 0.35));
}

.venture-pin__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.venture-pin__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.5) 0%,
      rgba(10, 12, 16, 0.68) 28%,
      rgba(10, 12, 16, 0.88) 55%,
      rgba(10, 12, 16, 0.98) 100%
    ),
    radial-gradient(
      ellipse 60% 50% at 70% 20%,
      var(--accent-dim),
      transparent 65%
    );
}

.venture-pin__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  /* Keep title ABOVE the scroll seam (-20vh) so ink never washes snow→charcoal */
  padding-bottom: calc(20vh + clamp(2.5rem, 5vw, 3.5rem));
  transform: translate3d(0, calc(var(--pin-progress) * -1.25rem), 0);
  opacity: 1;
  will-change: transform;
}

.venture-pin__content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: calc(100% + 4rem);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 12, 16, 0.72) 18%,
    rgba(10, 12, 16, 0.96) 52%,
    var(--ink) 100%
  );
}

.venture-pin__index {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 1;
  text-shadow: 0 1px 2px rgba(10, 12, 16, 0.85);
}

.venture-pin__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.8vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #f2f4f8;
  -webkit-text-fill-color: #f2f4f8;
  opacity: 1;
  text-wrap: balance;
  text-shadow: none;
}

.venture-pin__title .tw-unit,
.venture-pin__lede .tw-unit {
  filter: none !important;
  transform: none;
  text-shadow: none;
}

.venture-pin__title.is-typed .tw-unit,
.venture-pin__title.is-typing .tw-unit.is-on,
.venture-pin__lede.is-typed .tw-unit,
.venture-pin__lede.is-typing .tw-unit.is-on {
  opacity: 1;
  filter: none !important;
  transform: none;
  color: #f2f4f8;
  -webkit-text-fill-color: #f2f4f8;
}

.venture-pin__lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.3vw, 1.25rem);
  line-height: 1.65;
  font-weight: 300;
  color: #f2f4f8;
  -webkit-text-fill-color: #f2f4f8;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(10, 12, 16, 0.9);
}

.venture-pin__scroll {
  position: relative;
  /* Above sticky so chapter body can scroll over the pin media.
     MUST be fully opaque — a translucent leading edge was crushing
     snow titles into charcoal and leaving ghost outlines. */
  z-index: 2;
  background: var(--ink);
  margin-top: -20vh;
  /* Absorb the negative margin so the first prose line isn't clipped */
  padding-top: 2.5rem;
}

/* —— Principles —— */
.chapter--principles {
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(28, 58, 58, 0.35),
      transparent 60%
    ),
    var(--ink);
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principles__item {
  counter-increment: principle;
  padding: clamp(1.5rem, 3.5vw, 2rem) 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.65rem 2rem;
}

.principles__item:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .principles__item {
    grid-template-columns: minmax(11rem, 15rem) 1fr;
    align-items: baseline;
  }
}

.principles__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--snow);
}

.principles__name::before {
  content: "0" counter(principle) "  ";
  font-family: var(--font-body);
  font-size: 0.7em;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
}

.principles__desc {
  margin: 0;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.72;
  font-weight: 300;
  color: var(--steel-bright);
}

/* —— Closing —— */
.close {
  padding: clamp(4.5rem, 14vw, 10rem) var(--pad) clamp(3.5rem, 10vw, 7rem);
  padding-bottom: max(clamp(3.5rem, 10vw, 7rem), env(safe-area-inset-bottom));
  background:
    radial-gradient(
      ellipse 70% 55% at 15% 80%,
      rgba(61, 224, 196, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
}

.close__rail {
  max-width: 36rem;
  margin: 0 auto;
}

.close__mark {
  margin: 0 0 1.35rem;
}

.close__mark-svg {
  display: block;
}

.close__headline {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.85rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--snow);
}

.close__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 2rem 0 1.75rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-bright);
}

.close__credits-sep {
  opacity: 0.65;
}

.close__cta {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 0.25rem;
  border-bottom: none;
  min-height: 44px;
  padding: 0.65rem 0;
}

.close__cta::after {
  display: none;
}

.close__cta-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.close__cta-addr {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: var(--snow);
  border-bottom: 1px solid rgba(238, 241, 246, 0.35);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.close__cta:hover .close__cta-addr,
.close__cta:focus-visible .close__cta-addr {
  color: var(--accent);
  border-color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem var(--pad) max(2.5rem, env(safe-area-inset-bottom));
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.site-footer__mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--steel-bright);
}

.site-footer__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--steel-bright);
}

/* —— Reveal motion —— */
[data-reveal],
[data-reveal-scroll] {
  opacity: 0;
  transform: translateY(1.15rem);
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out);
}

body.is-intro [data-reveal] {
  transition-delay: 0.55s;
}

body.is-intro [data-reveal][data-delay="1"] {
  transition-delay: 0.7s;
}

body.is-intro [data-reveal][data-delay="2"] {
  transition-delay: 0.85s;
}

body.is-intro [data-reveal][data-delay="3"] {
  transition-delay: 1s;
}

body.is-intro [data-reveal][data-delay="4"] {
  transition-delay: 1.15s;
}

[data-reveal][data-delay="1"],
[data-reveal-scroll][data-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal][data-delay="2"],
[data-reveal-scroll][data-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal][data-delay="3"],
[data-reveal-scroll][data-delay="3"] {
  transition-delay: 0.3s;
}

[data-reveal][data-delay="4"],
[data-reveal-scroll][data-delay="4"] {
  transition-delay: 0.4s;
}

[data-reveal-scroll][data-delay="5"] {
  transition-delay: 0.5s;
}

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

.hero__brand.is-visible .hero__brand-word {
  animation: wordIn 1s var(--ease-out) both;
}

.hero__brand.is-visible .hero__brand-word:nth-child(2) {
  animation-delay: 0.12s;
}

@keyframes wordIn {
  from {
    opacity: 0;
    transform: translateY(0.55em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Typewriter / character & word reveal —— */
[data-typewriter] {
  visibility: hidden;
}

[data-typewriter].is-typed,
[data-typewriter].is-typing {
  visibility: visible;
}

/* Body copy stays hidden until the lede typewriter finishes */
.prose:has([data-type-lede]):not(.is-lede-done) > p:not([data-typewriter]) {
  opacity: 0;
  transform: translateY(0.6rem);
}

.prose.is-lede-done > p:not([data-typewriter]) {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.prose.is-lede-done > p:not([data-typewriter]):nth-of-type(2) {
  transition-delay: 0.05s;
}

.prose.is-lede-done > p:not([data-typewriter]):nth-of-type(3) {
  transition-delay: 0.12s;
}

.prose.is-lede-done > p:not([data-typewriter]):nth-of-type(4) {
  transition-delay: 0.18s;
}

.prose.is-lede-done > p:not([data-typewriter]):nth-of-type(5) {
  transition-delay: 0.24s;
}

.tw-unit {
  display: inline;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(0.18em);
  transition:
    opacity 0.38s var(--ease-out),
    filter 0.38s var(--ease-out),
    transform 0.38s var(--ease-out);
  will-change: opacity, transform, filter;
}

.tw-unit.is-on {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Completed typewriters must never leave dim/ghost glyphs */
[data-typewriter].is-typed .tw-unit {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

[data-typewriter="chars"] .tw-unit {
  transition-duration: 0.22s;
}

[data-type-lede] .tw-unit {
  filter: none;
  transform: translateY(0.08em);
  transition-duration: 0.32s;
}

.typewriter--caret.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.055em;
  height: 0.85em;
  margin-left: 0.06em;
  vertical-align: -0.05em;
  background: currentColor;
  opacity: 0.55;
  animation: caretPulse 0.85s steps(1) infinite;
}

.typewriter--caret.is-typed::after {
  display: none;
}

@keyframes caretPulse {
  0%,
  45% {
    opacity: 0.55;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* —— Mobile / tablet: stacked ventures, type, rail —— */
@media (max-width: 899px) {
  :root {
    --pad: max(1.15rem, env(safe-area-inset-left), env(safe-area-inset-right));
  }

  body {
    font-size: 1.02rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(3.25rem + env(safe-area-inset-top));
    padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
    justify-content: flex-end;
  }

  .hero__brand {
    font-size: clamp(2.85rem, 15vw, 4.25rem);
  }

  .hero__headline {
    font-size: clamp(1.3rem, 5.5vw, 1.55rem);
  }

  .hero__support {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero__scroll {
    left: 50%;
    right: auto;
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
  }

  .chapter {
    padding: clamp(3.25rem, 10vw, 5rem) 0;
  }

  .chapter__visual--wide {
    aspect-ratio: 4 / 3;
    max-height: 22rem;
    margin-bottom: 2rem;
  }

  .chapter__visual--split {
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 20rem;
  }

  .chapter__visual--wide img,
  .chapter__visual--split img {
    object-position: center 30%;
  }

  .pullquote {
    padding: 2.25rem var(--pad);
  }

  .pullquote__text {
    font-size: clamp(1.3rem, 6vw, 1.65rem);
  }

  /* Stacked venture chapters — no sticky scrub on touch */
  .venture-pin__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    display: block;
  }

  .venture-pin__media {
    position: relative;
    inset: auto;
    height: clamp(16rem, 58vw, 22rem);
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }

  .venture-pin__media img {
    object-position: center 28%;
  }

  .venture-pin__content {
    position: relative;
    margin-top: -4.5rem;
    padding: 0 var(--pad) 0.5rem;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }

  .venture-pin__content::before {
    bottom: -0.5rem;
    height: calc(100% + 5rem);
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(10, 12, 16, 0.62) 24%,
      rgba(10, 12, 16, 0.94) 58%,
      var(--ink) 100%
    );
  }

  .venture-pin__index {
    font-size: 2.35rem;
  }

  .venture-pin__title {
    font-size: clamp(1.85rem, 7.5vw, 2.45rem);
  }

  .venture-pin__lede {
    font-size: 1.02rem;
  }

  .venture-pin__scroll {
    margin-top: 0;
    background: var(--ink);
  }

  .prose--venture {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
  }

  .prose p {
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .close__credits {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }

  [data-kenburns].is-inview img {
    animation-duration: 32s;
  }

  .hero__media[data-kenburns].is-inview .hero__img {
    animation-duration: 36s;
  }
}

/* Compact phone refinements */
@media (max-width: 430px) {
  .hero__brand {
    font-size: clamp(2.65rem, 14.5vw, 3.4rem);
  }

  .hero__brand-word {
    display: block;
  }

  .hero__brand-word + .hero__brand-word {
    margin-left: 0;
  }

  .chapter-rail {
    top: max(0.45rem, env(safe-area-inset-top));
  }

  .chapter-rail__list {
    max-width: calc(100vw - 1.5rem);
  }

  .chapter-rail__link {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.55rem;
  }

  .venture-pin__media {
    height: 15.5rem;
  }

  .venture-pin__content {
    margin-top: -3.75rem;
  }
}

/* Coarse pointer / touch: lighter motion */
@media (pointer: coarse), (max-width: 899px) {
  .hero__inner {
    will-change: auto;
  }

  .chapter__visual--wide img,
  .chapter__visual--split img {
    will-change: auto;
  }
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .venture-pin__media,
  .venture-pin__content,
  [data-parallax-media] {
    transform: none !important;
    opacity: 1 !important;
  }

  .venture-pin__sticky {
    position: relative;
    height: auto;
    min-height: 0;
  }

  .venture-pin__scroll {
    margin-top: 0;
  }

  [data-reveal],
  [data-reveal-scroll],
  body.is-intro [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__brand.is-visible .hero__brand-word {
    animation: none;
  }

  [data-typewriter] {
    visibility: visible;
  }

  .prose:has([data-type-lede]):not(.is-lede-done) > p:not([data-typewriter]),
  .prose.is-lede-done > p:not([data-typewriter]) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tw-unit {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .typewriter--caret::after {
    display: none !important;
    animation: none;
  }

  .progress,
  .hero__scroll-chevron {
    display: none;
  }

  [data-kenburns].is-inview img,
  .hero__media[data-kenburns].is-inview .hero__img {
    animation: none !important;
  }

  .atmosphere {
    opacity: 1;
    transition: none;
  }
}
