/* ══════════════════════════════════════════════════════════
   ruthgeller.com
   Golden hour. Warm cream paper, Vivaly's sunny palette,
   sticker-cut cards, polaroids and a little handwriting.
   Night mode is the sky just after sunset.
   Shared by index.html and press.html.
   ══════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  /* Vivaly's brand colors, plus lilac, mint and peach */
  --sun: #F5D547;
  --coral: #F18FA0;
  --aqua: #5BB4DC;
  --lilac: #B49CFB;
  --mint: #8FD6B0;
  --peach: #F6AC6A;

  --bg: #FFF8EE;
  --bg-2: #FCEBD5;
  --surface: #FFFDF9;
  --ink: #221B16;
  --ink-2: #43392F;
  --muted: #6B5D51;
  --faint: #B5A696;
  --line: rgb(34 27 22 / .12);
  --line-2: rgb(34 27 22 / .22);
  --edge: #221B16;            /* sticker outlines */
  --pop: #221B16;             /* hard offset shadows */
  --accent: #C93A67;          /* text-safe pink for links and notes */
  --live: #1E9A59;
  --scrim: rgb(34 27 22 / .45);

  --sun-soft: #FDF0BC;
  --coral-soft: #FCDFE4;
  --aqua-soft: #D8EEF8;
  --lilac-soft: #EAE3FF;
  --mint-soft: #D9F3E5;
  --peach-soft: #FDE5CE;

  /* Text that sits on bright color, in both themes */
  --dark: #221B16;
  --dark-2: #3B3129;
  --paper: #FFFDF8;

  --c: var(--sun);
  --c-soft: var(--sun-soft);

  --glow-1: rgb(245 213 71 / .6);
  --glow-2: rgb(241 143 160 / .45);
  --glow-3: rgb(91 180 220 / .28);
  --glow-4: rgb(180 156 251 / .32);
  --dots: radial-gradient(rgb(34 27 22 / .16) 1.1px, transparent 1.5px) 0 0 / 26px 26px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .09 0 0 0 0 .05 0 0 0 .7 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-o: .32;

  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --i-ext: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 4.5h6.5V11M11.5 4.5l-7 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h11M9 3.5L13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1C12.9 6.6 17.4 11.1 23 12 17.4 12.9 12.9 17.4 12 23 11.1 17.4 6.6 12.9 1 12 6.6 11.1 11.1 6.6 12 1Z'/%3E%3C/svg%3E");

  --maxw: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --gap: clamp(20px, 3vw, 36px);
  --sec-y: clamp(84px, 10vw, 136px);
  --nav-h: 62px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --boing: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

/* Night follows the system until the toggle is used */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17122B;
    --bg-2: #211A3D;
    --surface: #221B42;
    --ink: #FFF3E3;
    --ink-2: #E6DCEB;
    --muted: #B6A9CF;
    --faint: #6F6493;
    --line: rgb(255 243 227 / .12);
    --line-2: rgb(255 243 227 / .24);
    --edge: #FFF3E3;
    --pop: #07050F;
    --accent: #FFA3BD;
    --scrim: rgb(5 3 12 / .7);

    --sun-soft: color-mix(in srgb, #F5D547 17%, #1C1636);
    --coral-soft: color-mix(in srgb, #F18FA0 19%, #1C1636);
    --aqua-soft: color-mix(in srgb, #5BB4DC 19%, #1C1636);
    --lilac-soft: color-mix(in srgb, #B49CFB 21%, #1C1636);
    --mint-soft: color-mix(in srgb, #8FD6B0 17%, #1C1636);
    --peach-soft: color-mix(in srgb, #F6AC6A 18%, #1C1636);

    --glow-1: rgb(241 143 160 / .3);
    --glow-2: rgb(180 156 251 / .3);
    --glow-3: rgb(91 180 220 / .2);
    --glow-4: rgb(246 172 106 / .2);
    --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23FFF3E3'%3E%3Ccircle cx='18' cy='26' r='1.3'/%3E%3Ccircle cx='96' cy='12' r='.8' opacity='.6'/%3E%3Ccircle cx='170' cy='44' r='1.1' opacity='.8'/%3E%3Ccircle cx='220' cy='120' r='.9' opacity='.5'/%3E%3Ccircle cx='132' cy='98' r='1.5'/%3E%3Ccircle cx='52' cy='132' r='.8' opacity='.7'/%3E%3Ccircle cx='190' cy='196' r='1.2' opacity='.8'/%3E%3Ccircle cx='84' cy='214' r='1' opacity='.6'/%3E%3Ccircle cx='12' cy='182' r='.7' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 240px;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .6 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
    --grain-o: .22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17122B;
  --bg-2: #211A3D;
  --surface: #221B42;
  --ink: #FFF3E3;
  --ink-2: #E6DCEB;
  --muted: #B6A9CF;
  --faint: #6F6493;
  --line: rgb(255 243 227 / .12);
  --line-2: rgb(255 243 227 / .24);
  --edge: #FFF3E3;
  --pop: #07050F;
  --accent: #FFA3BD;
  --scrim: rgb(5 3 12 / .7);

  --sun-soft: color-mix(in srgb, #F5D547 17%, #1C1636);
  --coral-soft: color-mix(in srgb, #F18FA0 19%, #1C1636);
  --aqua-soft: color-mix(in srgb, #5BB4DC 19%, #1C1636);
  --lilac-soft: color-mix(in srgb, #B49CFB 21%, #1C1636);
  --mint-soft: color-mix(in srgb, #8FD6B0 17%, #1C1636);
  --peach-soft: color-mix(in srgb, #F6AC6A 18%, #1C1636);

  --glow-1: rgb(241 143 160 / .3);
  --glow-2: rgb(180 156 251 / .3);
  --glow-3: rgb(91 180 220 / .2);
  --glow-4: rgb(246 172 106 / .2);
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23FFF3E3'%3E%3Ccircle cx='18' cy='26' r='1.3'/%3E%3Ccircle cx='96' cy='12' r='.8' opacity='.6'/%3E%3Ccircle cx='170' cy='44' r='1.1' opacity='.8'/%3E%3Ccircle cx='220' cy='120' r='.9' opacity='.5'/%3E%3Ccircle cx='132' cy='98' r='1.5'/%3E%3Ccircle cx='52' cy='132' r='.8' opacity='.7'/%3E%3Ccircle cx='190' cy='196' r='1.2' opacity='.8'/%3E%3Ccircle cx='84' cy='214' r='1' opacity='.6'/%3E%3Ccircle cx='12' cy='182' r='.7' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 240px 240px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .9 0 0 0 .6 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --grain-o: .22;
  color-scheme: dark;
}

/* Color helpers: set --c (bright) and --c-soft (tint) for a card or section */
.c-sun,   .sec--sun   { --c: var(--sun);   --c-soft: var(--sun-soft); }
.c-coral, .sec--coral { --c: var(--coral); --c-soft: var(--coral-soft); }
.c-aqua,  .sec--aqua  { --c: var(--aqua);  --c-soft: var(--aqua-soft); }
.c-lilac, .sec--lilac { --c: var(--lilac); --c-soft: var(--lilac-soft); }
.c-mint,  .sec--mint  { --c: var(--mint);  --c-soft: var(--mint-soft); }
.c-peach, .sec--peach { --c: var(--peach); --c-soft: var(--peach-soft); }

/* ─── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 30px);
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Film grain over the page, under the overlays */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  background: var(--grain);
  opacity: var(--grain-o);
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
b, strong { font-weight: 700; }
kbd { font: inherit; }
svg { flex: none; fill: currentColor; }
.nb { white-space: nowrap; }
::selection { background: var(--sun); color: var(--dark); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
body.locked { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  padding: 12px var(--pad) 0;
  pointer-events: none;
}
.nav__in {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  max-width: var(--maxw); height: var(--nav-h);
  margin-inline: auto;
  padding: 0 10px 0 10px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.stuck .nav__in { border-color: var(--edge); box-shadow: 3px 3px 0 var(--pop); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--edge);
  background: var(--sun); color: var(--dark);
  font: italic 400 19px/1 var(--serif);
  letter-spacing: -.02em;
  transition: rotate .5s var(--boing), background-color .3s var(--ease);
}
.brand:hover .brand__mark { rotate: -14deg; background: var(--coral); }
.brand__name { font: 400 23px/1 var(--serif); letter-spacing: -.01em; }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { background: var(--sun-soft); color: var(--ink); }
.nav__links a.on,
.nav__links a[aria-current="page"] { background: var(--ink); color: var(--bg); }

.nav__tools { display: flex; align-items: center; gap: 6px; }
.kbtn, .ibtn, .burger {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; border: 1.5px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.kbtn { gap: 3px; padding: 0 13px; font-size: 13px; font-weight: 700; }
.ibtn, .burger { width: 40px; }
.kbtn:hover, .ibtn:hover, .burger:hover { color: var(--ink); border-color: var(--edge); background: var(--sun-soft); }
.ibtn svg { width: 17px; height: 17px; fill: none; }

.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

.burger { display: none; flex-direction: column; gap: 5px; }
.burger i {
  display: block; width: 15px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease);
}
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav__m {
  pointer-events: auto;
  position: absolute; top: calc(100% + 8px); left: var(--pad); right: var(--pad);
  display: none;
  padding: 8px;
  border: 2px solid var(--edge); border-radius: 26px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--pop);
  visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98);
  transform-origin: top center;
  transition: opacity .25s var(--ease), transform .35s var(--boing), visibility 0s linear .35s;
}
.nav__m.open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .25s var(--ease), transform .35s var(--boing), visibility 0s;
}
.nav__m-in { display: grid; }
.nav__m a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 18px;
  font: 400 28px/1.15 var(--serif); color: var(--ink);
  transition: background-color .2s var(--ease);
}
.nav__m a::after {
  content: ""; width: 14px; height: 14px;
  background: var(--c);
  -webkit-mask: var(--i-star) center / contain no-repeat;
          mask: var(--i-star) center / contain no-repeat;
}
.nav__m a:nth-child(6n+1) { --c: var(--sun); }
.nav__m a:nth-child(6n+2) { --c: var(--coral); }
.nav__m a:nth-child(6n+3) { --c: var(--aqua); }
.nav__m a:nth-child(6n+4) { --c: var(--lilac); }
.nav__m a:nth-child(6n+5) { --c: var(--mint); }
.nav__m a:nth-child(6n+6) { --c: var(--peach); }
.nav__m a:hover { background: var(--sun-soft); }
.nav__m a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ─── Buttons and arrows ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px;
  border: 2px solid var(--edge); border-radius: 999px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 3px 3px 0 var(--pop);
  transition: translate .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { translate: -2px -2px; box-shadow: 5px 5px 0 var(--pop); }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--pop); }
.btn--solid { background: var(--coral); color: var(--dark); }
.btn--solid:hover { background: var(--sun); }
.btn--ghost { background: var(--surface); color: var(--ink); }

.ext::after,
.int::after {
  content: "";
  display: inline-block; flex: none;
  width: .8em; height: .8em; margin-left: .4em;
  background: currentColor;
  -webkit-mask: var(--i-ext) center / contain no-repeat;
          mask: var(--i-ext) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.int::after { -webkit-mask-image: var(--i-arrow); mask-image: var(--i-arrow); }
.ext:hover::after { transform: translate(2px, -2px); }
.int:hover::after { transform: translateX(3px); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero, .pagehead {
  position: relative; isolation: isolate;
  overflow-x: clip;
  padding-top: clamp(28px, 5vw, 64px);
}
.hero__bg {
  position: absolute; z-index: -1;
  inset: calc(-1 * (var(--nav-h) + 12px)) 0 0 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__bg::before {
  content: "";
  position: absolute; inset: -12% -8% -6% -8%;
  background:
    radial-gradient(closest-side, var(--glow-1), transparent) 88% 14% / 52% 62% no-repeat,
    radial-gradient(closest-side, var(--glow-2), transparent) 100% 64% / 46% 56% no-repeat,
    radial-gradient(closest-side, var(--glow-3), transparent) 4% 92% / 44% 52% no-repeat,
    radial-gradient(closest-side, var(--glow-4), transparent) 30% 4% / 40% 46% no-repeat;
  animation: drift 20s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--dots);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 34% 42%, #000 18%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 62% at 34% 42%, #000 18%, transparent 72%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px 7px 11px;
  border: 1.5px solid var(--edge); border-radius: 999px;
  background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: 2px 2px 0 var(--pop);
  rotate: -2deg;
}
.eyebrow svg { width: 17px; height: 17px; color: var(--coral); }
.eyebrow a {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.eyebrow a:hover { color: var(--accent); }
.eyebrow .sep { color: var(--faint); }

.hero__name {
  margin: clamp(18px, 2.4vw, 28px) 0 clamp(26px, 3.2vw, 38px);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(76px, 13.2vw, 184px);
  line-height: .86;
  letter-spacing: -.03em;
  color: var(--ink);
}
.hero__name .w {
  display: inline-block;
  overflow: hidden;
  padding: .1em .16em .12em .02em;
  margin: -.1em -.16em -.12em -.02em;
  vertical-align: top;
}
.hero__name .w > span { display: inline-block; position: relative; }
.hero__name .w--2 { padding-bottom: .34em; margin-bottom: -.34em; }
.hero__name .it { font-style: italic; }
.squiggle {
  position: absolute; left: 0; bottom: -.16em;
  width: 100%; height: auto;
  overflow: visible;
  fill: none; stroke: var(--coral); stroke-width: 4.5; stroke-linecap: round;
}

.hero__lede {
  max-width: 21em;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: -.018em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hl {
  --hl: #F9E27E;
  padding: 0 .08em;
  font-weight: 700; color: var(--ink);
  background: linear-gradient(var(--hl), var(--hl)) 0 88% / 100% .42em no-repeat;
  border-radius: 4px;
  transition: background-size .35s var(--ease);
}
.hl:hover { background-size: 100% 1.2em; }
.hl--mint { --hl: #AEE6C9; }
:root[data-theme="dark"] .hl { --hl: rgb(245 213 71 / .4); }
:root[data-theme="dark"] .hl--mint { --hl: rgb(143 214 176 / .4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hl { --hl: rgb(245 213 71 / .4); }
  :root:not([data-theme="light"]) .hl--mint { --hl: rgb(143 214 176 / .4); }
}
.hero__sub {
  max-width: 44ch; margin-top: 18px;
  font-size: 16.5px; line-height: 1.6; color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Portrait: a taped-in polaroid with a spinning badge */
.portrait { position: relative; justify-self: end; width: min(100%, 390px); }
.polaroid {
  position: relative;
  padding: 14px 14px 60px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(34 27 22 / .1), 0 26px 50px -22px rgb(84 40 10 / .45);
  rotate: 3deg;
  transition: rotate .6s var(--boing), scale .6s var(--boing);
}
.portrait:hover .polaroid { rotate: 0deg; scale: 1.02; }
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 2px;
  background: #EFE6DA;
}
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 700 28px/1 var(--hand); color: var(--dark);
}
.polaroid figcaption svg { width: 20px; height: 20px; color: var(--coral); rotate: 12deg; }

.tape {
  position: absolute; z-index: 2;
  width: 118px; height: 32px;
  background:
    repeating-linear-gradient(-45deg, rgb(255 255 255 / .35) 0 6px, transparent 6px 12px),
    rgb(241 143 160 / .78);
  box-shadow: 0 1px 2px rgb(34 27 22 / .12);
}
.tape--a { top: 6px; left: -34px; rotate: -38deg; }
.tape--b { top: 6px; right: -34px; rotate: 38deg; background: repeating-linear-gradient(45deg, rgb(255 255 255 / .35) 0 6px, transparent 6px 12px), rgb(91 180 220 / .72); }

.spin {
  position: absolute; left: -48px; bottom: 44px; z-index: 3;
  display: grid; place-items: center;
  width: 124px; height: 124px; border-radius: 50%;
  border: 2px solid var(--edge);
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--pop);
  rotate: -10deg;
}
.spin svg.spin__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.spin text { font: 700 10.4px/1 var(--sans); letter-spacing: .18em; fill: var(--dark); }
.spin__core { width: 32px; height: 32px; color: var(--coral); animation: twinkle 3s ease-in-out infinite; }

.spark { position: absolute; color: var(--c, var(--sun)); animation: twinkle 2.6s ease-in-out infinite; }
.spark--1 { top: -22px; right: 24px; width: 34px; height: 34px; --c: var(--lilac); }
.spark--2 { top: 26px; right: -20px; width: 22px; height: 22px; --c: var(--aqua); animation-delay: .9s; }
.spark--3 { top: -4px; right: -26px; width: 14px; height: 14px; --c: var(--coral); animation-delay: 1.6s; }

/* Featured in: a strip of tape that never stops scrolling */
.ticker {
  position: relative; z-index: 2;
  display: flex; align-items: stretch;
  width: 106%;
  margin: clamp(60px, 7.4vw, 104px) 0 0 -3%;
  border-block: 2px solid var(--dark);
  background: var(--sun);
  color: var(--dark);
  rotate: -2deg;
  box-shadow: 0 5px 0 rgb(34 27 22 / .16);
}
.ticker__label {
  position: relative; z-index: 1;
  flex: none; display: flex; align-items: center;
  padding: 0 20px 0 calc(3vw + var(--pad));
  background: var(--dark); color: var(--sun);
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
:root[data-theme="dark"] .ticker__label { background: var(--coral); color: var(--dark); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ticker__label { background: var(--coral); color: var(--dark); }
}
.ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px);
          mask-image: linear-gradient(90deg, transparent, #000 48px);
}
.ticker__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; justify-content: space-around; min-width: 110vw; }
.ticker__list li { display: flex; align-items: center; }
.ticker__list a {
  padding: 15px 0 13px;
  font: italic 400 clamp(26px, 2.6vw, 34px)/1 var(--serif);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.ticker__list a:hover { color: #A62B55; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ticker__list li::after {
  content: "";
  width: 22px; height: 22px; margin: 0 28px;
  background: var(--c);
  -webkit-mask: var(--i-star) center / contain no-repeat;
          mask: var(--i-star) center / contain no-repeat;
}
.ticker__list li:nth-child(3n+1) { --c: var(--coral); }
.ticker__list li:nth-child(3n+2) { --c: var(--dark); }
.ticker__list li:nth-child(3n+3) { --c: #7E5FE6; }

/* ─── Sections ───────────────────────────────────────────── */
.sec { position: relative; padding-top: var(--sec-y); }
.sec--end { padding-bottom: var(--sec-y); }

.sh {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 25em);
  align-items: end;
  gap: 16px 22px;
  margin-bottom: clamp(34px, 4.4vw, 56px);
}
.sh__no {
  align-self: center;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid var(--edge);
  background: var(--c);
  color: var(--dark);
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 3px 3px 0 var(--pop);
  rotate: -9deg;
}
.sh__title {
  font: 400 clamp(52px, 7vw, 96px)/.9 var(--serif);
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.sh__title::after {
  content: "";
  display: inline-block;
  width: .3em; height: .3em;
  margin-left: .12em;
  vertical-align: .56em;
  background: var(--c);
  -webkit-mask: var(--i-star) center / contain no-repeat;
          mask: var(--i-star) center / contain no-repeat;
}
.sh__sub {
  justify-self: end;
  max-width: 25em;
  padding-bottom: .5em;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* A sticker card: outlined, hard shadow, springs on hover */
.card {
  position: relative;
  border: 2px solid var(--edge);
  border-radius: 26px;
  box-shadow: 5px 5px 0 var(--pop);
  transition: translate .35s var(--boing), rotate .35s var(--boing), box-shadow .35s var(--ease);
}
.card:hover { translate: -2px -4px; box-shadow: 7px 9px 0 var(--pop); }

/* Bright cards keep dark text in both themes */
.bright {
  --ink: var(--dark);
  --ink-2: var(--dark-2);
  --muted: var(--dark-2);
  --surface: var(--paper);
  --line: rgb(34 27 22 / .16);
  --line-2: rgb(34 27 22 / .3);
  color: var(--ink-2);
}

/* ─── Ventures ───────────────────────────────────────────── */
.ventures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}
.vcard {
  display: flex; flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 34px;
  box-shadow: 6px 6px 0 var(--pop);
}
.vcard:hover { rotate: -.6deg; box-shadow: 9px 10px 0 var(--pop); }
.vcard + .vcard:hover { rotate: .6deg; }
.vcard--vivaly { background: linear-gradient(150deg, #FCEB9C 0%, var(--sun) 34%, #F6B7A6 72%, var(--coral) 100%); }
.vcard--rise { background: linear-gradient(150deg, #D8F5E4 0%, var(--mint) 40%, #A5D8EC 78%, var(--aqua) 100%); }
.vcard__art {
  position: absolute; top: -34px; right: -34px;
  width: 190px; height: 190px;
  color: rgb(255 255 255 / .55);
  pointer-events: none;
}
.vcard > :not(.vcard__art),
.hello > :not(.hello__art) { position: relative; }   /* keep the doodles behind the words */
.vcard--vivaly .vcard__art { animation: spin 40s linear infinite; }
.vcard--rise .vcard__art { top: -18px; right: -22px; width: 160px; height: 160px; rotate: 14deg; color: rgb(255 255 255 / .5); }

.tag {
  position: relative;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px 6px 11px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.tag::before {
  content: ""; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.tag--live::before { background: var(--live); box-shadow: none; animation: ping 2.2s var(--ease) infinite; }

.vcard__name {
  margin-top: 20px;
  font: 400 clamp(52px, 5.6vw, 76px)/.9 var(--serif);
  letter-spacing: -.03em;
  color: var(--ink);
}
.vcard__role { margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.vcard__desc {
  max-width: 54ch; margin-top: 16px;
  font-size: 16.5px; line-height: 1.62; color: var(--ink-2);
  text-wrap: pretty;
}

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto; padding-top: 26px;
}
.facts > div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px;
  padding: 12px 14px 13px;
  border: 1.5px solid var(--ink); border-radius: 18px;
  background: var(--surface);
}
.facts dt { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--muted); }
.facts dd {
  font: 400 clamp(24px, 2.3vw, 30px)/1.05 var(--serif);
  color: var(--ink);
  font-variant-numeric: lining-nums;
}

.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.links a {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: rgb(255 253 248 / .6);
  font-size: 14.5px; font-weight: 700; color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.links a:hover { background: var(--ink); color: var(--paper); }

/* ─── Press ──────────────────────────────────────────────── */
.pull {
  position: relative;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding: clamp(34px, 4.6vw, 60px) clamp(24px, 4.6vw, 64px) clamp(28px, 3.6vw, 44px);
  border-radius: 34px;
  background: var(--lilac-soft);
}
.pull:hover { rotate: -.4deg; }
.pull::before {
  content: "\201C";
  position: absolute; top: -.18em; left: .1em;
  font: italic 400 clamp(130px, 14vw, 200px)/1 var(--serif);
  color: var(--coral);
  pointer-events: none;
}
.pull blockquote { position: relative; }
.pull blockquote p {
  max-width: 20em;
  font: italic 400 clamp(32px, 4.6vw, 62px)/1.04 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.pull figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 24px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
}
.pull figcaption b {
  padding: 6px 13px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 13.5px; font-weight: 700;
}

.press { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.press > li:first-child { grid-column: 1 / -1; }
.press > li:nth-child(6n+1) { --c: var(--sun);   --c-soft: var(--sun-soft); }
.press > li:nth-child(6n+2) { --c: var(--coral); --c-soft: var(--coral-soft); }
.press > li:nth-child(6n+3) { --c: var(--aqua);  --c-soft: var(--aqua-soft); }
.press > li:nth-child(6n+4) { --c: var(--lilac); --c-soft: var(--lilac-soft); }
.press > li:nth-child(6n+5) { --c: var(--mint);  --c-soft: var(--mint-soft); }
.press > li:nth-child(6n+6) { --c: var(--peach); --c-soft: var(--peach-soft); }
.press a {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
  padding: 22px 70px 24px 24px;
  border: 2px solid var(--edge); border-radius: 24px;
  background: var(--c-soft);
  box-shadow: 4px 4px 0 var(--pop);
  transition: translate .3s var(--boing), rotate .3s var(--boing), box-shadow .3s var(--ease);
}
.press a:hover { translate: -2px -3px; rotate: -.5deg; box-shadow: 6px 7px 0 var(--pop); }
.press > li:nth-child(even) a:hover { rotate: .5deg; }
.press a::before {
  content: "";
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--edge);
  background: var(--c);
}
.press a::after {
  content: "";
  position: absolute; top: 29px; right: 29px;
  width: 16px; height: 16px;
  background: var(--dark);
  -webkit-mask: var(--i-ext) center / contain no-repeat;
          mask: var(--i-ext) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.press a:hover::after { transform: translate(2px, -2px); }
.press__src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.press__outlet { font-size: 15px; font-weight: 700; color: var(--ink); }
.press__date { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.press__title {
  font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--serif);
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.press > li:first-child .press__title { font-size: clamp(30px, 3.6vw, 48px); max-width: 22em; }
.press__by { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.press__note { max-width: 62ch; font-size: 15.5px; line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }

.more { display: flex; justify-content: center; margin-top: 32px; }

/* ─── Numbers ────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats > div {
  position: relative;
  display: flex; flex-direction: column-reverse; justify-content: space-between; gap: 18px;
  min-height: 178px;
  padding: 22px 22px 20px;
  border-radius: 28px;
  background: var(--c);
}
.stats > div:nth-child(8n+1) { --c: var(--mint); }
.stats > div:nth-child(8n+2) { --c: var(--sun); }
.stats > div:nth-child(8n+3) { --c: var(--lilac); }
.stats > div:nth-child(8n+4) { --c: var(--coral); }
.stats > div:nth-child(8n+5) { --c: var(--peach); }
.stats > div:nth-child(8n+6) { --c: var(--aqua); }
.stats > div:nth-child(8n+7) { --c: var(--sun); }
.stats > div:nth-child(8n+8) { --c: var(--mint); }
.stats > div:hover { rotate: -2deg; }
.stats > div:nth-child(even):hover { rotate: 2deg; }
.stats > div::after {
  content: "";
  position: absolute; top: 18px; right: 18px;
  width: 20px; height: 20px;
  background: var(--dark);
  -webkit-mask: var(--i-star) center / contain no-repeat;
          mask: var(--i-star) center / contain no-repeat;
  transition: transform .6s var(--boing);
}
.stats > div:hover::after { transform: rotate(90deg) scale(1.2); }
.stats dt { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink-2); }
.stats dd {
  font: 400 clamp(56px, 6vw, 84px)/.9 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.stats .pre {
  display: inline-block; vertical-align: top;
  margin: .12em .25em 0 0;
  font: 700 14px/1 var(--sans); letter-spacing: .02em;
}
.stat__note {
  position: absolute; right: 14px; bottom: 48px;
  font: 700 23px/1 var(--hand); letter-spacing: 0;
  color: var(--dark);
  rotate: -7deg;
}

/* ─── Honors ─────────────────────────────────────────────── */
.honors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.honor {
  padding: 28px 26px 30px;
  background: var(--surface);
}
.honor:hover { rotate: -1deg; }
.honor:nth-child(even):hover { rotate: 1deg; }
.honor__badge {
  display: block;
  width: 64px; height: 72px;
  margin-bottom: 18px;
  color: var(--c);
  rotate: -10deg;
  transition: rotate .6s var(--boing);
}
.honor:hover .honor__badge { rotate: 10deg; }
.honor__k {
  display: inline-block;
  padding: 5px 11px; border-radius: 999px;
  background: var(--c-soft);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
}
.honor__title { margin-top: 12px; font: 400 clamp(32px, 3vw, 38px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.honor__sub { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.honor__p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ─── Conferences: polaroids ─────────────────────────────── */
.plates {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 88px);
  max-width: 1000px; margin-inline: auto;
}
.plate__img {
  position: relative; display: block; width: 100%;
  padding: 14px 14px 58px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(34 27 22 / .1), 0 26px 46px -22px rgb(84 40 10 / .45);
  cursor: zoom-in;
  rotate: -2.5deg;
  transition: rotate .6s var(--boing), scale .6s var(--boing);
}
.plate:nth-child(even) .plate__img { rotate: 2deg; }
.plate__img:hover, .plate:nth-child(even) .plate__img:hover { rotate: 0deg; scale: 1.03; }
.plate__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: #EFE6DA; }
.plate__img .tape { top: -15px; left: 50%; translate: -50% 0; rotate: -4deg; }
.plate:nth-child(even) .plate__img .tape { rotate: 5deg; background: repeating-linear-gradient(45deg, rgb(255 255 255 / .35) 0 6px, transparent 6px 12px), rgb(245 213 71 / .8); }
.plate__scribble {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center;
  font: 700 27px/1 var(--hand); color: var(--dark);
}
.plate figcaption { margin-top: 28px; }
.plate__title { font: 400 clamp(32px, 3.2vw, 40px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.plate__meta {
  display: inline-block; margin-top: 10px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--c-soft);
  font-size: 14px; font-weight: 700; color: var(--ink);
}

.bullets { display: grid; gap: 8px; margin-top: 16px; }
.bullets li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.bullets li::before {
  content: "";
  position: absolute; top: .22em; left: 0;
  width: 17px; height: 17px;
  background: var(--c);
  -webkit-mask: var(--i-star) center / contain no-repeat;
          mask: var(--i-star) center / contain no-repeat;
}

/* ─── Organizations ──────────────────────────────────────── */
.officers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ocard { padding: 24px 24px 28px; background: var(--c-soft); }
.ocard:hover { rotate: 1deg; }
.ocard:nth-child(even):hover { rotate: -1deg; }
.ocard__k {
  display: inline-block;
  padding: 5px 12px;
  border: 1.5px solid var(--edge); border-radius: 999px;
  background: var(--c); color: var(--dark);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  rotate: -3deg;
}
.ocard__title { margin-top: 16px; font: 400 clamp(38px, 3.6vw, 46px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.ocard__role { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.ocard__p { margin-top: 8px; font-size: 15.5px; line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }

.block { margin-top: clamp(44px, 5.4vw, 72px); }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
.block__title { font: 400 clamp(36px, 3.8vw, 48px)/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.block__note { font: 700 26px/1 var(--hand); color: var(--accent); rotate: -3deg; }

.clubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.clubs li {
  padding: 16px 16px 18px;
  border: 1.5px solid var(--line-2); border-radius: 20px;
  background: var(--surface);
  transition: rotate .35s var(--boing), translate .35s var(--boing), border-color .2s var(--ease), background-color .2s var(--ease);
}
.clubs li:hover { rotate: -1.5deg; translate: 0 -3px; border-color: var(--edge); background: var(--c-soft); }
.clubs li:nth-child(even):hover { rotate: 1.5deg; }
.clubs li:nth-child(6n+1) { --c: var(--coral); --c-soft: var(--coral-soft); }
.clubs li:nth-child(6n+2) { --c: var(--sun);   --c-soft: var(--sun-soft); }
.clubs li:nth-child(6n+3) { --c: var(--aqua);  --c-soft: var(--aqua-soft); }
.clubs li:nth-child(6n+4) { --c: var(--lilac); --c-soft: var(--lilac-soft); }
.clubs li:nth-child(6n+5) { --c: var(--mint);  --c-soft: var(--mint-soft); }
.clubs li:nth-child(6n+6) { --c: var(--peach); --c-soft: var(--peach-soft); }
.clubs b { display: flex; align-items: center; gap: 9px; font-size: 16px; line-height: 1.3; color: var(--ink); }
.clubs b::before {
  content: ""; flex: none;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--edge);
  background: var(--c);
}
.clubs span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.skills li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: 2px 14px;
  padding: 12px 20px 12px 12px;
  border: 2px solid var(--edge); border-radius: 999px;
  background: var(--c-soft);
  box-shadow: 3px 3px 0 var(--pop);
}
.skills svg {
  grid-row: span 2;
  width: 48px; height: 48px; padding: 11px;
  border: 1.5px solid var(--edge); border-radius: 50%;
  background: var(--c); color: var(--dark);
  fill: none;
}
.skills b { align-self: end; font-size: 15.5px; line-height: 1.25; color: var(--ink); }
.skills span { align-self: start; font-size: 13.5px; color: var(--muted); }

/* ─── Contact ────────────────────────────────────────────── */
.hello {
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 40px;
  background: linear-gradient(135deg, #FCE993 0%, var(--sun) 24%, var(--peach) 52%, var(--coral) 78%, var(--lilac) 100%);
  box-shadow: 8px 8px 0 var(--pop);
}
.hello:hover { translate: none; box-shadow: 8px 8px 0 var(--pop); }
.hello__art {
  position: absolute; right: -40px; bottom: -40px;
  width: 240px; height: 240px;
  color: rgb(255 255 255 / .5);
  animation: spin 50s linear infinite;
  pointer-events: none;
}
.hello__hi {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 clamp(30px, 3.2vw, 38px)/1 var(--hand);
  color: var(--ink);
  rotate: -4deg;
}
.hello__hi svg { width: 44px; height: 30px; fill: none; translate: 0 8px; }
.hello__k {
  margin: 30px 0 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
}
.hello__k + .linkgrid { margin-top: 0; }

.mail { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; max-width: 100%; text-align: left; }
.mail__a {
  font: italic 400 clamp(30px, 6.2vw, 86px)/1 var(--serif);
  letter-spacing: -.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}
.mail:hover .mail__a { color: #7A2446; }
.mail__b {
  padding: 10px 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--surface);
  font-size: 14px; font-weight: 700; color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), translate .2s var(--ease);
}
.mail:hover .mail__b { background: var(--ink); color: var(--paper); translate: -1px -1px; }
.mail.done .mail__b { background: var(--live); border-color: var(--live); color: #FFFFFF; }

.mailto { margin-top: 18px; }
.mailto a {
  display: inline-flex; align-items: center;
  padding-bottom: 2px; border-bottom: 1.5px solid currentColor;
  font-size: 15px; font-weight: 700; color: var(--ink);
}

.linkgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.linkgrid a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 18px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--ink);
  transition: translate .2s var(--ease), box-shadow .2s var(--ease);
}
.linkgrid a:hover { translate: -2px -2px; box-shadow: 5px 5px 0 var(--ink); }
.linkgrid b { font-size: 15px; color: var(--ink); }
.linkgrid span { font-size: 13px; font-weight: 500; color: var(--muted); }
.linkgrid a::after { margin-left: 0; color: var(--ink); }

/* ─── Press page ─────────────────────────────────────────── */
.pagehead { padding-bottom: 8px; }
.pagehead .hero__name { margin: clamp(18px, 2.4vw, 28px) 0 clamp(24px, 3vw, 34px); }
.pagehead__deck {
  max-width: 28em;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500; line-height: 1.42; letter-spacing: -.015em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.sec--first { padding-top: clamp(64px, 8vw, 104px); }

.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.also li { padding: 22px 24px 24px; background: var(--c-soft); }
.also li:hover { rotate: -1deg; }
.also b { display: block; font: 400 clamp(32px, 3vw, 38px)/1 var(--serif); font-weight: 400; color: var(--ink); }
.also span { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ─── Footer ─────────────────────────────────────────────── */
.foot { position: relative; overflow: hidden; }
.foot__in {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 10px 24px;
  padding-block: 22px 18px;
  border-top: 1.5px dashed var(--line-2);
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.foot a {
  padding: 8px 16px;
  border: 1.5px solid var(--line-2); border-radius: 999px;
  font-weight: 700; color: var(--ink);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.foot a:hover { border-color: var(--edge); background: var(--sun-soft); }
.foot__word {
  margin-bottom: -.2em;
  font: italic 400 clamp(84px, 19vw, 290px)/1 var(--serif);
  letter-spacing: -.04em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--sun), var(--peach) 30%, var(--coral) 55%, var(--lilac) 80%, var(--aqua));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  user-select: none;
}

/* ─── Command menu ───────────────────────────────────────── */
.pal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; justify-items: center; align-items: start;
  padding: 14vh 16px 16px;
}
.pal[hidden] { display: none; }
.pal__bd {
  position: absolute; inset: 0;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.pal__box {
  position: relative;
  width: min(560px, 100%);
  overflow: hidden;
  border: 2px solid var(--edge); border-radius: 26px;
  background: var(--surface);
  box-shadow: 7px 7px 0 var(--pop);
  opacity: 0; transform: translateY(-10px) scale(.97);
  transition: opacity .25s var(--ease), transform .4s var(--boing);
}
.pal.show .pal__bd,
.pal.show .pal__box { opacity: 1; }
.pal.show .pal__box { transform: none; }
.pal__top { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1.5px solid var(--line); }
.pal__top input {
  flex: 1; min-width: 0; height: 60px;
  border: 0; outline: 0; background: none;
  font: 500 17px var(--sans); color: var(--ink);
}
.pal__top input::placeholder { color: var(--faint); }
.pal__top kbd {
  padding: 5px 8px;
  border: 1.5px solid var(--line-2); border-radius: 8px;
  font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--muted);
}
.pal__list { max-height: min(56vh, 440px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.pal__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 14px; border-radius: 14px;
  cursor: pointer;
}
.pal__list li.sel { background: var(--sun-soft); }
.pal__list .pt { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.pal__list .ps {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.pal__empty { padding: 18px 14px; font-size: 14.5px; color: var(--muted); }

/* ─── Lightbox ───────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 130;
  display: grid; place-items: center;
  padding: 64px 20px 32px;
  background: rgb(23 18 43 / .9);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lb[hidden] { display: none; }
.lb.show { opacity: 1; }
.lb__fig {
  padding: 14px 14px 18px;
  border-radius: 8px;
  background: var(--paper);
  rotate: -1deg;
}
.lb__fig img { width: auto; max-width: min(86vw, 960px); max-height: 72vh; border-radius: 3px; }
.lb__fig figcaption { margin-top: 12px; text-align: center; font: 700 24px/1.2 var(--hand); color: var(--dark); }
.lb__close {
  position: absolute; top: 16px; right: 16px;
  height: 40px; padding: 0 18px;
  border: 2px solid var(--paper); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--paper);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lb__close:hover { background: var(--paper); color: var(--dark); }

/* ─── Toast and confetti ─────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 140;
  padding: 11px 20px;
  border: 2px solid var(--dark); border-radius: 999px;
  background: var(--sun); color: var(--dark);
  font-size: 14.5px; font-weight: 700;
  box-shadow: 3px 3px 0 var(--dark);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px) scale(.9);
  transition: opacity .25s var(--ease), transform .4s var(--boing);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti {
  position: fixed; z-index: 150;
  width: 9px; height: 13px; border-radius: 2px;
  pointer-events: none;
}

/* ─── Motion ─────────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

.js .hero__name .w > span { transform: translateY(115%) rotate(6deg); animation: rise 1.1s var(--ease) .1s forwards; }
.js .hero__name .w + .w > span { animation-delay: .2s; }
.js .fade { opacity: 0; animation: fade 1s var(--ease) var(--d, .3s) forwards; }
.js .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) 1s forwards; }

@keyframes rise { to { transform: none; } }
@keyframes fade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: .45; transform: scale(.72) rotate(20deg); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-3%, 3%, 0) rotate(6deg); }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgb(30 154 89 / .55); }
  70% { box-shadow: 0 0 0 8px rgb(30 154 89 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(30 154 89 / 0); }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .sh { grid-template-columns: auto minmax(0, 1fr); }
  .sh__sub { grid-column: 1 / -1; justify-self: start; padding-bottom: 0; }
  .skills li { border-radius: 26px; }
}

@media (max-width: 960px) {
  .nav__links, .kbtn { display: none; }
  .nav__tools { margin-left: auto; }
  .burger { display: inline-flex; }
  .nav__m { display: block; }

  .hero__grid { grid-template-columns: 1fr; }
  .portrait { justify-self: center; width: min(86%, 360px); margin-top: 12px; }

  .ventures { grid-template-columns: 1fr; }
  .stats, .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .honors, .officers, .also { grid-template-columns: 1fr; }
  .honor, .ocard { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; }
  .honor > *, .ocard > * { grid-column: 2; }
  .honor__badge { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .ocard__k { justify-self: start; }
  .skills { grid-template-columns: 1fr; }
  .skills li { border-radius: 999px; }
}

@media (max-width: 760px) {
  .press { grid-template-columns: 1fr; }
  .press a { padding: 20px 64px 22px 20px; }
  .plates { grid-template-columns: 1fr; max-width: 460px; }
  .honor, .ocard { display: block; }
  .honor__badge { margin-bottom: 14px; }
  .spin { left: auto; right: -30px; bottom: -34px; width: 104px; height: 104px; }
  .spin text { font-size: 10.4px; }
}

@media (max-width: 560px) {
  .nav__in { padding-left: 8px; }
  .brand__name { font-size: 21px; }
  .hero__name { font-size: 25vw; }
  .hero__cta .btn { flex: 1 1 auto; }
  .ticker__label { padding-left: calc(3vw + 16px); font-size: 11px; }

  .sh__no { width: 50px; height: 50px; font-size: 15px; }
  .vcard { border-radius: 28px; }
  .facts { grid-template-columns: 1fr; gap: 8px; }
  .facts > div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; }
  .facts dd { font-size: 24px; }
  .stats { gap: 12px; }
  .stats > div { min-height: 150px; padding: 18px 16px 16px; border-radius: 22px; }
  .stats dd { font-size: clamp(40px, 13vw, 56px); }
  .stats dt { font-size: 14px; }
  .stats > div::after { top: 14px; right: 14px; width: 16px; height: 16px; }
  .stat__note { right: 10px; bottom: 42px; font-size: 19px; }
  .clubs { grid-template-columns: 1fr; }
  .skills li { border-radius: 24px; }
  .hello { border-radius: 30px; }
  .linkgrid li { flex: 1 1 100%; }
  .linkgrid a::after { margin-left: auto; }

  .foot__in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
  .ticker__track { animation: none; width: auto; }
  .ticker__list { flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
  .ticker__list[aria-hidden="true"] { display: none; }
}
