/* =========================================================================
   Navaneeth M — Portfolio
   1. Tokens  2. Reset/base  3. Utilities  4. Nav  5. Hero  6. Sections
   7. About/Skills  8. Timeline  9. Projects  10. Demo  11. Articles
   12. Contact/Footer  13. Animations  14. Reduced motion
   ========================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  color-scheme: dark;

  --bg:          #0b0e14;
  --bg-raised:   #131826;
  --bg-overlay:  #1b2233;
  --text:        #e8ecf4;
  --text-dim:    #9aa4b8;
  --accent:      #e50914; /* record red — decoration/fills only */
  --accent-text: #ff6b70; /* lighter red for small text on dark (contrast-safe) */
  --accent-2:    #3ddc97; /* buffer green */
  --accent-3:    #4ea1ff; /* link blue / focus */
  --border:      #232b3d;

  --focus-ring: 0 0 0 3px rgba(78,161,255,.55);
  --radius: 10px;
  --radius-lg: 16px;

  --maxw: 72rem;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* fluid type scale */
  --fs-0: clamp(.8125rem, .78rem + .15vw, .9rem);
  --fs-1: clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  --fs-2: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --fs-3: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-4: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --fs-5: clamp(2.5rem, 1.7rem + 4vw, 5rem);

  /* spacing */
  --space-section: clamp(4rem, 3rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 1rem + 2vw, 2.5rem);

  --scroll: 0%; /* updated by JS for the seek bar */
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; }

code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-overlay); padding: .1em .35em; border-radius: 4px; }

.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

/* ---------- 3. UTILITIES ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -4rem; transform: translateX(-50%);
  z-index: 200; background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: .75rem; text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: var(--fs-1);
  padding: .7rem 1.25rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #ff1420; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent-3); }

/* ---------- Scroll seek bar ---------- */
.scroll-seek {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.scroll-seek__fill {
  display: block; height: 100%; width: var(--scroll);
  background: linear-gradient(90deg, var(--accent), #ff4d57);
  box-shadow: 0 0 8px rgba(229,9,20,.6);
}

/* ---------- 4. NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,14,20,.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin-inline: auto;
  padding: .75rem var(--gutter);
}
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; letter-spacing: .04em; }
.nav__brand:hover { text-decoration: none; }
.nav__mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--accent); color: #fff; border-radius: 8px;
}
.nav__menu { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.nav__menu a { color: var(--text-dim); font-size: var(--fs-0); font-weight: 500; transition: color .15s ease; }
.nav__menu a:hover { color: var(--text); text-decoration: none; }
.nav__cta { color: var(--text) !important; border: 1px solid var(--border); padding: .35rem .75rem; border-radius: 8px; }
.nav__cta:hover { border-color: var(--accent-3); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 38px; padding: 9px 8px; background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.nav__toggle-bar { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 40rem) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
    padding: .5rem var(--gutter) 1rem;
    clip-path: inset(0 0 100% 0); opacity: 0;
    transition: clip-path .28s ease, opacity .28s ease;
  }
  .nav__menu.is-open { clip-path: inset(0 0 0 0); opacity: 1; }
  .nav__menu li { width: 100%; }
  .nav__menu a { display: block; padding: .75rem 0; font-size: var(--fs-1); border-bottom: 1px solid var(--border); width: 100%; }
  .nav__cta { display: inline-block; margin-top: .5rem; }
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding-block: 5rem 4rem; overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(78,161,255,.10), transparent 55%),
    radial-gradient(80% 70% at 80% 100%, rgba(229,9,20,.10), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
/* legibility scrim over the WebGL canvas — darkest behind the text, fades right */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,14,20,.86) 0%, rgba(11,14,20,.62) 38%, rgba(11,14,20,.18) 72%, transparent 100%),
    linear-gradient(0deg, rgba(11,14,20,.55), transparent 40%);
}
.hero__inner { position: relative; }
.hero__eyebrow { color: var(--accent-2); font-size: var(--fs-0); letter-spacing: .25em; margin-bottom: 1rem; }
.hero__title { font-size: var(--fs-5); letter-spacing: -.03em; }
.hero__roles { font-size: var(--fs-2); color: var(--text); margin-top: .5rem; display: flex; align-items: center; gap: .5rem; min-height: 1.6em; }
.hero__roles-static { color: var(--accent-2); }
.hero__roles-typed { color: var(--text); font-family: var(--font-mono); }
.hero__cursor { display: inline-block; width: .6ch; height: 1.1em; background: var(--accent); animation: blink 1.05s steps(1) infinite; translate: 0 .1em; }
.hero__tagline { color: var(--text-dim); font-size: var(--fs-1); max-width: 46ch; margin-top: 1.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__social { display: flex; gap: 1rem; margin-top: 1.75rem; }
.hero__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-dim); transition: color .15s ease, border-color .15s ease, transform .15s ease; }
.hero__social a:hover { color: var(--text); border-color: var(--accent-3); transform: translateY(-2px); }

.hero__seek {
  position: absolute; left: 0; right: 0; bottom: clamp(1rem, 3vh, 2.5rem);
  display: flex; align-items: center; gap: .75rem;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  font-size: var(--fs-0); color: var(--text-dim);
}
.hero__seek-bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.hero__seek-buffer { position: absolute; inset: 0 35% 0 0; background: rgba(255,255,255,.18); }
.hero__seek-played { position: absolute; inset: 0 75% 0 0; background: var(--accent); box-shadow: 0 0 8px rgba(229,9,20,.6); animation: buffer-shimmer 4.5s ease-in-out infinite; }

/* ---------- 6. SECTIONS ---------- */
.section { padding-block: var(--space-section); border-top: 1px solid var(--border); }
.section__index { color: var(--accent-text); font-size: var(--fs-0); letter-spacing: .25em; margin-bottom: .75rem; }
.section__title { font-size: var(--fs-4); margin-bottom: 1rem; }
.section__lead { color: var(--text-dim); font-size: var(--fs-2); max-width: 52ch; margin-bottom: 2.5rem; }

/* ---------- 7. ABOUT / SKILLS ---------- */
.about__grid { display: grid; gap: 2.5rem; }
.about__bio p + p { margin-top: 1rem; }
.about__bio { color: var(--text-dim); }
.about__bio strong { color: var(--text); }
.track + .track { margin-top: 1.1rem; }
.track__label { display: block; color: var(--accent-2); font-size: .72rem; letter-spacing: .2em; margin-bottom: .5rem; }
.track__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.track__chips li {
  font-size: var(--fs-0); padding: .35rem .7rem; border-radius: 999px;
  background: var(--bg-raised); border: 1px solid var(--border); color: var(--text);
}

.metrics { display: grid; gap: 1rem; margin-top: 3rem; }
.metric { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; border-left: 3px solid var(--accent); }
.metric__value { display: block; font-size: var(--fs-4); font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.metric__label { color: var(--text-dim); font-size: var(--fs-0); }
.metric__from { display: block; color: var(--accent-2); }

@media (min-width: 40rem) {
  .metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 64rem) {
  .about__grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: start; }
}

/* ---------- 8. TIMELINE ---------- */
.timeline__track { display: none; }
.timeline__panels { position: relative; }

.timeline__panel {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 3px solid var(--accent);
}
.timeline__panel + .timeline__panel { margin-top: 1rem; }
.timeline__panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.timeline__panel-head h3 { font-size: var(--fs-2); }
.timeline__company { color: var(--accent-2); font-weight: 600; }
.timeline__dates { color: var(--text-dim); font-size: var(--fs-0); }
.timeline__role-note { color: var(--accent-3); font-size: var(--fs-0); margin: .35rem 0 1rem; letter-spacing: .02em; }
.timeline__bullets { display: grid; gap: .65rem; color: var(--text-dim); }
.timeline__bullets li { position: relative; padding-left: 1.4rem; }
.timeline__bullets li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.timeline__bullets strong { color: var(--text); }
.timeline__tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.timeline__tech li { font-size: .72rem; padding: .25rem .6rem; border-radius: 6px; background: var(--bg-overlay); color: var(--text-dim); }

/* mobile pill scroller (enhanced state) */
.timeline__pills { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.25rem; scrollbar-width: thin; }
.timeline__pill {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: var(--fs-0);
  padding: .5rem .9rem; border-radius: 999px; cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--border); color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.timeline__pill[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

/* enhanced (JS) state: only show one panel, crossfade */
.timeline.is-enhanced .timeline__panel[hidden] { display: none; }
.timeline.is-enhanced .timeline__panel { animation: panel-in .25s ease; }

@media (min-width: 64rem) {
  .timeline.is-enhanced .timeline__track {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem;
  }
  .timeline__time { color: var(--text-dim); font-size: var(--fs-0); flex: 0 0 auto; }
  .timeline__bar { position: relative; flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.10); }
  .timeline__progress { position: absolute; left: 0; top: 0; bottom: 0; width: var(--played, 0%); background: var(--accent); border-radius: 6px; box-shadow: 0 0 10px rgba(229,9,20,.5); transition: width .3s ease; }
  .timeline__marker {
    position: absolute; top: 50%; left: var(--at); transform: translate(-50%, -50%);
    background: transparent; border: 0; cursor: pointer; padding: 0;
    display: grid; justify-items: center; gap: .5rem;
  }
  .timeline__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--text-dim); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
  .timeline__marker[aria-selected="true"] .timeline__dot { border-color: var(--accent); transform: scale(1.25); box-shadow: 0 0 0 4px rgba(229,9,20,.2); }
  .timeline__marker-label { position: absolute; top: 1.6rem; color: var(--text-dim); white-space: nowrap; font-size: var(--fs-0); transition: color .2s ease; }
  .timeline__marker[aria-selected="true"] .timeline__marker-label { color: var(--text); }
  .timeline__marker:focus-visible { box-shadow: none; }
  .timeline__marker:focus-visible .timeline__dot { box-shadow: var(--focus-ring); }
  .timeline.is-enhanced .timeline__pills { display: none; } /* track replaces pills on desktop */
}

/* ---------- 9. PROJECTS ---------- */
.projects__grid { display: grid; gap: 1.25rem; }
.card {
  position: relative; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--accent-3); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.card__title { font-size: var(--fs-2); }
.card__title a { color: var(--text); }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* stretched link */
.card__title a:hover { text-decoration: none; }
.card__badge { font-size: .72rem; padding: .25rem .55rem; border-radius: 6px; background: var(--accent); color: #fff; flex: 0 0 auto; }
.card__desc { color: var(--text-dim); font-size: var(--fs-1); }
.card__tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.card__tech li { font-size: .72rem; padding: .25rem .6rem; border-radius: 6px; background: var(--bg-overlay); color: var(--text-dim); }
.card__links { display: flex; gap: 1rem; margin-top: 1.25rem; position: relative; z-index: 1; }
.card__links a { font-size: var(--fs-0); font-weight: 600; }

@media (min-width: 40rem) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 10. DEMO ---------- */
.demo__frame {
  position: relative; width: 100%; max-width: 56rem; margin-inline: auto;
  background: #05070b; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.demo__poster {
  aspect-ratio: 16 / 9; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; text-align: center;
  background: radial-gradient(60% 60% at 50% 45%, rgba(78,161,255,.10), transparent 70%), #05070b;
  border: 0; cursor: pointer; color: var(--text);
  transition: background .25s ease;
}
.demo__poster:hover { background: radial-gradient(60% 60% at 50% 45%, rgba(229,9,20,.16), transparent 70%), #05070b; }
.demo__poster-play { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(229,9,20,.45); transition: transform .2s ease; }
.demo__poster:hover .demo__poster-play { transform: scale(1.08); }
.demo__poster-text { font-size: var(--fs-1); letter-spacing: .12em; color: var(--text); }
.demo__poster-sub { font-size: var(--fs-0); color: var(--text-dim); }

.demo__video { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; background: #000; }

/* Stats strip sits BELOW the video (not overlapping) so the native
   auto-hiding video controls are never covered. */
.demo__stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  padding: .6rem .9rem; background: var(--bg-raised);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim);
}
.demo__stat { display: inline-flex; align-items: center; gap: .4rem; }
.demo__stat b { color: var(--text); font-weight: 600; }
.demo__stat[hidden] { display: none; }
.demo__buffer { width: 80px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; }
.demo__buffer span { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .4s ease; }

.demo__msg { aspect-ratio: 16 / 9; display: grid; place-items: center; gap: .75rem; padding: 2rem; text-align: center; color: var(--text-dim); }
.demo__msg .demo__msg-links { display: flex; gap: 1rem; }

.demo__links { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.25rem; font-size: var(--fs-0); font-weight: 600; }

/* ---------- 11. ARTICLES ---------- */
.articles__status { color: var(--text-dim); font-size: var(--fs-0); min-height: 1.2em; margin-bottom: 1rem; }
.articles__grid { display: grid; gap: 1.25rem; }
.article-card {
  position: relative; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.article-card:hover, .article-card:focus-within { transform: translateY(-4px); border-color: var(--accent-3); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.article-card a { color: var(--text); display: block; }
.article-card a:hover { text-decoration: none; }
.article-card__thumb { aspect-ratio: 16 / 9; width: 100%; background: var(--bg-overlay); object-fit: cover; display: grid; place-items: center; color: var(--accent); font-size: 2rem; }
.article-card__body { padding: 1.1rem 1.25rem 1.4rem; }
.article-card h3 { font-size: var(--fs-1); margin-bottom: .5rem; }
.article-card__date { color: var(--accent-2); font-size: .72rem; letter-spacing: .08em; }
.article-card__desc { color: var(--text-dim); font-size: var(--fs-0); margin-top: .6rem; }
.article-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.article-card__tags li { font-size: .66rem; padding: .15rem .5rem; border-radius: 5px; background: var(--bg-overlay); color: var(--text-dim); font-family: var(--font-mono); }

.article-card.is-skeleton { pointer-events: none; }
.article-card.is-skeleton .sk { background: linear-gradient(90deg, var(--bg-overlay) 25%, #222b3f 37%, var(--bg-overlay) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 6px; }
.article-card.is-skeleton .sk--thumb { aspect-ratio: 16/9; }
.article-card.is-skeleton .sk--line { height: .85em; margin: .5rem 1.25rem; }
.article-card.is-skeleton .sk--line:first-of-type { margin-top: 1.1rem; }

@media (min-width: 40rem) { .articles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .articles__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 12. CONTACT / FOOTER ---------- */
.contact__inner { text-align: center; }
.contact .section__index { display: inline-block; }
.contact__lead { color: var(--text-dim); font-size: var(--fs-2); max-width: 44ch; margin: 0 auto 2rem; }
.contact__btn { margin-inline: auto; }
.contact__social { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.75rem; }
.contact__social a { color: var(--text-dim); font-weight: 600; font-size: var(--fs-0); }
.contact__social a:hover { color: var(--text); }

.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.site-footer__eof { color: var(--text-dim); font-size: var(--fs-0); letter-spacing: .08em; }
.site-footer__note { color: var(--text-dim); font-size: var(--fs-0); }

/* ---------- 13. ANIMATIONS ---------- */
/* Only hide reveal elements when JS is present to animate them in.
   Without .js (no-JS / file://), content is fully visible — never blank. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--stagger, 0) * 80ms); }
.js .reveal.revealed { opacity: 1; transform: none; }

@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes buffer-shimmer { 0%, 100% { inset: 0 80% 0 0; } 50% { inset: 0 68% 0 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- 14. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .hero__cursor { opacity: 1; animation: none; }
}
