/* 4thWeek — the company site. Brand: Ink, Paper, Mist, Graphite and Fourth Orange (a spark, never a flood);
   Inter Tight for words, JetBrains Mono for labels, Instrument Serif italic for the odd accent word. */
:root {
  --ink: #0b0d12;
  --ink-2: #10131a;
  --ink-3: #161a23;
  --graphite: #2a2f3a;
  --mist: #e7e9ee;
  --paper: #f7f7f5;
  --orange: #ff5a1f;
  --orange-soft: rgba(255, 90, 31, 0.14);
  --text: var(--mist);
  --muted: rgba(231, 233, 238, 0.62);
  --faint: rgba(231, 233, 238, 0.38);
  --line: rgba(231, 233, 238, 0.12);
  --line-2: rgba(231, 233, 238, 0.22);
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --head-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.label b { color: var(--orange); font-weight: 500; }
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.dot { display: inline-block; width: 0.32em; height: 0.32em; background: var(--orange); margin-left: 0.06em; vertical-align: baseline; }

/* ---------- Logo ---------- */
.mark { width: 28px; height: 28px; flex: none; }
.mark .m4 { fill: currentColor; }
.mark .mb { fill: var(--orange); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }

/* ---------- Header ---------- */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
  view-transition-name: head;
}
.head.solid { background: rgba(11, 13, 18, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line); }
.head .wrap { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 14px; font-size: 15px; color: var(--muted); border-radius: 999px; transition: color 0.3s, background 0.3s; }
.nav a:hover { color: var(--text); background: rgba(231, 233, 238, 0.06); }
.nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; background: var(--orange); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
.pill:hover { border-color: var(--orange); color: var(--text); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: calc(var(--head-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 4px;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-io); visibility: hidden;
}
.menu-open .sheet { clip-path: inset(0 0 0 0); visibility: visible; }
.sheet a.big { font-size: clamp(34px, 10vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.sheet a.big .label { font-size: 12px; }
.menu-open .sheet a.big { opacity: 1; transform: none; }
.menu-open .sheet a.big:nth-child(2) { transition-delay: 0.05s; }
.menu-open .sheet a.big:nth-child(3) { transition-delay: 0.1s; }
.menu-open .sheet a.big:nth-child(4) { transition-delay: 0.15s; }
.menu-open .sheet a.big:nth-child(5) { transition-delay: 0.2s; }
.sheet .pill { margin-top: auto; align-self: flex-start; }
.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav, .head .pill { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 15px; font-weight: 500; cursor: pointer; background: none; transition: background 0.35s var(--ease), border-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.btn:hover { border-color: var(--text); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.solid:hover { background: #fff; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.orange:hover { background: #ff6d38; }
.btn.orange .pulse { background: var(--ink); animation: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero.sub { min-height: min(78svh, 760px); }
.hero canvas.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::before { /* faint grid */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; background-position: center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--ink)); }
.hero .wrap { padding-bottom: clamp(48px, 9vh, 112px); padding-top: calc(var(--head-h) + 48px); }
.hero h1 {
  font-size: clamp(48px, 10.5vw, 168px); line-height: 0.92; letter-spacing: -0.055em; font-weight: 700; margin: 18px 0 28px; max-width: 12ch;
}
.hero.sub h1 { font-size: clamp(44px, 8vw, 120px); max-width: 14ch; }
.hero h1 .accent { letter-spacing: -0.03em; font-size: 1.04em; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 46ch; margin: 0 0 34px; }
.corners { position: absolute; inset: calc(var(--head-h) + 16px) var(--gutter) 20px; pointer-events: none; z-index: 1; }
.corners .label { position: absolute; }
.corners .tl { top: 0; left: 0; }
.corners .tr { top: 0; right: 0; text-align: right; }
.corners .br { bottom: 0; right: 0; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 28px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--orange); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 640px) { .corners .tr, .corners .br { display: none; } }

/* ---------- Word-by-word blur reveal ---------- */
[data-words] .w { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(0.18em); transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--d, 0ms)); }
[data-words].in .w { opacity: 1; filter: blur(0); transform: none; }
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.no-js [data-reveal], .no-js [data-words] .w { opacity: 1; transform: none; filter: none; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(96px, 14vh, 168px) 0; }
.section.tight { padding: clamp(64px, 10vh, 112px) 0; }
.section.paper { background: var(--paper); color: var(--ink); --muted: rgba(11, 13, 18, 0.62); --faint: rgba(11, 13, 18, 0.45); --line: rgba(11, 13, 18, 0.12); --line-2: rgba(11, 13, 18, 0.24); --text: var(--ink); }
.section.paper .btn:hover { border-color: var(--ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: clamp(40px, 7vh, 80px); }
.sec-head h2 { font-size: clamp(38px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 650; margin: 0; max-width: 16ch; }
.sec-head p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 52ch; margin: 0; }
@media (min-width: 980px) {
  .sec-head.split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; column-gap: 64px; }
  .sec-head.split .label { grid-column: 1 / -1; }
}

/* Manifesto: the words light up as you scroll past them */
.manifesto { font-size: clamp(28px, 4.2vw, 62px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; margin: 0; max-width: 22ch; }
.manifesto .mw { color: var(--text); opacity: 0.16; transition: opacity 0.35s linear; }
.manifesto .mw.lit { opacity: 1; }
.manifesto .mw.o { color: var(--orange); }

/* Principles */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.cell { background: var(--ink); padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.paper .cell { background: var(--paper); }
.cell h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.1; margin: auto 0 0; font-weight: 600; }
.cell p { margin: 0; color: var(--muted); }

/* Product feature */
.feature {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 85% 0%, rgba(255, 90, 31, 0.16), transparent 55%), var(--ink-2);
  display: grid; grid-template-columns: minmax(0, 1fr); isolation: isolate;
}
.feature .body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; gap: 22px; }
.feature h3 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.055em; line-height: 0.92; margin: 0; font-weight: 700; }
.feature p { color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); max-width: 40ch; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.feature .visual { position: relative; min-height: 320px; border-top: 1px solid var(--line); overflow: hidden; }
@media (min-width: 980px) { .feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } .feature .visual { border-top: 0; border-left: 1px solid var(--line); min-height: 520px; } }

/* The three spaces orbiting quietly — Dovuni's visual (abstract, not its UI) */
.spaces { position: absolute; inset: 0; display: grid; place-items: center; }
.spaces .ring { position: absolute; border: 1px solid var(--line-2); border-radius: 50%; }
.spaces .ring.r1 { width: 46%; aspect-ratio: 1; }
.spaces .ring.r2 { width: 70%; aspect-ratio: 1; border-style: dashed; border-color: var(--line); }
.spaces .ring.r3 { width: 94%; aspect-ratio: 1; border-color: var(--line); }
.spaces .core { width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a5c, var(--orange) 45%, #a3300a); box-shadow: 0 0 80px rgba(255, 90, 31, 0.45); }
.spaces .orbit { position: absolute; width: 70%; aspect-ratio: 1; animation: spin 36s linear infinite; }
.spaces .orbit.o2 { width: 46%; animation-duration: 24s; animation-direction: reverse; animation-delay: -9s; }
.spaces .orbit.o3 { width: 94%; animation-duration: 52s; animation-delay: -30s; }
.spaces .planet { position: absolute; top: -7px; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--mist); box-shadow: 0 0 18px rgba(231, 233, 238, 0.6); }
.spaces .planet span { position: absolute; left: 22px; top: -2px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; animation: spin 36s linear infinite reverse; }
.spaces .orbit.o2 .planet span { animation-duration: 24s; animation-direction: normal; animation-delay: -9s; }
.spaces .orbit.o3 .planet span { animation-duration: 52s; animation-delay: -30s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Notify box (launch coming soon) */
.notify { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notify-form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11, 13, 18, 0.4); transition: border-color 0.3s; }
.notify-form:focus-within { border-color: var(--orange); }
.notify-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 8px 14px; font-size: 15px; }
.notify-form input::placeholder { color: var(--faint); }
.notify-form .btn { padding: 10px 18px; }
.notify-msg { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--muted); min-height: 1.4em; margin: 2px 0 0; }
.notify-msg.ok { color: var(--orange); }
.notify-box[hidden] { display: none; }

/* In the lab */
.lab { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 16px; }
.lab-card { position: relative; border: 1px dashed var(--line-2); border-radius: 22px; padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; }
.lab-card h4 { font-size: 24px; letter-spacing: -0.03em; margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lab-card p { color: var(--muted); margin: 0; }

/* Classified: static where a name will go */
.classified { position: relative; display: inline-block; vertical-align: -0.12em; width: 4.4em; height: 0.95em; border-radius: 4px; overflow: hidden; background: #1c2029; box-shadow: inset 0 0 0 1px rgba(231, 233, 238, 0.14); }
.paper .classified { background: #2a2f3a; }
.classified canvas { width: 100%; height: 100%; filter: blur(0.6px) contrast(1.15); image-rendering: pixelated; }
.classified::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.classified::before { content: ''; position: absolute; left: -40%; top: 0; bottom: 0; width: 40%; z-index: 1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent); animation: sweep 3.2s var(--ease-io) infinite; }
@keyframes sweep { to { left: 120%; } }

/* Technology pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.pillar { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: linear-gradient(180deg, rgba(231, 233, 238, 0.03), transparent); min-height: 220px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: border-color 0.4s, transform 0.6s var(--ease); }
@media (min-width: 700px) { .pillar { min-height: 300px; } }
.pillar:hover { border-color: var(--line-2); transform: translateY(-4px); }
.pillar h3 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.12; margin: auto 0 0; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar .glyph { width: 56px; height: 56px; color: var(--mist); }
.pillar .glyph .o { stroke: var(--orange); }
.pillar .glyph .of { fill: var(--orange); }

/* Detailed rows (Technology / Company pages) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 48px; padding: clamp(32px, 5vh, 56px) 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.035em; line-height: 1.08; margin: 0; font-weight: 600; }
.row .txt { color: var(--muted); font-size: 17px; display: flex; flex-direction: column; gap: 14px; }
.row .txt p { margin: 0; }
.row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.row li { padding-left: 22px; position: relative; }
.row li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--orange); }
@media (min-width: 900px) { .row { grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }

/* Beyond: exploration areas + the cycle */
.beyond { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 980px) { .beyond { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.areas li { display: flex; align-items: baseline; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.1; transition: padding 0.5s var(--ease), color 0.4s; }
.areas li .label { flex: none; width: 3ch; }
.areas li small { margin-left: auto; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 400; text-align: right; }
.areas li:hover { padding-left: 10px; }
.cycle { width: min(100%, 460px); margin: 0 auto; aspect-ratio: 1; }
.cycle circle { fill: none; stroke-width: 9; stroke-linecap: butt; }
.cycle .q { stroke: var(--mist); stroke-dasharray: 50 177; }
.cycle .q4 { stroke: var(--orange); }
.cycle g.q4 { transform-box: view-box; transform-origin: 50px 50px; }
.cycle.in g.q4 { animation: breakout 4.8s var(--ease-io) infinite; }
@keyframes breakout { 0%, 35% { transform: rotate(0) translate(0, 0); } 55%, 80% { transform: rotate(-4deg) translate(-4px, -5px); } 100% { transform: rotate(0) translate(0, 0); } }

/* Closing statement with the four rising bars */
.closer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.closer h2 { font-size: clamp(48px, 9vw, 150px); letter-spacing: -0.055em; line-height: 0.92; margin: 0; font-weight: 700; max-width: 11ch; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 56px; }
.bars i { width: 12px; border-radius: 6px; background: var(--mist); height: 60%; transform-origin: bottom; transform: scaleY(0.2); transition: transform 0.9s var(--ease); }
.bars i:nth-child(4) { background: var(--orange); height: 100%; }
.in .bars i { transform: scaleY(1); }
.in .bars i:nth-child(2) { transition-delay: 0.08s; }
.in .bars i:nth-child(3) { transition-delay: 0.16s; }
.in .bars i:nth-child(4) { transition-delay: 0.3s; }

/* News */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item[hidden] { display: none; }
.news-item details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 28px 0; align-items: center; }
.news-item details > summary::-webkit-details-marker { display: none; }
.news-item .meta { display: flex; gap: 14px; flex-wrap: wrap; grid-column: 1 / -1; }
.news-item h3 { margin: 0; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.03em; line-height: 1.12; font-weight: 600; transition: color 0.3s; }
.news-item summary:hover h3 { color: var(--orange); }
.news-item .plus { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; flex: none; transition: transform 0.5s var(--ease), border-color 0.3s; }
.news-item .plus::before, .news-item .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; }
.news-item .plus::after { transform: rotate(90deg); transition: transform 0.5s var(--ease); }
.news-item details[open] .plus { border-color: var(--orange); }
.news-item details[open] .plus::after { transform: rotate(0); }
.news-item .story { color: var(--muted); max-width: 64ch; padding: 0 0 32px; display: grid; gap: 14px; }
.news-item .story p { margin: 0; }
.news-item a.read { display: inline-flex; gap: 8px; align-items: center; padding: 30px 0; width: 100%; justify-content: space-between; }
.news-item a.read:hover h3 { color: var(--orange); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; font-size: 14.5px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.tab[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 900px) { .founder { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; } }
.portrait { aspect-ratio: 4 / 5; border-radius: 22px; background: var(--ink-3); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.portrait .mark { width: 38%; height: auto; color: var(--mist); opacity: 0.9; }
.founder h3 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.045em; line-height: 1; margin: 10px 0 18px; font-weight: 650; }
.founder p { color: var(--muted); max-width: 52ch; margin: 0 0 14px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--mist); }
.timeline li.now::before { background: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); }
.timeline h4 { margin: 6px 0 6px; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }
.timeline p { margin: 0; color: var(--muted); }

/* Placeholder pages (Contact, Privacy, Terms) */
.placeholder { border: 1px dashed var(--line-2); border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 14px; max-width: 760px; }
.placeholder h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; font-weight: 600; }
.placeholder p { margin: 0; color: var(--muted); }
.outline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; counter-reset: o; }
.outline li { counter-increment: o; display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.outline li::before { content: counter(o, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 4px; }

/* ---------- Chapter rail (home, wide screens) ---------- */
.rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 6px; mix-blend-mode: difference; }
@media (min-width: 1100px) { .rail { display: flex; } }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 22px; color: #e7e9ee; }
.rail a span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity 0.35s, transform 0.35s var(--ease); }
.rail:hover a span, .rail a.on span { opacity: 1; transform: none; }
.rail a i { width: 16px; height: 2px; background: currentColor; opacity: 0.35; transition: width 0.5s var(--ease), opacity 0.3s; }
.rail a.on i { width: 34px; opacity: 1; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(56px, 9vh, 96px) 0 28px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 36px; }
.foot h5 { margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--muted); transition: color 0.3s; }
.foot ul a:hover { color: var(--text); }
.foot .slogan { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; max-width: 14ch; margin: 18px 0 0; }
.wordmark-xl { font-size: clamp(72px, 21vw, 340px); font-weight: 700; letter-spacing: -0.065em; line-height: 0.8; margin: clamp(48px, 8vh, 96px) 0 0; color: transparent; -webkit-text-stroke: 1px var(--line-2); white-space: nowrap; user-select: none; display: flex; align-items: flex-end; }
.wordmark-xl .blk { display: inline-block; width: 0.17em; height: 0.17em; background: var(--orange); margin-left: 0.04em; margin-bottom: 0.02em; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-base a { color: var(--faint); }
.foot-base a:hover { color: var(--text); }

/* ---------- Welcome intro (first visit) ---------- */
.intro { display: none; }
html.welcome .intro { display: grid; }
html.welcome body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); place-items: center; overflow: hidden;
  animation: introOut 0.95s var(--ease-io) 3.35s forwards;
}
.intro::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center; opacity: 0; animation: fadeIn 1.2s ease 0.1s forwards; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 65%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 65%); }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); } }
.intro { clip-path: inset(0 0 0 0); }
.intro .stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; animation: stageOut 0.9s var(--ease-io) 3.25s forwards; }
@keyframes stageOut { to { transform: translateY(-60px) scale(0.92); opacity: 0; filter: blur(8px); } }
.intro svg.big { width: min(clamp(120px, 22vw, 200px), 24vh); height: auto; overflow: visible; }
.intro .p { fill: var(--paper); opacity: 0; }
.intro .p-stem { animation: inUp 0.85s var(--ease) 0.25s forwards; }
.intro .p-bar { animation: inLeft 0.85s var(--ease) 0.45s forwards; }
.intro .p-diag { animation: inDiag 0.85s var(--ease) 0.6s forwards; }
.intro .p-block { fill: var(--orange); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: drop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.25s forwards; }
@keyframes inUp { from { opacity: 0; transform: translateY(70px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes inLeft { from { opacity: 0; transform: translateX(-80px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes inDiag { from { opacity: 0; transform: translate(50px, -60px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-90px) scale(0.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.intro .logo-wrap { position: relative; }
.intro .flash { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid var(--orange); border-radius: 50%; opacity: 0; left: 87.5%; top: 71.7%; pointer-events: none; animation: flash 1s var(--ease) 1.62s forwards; }
@keyframes flash { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(9); } }
.intro .wm { font-size: clamp(30px, 5vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; opacity: 0; animation: blurIn 0.9s var(--ease) 1.7s forwards; }
.intro .tag { display: flex; gap: 0.3em; font-size: clamp(16px, 2vw, 20px); color: var(--muted); }
.intro .tag span { opacity: 0; animation: blurIn 0.8s var(--ease) forwards; animation-delay: calc(2.1s + var(--i) * 0.11s); }
.intro .tag .accent { color: var(--text); font-size: 1.1em; }
@keyframes blurIn { from { opacity: 0; filter: blur(12px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes fadeIn { to { opacity: 0.6; } }
.intro .meter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.intro .meter .track { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.intro .meter .track::after { content: ''; position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); animation: meter 3.1s var(--ease-io) 0.1s forwards; }
@keyframes meter { to { transform: scaleX(1); } }
.intro .top { position: absolute; left: var(--gutter); right: var(--gutter); top: 24px; display: flex; justify-content: space-between; opacity: 0; animation: fadeIn 0.8s ease 0.2s forwards; }
.intro .skip-intro { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.intro .skip-intro:hover { color: var(--text); border-color: var(--text); }
html.welcome-done .intro { display: none; }

/* ---------- Page transitions (same-site navigations in browsers that support it) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.45s var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn 0.7s var(--ease) 0.12s both; }
@keyframes vtOut { to { opacity: 0; filter: blur(10px); transform: translateY(-18px) scale(0.99); } }
@keyframes vtIn { from { opacity: 0; filter: blur(12px); transform: translateY(26px); } }
::view-transition-group(head) { animation-duration: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-words] .w { opacity: 1; filter: none; transform: none; }
  .manifesto .mw { opacity: 1; }
}
