@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --cream: #e9ddc7;
  --cream-deep: #dfd1b9;
  --cream-bright: #efe3cf;
  --forest: #1b483a;
  --forest-deep: #10392f;
  --forest-soft: #2b6955;
  --gold: #b18a40;
  --gold-bright: #cda75a;
  --slate: #334e68;
  --ink: #234639;
  --muted: #61736d;
  --page: var(--cream);
  --page-deep: var(--cream-deep);
  --surface: rgba(239, 227, 207, 0.72);
  --surface-solid: #ede0ca;
  --line: rgba(18, 60, 49, 0.16);
  --line-strong: rgba(18, 60, 49, 0.28);
  --hero: #10392f;
  --hero-alt: #164438;
  --hero-text: var(--cream);
  --shadow: 0 28px 90px rgba(34, 47, 40, 0.14);
  --shadow-deep: 0 40px 100px rgba(0, 18, 14, 0.36);
  --serif: "Cormorant Garamond", "Baskerville", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --logo-art: url("./assets/keystone-arch-reference.png");
  --header-height: 82px;
  --page-gutter: clamp(24px, 5vw, 78px);
  color-scheme: light;
}

html[data-theme="dark"] {
  --page: #10392f;
  --page-deep: #164438;
  --surface: rgba(233, 221, 199, 0.055);
  --surface-solid: #1b483a;
  --ink: var(--cream);
  --muted: #b7c2ba;
  --line: rgba(212, 162, 71, 0.2);
  --line-strong: rgba(212, 162, 71, 0.4);
  --hero: #0c3027;
  --hero-alt: #123d31;
  --shadow: 0 28px 90px rgba(0, 13, 10, 0.34);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  transition: background-color 420ms ease, color 420ms ease;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--forest-deep); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--forest-deep);
  font-weight: 800;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.scroll-meter {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 18px;
  right: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 10px 12px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  box-shadow: 0 16px 50px rgba(8, 34, 27, 0.08);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  transition: top 320ms ease, min-height 320ms ease, background-color 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
}
.site-header.is-scrolled {
  top: 10px;
  min-height: 72px;
  box-shadow: 0 18px 50px rgba(8, 34, 27, 0.14);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: var(--forest);
  text-decoration: none;
}
html[data-theme="dark"] .brand { color: var(--gold); }
.logo-mark {
  display: block;
  flex: none;
  aspect-ratio: 1;
  background: var(--logo-art) center / contain no-repeat;
}
/* Both themes use the same alpha silhouette, never two different drawings. */
html[data-theme="dark"] .logo-mark {
  background: linear-gradient(135deg, #cda75a, #a27b34);
  -webkit-mask: var(--logo-art) center / contain no-repeat;
  mask: var(--logo-art) center / contain no-repeat;
}
.brand__mark {
  width: 60px;
  height: 60px;
  transition: opacity 160ms ease, transform 360ms cubic-bezier(.16, 1, .3, 1);
}
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-2deg); }
.brand__type { display: grid; line-height: 1; }
.brand__type strong {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.brand__type small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}
.brand__type small::before, .brand__type small::after {
  content: "";
  flex: 1;
  min-width: 10px;
  height: 1px;
  background: var(--gold);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 28px);
}
.desktop-nav a {
  position: relative;
  padding: 9px 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms cubic-bezier(.16, 1, .3, 1);
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}
.theme-toggle {
  display: grid;
  width: 60px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.theme-toggle__track {
  position: relative;
  display: block;
  width: 54px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--page-deep);
}
.theme-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(8, 34, 27, 0.18);
  transition: transform 320ms cubic-bezier(.16, 1, .3, 1);
}
html[data-theme="dark"] .theme-toggle__thumb { transform: translateX(24px); }
.theme-toggle__sun, .theme-toggle__moon { position: absolute; top: 9px; width: 10px; height: 10px; border-radius: 50%; }
.theme-toggle__sun { left: 9px; border: 1px solid var(--forest-deep); }
.theme-toggle__moon { right: 8px; border: 1px solid var(--gold); border-left-color: transparent; }

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 26px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  background: var(--gold);
  color: var(--forest-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 13px 34px rgba(212, 162, 71, 0.18);
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1), box-shadow 260ms ease, background-color 260ms ease, color 260ms ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(212, 162, 71, 0.28); }
.button--small { min-height: 52px; padding: 12px 24px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: var(--hero-text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link span { color: var(--gold); transition: transform 260ms ease; }
.text-link:hover span { transform: translateY(4px); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; }

.mobile-nav {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 120px 24px 50px;
  background: var(--page);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav > a:not(.button) { font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1; text-decoration: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow > span { width: 34px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-kerning: normal; }
h2 { margin-bottom: 0; font-size: clamp(3.4rem, 6vw, 6.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
h2 em { color: var(--gold); font-weight: 600; }

.hero {
  --hero-progress: 0;
  --coin-turn: 0deg;
  position: relative;
  height: clamp(1100px, 155vh, 1480px);
  background: var(--hero);
  color: var(--hero-text);
}
.hero__sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(130px, 12vh, 170px) var(--page-gutter) 74px;
  background:
    radial-gradient(circle at 76% 38%, rgba(212, 162, 71, 0.12), transparent 30%),
    linear-gradient(120deg, var(--hero) 42%, var(--hero-alt));
}
.hero__ambient {
  position: absolute;
  top: 8%;
  right: -8%;
  width: min(60vw, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 162, 71, 0.12), rgba(212, 162, 71, 0.02) 47%, transparent 70%);
  transform: translate3d(calc(var(--hero-progress) * -70px), calc(var(--hero-progress) * 45px), 0) scale(calc(0.9 + var(--hero-progress) * 0.12));
  filter: blur(8px);
  pointer-events: none;
}
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
  transform: translate3d(0, calc(var(--hero-progress) * -24px), 0);
  opacity: calc(1 - var(--hero-progress) * 0.18);
}
.hero h1 {
  display: grid;
  margin: 34px 0 34px;
  font-size: clamp(4.5rem, 7vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { margin-top: 0.13em; color: var(--gold); font-weight: 500; line-height: 0.98; }
.hero__lede { max-width: 650px; margin-bottom: 34px; color: rgba(243, 235, 221, 0.7); font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }

.hero__visual {
  --pointer-x: 0deg;
  --pointer-y: 0deg;
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  justify-items: center;
  transform: translate3d(calc(var(--hero-progress) * -34px), calc(var(--hero-progress) * -16px), 0);
}
.coin-scene {
  position: relative;
  display: grid;
  width: min(47vw, 660px);
  aspect-ratio: 1;
  place-items: center;
  perspective: 1700px;
}
.coin-shadow {
  position: absolute;
  bottom: 8%;
  width: 64%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(30px);
  transform: scaleX(calc(0.78 + var(--coin-edge, 0) * 0.34));
  opacity: calc(0.52 - var(--coin-edge, 0) * 0.18);
}
.coin {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: translateY(var(--coin-lift, 0px)) rotateX(calc(var(--coin-turn) + var(--pointer-y))) rotateY(var(--pointer-x));
  will-change: transform;
}
.coin__face, .coin__edge span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.coin__edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin__edge span {
  border: clamp(12px, 1.4vw, 19px) solid transparent;
  background: conic-gradient(from 40deg, #28332f, #f1f4f1 12%, #7a8580 23%, #252f2c 39%, #d4a247 54%, #f9faf7 68%, #69736f 80%, #202a27) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.coin__edge span:nth-child(1) { transform: translateZ(-15px); }
.coin__edge span:nth-child(2) { transform: translateZ(-10px); filter: brightness(.8); }
.coin__edge span:nth-child(3) { transform: translateZ(-5px); filter: brightness(1.15); }
.coin__edge span:nth-child(4) { transform: translateZ(0); }
.coin__edge span:nth-child(5) { transform: translateZ(5px); filter: brightness(.72); }
.coin__edge span:nth-child(6) { transform: translateZ(10px); filter: brightness(1.15); }
.coin__edge span:nth-child(7) { transform: translateZ(15px); }
.coin__face {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5.7%;
  background: conic-gradient(from 38deg, #48534f, #f4f7f4 12%, #9aa39f 22%, #3c4743 37%, #d4a247 51%, #fafbf8 63%, #68736e 78%, #343f3b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), inset 0 0 26px rgba(0,0,0,.48), 0 40px 90px rgba(0,0,0,.3);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.coin__face--front { transform: translateZ(17px); }
.coin__face--back { transform: rotateX(180deg) translateZ(17px); }
.coin__bezel {
  position: absolute;
  inset: 7.4%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: linear-gradient(135deg, #e9ece9, #77827e 22%, #29342f 45%, #d8c17a 67%, #f2f4f1 80%, #4d5853);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.23), 0 0 0 2px rgba(212,162,71,.48);
}
.coin__field {
  position: absolute;
  inset: 5.3%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(212,162,71,.45);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 27%, var(--cream-bright), var(--cream) 58%, #d6cab7 100%);
  box-shadow: inset 0 12px 36px rgba(255,255,255,.36), inset 0 -22px 48px rgba(18,60,49,.14);
}
html[data-theme="dark"] .coin__field { background: radial-gradient(circle at 38% 27%, #185344, #0b382e 52%, #031f1a 100%); }
.coin__field::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(212,162,71,.28);
  border-radius: 50%;
}
.coin__mark { position: relative; z-index: 2; width: 63%; filter: drop-shadow(0 10px 12px rgba(0,0,0,.12)); }
.coin__engraving {
  position: absolute;
  z-index: 3;
  bottom: 9.8%;
  color: var(--gold);
  font-size: clamp(0.42rem, 0.56vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.coin__glint {
  position: absolute;
  z-index: 4;
  top: -25%;
  bottom: -25%;
  left: var(--coin-glint, -55%);
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  filter: blur(2px);
  transform: rotate(16deg);
  pointer-events: none;
}
.coin-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -2% 0 0;
  color: rgba(243,235,221,.54);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.coin-caption span { width: 42px; height: 1px; background: var(--gold); }
.hero__chapter {
  position: absolute;
  right: var(--page-gutter);
  bottom: 38px;
  left: var(--page-gutter);
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(243,235,221,.48);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.hero__chapter i { width: 88px; height: 1px; background: rgba(243,235,221,.2); }
.hero__chapter i::after { content: ""; display: block; width: calc(var(--hero-progress) * 100%); height: 100%; background: var(--gold); }

.motion-strip { overflow: hidden; border-block: 1px solid rgba(7,43,36,.25); background: var(--gold); color: var(--forest-deep); }
.motion-strip__track { display: flex; width: max-content; animation: ticker 21s linear infinite; }
.motion-strip__set { display: flex; min-width: max-content; align-items: center; padding: 18px 0; }
.motion-strip span { padding: 0 30px; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.motion-strip i { font-style: normal; opacity: .64; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { position: relative; padding: clamp(100px, 12vw, 180px) var(--page-gutter); }
.thesis {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 58px 90px;
  min-height: 930px;
  align-content: center;
  background: var(--page);
}
.thesis__label { align-self: start; padding-top: 12px; }
.thesis__statement h2 { font-size: clamp(4rem, 7vw, 7.4rem); }
.thesis__body { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; max-width: 920px; }
.thesis__body p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.18rem); }
.thesis__proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.thesis__proof article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; min-height: 132px; padding: 28px 34px; border-right: 1px solid var(--line); }
.thesis__proof article:last-child { border-right: 0; }
.thesis__proof strong { color: var(--gold); font-size: .73rem; letter-spacing: .12em; }
.thesis__proof span { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.7rem); line-height: 1.15; }

.solutions { background: var(--page-deep); }
.solutions__layout { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(520px, 1.28fr); align-items: start; gap: clamp(54px, 8vw, 130px); }
.solutions__intro { position: sticky; top: 128px; }
.solutions__intro h2 { margin: 38px 0 32px; font-size: clamp(3.9rem, 6.3vw, 6.8rem); }
.solutions__intro > p:last-of-type { max-width: 440px; color: var(--muted); font-size: 1.04rem; }
.solutions__index { display: flex; max-width: 330px; align-items: center; gap: 14px; margin-top: 58px; color: var(--muted); font-size: .68rem; font-weight: 900; }
.solutions__index i { flex: 1; height: 1px; background: var(--line-strong); }
.solutions__index i::after { content: ""; display: block; width: calc(var(--solutions-progress, .33) * 100%); height: 100%; background: var(--gold); transition: width 180ms linear; }
.solution-stack { position: relative; padding-bottom: 14vh; }
.solution-card {
  --card-accent: var(--gold);
  position: sticky;
  top: calc(118px + (var(--card-index, 0) * 22px));
  display: grid;
  min-height: min(690px, calc(100vh - 150px));
  align-content: space-between;
  overflow: hidden;
  margin-bottom: 22vh;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--surface-solid);
  box-shadow: 0 18px 70px rgba(38,52,45,.1);
  transform: translateY(var(--card-lift, 0px));
  transition: background-color 430ms cubic-bezier(.16,1,.3,1), color 430ms ease, border-color 430ms ease, transform 430ms cubic-bezier(.16,1,.3,1), box-shadow 430ms ease;
}
.solution-card:nth-child(1) { --card-index: 0; }
.solution-card:nth-child(2) { --card-index: 1; }
.solution-card:nth-child(3) { --card-index: 2; margin-bottom: 0; }
.solution-card::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(239,227,207,.18), transparent);
  transform: translateX(var(--card-shine, -120%)) rotate(12deg);
  pointer-events: none;
}
.solution-card__meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.solution-card__graphic { width: min(100%, 430px); margin: 34px auto 24px; color: var(--card-accent); }
.solution-card__graphic svg { width: 100%; overflow: visible; }
.solution-card__graphic rect, .solution-card__graphic path, .solution-card__graphic ellipse {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.solution-card__graphic circle { fill: currentColor; }
.solution-card__graphic text { fill: currentColor; stroke: none; font-family: var(--sans); font-size: 58px; font-weight: 800; }
.solution-card__graphic .draw { stroke-dasharray: 8 9; animation: dash-flow 3.2s linear infinite; }
.solution-card__graphic .coins { transform-box: fill-box; transform-origin: bottom; animation: coin-breathe 3.2s ease-in-out infinite; }
.solution-card__graphic .pulse { transform-box: fill-box; transform-origin: center; animation: node-pulse 2.8s ease-in-out infinite; }
.solution-card__graphic .code { transform-box: fill-box; transform-origin: center; animation: code-breathe 3.4s ease-in-out infinite; }
.solution-card__graphic .cursor { fill: var(--surface-solid); animation: cursor-move 3.2s ease-in-out infinite; }
.solution-card h3 { margin-bottom: 18px; font-size: clamp(2.3rem, 4vw, 4.2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.02; }
.solution-card__copy > p { max-width: 620px; color: var(--muted); font-size: 1rem; }
.solution-card ul { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 0; padding: 0; list-style: none; }
.solution-card li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; font-size: .72rem; font-weight: 800; }
.solution-card__arrow { position: absolute; top: 42px; right: 42px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid currentColor; border-radius: 50%; transition: transform 320ms ease, background-color 320ms ease; }
.solution-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.solution-card:hover .solution-card__arrow { transform: rotate(45deg); }
.solution-card.is-tool-selected { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,162,71,.2), var(--shadow); }

@media (hover: hover) {
  html[data-theme="light"] .solution-card:hover { border-color: var(--forest); background: var(--forest); color: var(--cream); }
  html[data-theme="light"] .solution-card:hover .solution-card__meta,
  html[data-theme="light"] .solution-card:hover .solution-card__copy > p { color: rgba(243,235,221,.7); }
  html[data-theme="light"] .solution-card:hover li { border-color: rgba(243,235,221,.24); }
  html[data-theme="light"] .solution-card:hover .solution-card__arrow { border-color: var(--gold); background: var(--gold); color: var(--forest-deep); }
  html[data-theme="light"] .solution-card:hover .cursor { fill: var(--forest); }

  html[data-theme="dark"] .solution-card:hover { border-color: var(--gold); background: var(--gold); color: var(--forest-deep); }
  html[data-theme="dark"] .solution-card:hover .solution-card__meta,
  html[data-theme="dark"] .solution-card:hover .solution-card__copy > p { color: rgba(7,43,36,.72); }
  html[data-theme="dark"] .solution-card:hover li { border-color: rgba(7,43,36,.24); }
  html[data-theme="dark"] .solution-card:hover .solution-card__graphic { color: var(--forest-deep); }
  html[data-theme="dark"] .solution-card:hover .solution-card__arrow { border-color: var(--forest-deep); background: var(--forest-deep); color: var(--gold); }
  html[data-theme="dark"] .solution-card:hover .cursor { fill: var(--gold); }
}

@keyframes dash-flow { to { stroke-dashoffset: -51; } }
@keyframes coin-breathe { 0%,100% { transform: translateY(2px); } 50% { transform: translateY(-6px); } }
@keyframes node-pulse { 0%,100% { opacity: .55; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes code-breathe { 0%,100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes cursor-move { 0%,55%,100% { transform: translate(0,0); } 70%,82% { transform: translate(-10px,-8px) scale(.88); } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.packages { background: var(--page); scroll-margin-top: 110px; }
.packages [hidden] { display: none !important; }
.packages__intro { max-width: 1000px; }
.packages__intro h2 { margin: 30px 0; }
.packages__intro > p:last-child { max-width: 640px; color: var(--muted); font-size: 1.1rem; }
.packages__block { margin-top: clamp(48px, 7vw, 92px); }
.packages__subscriptions { padding-top: clamp(48px, 7vw, 92px); border-top: 1px solid var(--line); }
.packages__heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.packages__step { color: var(--muted); font-size: .875rem; font-weight: 700; }
.packages__heading h3 { margin: 12px 0 0; font-size: clamp(2.3rem, 3.8vw, 3.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; }
.packages__heading > p { max-width: 340px; margin: 0; color: var(--muted); }
.package-controls { display: none; flex-wrap: wrap; gap: 6px; width: fit-content; max-width: 100%; margin: 0 0 32px; padding: 6px; border: 1px solid var(--line); border-radius: 22px; background: var(--page-deep); }
.js .package-controls { display: flex; }
.package-controls label { position: relative; cursor: pointer; }
.package-controls input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.package-controls span { display: block; padding: 12px 22px; border-radius: 16px; font-size: .875rem; font-weight: 700; line-height: 1.4; transition: background-color 220ms ease, color 220ms ease; }
.package-controls input:checked + span { background: var(--forest); color: var(--cream); box-shadow: 0 4px 12px rgba(7,43,36,.12); }
html[data-theme="dark"] .package-controls input:checked + span { background: var(--gold); color: var(--forest-deep); }
.package-controls input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.package-controls label:hover span { box-shadow: inset 0 0 0 1px var(--line-strong); }
.setup-panel + .setup-panel { margin-top: 40px; }
.js .setup-panel + .setup-panel { margin-top: 0; }
.setup-panel__title { margin: 0 0 24px; font-size: 1.25rem; }
.js .setup-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.setup-card { display: flex; min-width: 0; flex-direction: column; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: var(--surface-solid); transition: border-color 250ms ease, transform 250ms ease; }
.setup-card:hover { border-color: var(--gold); transform: translateY(-4px); }
@media (hover: hover) {
  html[data-theme="light"] .setup-card:hover { --muted: #d1dcd4; --line: rgba(243,235,221,.25); background: var(--forest); color: var(--cream); }
  html[data-theme="dark"] .setup-card:hover { --muted: #244438; --line: rgba(7,43,36,.25); background: var(--gold); color: var(--forest-deep); }
  html[data-theme="dark"] .setup-card:hover li::marker { color: var(--forest-deep); }
}
.setup-card h5 { margin: 0 0 24px; font-family: var(--sans); font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.setup-card__price { display: flex; flex-direction: column; margin-bottom: 24px; font-family: var(--serif); font-size: clamp(3rem, 4.8vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.setup-card__price span { margin-top: 12px; font-family: var(--sans); font-size: .875rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.setup-card__pages { margin-bottom: 18px; font-weight: 700; }
.setup-card ul { display: grid; gap: 10px; margin: 0 0 30px; padding-left: 20px; color: var(--muted); font-size: 1rem; }
.setup-card li::marker { color: var(--gold); }
.package-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: inherit; font-size: .875rem; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.setup-card .package-link { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); text-decoration: none; }
.package-link:hover { text-decoration: underline; }
.packages__footnote { margin: 20px 0 0; color: var(--muted); font-size: .875rem; }
.package-addons { display: grid; grid-template-columns: .7fr 2.3fr; gap: 20px; margin-top: 32px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.package-addons h4, .package-addons h5 { margin: 0; font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.package-addons ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.package-addons li { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.package-addons strong { color: var(--ink); font-weight: 700; }
.package-addons--subscriptions ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.subscription-comparison { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface-solid); }
.package-table { width: 100%; table-layout: fixed; border-spacing: 0; border-collapse: separate; text-align: left; font-size: 1rem; }
.package-table__feature { width: 40%; }
.package-table caption { padding: 22px 28px; background: var(--page-deep); text-align: left; font-size: .875rem; font-weight: 700; }
.package-table th, .package-table td { padding: 20px 28px; vertical-align: top; overflow-wrap: anywhere; line-height: 1.6; }
.package-table thead th { vertical-align: middle; border-bottom: 1px solid var(--line-strong); font-weight: 600; }
.package-table thead th:not(:first-child) { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.package-table__tier { display: block; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 600; line-height: 1.1; }
.package-table thead .package-link { margin-top: 8px; }
.package-table tbody th { font-weight: 600; }
.package-table tbody tr:not(.package-table__group) th,
.package-table tbody tr:not(.package-table__group) td { border-top: 1px solid var(--line); }
.package-table td { color: var(--muted); }
.package-table td strong { color: var(--ink); font-weight: 700; }
.package-table small { display: block; margin-top: 4px; font-size: .875rem; font-weight: 400; color: var(--muted); }
.package-table .package-table__group th { padding-block: 16px; background: var(--forest); color: var(--cream); }
.package-table__group span { margin-left: 10px; font-size: .875rem; font-weight: 400; color: var(--gold-bright); }
.package-table__excluded { font-size: .875rem; }
@media (max-width: 900px) {
  .packages__heading { align-items: start; flex-direction: column; gap: 16px; }
  .packages__heading > p { max-width: 600px; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-card { padding: 28px; }
  .setup-card__price { font-size: 3.8rem; }
  .package-addons { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .package-controls { gap: 3px; padding: 4px; border-radius: 18px; }
  .package-controls span { padding: 12px 10px; border-radius: 13px; }
  .package-addons ul { grid-template-columns: 1fr; gap: 18px; }
  .package-addons li { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
  .package-table { font-size: .875rem; }
  .package-table th, .package-table td { padding: 15px 9px; }
  .package-table__feature { width: 38%; }
  .package-table caption { padding: 18px 16px; }
  .package-table__group span { display: block; margin-left: 0; }
  .package-table thead .package-link { line-height: 1.4; }
  .subscription-comparison { border-radius: 20px; }
}

.approach {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: start;
  gap: clamp(60px, 10vw, 160px);
  background: var(--hero);
  color: var(--hero-text);
}
.approach__intro { position: sticky; top: 140px; }
.approach__intro h2 { margin: 38px 0 30px; font-size: clamp(4rem, 6.6vw, 7rem); }
.approach__intro > p:last-child { max-width: 460px; color: rgba(243,235,221,.64); }
.approach__steps { position: relative; display: grid; gap: 22px; padding: 10px 0 120px; }
.approach__path { position: absolute; z-index: 0; top: 64px; bottom: 176px; left: 35px; width: 2px; background: rgba(243,235,221,.12); }
.approach__path i { display: block; width: 100%; height: calc(var(--approach-progress, 0) * 100%); background: var(--gold); }
.approach-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  min-height: 210px;
  align-items: start;
  padding: 44px;
  border: 1px solid rgba(212,162,71,.18);
  border-radius: 30px;
  background: rgba(243,235,221,.045);
  backdrop-filter: blur(8px);
}
.approach-step__number { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: var(--hero); color: var(--gold); font-size: .72rem; font-weight: 900; }
.approach-step h3 { margin-bottom: 10px; font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 600; line-height: 1.04; }
.approach-step p { max-width: 560px; margin: 0; color: rgba(243,235,221,.62); }

.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  align-items: end;
  gap: clamp(50px, 9vw, 150px);
  min-height: 720px;
  overflow: hidden;
  padding: clamp(100px, 12vw, 170px) var(--page-gutter);
  background: var(--gold);
  color: var(--forest-deep);
}
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 88% 20%, rgba(255,248,224,.42), transparent 32%); pointer-events: none; }
.contact__copy { position: relative; z-index: 2; }
.contact .eyebrow { color: var(--forest-deep); }
.contact h2 { margin: 38px 0 28px; font-size: clamp(4.4rem, 8vw, 8.8rem); }
.contact__copy > p:last-child { max-width: 620px; font-size: 1.08rem; opacity: .7; }
.contact__link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 20px 28px;
  border: 1px solid var(--forest-deep);
  border-radius: 100px;
  background: var(--forest-deep);
  color: var(--cream);
  font-size: clamp(.78rem, 1.1vw, .98rem);
  font-weight: 800;
  text-decoration: none;
  transition: transform 280ms cubic-bezier(.16,1,.3,1), box-shadow 280ms ease;
}
.contact__link:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(7,43,36,.22); }
.contact__link i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--gold); color: var(--forest-deep); font-style: normal; }
.contact__orb {
  position: absolute;
  top: -14%;
  right: -7%;
  width: min(44vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(7,43,36,.15);
  border-radius: 50%;
  transform: translate3d(calc(var(--contact-progress, 0) * -70px), calc(var(--contact-progress, 0) * 80px), 0) rotate(calc(var(--contact-progress, 0) * 40deg));
}
.contact__orb::before, .contact__orb::after, .contact__orb span { content: ""; position: absolute; border: 1px solid rgba(7,43,36,.13); border-radius: 50%; }
.contact__orb::before { inset: 12%; }
.contact__orb::after { inset: 27%; }
.contact__orb span { inset: 43%; background: rgba(7,43,36,.12); }

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 44px;
  padding: 32px var(--page-gutter);
  border-top: 1px solid var(--line);
  background: var(--page);
  color: var(--muted);
  font-size: .76rem;
}
.footer p { margin: 0; }
.footer > a:last-child { font-weight: 800; text-decoration: none; }
.brand--footer .brand__mark { width: 48px; height: 48px; }
.brand--footer .brand__type strong { font-size: 1.3rem; }
.brand--footer .brand__type small { font-size: .48rem; }

.js .reveal { opacity: 0; filter: blur(7px); transform: translateY(28px); transition: opacity 720ms ease var(--reveal-delay, 0ms), transform 920ms cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms), filter 760ms ease var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

@supports (animation-timeline: view()) {
  .thesis__statement h2 { animation: editorial-rise 1ms both; animation-timeline: view(); animation-range: entry 12% cover 46%; }
  .solution-card__graphic { animation: graphic-arrive 1ms both; animation-timeline: view(); animation-range: entry 8% cover 38%; }
  .approach-step > div:last-child { animation: step-arrive 1ms both; animation-timeline: view(); animation-range: entry 8% cover 34%; }
}
@keyframes editorial-rise { from { opacity: .3; transform: translateY(55px); } to { opacity: 1; transform: translateY(0); } }
@keyframes graphic-arrive { from { opacity: .25; transform: translateY(34px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes step-arrive { from { opacity: .25; transform: translateX(26px); } to { opacity: 1; transform: translateX(0); } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav, .desktop-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .menu-toggle span { width: 20px; height: 1.5px; background: currentColor; transition: transform 220ms ease, opacity 220ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { height: auto; }
  .hero__sticky { position: relative; grid-template-columns: 1fr; gap: 20px; min-height: auto; padding-top: 130px; }
  .hero__visual { grid-row: 1; }
  .hero__copy { grid-row: 2; max-width: 820px; padding-bottom: 54px; transform: none; opacity: 1; }
  .coin-scene { width: min(78vw, 560px); }
  .hero__chapter { display: none; }
  .hero__ambient { width: 100vw; right: -30vw; }

  .thesis { grid-template-columns: 1fr; min-height: auto; }
  .thesis__statement, .thesis__body { grid-column: 1; }
  .thesis__body { max-width: none; }
  .thesis__proof { grid-column: 1; }

  .solutions__layout { grid-template-columns: 1fr; }
  .solutions__intro { position: relative; top: auto; }
  .solutions__intro > p:last-of-type { max-width: 680px; }
  .solution-stack { padding-bottom: 0; }
  .solution-card { position: relative; top: auto; min-height: 620px; margin-bottom: 28px; }
  .solution-card:nth-child(3) { margin-bottom: 0; }

  .approach { grid-template-columns: 1fr; }
  .approach__intro { position: relative; top: auto; }
}

@media (max-width: 720px) {
  :root { --page-gutter: 20px; --header-height: 68px; }
  .site-header { top: 10px; right: 10px; left: 10px; padding: 7px 8px 7px 14px; border-radius: 20px; }
  .site-header.is-scrolled { top: 6px; min-height: 64px; }
  .brand { gap: 9px; }
  .brand__mark { width: 48px; height: 48px; }
  .brand__type strong { font-size: 1.2rem; letter-spacing: .075em; }
  .brand__type small { gap: 5px; margin-top: 4px; font-size: .42rem; letter-spacing: .22em; }
  .brand__type small::before, .brand__type small::after { min-width: 6px; }
  .theme-toggle { width: 48px; }
  .theme-toggle__track { width: 46px; }
  html[data-theme="dark"] .theme-toggle__thumb { transform: translateX(16px); }
  .header-actions { gap: 4px; }

  .hero__sticky { padding: 110px 20px 70px; }
  .hero__visual { margin-inline: -8px; }
  .coin-scene { width: min(96vw, 430px); }
  .coin { width: 82%; }
  .coin-caption { margin-top: -2%; font-size: .52rem; }
  .hero h1 { margin: 28px 0 25px; font-size: clamp(3.4rem, 16.3vw, 5.3rem); line-height: .95; }
  .hero__lede { font-size: .98rem; }
  .hero__actions { align-items: stretch; gap: 14px; }
  .hero__actions .button { width: 100%; }
  .hero__actions .text-link { justify-content: center; }

  .motion-strip__track { animation-duration: 17s; }
  .motion-strip__set { padding: 14px 0; }
  .motion-strip span { padding: 0 20px; font-size: .95rem; }

  .section { padding-block: 96px; }
  h2 { font-size: clamp(3.25rem, 15vw, 4.9rem); }
  .thesis { gap: 34px; }
  .thesis__statement h2 { font-size: clamp(3.5rem, 16vw, 5rem); }
  .thesis__body { grid-template-columns: 1fr; gap: 18px; }
  .thesis__proof { grid-template-columns: 1fr; margin-top: 30px; }
  .thesis__proof article { min-height: 106px; border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 8px; }
  .thesis__proof article:last-child { border-bottom: 0; }

  .solutions__intro h2 { font-size: clamp(3.55rem, 16vw, 5.2rem); }
  .solution-card { min-height: 610px; padding: 28px 24px; border-radius: 28px; }
  .solution-card__arrow { top: 24px; right: 24px; }
  .solution-card__graphic { margin-top: 44px; }
  .solution-card h3 { font-size: 2.6rem; }
  .solution-card ul { gap: 7px; }
  .solution-card li { font-size: .65rem; }

  .approach__intro h2 { font-size: clamp(3.6rem, 16vw, 5.3rem); }
  .approach__steps { padding-bottom: 20px; }
  .approach__path { left: 47px; bottom: 72px; }
  .approach-step { grid-template-columns: 54px 1fr; gap: 18px; min-height: 220px; padding: 30px 22px; border-radius: 24px; }
  .approach-step__number { width: 44px; height: 44px; }
  .approach-step h3 { font-size: 2.25rem; }

  .contact { grid-template-columns: 1fr; min-height: 700px; align-content: center; gap: 48px; }
  .contact h2 { font-size: clamp(4rem, 18vw, 6rem); }
  .contact__link { font-size: .72rem; padding-left: 18px; }
  .contact__orb { top: auto; right: -48%; bottom: -30%; width: 110vw; }

  .footer { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .brand--footer { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .coin { transform: none !important; }
  .hero__copy, .hero__visual, .hero__ambient, .contact__orb { transform: none !important; }
  .js .reveal { opacity: 1; filter: none; transform: none; }
}
