:root {
  --ink: #0a1018;
  --ink-1: #0d1622;
  --ink-2: #12202f;
  --line: #21344c;
  --line-soft: #162638;
  --text: #eaf0f8;
  --muted: #99a9bd;
  --muted-2: #718197;
  --signal: #45e3b8;
  --warm: #d9ad72;
  --paper: #f0e7d8;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 100% 3%, rgba(217, 173, 114, .06), transparent 62%),
    radial-gradient(1000px 650px at -15% 30%, rgba(69, 227, 184, .04), transparent 60%),
    var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(calc(100% - 56px), var(--maxw)); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 300;
  top: 10px;
  left: -999px;
  padding: 9px 14px;
  border-radius: 8px;
  color: #04130d;
  background: var(--signal);
  font-weight: 600;
}
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

.read-progress {
  position: fixed;
  z-index: 250;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(69, 227, 184, .7);
  transform: scaleX(0);
  transform-origin: left;
}

.site-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 16, 24, .78);
  backdrop-filter: saturate(140%) blur(12px);
}
.nav-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 15px/1 "Space Grotesk", sans-serif;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-2);
}
.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
}
.nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-actions a {
  color: var(--muted);
  font: 400 12.5px/1 "IBM Plex Mono", monospace;
  transition: color .2s, border-color .2s;
}
.nav-actions a:hover { color: var(--text); }
.nav-actions .nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
}
.nav-actions .nav-contact:hover { color: var(--signal); border-color: var(--signal); }

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  padding: clamp(76px, 11vw, 142px) 0 88px;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.hero-label,
.chapter-marker,
.closing-kicker {
  color: var(--signal);
  font: 400 11px/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero-label::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
  content: "";
}
.hero h1 {
  max-width: 820px;
  margin: 25px 0 0;
  font: 400 clamp(52px, 8.3vw, 95px)/.92 "DM Serif Display", serif;
  letter-spacing: -.035em;
}
.hero h1 em { color: var(--warm); font-weight: 400; }
.mobile-to,
.mobile-break { display: none; }
.hero-lede {
  max-width: 600px;
  margin: 34px 0 0;
  color: #c2cddd;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.62;
}
.route {
  display: flex;
  max-width: 720px;
  align-items: center;
  gap: 11px;
  margin-top: 38px;
  color: var(--muted);
  font: 400 11px/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.route i { width: clamp(12px, 3vw, 36px); height: 1px; background: var(--line); }
.route > span,
.route > i { flex: 0 0 auto; }
.route-future {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.route .route-future-line {
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(69, 227, 184, .8) 0 4px, transparent 4px 8px);
}
.route-goal {
  position: relative;
  display: inline-flex;
  min-width: 64px;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid rgba(69, 227, 184, .55);
  border-radius: 999px;
  color: var(--signal);
  background: rgba(69, 227, 184, .08);
  box-shadow: 0 0 0 3px rgba(69, 227, 184, .035), 0 0 18px rgba(69, 227, 184, .12);
  animation: goal-pulse 3.2s ease-in-out infinite;
}
.route-goal::before {
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  content: "";
}
.route-goal small {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  color: var(--warm);
  font: 500 8px/1 "IBM Plex Mono", monospace;
  letter-spacing: .13em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.route-goal strong {
  font: 500 11px/1 "IBM Plex Mono", monospace;
  letter-spacing: .13em;
}
@keyframes goal-pulse {
  0%, 100% { border-color: rgba(69, 227, 184, .45); box-shadow: 0 0 0 3px rgba(69, 227, 184, .025), 0 0 14px rgba(69, 227, 184, .08); }
  50% { border-color: rgba(69, 227, 184, .8); box-shadow: 0 0 0 4px rgba(69, 227, 184, .055), 0 0 24px rgba(69, 227, 184, .2); }
}
.hero-image {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(49vw, 680px);
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.hero-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 16, 24, .7) 13%, transparent 48%),
    linear-gradient(0deg, var(--ink) 0%, transparent 20%);
  content: "";
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}
.hero-image figcaption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 26px;
  color: rgba(255, 255, 255, .72);
  font: 400 10px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}
.hero-image figcaption span { margin-right: 10px; color: var(--signal); }
.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font: 400 10px/1 "IBM Plex Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.scroll-cue span { color: var(--signal); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.story { border-top: 1px solid var(--line-soft); }
.chapter {
  width: min(calc(100% - 56px), var(--maxw));
  margin-inline: auto;
  padding: clamp(88px, 11vw, 150px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.text-chapter {
  display: grid;
  max-width: 880px;
  grid-template-columns: 180px 1fr;
  gap: 40px;
}
.chapter-marker { padding-top: 9px; }
.chapter-marker span {
  display: block;
  margin-bottom: 9px;
  color: var(--warm);
  font: 400 30px/1 "DM Serif Display", serif;
  letter-spacing: 0;
}
.chapter-marker small { font: inherit; }
.chapter-copy { max-width: 620px; }
.chapter-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16.5px;
}
.chapter-copy p:last-child { margin-bottom: 0; }
.chapter-copy .opening {
  margin-bottom: 24px;
  color: var(--paper);
  font: 400 clamp(27px, 3.2vw, 42px)/1.28 "DM Serif Display", serif;
}
.chapter-copy strong { color: var(--text); font-weight: 500; }
.image-chapter {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
}
.image-chapter.reverse { grid-template-columns: minmax(360px, 1fr) minmax(300px, .88fr); }
.image-chapter.reverse .chapter-image { order: 2; }
.image-chapter.reverse .chapter-copy { order: 1; justify-self: end; }
.chapter-image {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--ink-1);
  box-shadow: 0 32px 90px -48px rgba(0, 0, 0, .95);
}
.chapter-image::before {
  position: absolute;
  z-index: 1;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  pointer-events: none;
  content: "";
}
.chapter-image img {
  width: 100%;
  height: auto;
}
.chapter-image figcaption {
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: -1px;
  max-width: 85%;
  padding: 10px 13px;
  color: #c8d1dd;
  background: rgba(10, 16, 24, .88);
  border: 1px solid var(--line);
  font: 400 9.5px/1.4 "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}
.image-chapter h2 {
  margin: 25px 0 28px;
  color: var(--paper);
  font: 400 clamp(34px, 4vw, 56px)/1.06 "DM Serif Display", serif;
  letter-spacing: -.018em;
}
blockquote {
  margin: 34px 0 0;
  padding: 5px 0 5px 24px;
  border-left: 2px solid var(--warm);
  color: var(--paper);
  font: italic 400 clamp(21px, 2.2vw, 29px)/1.42 "DM Serif Display", serif;
}

.closing {
  width: min(calc(100% - 56px), 850px);
  margin-inline: auto;
  padding: clamp(105px, 14vw, 190px) 0;
  text-align: center;
}
.closing-rule { width: 1px; height: 70px; margin: 0 auto 30px; background: linear-gradient(var(--signal), transparent); }
.closing h2 {
  margin: 24px auto 34px;
  color: var(--paper);
  font: 400 clamp(39px, 5.5vw, 68px)/1.07 "DM Serif Display", serif;
  letter-spacing: -.025em;
}
.closing p {
  max-width: 680px;
  margin: 0 auto 19px;
  color: var(--muted);
  font-size: 17px;
}
.future-figure {
  max-width: 720px;
  margin: 62px auto 48px;
  border: 1px solid var(--line);
  background: var(--ink-1);
  box-shadow: 0 34px 90px -48px rgba(0, 0, 0, .95);
  text-align: left;
}
.future-figure img {
  width: 100%;
  height: auto;
}
.future-figure figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font: 400 10px/1.5 "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.future-figure figcaption > span:first-child {
  color: var(--signal);
  font-size: 12px;
}
.future-figure figcaption > span:last-child { display: grid; }
.future-figure figcaption strong {
  color: var(--text);
  font-weight: 500;
}
.future-figure figcaption small { font: inherit; }
.closing .final-line {
  margin-top: 0;
  color: var(--text);
  font: italic 400 25px/1.3 "DM Serif Display", serif;
}
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 12px 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 400 12px/1 "IBM Plex Mono", monospace;
  transition: color .2s, border-color .2s, transform .2s;
}
.back-home span { color: var(--signal); }
.back-home:hover { color: var(--signal); border-color: var(--signal); transform: translateY(-2px); }

footer {
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font: 400 11px/1.4 "IBM Plex Mono", monospace;
}
.foot-inner { display: flex; justify-content: space-between; gap: 16px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .hero { min-height: auto; padding: 70px 0 0; }
  .hero-copy { padding-bottom: 62px; }
  .hero h1 { font-size: clamp(49px, 13vw, 82px); }
  .hero-lede { max-width: 94%; }
  .hero-image {
    position: relative;
    width: 100%;
    height: auto;
  }
  .hero-image img { height: auto; }
  .hero-image::after { background: linear-gradient(0deg, var(--ink) 0%, transparent 18%); }
  .scroll-cue { display: none; }
  .text-chapter { grid-template-columns: 1fr; gap: 26px; }
  .image-chapter,
  .image-chapter.reverse { grid-template-columns: 1fr; gap: 52px; }
  .image-chapter.reverse .chapter-image,
  .image-chapter.reverse .chapter-copy { order: initial; justify-self: initial; }
  .chapter-image { width: min(100%, 570px); margin-inline: auto; }
  .chapter-copy { max-width: 680px; margin-inline: auto; }
}

@media (max-width: 580px) {
  .wrap,
  .chapter,
  .closing { width: min(calc(100% - 38px), var(--maxw)); }
  .nav-inner { min-height: 58px; }
  .nav-actions { gap: 15px; }
  .nav-actions > a:not(.nav-contact) { display: none; }
  .nav-actions .nav-contact { padding: 8px 11px; font-size: 11px; }
  .hero { padding-top: 56px; }
  .hero-copy { padding-bottom: 48px; }
  .hero-label { font-size: 9.5px; letter-spacing: .13em; }
  .hero h1 {
    margin-top: 20px;
    font-size: clamp(42px, 13.2vw, 58px);
    overflow-wrap: anywhere;
  }
  .desktop-to { display: none; }
  .mobile-to,
  .mobile-break { display: inline; }
  .hero-lede { margin-top: 26px; font-size: 16px; }
  .route { flex-wrap: wrap; gap: 9px; margin-top: 28px; font-size: 9.5px; }
  .route i { width: 13px; }
  .route-future { margin-left: auto; gap: 9px; }
  .hero-image { height: auto; min-height: 0; }
  .hero-image figcaption { right: 18px; bottom: 18px; max-width: calc(100% - 36px); text-align: right; }
  .chapter { padding: 78px 0; }
  .chapter-copy p { font-size: 15.5px; }
  .image-chapter h2 { margin-top: 21px; font-size: 39px; }
  .chapter-image figcaption { font-size: 8.5px; }
  .closing { padding: 100px 0; }
  .foot-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
  .route-goal { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
