/* ═══════════════════════════════════════════════════════════
   HEATHER OLIVARES — CV site
   Type: Fraunces (display) · Space Grotesk (text)
   Palette: cream paper / ink / signal coral / amber
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Default theme: TEA — green-washed paper, forest darks, green accents.
     html[data-theme="coral"|"sage"|"forest"] restore the alternates. */
  --paper: #EEF2E1;
  --paper-soft: #E4EAD1;
  --ink: #151A0E;
  --ink-2: rgba(21, 26, 14, 0.64);
  --coral: #FF4B1F;
  --amber: #C4D6A4;
  --sage: #9DC183;      /* Heather's greens */
  --asparagus: #87A96B;
  --pistachio: #93C572;
  --olive: #5E7A45;     /* text-safe derivative of asparagus */
  --green-deep: #1D2810;
  --dark: #131A0D;
  --cream: #EEF2E1;
  --cream-2: rgba(238, 242, 225, 0.62);
  --hair: rgba(21, 26, 14, 0.17);
  --hair-light: rgba(246, 241, 230, 0.18);

  /* Semantic accent tokens — themes swap these, components never
     reference a raw accent color directly. */
  --accent-display: var(--asparagus); /* big type, decorative marks on light */
  --accent-text: #54703C;             /* small text accents on light grounds */
  --accent-ondark: var(--sage);       /* accents sitting on dark sections */
  --accent-fill: #54703C;             /* hover fills / selected states (cream text on top) */
  --accent-glow: 135, 169, 107;       /* rgb triplet for shadows/pulses */

  --font-d: 'Fraunces', Georgia, serif;
  --font-t: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;

  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(96px, 13vw, 180px);

  --ease: cubic-bezier(0.65, 0.05, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.menu-open,
html.menu-open body { overflow: hidden; }

body {
  font-family: var(--font-t);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: clip;
  font-weight: 400;
}

::selection { background: var(--accent-fill); color: var(--cream); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
i { font-style: normal; }

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-soft);
}
.skip-link:focus-visible { transform: none; }

/* ————— Grain ————— */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 250;
  pointer-events: none;
  opacity: 0.055;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ————— Preloader ————— */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.85s var(--ease), visibility 0s linear 0.85s;
}
.preloader__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 22px);
  overflow: hidden;
  padding: 8px 0;
}
.preloader__word {
  display: inline-flex;
  overflow: hidden;
  font-family: var(--font-d);
  font-size: clamp(26px, 5.4vw, 58px);
  font-weight: 560;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.preloader__word--it { font-style: italic; color: var(--accent-ondark); }
.pl-char {
  display: inline-block;
  transform: translateY(120%);
  animation: pl-rise 0.7s var(--ease) forwards;
}
.preloader__word .pl-char:nth-child(1) { animation-delay: 0.05s; }
.preloader__word .pl-char:nth-child(2) { animation-delay: 0.1s; }
.preloader__word .pl-char:nth-child(3) { animation-delay: 0.15s; }
.preloader__word .pl-char:nth-child(4) { animation-delay: 0.2s; }
.preloader__word .pl-char:nth-child(5) { animation-delay: 0.25s; }
.preloader__word .pl-char:nth-child(6) { animation-delay: 0.3s; }
.preloader__word .pl-char:nth-child(7) { animation-delay: 0.35s; }
.preloader__word .pl-char:nth-child(8) { animation-delay: 0.4s; }
.preloader__word--it .pl-char { animation-delay: calc(0.28s + var(--n, 0s)); }
.preloader__dash {
  width: clamp(22px, 4vw, 44px);
  height: 2px;
  background: var(--accent-ondark);
  transform: scaleX(0);
  animation: pl-dash 0.6s var(--ease) 0.35s forwards;
}
@keyframes pl-rise { to { transform: translateY(0); } }
@keyframes pl-dash { to { transform: scaleX(1); } }
html.is-loaded .preloader {
  transform: translateY(-100%);
  visibility: hidden;
}
html.no-preloader .preloader { display: none; }
html:not(.js) .preloader { display: none; }
html:not(.js) .hero__script { opacity: 1; }

/* ————— Progress ————— */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 210;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  background: var(--accent-display);
  transform-origin: 0 0;
  transform: scaleX(0);
}

/* ————— Header ————— */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad-x);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.site-head.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hair);
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-head.on-dark:not(.is-scrolled) { color: var(--cream); }
.site-head.on-dark.is-scrolled {
  background: color-mix(in srgb, var(--dark) 82%, transparent);
  color: var(--cream);
  box-shadow: 0 1px 0 var(--hair-light);
}

.brand {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 640;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
}
.brand__dash { color: var(--accent-display); margin: 0 2px; }
.brand__dot { color: var(--accent-display); }

.site-nav { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.5px;
  background: var(--accent-display);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.head-actions { display: flex; align-items: center; gap: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.35s var(--ease-soft), color 0.35s var(--ease-soft), border-color 0.35s;
}
.btn__arrow { transition: transform 0.35s var(--ease-soft); }
.btn:hover .btn__arrow { transform: translate(3px, 0); }
.btn--pill {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--cream);
  border: 1.5px solid var(--ink);
}
.btn--pill:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--cream); }
.on-dark .btn--pill:not(:hover) { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--big {
  font-size: clamp(15px, 1.6vw, 18px);
  padding: 16px 28px;
  border: 1.5px solid var(--cream);
  color: var(--cream);
}
.btn--big:hover { background: var(--accent-fill); border-color: var(--accent-fill); }
.btn--giant {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(17px, 3.4vw, 34px);
  padding: clamp(14px, 2.4vw, 24px) clamp(22px, 4vw, 44px);
  border: 1.5px solid var(--cream);
  color: var(--cream);
  border-radius: 200px;
}
.btn--giant:hover { background: var(--accent-fill); border-color: var(--accent-fill); }

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  z-index: 220;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.6px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
html.menu-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
html.menu-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 205;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--pad-x) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease), visibility 0s linear 0.7s;
}
html.menu-open .menu {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease);
}
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__link {
  font-family: var(--font-d);
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 560;
  line-height: 1.18;
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-soft);
}
.menu__link i {
  font-family: var(--font-t);
  font-size: 13px;
  color: var(--pistachio);
  font-weight: 600;
}
.menu__link:hover { color: var(--accent-ondark); }
html.menu-open .menu__link { opacity: 1; transform: none; }
html.menu-open .menu__link:nth-child(1) { transition-delay: 0.18s; }
html.menu-open .menu__link:nth-child(2) { transition-delay: 0.24s; }
html.menu-open .menu__link:nth-child(3) { transition-delay: 0.3s; }
html.menu-open .menu__link:nth-child(4) { transition-delay: 0.36s; }
html.menu-open .menu__link:nth-child(5) { transition-delay: 0.42s; }
.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--cream-2);
}
.menu__foot a { color: var(--cream); font-weight: 600; }

/* ————— Shared section bits ————— */
.section { padding: var(--pad-y) var(--pad-x); position: relative; }
.section--dark {
  background: var(--dark);
  color: var(--cream);
}
.section__head { margin-bottom: clamp(40px, 6vw, 80px); }
.section__title {
  font-family: var(--font-d);
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-top: 22px;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow i {
  color: var(--accent-text);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.eyebrow--light i { color: var(--accent-ondark); }
.eyebrow::after {
  content: "";
  flex: 0 0 clamp(40px, 6vw, 90px);
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.eyebrow--light { color: var(--cream-2); }

/* ————— Hero ————— */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad-x) 0;
  overflow: clip;
}
.hero__aura {
  position: absolute;
  top: 46%; left: 50%;
  width: 0; height: 0;
  z-index: -1;
}
.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(clamp(40px, 7vw, 90px));
  will-change: transform;
}
.aura--a {
  width: clamp(340px, 52vw, 780px);
  height: clamp(340px, 52vw, 780px);
  left: calc(50% - clamp(170px, 26vw, 390px));
  top: calc(50% - clamp(170px, 26vw, 390px));
  background: radial-gradient(circle at 40% 40%, rgba(113, 148, 82, 0.66), rgba(113, 148, 82, 0) 62%);
  animation: aura-float 11s ease-in-out infinite alternate;
}
.aura--b {
  width: clamp(260px, 40vw, 600px);
  height: clamp(260px, 40vw, 600px);
  left: calc(50% - clamp(60px, 8vw, 110px));
  top: calc(50% - clamp(180px, 26vw, 380px));
  background: radial-gradient(circle at 55% 45%, rgba(196, 214, 164, 0.62), rgba(196, 214, 164, 0) 64%);
  animation: aura-float 13s ease-in-out infinite alternate-reverse;
}
.aura--c {
  width: clamp(200px, 30vw, 430px);
  height: clamp(200px, 30vw, 430px);
  left: calc(50% - clamp(240px, 34vw, 500px));
  top: calc(50% - clamp(60px, 9vw, 130px));
  background: radial-gradient(circle at 50% 50%, rgba(147, 197, 114, 0.42), rgba(147, 197, 114, 0) 66%);
  animation: aura-float 9s ease-in-out infinite alternate;
}
.aura--d {
  width: clamp(180px, 26vw, 380px);
  height: clamp(180px, 26vw, 380px);
  left: calc(50% - clamp(300px, 40vw, 620px));
  top: calc(50% + clamp(20px, 4vw, 70px));
  background: radial-gradient(circle at 50% 45%, rgba(255, 176, 58, 0.34), rgba(255, 176, 58, 0) 65%);
  animation: aura-float 12s ease-in-out infinite alternate-reverse;
}
.aura__ring {
  position: absolute;
  width: clamp(300px, 44vw, 640px);
  height: clamp(300px, 44vw, 640px);
  left: calc(50% - clamp(150px, 22vw, 320px));
  top: calc(50% - clamp(150px, 22vw, 320px));
  border: 1px solid rgba(22, 18, 11, 0.25);
  border-radius: 50%;
  animation: ring-breathe 8s ease-in-out infinite;
}

/* ————— Hero portrait (green duotone) ————— */
.hero__photo-wrap {
  position: absolute;
  z-index: 1;
  right: clamp(36px, 5vw, 80px);
  bottom: clamp(230px, 28vh, 300px);
  width: clamp(210px, 19.5vw, 300px);
}
/* Default shape: organic blob (echoes the aura). Other shapes via html[data-shape]. */
.hero__photo {
  aspect-ratio: 3 / 3.55;
  border-radius: 57% 43% 52% 48% / 45% 55% 42% 58%;
  overflow: hidden;
  position: relative;
  background: var(--green-deep);
  box-shadow: 0 0 0 1.5px rgba(22, 18, 11, 0.8), 0 34px 70px -34px rgba(22, 18, 11, 0.4);
  animation:
    blob-morph 16s ease-in-out infinite alternate,
    photo-float 7s ease-in-out infinite alternate;
}
@keyframes photo-float {
  from { translate: 0 -6px; }
  to   { translate: 0 8px; }
}
@keyframes blob-morph {
  0%   { border-radius: 58% 42% 55% 45% / 50% 54% 46% 50%; }
  50%  { border-radius: 46% 54% 44% 56% / 58% 44% 56% 42%; }
  100% { border-radius: 54% 46% 60% 40% / 44% 56% 42% 58%; }
}
html[data-shape="circle"] .hero__photo {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  animation: photo-float 7s ease-in-out infinite alternate;
}
html[data-shape="squircle"] .hero__photo {
  aspect-ratio: 3 / 3.7;
  border-radius: clamp(30px, 3.4vw, 52px);
  animation: photo-float 7s ease-in-out infinite alternate;
}
html[data-shape="oval"] .hero__photo {
  aspect-ratio: 3 / 3.9;
  border-radius: 50%;
  animation: photo-float 7s ease-in-out infinite alternate;
}
html[data-shape="arch"] .hero__photo {
  aspect-ratio: 3 / 4.15;
  border-radius: 999px 999px 14px 14px;
  animation: photo-float 7s ease-in-out infinite alternate;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  mix-blend-mode: screen;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(94, 122, 69, 0.2), rgba(157, 193, 131, 0.3) 58%, rgba(20, 16, 10, 0.14));
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes aura-float {
  from { transform: translate3d(-3%, 2%, 0) scale(0.96); }
  to   { transform: translate3d(4%, -4%, 0) scale(1.05); }
}
@keyframes ring-breathe {
  0%, 100% { transform: scale(0.97); opacity: 0.55; }
  50% { transform: scale(1.03); opacity: 1; }
}

/* Twinkling accents */
.spark {
  position: absolute;
  z-index: 1;
  font-size: clamp(12px, 1.5vw, 21px);
  color: var(--accent-display);
  animation: twinkle 4.4s ease-in-out infinite;
  pointer-events: none;
}
.spark--1 { left: 6%; top: 24%; animation-duration: 3.8s; }
.spark--2 { left: 66%; top: 17%; color: var(--amber); animation-duration: 5.2s; animation-delay: 1.1s; font-size: clamp(10px, 1.1vw, 16px); }
.spark--3 { right: 25%; bottom: 34%; color: var(--pistachio); animation-duration: 4.6s; animation-delay: 0.6s; }
.spark--4 { left: 37%; bottom: 25%; animation-duration: 5.8s; animation-delay: 2s; font-size: clamp(10px, 1.2vw, 17px); }
@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.55) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1.12) rotate(24deg); }
}

.hero__badge {
  position: absolute;
  top: clamp(96px, 14vh, 150px);
  right: clamp(20px, 6vw, 90px);
  width: clamp(110px, 14vw, 190px);
  height: auto;
  z-index: 2;
}
.hero__badge text {
  font-family: var(--font-t);
  font-size: 15.5px;
  letter-spacing: 4.5px;
  fill: var(--ink);
}
.hero__badge-spin {
  transform-origin: 100px 100px;
  animation: spin 16s linear infinite;
}
.hero__badge-dot { fill: var(--accent-display); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__stage { position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-display);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-glow), 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(var(--accent-glow), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-glow), 0); }
}

.hero__title {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(58px, 15.8vw, 218px);
  line-height: 0.9;
  letter-spacing: -0.028em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line-inner { display: inline-block; }
.hero__line--2 { margin-left: clamp(28px, 7vw, 150px); }

/* Per-character entrance + playful hover */
.hero__char {
  display: inline-block;
  transition: transform 0.45s var(--ease-soft), color 0.35s ease;
}
html.js:not(.is-loaded) .hero__char { transform: translateY(118%) rotate(7deg); }
html.is-loaded .hero__char {
  animation: char-rise 0.9s var(--ease) backwards;
  animation-delay: calc(var(--i) * 32ms + 0.1s);
}
@keyframes char-rise {
  from { transform: translateY(118%) rotate(7deg); }
  to   { transform: translateY(0) rotate(0); }
}
.hero__char:hover {
  transform: translateY(-0.05em) rotate(-2.5deg);
  color: var(--accent-display);
}
.hero__period { color: var(--accent-display); }
html.is-loaded .hero__period {
  animation:
    char-rise 0.9s var(--ease) backwards,
    period-pulse 3.4s ease-in-out 2.6s infinite;
  animation-delay: calc(var(--i) * 32ms + 0.1s), 2.6s;
}
@keyframes period-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

.hero__script {
  position: absolute;
  right: clamp(4px, 8vw, 160px);
  bottom: clamp(120px, 17vw, 260px);
  font-family: var(--font-d);
  font-style: italic;
  font-weight: 460;
  font-size: clamp(20px, 3.4vw, 44px);
  color: var(--accent-display);
  transform: rotate(-6deg);
  transition: opacity 0.9s ease 1s, transform 0.9s var(--ease-soft) 1s;
  z-index: 3;
}
html.js .hero__script { opacity: 0; }
.hero__script-x { font-style: normal; font-family: var(--font-t); font-size: 0.7em; }

/* Rotating word — strategy × craft/motion/video/community */
.rotator {
  display: inline-grid;
  text-align: left;
  vertical-align: baseline;
}
.rotator__word {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(58%) rotate(3deg);
  transition: opacity 0.45s ease, transform 0.65s var(--ease);
}
.rotator__word.is-on { opacity: 1; transform: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-52%) rotate(-3deg); }
html.is-loaded .hero__script { opacity: 1; transform: rotate(-6deg) translateY(0); }

.hero__meta {
  display: flex;
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(22px, 3.6vh, 40px) 0 clamp(80px, 11vh, 120px);
}
.hero__meta-item {
  font-size: clamp(13px, 1.35vw, 15.5px);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero__meta-item b { color: var(--ink); font-weight: 600; }
.hero__meta-item--last { margin-left: auto; text-align: right; }

.hero__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: 92px;
  display: none;
  align-items: center;
  gap: 10px;
}

.ticker {
  border-top: 1px solid var(--hair);
  overflow: hidden;
  margin: 0 calc(-1 * var(--pad-x));
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}
.ticker__track--slow { animation-duration: 34s; }
.ticker__seq {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 9px 17px;
  font-family: var(--font-d);
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 500;
  white-space: nowrap;
}
.ticker__seq i { color: var(--accent-text); font-size: 0.75em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ————— About ————— */
.about__statement {
  font-family: var(--font-d);
  font-weight: 520;
  font-size: clamp(26px, 4.4vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  max-width: 24ch;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.3fr;
  gap: clamp(36px, 6vw, 100px);
  margin-top: clamp(48px, 7vw, 96px);
  align-items: start;
}
.about__note {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 44ch;
}
.about__note em {
  font-family: var(--font-d);
  color: var(--accent-text);
  font-weight: 500;
}
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hair);
  border-left: 1px solid var(--hair);
}
.stat {
  padding: clamp(20px, 2.6vw, 34px);
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.stat__num {
  font-family: var(--font-d);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 560;
  line-height: 1;
  display: flex;
  align-items: flex-start;
}
.stat__num i {
  color: var(--accent-display);
  font-size: 0.5em;
  margin-top: 0.14em;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ————— Experience ————— */
.xp__list { list-style: none; border-top: 1px solid var(--hair-light); }
.xp__row {
  display: grid;
  grid-template-columns: clamp(54px, 8vw, 120px) 1fr auto;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(30px, 4.4vw, 56px) 0;
  border-bottom: 1px solid var(--hair-light);
  position: relative;
  transition: padding-left 0.5s var(--ease-soft);
}
.xp__row:hover { padding-left: 14px; }
.xp__index {
  font-family: var(--font-d);
  font-style: italic;
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 241, 230, 0.65);
  line-height: 1;
  transition: color 0.4s ease;
}
.xp__row:hover .xp__index { color: var(--accent-ondark); -webkit-text-stroke-color: var(--accent-ondark); }
.xp__role {
  font-family: var(--font-d);
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.xp__org {
  margin-top: 8px;
  font-size: clamp(13.5px, 1.5vw, 16px);
  color: var(--cream-2);
}
.xp__org-note { opacity: 0.7; }
.xp__desc {
  margin-top: 16px;
  max-width: 62ch;
  font-size: clamp(14.5px, 1.55vw, 17px);
  line-height: 1.66;
  color: rgba(246, 241, 230, 0.82);
}
.xp__dates {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ondark);
  white-space: nowrap;
  padding-top: 10px;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tags li {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border: 1px solid rgba(157, 193, 131, 0.38);
  border-radius: 100px;
  color: var(--sage);
}

/* ————— Craft ————— */
.craft__list { list-style: none; border-top: 1px solid var(--hair); }
.craft__row {
  display: grid;
  grid-template-columns: clamp(50px, 7vw, 110px) 1.1fr 1fr;
  align-items: baseline;
  gap: clamp(14px, 3vw, 44px);
  padding: clamp(22px, 3.2vw, 40px) clamp(4px, 1vw, 16px);
  border-bottom: 1px solid var(--hair);
  position: relative;
  isolation: isolate;
  cursor: default;
}
.craft__row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.craft__row:hover::before { transform: scaleY(1); transform-origin: 50% 0%; }
.craft__row:hover { color: var(--cream); }
.craft__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}
.craft__row:hover .craft__num { color: var(--accent-ondark); }
.craft__name {
  font-family: var(--font-d);
  font-size: clamp(24px, 3.8vw, 48px);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.craft__desc {
  font-size: clamp(13.5px, 1.5vw, 16px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 40ch;
  transition: color 0.3s ease;
}
.craft__row:hover .craft__desc { color: var(--cream-2); }

.wip-badge {
  position: relative;
  font-family: var(--font-t);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sage);
  border-radius: 100px;
  padding: 6px 13px 5px;
  overflow: hidden;
}
.craft__row:hover .wip-badge { background: var(--pistachio); }
.wip-badge__bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2.5px;
  width: 100%;
  background: rgba(22, 18, 11, 0.72);
  transform-origin: 0 50%;
  animation: loading 2.4s var(--ease-soft) infinite;
}
@keyframes loading {
  0% { transform: scaleX(0); }
  70% { transform: scaleX(0.86); }
  100% { transform: scaleX(0.86); }
}

.toolstrip { margin-top: clamp(48px, 7vw, 90px); }
.toolstrip .ticker { border-bottom: 1px solid var(--hair); }
.toolstrip .ticker__seq {
  font-family: var(--font-t);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.toolstrip .ticker__seq i { color: var(--asparagus); }

/* ————— Range (horizontal gallery) ————— */
.range { position: relative; }
.range__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.range__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 0 var(--pad-x);
  will-change: transform;
}
.g-card { flex: 0 0 auto; }
.g-card--intro { width: min(78vw, 560px); }
.g-card--outro {
  width: min(78vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  padding-right: 4vw;
}
.g-card__title {
  font-family: var(--font-d);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 22px;
}
.g-card__title em { font-style: italic; color: var(--accent-ondark); }
.g-card__sub {
  margin-top: 22px;
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.66;
  color: var(--cream-2);
  max-width: 42ch;
}
.g-card__hint { color: var(--accent-ondark); font-weight: 600; white-space: nowrap; }
.g-frame {
  width: clamp(250px, 30vw, 430px);
  border: 1px solid var(--hair-light);
  padding: clamp(10px, 1.2vw, 16px);
  border-radius: 6px;
  background: rgba(246, 241, 230, 0.03);
  transition: transform 0.6s var(--ease-soft), border-color 0.4s ease;
}
.g-card:nth-child(odd) .g-frame { transform: rotate(-1.2deg); }
.g-card:nth-child(even) .g-frame { transform: rotate(1.4deg); }
.g-card .g-frame:hover { transform: rotate(0deg) translateY(-10px); border-color: color-mix(in srgb, var(--accent-ondark) 60%, transparent); }
.g-frame svg { width: 100%; height: auto; border-radius: 2px; }
.g-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
  font-size: 13px;
}
.g-caption b { font-weight: 600; }
.g-caption span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-2);
}

/* ————— Education ————— */
.edu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.edu__card {
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 40px);
  min-height: clamp(180px, 22vw, 260px);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-soft), background 0.4s ease, border-color 0.4s ease;
}
.edu__card:hover {
  transform: translateY(-8px);
  background: var(--green-deep);
  color: var(--cream);
  border-color: var(--green-deep);
}
.edu__card:hover .edu__where { color: var(--cream-2); }
.edu__card:hover .edu__kicker { color: var(--pistachio); }
.edu__kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}
.edu__what {
  font-family: var(--font-d);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 560;
  margin-top: auto;
  padding-top: 34px;
  line-height: 1.06;
}
.edu__where {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  transition: color 0.4s ease;
}
.edu__card--wip .edu__where b { color: var(--coral); }
.blink { color: var(--coral); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.edu__langs {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-2);
}
.edu__langs b { color: var(--ink); font-weight: 600; }

/* ————— Contact ————— */
.contact {
  padding: var(--pad-y) var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact__title {
  font-family: var(--font-d);
  font-weight: 560;
  font-size: clamp(52px, 11.5vw, 168px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-top: clamp(28px, 4vw, 52px);
}
.contact__line { display: block; }
.contact__line--it {
  font-style: italic;
  color: var(--accent-ondark);
  margin-left: clamp(24px, 6vw, 120px);
}
.contact__sub {
  margin-top: clamp(24px, 3.6vw, 44px);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--cream-2);
  max-width: 46ch;
}
.contact .btn--giant { margin-top: clamp(28px, 4vw, 52px); }
.contact__phone {
  margin-top: clamp(18px, 2.6vw, 28px);
  font-size: clamp(13.5px, 1.5vw, 16px);
  color: var(--cream-2);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.phone-reveal {
  font: inherit;
  font-weight: 600;
  color: var(--cream);
  border-bottom: 1.5px dashed var(--accent-ondark);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.phone-reveal:hover { color: var(--accent-ondark); }
.phone-num {
  font-weight: 700;
  font-size: 1.15em;
  color: var(--sage);
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid rgba(157, 193, 131, 0.5);
}
.phone-num:hover { color: var(--pistachio); }
.contact__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(60px, 9vw, 130px);
  padding-top: 26px;
  border-top: 1px solid var(--hair-light);
}
.contact__links, .contact__cv { display: flex; gap: clamp(18px, 3vw, 34px); flex-wrap: wrap; }
.u-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
}
.u-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--accent-ondark);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}
.u-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.u-link--dim { color: var(--cream-2); }
.foot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 30px 0 26px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--cream-2);
}
.foot__mid { opacity: 0.75; }

/* ————— Study cards (clickable) ————— */
.g-card--study { cursor: pointer; }
.g-card--study .g-frame { position: relative; }
.g-card--study .g-frame::after {
  content: "+ Field notes";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-t);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-2);
  background: rgba(20, 16, 10, 0.62);
  border: 1px solid var(--hair-light);
  border-radius: 100px;
  padding: 6px 11px 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.g-card--study:hover .g-frame::after,
.g-card--study:focus-visible .g-frame::after {
  color: var(--accent-ondark);
  border-color: color-mix(in srgb, var(--accent-ondark) 60%, transparent);
}
.g-card--study:focus-visible { outline: none; }
.g-card--study:focus-visible .g-frame { border-color: var(--accent-ondark); }

/* ————— Study overlay ————— */
html.modal-open,
html.modal-open body { overflow: hidden; }
.study {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 44px);
}
.study[hidden] { display: none; }
.study__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 9, 5, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.study__panel {
  position: relative;
  width: min(1020px, 100%);
  max-height: min(88svh, 860px);
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 44px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.55s var(--ease);
}
.study.open .study__scrim { opacity: 1; }
.study.open .study__panel { opacity: 1; transform: none; }
.study__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.study__code {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent);
  border-radius: 100px;
  padding: 7px 14px 6px;
}
.study[data-accent="green"] .study__code {
  color: var(--olive);
  border-color: rgba(135, 169, 107, 0.55);
}
.study__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--hair);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.study__close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.study__grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(22px, 3.4vw, 44px);
  align-items: start;
}
.study__art {
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 10px;
  background: var(--paper-soft);
}
.study__art svg { width: 100%; height: auto; border-radius: 4px; }
.study__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.study__title {
  font-family: var(--font-d);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 580;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.study__body {
  margin-top: clamp(14px, 2vw, 22px);
  font-size: clamp(14.5px, 1.55vw, 16.5px);
  line-height: 1.72;
  color: rgba(22, 18, 11, 0.85);
  max-width: 58ch;
}
.study__body p + p { margin-top: 12px; }
.study__steal {
  margin-top: clamp(18px, 2.6vw, 26px);
  padding: 14px 18px;
  border-left: 3px solid var(--accent-text);
  background: color-mix(in srgb, var(--accent-text) 8%, transparent);
  border-radius: 0 10px 10px 0;
  font-size: clamp(13.5px, 1.5vw, 15.5px);
  line-height: 1.6;
}
.study__steal b { color: var(--accent-text); }
.study[data-accent="green"] .study__steal {
  border-left-color: var(--asparagus);
  background: rgba(135, 169, 107, 0.12);
}
.study[data-accent="green"] .study__steal b { color: var(--olive); }
@media (max-width: 760px) {
  .study__grid { grid-template-columns: 1fr; }
  .study__art { max-width: 210px; }
}

/* ————— Cursor ————— */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 260;
  pointer-events: none;
  display: none;
}
.cursor__dot {
  position: absolute;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent-display);
}
.cursor__ring {
  position: absolute;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.4px solid rgba(var(--accent-glow), 0.75);
  border-radius: 50%;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cursor.is-hover .cursor__ring { transform: scale(1.7); opacity: 0.45; }
.cursor.is-down .cursor__ring { transform: scale(0.8); }

/* ————— Reveal primitives ————— */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-soft);
}
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal].in { opacity: 1; transform: translateY(0); }
html.js [data-reveal][data-delay="1"] { transition-delay: 0.1s; }
html.js [data-reveal][data-delay="2"] { transition-delay: 0.2s; }
html.js [data-reveal][data-delay="3"] { transition-delay: 0.3s; }

.split-line {
  display: block;
  overflow: hidden;
  /* room for descenders (g, y, j) under tight line-heights */
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.split-line__inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease);
}
[data-split].in .split-line__inner { transform: translateY(0); }
[data-split].in .split-line:nth-child(2) .split-line__inner { transition-delay: 0.08s; }
[data-split].in .split-line:nth-child(3) .split-line__inner { transition-delay: 0.16s; }
[data-split].in .split-line:nth-child(4) .split-line__inner { transition-delay: 0.24s; }
[data-split].in .split-line:nth-child(5) .split-line__inner { transition-delay: 0.32s; }
[data-split].in .split-line:nth-child(6) .split-line__inner { transition-delay: 0.4s; }

/* ————— Responsive ————— */
@media (min-width: 901px) {
  .range { height: 380vh; }
  .hero__scroll {
    display: flex;
    flex-direction: column;
    bottom: 84px;
    gap: 8px;
  }
  .hero__scroll-track {
    width: 1.5px; height: 44px;
    background: var(--hair);
    position: relative;
    overflow: hidden;
  }
  .hero__scroll-thumb {
    position: absolute;
    left: 0; top: -40%;
    width: 100%; height: 40%;
    background: var(--accent-display);
    animation: scroll-hint 1.8s var(--ease-soft) infinite;
  }
  @keyframes scroll-hint { to { top: 110%; } }
  .hero__scroll-label {
    font-size: 10.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-2);
    writing-mode: vertical-rl;
  }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .burger { display: block; }

  .hero { justify-content: center; }
  .hero__title { font-size: clamp(58px, 17.5vw, 120px); }
  .hero__line--2 { margin-left: 8vw; }
  .hero__script { right: 6vw; bottom: 30vh; }
  .hero__meta { flex-direction: column; gap: 18px; padding-bottom: 110px; }
  .hero__meta-item--last { margin-left: 0; text-align: left; }
  .hero__badge { top: auto; bottom: 88px; right: var(--pad-x); width: 96px; opacity: 0.9; }
  .hero__photo-wrap {
    position: static;
    width: min(46vw, 200px);
    margin: 90px 0 26px;
    transform: none !important;
  }

  .about__grid { grid-template-columns: 1fr; }

  .xp__row { grid-template-columns: 1fr; gap: 6px; padding: 34px 0; }
  .xp__row:hover { padding-left: 0; }
  .xp__index { display: none; }
  .xp__dates { order: -1; padding: 0 0 6px; }

  .craft__row { grid-template-columns: 1fr; gap: 8px; padding: 26px 4px; }
  .craft__num { order: -1; }

  /* Gallery: native horizontal scroll on mobile */
  .range { height: auto; padding: var(--pad-y) 0; }
  .range__pin { position: static; height: auto; overflow: visible; }
  .range__track {
    overflow-x: auto;
    padding: 0 var(--pad-x) 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .range__track::-webkit-scrollbar { display: none; }
  .g-card { scroll-snap-align: center; }
  .g-card--intro, .g-card--outro { width: 82vw; }
  .g-frame { width: min(70vw, 340px); }

  .edu__grid { grid-template-columns: 1fr; }
  .edu__card { min-height: 0; }
  .edu__what { padding-top: 22px; }

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

@media (max-width: 560px) {
  :root { --pad-y: 84px; }
  .hero__title { font-size: 16.5vw; letter-spacing: -0.035em; }
  .hero__line--2 { margin-left: 4vw; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 14px; }
  .stat__num { font-size: 40px; }
  .btn--giant { font-size: 16px; padding: 14px 20px; }
  .g-caption { flex-direction: column; gap: 3px; }
}

/* ═══════════ Alternate themes (html[data-theme]) ═══════════
   Default (:root) is TEA. Alternates:
   coral  — the original warm identity: cream paper, coral accents
   sage   — green accents on the original cream grounds
   forest — cream paper, deep-forest darks, green accents  */

html[data-theme="coral"],
html[data-theme="sage"],
html[data-theme="forest"] {
  --paper: #F6F1E6;
  --paper-soft: #EFE8D8;
  --cream: #F6F1E6;
  --cream-2: rgba(246, 241, 230, 0.6);
  --ink: #16120B;
  --ink-2: rgba(22, 18, 11, 0.62);
  --hair: rgba(22, 18, 11, 0.16);
}

html[data-theme="coral"],
html[data-theme="sage"] {
  --dark: #14100A;
  --green-deep: #26331B;
}

html[data-theme="sage"],
html[data-theme="forest"] {
  --accent-text: var(--olive);
  --accent-fill: var(--olive);
}
html[data-theme="forest"] {
  --dark: #131A0D;
  --green-deep: #1D2810;
}

html[data-theme="coral"] {
  --accent-display: var(--coral);
  --accent-text: var(--coral);
  --accent-ondark: var(--coral);
  --accent-fill: var(--coral);
  --accent-glow: 255, 75, 31;
  --amber: #FFB03A;
}
html[data-theme="coral"] .aura--a {
  background: radial-gradient(circle at 40% 40%, rgba(255, 75, 31, 0.62), rgba(255, 75, 31, 0) 62%);
}
html[data-theme="coral"] .aura--b {
  background: radial-gradient(circle at 55% 45%, rgba(255, 176, 58, 0.6), rgba(255, 176, 58, 0) 64%);
}
html[data-theme="coral"] .aura--c {
  background: radial-gradient(circle at 50% 50%, rgba(255, 122, 46, 0.42), rgba(255, 122, 46, 0) 66%);
}
html[data-theme="coral"] .aura--d {
  background: radial-gradient(circle at 50% 45%, rgba(157, 193, 131, 0.5), rgba(157, 193, 131, 0) 65%);
}
html[data-theme="coral"] .hero__photo::after {
  background: linear-gradient(165deg, rgba(255, 75, 31, 0.18), rgba(157, 193, 131, 0.26) 58%, rgba(20, 16, 10, 0.14));
}

/* ————— Theme/shape picker (only injected with ?picker=1 or in previews) ————— */
.picker {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 320;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.picker__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.picker__label {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 9px;
  color: var(--ink-2);
  width: 44px;
  flex: none;
}
.picker__btn {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--hair);
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.picker__btn:hover { border-color: var(--ink); }
.picker__btn.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.picker__swatch {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 0;
}

/* ————— Static capture mode (?static=1 — used for OG images & previews) ————— */
html.static-mode { scroll-behavior: auto; }
html.static-mode [data-reveal],
html.static-mode [data-split],
html.static-mode .hero__line-inner,
html.static-mode .hero__char,
html.static-mode .hero__script {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
html.static-mode .spark {
  animation: none;
  opacity: 0.75;
  transform: none;
}
html.static-mode .preloader { display: none; }
html.static-mode .hero { min-height: 880px; }
html.static-mode .hero__badge { top: 130px; }
html.static-mode .hero__photo-wrap { bottom: 258px; }
html.static-mode .study { display: none; }
html.static-mode .range,
html.reduced-motion .range { height: auto !important; padding: var(--pad-y) 0; }
html.static-mode .range__pin,
html.reduced-motion .range__pin { position: static; height: auto; overflow: visible; }
html.reduced-motion .range__track {
  overflow-x: auto;
  padding: 0 var(--pad-x) 24px;
  transform: none !important;
}
html.static-mode .range__track {
  flex-wrap: wrap;
  overflow: visible;
  padding: 0 var(--pad-x) 24px;
  row-gap: 48px;
  transform: none !important;
}

/* ————— Motion preferences ————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal],
  .hero__line-inner,
  .split-line__inner { opacity: 1 !important; transform: none !important; }
  .preloader { display: none; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__seq { white-space: normal; }
}
