/* tanmaychandra.com — calm nature, minimal, growable.
   See .claude/skills/calm-nature-system for the reasoning behind every value. */

:root {
  /* a natural palette: paper, slate ink, mist, sage, clay. Soft greens and a soft clay red;
     nothing relies on red vs green alone (shape and lightness carry the meaning). */
  --paper:   #f1ece3;
  --paper-2: #f4f0e8;  /* the scorecard's sheet and its sticky labels */
  --ink:     #44505a;
  --ink-2:   #5e6872;  /* 4.8:1 on paper */
  --rule:    #dad3c6;
  --sun:     #f4d6b8;
  --ridge:   #c7cdd4;
  --far:     #aeb9c3;
  --mid:     #a7b59f;
  --green:   #9fb294;
  --fair:    #bfcaa4;
  --putt:    #d2dbb5;
  --sand:    #ecdfc6;
  --pond:    #bfd0d8;
  --pine:    #6c7d75;
  --canopy:  #8ea387;
  --rose:    #d6a08e;  /* soft clay. Wins, under par, the flag, link hover. */
  --rose-ink:#b9806f; /* the same clay, darker, for small text on paper */
  --cloud:   #faf6f0;

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body:    'Nunito Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'DM Mono', 'Courier New', monospace;

  --ease: cubic-bezier(.2, .6, .2, 1);
  --col: 880px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --gap: clamp(5rem, 12vw, 9rem);

  --py: 0; /* scroll position in px, set by js/main.js for parallax */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 10;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--sand); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- the page garden ---------------- */
.garden { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero, main, .foot { position: relative; z-index: 1; }

/* ---------------- hero ---------------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.6rem, 3.5vh, 2.6rem);
  padding: clamp(2rem, 6vh, 4rem) var(--pad) 3rem;
}
.scene { position: relative; width: min(100%, 1180px); }
.scene__crop { overflow: hidden; }
.panorama { width: 100%; height: auto; }
/* the beds sit exactly over the two side windows of the panorama (220 of 1340 units each) */
.wing { position: absolute; top: 0; height: 100%; width: 16.418%; touch-action: pan-y; }
.wing--left { left: 0; }
.wing--right { left: 83.582%; }
.wing__garden { position: absolute; inset: 0; width: 100%; height: 100%; }
.wing.is-playable { cursor: none; }

.hero__text { display: grid; gap: 1.1rem; justify-items: center; }
.name {
  font: 500 clamp(2.9rem, 7vw, 5rem)/.95 var(--display);
  font-variation-settings: 'SOFT' 100, 'opsz' 9;
  font-optical-sizing: auto;
  letter-spacing: -.015em;
  color: var(--ink);
  text-align: center;
}
.tagline {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .4rem 1.1rem;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.tagline span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-2); margin-right: 1.1rem; vertical-align: middle; opacity: .7; }

@media (max-width: 699px) {
  .hero { min-height: 0; padding: 1.25rem 0 2.5rem; gap: 0; }
  .scene { width: 100%; }
  /* crop the panorama to the centre window, edge to edge */
  .panorama { width: 167.5%; margin-left: -33.75%; }
  .wing { display: none; }
  /* the name straddles the picture's bottom edge, haloed in paper */
  .hero__text { margin-top: -3.2vw; padding: 0 var(--pad); gap: .9rem; }
  .name { font-size: clamp(2rem, 10.2vw, 2.9rem); white-space: nowrap; text-shadow: 0 0 2px var(--paper), 0 0 6px var(--paper), 0 0 14px var(--paper), 0 0 24px var(--paper), 0 0 32px var(--paper); }
}

/* ---------------- illustration ---------------- */
/* stroke weight thins with distance: foreground 2, near 1.5, mid 1.1, far .8 */
.panorama path, .panorama ellipse, .panorama circle, .panorama rect, .panorama line { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.panorama rect[fill] { stroke: none; }
.layer--far path { stroke-width: .8; }
.layer--mid path { stroke-width: 1.1; }
.layer--sky path, .layer--sky circle { stroke-width: 1.1; }
.ball-body, .ball-shadow, .tuft { stroke-width: 2; }
/* symbols: their paths are styled here, the <use> only lends a fill */
#pine path { stroke-width: 1.1; }
.panorama .trunk { fill: none; stroke-width: 2.2; }
.tree { fill: var(--canopy); }
.tree--far { fill: #80957f; }

.sun   { fill: var(--sun); }
.cloud path { fill: var(--cloud); }
.bird  { fill: none; stroke-width: 1; }
.ridge { fill: var(--ridge); }
.far   { fill: var(--far); }
.mid   { fill: var(--mid); }
.pines use { fill: var(--pine); }
.rough { fill: var(--green); }
.fairway { fill: var(--fair); }
.putt  { fill: var(--putt); }
.pond  { fill: var(--pond); }
.sand  { fill: var(--sand); }
.hole  { fill: var(--ink); stroke: none; }
.pin   { stroke: var(--ink); stroke-width: 2; }
.flag  { fill: var(--rose); transform-origin: 772px 282px; }
.tuft  { fill: none; }
.frame { fill: none; stroke: var(--ink); }
.frame--outer { stroke-width: 2; }
.frame--inner { stroke-width: 1; opacity: .7; }
#hatch line { stroke: var(--ink); stroke-width: 1; }
.shade { fill: url(#hatch); stroke: none; opacity: .12; }
.ripple { fill: none; stroke-width: 1; opacity: .7; }
.stem { fill: none; stroke-width: 1.4; }
.reeds rect { fill: #b09a7e; stroke-width: 1.2; }
.pin-shadow { fill: none; stroke-width: 1.2; opacity: .5; }
.hatchmarks path { fill: none; stroke-width: 1.1; opacity: .5; }
.wild circle { fill: var(--sand); stroke-width: 1.2; }
.ball-body { fill: #fcfaf5; }
.ball-shadow { fill: rgba(68, 80, 90, .2); stroke: none; }
.dimples circle { fill: rgba(68, 80, 90, .2); stroke: none; }
.ball.is-holed { opacity: 0; transition: opacity .3s; }

/* parallax: sky and far layers slide by a fraction of scroll */
.layer--sky  { transform: translateY(calc(var(--py) * -0.08px)); }
.layer--far  { transform: translateY(calc(var(--py) * -0.04px)); }

/* idle motion: only the clouds drift and the flag flutters */
@keyframes drift   { to { translate: 26px 0; } }
@keyframes flutter { from { transform: skewX(-4deg); } to { transform: skewX(4deg); } }
.cloud--a { animation: drift 52s ease-in-out infinite alternate; }
.cloud--b { animation: drift 68s ease-in-out infinite alternate-reverse; }
.cloud--c { animation: drift 44s ease-in-out infinite alternate; }
.flag     { animation: flutter 2.6s ease-in-out infinite alternate; }

/* ---------------- sections ---------------- */
main { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-top: var(--gap); }

.section__title {
  font: 400 clamp(1.8rem, 3.2vw, 2.4rem)/1.1 var(--display);
  font-variation-settings: 'SOFT' 100, 'opsz' 9;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section__title::after { content: ''; display: block; width: 44px; height: 1px; background: var(--ink); opacity: .5; margin-top: .9rem; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
.reveal.is-in .section__title::after { transform: none; }
.section__lead { margin-top: 1.5rem; max-width: 56ch; font-size: 1.08rem; line-height: 1.6; }

.sub { margin-top: 3.4rem; font: italic 400 1.3rem/1.2 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 9; color: var(--ink); }

.stats {
  margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.stats dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.stats dd { font: 500 clamp(2.2rem, 4vw, 2.9rem)/1.05 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 9; margin-top: .3rem; font-variant-numeric: lining-nums; }
.stats div:first-child dd { color: var(--rose); }
.stats div { display: grid; align-content: end; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.js .reveal .stats div { opacity: 0; transform: translateY(8px); }
.js .reveal.is-in .stats div { opacity: 1; transform: none; }
.js .reveal.is-in .stats div:nth-child(2) { transition-delay: .08s; }
.js .reveal.is-in .stats div:nth-child(3) { transition-delay: .16s; }
.js .reveal.is-in .stats div:nth-child(4) { transition-delay: .24s; }

/* ---------------- scorecard ---------------- */
.scorecard-host { margin-top: 1.2rem; }
.card-wrap {
  position: relative;
  padding: 1.3rem 0 .9rem;  /* room above the header for the vine's blooms */
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-2);
  overflow: hidden;
}
.card-wrap::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--rule); border-radius: 2px; pointer-events: none; opacity: .7; z-index: 4; }
.vine { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
/* the sheet scrolls sideways like a real card: trackpad, touch, or drag. No scrollbar. */
.scroller { position: relative; z-index: 1; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; cursor: grab; }
.scroller::-webkit-scrollbar { display: none; }
.scroller.is-dragging { cursor: grabbing; user-select: none; }
/* a fade on the right while there is more to see */
.card-wrap::after { content: ''; position: absolute; top: 6px; bottom: 6px; right: 6px; width: 3rem; z-index: 2; pointer-events: none; background: linear-gradient(270deg, var(--paper-2), rgba(244, 240, 232, 0)); transition: opacity .4s; }
.card-wrap.at-end::after { opacity: 0; }

.scorecard { --colw: 5.7rem; border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-family: var(--mono); font-size: .84rem; }
.scorecard th, .scorecard td { width: var(--colw, 5.7rem); min-width: var(--colw, 5.7rem); padding: .5rem .25rem; text-align: center; border-bottom: 1px solid var(--rule); vertical-align: middle; font-weight: 400; }
.scorecard th[scope="row"], .scorecard .sc__corner { position: sticky; left: 0; z-index: 2; width: 5.4rem; min-width: 5.4rem; text-align: left; padding-left: 1.7rem; background: var(--paper-2); font: 500 .7rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: box-shadow .3s; }
.card-wrap.is-scrolled .scorecard th[scope="row"], .card-wrap.is-scrolled .scorecard .sc__corner { box-shadow: 10px 0 14px -10px rgba(68, 80, 90, .22); }
.scorecard thead th { vertical-align: bottom; padding: .4rem .25rem .7rem; border-bottom: 1px solid var(--ink); }
.sc__n i { font-style: normal; color: var(--rose-ink); letter-spacing: .08em; margin-left: .3rem; }
.scorecard thead th button { all: unset; cursor: pointer; display: block; width: 100%; text-align: center; border-radius: 3px; }
.scorecard thead th button:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.sc__n { display: block; font: 400 .66rem/1 var(--mono); color: var(--ink-2); margin-bottom: .45rem; }
.sc__name { display: block; font: 500 .74rem/1.25 var(--body); color: var(--ink); overflow-wrap: anywhere; transition: color .3s; }
.sc__date { display: block; font: 400 .64rem/1 var(--mono); color: var(--ink-2); margin-top: .35rem; white-space: nowrap; }
.scorecard tbody tr:last-child td, .scorecard tbody tr:last-child th { border-bottom: 0; }

/* score boxes in scorecard notation: rose circle under par, slate square over, dashed when even */
.s { display: inline-grid; place-items: center; min-width: 1.85rem; height: 1.85rem; padding: 0 .3rem; border: 1px solid transparent; border-radius: 50%; color: var(--ink); line-height: 1; transition: transform .35s var(--ease); }
.s.under { border-color: var(--rose); color: var(--rose-ink); }
.s.over  { border-color: var(--ink-2); border-radius: 3px; color: var(--ink-2); }
.s.even  { border-color: var(--rule); border-style: dashed; }
.s.plain { border-color: var(--rule); }
.s.text  { border-color: var(--rule); border-radius: 3px; font-size: .62rem; letter-spacing: .06em; color: var(--ink-2); }
.sc__tot td { font-weight: 500; white-space: nowrap; }
.sc__tot small, .ev__total small { display: inline-block; padding: .1rem .4rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); font-size: .64rem; vertical-align: middle; margin-left: .25rem; }
.sc__tot small.under, .ev__total small.under { color: var(--rose-ink); border-color: rgba(214, 160, 142, .6); }
.sc__fin td { font: 500 1.35rem/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 9; padding-top: .7rem; padding-bottom: .7rem; }
.sc__fin td .disc { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--rose); color: #fbf8f3; border: 1px solid var(--ink); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(214, 160, 142, .6); }
.sc__fld td { color: var(--ink-2); font-size: .76rem; }
.scorecard td.win, .scorecard th.win { background: rgba(214, 160, 142, .11); }
.scorecard th.win .sc__name { color: var(--rose-ink); }
.scorecard td.is-col, .scorecard th.is-col { background: rgba(68, 80, 90, .06); }
.scorecard th.win.is-col, .scorecard td.win.is-col { background: rgba(214, 160, 142, .2); }
.scorecard th.is-col .sc__name { color: var(--rose-ink); }
.scorecard td.is-col .s { transform: translateY(-2px); }
.scorecard thead th { cursor: pointer; }

/* columns arrive one by one when the card scrolls into view */
.js .scorecard th[data-col], .js .scorecard td[data-col] { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .35s; }
.js .scorecard.is-in th[data-col], .js .scorecard.is-in td[data-col] { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms); }
.js .scorecard.is-in.is-settled th[data-col], .js .scorecard.is-in.is-settled td[data-col] { transition-delay: 0ms; }

.table-note { margin-top: 1rem; font-size: .8rem; color: var(--ink-2); max-width: 64ch; }

/* ---------------- events as cards (phones, and without js) ---------------- */
.events { border-top: 1px solid var(--rule); }
.ev {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'name name fin' 'date date fin' 'rounds total field';
  column-gap: .6rem; row-gap: .15rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left .35s var(--ease);
}
.ev:hover, .ev:focus-visible { padding-left: .4rem; }
.ev:focus-visible { outline-offset: -1.5px; }
.ev__name { grid-area: name; font-weight: 500; line-height: 1.3; }
.ev__date { grid-area: date; font: 400 .74rem/1.3 var(--mono); color: var(--ink-2); }
.ev__date:empty { display: none; }
.ev__rounds { grid-area: rounds; font: 400 .8rem/1.5 var(--mono); color: var(--ink-2); margin-top: .2rem; }
.ev__rounds::after { content: '='; margin-left: .6rem; opacity: .6; }
.ev__total { grid-area: total; align-self: end; font: 400 .8rem/1.5 var(--mono); margin-top: .2rem; white-space: nowrap; }
.ev__fin { grid-area: fin; align-self: center; justify-self: center; font: 500 1.6rem/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 9; min-width: 2.6rem; text-align: center; display: grid; place-items: center; }
.ev__field { grid-area: field; align-self: end; justify-self: center; font: 400 .66rem/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.ev.win .ev__fin { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--rose); color: #fbf8f3; border: 1px solid var(--ink); }
.ev.win .ev__name { color: var(--rose-ink); }
.scorecard-host.has-table .events { display: none; }
@media (max-width: 699px) {
  .scorecard { --colw: 5.2rem; }
  .scorecard th[scope="row"], .scorecard .sc__corner { width: 4.6rem; min-width: 4.6rem; padding-left: 1.2rem; }
}

/* ---------------- lists, links, footer ---------------- */
.plain { margin-top: 1.4rem; max-width: 58ch; }
.plain li { padding: .6rem 0; border-bottom: 1px solid var(--rule); transition: padding-left .35s var(--ease); }
.plain li:hover { padding-left: .4rem; }
.plain li:last-child { border-bottom: 0; }
#work .plain li { display: grid; grid-template-columns: 10rem 1fr; gap: 0 1rem; }
.plain li span { font-weight: 500; }
.aside { margin-top: 1.6rem; font-size: .88rem; color: var(--ink-2); }
.sub + .aside { margin: .4rem 0 1rem; max-width: 56ch; }

.links { margin-top: 1.4rem; display: flex; gap: 2rem; }
.links a { position: relative; font-weight: 500; padding-bottom: .15rem; transition: color .3s; }
.links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 1px; background: currentColor; transform-origin: left; transition: transform .4s var(--ease); }
.links a:hover { color: var(--rose); }
.links a:hover::after { transform: scaleX(1.05); }

.foot { max-width: var(--col); margin: var(--gap) auto 0; padding: 2rem var(--pad) 3rem; font-size: .8rem; color: var(--ink-2); border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot__clear { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--rule); transition: color .3s; }
.foot__clear:hover { color: var(--ink); }
html:not(.has-garden) .foot__clear { display: none; }

/* ---------------- round card ---------------- */
.card {
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  padding: 2.4rem 2.4rem 2.2rem;
  width: min(92vw, 480px);
  box-shadow: 0 30px 80px rgba(68, 80, 90, .18), 0 2px 6px rgba(68, 80, 90, .08);
  position: fixed; inset: 0; margin: auto; height: fit-content; max-height: 90vh; overflow: auto;
}
.card::backdrop { background: rgba(68, 80, 90, .28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--rule); border-radius: 2px; pointer-events: none; }
.card[open] { animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card__close { position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; color: var(--ink-2); display: grid; place-items: center; border-radius: 50%; transition: color .3s, background-color .3s; }
.card__close:hover { color: var(--ink); background: rgba(68, 80, 90, .08); }
.card__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.card__kicker { font: 500 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.card__title { margin-top: .7rem; font: 500 1.7rem/1.1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 9; letter-spacing: -.01em; color: var(--ink); padding-right: 2rem; }
.card__venue { margin-top: .5rem; font-size: .88rem; color: var(--ink-2); }
.card__venue:empty { display: none; }
.card__rounds { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.card__rounds li { display: grid; grid-template-columns: 4.2rem 1fr auto; align-items: baseline; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--rule); font-size: .9rem; animation: popIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.card__rounds li:last-child { border-bottom: 1px solid var(--rule); }
.card__rounds .r-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.card__rounds .r-score { font: 500 1.5rem/1 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 9; }
.card__rounds .r-par { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); }
.card__rounds .r-par.under { color: var(--rose-ink); }
.card__facts { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; animation: popIn .5s var(--ease) both; animation-delay: .35s; }
.card__facts dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.card__facts dd { margin-top: .2rem; font: 500 1.2rem/1.2 var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 9; }
.card__facts dd:empty::before { content: '–'; color: var(--ink-2); }

/* ---------------- cursor ---------------- */
.cursor { display: none; }
@media (pointer: fine) {
  .js body, .js a, .js button, .js .ev, .js .scorecard thead th, .js .scroller, .js .scroller.is-dragging { cursor: none; }
  .js .cursor {
    display: block;
    position: fixed; left: 0; top: 0; z-index: 50;
    width: 30px; height: 30px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    translate: -50% -50%;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: width .35s var(--ease), height .35s var(--ease), background-color .35s, border-color .35s, opacity .4s;
  }
  .js .cursor::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--ink); translate: -50% -50%;
    transition: background-color .35s, scale .35s var(--ease);
  }
  .js .cursor.is-on { opacity: 1; }
  .js .cursor.is-link { width: 46px; height: 46px; border-color: var(--rose); background: rgba(214, 160, 142, .2); }
  .js .cursor.is-link::after { background: var(--rose); scale: 1.4; }
  .js .cursor.is-seed { width: 18px; height: 18px; border-style: dashed; border-color: #8ea387; }
  .js .cursor.is-seed::after { background: #8ea387; scale: 1.6; }
  .js .cursor.is-down { width: 22px; height: 22px; }
}

/* ---------------- reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .scene { opacity: 0; transform: translateY(10px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .hero .name, .js .hero .tagline { opacity: 0; transition: opacity 1s var(--ease) .5s; }
.js.is-ready .hero .scene, .js.is-ready .hero .name, .js.is-ready .hero .tagline { opacity: 1; transform: none; }

@media (max-width: 600px) {
  #work .plain li { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .card { padding: 2rem 1.4rem 1.6rem; } .card__rounds li { grid-template-columns: 4.4rem 1fr auto; gap: .6rem; } .card__rounds .r-label { white-space: nowrap; } .card__facts { gap: .8rem; } .card__facts dd { font-size: 1.05rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud--a, .cloud--b, .cloud--c, .flag { animation: none; }
  .layer--sky, .layer--far { transform: none; }
  .js .reveal, .js .hero .scene, .js .hero .name, .js .hero .tagline { opacity: 1; transform: none; transition: none; }
  .js .scorecard th[data-col], .js .scorecard td[data-col] { opacity: 1; transform: none; transition: none; }
}
