/* ============================================================
   Ryan Lin — personal site
   Aesthetic: warm-premium dark (espresso + copper), editorial.
   Bespoke CSS, no framework. Dark default + light option.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --bg:        #0c0a08;
  --bg-1:      #141009;
  --bg-2:      #1c170f;
  --bg-3:      #271f15;
  --line:      rgba(236, 224, 202, 0.10);
  --line-2:    rgba(236, 224, 202, 0.18);
  --text:      #f2ead7;
  --text-dim:  #b6aa92;
  --text-faint:#857a66;
  --accent:    #cf924f;
  --accent-bright: #e7ad6a;
  --accent-deep:   #a96c30;
  --accent-soft:   rgba(207, 146, 79, 0.14);
  --on-accent: #1a1206;

  --shadow-1: 0 1px 2px rgba(0,0,0,.5), 0 10px 28px rgba(0,0,0,.40);
  --shadow-2: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.55),
              inset 0 1px 0 rgba(255,238,214,.045);
  --shadow-accent: 0 14px 40px -10px rgba(207,146,79,.45);

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
  --ease-out-quart: cubic-bezier(.25,1,.5,1);
  --ease-snap: cubic-bezier(.65,0,.35,1);
  --dur-fast: 240ms;
  --dur-base: 480ms;
  --dur-slow: 800ms;
}

html[data-theme="light"] {
  --bg:        #f5efe4;
  --bg-1:      #faf5ea;
  --bg-2:      #ffffff;
  --bg-3:      #f0e8d8;
  --line:      rgba(45, 32, 18, 0.13);
  --line-2:    rgba(45, 32, 18, 0.22);
  --text:      #211a11;
  --text-dim:  #5d5446;
  --text-faint:#8a7f6b;
  --accent:    #a4602c;
  --accent-bright: #bd7838;
  --accent-deep:   #844c1f;
  --accent-soft:   rgba(164, 96, 44, 0.12);
  --on-accent: #fdf8ef;

  --shadow-1: 0 1px 2px rgba(70,48,22,.08), 0 10px 26px rgba(70,48,22,.10);
  --shadow-2: 0 2px 8px rgba(70,48,22,.10), 0 22px 50px rgba(70,48,22,.14),
              inset 0 1px 0 rgba(255,255,255,.6);
  --shadow-accent: 0 14px 36px -12px rgba(164,96,44,.38);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- atmosphere: glow + grain ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -6%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 700px at -8% 35%, var(--accent-soft), transparent 55%),
    radial-gradient(1000px 700px at 50% 118%, rgba(207,146,79,.07), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
html[data-theme="light"] body::after { opacity: .06; mix-blend-mode: multiply; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px){ .wrap { padding: 0 20px; } }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
main { display: block; }

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.8rem, 7vw, 5.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.02em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-dim); line-height: 1.65; max-width: 56ch; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 60ch; }
em.ser { font-style: italic; color: var(--accent-bright); }

/* ---------- buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 600; font-size: 14.5px; letter-spacing: .01em;
  border: 1px solid transparent; position: relative; isolation: isolate;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.btn:active { transform: translateY(1px) scale(.985); }

.btn--primary { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -10px rgba(207,146,79,.6); }

.btn--ghost { border-color: var(--line-2); color: var(--text); background: color-mix(in oklab, var(--bg-2) 60%, transparent); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); box-shadow: var(--shadow-1); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--accent-bright); position: relative; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .35s var(--ease-spring); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow::after { content:""; position:absolute; left:0; bottom:-3px; height:1px; width:0; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: calc(100% - 23px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.05rem; letter-spacing: -.01em; }
.brand .mark {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-2); border-radius: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent-bright);
  background: linear-gradient(155deg, color-mix(in oklab, var(--accent) 16%, transparent), transparent);
  transition: border-color .3s var(--ease), transform .4s var(--ease-spring);
}
.brand:hover .mark { border-color: var(--accent); transform: rotate(-4deg); }
.brand .who { font-weight: 500; }
.brand .who span { color: var(--text-faint); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--text-dim);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: color-mix(in oklab, var(--bg-2) 70%, transparent); }
.nav-links a.is-active { color: var(--accent-bright); }
.nav-links a.is-active::after { content:""; position:absolute; left:14px; right:14px; bottom:3px; height:1.5px; background: currentColor; border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .4s var(--ease-spring), background-color .25s var(--ease);
}
.theme-toggle:hover { color: var(--accent-bright); border-color: var(--accent); transform: rotate(18deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg {
  position: absolute;
  top: 50%; left: 50%;
  width: 17px; height: 17px;
  transition: opacity .45s var(--ease), transform .55s var(--ease-spring);
  will-change: transform, opacity;
}
.theme-toggle .i-moon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}
.theme-toggle .i-sun {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-110deg) scale(.3);
}
html[data-theme="light"] .theme-toggle .i-moon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(110deg) scale(.3);
}
html[data-theme="light"] .theme-toggle .i-sun {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle svg { transition: opacity .15s linear; }
}

.nav-cta { display: inline-flex; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); }
.nav-toggle span { display:block; width:18px; height:1.6px; background: var(--text); margin: 3.5px auto; transition: transform .3s var(--ease), opacity .2s var(--ease); }

/* mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 99; background: var(--bg); display: none; flex-direction: column; padding: 90px 28px 40px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.8rem); padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); transition: color .25s var(--ease), padding-left .3s var(--ease); }
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--accent-bright); padding-left: 12px; }
.mobile-nav .m-foot { margin-top: auto; display: flex; gap: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.mobile-nav .m-foot a { font-family: var(--mono); font-size: 12px; padding: 0; border: 0; }
body.nav-open { overflow: hidden; }

@media (max-width: 860px){
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-toggle span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2){ opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(68px, 9vw, 116px);
  padding-bottom: clamp(64px, 8vw, 112px);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .62;
  mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
}
html[data-theme="light"] .hero-canvas { opacity: .55; }

.hero-grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.hero-name {
  margin: 22px 0 20px;
  perspective: 900px;
  perspective-origin: 50% 45%;
}
.hero-name .kinetic {
  display: inline-block;
  transform-style: preserve-3d;
}
.hero-name .kinetic .ch {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 60%;
  backface-visibility: hidden;
}
.hero-name .kinetic .ch.sp { width: .22em; }
.hero-name .ln2 { display: block; color: var(--text-faint); }

/* scroll cue (signature element) */
.scroll-cue {
  position: absolute;
  right: clamp(18px, 3vw, 40px);
  bottom: clamp(24px, 5vw, 60px);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-rl;
  pointer-events: none;
  user-select: none;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent-bright) 40%, transparent 100%);
  transform-origin: top;
  animation: cueRun 2.6s var(--ease-out-quart) infinite;
}
@keyframes cueRun {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  18%  { opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@media (max-width: 880px) { .scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  transition: opacity .35s var(--ease);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent-bright);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 60%, transparent);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid color-mix(in oklab, var(--accent) 70%, transparent);
  transition:
    opacity .35s var(--ease),
    width .35s var(--ease-spring),
    height .35s var(--ease-spring),
    border-color .3s var(--ease),
    background-color .3s var(--ease);
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 60px; height: 60px;
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}
body.cursor-press .cursor-ring { width: 22px; height: 22px; }
body.has-cursor,
body.has-cursor * { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
}
.hero-sub { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 22px 0 30px; }
.tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: color-mix(in oklab, var(--bg-2) 50%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px;
  background: linear-gradient(165deg, color-mix(in oklab, var(--bg-2) 92%, transparent), color-mix(in oklab, var(--bg-1) 80%, transparent));
  box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.hero-card::before { content:""; position:absolute; top:-40%; right:-30%; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.hero-card dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; position: relative; }
.hero-card dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); padding-top: 4px; }
.hero-card dd { font-size: 15px; color: var(--text); }
.hero-card dd b { font-weight: 700; }
.hero-card .avail { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.hero-card .dot { width: 7px; height: 7px; border-radius: 50%; background: #6fbf73; box-shadow: 0 0 0 3px rgba(111,191,115,.18); }

@media (max-width: 880px){ .hero-grid { grid-template-columns: 1fr; align-items: start; } .hero-card { order: 2; } }

/* ---------- about: scrollytelling rail ---------- */
.about-scroll {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-sticky {
  position: sticky;
  top: clamp(80px, 18vh, 160px);
  align-self: start;
}
.about-sticky .eyebrow { margin-bottom: 18px; }
.about-roles {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  margin: 6px 0 22px;
}
.about-roles .role {
  display: inline-block;
  color: var(--text);
  opacity: .14;
  transform: translateX(-14px);
  transition:
    opacity .9s var(--ease-out-expo),
    transform .9s var(--ease-out-expo),
    color .6s var(--ease);
  will-change: opacity, transform;
}
.about-roles .role.is-active {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-bright);
}
.about-roles .role .dot { color: var(--accent); }
.about-roles .role + .role { margin-top: -.08em; }
.role-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: var(--text-dim);
  max-width: 28ch;
  line-height: 1.5;
}
.about-col { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 110px); }
.about-col article { position: relative; }
.about-col article p { color: var(--text-dim); margin-bottom: 18px; }
.about-col article p:last-of-type { margin-bottom: 0; }

/* margin-note: hand-noted Space Mono tag above content */
.margin-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .8;
  margin-bottom: 18px;
}
.margin-note::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

/* hero edition-stamp (rotated marginalia in top-right of hero canvas area) */
.hero-stamp {
  position: absolute;
  top: clamp(96px, 12vw, 134px);
  right: clamp(20px, 4vw, 56px);
  z-index: 3;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-bright);
  transform: rotate(-2.4deg);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  border-radius: 4px;
  background: color-mix(in oklab, var(--bg-1) 88%, transparent);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 6px 22px -6px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.08) inset;
}
html[data-theme="light"] .hero-stamp {
  background: color-mix(in oklab, var(--bg-1) 92%, transparent);
  box-shadow: 0 6px 18px -6px rgba(70,48,22,.18), 0 0 0 1px rgba(255,255,255,.5) inset;
}
@media (max-width: 880px) { .hero-stamp { display: none; } }

@media (max-width: 820px){
  .about-scroll { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 36px); }
  .about-sticky { position: static; }
  .about-roles { font-size: clamp(2.2rem, 9vw, 3rem); margin-bottom: 14px; }
  .about-roles .role { opacity: 1; transform: none; color: var(--text); }
  .about-roles .role.is-active { color: var(--accent-bright); }
  .about-col { gap: clamp(36px, 7vw, 56px); }
}

/* ---------- experience timeline ---------- */
.timeline { display: flex; flex-direction: column; position: relative; }
.timeline-rail {
  position: absolute;
  left: clamp(116px, 16vw, 234px);
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
  pointer-events: none;
  overflow: hidden;
}
.timeline-rail-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--accent) 50%, transparent) 0%,
    var(--accent) 22%,
    var(--accent-bright) 100%);
  transform-origin: top;
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 50%, transparent);
}
@media (max-width: 720px){ .timeline-rail { display: none; } }

.xp {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 56px);
  padding: 30px 0; border-top: 1px solid var(--line); position: relative;
}
.xp:first-child { border-top: 0; padding-top: 0; }
.xp .meta .when { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); display: block; margin-bottom: 8px; }
.xp .meta .org { font-family: var(--serif); font-size: 1.18rem; color: var(--text); line-height: 1.25; }
.xp .meta .kind { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.xp .role { font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -.01em; }
.xp ul { display: flex; flex-direction: column; gap: 9px; }
.xp li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: 15.2px; line-height: 1.6; }
.xp li::before { content:""; position:absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .8; }
.xp li b { color: var(--text); font-weight: 700; }
@media (max-width: 720px){ .xp { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; } }

.subhead-row { display: flex; align-items: baseline; gap: 14px; margin: clamp(48px,7vw,76px) 0 26px; }
.subhead-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.subhead-row .line { flex: 1; height: 1px; background: var(--line); }
.subhead-row .n { font-family: var(--mono); font-size: 12px; color: var(--text-faint); letter-spacing: .1em; }

/* ---------- two-up: education + skills ---------- */
.duo { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 800px){ .duo { grid-template-columns: 1fr; } }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(165deg, color-mix(in oklab, var(--bg-2) 85%, transparent), color-mix(in oklab, var(--bg-1) 70%, transparent));
  box-shadow: var(--shadow-1);
}
.panel .panel-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; display:block; }
.edu .school { font-family: var(--serif); font-size: 1.5rem; color: var(--text); line-height: 1.2; }
.edu .deg { color: var(--text-dim); margin-top: 8px; font-size: 15px; }
.edu .gpa { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 20px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.edu .gpa b { font-family: var(--serif); font-size: 1.4rem; color: var(--accent-bright); }
.edu .gpa span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { font-size: 13.5px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; background: color-mix(in oklab, var(--bg-3) 40%, transparent);
  /* static label, not interactive — no hover lift */ }
.chip--accent { color: var(--accent-bright); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.skill-group + .skill-group { margin-top: 22px; }
.skill-group h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; font-weight: 400; }

/* ---------- cards / featured work ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(170deg, color-mix(in oklab, var(--bg-2) 90%, transparent), color-mix(in oklab, var(--bg-1) 75%, transparent));
  overflow: hidden; box-shadow: var(--shadow-1); position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
a.card, button.card { cursor: pointer; text-align: left; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card .thumb {
  aspect-ratio: 16 / 9.5;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 110%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 65%),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.card .thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 55%); pointer-events: none; }
html[data-theme="light"] .card .thumb::after { background: linear-gradient(to top, rgba(45,32,18,.18), transparent 55%); }
.card .thumb svg, .card .thumb img, .card .thumb canvas { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.card:hover .thumb svg, .card:hover .thumb img, .card:hover .thumb canvas { transform: scale(1.04); }
.card .card-canvas { background: transparent; }
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card .kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: flex; justify-content: space-between; gap: 10px; }
.card .kicker .yr { color: var(--text-faint); }
.card h3 { font-size: 1.32rem; }
.card p { color: var(--text-dim); font-size: 14.6px; line-height: 1.6; }
.card .stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 6px; }
.card .stack span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--text-faint); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.card .more { margin-top: 14px; }

/* chart placeholder colors (inside .thumb svg) */
.chart-bg { fill: var(--bg-1); }
html[data-theme="light"] .chart-bg { fill: #efe6d4; }

/* ---------- filter chips (work page) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease), transform .3s var(--ease-spring);
}
.filter:hover { color: var(--text); transform: translateY(-2px); }
.filter[aria-pressed="true"] { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); color: var(--on-accent); border-color: transparent; box-shadow: var(--shadow-accent); }
.filter:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.card.hide { display: none; }

/* ---------- creative / gallery ---------- */
.note-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); border-radius: var(--radius);
  background: var(--accent-soft); padding: 16px 20px; color: var(--text-dim); font-size: 14.5px;
}
.note-bar .pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent)); padding: 5px 10px; border-radius: 999px; }
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery .tile {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow-1); cursor: pointer; display: block; width: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gallery .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gallery .tile .ph { width: 100%; display: block; }
.gallery .tile .ov { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%); opacity: 0; transition: opacity .35s var(--ease); }
.gallery .tile:hover .ov { opacity: 1; }
.gallery .tile .ov span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.gallery .tile:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
@media (max-width: 540px){ .gallery { columns: 1; } }

.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px);
  background:
    radial-gradient(600px 300px at 80% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(160deg, color-mix(in oklab, var(--bg-2) 92%, transparent), color-mix(in oklab, var(--bg-1) 78%, transparent));
  box-shadow: var(--shadow-2); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-band h2 { max-width: 18ch; }
.cta-band .lede { text-align: center; margin: 0 auto; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg-2) 60%, transparent); transition: border-color .3s var(--ease), transform .35s var(--ease), background-color .3s var(--ease);
}
.contact-row:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-row .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--accent-bright); }
.contact-row .ic svg { width: 18px; height: 18px; }
.contact-row .t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.contact-row .v { font-size: 15.5px; color: var(--text); word-break: break-word; }
.contact-row .go { margin-left: auto; color: var(--text-faint); transition: transform .35s var(--ease-spring), color .25s var(--ease); }
.contact-row:hover .go { color: var(--accent-bright); transform: translateX(4px); }

form.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
form .hp { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--text-faint); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(60px, 9vw, 110px); padding: clamp(40px, 6vw, 64px) 0 36px; position: relative; }
.footer-top { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 30ch; }
.footer-brand .big { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.footer-brand .big a { color: var(--accent-bright); }
.footer-brand .big a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; font-weight: 400; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer-col a:hover { color: var(--accent-bright); padding-left: 5px; }
.footer-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(36px, 6vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-faint); font-family: var(--mono); letter-spacing: .04em; }

/* ---------- page intro band ---------- */
.page-intro { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(8px, 2vw, 20px); }
.page-intro h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 18px 0 20px; }
.page-intro .lede { max-width: 60ch; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.crumbs a { color: var(--text-faint); } .crumbs a:hover { color: var(--accent); }

/* ---------- modal / lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,4,2,.74); backdrop-filter: blur(6px); }
html[data-theme="light"] .modal-backdrop { background: rgba(40,28,16,.4); }
.modal-card {
  position: relative; max-width: 720px; width: 100%; max-height: 88vh; overflow: auto;
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.modal.open .modal-card { animation: pop .4s var(--ease-spring) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity:1; transform: none; } }
.modal-card .m-thumb { aspect-ratio: 16/8; border-bottom: 1px solid var(--line); overflow: hidden; }
.modal-card .m-thumb svg, .modal-card .m-thumb img { width:100%; height:100%; object-fit: cover; }
.modal-card .m-body { padding: clamp(22px, 4vw, 36px); }
.modal-card .kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.modal-card h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 14px; }
.modal-card p { color: var(--text-dim); margin-bottom: 14px; }
.modal-card ul.m-list { display: flex; flex-direction: column; gap: 9px; margin: 16px 0; }
.modal-card ul.m-list li { padding-left: 20px; position: relative; color: var(--text-dim); font-size: 15px; }
.modal-card ul.m-list li::before { content:""; position:absolute; left:2px; top:11px; width:6px; height:6px; border-radius:50%; background: var(--accent); }
.modal-card .m-stack { display:flex; flex-wrap:wrap; gap:8px; margin-top: 18px; }
.modal-card .m-stack span { font-family: var(--mono); font-size: 11px; color: var(--text-faint); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 999px;
  background: rgba(10,8,6,.55); border: 1px solid var(--line-2); color: #fff; display: grid; place-items: center; z-index: 2;
  transition: transform .35s var(--ease-spring), background-color .25s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); background: var(--accent); color: var(--on-accent); }
.modal-close:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
body.modal-open { overflow: hidden; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .card, .chip, .contact-row, .gallery .tile { transition: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; }
}

/* hero load-in (no JS needed) */
.hero .li { opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) forwards; }
.hero .li.d1{ animation-delay: .05s; } .hero .li.d2{ animation-delay: .15s; }
.hero .li.d3{ animation-delay: .25s; } .hero .li.d4{ animation-delay: .35s; } .hero .li.d5{ animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .hero .li { opacity:1 !important; transform:none !important; animation: none; } }

/* small helpers */
.muted { color: var(--text-faint); }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.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; }

/* ---------- stats band ("Receipts") ---------- */
.stats-section { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 50%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 50%),
    radial-gradient(circle at 92% 50%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 50%);
  pointer-events: none;
}
.stat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent-bright);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.stat .stat-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 760px) {
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

/* ---------- footer marquee ---------- */
.footer-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(60px, 8vw, 110px);
  padding: clamp(22px, 3vw, 36px) 0;
  background:
    radial-gradient(ellipse at 50% 50%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 70%),
    linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg-2) 30%, transparent));
}
.footer-marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.95rem, 1.6vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--text-dim);
  will-change: transform;
}
.footer-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  flex: none;
}
.footer-marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-style: normal;
  font-size: .7em;
  opacity: .8;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-marquee-track { animation: none; }
}

/* ---------- editorial work rows (work.html) ---------- */
.work-list { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: 56px 1fr clamp(220px, 28vw, 320px) 40px;
  gap: clamp(20px, 3.5vw, 48px);
  align-items: center;
  padding: clamp(32px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  text-align: left;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 100%;
}
.work-row:last-of-type { border-bottom: 1px solid var(--line); }
.work-row.hide { display: none; }
.work-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--text-faint);
  align-self: start;
  padding-top: 6px;
}
.work-row-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.work-row-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.work-row-kicker .yr { color: var(--text-faint); }
.work-row-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -.025em;
  line-height: 1.1;
  transition: transform .45s var(--ease-out-expo), color .3s var(--ease);
}
.work-row-desc {
  color: var(--text-dim);
  font-size: 14.8px;
  line-height: 1.6;
  max-width: 56ch;
}
.work-row-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 4px;
}
.work-row-stack span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}
.work-row-thumb {
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% 110%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 65%),
    var(--bg-1);
  position: relative;
}
.work-row-thumb canvas {
  width: 100%; height: 100%; display: block;
  transition: transform .6s var(--ease);
}
.work-row-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent 55%);
  pointer-events: none;
}
html[data-theme="light"] .work-row-thumb::after { background: linear-gradient(to top, rgba(45,32,18,.15), transparent 55%); }
.work-row-arrow {
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .45s var(--ease-spring), color .3s var(--ease);
}
.work-row-arrow svg { width: 22px; height: 22px; }
.work-row:hover .work-row-title { transform: translateX(10px); color: var(--accent-bright); }
.work-row:hover .work-row-thumb canvas { transform: scale(1.05); }
.work-row:hover .work-row-arrow { transform: translateX(10px); color: var(--accent-bright); }
.work-row:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 6px; border-radius: 4px; }
.work-row--cta { border-style: dashed; }
.work-row--cta .work-row-thumb {
  border-style: dashed;
  background: linear-gradient(135deg, color-mix(in oklab, var(--bg-2) 70%, transparent), transparent);
  display: grid;
  place-items: center;
}
.work-row--cta .work-row-thumb::before {
  content: "+";
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--accent);
  opacity: .55;
}

@media (max-width: 880px) {
  .work-row {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    row-gap: 18px;
  }
  .work-row-thumb {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .work-row-info {
    grid-column: 2;
    grid-row: 1;
  }
  .work-row-arrow { display: none; }
}

/* ---------- page transition overlay ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  transform: translateY(100%);
  background:
    radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
  display: grid;
  place-items: center;
  will-change: transform;
}
.page-transition::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  box-shadow: 0 0 32px var(--accent), 0 0 12px var(--accent-bright);
}
.page-transition .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-bright);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease-out-expo);
}
.page-transition.is-covering {
  transform: translateY(0);
  transition: transform .55s var(--ease-out-expo);
}
.page-transition.is-covering .label {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s var(--ease) .18s, transform .45s var(--ease-out-expo) .18s;
}
@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none !important; }
}
