@font-face { font-family: 'Barlow Condensed'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/BarlowCondensed-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/BarlowCondensed-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/BarlowCondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/DMSans-400.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/DMSans-500.woff2') format('woff2'); }
:root { --ink: #0d110e; --night: #06080b; --cream: #f3f1e8; --line: #cfcabb; --line-d: #1f2a24; --accent: #3ddc84; --accent-ink: #0a3d20; --green-t: #0c8a46; --muted: #5c6358; --muted-d: #93a095; --ease: cubic-bezier(.2,.8,.2,1); --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* fixed bits */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 4vw, 56px); color: #fff; transition: background .4s var(--ease), padding .4s var(--ease); }
header.solid { background: rgba(6, 8, 11, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--cond); letter-spacing: .14em; text-transform: uppercase; }
.brand svg { width: 22px; height: 22px; fill: currentColor; }
.hnav { display: flex; gap: 12px; align-items: center; }
.hnav a { text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; border: 1px solid currentColor; border-radius: 999px; transition: background .3s var(--ease), color .3s var(--ease); }
.hnav a:hover { background: #fff; color: #000; }
#prog { position: fixed; right: clamp(14px, 2.2vw, 34px); top: 50%; transform: translateY(-50%); z-index: 40; height: 34vh; width: 1px; background: rgba(128, 138, 130, .4); mix-blend-mode: difference; }
#prog i { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: #fff; }
#prog b { position: absolute; left: -9px; top: calc(100% + 14px); font: 500 11px/1 var(--sans); letter-spacing: .18em; color: #fff; writing-mode: vertical-rl; }

/* chapters */
.ch { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--night); color: #f2f5f1; isolation: isolate; }
.ch canvas.bg { position: absolute; inset: -6% 0; width: 100%; height: 112%; z-index: -2; }
.ch::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6, 8, 11, .35); }
.ch .in { width: 100%; padding: 0 clamp(20px, 7vw, 120px) clamp(56px, 11vh, 120px); }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-bottom: 22px; display: block; }
h1, h2 { font: 500 clamp(54px, 10.5vw, 168px)/.9 var(--cond); text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 26px; }
h2 { font-size: clamp(44px, 7.4vw, 118px); }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.on .ln > span { transform: none; }
.on .ln:nth-child(2) > span { transition-delay: .12s; }
.on .ln:nth-child(3) > span { transition-delay: .24s; }
.acc { color: var(--accent); }
.ch p.t, p.t { max-width: 30em; font-size: clamp(16px, 1.5vw, 19px); opacity: .85; margin: 0 0 30px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: 14px; letter-spacing: .04em; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease); }
.pill:hover { background: currentColor; }
.pill:hover span { color: var(--cream); mix-blend-mode: normal; }
.ch .pill:hover { background: #f2f5f1; color: var(--night); }
.cream .pill:hover { background: var(--ink); color: var(--cream); }
.pills { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; letter-spacing: .08em; opacity: .75; margin-bottom: 26px; }
.stat i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } }

/* cream parts */
.cream { background: var(--cream); color: var(--ink); position: relative; }
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: var(--cream); }
.ticker .tr { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker span { white-space: nowrap; font-size: 15px; padding: 0 34px; position: relative; }
.ticker span::after { content: "\2733"; color: #e0583a; position: absolute; right: -6px; }
@keyframes slide { to { transform: translateX(-50%); } }
.rowh { display: flex; justify-content: space-between; padding: 22px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.rowh span:last-child { text-transform: none; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.col { padding: 44px 28px 36px; border-right: 1px solid var(--line); text-align: center; transition: background .4s var(--ease); }
.col:last-child { border-right: 0; }
.col:hover { background: rgba(61, 220, 132, .08); }
.col svg { width: 150px; height: 170px; margin: 0 auto 22px; display: block; stroke: var(--ink); fill: none; stroke-width: 1.4; stroke-linejoin: round; transition: transform .6s var(--ease); }
.col:hover svg { transform: translateY(-8px) rotate(-3deg); }
.col svg .f { fill: var(--accent); stroke: none; }
.col h3 { margin: 0 0 6px; font: 500 24px/1.1 var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.col p { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.col a { font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
.two { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.two > div { padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 56px); }
.two > div + div { border-left: 1px solid var(--line); }
.two .eyebrow { opacity: 1; color: var(--muted); }
.cream h2 { color: var(--ink); }
.two h2 { font-size: clamp(40px, 5.2vw, 84px); }
.ctlgrid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ctlgrid > div { padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 56px); }
.ctlgrid > div + div { border-left: 1px solid var(--line); }
.rw { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.rw:first-of-type { border-top: 1px solid var(--line); }
.rw small { display: block; color: var(--muted); font-size: 13px; }
.tg { flex: none; width: 50px; height: 28px; border-radius: 999px; background: #d9d5c6; position: relative; transition: background .3s; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.tg.on { background: var(--accent); } .tg.on::after { transform: translateX(22px); }
.tg.lock { background: var(--ink); } .tg.lock::after { transform: translateX(22px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.steps > div { padding: 44px clamp(20px, 3vw, 44px) 56px; border-right: 1px solid var(--line); }
.steps > div:last-child { border: 0; }
.steps .n { font: 500 clamp(80px, 11vw, 170px)/.9 var(--cond); color: transparent; -webkit-text-stroke: 1.3px var(--ink); display: block; margin-bottom: 26px; transition: color .5s var(--ease); }
.steps > div:hover .n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.steps h3 { margin: 0 0 8px; font: 500 28px/1.1 var(--cond); letter-spacing: .05em; text-transform: uppercase; }
.steps p { margin: 0; color: var(--muted); }
.head2 { padding: clamp(48px, 8vw, 110px) clamp(20px, 4vw, 56px) 44px; border-bottom: 1px solid var(--line); }
.head2 h2 { margin: 0; }

/* mock window inside the dark chapter */
.chp { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(24px, 5vw, 80px); align-items: end; width: 100%; padding: 0 clamp(20px, 7vw, 120px) clamp(56px, 11vh, 120px); }
.chp .in { padding: 0; }
.chp h2 { font-size: clamp(40px, 5.6vw, 92px); }
.win { background: rgba(10, 14, 12, .86); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; transform: translateY(40px) rotate(1.5deg); opacity: 0; transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
.on .win { transform: none; opacity: 1; }
.win .bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3a32; }
.win .bar span { margin-left: 8px; font-size: 12px; opacity: .6; }
.win .body { padding: 18px; display: grid; gap: 12px; }
.win .u { justify-self: end; background: #1c2822; padding: 9px 14px; border-radius: 14px 14px 4px 14px; margin: 0; max-width: 85%; }
.win .j { justify-self: start; background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .3); padding: 9px 14px; border-radius: 14px 14px 14px 4px; margin: 0; min-height: 40px; max-width: 92%; }
.win .j::after { content: ""; display: inline-block; width: 6px; height: 14px; background: var(--accent); margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.win .j.done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.win .m { display: flex; gap: 10px; }
.win .m div { flex: 1; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 10px 12px; }
.win .m b { display: block; font: 500 26px/1 var(--cond); }
.win .m small { opacity: .6; font-size: 12px; }
.ex { font-size: 12px; opacity: .5; margin-top: 10px; }

.list { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 34em; }
.list li { padding-left: 26px; position: relative; opacity: .88; }
.list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--accent); }
.todo { background: rgba(242, 179, 74, .18); color: #f2b34a; padding: 1px 7px; border-radius: 5px; }
.cream .todo { color: #8a5a00; background: rgba(242, 179, 74, .3); }
.word { position: absolute; left: 0; right: 0; top: 4vh; text-align: center; font: 500 clamp(120px, 29vw, 460px)/.82 var(--cond); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(242, 245, 241, .14); user-select: none; pointer-events: none; z-index: -1; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 26px; padding: 22px clamp(20px, 4vw, 56px); font-size: 13px; border-top: 1px solid var(--line-d); background: var(--night); color: rgba(242, 245, 241, .65); }
.foot a { margin-left: 18px; }

.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 150px 24px 80px; }
.legal h1 { font-size: clamp(48px, 8vw, 88px); margin-bottom: 30px; }
.legal h2 { font: 500 26px/1.1 var(--cond); letter-spacing: .05em; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--ink); }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr 1fr; } .col:nth-child(2) { border-right: 0; } .col:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two, .ctlgrid, .steps, .chp { grid-template-columns: 1fr; } .two > div + div, .ctlgrid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .steps > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hnav a:not(:last-child) { display: none; } #prog { display: none; }
  .chp { align-items: start; } .ch { min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv, .ln > span, .win { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .cols { grid-template-columns: 1fr; } .col { border-right: 0; border-bottom: 1px solid var(--line); padding: 34px 20px 28px; } .col:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .col:last-child { border-bottom: 0; }
  .col svg { width: 120px; height: 136px; }
  h1 { font-size: clamp(52px, 17vw, 84px); }
}
