/* ============================================================
   Aashay Gupte — personal site
   Palette borrowed from the plant-pigment project:
   chlorophyll green, carotenoid amber, handwriting-ink blue.
   ============================================================ */

:root {
  --ink: #0B0C10;
  --ink-2: #14161D;
  --ink-3: #1E2129;
  --paper: #E9EBE4;
  --paper-2: #DFE2D9;
  --paper-3: #CBD0C4;

  --chl: #4FD37A;
  --chl-b: #9BD64E;
  --car: #F2A33A;
  --blue: #6D7CFF;

  /* theme-dependent (flipped by body[data-theme]) */
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-mute: rgba(233, 235, 228, 0.55);
  --fg-faint: rgba(233, 235, 228, 0.32);
  --line: rgba(233, 235, 228, 0.14);
  --surface: var(--ink-2);

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-hand: 'Caveat', cursive;

  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);
}

body[data-theme="paper"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-mute: rgba(11, 12, 16, 0.58);
  --fg-faint: rgba(11, 12, 16, 0.34);
  --line: rgba(11, 12, 16, 0.14);
  --surface: var(--paper-2);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.7s var(--ease-inout), color 0.7s var(--ease-inout);
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--car); color: var(--ink); }

:focus-visible { outline: 2px solid var(--car); outline-offset: 4px; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(96px, 14vh, 200px); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.4;
}
.hand { font-family: var(--font-hand); font-size: 28px; line-height: 1; text-transform: none; letter-spacing: 0; }
.eyebrow { color: var(--fg-mute); margin-bottom: 20px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section__head { display: grid; gap: 8px; margin-bottom: clamp(48px, 7vw, 96px); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--fg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.7s var(--ease-inout);
}
.btn::before {
  content: ''; position: absolute; inset: -2px; z-index: -1;
  background: var(--fg);
  transform: translateY(101%);
  border-radius: 40% 40% 0 0;
  transition: transform 0.45s var(--ease-out), border-radius 0.45s var(--ease-out), background-color 0.7s var(--ease-inout);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn span { position: relative; }
.btn--sm { padding: 9px 16px; }
.btn--lg { font-size: clamp(14px, 1.6vw, 20px); padding: 20px 36px; border-width: 1.5px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
.loader__inner { display: grid; gap: 18px; justify-items: center; }
.loader__hand {
  font-family: var(--font-hand); font-size: clamp(40px, 7vw, 84px);
  color: var(--paper);
  clip-path: inset(0 100% 0 0);
  animation: write 1.1s var(--ease-out) 0.15s forwards;
  padding-inline: 0.2em;
}
.loader__bar { width: 120px; height: 2px; background: rgba(233,235,228,.15); overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; animation: fill 1.2s var(--ease-inout) 0.1s forwards; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 900;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s;
  display: grid; place-items: center;
  will-change: transform;
}
.cursor.is-hover { width: 56px; height: 56px; }
.cursor.is-pen { width: 8px; height: 8px; background: var(--blue); mix-blend-mode: normal; box-shadow: 0 0 0 10px rgba(109,124,255,.18); }
.cursor.is-hidden { opacity: 0; }
.cursor__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; }
.cursor.is-drag .cursor__label { opacity: 1; }
.cursor.is-drag { width: 72px; height: 72px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body { cursor: none; } a, button, [data-cursor] { cursor: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__links, .nav__right, .nav__mark span { mix-blend-mode: difference; color: #fff; }
.nav__mark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav__mark svg { transition: transform 0.6s var(--ease-out); }
.nav__mark:hover svg { transform: rotate(180deg); }
.nav__links { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 24px; }
.nav .btn { border-color: #fff; color: #fff; }
.nav .btn::before { background: #fff; }
.nav .btn:hover { color: #000; }
.nav__clock { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .nav__links, .nav__clock { display: none; }
  .nav__mark span { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  /* the hero is always ink, whatever the body theme is doing */
  --bg: var(--ink); --fg: var(--paper);
  --fg-mute: rgba(233, 235, 228, 0.55); --fg-faint: rgba(233, 235, 228, 0.32);
  --line: rgba(233, 235, 228, 0.14);
}
.hero__field, .hero__ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__ink { z-index: 2; }
.hero__content {
  position: relative; z-index: 3;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 96px var(--gutter) 24px;
  pointer-events: none;
}
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__eyebrow { color: var(--fg-faint); }
.hero__thesis {
  justify-self: end; align-self: start;
  margin-top: clamp(24px, 6vh, 80px);
  max-width: 520px;
  display: grid; gap: 18px;
  text-align: left;
}
.hero__statement {
  font-family: var(--font-body);
  font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1; letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
}
.hero__sub { color: var(--fg-mute); max-width: 440px; line-height: 1.7; }
.hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(84px, min(17vw, 27vh), 320px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  align-self: end;
  margin-bottom: 20px;
  margin-left: -0.04em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line-inner { display: block; transform: translateY(110%); }
.hero__hint {
  position: absolute; right: var(--gutter); bottom: 22%;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  color: var(--car);
  opacity: 0;
  transform: rotate(-4deg);
}
.hero__hint .hand { color: var(--car); }
.hero__foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--fg-mute);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; }
.hero__scroll i { display: block; width: 28px; height: 1px; background: currentColor; transform-origin: left; animation: scrollpulse 1.8s var(--ease-inout) infinite; }
@keyframes scrollpulse { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

@media (max-width: 900px) {
  .hero__content { grid-template-rows: auto auto 1fr auto; padding-top: 88px; }
  .hero__thesis { justify-self: start; margin-top: 24px; }
  .hero__statement { font-size: clamp(26px, 6.5vw, 40px); }
  .hero__name { font-size: clamp(76px, 23vw, 160px); }
  .hero__hint { right: var(--gutter); bottom: 44%; transform: rotate(-3deg) scale(.85); transform-origin: right bottom; }
  .hero__foot span:last-child { display: none; }
}

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 4;
  display: flex; overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 14px;
  color: var(--fg-mute);
  background: var(--bg);
  transition: background-color 0.7s var(--ease-inout);
  white-space: nowrap;
}
.marquee__track { display: flex; align-items: center; gap: 28px; padding-right: 28px; flex-shrink: 0; animation: marquee 38s linear infinite; }
.marquee__track i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--chl); }
.marquee__track i:nth-child(6n+4) { background: var(--car); }
.marquee__track i:nth-child(6n) { background: var(--blue); }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.about__text { display: grid; gap: clamp(28px, 4vw, 48px); }
.about__body { display: grid; gap: 1.1em; font-size: clamp(19px, 1.5vw, 24px); line-height: 1.45; max-width: 60ch; font-variation-settings: 'opsz' 18; }
.about__body p:first-child { font-size: 1.12em; }
.spec { display: grid; border-top: 1px solid var(--line); margin-top: clamp(0px, 3vw, 96px); }
.spec__row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec__row dt { color: var(--fg-mute); }
.spec__row dd { font-size: 19px; line-height: 1.35; }
.spec__sub { color: var(--fg-mute); font-size: 0.9em; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .spec { margin-top: 0; } }

/* ---------- projects (horizontal) ---------- */
.projects { position: relative; overflow: hidden; }
.projects__pin { height: 100svh; display: flex; align-items: center; }
.projects__track { display: flex; align-items: stretch; height: 100%; will-change: transform; }
.panel {
  flex: 0 0 auto;
  height: 100%;
  padding: 120px var(--gutter) 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.panel--intro { width: min(70vw, 760px); border-right: 1px solid var(--line); gap: 24px; }
.panel--intro .section__title { font-size: clamp(56px, 9vw, 150px); }
.panel__lead { max-width: 30ch; font-size: clamp(18px, 1.5vw, 23px); color: var(--fg-mute); line-height: 1.4; }
.panel__scrollhint { color: var(--fg-faint); margin-top: 40px; }
.panel--outro { width: min(60vw, 640px); gap: 20px; }
.panel__link { display: inline-flex; align-items: flex-end; gap: 20px; font-family: var(--font-display); font-weight: 700; font-stretch: 85%; font-size: clamp(36px, 4.5vw, 72px); line-height: 0.95; letter-spacing: -0.03em; transition: color .3s; }
.panel__link svg { transition: transform .5s var(--ease-out); margin-bottom: 6px; }
.panel__link:hover { color: var(--car); }
.panel__link:hover svg { transform: translate(6px, -6px); }

.project {
  width: min(84vw, 1180px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
  border-right: 1px solid var(--line);
}
.project__figure { height: min(58vh, 520px); }
.fig {
  position: relative; height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid; place-items: center;
  padding: 32px;
}
.fig__svg { width: 100%; max-width: 420px; height: auto; }
.fig__caption { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 12px; color: var(--fg-mute); }
.fig__arrow { color: var(--car); }
.project__body { display: grid; gap: 18px; }
.project__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--fg-mute); flex-wrap: wrap; }
.project__title { font-family: var(--font-display); font-weight: 700; font-stretch: 85%; font-size: clamp(40px, 4.6vw, 76px); line-height: 0.95; letter-spacing: -0.03em; }
.project__tag { font-style: italic; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; font-variation-settings: 'opsz' 24; }
.project__points { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 17px; line-height: 1.45; color: var(--fg-mute); }
.project__points li { padding-left: 18px; position: relative; }
.project__points li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--chl); }
.project__points li:nth-child(2)::before { background: var(--car); }

/* notersly figure: handwritten stroke → typeset */
.fig__stroke { stroke-dasharray: 260; stroke-dashoffset: 260; animation: handwrite 6s var(--ease-inout) infinite; }
.fig__stroke:nth-child(1) { animation-delay: 0s; }
.fig__stroke:nth-child(2) { animation-delay: .5s; }
.fig__stroke:nth-child(3) { animation-delay: .9s; }
.fig__stroke:nth-child(4) { animation-delay: 1.2s; }
.fig__stroke:nth-child(5) { animation-delay: 1.5s; }
@keyframes handwrite {
  0% { stroke-dashoffset: 260; opacity: 1; }
  25% { stroke-dashoffset: 0; opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  65% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 260; opacity: 0; }
}
.fig__typeset { opacity: 0; animation: typeset 6s var(--ease-inout) infinite; }
@keyframes typeset {
  0%, 50% { opacity: 0; transform: translateY(6px); }
  62% { opacity: 1; transform: translateY(0); }
  88% { opacity: 1; }
  100% { opacity: 0; }
}

/* leaf figure bars */
.bar { transform-origin: 50% 100%; transform-box: fill-box; }
.bar--a { animation: barA 9s ease-in-out infinite; }
.bar--b { animation: barB 9s ease-in-out infinite; }
.bar--c { animation: barC 9s ease-in-out infinite; }
@keyframes barA { 0%,100% { transform: scaleY(.82); } 50% { transform: scaleY(.28); } }
@keyframes barB { 0%,100% { transform: scaleY(.48); } 50% { transform: scaleY(.22); } }
@keyframes barC { 0%,100% { transform: scaleY(.24); } 50% { transform: scaleY(.78); } }

/* crop figure grid */
.fig--crop { padding: 40px; }
.fig__grid { width: 100%; max-width: 380px; aspect-ratio: 8/5; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.fig__grid i { display: block; border-radius: 3px; background: var(--chl); animation: cell 5s ease-in-out infinite; animation-delay: var(--d); opacity: .9; }
@keyframes cell { 0%,100% { background: var(--chl); transform: scale(1); } 50% { background: var(--car); transform: scale(.72); } }
.fig__note { position: absolute; right: 22px; top: 18px; display: flex; align-items: flex-start; gap: 4px; color: var(--car); transform: rotate(3deg); }
.fig__note span { margin-top: 12px; }

@media (max-width: 900px) {
  .projects__pin { height: auto; display: block; }
  .projects__track { flex-direction: column; height: auto; transform: none !important; }
  .panel { width: auto !important; height: auto; padding: 80px var(--gutter) 40px; border-right: 0; border-bottom: 1px solid var(--line); }
  .panel--intro { padding-top: 110px; }
  .panel__scrollhint { display: none; }
  .project { grid-template-columns: 1fr; gap: 28px; }
  .project__figure { height: 320px; }
  .fig { padding: 20px; }
  .fig__svg { max-width: 300px; }
}

/* ---------- experience ---------- */
.xp { border-top: 1px solid var(--line); }
.xp__row { border-bottom: 1px solid var(--line); position: relative; isolation: isolate; }
.xp__row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fg);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease-out);
}
.xp__row.is-open::before { transform: scaleY(1); }
.xp__row.is-open { color: var(--bg); }
.xp__row { transition: color 0.4s var(--ease-out); }
.xp__head {
  width: 100%;
  display: grid; grid-template-columns: 200px 1.1fr 1fr 40px; gap: 24px; align-items: baseline;
  padding: 30px 12px;
  text-align: left;
}
.xp__dates { color: inherit; opacity: .6; }
.xp__role { font-family: var(--font-display); font-weight: 700; font-stretch: 90%; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -0.025em; line-height: 1; }
.xp__org { font-size: 18px; opacity: .75; }
.xp__plus { position: relative; width: 20px; height: 20px; justify-self: end; align-self: center; }
.xp__plus::before, .xp__plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; transition: transform 0.4s var(--ease-out); }
.xp__plus::before { width: 20px; height: 1.5px; transform: translate(-50%, -50%); }
.xp__plus::after { width: 1.5px; height: 20px; transform: translate(-50%, -50%); }
.xp__row.is-open .xp__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.xp__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-inout); }
.xp__row.is-open .xp__body { grid-template-rows: 1fr; }
.xp__inner { overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 0 12px; }
.xp__row.is-open .xp__inner { padding-bottom: 36px; }
.xp__points { display: grid; gap: 12px; font-size: 18px; line-height: 1.45; padding-top: 4px; }
.xp__points li { padding-left: 18px; position: relative; }
.xp__points li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--car); }
.xp__fig { display: grid; gap: 10px; align-content: start; }
.xp__figcap { opacity: .6; }
.pinn { width: 100%; height: auto; }
.pinn path { fill: none; stroke-width: 2; stroke-linecap: round; }
.meters { display: grid; gap: 12px; padding-top: 6px; }
.meter { display: grid; grid-template-columns: 80px 1fr 48px; align-items: center; gap: 12px; }
.meter i { display: block; height: 8px; position: relative; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px currentColor; }
.meter i::after { content: ''; position: absolute; inset: 0; background: var(--car); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out) .2s; }
.xp__row.is-open .meter i::after { transform: scaleX(var(--v)); }
.meter b { font-weight: 600; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip { border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; }
@media (max-width: 900px) {
  .xp__head { grid-template-columns: 1fr 32px; gap: 6px 16px; }
  .xp__dates { grid-column: 1; }
  .xp__role { grid-column: 1; }
  .xp__org { grid-column: 1; font-size: 16px; }
  .xp__plus { grid-column: 2; grid-row: 1 / span 3; }
  .xp__inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- teams ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  display: grid; grid-template-rows: 260px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), background-color 0.7s var(--ease-inout);
}
.card:hover { transform: translateY(-4px); }
.card__fig { position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.card__state { position: absolute; left: 20px; bottom: 16px; color: var(--fg-mute); }
.card__body { padding: 26px 26px 30px; display: grid; gap: 12px; align-content: start; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--fg-mute); }
.card__title { font-family: var(--font-display); font-weight: 700; font-stretch: 85%; font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.03em; line-height: 1; }
.card__body p:last-child { font-size: 18px; line-height: 1.45; color: var(--fg-mute); }
.sumo { width: 220px; height: 220px; color: var(--fg); }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave--1 { animation: wave1 8s linear infinite; }
.wave--2 { animation: wave2 12s linear infinite reverse; }
.wave--3 { animation: wave3 6s linear infinite; }
@keyframes wave1 { to { transform: translateX(-240px); } }
@keyframes wave2 { to { transform: translateX(-280px); } }
@keyframes wave3 { to { transform: translateX(-180px); } }
.card__fig--num { flex-direction: row; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.bignum { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 150px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.bignum__suffix { font-family: var(--font-display); font-weight: 600; font-size: 44px; color: var(--car); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .card { grid-template-rows: 220px 1fr; } .bignum { font-size: 110px; } }

/* ---------- play ---------- */
.play .section__head { margin-bottom: 24px; }
.play__list { border-top: 1px solid var(--line); }
.play__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
}
.play__word {
  font-family: var(--font-display); font-weight: 700; font-stretch: 80%;
  font-size: clamp(40px, 7vw, 112px); line-height: 1; letter-spacing: -0.035em;
  transition: transform 0.5s var(--ease-out), color 0.3s;
  display: inline-block;
}
.play__note { font-style: italic; font-size: clamp(16px, 1.4vw, 22px); color: var(--fg-mute); opacity: 0; transform: translateX(20px); transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out); text-align: right; flex-shrink: 0; max-width: 40%; }
.play__item:hover .play__word { transform: translateX(16px); color: var(--chl); }
.play__item:nth-child(3n+2):hover .play__word { color: var(--car); }
.play__item:nth-child(3n):hover .play__word { color: var(--blue); }
.play__item:hover .play__note { opacity: 1; transform: translateX(0); }
@media (max-width: 760px) { .play__item { flex-direction: column; align-items: flex-start; gap: 6px; } .play__note { opacity: 1; transform: none; max-width: none; text-align: left; } }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(64px, 10vh, 140px); }
.contact__title {
  font-family: var(--font-display); font-weight: 800; font-stretch: 75%;
  font-size: clamp(96px, 22vw, 360px); line-height: 0.8; letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-left: -0.04em;
  margin-bottom: 32px;
}
.contact__lead { max-width: 46ch; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; color: var(--fg-mute); margin-bottom: 40px; font-variation-settings: 'opsz' 24; }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.contact__gh { display: grid; gap: 4px; font-size: 20px; }
.contact__gh .mono { color: var(--fg-mute); }
.contact__gh span:last-child { position: relative; }
.contact__gh span:last-child::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.contact__gh:hover span:last-child::after { transform: scaleX(1); transform-origin: left; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0 32px; color: var(--fg-mute); }
.footer__grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- reveal helpers ---------- */
.reveal-words .word { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-words .word > span { display: inline-block; transform: translateY(110%); will-change: transform; }
.reveal-up { opacity: 0; transform: translateY(28px); }
.draw-on-view path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.draw-on-view.is-drawn path { animation: draw 0.9s var(--ease-out) forwards; }
.draw-on-view.is-drawn path:nth-child(2) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
  .hero__line-inner { transform: none; }
  .reveal-words .word > span { transform: none; }
  .reveal-up { opacity: 1; transform: none; }
  .hero__hint { opacity: 1; }
  .draw-on-view path { stroke-dashoffset: 0; }
  .cursor { display: none; }
  body { cursor: auto; }
}
