/* Emma G. Möller personal site.
   Tokens come from the Sept 2026 personal brand system (css/tokens.css).
   Ultra-minimal: paper surface, two faces, hairlines, no radii, no shadows.
   Playfulness lives in js/play.js and is switched off for reduced motion. */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..700;1,6..72,300..700&family=Instrument+Sans:wght@400..600&family=Caveat:wght@500&display=swap");

:root {
  --action: #2F4D82;           /* buttons, tags, pill: the banner blue, a step lighter than ink */
  --measure: 34em;             /* reading width */
  --gutter: clamp(20px, 5vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-size: var(--text-body-size);
  line-height: var(--leading-body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-style: italic; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-deep); }

::selection { background: var(--chart-1); color: var(--ink-6); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink-6); color: var(--text-on-ink); padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

/* ---------- Small text: Instrument Sans ---------- */
.eyebrow, .meta, .nav, .proof, .btn, .site-footer, .label {
  font-family: var(--font-sans);
}
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-eyebrow); font-weight: 500;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--text-muted); margin: 0;
}
.eyebrow .hand-square { width: 9px; height: 9px; flex: none; }
.meta {
  font-size: var(--text-mono); font-weight: 500;
  letter-spacing: var(--track-meta); text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.site-header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--font-serif); font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em; text-decoration: none;
}
.nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font-size: var(--text-eyebrow); font-weight: 500;
  letter-spacing: var(--track-meta); text-transform: uppercase;
  text-decoration: none; color: var(--text-muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-body); }

main { position: relative; }

section { position: relative; padding: clamp(56px, 9vw, 112px) 0; }
section + section { border-top: 1px solid var(--rule); }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 450; margin: 0; }
h1 {
  font-size: clamp(40px, 6.2vw, var(--text-display));
  line-height: var(--leading-display);
  letter-spacing: var(--track-display);
  max-width: 13em;
}
h2 {
  font-size: clamp(28px, 3.6vw, var(--text-h1));
  line-height: var(--leading-title);
  letter-spacing: var(--track-title);
  max-width: 18em;
}
h3 { font-size: var(--text-h3); line-height: var(--leading-title); }
.lede { font-size: clamp(18px, 2vw, var(--text-lede)); color: var(--text-muted); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1em; }

/* ---------- Hero ---------- */
main > section:first-child { padding-top: clamp(32px, 5vh, 64px); padding-bottom: clamp(40px, 6vh, 72px); }
.hero h1 { font-size: clamp(36px, min(5vw, 7.2vh), 64px); max-width: 15em; }
.hero {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 6vw, 88px); align-items: start;
}
.hero .eyebrow { margin-bottom: 20px; }
.hero .lede { margin: 20px 0 0; }
.portrait {
  position: relative; margin: 0; aspect-ratio: 900 / 997;
  background: var(--paper-2); overflow: hidden;
}
.portrait img, .portrait canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(.96) contrast(1.02);
}
.portrait canvas { image-rendering: pixelated; }
.portrait figcaption {
  position: absolute; left: 0; bottom: -28px;
  font-family: var(--font-sans); font-size: var(--text-mono);
  letter-spacing: var(--track-meta); text-transform: uppercase; color: var(--text-muted);
}

/* credentials: a quiet 3 × 2 grid, label over value, hairline dividers */
.proof {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 64px 0 0; border-top: 1px solid var(--rule);
}
.proof > a {
  display: block; padding: 18px 20px 20px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit; transition: background var(--dur) var(--ease);
}
.proof > a:not(:nth-child(3n+1)) { padding-left: 20px; border-left: 1px solid var(--rule); }
.proof > a:hover { background: var(--surface-raised); }
.proof > a:hover .tag { background: var(--chart-1); color: var(--ink-6); }
.proof > a:hover dd { color: var(--text-body); }
.tag {
  display: inline-block; padding: 4px 8px 3px;
  font-family: var(--font-sans); font-size: var(--text-eyebrow); font-weight: 600;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  background: var(--action); color: var(--paper-0);
  margin-bottom: 10px; transition: background var(--dur) var(--ease);
}
.tag--now { color: var(--chart-1); }

.proof dd { margin: 0; font-family: var(--font-serif); font-size: 17px; line-height: 1.35; color: var(--text-body); }

/* ---------- Contact options ---------- */
.contact-options { list-style: none; margin: 0; padding: 0; }
.contact-options a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit;
}
.contact-options li:last-child a { border-bottom: 1px solid var(--rule); }
.contact-options strong { font-weight: 500; font-size: 20px; }
.contact-options span { grid-column: 1; color: var(--text-muted); font-size: 16px; }
.contact-options a::after { content: "→"; grid-column: 2; grid-row: 1; font-family: var(--font-sans); color: var(--text-muted); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
.contact-options a:hover strong { color: var(--action); }
.contact-options a:hover::after { color: var(--chart-2); transform: translateX(4px); }

/* ---------- Compact floating menu (after the fold) ---------- */
.mini-bar {
  position: fixed; z-index: 20; top: 14px; left: 50%;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 22px; border-radius: 999px;
  background: rgba(248, 248, 245, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  transform: translate(-50%, -140%); opacity: 0; pointer-events: none;
  transition: transform 320ms var(--ease), opacity 220ms var(--ease);
  max-width: calc(100vw - 24px);
}
.mini-bar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mini-bar__name { font-family: var(--font-serif); font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; margin-right: 8px; }
.mini-bar__nav {
  display: flex; gap: 22px; overflow: hidden; white-space: nowrap;
  max-width: 0; opacity: 0; transition: max-width 360ms var(--ease), opacity 240ms var(--ease), margin 360ms var(--ease);
}
.mini-bar__nav a { font-family: var(--font-sans); font-size: var(--text-eyebrow); font-weight: 500; letter-spacing: var(--track-meta); text-transform: uppercase; text-decoration: none; color: var(--text-muted); }
.mini-bar__nav a:hover, .mini-bar__nav a[aria-current="page"] { color: var(--text-body); }
.mini-bar:hover .mini-bar__nav, .mini-bar:focus-within .mini-bar__nav, .mini-bar.open .mini-bar__nav { max-width: 480px; opacity: 1; margin: 0 14px 0 6px; }
.mini-bar__cta {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--paper-0); padding: 11px 20px; border-radius: 999px;
  background-image: linear-gradient(115deg, #24406F 0%, #2F4D82 30%, #6B7C99 60%, #2F4D82 85%, #24406F 100%);
  background-size: 300% 100%; animation: frost-drift 9s ease-in-out infinite alternate;
}
.mini-bar__cta:hover { background: var(--chart-1); color: var(--ink-6); animation: none; }
.mini-bar__toggle { display: none; font-family: var(--font-sans); font-size: var(--text-eyebrow); letter-spacing: var(--track-meta); text-transform: uppercase; background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 8px; }
@media (hover: none) {
  .mini-bar__toggle { display: block; }
  .mini-bar.open { flex-wrap: wrap; border-radius: 22px; }
}
@media (max-width: 520px) {
  .mini-bar { padding-left: 16px; }
  .mini-bar__name { font-size: 15px; }
  .mini-bar.open .mini-bar__nav { order: 5; flex-basis: 100%; max-width: 100%; margin: 8px 0 6px; gap: 16px; }
}

/* ---------- "in writing." set in handwriting, written out once as the page opens ---------- */
.handwritten {
  display: inline-block; font-family: 'Caveat', cursive; font-weight: 500; font-size: 1.22em; line-height: 1;
  color: var(--action); letter-spacing: 0;
  animation: write-on 1.1s cubic-bezier(.45,.05,.35,1) .35s both;
}
@keyframes write-on { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Availability signal ---------- */
.available {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-family: var(--font-sans); font-size: var(--text-small); font-weight: 500;
  color: var(--text-body); text-decoration: none;
  padding: 8px 14px 8px 12px; border: 1px solid var(--rule); background: var(--surface-raised);
}
.available:hover { border-color: var(--chart-2); color: var(--text-body); }
.available__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chart-2); box-shadow: 0 0 0 0 rgba(166,199,64,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(166,199,64,.55); } 70% { box-shadow: 0 0 0 9px rgba(166,199,64,0); } 100% { box-shadow: 0 0 0 0 rgba(166,199,64,0); } }
.open-to { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.open-to li { font-family: var(--font-sans); font-size: var(--text-small); padding: 6px 12px; border: 1px solid var(--rule); background: var(--surface-raised); }

/* ---------- Logo rows: one colour, small, never a sponsor wall ---------- */
.logos { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: clamp(14px, 3vw, 40px); }
.logos li { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.logo {
  display: block; width: var(--w); max-width: 100%; height: auto; object-fit: contain;
  filter: brightness(0) opacity(.62);          /* any logo becomes one quiet ink colour */
  transition: filter var(--dur) var(--ease);
}
.logos li:hover .logo { filter: brightness(0) opacity(.9); }
.logo-pair { display: inline-flex; align-items: center; gap: 10px; }
.logo-word { font-family: var(--font-sans); font-size: var(--text-small); font-weight: 500; color: var(--ink-3); opacity: .85; }

/* ---------- Roman-numbered list ---------- */
.numbered { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.numbered li {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--rule);
}
.numbered li:last-child { border-bottom: 1px solid var(--rule); }
.numbered .n { font-style: italic; color: var(--text-muted); font-size: var(--text-h3); line-height: 1.2; }
.numbered h3 { margin-bottom: 6px; }
.numbered p { margin: 0; color: var(--text-muted); max-width: var(--measure); }

/* ---------- A card behind the portrait, so the photo reads as the second layer ---------- */
.portrait-stack { position: relative; isolation: isolate; margin-top: 40px; }   /* top of the photo lines up with the top of the headline */
.stack-card {
  position: absolute; inset: 0; z-index: -1;
  transform: translate(22px, -18px) rotate(4.5deg);
  transition: transform 260ms var(--ease);
}
.portrait-stack:hover .stack-card { transform: translate(26px, -22px) rotate(6.5deg); }
/* frosted like the LinkedIn banner: mostly deep blue, a white glow, a yellow-lime glow */
.frost--card { background: var(--ink-6); }
.frost--card::before { filter: blur(22px) saturate(1.2); background:
  /* the pseudo-element is inset -25%, so the card's visible top and right edges sit near 17% and 83% */
  radial-gradient(60% 50% at 35% 35%, #2F4D82 0%, transparent 72%),
  radial-gradient(30% 16% at 68% 18%, #F2F5FA 0%, rgba(242,245,250,.5) 35%, transparent 75%),
  radial-gradient(16% 30% at 84% 72%, var(--chart-1) 0%, rgba(215,243,109,.55) 35%, transparent 78%); }

/* ---------- "Let's talk": appears in the centre of the portrait on hover ---------- */
.portrait { cursor: pointer; }
.talk {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  padding: 14px 24px; border-radius: 999px;      /* the one rounded thing on the site, on purpose */
  background: var(--action); color: var(--paper-0);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(.92);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), background var(--dur) var(--ease);
}
.portrait:hover .talk, .talk:focus-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.talk:hover { background: var(--chart-1); color: var(--ink-6); }
@media (hover: none) {
  .talk { opacity: 1; pointer-events: auto; left: 50%; top: auto; bottom: 16px; transform: translateX(-50%); }
}

/* ---------- In-the-room photo ---------- */
.room-photo { margin: 0; }
.room-photo img { display: block; width: 100%; height: auto; filter: saturate(.96) contrast(1.02); }
.room-photo figcaption { margin-top: 12px; }

/* ---------- Two-column rows ---------- */
.row { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); }
.row > :first-child { padding-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 18px;
  font-size: var(--text-small); font-weight: 500; text-decoration: none;
  border: 1px solid var(--action); color: var(--paper-0); background: var(--action);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--chart-1); border-color: var(--chart-1); color: var(--ink-6); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Press kit bios ---------- */
.bio {
  border: 1px solid var(--rule); background: var(--surface-raised);
  padding: 24px; margin: 0 0 16px;
}
.bio .label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bio p { margin: 0; }
.copy { font-family: var(--font-sans); font-size: var(--text-mono); letter-spacing: var(--track-meta); text-transform: uppercase; background: none; border: 0; padding: 4px 0; color: var(--text-muted); cursor: pointer; }
.copy:hover { color: var(--accent-deep); }

/* ---------- Plain lists ---------- */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 16px 0; border-top: 1px solid var(--rule); }
.plain strong { font-weight: 600; }
.plain li:last-child { border-bottom: 1px solid var(--rule); }
.plain .meta { display: block; margin-top: 4px; }
.pub-note { display: block; margin-top: 6px; color: var(--text-muted); font-size: 16px; max-width: var(--measure); }

/* ---------- Reveal footer: the page lifts away to show a full frosted last page ---------- */
.page { position: relative; z-index: 1; background: var(--surface-page); border-bottom: 1px solid var(--rule); }
.reveal {
  position: sticky; bottom: 0; z-index: 0;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(64px, 12vh, 140px) 0 0;
}
.frost--banner { background: var(--ink-6); }
.frost--banner::before { background:
  radial-gradient(52% 70% at 12% 38%, #3E5F96 0%, transparent 68%),
  radial-gradient(40% 50% at 62% 18%, #8C96A4 0%, transparent 66%),
  radial-gradient(46% 60% at 96% 82%, var(--chart-2) 0%, transparent 64%),
  radial-gradient(40% 50% at 40% 100%, var(--ink-6) 0%, transparent 70%); }
.reveal__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.eyebrow--on-ink { color: var(--text-on-ink-muted); }
.reveal__title { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: var(--track-display); color: var(--text-on-ink); margin: 24px 0 0; }
.reveal__title em { color: var(--chart-1); }
.reveal__lede { color: var(--text-on-ink-lede); max-width: 26em; margin: 24px 0 0; font-size: var(--text-lede); }
.reveal__email { margin: 24px 0 0; font-size: clamp(22px, 2.6vw, 32px); }
.reveal a { color: var(--text-on-ink); text-decoration-color: var(--chart-1); }
.reveal a:hover { color: var(--chart-1); }
.reveal__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-family: var(--font-sans); font-size: var(--text-small); padding-top: 8px; }
.reveal__links > div { display: flex; flex-direction: column; gap: 10px; }
.reveal__links .meta { color: var(--text-on-ink-muted); margin-bottom: 6px; }
.reveal__links a { text-decoration: none; }
.reveal__small { color: var(--text-on-ink-muted); }
.reveal__copy {
  position: relative; z-index: 2; align-self: flex-end;
  margin: auto var(--gutter) 18px 0;          /* pushed to the bottom, just above the large name, right-aligned */
  padding-top: 40px;
  font-family: var(--font-sans); font-size: var(--text-mono); letter-spacing: var(--track-meta);
  color: var(--text-on-ink-muted);
}
.reveal__name {
  margin: 0 0 -0.18em; padding: 0 var(--gutter); white-space: nowrap;
  font-size: clamp(36px, 9.4vw, 150px); line-height: 1; letter-spacing: -0.035em; font-weight: 400;
  color: var(--text-on-ink); opacity: .1; user-select: none; overflow: hidden;
}

/* ---------- What people appreciate ---------- */
.appreciate__panel { background: var(--surface-raised); border: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 72px); padding: clamp(28px, 5vw, 64px); }
.appreciate__list { list-style: none; margin: 0; padding: 0; }
.appreciate__list li {
  display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--paper-3);
  font-size: 19px; line-height: 1.45;
}
.appreciate__list li:first-child { padding-top: 4px; }
.appreciate__list li:last-child { border-bottom: 0; }
.appreciate__list .dash { display: block; width: 22px; height: 2px; background: var(--ink-4); transform: translateY(-5px); }
.appreciate__list li:hover .dash { background: var(--chart-2); }

/* ---------- Small colour blocks (Allegra-style): colour contained, page stays simple ---------- */
.color-block { height: clamp(72px, 9vw, 120px); margin-top: 48px; }
.color-block--top { margin: 0 0 clamp(40px, 6vw, 72px); }
.btn--outline { background: transparent; color: var(--action); }
.btn--outline:hover { background: var(--chart-1); border-color: var(--chart-1); color: var(--ink-6); }
.hero-plain .hero-frost__grid { align-items: center; }
.hero-plain .hero-frost__photo figcaption { color: var(--text-muted); }

/* ---------- Frosted label boxes (about page): soft blue and yellow glows ---------- */
.row > .label-box { padding: 20px; min-height: 140px; align-self: stretch; }
.label-box .meta { color: var(--ink-4); }
.frost--soft { background: var(--paper-1); color: var(--text-body); }
.frost--soft::after { mix-blend-mode: multiply; opacity: var(--frost-grain-1); }
.frost--soft::before { filter: blur(var(--frost-blur-1)) saturate(1.1); }
.frost--soft-1::before { background:
  radial-gradient(55% 60% at 75% 70%, #9AB2DC 0%, transparent 70%),
  radial-gradient(45% 50% at 25% 25%, #E4EF94 0%, transparent 70%); }
.frost--soft-2::before { background:
  radial-gradient(55% 60% at 25% 75%, #E4EF94 0%, transparent 70%),
  radial-gradient(50% 55% at 80% 25%, #9AB2DC 0%, transparent 70%); }
.frost--soft-3::before { background:
  radial-gradient(60% 55% at 50% 85%, #9AB2DC 0%, transparent 70%),
  radial-gradient(40% 45% at 85% 20%, #F1F7C8 0%, transparent 70%),
  radial-gradient(40% 45% at 15% 30%, #DCE4EE 0%, transparent 70%); }

/* lime label boxes: same colour and intensity as the about strip, glows moved per box */
.label-box.frost--lime::before { filter: blur(var(--frost-blur-1)) saturate(1.15); }
.lime-2::before { background:
  radial-gradient(50% 70% at 22% 30%, var(--chart-1) 0%, transparent 66%),
  radial-gradient(54% 70% at 82% 85%, var(--ink-3) 0%, transparent 64%) !important; }
.lime-3::before { background:
  radial-gradient(55% 60% at 75% 80%, var(--chart-1) 0%, transparent 66%),
  radial-gradient(50% 55% at 20% 15%, var(--ink-3) 0%, transparent 64%) !important; }

/* ---------- Frosted hero (speaking page) ---------- */
.hero-frost { border-top: 0; }
section.hero-frost + section { border-top: 0; }
.hero-frost__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-frost h1 { color: var(--text-on-ink); }
.hero-frost h1 em { color: var(--chart-1); }
.hero-frost .lede { color: var(--text-on-ink-lede); }
.hero-frost__photo { margin: 0; }
.hero-frost__photo img { display: block; width: 100%; height: auto; filter: saturate(.96) contrast(1.02); }
.hero-frost__photo figcaption { margin-top: 12px; color: var(--text-on-ink-muted); }
.btn--lime { background: var(--chart-1) !important; border-color: var(--chart-1) !important; color: var(--ink-6) !important; }
.btn--lime:hover { background: var(--paper-0) !important; border-color: var(--paper-0) !important; }
.btn--ghost { background: transparent !important; border-color: var(--ink-1) !important; color: var(--text-on-ink) !important; }
.btn--ghost:hover { background: var(--chart-1) !important; border-color: var(--chart-1) !important; color: var(--ink-6) !important; }

/* light variant of the frosted hero (about page) */
.hero-frost--light h1 { color: var(--ink-6); }
.hero-frost--light h1 em { color: var(--ink-3); }
.hero-frost--light .lede { color: var(--ink-4); }
.hero-frost--light .eyebrow { color: var(--ink-3); }
.frost--lime.hero-frost::before { filter: blur(var(--frost-blur-2)) saturate(1.1); }

/* ---------- Frosted glow pieces (speaking page) ---------- */
.glow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; margin: 0; padding: 0; list-style: none; }
.glow-card h3 { font-size: 19px; margin: 0 0 12px; }
.glow-card .frost { aspect-ratio: 5 / 1.6; }
.glow-card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.glow-card a { text-decoration: none; }
.frost--lime { background: var(--chart-0); }
.frost--lime::before { background:
  radial-gradient(50% 70% at 78% 30%, var(--chart-1) 0%, transparent 66%),
  radial-gradient(54% 70% at 18% 80%, var(--ink-3) 0%, transparent 64%); }
.frost--dusk { background: var(--ink-5); }
.frost--dusk::before { background:
  radial-gradient(48% 70% at 20% 30%, var(--paper-3) 0%, transparent 62%),
  radial-gradient(60% 80% at 82% 70%, #3E5F96 0%, transparent 66%); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule); padding: 40px 0 56px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  font-size: var(--text-small); color: var(--text-muted);
}
.site-footer a { color: var(--text-body); }

/* ---------- Easter egg: the phrase that re-balances ---------- */
.balance { display: inline-block; cursor: default; }
.balance span { display: inline-block; transform-origin: 50% 80%; }
.balance.tipping span { animation: tip 1.4s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes tip {
  0% { transform: rotate(0); }
  22% { transform: rotate(-9deg) translateY(-2px); }
  48% { transform: rotate(6deg); }
  70% { transform: rotate(-2.5deg); }
  86% { transform: rotate(1deg); }
  100% { transform: rotate(0); }
}

/* ---------- Drifting hand-drawn objects ---------- */
.drift-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.drift {
  position: absolute; width: var(--w, 72px); color: var(--ink-4);
  opacity: 0; will-change: transform, opacity;
}
.drift img { width: 100%; display: block; }
.wrap, .site-footer { position: relative; z-index: 1; }

/* ---------- The skier (prototype) ---------- */
.ski-run { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ski-run canvas { position: absolute; inset: 0; }
.skier { position: absolute; left: 0; top: 0; width: 52px; color: var(--ink-4); opacity: 0; will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .logos { grid-template-columns: 1fr; }
  .logos ul { gap: 16px 24px; }
}
@media (max-width: 520px) {
  .logos ul { flex-wrap: wrap; justify-content: flex-start; }
  .proof { grid-template-columns: 1fr 1fr; }
  .proof > a { padding-left: 0 !important; border-left: 0 !important; }
  .proof > a:nth-child(2n) { padding-left: 16px !important; border-left: 1px solid var(--rule) !important; }
  .reveal__inner { grid-template-columns: 1fr; }
  .glow-grid { grid-template-columns: 1fr; }
  .hero-frost__grid { grid-template-columns: 1fr; }
  .appreciate__panel { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .portrait-stack { max-width: 420px; margin-top: 8px; }
  .stack-card { transform: translate(10px, -8px) rotate(3deg); }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .row > .label-box { min-height: 72px; }
  .nav { gap: 16px; }
  .drift { max-width: 36px; filter: opacity(.45); }
  .skier { width: 32px; }
}
@media (max-width: 480px) {
  .reveal__links { grid-template-columns: 1fr 1fr; }
  .site-header { flex-direction: column; gap: 12px; }
  .nav { justify-content: flex-start; }
  .numbered li { grid-template-columns: 36px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .drift { opacity: .5 !important; transform: none !important; }
}

/* ---------- Buttons, tags and the pill drift slowly between deep blue and grey-blue, like the frost ---------- */
.btn:not(.btn--outline), .tag, .talk {
  background-image: linear-gradient(115deg, #24406F 0%, #2F4D82 30%, #6B7C99 60%, #2F4D82 85%, #24406F 100%);
  background-size: 300% 100%;
  animation: frost-drift 9s ease-in-out infinite alternate;
}
.tag:nth-of-type(n), .proof > a:nth-child(2) .tag { animation-delay: -2s; }
.proof > a:nth-child(3) .tag { animation-delay: -4s; }
.proof > a:nth-child(4) .tag { animation-delay: -6s; }
.proof > a:nth-child(5) .tag { animation-delay: -1s; }
.proof > a:nth-child(6) .tag { animation-delay: -5s; }
@keyframes frost-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.btn:not(.btn--outline):hover, .talk:hover, .proof > a:hover .tag { background-image: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .btn:not(.btn--outline), .tag, .talk { animation: none; background-position: 30% 50%; }
}
