/* Sanjana Sridhar: site styles.
   A desert scene up top (day and night follow the visitor's system, with a toggle), then calm, readable sections.
   Colors and type live in :root. All copy lives in content.json. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-display.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --f-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-disp: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --gut: clamp(1.1rem, 4vw, 2.5rem);

  /* page, day */
  --bg: #FFF6EA; --ink: #231A14; --ink2: #5B4A3E; --mut: #7A6A5C; --line: #EBD9C4;
  --card: #FFFDF8; --edge: #231A14; --accent: #B93A07; --pop: #FF4F8B; --yel: #FFD84D; --sh: #E8845C;
  /* scene, day */
  --sky1: #FFE6C7; --sky2: #FFD0A6; --sky3: #FFB38C;
  --sun: #FF7A45; --sunc: #FFE08A; --cloud: rgba(255, 250, 240, .88);
  --mesa: #EDA98E; --dune1: #E3916E; --dune2: #CC6B4A; --dune2d: #B45A3D; --tw: #8E4A33;
  --cactus: #3F7D5C; --cac-hl: #7CC49C; --cac-sh: #24503B; --spine: #FFF1D6;
  --petal: #FF4F8B; --fc: #FFD84D; --pot: #C2562F; --pot2: #A8452A;
  --star: 0; --crater: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #120F26; --ink: #F7EEDC; --ink2: #CFC6E6; --mut: #A99FC4; --line: #2E2750;
    --card: #1D1838; --edge: #F7EEDC; --accent: #FFB070; --sh: #6B3FA0;
    --sky1: #0A0B2A; --sky2: #221652; --sky3: #5A2E6B;
    --sun: #E9DDB4; --sunc: #FFFDF0; --cloud: rgba(130, 110, 190, .2);
    --mesa: #2B2060; --dune1: #3A2870; --dune2: #2C2058; --dune2d: #1F1642; --tw: #6C5A9E;
    --cactus: #2F8A6E; --cac-hl: #6FE0B4; --cac-sh: #164639; --petal: #FF7AB0; --pot: #D2693F;
    --star: 1; --crater: 1;
  }
}
:root[data-theme="dark"] {
  --bg: #120F26; --ink: #F7EEDC; --ink2: #CFC6E6; --mut: #A99FC4; --line: #2E2750;
  --card: #1D1838; --edge: #F7EEDC; --accent: #FFB070; --sh: #6B3FA0;
  --sky1: #0A0B2A; --sky2: #221652; --sky3: #5A2E6B;
  --sun: #E9DDB4; --sunc: #FFFDF0; --cloud: rgba(130, 110, 190, .2);
  --mesa: #2B2060; --dune1: #3A2870; --dune2: #2C2058; --dune2d: #1F1642; --tw: #6C5A9E;
  --cactus: #2F8A6E; --cac-hl: #6FE0B4; --cac-sh: #164639; --petal: #FF7AB0; --pot: #D2693F;
  --star: 1; --crater: 1;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ink); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { left: .5rem; top: .5rem; }
.wrap { width: min(100% - 2 * var(--gut), 68rem); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: absolute; z-index: 30; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gut);
}
.brand {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--card); color: var(--ink); border: 2px solid var(--edge);
  font: 700 .85rem var(--f-mono); letter-spacing: -.04em; text-decoration: none;
}
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem;
  padding: .4rem .7rem; border-radius: 99px;
}
.nav a:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.theme {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-left: .4rem; border-radius: 50%;
  background: var(--card); color: var(--ink); border: 2px solid var(--edge); cursor: pointer; padding: 0;
}
.theme:hover { background: var(--yel); color: #231A14; }
@media (max-width: 560px) { .nav .opt { display: none; } .nav a { padding: .4rem .55rem; font-size: .86rem; } }

/* ---------- the scene ---------- */
.scene {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(640px, 100svh, 980px);
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 100%);
}
@media (max-width: 720px) { .scene { height: max(100svh, 790px); } }
.layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.l-sky { z-index: 1; }
.l-sun { z-index: 2; transform: translate3d(calc(var(--px, 0) * -.9vw), calc(var(--py, 0) * -.4vw + var(--sy, 0) * 8vw), 0); }
.l-far { z-index: 3; left: -5%; right: -5%; top: auto; bottom: 14%; height: 34%;
  transform: translate3d(calc(var(--px, 0) * -.6vw), calc(var(--py, 0) * -.25vw + var(--sy, 0) * 6vw), 0); }
.l-mid { z-index: 4; left: -5%; right: -5%; top: auto; bottom: 7%; height: 30%;
  transform: translate3d(calc(var(--px, 0) * -1.2vw), calc(var(--py, 0) * -.4vw + var(--sy, 0) * 3vw), 0); }
.l-stage { z-index: 5; transform: translate3d(calc(var(--px, 0) * -2vw), calc(var(--py, 0) * -.6vw), 0); }
.l-front { z-index: 6; left: -5%; right: -5%; top: auto; bottom: -5vw; height: calc(25% + 5vw);
  transform: translate3d(calc(var(--px, 0) * -3.4vw), calc(var(--py, 0) * -.8vw + var(--sy, 0) * -3vw), 0); }
.layer svg { display: block; width: 100%; height: 100%; }

.mesa { fill: var(--mesa); }
.dune1 { fill: var(--dune1); }
.dune2 { fill: var(--dune2); }
.crest { fill: none; stroke: var(--dune2d); stroke-width: 3; opacity: .55; }
.mini-cac path { fill: none; stroke: var(--dune2d); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.tuft path { fill: none; stroke: var(--dune2d); stroke-width: 3.5; stroke-linecap: round; }
.peb { fill: var(--dune2d); }

/* sky: clouds, stars */
.layer .cloud { position: absolute; fill: var(--cloud); width: 12rem; height: auto; animation: drift 90s linear infinite; }
.layer .c1 { top: 22%; left: -14rem; }
.layer .c2 { top: 40%; left: -14rem; width: 8rem; animation-duration: 120s; animation-delay: -50s; }
.layer .c3 { top: 10%; left: -14rem; width: 9rem; animation-duration: 150s; animation-delay: -95s; }
@keyframes drift { to { transform: translateX(calc(100vw + 28rem)); } }
.stars { position: absolute; inset: 0; opacity: var(--star); transition: opacity .8s; }
.stars i { position: absolute; width: var(--z); height: var(--z); border-radius: 50%; background: #fff; animation: twinkle 3.6s var(--d) ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }

/* sun and moon (also the "now" note) */
.sunmoon {
  position: absolute; left: 50%; top: 11%; display: flex; flex-direction: column; align-items: center; gap: .9rem;
  background: none; border: 0; padding: .5rem; cursor: pointer; pointer-events: auto; color: inherit; font: inherit;
  transform: translateX(-50%);
}
.orb {
  position: relative; display: block; width: clamp(54px, 6vw, 88px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sunc), var(--sun) 72%);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--sun) 16%, transparent), 0 0 70px 24px color-mix(in srgb, var(--sun) 32%, transparent);
  animation: bob 7s ease-in-out infinite;
}
.orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--ink); opacity: .5; animation: ping 2.4s ease-out infinite; }
.sunmoon.seen .orb::after { display: none; }
.sunmoon:hover .orb { transform: scale(1.06); }
.cr { position: absolute; border-radius: 50%; background: rgba(120, 105, 70, .28); opacity: var(--crater); }
.cr1 { width: 22%; height: 22%; left: 56%; top: 24%; }
.cr2 { width: 14%; height: 14%; left: 28%; top: 58%; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes ping { from { transform: scale(.85); opacity: .6; } to { transform: scale(1.5); opacity: 0; } }
.lab {
  font: 600 .72rem/1 var(--f-mono); letter-spacing: .02em; white-space: nowrap;
  padding: .4rem .62rem; border-radius: 99px; background: var(--card); color: var(--ink);
  border: 2px solid var(--edge); box-shadow: 2px 2px 0 var(--edge);
}
.sunmoon:hover .lab, .spot:hover .lab, .pot:hover .lab { background: var(--yel); color: #231A14; }
@media (max-width: 720px) {
  .sunmoon { left: 14%; top: 49%; }
  .orb { width: 50px; }
  .lab { font-size: .66rem; padding: .34rem .52rem; }
}
@media (min-width: 721px) and (max-width: 1100px) { .sunmoon { left: 45%; } }

/* the cactus */
.stage {
  position: absolute; aspect-ratio: 2 / 3; height: min(80%, 47rem);
  right: clamp(1rem, 10vw, 11rem); bottom: 5.5%; pointer-events: none;
}
@media (max-width: 720px) { .stage { right: auto; left: 50%; transform: translateX(-50%); height: 50%; bottom: 5.5%; } }
.cactus { width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.c-body { stroke: var(--cactus); }
.c-hl { stroke: var(--cac-hl); opacity: .55; }
.c-sh { stroke: var(--cac-sh); opacity: .5; }
.c-rib { stroke: var(--cac-sh); opacity: .45; }
.c-dots { stroke: var(--spine); stroke-dasharray: 0 22; opacity: .9; }
.c-mound { fill: var(--dune2); stroke: none; }
.c-shadow { fill: rgba(0, 0, 0, .2); stroke: none; }
.c-peb { fill: var(--dune2d); stroke: none; }
.petals ellipse { fill: var(--petal); stroke: none; }
.fc { fill: var(--fc); stroke: none; }

.trunk { transform-origin: 200px 560px; animation: grow 1s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.arm-in { animation: sprout .6s cubic-bezier(.3, 1.5, .5, 1) var(--d, .8s) both; }
@keyframes sprout { from { transform: scale(0); } }
.bloom { transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.7, .5, 1); }
.bloom.on, .all-on .bloom { transform: scale(1); }
.bloom.crown { transform: scale(.5); animation: bud 2.6s ease-in-out 1.6s infinite; }
.bloom.crown.on, .all-on .bloom.crown { transform: scale(1.5); animation: none; }
@keyframes bud { 50% { transform: scale(.62); } }
.stage[data-hover="tinker"] .arm-tinker, .stage[data-hover="roots"] .arm-roots,
.stage[data-hover="build"] .arm-build, .stage[data-hover="wonder"] .arm-wonder { animation: wiggle .7s ease-in-out; }
.stage[data-hover="hi"] .bloom.crown:not(.on) { animation-duration: .6s; }
@keyframes wiggle { 25% { transform: rotate(-3.5deg); } 60% { transform: rotate(2.5deg); } }
.all-on .arm:hover { animation: wiggle .7s ease-in-out; }

.spot {
  position: absolute; display: flex; align-items: center; gap: .4rem; margin: 0; padding: 0;
  background: none; border: 0; cursor: pointer; pointer-events: auto; font: inherit; color: inherit;
  transform: translate(-.6rem, -50%);
}
.spot-l { transform: translate(calc(-100% + .6rem), -50%); }
.dot {
  position: relative; flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--yel); border: 2px solid var(--edge);
}
.dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--yel); animation: ping 2.2s ease-out infinite; }
.spot.seen .dot { background: var(--petal); }
.spot.seen .dot::after { display: none; }
.spot[aria-expanded="true"] .lab { background: var(--yel); color: #231A14; }
@media (max-width: 720px) { .dot { width: 1.05rem; height: 1.05rem; } }

.ponder {
  position: absolute; left: 63%; top: -3%; z-index: 2; margin: 0; max-width: 9.6rem; pointer-events: none;
  font: 500 .72rem/1.35 var(--f-mono); color: var(--ink); background: var(--card);
  border: 2px solid var(--edge); border-radius: 14px 14px 14px 2px; padding: .45rem .65rem;
  transition: opacity .35s, transform .35s;
}
.ponder.out { opacity: 0; transform: translateY(5px); }

/* foreground: tumbleweed, potted cactus */
.tw { position: absolute; bottom: 4%; left: 0; color: var(--tw); animation: roll 26s linear 5s infinite; }
.tw svg { stroke: var(--tw); }
@keyframes roll { from { transform: translateX(-12vw) rotate(0); } to { transform: translateX(112vw) rotate(1080deg); } }
.pot {
  position: absolute; left: clamp(.8rem, 8vw, 9rem); bottom: calc(5vw + 4.5rem); display: flex; flex-direction: row; align-items: flex-end; gap: .5rem;
  pointer-events: auto; text-decoration: none; color: inherit;
}
@media (max-width: 720px) { .pot { left: auto; right: .8rem; flex-direction: row-reverse; } }
.pot svg { overflow: visible; transform-origin: 50% 100%; }
.pot:hover svg { animation: wiggle .7s ease-in-out; }
.pot-c path { stroke: var(--cactus); }
.pot-f .petals ellipse { fill: var(--petal); }
.pot-b { fill: var(--pot); }
.pot-b2 { fill: var(--pot2); }

/* hero copy */
.hero {
  position: absolute; z-index: 7; pointer-events: none;
  left: max(var(--gut), calc((100vw - 68rem) / 2)); top: clamp(5.2rem, 17%, 9.5rem);
  width: min(40rem, 48vw);
}
@media (max-width: 720px) { .hero { width: calc(100% - 2 * var(--gut)); top: 4.8rem; } }
.hero h1 {
  margin: 0; font: 700 clamp(2.7rem, .8rem + 5.9vw, 6rem)/.93 var(--f-disp); letter-spacing: -.035em;
  font-variation-settings: "opsz" 96; font-stretch: 92%; text-wrap: balance;
}
@media (min-width: 721px) { .hero h1 { max-width: 5.2em; } }
.tagline { margin: 1.2rem 0 0; max-width: 26em; color: var(--ink2); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); line-height: 1.4; text-wrap: balance; }
.hero-meta { margin: .6rem 0 0; font: 500 .8rem var(--f-mono); color: var(--ink2); }
.hint { display: flex; align-items: center; gap: .65rem; margin: 1.5rem 0 0; font: 500 .8rem var(--f-mono); color: var(--ink2); }
.arrow::before { content: "\2192"; display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@media (max-width: 720px) { .arrow::before { content: "\2193"; animation-name: nudgey; } }
@keyframes nudge { 50% { transform: translateX(6px); } }
@keyframes nudgey { 50% { transform: translateY(5px); } }
.count { padding: .15rem .5rem; border: 1.5px solid currentColor; border-radius: 99px; font-size: .72rem; }
.hero > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(4) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* note card */
.card {
  position: absolute; z-index: 25; width: min(21rem, calc(100% - 1.5rem)); padding: 1.15rem 1.25rem 1.3rem;
  background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--edge); animation: pop .3s cubic-bezier(.3, 1.5, .5, 1) both;
}
.card:focus { outline: none; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.kick { margin: 0 0 .3rem; font: 500 .72rem var(--f-mono); color: var(--mut); text-transform: uppercase; letter-spacing: .08em; }
.card h2 { margin: 0 0 .5rem; font: 700 2rem/1 var(--f-disp); letter-spacing: -.03em; }
.card p { margin: 0 0 .7rem; font-size: .98rem; line-height: 1.5; }
.card-sub { color: var(--mut); font: 500 .75rem var(--f-mono) !important; }
.card-list { margin: 0 0 .7rem; padding-left: 1.1rem; }
.card-list li { margin-bottom: .45rem; font-size: .98rem; line-height: 1.45; }
.card-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.pill {
  display: inline-block; padding: .4rem .85rem; border-radius: 99px; border: 2px solid var(--edge);
  background: var(--yel); color: #231A14; font: 600 .85rem var(--f-text); text-decoration: none;
}
.pill:hover { background: var(--petal); color: #fff; }
.card-x { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; }
.card-x:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
@media (max-width: 720px) {
  .card { position: fixed; left: .75rem !important; right: .75rem; top: auto !important; bottom: .75rem; width: auto; z-index: 60; max-height: 70svh; overflow: auto; }
}

.petal {
  position: absolute; z-index: 40; width: 10px; height: 15px; background: var(--petal); border-radius: 50% 50% 50% 0;
  pointer-events: none; animation: fall 2.4s cubic-bezier(.2, .6, .3, 1) forwards;
}
@keyframes fall { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- ticker ---------- */
.ticker-wrap { position: relative; z-index: 8; overflow: hidden; padding: 1.2rem 0; margin-top: -2.4rem; pointer-events: none; }
.ticker { display: flex; width: max-content; background: var(--ink); color: var(--bg); transform: rotate(-1.3deg); padding: .8rem 0; }
.tk { display: flex; flex: none; animation: marquee 48s linear infinite; }
.tk span { font: 500 .85rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; padding-right: 3.2rem; }
.tk span::after { content: "+"; margin-left: 3.2rem; color: var(--pop); font-weight: 700; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.sec { padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.sec:last-of-type { padding-bottom: clamp(3rem, 7vw, 5rem); }
.grid { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.5rem 3rem; }
@media (max-width: 720px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; } }
.label { margin: 0; font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mut); }
.aside { display: flex; flex-direction: column; gap: 1.2rem; }
.portrait { margin: 0; width: min(100%, 11rem); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 18px 18px; border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--sh); background: var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
@media (max-width: 720px) { .portrait { width: 8.5rem; } }
.bio p { margin: 0 0 1.1rem; max-width: 38rem; color: var(--ink2); }
.bio p:first-child {
  max-width: 22em; margin-bottom: 1.5rem; color: var(--ink);
  font: 350 clamp(1.55rem, 1rem + 2vw, 2.45rem)/1.12 var(--f-disp); letter-spacing: -.035em; font-variation-settings: "opsz" 96; text-wrap: balance;
}
.facts { margin: 2rem 0 0; display: grid; gap: 0; max-width: 38rem; border-top: 2px solid var(--line); }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 2px solid var(--line); }
.facts dt { font: 500 .75rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mut); padding-top: .2rem; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .1rem; } }

.work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 560px) { .work-list { grid-template-columns: minmax(0, 1fr); } }
.work {
  position: relative; background: var(--card); border: 2px solid var(--edge); border-radius: 18px; padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 5px 5px 0 var(--sh); transition: transform .2s, box-shadow .2s;
}
.work:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--sh); }
.work .num { margin: 0 0 1.4rem; font: 500 .75rem var(--f-mono); color: var(--mut); text-transform: uppercase; letter-spacing: .08em; }
.work h3 { margin: 0 0 .4rem; font: 700 1.45rem/1.1 var(--f-disp); letter-spacing: -.025em; }
.work p:last-child { margin: 0; color: var(--ink2); }
.work .cover { color: inherit; text-decoration: none; }
.work .cover::after { content: ""; position: absolute; inset: 0; }
.note { margin: 1.4rem 0 0; font: 500 .8rem var(--f-mono); color: var(--mut); }

.offclock {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.1rem 1.4rem; text-decoration: none; color: #231A14;
  background: var(--yel); border: 2px solid var(--edge); border-radius: 999px; box-shadow: 5px 5px 0 var(--edge);
  transition: transform .2s, box-shadow .2s;
}
.offclock:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--edge); }
.offclock .k { font: 700 1.5rem/1 var(--f-disp); letter-spacing: -.03em; }
.offclock .items { flex: 1; font: 500 .85rem var(--f-mono); }
.offclock .go { font-size: 1.4rem; transition: transform .2s; }
.offclock:hover .go { transform: translateX(5px); }

.also { max-width: 38rem; }
.also h3 { margin: 0 0 .3rem; font: 700 1.3rem var(--f-disp); }
.also p { margin: 0 0 1rem; color: var(--ink2); }

.term {
  max-width: 38rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: #17122B; color: #F4EBD8;
  border: 2px solid var(--edge); box-shadow: 5px 5px 0 var(--sh); font: 400 .92rem/1.6 var(--f-mono);
}
.prompt { margin: 0 0 .6rem; color: #7BE0A8; }
.now-list { margin: 0; padding: 0; list-style: none; }
.now-list li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; }
.now-list li::before { content: ">"; position: absolute; left: 0; color: #FF9CC2; }
.now-date { margin: .8rem 0 0; color: #A99FC4; font-size: .78rem; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: .45em; vertical-align: -.18em; background: #7BE0A8; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.say-hi { margin: 0 0 .4rem; font: 700 clamp(3.2rem, 1rem + 9vw, 7.5rem)/.9 var(--f-disp); letter-spacing: -.05em; color: var(--ink); font-variation-settings: "opsz" 96; }
.contact-line { margin: 0 0 1.4rem; color: var(--ink2); font-size: 1.15rem; }
.clinks { display: flex; flex-wrap: wrap; gap: .8rem; }
.clink {
  display: flex; flex-direction: column; gap: .15rem; min-width: 13rem; padding: .85rem 1.2rem; text-decoration: none; color: var(--ink);
  background: var(--card); border: 2px solid var(--edge); border-radius: 16px; box-shadow: 4px 4px 0 var(--sh); font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.clink:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--sh); }
.clink .h { font: 400 .78rem var(--f-mono); color: var(--mut); }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.6rem 2.4rem; border-top: 2px solid var(--line); font: 500 .8rem var(--f-mono); color: var(--mut); }
.foot a { color: var(--mut); }

/* reveal on scroll */
.rv-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv-on .work.rv.in:hover, .rv-on .offclock.rv.in:hover { transform: translate(-3px, -3px); }

/* ---------- inner pages (experience, for fun, 404) ---------- */
.banner {
  position: relative; overflow: hidden; isolation: isolate; min-height: 19rem; padding: 7.2rem 0 6rem;
  background: linear-gradient(180deg, var(--sky1), var(--sky2) 60%, var(--sky3));
}
.banner .wrap { position: relative; z-index: 3; }
.banner h1 { margin: 0; font: 700 clamp(2.8rem, 1rem + 6.5vw, 6rem)/.93 var(--f-disp); letter-spacing: -.035em; font-variation-settings: "opsz" 96; font-stretch: 92%; }
.banner .tagline { margin-top: 1rem; max-width: 24em; }
.banner-art { position: absolute; z-index: 2; right: clamp(.8rem, 9vw, 9rem); bottom: -4px; height: clamp(130px, 24vw, 250px); aspect-ratio: 2 / 3; }
.banner-dune { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 5rem; width: 100%; }
.banner-dune.front { z-index: 4; height: 2.2rem; }
.page { padding-block: clamp(2.2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem); }

.roles { display: grid; gap: 1.6rem; }
.role { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .6rem 2rem; }
@media (max-width: 720px) { .role { grid-template-columns: minmax(0, 1fr); } }
.role-dates { padding-top: 1.4rem; font: 500 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.role-card { background: var(--card); border: 2px solid var(--edge); border-radius: 18px; padding: 1.3rem 1.4rem 1.4rem; box-shadow: 5px 5px 0 var(--sh); }
.role-card h2 { margin: 0; font: 700 1.8rem/1.05 var(--f-disp); letter-spacing: -.03em; }
.role-title { margin: .25rem 0 .9rem; color: var(--ink2); font-weight: 500; }
.role-sum { margin: 0 0 .9rem; }
.bullets { margin: 0; padding-left: 1.1rem; }
.bullets li { margin-bottom: .5rem; color: var(--ink2); }
.bullets li::marker { color: var(--pop); }

.fun-note { margin: 0 0 1.8rem; font: 500 .85rem var(--f-mono); color: var(--mut); }
.fun-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.6rem; }
.fun-card {
  position: relative; padding: 1.4rem 1.4rem 1.6rem; color: #231A14; border: 2px solid #231A14; border-radius: 20px;
  box-shadow: 5px 5px 0 var(--sh); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s;
}
.fun-card.c0 { background: #FFE9A8; transform: rotate(-1.4deg); }
.fun-card.c1 { background: #FFC9D6; transform: rotate(1deg); }
.fun-card.c2 { background: #CFE8D5; transform: rotate(-.6deg); }
.fun-card:hover, .rv-on .fun-card.rv.in:hover { transform: rotate(0) translateY(-5px); box-shadow: 8px 10px 0 var(--sh); }
.fun-card .ico { display: block; margin-bottom: 1rem; }
.chip { display: inline-block; margin-bottom: .6rem; padding: .2rem .6rem; border: 1.5px solid #231A14; border-radius: 99px; font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
.fun-card h2 { margin: 0 0 .5rem; font: 700 2rem/1 var(--f-disp); letter-spacing: -.035em; }
.fun-card p { margin: 0; line-height: 1.5; }
.rv-on .fun-card.rv { transform: translateY(22px) rotate(0); }
.rv-on .fun-card.c0.rv.in { transform: rotate(-1.4deg); }
.rv-on .fun-card.c1.rv.in { transform: rotate(1deg); }
.rv-on .fun-card.c2.rv.in { transform: rotate(-.6deg); }

.err { padding: 4rem 0; text-align: center; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .layer { transform: none !important; }
  .tw { display: none; }
  .rv-on .rv { opacity: 1; transform: none; }
  .ticker-wrap { overflow: hidden; }
  .tk[aria-hidden] { display: none; }
}
