:root {
  --paper: #f5f1e8;
  --paper-2: #ede7da;
  --white: #fffdf9;
  --ink: #1c1a17;
  --ink-2: #4a4640;
  --ink-3: #6f6a62;
  --line: rgba(28, 26, 23, 0.14);

  --tangerine: #b63a12;
  --tangerine-c: #ffe2d3;
  --tangerine-s: #ffb896;
  --cobalt: #2747c4;
  --cobalt-c: #dce4ff;
  --plum: #6d3fa3;
  --plum-c: #ecdfff;
  --amber: #8a5300;
  --amber-c: #ffe2b4;
  --leaf: #1e6b3d;
  --leaf-c: #cfead7;
  --sun-c: #ffeeb8;
  --night: #16171c;
  --night-2: #1f2026;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --topbar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 12px);
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }

/* ============ INTRO OVERLAY ============ */

#intro { display: none; }
.intro-skip { display: none; }
.intro-pending #intro, #intro.revealing {
  display: block; position: fixed; inset: 0; z-index: 50; background: #030507;
}
.intro-pending body { overflow: hidden; }
#intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro-pending .intro-skip {
  display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 20px; bottom: 20px; z-index: 70;
  background: rgba(20, 24, 30, .75); border: 1px solid #28303a; color: #aab4bf; padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; cursor: pointer; backdrop-filter: blur(6px);
  animation: fadeIn .6s 1.2s both;
}
.intro-skip:hover { color: #fff; border-color: #22d3ee; }
.intro-skip kbd { font: inherit; font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid #28303a; color: #6b7684; }

.hud {
  position: absolute; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  color: rgba(34, 211, 238, .72); pointer-events: none; user-select: none; transition: opacity .6s ease;
}
#intro.settling .hud { opacity: 0; }
.hud-tl { top: 20px; left: 20px; display: flex; gap: 8px; text-transform: uppercase; }
.hud-brand { color: #e6edf3; font-weight: 500; }
.hud-sep { color: #4d5967; }
.hud-tr { top: 20px; right: 20px; display: grid; gap: 2px; text-align: right; }
.hud-tr div { display: flex; gap: 10px; justify-content: flex-end; }
.hud-tr span { color: #4d5967; }
.hud-tr b { color: #e6edf3; font-weight: 500; min-width: 5ch; font-variant-numeric: tabular-nums; }
.hud-log { bottom: 20px; left: 20px; display: flex; flex-direction: column; gap: 3px; max-width: min(520px, 70vw); margin: 0; padding: 0; }
.hud-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .35s var(--ease) both; }
.hud-log li .k { color: #4d5967; display: inline-block; width: 7ch; }
.hud-log li .t { color: #4d5967; margin-right: 1ch; }
.hud-log li.ok { color: #e6edf3; }
.hud-br { bottom: 64px; right: 20px; color: #4d5967; font-variant-numeric: tabular-nums; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ TOP BAR ============ */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--topbar);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.intro-done .topbar { background: rgba(245, 241, 232, .86); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.revealing .topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.revealing .topnav, .revealing .topbar .btn { opacity: 0; }
.topbar-inner { height: 100%; width: min(1140px, 100% - 48px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }

.brand-wrap { display: flex; align-items: center; gap: 10px; }
.brand {
  font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1; text-decoration: none;
  display: flex; align-items: baseline; white-space: nowrap; color: var(--ink); transition: color .35s ease;
}
.brand-first, .brand-last { line-height: 1; transition: opacity .3s ease; }
.brand-last { margin-left: .34em; color: var(--tangerine); display: inline-block; }
.intro-pending .brand { color: #fff; }
.intro-pending .brand-last { color: #fff; }
.intro-pending .brand-first, .intro-pending .brand-last { opacity: 0; }
.brand-first.on, .brand-last.on { opacity: 1 !important; }
.brand-last.flag {
  background: linear-gradient(180deg, #ffffff 0 36%, #00966e 36% 66%, #d62612 66% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: jitter .08s steps(2) infinite;
}
.brand-last.flag.split { filter: drop-shadow(-2px 0 rgba(0, 150, 110, .9)) drop-shadow(2px 0 rgba(214, 38, 18, .9)); }
@keyframes jitter { 0% { transform: translate(0, 0); } 50% { transform: translate(1px, -1px); } 100% { transform: translate(-1px, 1px); } }

.replay {
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(28, 26, 23, .07); color: var(--ink-2);
  transition: background-color .2s ease, border-radius .3s var(--spring), transform .3s var(--spring);
}
.replay svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 7s var(--ease) 2s infinite; }
.replay:hover { background: var(--tangerine-c); color: var(--tangerine); border-radius: 10px; }
.replay:hover svg { animation: spin .7s var(--ease) infinite; }
.replay:active { transform: scale(.9); }
@keyframes nudge { 0%, 88% { transform: rotate(0); } 100% { transform: rotate(-360deg); } }
@keyframes spin { to { transform: rotate(-360deg); } }
.intro-pending .replay { opacity: 0; transform: scale(0); pointer-events: none; }
.intro-done .replay { animation: pop .6s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 8px 14px; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.topnav a:hover { background: rgba(28, 26, 23, .07); color: var(--ink); }
.topnav a.active { background: var(--ink); color: #fff; }
.intro-pending .topnav, .intro-pending .topbar .btn { opacity: 0; pointer-events: none; }
.topnav, .topbar .btn { transition: opacity .5s ease .2s; }

/* ============ BUTTONS ============ */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-sans); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: border-radius .35s var(--spring), transform .2s ease, background-color .2s ease;
}
.btn::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .2s ease; z-index: -1; }
.btn:hover::after { opacity: .08; }
.btn:active { border-radius: 12px; }
.btn:active::after { opacity: .14; }
.btn-filled { background: var(--ink); color: #fff; }
.btn-tonal { background: rgba(28, 26, 23, .08); color: var(--ink); }
.btn-outline { border-color: rgba(28, 26, 23, .35); color: var(--ink); }
.btn-text { background: transparent; color: var(--ink); padding: 0 14px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 18px; }

.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: currentColor; }
.text-link:hover { text-decoration-thickness: 3px; }

.role { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.role span:first-child { color: var(--ink); font-weight: 500; }
.stack { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ============ SHEETS ============ */

main { transition: opacity .01s; }
.intro-pending main { visibility: hidden; }

.sheet { position: relative; padding: 112px 0 136px; border-radius: 44px 44px 0 0; margin-top: -44px; overflow-x: clip; }
.sheet-head { display: grid; gap: 12px; margin-bottom: 56px; max-width: 640px; }
.sheet-head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.02em; }
.sheet-head p { font-size: 19px; color: var(--ink-2); }

/* intro */
.sheet-intro { background: var(--paper); border-radius: 0; margin-top: 0; padding: calc(var(--topbar) + 96px) 0 152px; }
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: center; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.intro-copy h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.7vw, 48px); letter-spacing: -0.02em; line-height: 1.14; max-width: 17ch; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 54ch; margin-top: 26px; }
.lede-2 { margin-top: 12px; color: var(--ink); font-weight: 500; }
.lede a { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.now { background: var(--white); border-radius: 32px; padding: 30px 30px 18px; box-shadow: 0 1px 2px rgba(28, 26, 23, .06), 0 12px 32px -12px rgba(28, 26, 23, .14); }
.now-title { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 8px; }
.now-list li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.now-list li:first-child { border-top: 0; }
.now-shape { grid-row: span 2; width: 30px; height: 30px; margin-top: 2px; transition: transform .6s var(--spring); }
.now-list li:hover .now-shape { transform: rotate(45deg) scale(1.08); }
.now-shape path { fill: currentColor; }
.s-cobalt { color: #8ea4ff; } .s-tangerine { color: #ff9a6b; } .s-plum { color: #b996ee; } .s-leaf { color: #7fcf9b; }
.now-k { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.now-v { font-size: 16px; color: var(--ink); line-height: 1.45; }
.now-v a { font-weight: 600; text-underline-offset: 3px; }

/* work */
.sheet-dellicker { background: var(--cobalt-c); }
.sheet-dellicker .role span:first-child { color: var(--cobalt); }
.dellicker {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch;
  background: var(--white); border-radius: 36px; padding: 40px 40px 36px;
  box-shadow: 0 1px 2px rgba(20, 30, 80, .06), 0 18px 40px rgba(39, 71, 196, .08);
}
.dellicker-main { display: grid; align-content: start; gap: 10px; }
.dellicker h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.02em; margin: 6px 0 4px; }
.dellicker-sub { color: var(--ink-3); max-width: 46ch; }
.post-card {
  position: relative; overflow: hidden; display: grid; align-content: end; gap: 12px;
  min-height: 280px; padding: 28px; border-radius: 28px; background: var(--cobalt); color: #fff;
  text-decoration: none; transition: transform .45s var(--spring), box-shadow .3s ease;
  box-shadow: 0 10px 24px rgba(39, 71, 196, .22);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(39, 71, 196, .28); }
.post-card:active { transform: translateY(-1px) scale(.985); }
.post-shape { position: absolute; width: 160px; height: 160px; right: -36px; top: -42px; color: rgba(255, 255, 255, .16); pointer-events: none; }
.post-shape path { fill: currentColor; }
.post-kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.post-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; line-height: 1.05; max-width: 10ch; }
.post-blurb { color: rgba(255, 255, 255, .86); max-width: 28ch; }
.post-go { font-weight: 700; margin-top: 8px; }

.sheet-work { background: var(--tangerine-c); }
.sheet-work .role span:first-child { color: var(--tangerine); }
.slab-feature { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.slab-stage { position: relative; display: grid; justify-items: center; gap: 18px; padding: 28px 0; }
.slab-backdrop { position: absolute; top: 50%; left: 50%; width: min(460px, 100%); translate: -50% -56%; animation: rotate 60s linear infinite; pointer-events: none; }
.slab-backdrop path { fill: var(--tangerine-s); opacity: .55; }
@keyframes rotate { to { rotate: 360deg; } }
.slab {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative; width: min(300px, 64vw); aspect-ratio: 600 / 1008; padding: 0; border: 0; background: none;
  cursor: pointer; perspective: 1100px; -webkit-tap-highlight-color: transparent; border-radius: 18px;
  touch-action: pan-y;
}
.slab-body {
  position: absolute; inset: 0; display: block; border-radius: 18px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--spring), filter .4s ease;
  filter: drop-shadow(0 22px 26px rgba(90, 30, 5, .28));
  will-change: transform;
}
.slab:hover .slab-body { transition: transform .12s linear, filter .4s ease; filter: drop-shadow(0 30px 34px rgba(90, 30, 5, .34)); }
.slab.is-dragging .slab-body { transition: none; }
.slab-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 18px; user-select: none; -webkit-user-drag: none; }
.slab-incoming { opacity: 0; pointer-events: none; }
.slab-glare {
  position: absolute; inset: 1.5% 2%; border-radius: 16px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 42%),
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 45%, transparent 60%);
  mix-blend-mode: soft-light; transition: opacity .3s ease;
}
.slab:hover .slab-glare { opacity: 1; }
.spark { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; z-index: 3; }
.spark svg { width: 100%; height: 100%; }
.slab-meta { position: relative; display: flex; align-items: center; gap: 14px; }
.slab-name { font-weight: 700; font-size: 15px; }
.slab-dots { display: flex; gap: 2px; }
.slab-dots button {
  width: 32px; height: 36px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.slab-dots button::before {
  content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(28, 26, 23, .22);
  transition: width .4s var(--spring), background-color .3s ease;
}
.slab-dots button.on { width: 36px; }
.slab-dots button.on::before { width: 22px; background: var(--tangerine); }
.slab-hint { position: relative; font-size: 14px; color: var(--ink-3); }

.slab-copy h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 42px); letter-spacing: -0.02em; margin: 10px 0 16px; }
.slab-copy > p { color: var(--ink-2); font-size: 18px; max-width: 50ch; }
.results { margin: 28px 0 26px; }
.results > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid rgba(182, 58, 18, .2); }
.results dt { font-family: var(--f-mono); font-size: 13px; color: var(--tangerine); padding-top: 3px; }
.results dd { color: var(--ink-2); }
.results strong { color: var(--ink); font-weight: 700; }
.conv { display: grid; grid-template-columns: 1fr 130px; gap: 12px; align-items: center; font-size: 14px; margin: 3px 0; }
.conv-bar { height: 10px; border-radius: 99px; background: rgba(182, 58, 18, .12); overflow: hidden; }
.conv-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: rgba(182, 58, 18, .45); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.conv-bar.is-best i { background: var(--tangerine); transition-delay: .25s; }
.in .conv-bar i { transform: scaleX(1); }
.sheet-work .text-link { color: var(--tangerine); }

.ticks { display: grid; gap: 10px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 6px; background: var(--cobalt-c);
  box-shadow: inset 0 0 0 1.5px var(--cobalt);
}
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.32em + 4px); width: 7px; height: 4px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }

/* projects */
.sheet-projects { background: var(--paper-2); }
.proj-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.mod { position: relative; padding: 36px; display: grid; gap: 26px; align-content: start; }
.mod h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.mod-copy { display: grid; gap: 12px; align-content: start; }
.mod-copy > p:not(.role):not(.stack):not(.links) { color: var(--ink-2); }
.links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }

.mod-mm { grid-column: span 12; grid-template-columns: 1fr 1.05fr; gap: 48px; background: var(--white); border-radius: 36px; padding: 44px; }
.mm-title { display: flex; align-items: center; gap: 16px; }
.mm-logo { width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.mm-title .role { margin-top: 4px; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1faa59; box-shadow: 0 0 0 0 rgba(31, 170, 89, .5); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(31, 170, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 170, 89, 0); } }

.mm-demo { background: var(--paper); border-radius: 24px; padding: 22px; display: grid; gap: 16px; align-content: start; }
.mm-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mm-file { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); transition: transform .6s var(--ease), opacity .4s ease; }
.mm-file svg { width: 28px; height: 35px; flex: none; }
.mm-file svg path { fill: #fff; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.mm-file svg .r { stroke-width: 1.6; stroke: var(--ink-3); fill: none; }
.mm-file.sent { transform: translate(40px, 50px) scale(.6); opacity: 0; }
.mm-file.done span::after { content: " · imported"; color: #1faa59; }
.mm-dash { position: relative; background: #fff; border-radius: 18px; padding: 18px 18px 14px; min-height: 250px; display: grid; gap: 12px; align-content: start; }
.mm-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 15px; text-align: center; padding: 20px; transition: opacity .3s ease; }
.mm-dash:not([data-state="empty"]) .mm-empty { opacity: 0; pointer-events: none; }
.mm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transition: opacity .3s ease; }
.mm-kpis div { background: var(--paper); border-radius: 14px; padding: 10px 12px; display: grid; }
.mm-kpis span { font-size: 12px; color: var(--ink-3); }
.mm-kpis b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-dash[data-state="empty"] .mm-kpis, .mm-dash[data-state="empty"] .mm-chart, .mm-dash[data-state="empty"] .mm-note { opacity: 0; }
.mm-chart { width: 100%; height: auto; overflow: visible; }
.mm-chart .bars rect { fill: #cdd6ff; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .7s var(--spring); }
.mm-chart .bars rect.up { transform: scaleY(1); }
.mm-chart .trend { fill: none; stroke: var(--cobalt); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mm-chart .trend.draw { transition: stroke-dashoffset 1.2s var(--ease); stroke-dashoffset: 0; }
.mm-chart .fc { fill: none; stroke: var(--cobalt); stroke-width: 2.4; stroke-dasharray: 5 5; opacity: 0; transition: opacity .6s ease; }
.mm-chart .fc.show { opacity: 1; }
.mm-note { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }

.mod-loom { grid-column: span 7; background: var(--plum-c); border-radius: 48px 16px 48px 16px; }
.mod-loom .role span:first-child { color: var(--plum); }
.loom-demo { background: rgba(255, 255, 255, .6); border-radius: 26px; padding: 18px; display: grid; gap: 16px; }
.seg { display: inline-grid; grid-auto-flow: column; justify-self: start; border: 1px solid rgba(109, 63, 163, .45); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 18px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; transition: background-color .25s ease, color .25s ease; }
.seg button + button { border-left: 1px solid rgba(109, 63, 163, .45); }
.seg button[aria-selected="true"] { background: #d9c2fb; color: #2d0d52; }
.seg button[aria-selected="true"]::before { content: "✓"; font-size: 12px; }
.flat { display: grid; gap: 8px; }
.flat li { background: #fff; border-radius: 12px; padding: 10px 14px; font-family: var(--f-mono); font-size: 13.5px; color: var(--ink-2); }
.loom-cap { font-size: 14px; color: var(--ink-3); }
.loom-pane { display: grid; gap: 14px; }
.loom-pane[hidden] { display: none; }
.hyp { background: #fff; border-radius: 18px; padding: 16px 18px; display: grid; gap: 8px; }
.hyp-top { display: flex; justify-content: space-between; align-items: center; }
.hyp-label { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.hyp-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f1ecf8; color: var(--plum); transition: background-color .3s ease, color .3s ease; }
.hyp-status.active { background: var(--plum); color: #fff; }
.hyp-text { font-weight: 700; font-size: 17px; }
.hyp-meter { height: 8px; border-radius: 99px; background: #eee7f6; overflow: hidden; }
.hyp-meter i { display: block; height: 100%; width: 50%; background: var(--plum); border-radius: 99px; transition: width .6s var(--spring), background-color .3s ease; }
.hyp-meter i.down { background: #c2410c; }
.hyp-conf { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.hyp-conf b { color: var(--ink); font-weight: 500; }
.evidence { position: relative; height: calc(5 * 46px); }
.evidence li {
  position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 0 14px; font-size: 14.5px; color: var(--ink-2);
  transform: translateY(calc(var(--pos, 0) * 46px)); transition: transform .7s var(--spring), box-shadow .3s ease, opacity .3s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evidence li time { font-family: var(--f-mono); font-size: 12px; color: var(--plum); min-width: 64px; }
.evidence li.hit { box-shadow: inset 3px 0 0 var(--plum); }
.evidence li.hit.neg { box-shadow: inset 3px 0 0 #c2410c; }
.evidence li.hit.neg time { color: #c2410c; }
.loom-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.mod-btc { grid-column: span 5; background: var(--amber-c); border-radius: 26px; }
.mod-btc .role span:first-child { color: var(--amber); }
.bip { display: grid; gap: 14px; }
.bip-label { font-size: 14px; color: var(--ink-2); }
.bip-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 20px; }
.bip-path span { color: rgba(138, 83, 0, .6); }
.bip-path button {
  font-family: var(--f-mono); font-size: 20px; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .7); cursor: pointer; transition: background-color .2s ease, border-radius .35s var(--spring), transform .35s var(--spring);
}
.bip-path button:hover { background: #fff; }
.bip-path button.on { background: var(--amber); color: #fff; border-radius: 22px; }
.bip-path button.bump { transform: scale(1.15); }
.bip-explain { background: #fff; border-radius: 16px; padding: 14px 16px; min-height: 96px; display: grid; gap: 4px; align-content: start; }
.bip-explain b { font-size: 15px; }
.bip-explain p { font-size: 14.5px; color: var(--ink-2); }
.bip-controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.stepper span { margin-right: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(138, 83, 0, .12); cursor: pointer; font-size: 17px; line-height: 1; transition: border-radius .3s var(--spring), background-color .2s; }
.stepper button:hover { background: rgba(138, 83, 0, .2); }
.stepper button:active { border-radius: 9px; }
.stepper b { min-width: 2ch; text-align: center; font-family: var(--f-mono); font-weight: 500; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 44px; height: 26px; border-radius: 99px; background: rgba(138, 83, 0, .18); position: relative; transition: background-color .25s ease; flex: none; }
.switch-thumb { position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); transition: transform .35s var(--spring), width .2s ease, height .2s ease, background-color .2s; }
.switch input:checked + .switch-track { background: var(--amber); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.mod-pi { grid-column: span 5; background: var(--night-2); color: #e9e7e3; border-radius: 14px; }
.mod-pi .mod-copy > p:not(.role):not(.stack):not(.links) { color: #c9c5be; }
.mod-pi .role, .mod-pi .role span:first-child { color: #9aa0a8; }
.pi-title { display: flex; align-items: center; gap: 12px; }
.pi-mark { width: 34px; height: auto; flex: none; }
.mod-pi a { color: #d6f5e2; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rack { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: var(--f-mono); font-size: 13px; }
.rack li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(255, 255, 255, .05); border-radius: 8px; color: #d6d3cd; }
.rack li i { width: 8px; height: 8px; border-radius: 50%; background: #3a3d44; flex: none; transition: background-color .25s ease, box-shadow .25s ease; }
.rack.boot li i { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .6); }
.rack li.more { color: #8f949b; justify-content: center; }
.pi-log { font-family: var(--f-mono); font-size: 12px; color: #8f949b; }
.pi-log span { color: #4ade80; margin: 0 6px 0 0; }
.pi-log span + span { margin-left: 14px; }

.mod-trade { grid-column: span 7; background: var(--leaf-c); border-radius: 36px; }
.mod-trade .role span:first-child { color: var(--leaf); }
.trade-chart { width: 100%; height: auto; overflow: visible; }
.trade-chart text { font-family: var(--f-mono); font-size: 9px; fill: #9a3412; }
.t-grid { stroke: rgba(30, 107, 61, .18); stroke-width: 1; fill: none; }
.t-price { fill: none; stroke: var(--leaf); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.t-ema { fill: none; stroke: #0f3d22; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .55; transition: stroke-dashoffset 1.8s var(--ease) .5s; }
.t-stop { stroke: #c2410c; stroke-width: 1.4; stroke-dasharray: 5 4; opacity: 0; transition: opacity .6s ease 1.8s; }
.t-entry { fill: #fff; stroke: var(--leaf); stroke-width: 2.4; opacity: 0; transition: opacity .4s ease 1.2s; }
.trade-chart text { opacity: 0; transition: opacity .6s ease 2s; }
.in .t-price, .in .t-ema { stroke-dashoffset: 0; }
.in .t-stop, .in .t-entry, .in.trade-chart text, .in .trade-chart text { opacity: 1; }

/* skills */
.sheet-skills { background: var(--night); color: #efede9; }
.sheet-skills .sheet-head p { color: #b3b0aa; }
.graph-shell { position: relative; border-radius: 32px; background: #1c1d23; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
#graph { width: 100%; height: 600px; touch-action: none; cursor: grab; }
#graph.dragging { cursor: grabbing; }
#graph.pointing { cursor: pointer; }
.graph-legend { position: absolute; left: 22px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #b3b0aa; pointer-events: none; }
.graph-legend span { display: inline-flex; align-items: center; gap: 7px; }
.graph-legend i { width: 10px; height: 10px; border-radius: 50%; }
.lg-work { background: #ff9a6b; } .lg-proj { background: #8ea4ff; } .lg-act { background: #7fcf9b; } .lg-skill { background: #8f8b85; }
.graph-readout { position: absolute; left: 22px; top: 18px; right: 22px; font-size: 15px; color: #d7d4ce; pointer-events: none; max-width: 70ch; }
.graph-readout b { color: #fff; }

/* education */
.sheet-edu { background: var(--cobalt-c); }
.schools { display: grid; gap: 0; }
.school { display: grid; grid-template-columns: 210px 1fr auto; gap: 28px; padding: 28px 0; border-top: 1px solid rgba(39, 71, 196, .2); align-items: start; }
.school:first-child { border-top: 0; }
.school.is-now { background: var(--white); border-radius: 28px; padding: 30px 32px; margin: 0 -32px 8px; border-top: 0; box-shadow: 0 1px 2px rgba(39, 71, 196, .1); }
.school.is-now + .school { border-top: 0; }
.school-when { font-family: var(--f-mono); font-size: 13px; color: var(--cobalt); display: grid; gap: 8px; justify-items: start; padding-top: 5px; }
.chip-now { font-family: var(--f-sans); font-size: 12px; font-weight: 700; color: #fff; background: var(--cobalt); padding: 3px 11px; border-radius: 999px; }
.school-main h3 { font-size: 22px; font-weight: 700; }
.school.is-now .school-main h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.school-deg { color: var(--ink); margin-top: 6px; }
.school-course { color: var(--ink-3); font-size: 15px; margin-top: 4px; }
.school-where { font-size: 14px; color: var(--ink-3); padding-top: 5px; white-space: nowrap; }

.minor-title { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 14px; }
.certs { margin-top: 72px; }
.certs ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.certs li { background: rgba(255, 255, 255, .7); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; }
.certs li b { font-weight: 700; }
.certs li span { font-size: 14px; color: var(--ink-3); }
.certs li.cert-pending { background: transparent; box-shadow: inset 0 0 0 2px rgba(39, 71, 196, .35); }
.certs li.cert-pending span { color: var(--cobalt); font-weight: 600; }

/* activities */
.sheet-act { background: var(--sun-c); }
.act-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.ctf { grid-row: span 2; background: var(--white); border-radius: 36px; padding: 36px; display: grid; gap: 24px; }
.ctf-copy { display: grid; gap: 12px; }
.ctf-copy h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.ctf-copy > p:not(.role) { color: var(--ink-2); }
.ctf .role span:first-child { color: var(--amber); }
.ctf-box { position: relative; background: var(--night-2); border-radius: 22px; padding: 20px; display: grid; gap: 14px; }
.ctf-label { font-family: var(--f-mono); font-size: 12px; color: #8f949b; }
.ctf-out { display: block; font-family: var(--f-mono); font-size: 15px; color: #e9e7e3; word-break: break-all; min-height: 48px; line-height: 1.5; transition: color .3s ease; }
.ctf-out.bad { animation: shake .35s ease; color: #fca5a5; }
.ctf-out.win { color: #4ade80; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ctf-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.ctf-ops .btn-tonal { background: rgba(255, 255, 255, .1); color: #f1efeb; }
.ctf-ops .btn-text { color: #b8b4ad; }
.ctf-steps { font-family: var(--f-mono); font-size: 12px; color: #8f949b; }
.ctf.won .ctf-box { box-shadow: 0 0 0 3px #4ade80; }

.dance { padding: 32px 34px; background: #ffe08a; border-radius: 16px 48px 16px 48px; display: grid; gap: 12px; }
.dance h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; line-height: 1.2; }
.dance p:not(.role) { color: var(--ink-2); }
.dance .role span:first-child { color: var(--amber); }
.langs { padding: 26px 30px; background: rgba(255, 255, 255, .55); border-radius: 26px; }
.langs ul { display: grid; gap: 8px; }
.langs li { display: flex; justify-content: space-between; gap: 12px; }
.langs li b { font-weight: 700; }
.langs li span { color: var(--ink-3); }

/* contact */
.sheet-contact { background: var(--leaf-c); padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 120px; }
.contact-grid h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.02em; margin-bottom: 18px; }
.contact-grid p { font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.contact-actions { display: grid; gap: 14px; justify-items: start; }
.sheet-contact .btn-filled { background: var(--leaf); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 24px; border-top: 1px solid rgba(30, 107, 61, .22); font-size: 14px; color: var(--ink-3); }

/* ============ RESPONSIVE ============ */

@media (max-width: 1000px) {
  .intro-grid, .slab-feature, .mod-mm, .contact-grid, .act-layout, .dellicker { grid-template-columns: 1fr; }
  .intro-grid { gap: 48px; }
  .slab-feature { gap: 32px; }
  .mod-loom, .mod-btc, .mod-pi, .mod-trade { grid-column: span 12; }
  .ctf { grid-row: auto; }
  .certs ul { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .topbar .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .topbar-inner { width: calc(100% - 32px); }
  .sheet { padding: 80px 0 104px; border-radius: 30px 30px 0 0; margin-top: -30px; }
  .sheet-intro { padding: calc(var(--topbar) + 56px) 0 112px; }
  .sheet-head { margin-bottom: 36px; }
  .sheet-head p, .lede, .slab-copy > p, .contact-grid p { font-size: 17px; }
  .brand { font-size: 15px; }
  .mod, .mod-mm, .ctf { padding: 26px 22px; }
  .mod-mm { gap: 28px; }
  .mm-kpis b { font-size: 16px; }
  .results > div { grid-template-columns: 1fr; gap: 4px; }
  .conv { grid-template-columns: 1fr 110px; }
  .dellicker { padding: 24px 20px; border-radius: 28px; }
  .post-card { min-height: 220px; padding: 24px; }
  .school { grid-template-columns: 1fr; gap: 8px; }
  .school.is-now { margin: 0 -16px 8px; padding: 24px 20px; }
  .school-where { display: none; }
  .rack { grid-template-columns: 1fr; }
  #graph { height: 480px; }
  .graph-legend { font-size: 12px; }
  .bip-path button { font-size: 17px; min-width: 38px; height: 40px; padding: 0 7px; }
  .hud-tr, .hud-br { display: none; }
  .hud-log { bottom: 72px; font-size: 10px; max-width: calc(100vw - 40px); }
  .contact-grid { padding-bottom: 80px; }
  .btn-lg { font-size: 16px; height: 54px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
