/* ==========================================================================
   rithikpandian.com site styles
   Single stylesheet, no build step. Sections:
   1. Tokens   2. Reset   3. Layout   4. Header/Footer   5. Type
   6. Buttons  7. Cards   8. Timeline 9. Media/video  10. Forms  11. Utils
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
/* Yellow / white / black.
   Rule of thumb: yellow is a FILL, never body text. #FFC81E on white is about
   1.6:1 contrast, so anything sitting on yellow uses --on-accent (black). */
:root {
  --ink:        #0d0d0d;
  --ink-soft:   #3d3d3d;
  --ink-faint:  #767676;
  --paper:      #ffffff;
  --paper-2:    #f5f4f1;
  --line:       #e3e1dc;
  --accent:     #ffc81e;   /* the yellow */
  --accent-hi:  #ffd75c;   /* lighter yellow for hovers */
  --on-accent:  #0d0d0d;   /* text that sits on yellow */
  --white:      #ffffff;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(20, 17, 15, .06), 0 4px 12px rgba(20, 17, 15, .05);
  --shadow-md: 0 2px 6px rgba(20, 17, 15, .07), 0 18px 40px rgba(20, 17, 15, .09);

  --step: clamp(1rem, .92rem + .4vw, 1.125rem);
}

[data-theme="dark"] {
  --ink:       #ffffff;
  --ink-soft:  #c9c7c2;
  --ink-faint: #8f8d88;
  --paper:     #0d0d0d;
  --paper-2:   #181816;
  --line:      #2c2c29;
  --accent:    #ffc81e;   /* same yellow, it works on black */
  --accent-hi: #ffd75c;
  --on-accent: #0d0d0d;
  --white:     #181816;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.4);
  --shadow-md: 0 2px 6px rgba(0,0,0,.55), 0 18px 40px rgba(0,0,0,.5);
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* Yellow alone is too low-contrast for a focus ring, so ink outline + yellow halo. */
:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px;
  box-shadow: 0 0 0 6px var(--accent);
}

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
/* Constrains line length WITHOUT re-centring, so every section on a page shares
   one left edge. Use this for intro copy; use .wrap--narrow only when centring. */
.measure { max-width: 62ch; margin-inline: 0; }
.measure--wide { max-width: 74ch; }
/* Closing call-to-action blocks: same left edge as everything else, not centred. */
.cta > * { max-width: 62ch; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--paper-2); }
/* Full-bleed yellow band. Always black text, in both themes. */
.section--yellow { background: var(--accent); color: var(--on-accent); }
.section--yellow .eyebrow { background: var(--on-accent); color: var(--accent); }
.section--yellow .muted, .section--yellow .lede { color: rgba(13,13,13,.72); }
.section--yellow .logo-strip span { color: var(--on-accent); }
.section--yellow .btn--ghost { border-color: var(--on-accent); color: var(--on-accent); }
.section--yellow .btn--ghost:hover { background: var(--on-accent); color: var(--accent); }
.section--yellow .btn--primary { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 62ch; }
.grid { display: grid; gap: 24px; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* 4. Header / Footer ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 16px; height: 68px; }
.nav__brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap;
}
/* The full stop after the name becomes a yellow dot with a thin ink ring,
   so it stays visible on white where flat yellow text would not. */
.nav__brand span {
  display: inline-block; font-size: 0; vertical-align: baseline;
  width: 8px; height: 8px; margin-left: 3px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink);
}
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; color: var(--ink-soft);
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* `.nav__links a` would otherwise beat `.btn--primary` on specificity and leave
   the header CTA with grey text on yellow. */
.nav__links a.btn--primary { color: var(--on-accent); }
.nav__links a.btn--primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.nav__toggle, .theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.theme-toggle:hover, .nav__toggle:hover { background: var(--paper-2); }
.nav__toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 16px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav__links .btn { margin-top: 8px; text-align: center; }
}

/* Black footer in both themes, so the yellow/white/black trio always closes the page. */
.site-footer {
  background: #0d0d0d; color: #ffffff;
  border-top: 1px solid #0d0d0d; padding-block: 56px 40px;
}
.site-footer .nav__brand span { box-shadow: 0 0 0 1.5px #ffffff; }
.site-footer .btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.site-footer .btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.site-footer .muted { color: rgba(255,255,255,.6); }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 620px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { text-decoration: none; color: rgba(255,255,255,.78); font-size: .95rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.6);
}
.footer__bottom a { color: var(--accent); text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Sits in the middle of the three footer items on wide screens, stacks on small. */
.footer__managed { order: 2; }
@media (max-width: 700px) { .footer__bottom { flex-direction: column; gap: 8px; } }

/* 5. Type ------------------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin: 0 0 .5em; }
/* Long unbroken strings (email addresses, URLs) must not push the layout wide. */
h1, h2, h3, h4, p, li, a { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--ink-soft); line-height: 1.6; }
/* Black text on a yellow chip. Yellow text on white would be unreadable. */
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
  padding: 5px 11px 4px; border-radius: 5px;
  margin-bottom: 18px;
}
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose a, .stack a, main p a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose a:hover, .stack a:hover, main p a:hover { background: var(--accent); color: var(--on-accent); }
.muted { color: var(--ink-faint); }
.small { font-size: .875rem; }

/* 6. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
/* Yellow fill, black text, black hairline so the button still has an edge on white. */
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hi); box-shadow: var(--shadow-md); }
[data-theme="dark"] .btn--primary { border-color: var(--accent); }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 7. Cards ----------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card, .card--link { text-decoration: none; display: block; }
a.card:hover, .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card__meta { font-size: .82rem; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }

/* Stat cards wear the yellow as a top rule rather than as text colour. */
.stat { text-align: left; border-top: 5px solid var(--accent); }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--ink); }
.stat__label { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
/* The marker is absolutely positioned, NOT a grid column: making the <li> a grid
   container turns every inline child (<strong>, <a>) into its own grid item and
   shreds the sentence across rows. */
.facts li { position: relative; padding-left: 26px; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink);
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Logo / credit strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.logo-strip span {
  font-family: var(--font-display); font-size: clamp(1rem, .9rem + .5vw, 1.35rem);
  color: var(--ink-faint); font-weight: 600; letter-spacing: -.01em;
}

/* 8. Timeline -------------------------------------------------------------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; max-width: 68ch; }
.timeline p { max-width: 62ch; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--accent), var(--line));
}
.timeline > li { position: relative; padding-bottom: 44px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -34px; top: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2.5px solid var(--ink);
}
.timeline__year {
  display: inline-block; font-size: .74rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent);
  padding: 4px 10px 3px; border-radius: 5px;
}
.timeline h3 { margin: 4px 0 .4em; }

/* 9. Media / video --------------------------------------------------------- */
.media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.media--vertical { aspect-ratio: 9 / 16; }
.media--wide { aspect-ratio: 16 / 9; }
.media video, .media iframe, .media img { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Autoplay clip card (muted autoplay + tap to unmute) */
.clip { position: relative; }
.clip__sound {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
}
.clip__sound:hover { background: rgba(0,0,0,.75); }
.clip__sound .on { display: none; }
.clip.is-unmuted .clip__sound .on { display: block; }
.clip.is-unmuted .clip__sound .off { display: none; }

/* YouTube facade: loads the iframe only on click, keeps the page fast */
.yt-facade { position: relative; cursor: pointer; background: #000; }
.yt-facade img { opacity: .82; transition: opacity .2s ease; }
.yt-facade:hover img { opacity: 1; }
.yt-facade__play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  border-radius: 12px; background: rgba(200, 30, 20, .92); border: 0;
  display: grid; place-items: center; cursor: pointer; color: #fff;
}
.yt-facade:hover .yt-facade__play { background: #cc1e14; }

/* Instagram cards.
   These are NOT Instagram's iframe embed. That embed ships no image in its HTML
   and fetches the media with its own JavaScript at runtime, so it renders as a
   blank white box whenever a visitor blocks third-party scripts or cookies,
   which is common. Instead we self-host the poster frame and link out. Always
   renders, far faster, and nothing depends on Instagram staying reachable. */
.ig-embed {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.ig-embed:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink); }
.ig-embed img { width: 100%; height: 100%; object-fit: cover; }
.ig-embed iframe { width: 100%; height: 100%; border: 0; }

/* Play affordance */
.ig-play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(13,13,13,.62); color: #fff;
  backdrop-filter: blur(3px);
  transition: background .18s ease, transform .18s ease;
}
a.ig-embed:hover .ig-play { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }

/* Corner tag so it is obvious the card opens Instagram */
.ig-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 9px 3px; border-radius: 5px;
  background: rgba(13,13,13,.66); color: #fff; backdrop-filter: blur(3px);
  font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.ig-card { display: grid; gap: 12px; }
.ig-card__label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ig-card__brand { font-weight: 700; letter-spacing: -.01em; }
.ig-card__cat {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); padding: 3px 8px 2px; border-radius: 4px;
}
@media (max-width: 620px) { .ig-embed { height: 560px; } }

/* Reel / collab card */
.reel { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); text-decoration: none; display: block; }
.reel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.reel__body { padding: 16px 18px 18px; }
.reel__brand { font-weight: 650; letter-spacing: -.01em; }
.reel__cat { font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }

/* 10. Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
/* align-content:start stops auto rows from stretching. Without it, a field with a
   hint line makes its side-by-side neighbour's input drift down to fill the height. */
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: .88rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .97rem;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--accent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c02626; }
.field .error { font-size: .8rem; color: #c02626; min-height: 1em; }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
/* Multi-select dropdown: a real checkbox group behind a dropdown button, so it
   reads like a <select multiple> but is actually usable on touch and with a
   keyboard. The checkboxes are genuine form inputs, so FormData sees them. */
.field .label { font-size: .88rem; font-weight: 600; }
.multiselect { position: relative; }
.multiselect__toggle {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; font: inherit; font-size: .97rem; text-align: left;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.multiselect__toggle:hover { border-color: var(--ink-faint); }
.multiselect__summary { flex: 1; }
.multiselect.is-empty .multiselect__summary { color: var(--ink-faint); }
.multiselect__chevron { flex: none; transition: transform .18s ease; }
.multiselect.is-open .multiselect__toggle { border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent); }
.multiselect.is-open .multiselect__chevron { transform: rotate(180deg); }
.multiselect[aria-invalid="true"] .multiselect__toggle { border-color: #c02626; }

.multiselect__panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  /* Tall enough that all seven pages fit without scrolling; scrolls if you add more. */
  max-height: 384px; overflow-y: auto; padding: 6px;
  background: var(--white); border: 1px solid var(--ink);
  border-radius: 10px; box-shadow: var(--shadow-md);
}
.multiselect__panel[hidden] { display: none; }
.multiselect__opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 8px; cursor: pointer; font-size: .93rem;
}
.multiselect__opt:hover { background: var(--paper-2); }
.multiselect__opt input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--accent); }
.multiselect__opt span { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.multiselect__opt em {
  font-style: normal; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint);
}
.multiselect__opt:has(input:checked) { background: var(--accent); }
.multiselect__opt:has(input:checked) em { color: rgba(13,13,13,.62); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 14px 16px; border-radius: 10px; font-size: .93rem; display: none; }
.form__status.is-error   { display: block; background: #fdecec; color: #8c1c1c; border: 1px solid #f3c4c4; }
.form__status.is-success { display: block; background: #e9f6ec; color: #17612c; border: 1px solid #bfe3c9; }
[data-theme="dark"] .form__status.is-error   { background: #3a1c1c; color: #ffb4b4; border-color: #5c2a2a; }
[data-theme="dark"] .form__status.is-success { background: #16301f; color: #9fe0b4; border-color: #26543a; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .88rem; color: var(--ink-soft); }
.consent input { width: 18px; height: 18px; margin-top: 3px; }

/* 11. Utilities ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.center { text-align: center; }
.center .section__head { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.hr { border: 0; border-top: 1px solid var(--line); margin-block: clamp(40px, 6vw, 72px); }

/* Hero */
.hero { padding-block: clamp(56px, 9vw, 116px) clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
/* The portrait is shot on this exact yellow, so the container carries the same
   colour and the cut-out blends into it with no visible seam. */
.hero__portrait {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--accent); box-shadow: var(--shadow-md);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
/* Until make-images.sh has been run the file is absent; keep the broken state
   legible (dark alt text on the yellow box) rather than a bare browser glyph. */
.hero__portrait img:not([src=""]) { color: var(--on-accent); font-size: .9rem; text-align: center; }

/* Reveal on scroll.
   Only hidden under .js, set by the inline head script, so that if JavaScript
   fails to load, every section still renders instead of staying invisible. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
