@import url('design-system/tokens.css');

:root {
  --soul-slate: #14181e;
  --soul-bone: #e9e6df;
  --soul-teal: #7fd8ce;
  --soul-violet: #9883d0;
  --soul-ember: #db9c7f;
  --soul-wordmark-accent: var(--soul-violet);
  --soul-ink: #0e1114;
  --soul-text-dim: rgba(233, 230, 223, .68);
  --soul-text-faint: rgba(233, 230, 223, .48);
  --soul-border: rgba(233, 230, 223, .12);
  --soul-ease: cubic-bezier(.16, 1, .3, 1);
  --soul-sans: "Hanken Grotesk", Helvetica, sans-serif;
  --soul-wordmark-font: "Inter", "DM Sans", sans-serif;
  --soul-serif: "Fraunces", Georgia, serif;
  --soul-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Compatibility aliases retained from the supplied page. */
  --slate: var(--soul-slate);
  --bone: var(--soul-bone);
  --dim: var(--soul-text-dim);
  --faint: var(--soul-text-faint);
  --hair: var(--soul-border);
  --teal: var(--soul-teal);
  --violet: var(--soul-violet);
  --ember: var(--soul-ember);
  --ease: var(--soul-ease);
  --sans: var(--soul-sans);
  --serif: var(--soul-serif);
  --mono: var(--soul-mono);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { overflow-x: clip; background: var(--slate); }
body { color: var(--bone); font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 1.75; -webkit-font-smoothing: antialiased; }
::selection { background: var(--teal); color: var(--soul-ink); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 90vw); margin-inline: auto; }
.mono { color: var(--dim); font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; }
.compact-label { letter-spacing: .2em; }
.layer { position: relative; z-index: 2; }

.grain { position: fixed; inset: -60%; z-index: 210; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); animation: grain 7s steps(6) infinite; }
@keyframes grain { 0%, 100% { transform: translate(0); } 20% { transform: translate(-2.5%, 2%); } 40% { transform: translate(2%, -2.5%); } 60% { transform: translate(-1.5%, -2%); } 80% { transform: translate(2.5%, 2.5%); } }

html.js [data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
html.js [data-rv].in { opacity: 1; transform: none; }
html.js .float { opacity: 0; }
.float { will-change: opacity, transform; }

#fluid { position: fixed; inset: 0; z-index: 0; display: block; }
.vmarq { position: fixed; top: 0; bottom: 0; left: 20px; z-index: 6; width: 16px; overflow: hidden; pointer-events: none; }
.vm-track { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; color: var(--faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; white-space: nowrap; writing-mode: vertical-rl; animation: vm 44s linear infinite; }
@keyframes vm { to { transform: translateY(-50%); } }

#hd { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .6s var(--ease), background .6s var(--ease); }
#hd.hide { transform: translateY(-110%); }
#hd.solid { border-bottom: 1px solid rgba(233, 230, 223, .06); background: rgba(16, 20, 25, .82); backdrop-filter: blur(12px); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 20px; }
.wordmark { color: var(--bone); font-family: var(--soul-wordmark-font); font-size: 15px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.wordmark b { color: var(--soul-wordmark-accent); font-weight: 500; }
.hd-nav { display: flex; gap: 26px; }
.hd-nav a { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; transition: color .4s; }
.hd-nav a:hover { color: var(--bone); }
.hd-right { display: flex; align-items: center; gap: 20px; }
.pill { display: inline-block; padding: 13px 22px; border: 0; background: var(--bone); color: #12161b; font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; transition: letter-spacing .5s var(--ease), background .5s; }
.pill:hover { background: #fff; letter-spacing: .32em; }
.burger { position: relative; display: none; width: 34px; height: 22px; border: 0; background: none; cursor: pointer; }
.burger i { position: absolute; right: 0; left: 0; height: 1.5px; background: var(--bone); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 5px; }
.burger i:last-child { top: 15px; }

.mo { position: fixed; inset: 0; z-index: 90; display: flex; visibility: hidden; flex-direction: column; justify-content: center; gap: 9vh; padding: 0 9vw; background: #10141a; opacity: 0; transition: opacity .5s ease, visibility 0s .5s; }
html.menu-open { overflow: hidden; }
html.menu-open .mo { visibility: visible; opacity: 1; transition: opacity .5s ease; }
html.menu-open .burger i:first-child { top: 10px; transform: rotate(45deg); }
html.menu-open .burger i:last-child { top: 10px; transform: rotate(-45deg); }
.mo nav { display: flex; flex-direction: column; gap: 6px; }
.mo nav a { display: flex; align-items: baseline; gap: 1.4rem; font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 300; line-height: 1.2; opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 70ms); }
html.menu-open .mo nav a { opacity: 1; transform: none; }
.mo nav a i { color: var(--faint); font-family: var(--mono); font-size: 10px; font-style: normal; letter-spacing: .3em; }
.mo nav a:hover { color: var(--teal); }
.mo-sub { color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }

.hero { position: relative; z-index: 2; display: flex; min-height: 100svh; align-items: center; justify-content: center; text-align: center; }
.hero-core { padding: 0 6vw; will-change: transform, opacity; }
.pre-line { display: block; width: 1px; height: 44px; margin: 0 auto 28px; background: var(--hair); }
.display { margin-top: 3vh; font-size: clamp(2.4rem, 6.2vw, 5.6rem); font-weight: 250; letter-spacing: -.015em; line-height: 1.1; }
.display em { font-family: var(--serif); font-style: italic; font-weight: 340; }
.bc, .bw { display: inline-block; }
.bc { white-space: pre; }
.hero-sub { max-width: 58ch; margin: 3.5vh auto 0; color: var(--dim); font-size: clamp(14px, 1.6vw, 16px); line-height: 1.8; }
.hero-sub2 { margin-top: 18px; color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px; margin-top: 4.5vh; }
.cta-ghost { padding-bottom: 9px; border-bottom: 1px solid var(--hair); color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; transition: color .4s, border-color .4s; }
.cta-ghost:hover { border-color: var(--faint); color: var(--bone); }
.cue { position: absolute; right: 0; bottom: 34px; left: 0; text-align: center; animation: pulse 3.2s ease-in-out infinite; }
.cue .mono { letter-spacing: .44em; }
@keyframes pulse { 0%, 100% { opacity: .85; } 50% { opacity: .35; } }

.scatter { position: relative; z-index: 2; }
.chap { position: relative; height: clamp(460px, 64vh, 720px); }
.topic { position: absolute; top: 9%; left: 8%; width: min(44vw, 660px); }
.chap.c2 .topic { right: 8%; left: auto; }
.t-kick { display: block; margin-bottom: 20px; }
.t-word { font-size: clamp(2.4rem, 7.2vw, 6.2rem); font-weight: 250; letter-spacing: .015em; line-height: 1.05; text-transform: uppercase; }
.t1 .t-word { color: #e4def5; }
.t2 .t-word { color: #ddf1eb; }
.t3 .t-word { color: #f4e7da; }
.t-desc { max-width: 46ch; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); color: rgba(233, 230, 223, .8); font-size: 15.5px; font-weight: 300; line-height: 1.8; }
.frag { position: absolute; color: rgba(233, 230, 223, .8); font-family: var(--mono); font-size: clamp(.95rem, 1.9vw, 1.5rem); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.frag.t { color: rgba(127, 216, 206, .82); }
.frag.v { color: rgba(152, 131, 208, .84); }
.frag.e { color: rgba(219, 156, 127, .82); }
.interlude { display: flex; height: clamp(160px, 18vh, 220px); align-items: center; justify-content: center; }
.iline { color: rgba(233, 230, 223, .75); font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-style: italic; font-weight: 340; letter-spacing: .02em; }

.sec { position: relative; z-index: 2; padding-block: clamp(110px, 16vh, 180px); }
.studio { padding-block: clamp(64px, 10vh, 112px); }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); padding-block: var(--soul-space-12); border-top: 1px solid var(--soul-border-subtle); border-bottom: 1px solid var(--soul-border-subtle); }
.studio-kicker { margin-bottom: var(--soul-space-6); color: var(--soul-text-secondary); font-family: var(--soul-font-mono); font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; }
.studio-heading h2 { color: var(--soul-text-primary); font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 300; line-height: 1.2; letter-spacing: -.015em; overflow-wrap: break-word; }
.studio-heading em { color: var(--soul-accent-reflective); font-family: var(--soul-font-serif); font-weight: 340; }
.studio-body { max-width: 58ch; min-width: 0; }
.studio-body p { color: var(--soul-text-secondary); font-size: 1rem; line-height: 1.8; }
.studio-body p + p { margin-top: var(--soul-space-6); }
.studio-body .studio-intro { color: var(--soul-text-primary); font-size: 1.125rem; line-height: 1.7; }
.studio-body .studio-bridge { color: var(--soul-text-primary); }
@media (max-width: 760px) { .studio-layout { grid-template-columns: minmax(0, 1fr); } }
#writing { padding-top: clamp(64px, 8vh, 96px); }
.sec-head { display: flex; align-items: baseline; gap: 26px; margin-bottom: clamp(48px, 8vh, 80px); }
.sec-head.tight { margin-bottom: 22px; }
.sec-head .rule { flex: 1; height: 1px; background: var(--hair); }
.sec-lead { max-width: 56ch; margin-bottom: clamp(30px, 6vh, 60px); color: var(--dim); font-size: 15.5px; }
.foot-note { margin-top: 34px; color: rgba(233, 230, 223, .8); font-family: var(--serif); font-size: 1.05rem; font-style: italic; font-weight: 340; }
.row-list { list-style: none; }
.row { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto auto; gap: clamp(14px, 2.5vw, 34px); align-items: baseline; padding: clamp(24px, 4vh, 34px) 6px; border-top: 1px solid var(--hair); transition: opacity .45s ease, transform .7s var(--ease); }
.row:last-of-type { border-bottom: 1px solid var(--hair); }
.row-list:hover .row:not(:hover) { opacity: .4; }
.r-num { color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .24em; }
.r-main { min-width: 0; }
.r-title { display: block; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 350; letter-spacing: -.015em; line-height: 1.25; transition: transform .5s var(--ease); }
.row:hover .r-title { transform: translateX(10px); }
.r-desc { display: block; max-width: 62ch; margin-top: 9px; color: var(--faint); font-size: 14px; font-weight: 300; line-height: 1.7; }
.r-tag { color: var(--faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.r-stat { color: var(--dim); font-family: var(--serif); font-size: .95rem; font-style: italic; font-weight: 340; white-space: nowrap; }
.arch-foot { margin-top: 38px; }
.arch-link { padding: 14px 2px; border: 0; border-bottom: 1px solid var(--hair); background: none; color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; transition: color .4s, border-color .4s; }
.arch-link:hover { border-color: var(--faint); color: var(--bone); }
.wait-note { max-width: 52ch; max-height: 0; margin-top: 0; overflow: hidden; color: var(--dim); font-size: 13.5px; font-weight: 300; line-height: 1.8; opacity: 0; transition: max-height .6s var(--ease), opacity .6s var(--ease), margin-top .6s var(--ease); }
.wait-note.show { max-height: 9em; margin-top: 16px; opacity: 1; }

.founder { position: relative; }
.ghost-name { position: absolute; top: -6%; right: -3%; z-index: 0; color: rgba(233, 230, 223, .03); font-size: clamp(7rem, 19vw, 17rem); font-weight: 800; letter-spacing: -.02em; line-height: .9; pointer-events: none; user-select: none; -webkit-text-stroke: 1px rgba(233, 230, 223, .09); }
.story { position: relative; z-index: 1; max-width: 780px; }
.about-body p { color: rgba(233, 230, 223, .85); font-size: 16.5px; font-weight: 300; line-height: 1.85; }
.about-body p + p { margin-top: 1.15em; }
.about-body p:first-child { margin-bottom: 1.4em; color: var(--bone); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 350; line-height: 1.5; }
.attrib { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px; margin-top: 40px; }
.attrib b { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.attrib span { color: var(--faint); font-family: var(--mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; }


.subscribe { padding-block: clamp(140px, 22vh, 240px); text-align: center; }
.subscribe .display { margin-top: 3vh; font-size: clamp(2.1rem, 5.4vw, 4.4rem); line-height: 1.14; }
.c-note { margin-top: 26px; color: var(--dim); font-size: 14.5px; line-height: 1.9; }
.subscribe .pill { margin-top: clamp(30px, 6vh, 50px); }
.subscribe .wait-note { margin-inline: auto; text-align: center; }
.sub-free { margin-top: 26px; color: var(--faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; }
.site-foot { position: relative; z-index: 2; padding-block: clamp(40px, 7vh, 70px) 46px; }
.f-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px; padding-top: 26px; border-top: 1px solid var(--hair); color: var(--faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; }
.f-links { display: flex; flex-wrap: wrap; gap: 26px; }
.f-links a { transition: color .4s; }
.f-links a:hover { color: var(--bone); }
.f-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 14px; color: rgba(233, 230, 223, .3); font-family: var(--mono); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }

@media (max-width: 960px) { .hd-nav { display: none; } .burger { display: block; } }
@media (max-width: 900px) { .vmarq { display: none; } .frag { display: none; } .chap { height: clamp(420px, 60vh, 580px); } .topic, .chap.c2 .topic { top: 6%; right: auto; left: 6%; width: min(84vw, 660px); } }
@media (max-width: 880px) { .founder { padding-right: 4vw; } }
@media (max-width: 640px) {
  .hd-right .pill { display: none; }
  .wordmark { font-size: 13px; letter-spacing: .28em; }
  .row { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
  .r-tag { display: none; }
  .f-bar, .f-sub { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  #fluid { display: none; }
  body { background: radial-gradient(120vmax 90vmax at 60% 20%, #1c2733, #12161c 60%, #0e1116); }
  html.js [data-rv], .float { opacity: 1 !important; transform: none !important; }
  .grain, .vm-track, .cue { animation: none; }
}
