/* ==========================================================================
   Ruthvik Anne: portfolio
   Light base, ink accents, copper energy. Motion is progressive: every
   hidden/animated state is gated behind .js-ready, so without JavaScript
   the page is fully visible, and prefers-reduced-motion switches it all off.
   ========================================================================== */

@font-face { font-family: "Oxanium"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/oxanium-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oxanium"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/oxanium-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Oxanium"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/oxanium-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #F2F2F2;
  --bg-2: #EAE4D5;
  --ink: #0B0B0C;
  --ink-2: #1B1B1E;
  --soft: #454545;
  --line: rgba(11, 11, 12, 0.14);
  --copper: #C9876A;
  --copper-deep: #9A4F2B;
  --gold: #E8C97A;
  --sage: #AAB396;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --font-display: "Oxanium", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --card: #ECEAE3;
  --card-hover: #F0EEE8;
  --card-line: rgba(11, 11, 12, 0.11);
  --shadow: 0 10px 28px -12px rgba(11, 11, 12, 0.14);
  --shadow-lift: 0 18px 36px -20px rgba(11, 11, 12, 0.3);
  --deep: #0B0B0C;            /* surfaces that stay dark in both themes */
  --on-ink: #fff;             /* text on an --ink fill (flips with theme) */
  --on-accent: #0B0B0C;       /* text on copper/gold (never flips) */
  --glass: rgba(242, 242, 242, 0.78);
  --glass-82: rgba(242, 242, 242, 0.82);
  --glass-70: rgba(242, 242, 242, 0.7);
  --glass-90: rgba(242, 242, 242, 0.9);
  --glass-96: rgba(242, 242, 242, 0.96);
  --tag-bg: rgba(11, 11, 12, 0.045);
  --card-line-hover: rgba(11, 11, 12, 0.34);
  --backdrop: rgba(11, 11, 12, 0.5);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121214;
  --bg-2: #1A1A1D;
  --ink: #F2F2F2;
  --ink-2: #DADADD;
  --soft: #A9A9AF;
  --line: rgba(255, 255, 255, 0.16);
  --copper: #D79A7D;
  --copper-deep: #D79A7D;
  --card: #18181B;
  --card-hover: #1E1E22;
  --card-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 18px 36px -20px rgba(0, 0, 0, 0.8);
  --deep: #070708;
  --on-ink: #0B0B0C;
  --glass: rgba(18, 18, 20, 0.78);
  --glass-82: rgba(18, 18, 20, 0.82);
  --glass-70: rgba(18, 18, 20, 0.7);
  --glass-90: rgba(18, 18, 20, 0.9);
  --glass-96: rgba(18, 18, 20, 0.96);
  --tag-bg: rgba(255, 255, 255, 0.06);
  --card-line-hover: rgba(255, 255, 255, 0.3);
  --backdrop: rgba(0, 0, 0, 0.66);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--copper-deep);
  outline-offset: 3px;
  border-radius: 10px;
}
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--bg); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: 10px;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- ambient layers ---------- */
#bg-fixed { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#bg-fixed canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 120;
  background: linear-gradient(90deg, var(--copper-deep), var(--copper), var(--gold));
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none;
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; z-index: 0;
  margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(201, 135, 106, 0.2), rgba(232, 201, 122, 0.08) 45%, transparent 70%);
  transition: opacity 0.4s;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ---------- preloader curtain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  color: #fff; pointer-events: all;
  animation: loaderFailsafe 0.01s linear 5s forwards;
}
.loader .lp {
  position: absolute; left: 0; width: 100%; height: 50.2%; background: var(--deep);
  transition: transform 1s var(--ease-io);
}
.loader .lp.top { top: 0; } .loader .lp.bot { bottom: 0; }
.loader-logo { display: block; width: clamp(64px, 10vw, 104px); height: auto; margin: 0 auto 26px; clip-path: inset(0 100% 0 0); animation: logoWipe 0.8s var(--ease-io) 0.1s forwards; }
@keyframes logoWipe { to { clip-path: inset(0 0 0 0); } }
.loader-core { position: relative; text-align: center; transition: opacity 0.35s, translate 0.5s var(--ease); }
.loader-name {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em;
  font-size: clamp(2.2rem, 8vw, 6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
  background: linear-gradient(90deg, #fff var(--pp, 0%), transparent var(--pp, 0%));
  -webkit-background-clip: text; background-clip: text;
}
.loader-meta {
  display: flex; justify-content: space-between; gap: 24px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.loader-bar { height: 1px; margin-top: 12px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--copper), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.loader.done .loader-core { opacity: 0; translate: 0 -12px; }
.loader.done .lp.top { transform: translateY(-101%); }
.loader.done .lp.bot { transform: translateY(101%); }
.loader.gone { display: none; }
@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }

/* ---------- layout ---------- */
.page { position: relative; z-index: 1; overflow-x: clip; }
.wrap { width: min(1240px, calc(100vw - 48px)); margin: 0 auto; }

/* ---------- dock nav ---------- */
.dock {
  position: fixed; top: 16px; left: 50%; z-index: 110; translate: -50% 0;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: var(--glass); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  max-width: calc(100vw - 20px); overflow-x: auto; scrollbar-width: none;
}
.dock::-webkit-scrollbar { display: none; }
.dock a {
  position: relative; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--soft); transition: color 0.25s, background-color 0.25s;
}
.dock a:hover { color: var(--ink); }
.dock a.active { color: var(--on-ink); background: var(--ink); }
.dock .home { padding: 4px 10px 4px 4px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.dock .home { flex: none; }
.dock .home img { width: 30px; height: 30px; flex: none; object-fit: contain; border-radius: 0; }
.dock .home { padding: 4px 8px; }
.dock .home .logo-dark { display: none; }
html[data-theme="dark"] .dock .home .logo-light { display: none; }
html[data-theme="dark"] .dock .home .logo-dark { display: block; }
.dock { transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease), backdrop-filter 0.5s; }
/* header morph (technique from trajectory.ai): transparent at top, pill once scrolled */
.js-ready .dock.at-top { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 10px 6px; }
.js-ready .dock { translate: -50% -90px; opacity: 0;
  transition: translate 0.9s var(--ease) 0.2s, opacity 0.6s 0.2s, background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease), backdrop-filter 0.5s; }
.js-ready.hero-in .dock { translate: -50% 0; opacity: 1; }

/* ---------- page-change transitions (View Transitions API, same keyframes trajectory.ai ships) ---------- */
.dock { view-transition-name: site-header; }
.progress { view-transition-name: scroll-progress; }
::view-transition { background-color: var(--deep); }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; animation-duration: 0.9s; animation-fill-mode: both; }
::view-transition-old(root) { animation-name: page-out; animation-timing-function: cubic-bezier(.58, 0, .38, 1); }
::view-transition-new(root) { animation-name: page-in; animation-timing-function: cubic-bezier(.76, 0, .2, 1); }
@keyframes page-out { to { opacity: 0; scale: 0.8; } }
@keyframes page-in { 0% { translate: 0 100%; } }
::view-transition-group(site-header), ::view-transition-group(scroll-progress),
::view-transition-new(site-header), ::view-transition-new(scroll-progress) { animation: none; }
::view-transition-old(site-header), ::view-transition-old(scroll-progress) { display: none; }

.foot-left { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.foot-mark { height: 22px; width: auto; opacity: 0.9; }
/* ---------- adaptive tiers (set by the governor in java.js; never removes motion, only makes it cheaper) ---------- */
html[data-perf="mid"] .js-ready [data-r], html[data-perf="low"] .js-ready [data-r] { filter: none; }
html[data-perf="mid"] .orb { filter: blur(34px); }
html[data-perf="low"] .orb { filter: none; }
html[data-perf="low"] .dock { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--glass-96); }
html[data-perf="low"] .hero-water, html[data-perf="low"] .cursor-glow { display: none; }
html[data-perf="low"] .cue-label, html[data-perf="low"] .cue-chev { animation: none; }
html[data-perf="low"] .card:hover { box-shadow: none; }

/* hero WebGL field */
.hero-water { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease 0.4s; }
.hero-water.on { opacity: 0.5; }
html[data-theme="dark"] .hero-water.on { opacity: 0.8; }
.hero > .wrap { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 70px; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); opacity: 0.4;
  will-change: transform;
}
.orb.a { width: 38vw; height: 38vw; max-width: 560px; max-height: 560px; right: -8vw; top: 6vh; background: radial-gradient(circle, rgba(232, 201, 122, 0.7), transparent 68%); animation: float1 14s ease-in-out infinite alternate; }
.orb.b { width: 30vw; height: 30vw; max-width: 440px; max-height: 440px; left: -10vw; bottom: 2vh; background: radial-gradient(circle, rgba(201, 135, 106, 0.55), transparent 68%); animation: float2 18s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate3d(-70px, 50px, 0) scale(1.12); } }
@keyframes float2 { to { transform: translate3d(80px, -40px, 0) scale(1.1); } }

.eyebrow {
  margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft);
}
.brand-lockup { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-mark { width: auto; height: 40px; object-fit: contain; display: block; }
.brand-lockup .eyebrow { margin: 0; }

h1.name {
  margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.6rem, 13.4vw, 12rem); line-height: 0.88; letter-spacing: -0.045em;
}
h1.name .row { display: block; }
h1.name .ch { display: inline-block; }
.js-ready h1.name .cm { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.05em 0.1em; margin: -0.06em -0.05em -0.1em; }
.js-ready h1.name .ch { translate: 0 112%; rotate: 8deg; transform-origin: 0 100%; transition: translate 1.1s var(--ease) calc(var(--i) * 55ms + 150ms), rotate 1.1s var(--ease) calc(var(--i) * 55ms + 150ms); }
.js-ready.hero-in h1.name .ch { translate: 0 0; rotate: 0deg; }
h1.name .row.outline { -webkit-text-stroke: 2px var(--ink); color: transparent; }
h1.name .ch { transition-property: translate, rotate, color; }
h1.name .ch:hover { color: var(--copper-deep); }
h1.name .row.outline .ch:hover { color: var(--copper); }

.role {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; margin: 28px 0 0;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2.6vw, 2rem); letter-spacing: -0.02em;
}
.role .lead { color: var(--soft); }
.role .swap { color: var(--copper-deep); font-weight: 700; min-width: 2ch; }
.role .caret { display: inline-block; width: 0.1em; height: 1em; margin-left: 4px; background: var(--copper-deep); translate: 0 0.14em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lede { max-width: 60ch; margin: 18px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--soft); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.05em; font-size: 0.92rem;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--copper);
  translate: -101% 0; transition: translate 0.5s var(--ease);
}
[data-magnet] { transition: translate 0.35s var(--ease), transform 0.25s var(--ease), background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.btn:hover { color: var(--on-accent); }
.btn:hover::before { translate: 0 0; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--on-accent); }
.btn svg { width: 16px; height: 16px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px;
  border-top: 1px solid var(--line);
}
.stat { padding: 20px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--soft); font-size: 0.9rem; }
.stat small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--soft); opacity: 0.8; }
/* scroll hint: the whole cue bobs gently, the wheel dot scrolls inside the mouse, the chevron trails */
.scroll-cue {
  position: fixed; right: clamp(14px, 2.4vw, 36px); bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--soft); padding: 10px 16px 6px;
  background: var(--glass-82); border-radius: 22px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  transition: opacity 0.5s var(--ease), color 0.25s;
}
.scroll-cue:hover { color: var(--ink); }
.cue-label, .cue-mouse, .cue-chev { animation: cueBob 2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.cue-mouse { animation-delay: 0.08s; } .cue-chev { animation-delay: 0.16s; }
.cue-mouse { position: relative; width: 22px; height: 34px; border: 1.5px solid currentColor; border-radius: 12px; }
.cue-mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--copper-deep); animation: cueWheel 2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.cue-chev { margin-top: -2px; opacity: 0.7; }
.scroll-cue.gone, .scroll-cue.dodge { opacity: 0 !important; pointer-events: none; }
.js-ready .scroll-cue { opacity: 0; }
.js-ready.hero-in .scroll-cue:not(.gone) { opacity: 1; transition-delay: 1.4s; }
@keyframes cueBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 7px; } }
@keyframes cueWheel { 0% { opacity: 0; translate: 0 -2px; } 25% { opacity: 1; } 70% { opacity: 1; translate: 0 8px; } 100% { opacity: 0; translate: 0 10px; } }

/* ---------- marquee band ---------- */
.band { position: relative; z-index: 1; background: var(--deep); color: #fff; padding: 22px 0; overflow: hidden; transform: rotate(-1.2deg); margin: 30px -2vw; }
.band .track { display: flex; width: max-content; gap: 0; animation: slide 46s linear infinite; }
.band .track.rev { animation-direction: reverse; animation-duration: 58s; margin-top: 8px; }
.band:hover .track { animation-play-state: paused; }
.band span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: 0.02em;
}
.band span::after { content: "\2726"; color: var(--copper); font-size: 0.6em; }
.band .track.rev span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: end; margin-bottom: 44px; }
.sec-no { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: 0.85; }
.sec-head h2 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1; }
.sec-note { grid-column: 2; margin: 0; max-width: 62ch; color: var(--soft); }

.wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js-ready .wm .wi { display: inline-block; translate: 0 115%; transition: translate 0.95s var(--ease) calc(var(--i) * 70ms); }
.js-ready .in .wm .wi, .js-ready .wm.in .wi { translate: 0 0; }

/* ---------- reveal system ---------- */
.js-ready [data-r] { opacity: 0; filter: blur(8px); translate: 0 40px; transition: opacity 0.9s var(--ease) var(--d, 0ms), translate 0.9s var(--ease) var(--d, 0ms), filter 0.9s var(--ease) var(--d, 0ms); }
.js-ready [data-r="left"] { translate: -56px 0; }
.js-ready [data-r="right"] { translate: 56px 0; }
.js-ready [data-r="scale"] { translate: 0 0; scale: 0.9; transition-property: opacity, scale, filter; }
.js-ready [data-r].in { opacity: 1; filter: none; translate: 0 0; scale: 1; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.filters button:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.filters button i { font-style: normal; margin-left: 6px; opacity: 0.55; font-family: var(--font-mono); font-size: 0.75rem; }

/* ---------- cards: matte paper, hairline edge, true radius, no gloss ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; grid-auto-flow: dense; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; min-width: 0;
  border-radius: 20px; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--card-line); box-shadow: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, background-color 0.3s, opacity 0.35s, scale 0.35s var(--ease), filter 0.9s var(--ease), translate 0.9s var(--ease);
}
.card.wide { grid-column: span 2; }
/* reveal timing first, then hand the transition back to hover/filter behaviour once settled */
.js-ready .card[data-r] { transition: opacity 0.9s var(--ease) var(--d, 0ms), translate 0.9s var(--ease) var(--d, 0ms), filter 0.9s var(--ease) var(--d, 0ms), transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, background-color 0.3s, scale 0.35s var(--ease); }
.js-ready .card[data-r].settled { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s, background-color 0.3s, opacity 0.35s, scale 0.35s var(--ease); }
/* one crisp ink rule on the top edge; it lengthens on hover */
.card::before {
  content: ""; position: absolute; left: 26px; top: 0; width: 28px; height: 2px; background: var(--ink);
  border-radius: 0 0 2px 2px; transition: width 0.55s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--card-line-hover); background: var(--card-hover); box-shadow: var(--shadow-lift); }
.card:hover::before { width: 72px; }
.card > * { position: relative; }
.card.is-out { opacity: 0; scale: 0.94; pointer-events: none; }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; }
.card-top h3 { min-width: 0; flex: 1 1 auto; }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: break-word; hyphens: manual; }
.card.wide h3 { font-size: 1.7rem; }
.vis { display: flex; align-items: center; gap: 7px; margin: -4px 0 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--soft); }
.vis svg { width: 13px; height: 13px; flex: none; }
.card p.d { margin: 0; color: var(--soft); font-size: 0.97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--card-line); font-size: 0.78rem; background: var(--tag-bg); }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.card-link:hover { background: var(--ink); color: var(--on-ink); transform: translateX(3px); }
.card-link svg { width: 13px; height: 13px; transition: translate 0.25s var(--ease); }
.card-link:hover svg { translate: 3px -3px; }
.card-link.muted { border-style: dashed; border-color: var(--line); color: var(--soft); pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 26px; padding: 0 11px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--glass-70); white-space: normal; max-width: 100%; line-height: 1.25; padding-top: 3px; padding-bottom: 3px;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); }
.st-active i { background: var(--copper-deep); animation: ping 1.8s ease-out infinite; }
.st-public i { background: var(--ink); }
.st-research i { background: #6C7757; }
.st-design i { background: #B5902F; }
.st-built i { background: #3F6B4A; }
.st-prototype i { background: #4B5F94; }
.st-archived i { background: #8a8a8a; }
.st-archived { opacity: 0.8; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(154, 79, 43, 0.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(154, 79, 43, 0); } }

/* ---------- organisations ---------- */
.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.org { position: relative; padding: 34px; border-radius: 26px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; }
.org.dark { background: var(--deep); color: #fff; border-color: var(--deep); }
.org.dark .soft, .org.dark .org-role { color: rgba(255, 255, 255, 0.68); }
.org h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.org-role { margin: 10px 0 0; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.org p.soft { color: var(--soft); margin: 18px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.76rem;
  border: 1px solid var(--line); transition: transform 0.3s var(--ease), background-color 0.3s;
}
.org.dark .chips span { border-color: rgba(255, 255, 255, 0.22); }
.chips span:hover { transform: translateY(-3px) rotate(-1.5deg); background: rgba(201, 135, 106, 0.25); }
.chips svg { width: 12px; height: 12px; opacity: 0.8; }
.org-links { margin-top: 24px; }
.stamp {
  position: absolute; right: 26px; top: 26px; padding: 6px 16px; border: 2px solid var(--copper-deep); color: var(--copper-deep); border-radius: 8px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.9rem; rotate: -9deg; opacity: 0.9;
}
.js-ready .stamp { scale: 2.4; opacity: 0; transition: scale 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.5s, opacity 0.3s 0.5s; }
.js-ready .in .stamp { scale: 1; opacity: 0.9; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; padding: 10px 0; --tl: 0; --amp: 30px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; translate: -50% 0; background: var(--line); }
.timeline::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; translate: -50% 0; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--copper), var(--copper-deep));
  transform-origin: 50% 0; transform: scaleY(var(--tl)); box-shadow: 0 0 18px rgba(201, 135, 106, 0.7);
}
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 22px 0; }
.tl-item .box { grid-column: 1; text-align: right; padding-right: calc(56px + var(--amp)); }
.tl-item:nth-child(even) .box { grid-column: 2; text-align: left; padding: 0 0 0 calc(56px + var(--amp)); }
.tl-item .dot {
  position: absolute; left: 50%; top: 32px; width: 18px; height: 18px; translate: -50% 0; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); transition: background-color 0.4s, border-color 0.4s, scale 0.5s var(--ease), box-shadow 0.5s;
}
.tl-item.on .dot { background: var(--copper); border-color: var(--copper-deep); scale: 1.25; box-shadow: 0 0 0 7px rgba(201, 135, 106, 0.25); }
.tl-item time { display: block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-deep); }
.tl-item h3 { margin: 6px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; line-height: 1.15; }
.tl-item p { margin: 0; color: var(--soft); max-width: 46ch; display: inline-block; }

/* ---------- terminal ---------- */
.term { border-radius: 18px; overflow: hidden; background: var(--deep); color: #E9E6DC; box-shadow: var(--shadow-lift); border: 1px solid #000; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #17171A; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A3A40; }
.term-bar i:nth-child(1) { background: #C2553F; } .term-bar i:nth-child(2) { background: #D3A63B; } .term-bar i:nth-child(3) { background: #5A8F5A; }
.term-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.06em; }
.term-body { padding: 22px 24px 26px; font-family: var(--font-mono); font-size: clamp(0.74rem, 1.5vw, 0.92rem); line-height: 1.9; overflow-x: auto; }
.t-line { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-line .p { color: var(--copper); }
.t-line .k { color: var(--gold); }
.t-line .c { color: rgba(255, 255, 255, 0.55); }
.t-line + .t-line.cmd { margin-top: 14px; }
.js-ready .t-line:not(.shown) { opacity: 0; translate: -10px 0; }
.t-line { transition: opacity 0.4s, translate 0.4s var(--ease); }
.t-caret { display: inline-block; width: 0.6em; height: 1.05em; background: var(--gold); translate: 0 0.2em; animation: caret 1s steps(1) infinite; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.skill-group { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(234, 228, 213, 0.55); }
.skill-group h3 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 0.86rem;
  transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.skill-tags span:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); transform: translateY(-3px) scale(1.04); }
.js-ready .skill-tags span { opacity: 0; scale: 0.7; transition: opacity 0.5s var(--ease) calc(var(--i) * 45ms), scale 0.6s cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--i) * 45ms), transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s; }
.js-ready .in .skill-tags span, .js-ready .skill-tags.in span { opacity: 1; scale: 1; }

/* ---------- education ---------- */
.edu { display: grid; gap: 0; }
.edu li { list-style: none; display: grid; grid-template-columns: 170px 1fr; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding 0.35s var(--ease), background-color 0.35s; }
.edu { padding: 0; margin: 0; }
.edu li:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(232, 201, 122, 0.22), transparent); }
.edu time { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.1em; color: var(--copper-deep); padding-top: 4px; }
.edu b { display: block; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; }
.edu span { color: var(--soft); }

/* ---------- contact ---------- */
.contact { position: relative; margin-top: 120px; padding: 120px 0 40px; background: var(--deep); color: #fff; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 135, 106, 0.4), transparent 62%); filter: blur(30px); animation: float1 16s ease-in-out infinite alternate; pointer-events: none;
}
.contact .eyebrow { color: rgba(255, 255, 255, 0.6); }
.contact h2 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; font-size: clamp(3rem, 11vw, 9.5rem); }
.contact h2 em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--gold); }
.contact .lede { color: rgba(255, 255, 255, 0.72); }
.contact .btn { background: #fff; color: #0B0B0C; border-color: #fff; }
.contact .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.contact .btn:hover, .contact .btn.ghost:hover { color: #0B0B0C; border-color: transparent; }
.footer-text { margin-top: 90px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255, 255, 255, 0.55); font-size: 0.86rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .orgs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; }
  .scroll-cue { bottom: 10px; right: 10px; }
  .cue-label { display: none; }
  .timeline { --amp: 7px; }
  .timeline::before, .timeline::after { left: 14px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 44px; }
  .tl-item .box, .tl-item:nth-child(even) .box { grid-column: 1; text-align: left; padding: 0; }
  .tl-item { padding-left: 52px; }
  .tl-item .dot { left: 14px; }
  .edu li { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100vw - 32px); }
  .grid { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card.wide h3 { font-size: 1.4rem; }
  .section { padding-top: 80px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-note { grid-column: 1; }
  .hero { padding-top: 110px; }
  .dock a { padding: 8px 9px; font-size: 0.74rem; }
  .js-ready .dock.at-top { background: var(--glass-90); border-color: var(--line); box-shadow: var(--shadow); padding: 6px; }
  .dock .home span { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .org { padding: 24px; }
  .stamp { position: static; display: inline-block; margin-bottom: 16px; }
}

/* ---------- reduced motion: everything visible, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader, .cursor-glow { display: none !important; }
  .cue-label, .cue-mouse, .cue-chev, .cue-mouse i { animation: none !important; }
  .js-ready .scroll-cue:not(.gone) { opacity: 1 !important; transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .orb, .band .track, .st-active i, .role .caret, .contact::before, .loader-logo { animation: none !important; }
  .band { transform: none; }
  .band .track { flex-wrap: wrap; width: auto; }
  .band .track [aria-hidden="true"] { display: none; }
  .js-ready [data-r], .js-ready .wm .wi, .js-ready h1.name .ch, .js-ready .skill-tags span, .js-ready .stamp, .js-ready .dock {
    opacity: 1 !important; translate: 0 0 !important; scale: 1 !important; rotate: 0deg !important; filter: none !important; transition: none !important;
  }
  .js-ready .t-line:not(.shown) { opacity: 1; translate: 0 0; }
  .card, .card:hover { transform: none !important; }
  .loader-logo { clip-path: none; }
}

/* ---------- theme toggle, brand marks in dark ---------- */
.theme-toggle {
  flex: none; width: 36px; height: 36px; margin-left: 2px; display: inline-grid; place-items: center; padding: 0;
  border-radius: 50%; border: 0; background: transparent; color: var(--soft); cursor: pointer;
  transition: color 0.25s, background-color 0.25s, transform 0.35s var(--ease);
}
.theme-toggle:hover { color: var(--ink); background: var(--tag-bg); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; transition: opacity 0.3s, rotate 0.5s var(--ease), scale 0.4s var(--ease); }
.theme-toggle .i-moon { opacity: 0; rotate: -70deg; scale: 0.6; }
html[data-theme="dark"] .theme-toggle .i-sun { opacity: 0; rotate: 70deg; scale: 0.6; }
html[data-theme="dark"] .theme-toggle .i-moon { opacity: 1; rotate: 0deg; scale: 1; }
html[data-theme="dark"] .brand-mark { filter: invert(1); }
html[data-theme="dark"] .cursor-glow { opacity: 0.8; }
/* circular reveal from the toggle: root cross-fade is replaced by an expanding clip-path (set from JS) */
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-vt::view-transition-old(root) { z-index: 1; }
html.theme-vt::view-transition-new(root) { z-index: 2; }
html.theme-vt::view-transition { background-color: transparent; }

/* ---------- card detail dialog ---------- */
.card-more {
  align-self: flex-start; display: none; align-items: center; gap: 8px; min-height: 36px; padding: 0; border: 0;
  background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.05em; cursor: pointer; border-bottom: 1px solid var(--line);
}
.js-ready .card-more { display: inline-flex; }
.card-more svg { width: 14px; height: 14px; transition: translate 0.25s var(--ease); }
.card-more:hover svg { translate: 4px 0; }
.js-ready .card[data-more] { cursor: pointer; }
.detail {
  width: min(680px, calc(100vw - 28px)); max-height: min(86svh, 760px); padding: 0; border: 0; background: transparent; color: var(--ink);
  overflow: visible; margin: auto;
}
.detail::backdrop { background: var(--backdrop); animation: detailFade 0.35s var(--ease) both; }
.detail[open] .detail-panel { animation: detailIn 0.45s var(--ease) both; }
.detail-panel {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; max-height: inherit; overflow: auto;
  border-radius: 20px; background: var(--card); border: 1px solid var(--card-line-hover); box-shadow: var(--shadow-lift);
  overscroll-behavior: contain;
}
.detail-panel h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: break-word; }
.detail-body { margin: 0; font-size: 1.04rem; line-height: 1.7; color: var(--ink); max-width: 62ch; }
.detail-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.detail-x:hover { background: var(--ink); color: var(--on-ink); transform: rotate(90deg); }
.detail-x svg { width: 16px; height: 16px; }
@keyframes detailFade { from { opacity: 0; } }
@keyframes detailIn { from { opacity: 0; translate: 0 14px; scale: 0.985; } }
html.vt-card::view-transition-old(root), html.vt-card::view-transition-new(root) { animation: none; }
html.vt-card::view-transition { background-color: transparent; }
::view-transition-group(detail) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); z-index: 5; }
::view-transition-old(detail), ::view-transition-new(detail) { height: 100%; width: 100%; object-fit: fill; }
html.dialog-open { overflow: hidden; }

/* ---------- scroll-driven animations (native), JS fallback via --hy ---------- */
@keyframes sd-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sd-hero-copy { to { translate: 0 -70px; opacity: 0.15; } }
@keyframes sd-hero-field { to { translate: 0 90px; } }
@keyframes sd-orb-a { to { translate: -40px 120px; } }
@keyframes sd-orb-b { to { translate: 50px -90px; } }
@keyframes sd-secno { from { opacity: 0; scale: 0.82; translate: -24px 0; } to { opacity: 0.85; scale: 1; translate: 0 0; } }
@supports (animation-timeline: scroll()) {
  .progress { animation: sd-progress linear both; animation-timeline: scroll(root block); }
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-perf="low"]) .hero > .wrap { animation: sd-hero-copy linear both; animation-timeline: scroll(root block); animation-range: 0 85svh; }
    html:not([data-perf="low"]) .orb.a { translate: 0 0; animation: float1 14s ease-in-out infinite alternate, sd-orb-a linear both; animation-timeline: auto, scroll(root block); animation-range: normal, 0 100svh; }
    html:not([data-perf="low"]) .orb.b { translate: 0 0; animation: float2 18s ease-in-out infinite alternate, sd-orb-b linear both; animation-timeline: auto, scroll(root block); animation-range: normal, 0 100svh; }
    html:not([data-perf="low"]) .sec-no { animation: sd-secno linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  }
}
@supports not (animation-timeline: scroll()) {
  .hero > .wrap { translate: 0 calc(var(--hy, 0) * -70px); opacity: calc(1 - var(--hy, 0) * 0.85); }
  .orb.a { translate: calc(var(--hy, 0) * -40px) calc(var(--hy, 0) * 120px); }
  .orb.b { translate: calc(var(--hy, 0) * 50px) calc(var(--hy, 0) * -90px); }
  html[data-perf="low"] .hero > .wrap, html[data-perf="low"] .orb { translate: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  @supports not (animation-timeline: scroll()) { .hero > .wrap { translate: none; opacity: 1; } .orb.a, .orb.b { translate: none; } }
}
html.vt-card .detail[open] .detail-panel, html.vt-card .detail::backdrop { animation: none; }
.detail-panel .card-top { padding-right: 52px; }
.detail-panel h3 { padding-right: 0; }
#detail-links .muted { display: none; }
#detail-links:empty, #detail-links:not(:has(*:not(.muted))) { display: none; }

/* S-curve spine: an SVG path built from the dot positions; the fill follows scroll via --tl */
.timeline.has-curve::before, .timeline.has-curve::after { display: none; }
.tl-curve { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tl-curve path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tl-curve .base { stroke: var(--line); stroke-width: 2; }
.tl-curve .fill { stroke: url(#tlGrad); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--tl)); filter: drop-shadow(0 0 7px rgba(201, 135, 106, 0.65)); }
html[data-perf="low"] .tl-curve .fill { filter: none; }
.timeline.has-curve .tl-item .dot { left: var(--dx, 50%); }

/* ripple rings on theme change */
.theme-ripple { position: fixed; z-index: 130; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(circle closest-side, transparent 88%, rgba(215, 154, 125, 0.75) 96%, transparent 100%); }

/* ---------- at a glance (plain facts) ---------- */
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }
.facts > div { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--ink); line-height: 1.65; overflow-wrap: break-word; }
.facts a { border-bottom: 1px solid var(--line); transition: border-color 0.25s, color 0.25s; }
.facts a:hover { border-color: var(--copper); color: var(--copper-deep); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.nw { white-space: nowrap; }
