:root {
  --paper: #f2eee6;
  --paper-2: #e7e1d6;
  --ink: #172521;
  --muted: #5b6763;
  --mint: #b9d8ca;
  --teal: #173f38;
  --cream: #faf8f2;
  --line: rgba(23, 37, 33, .18);
  --gutter: clamp(20px, 5vw, 76px);
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #087f6d; outline-offset: 5px; border-radius: 4px; }
::selection { color: var(--cream); background: var(--teal); }
.skip-link {
  position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 16px;
  background: var(--cream); color: var(--ink); transform: translateY(-180%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.entry-wipe {
  position: fixed; z-index: 150; inset: 0; display: grid; place-items: center;
  background: var(--teal); color: var(--cream); pointer-events: none;
  animation: wipe-away 1.15s var(--ease) .18s forwards;
}
.entry-wipe span { font-size: 11px; letter-spacing: .2em; animation: fade-away .35s ease .45s forwards; }
@keyframes wipe-away { to { transform: translateY(-101%); } }
@keyframes fade-away { to { opacity: 0; transform: translateY(-8px); } }

.progress { position: fixed; z-index: 120; inset: 0 0 auto; height: 2px; pointer-events: none; }
.progress span { display: block; width: 100%; height: 100%; background: #087f6d; transform: scaleX(0); transform-origin: left; }
.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 68px;
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between;
  background: rgba(242, 238, 230, .74); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(242, 238, 230, .93); }
.wordmark { min-height: 48px; display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.wordmark-mark { width: 15px; height: 21px; border: 1.5px solid var(--ink); border-radius: 50% 50% 45% 45%; transform: rotate(8deg); }
nav { display: flex; align-items: center; gap: clamp(8px, 2.2vw, 30px); }
nav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 4px; text-decoration: none; font-size: 12px; }
.nav-cta { padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; transition: color .2s, background .2s; }
.nav-cta:hover { color: var(--cream); background: var(--ink); }

.hero { min-height: 100svh; position: relative; display: flex; align-items: flex-end; padding: 118px var(--gutter) 46px; overflow: hidden; }
.hero-copy { position: relative; z-index: 3; width: min(900px, 100%); }
.eyebrow, .section-index { margin: 0 0 22px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.display { margin: 0; font-size: clamp(59px, 12.2vw, 176px); font-weight: 400; line-height: .83; letter-spacing: -.072em; }
.display span { display: block; }
.outline-word { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.hero-foot { width: min(610px, 100%); margin: 38px 0 0 auto; display: flex; align-items: center; gap: 28px; }
.hero-foot p { margin: 0; max-width: 490px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); }
.circle-link { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink); transition: color .25s, background .25s, transform .25s; }
.circle-link:hover { color: var(--cream); background: var(--ink); transform: translateY(4px); }
.circle-link svg, .text-link svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.concept-note { position: absolute; z-index: 3; right: var(--gutter); top: 104px; writing-mode: vertical-rl; margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.hero-orbit { position: absolute; z-index: 1; width: min(64vw, 820px); aspect-ratio: 1; right: -8vw; top: 6vh; }
.orbit { position: absolute; inset: 6%; border: 1px solid rgba(23,37,33,.22); border-radius: 50%; }
.orbit-a { animation: orbit 24s linear infinite; transform-origin: 48% 53%; }
.orbit-a::after { content: ""; position: absolute; top: 10%; left: 15%; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.orbit-b { inset: 24%; border-style: dashed; opacity: .6; animation: orbit 31s linear infinite reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.core-shape { position: absolute; inset: 18%; display: grid; place-items: center; filter: drop-shadow(0 24px 45px rgba(23,63,56,.14)); transform: translate3d(var(--mx, 0), var(--my, 0), 0); transition: transform .7s var(--ease); }
.core-shape svg { width: 67%; }
.core-shape path { fill: var(--mint); stroke: var(--teal); stroke-width: 1; }

.section-pad { padding: clamp(90px, 13vw, 190px) var(--gutter); }
.manifesto { background: var(--cream); border-radius: var(--radius) var(--radius) 0 0; position: relative; z-index: 4; }
.manifesto-grid, .system-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.section-title { margin: 0; font-size: clamp(43px, 7.5vw, 112px); font-weight: 400; letter-spacing: -.06em; line-height: .94; }
.section-title em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.body-copy { max-width: 500px; padding-top: 16px; font-size: clamp(17px, 1.7vw, 22px); }
.body-copy p { margin: 0 0 28px; }
.body-copy .muted { font-size: 14px; color: var(--muted); }
.principles { margin-top: clamp(70px, 11vw, 150px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 26px 7vw 10px 0; min-height: 250px; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 28px; }
.principle:last-child { border-right: 0; }
.principle span { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.principle h3 { margin: 70px 0 10px; font-size: 20px; font-weight: 500; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; }

.experience { padding: clamp(90px, 12vw, 170px) var(--gutter); background: var(--teal); color: var(--cream); display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(50px, 8vw, 130px); }
.experience-sticky { position: sticky; top: 118px; align-self: start; }
.experience .section-title { font-size: clamp(45px, 6.4vw, 92px); }
.experience-intro { max-width: 430px; margin-top: 34px; color: rgba(250,248,242,.68); }
.scene-stack { display: grid; gap: 22px; }
.scene { min-height: 600px; padding: clamp(22px, 4vw, 46px); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.scene-top { display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.scene h3 { margin: auto 0 10px; font-size: clamp(29px, 3vw, 46px); font-weight: 400; letter-spacing: -.04em; }
.scene p { margin: 0; max-width: 530px; opacity: .72; }
.scene-light { color: var(--ink); background: var(--paper-2); }
.scene-dark { color: var(--cream); background: #102b26; border: 1px solid rgba(255,255,255,.14); }
.scene-accent { color: var(--ink); background: var(--mint); }
.mini-browser { position: relative; width: 88%; height: 260px; margin: 70px auto 30px; border: 1px solid rgba(23,37,33,.3); border-radius: 15px; background: var(--cream); overflow: hidden; box-shadow: 0 25px 60px rgba(23,37,33,.12); transform: rotate(-2deg); transition: transform .7s var(--ease); }
.scene:hover .mini-browser { transform: rotate(0deg) translateY(-5px); }
.mini-nav { height: 35px; display: flex; gap: 5px; align-items: center; padding: 0 13px; border-bottom: 1px solid var(--line); }
.mini-nav i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .35; }
.mini-hero { padding: 40px 28px; }
.mini-hero span { display: block; width: 58%; height: 15px; background: var(--ink); margin-bottom: 18px; }
.mini-hero b { display: block; width: 38%; height: 5px; background: var(--muted); margin: 8px 0; opacity: .35; }
.mini-arch { position: absolute; width: 140px; height: 180px; right: 30px; bottom: -28px; border-radius: 80px 80px 0 0; background: var(--mint); }
.signal-grid { width: min(360px, 80%); aspect-ratio: 1; margin: 65px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(45deg); }
.signal-grid span { border: 1px solid rgba(250,248,242,.25); border-radius: 50% 50% 8px 50%; transition: background .25s, transform .35s var(--ease); }
.scene:hover .signal-grid span:nth-child(odd) { background: rgba(185,216,202,.2); transform: scale(.88); }
.action-demo { margin: 115px auto; width: min(420px, 90%); height: 84px; border: 1px solid var(--ink); border-radius: 999px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 28px; font-size: 12px; letter-spacing: .13em; }
.action-demo i { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); position: relative; transition: transform .4s var(--ease); }
.action-demo i::after { content: "→"; position: absolute; color: var(--cream); inset: 0; display: grid; place-items: center; font-style: normal; font-size: 20px; }
.scene:hover .action-demo i { transform: rotate(-32deg); }

.system { background: var(--paper); }
.system-grid { align-items: center; }
.device-stage { min-height: 650px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.device-rings { position: absolute; width: 520px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 80px rgba(185,216,202,.18), 0 0 0 160px rgba(185,216,202,.09); }
.device { position: relative; z-index: 2; width: 250px; height: 510px; padding: 25px 22px; border: 8px solid var(--ink); border-radius: 38px; background: var(--cream); box-shadow: 0 35px 70px rgba(23,37,33,.18); transform: rotate(5deg); transition: transform .7s var(--ease); }
.device-stage:hover .device { transform: rotate(0deg) translateY(-8px); }
.device-bar { display: flex; justify-content: space-between; margin-bottom: 78px; }
.device-bar span { width: 28px; height: 3px; background: var(--ink); }
.device p { font-size: 9px; letter-spacing: .16em; }
.device strong { display: block; margin-top: 20px; font-size: 34px; line-height: .95; letter-spacing: -.06em; }
.device-pill { width: 100%; height: 48px; margin-top: 100px; border-radius: 99px; background: var(--teal); }

.next { min-height: 92svh; position: relative; isolation: isolate; padding: clamp(100px, 16vw, 220px) var(--gutter) 90px; display: flex; flex-direction: column; justify-content: center; color: var(--cream); background: #102b26; overflow: hidden; }
.next h2 { margin: 0; max-width: 1100px; font-size: clamp(48px, 8.2vw, 124px); line-height: .92; font-weight: 400; letter-spacing: -.065em; }
.next h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.next > p:not(.eyebrow) { max-width: 570px; margin: 42px 0 0 auto; color: rgba(250,248,242,.7); font-size: clamp(16px, 1.5vw, 19px); }
.next-orbit { position: absolute; z-index: -1; width: 46vw; min-width: 400px; aspect-ratio: 1; border: 1px solid rgba(250,248,242,.12); border-radius: 50%; right: -12vw; top: 4vh; box-shadow: 0 0 0 85px rgba(185,216,202,.025), 0 0 0 170px rgba(185,216,202,.015); }
.text-link { min-height: 48px; margin: 45px 0 0 auto; display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(250,248,242,.45); text-decoration: none; transition: gap .25s; }
.text-link:hover { gap: 20px; }
footer { min-height: 86px; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #102b26; color: rgba(250,248,242,.55); border-top: 1px solid rgba(250,248,242,.12); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.reveal, .reveal-card { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal-card { transform: translateY(44px) scale(.985); }
.reveal.in-view, .reveal-card.in-view { opacity: 1; transform: none; }
.principles .reveal-card:nth-child(2) { transition-delay: .08s; }
.principles .reveal-card:nth-child(3) { transition-delay: .16s; }

@media (max-width: 820px) {
  :root { --radius: 18px; }
  .site-header { height: 62px; }
  nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0 15px; }
  .hero { min-height: 880px; padding-top: 105px; }
  .hero-copy { align-self: flex-end; }
  .hero-orbit { width: 104vw; right: -38vw; top: 8vh; opacity: .85; }
  .concept-note { display: none; }
  .display { font-size: clamp(58px, 18vw, 102px); }
  .hero-foot { margin-top: 32px; align-items: flex-end; }
  .circle-link { width: 52px; height: 52px; }
  .manifesto-grid, .system-grid, .experience { grid-template-columns: 1fr; }
  .body-copy { padding-top: 0; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { min-height: 0; padding: 24px 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle h3 { margin-top: 40px; }
  .experience-sticky { position: static; }
  .scene { min-height: 560px; }
  .device-stage { min-height: 590px; }
  .system-grid { gap: 60px; }
}

@media (max-width: 440px) {
  .wordmark { letter-spacing: .1em; }
  .hero { min-height: 780px; padding-bottom: 34px; }
  .hero-foot { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  .display { font-size: clamp(55px, 18vw, 78px); }
  .section-pad, .experience { padding-top: 94px; padding-bottom: 94px; }
  .section-title { font-size: clamp(43px, 14vw, 62px); }
  .scene { min-height: 520px; }
  .mini-browser { width: 100%; height: 220px; margin-top: 55px; }
  .mini-arch { width: 105px; }
  .signal-grid { margin: 55px auto; }
  .action-demo { margin: 90px auto; }
  .device-stage { min-height: 530px; }
  .device { transform: scale(.88) rotate(4deg); }
  .device-stage:hover .device { transform: scale(.88); }
  footer { flex-direction: column; align-items: flex-start; padding-top: 30px; padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .entry-wipe { display: none; }
  .reveal, .reveal-card { opacity: 1; transform: none; }
  .core-shape { transform: none !important; }
}
