/* ============================================================
   Aparna Kallakuri — aparnakallakuri.com
   Design system: indigo + marigold on limestone.
   Display: Newsreader · Body: IBM Plex Sans · Data: IBM Plex Mono
   ============================================================ */

/* ---------- 1. Tokens ------------------------------------- */

:root {
  /* Light palette (default, un-stamped) */
  --ground:      #e9eae5;
  --ground-deep: #dfe0d9;
  --surface:     #f4f5f1;
  --ink:         #101b33;
  --ink-soft:    #33405c;
  --muted:       #5c6679;
  --rule:        #d0d3ca;
  --rule-strong: #b6bab0;

  --accent:         #c9880f;   /* marks, fills, rules                   */
  --accent-ink:     #6e4405;   /* accent as small text  — 7.0:1 on ground */
  --accent-display: #a86c07;   /* accent as large display text — 3.7:1    */
  --accent-wash:    #f0e4cb;

  /* Inverted band tokens (light theme -> deep indigo slab) */
  --band-ground: #0c1426;
  --band-surface:#141f38;
  --band-ink:    #edede6;
  --band-muted:  #93a0bc;
  --band-rule:   #22314f;
  --band-accent: #f0b23c;

  /* Type */
  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body:    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Scale */
  --t-xs:   0.75rem;
  --t-sm:   0.875rem;
  --t-base: 1.0625rem;
  --t-lg:   1.25rem;
  --t-xl:   1.5rem;
  --t-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --t-3xl:  clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  --t-4xl:  clamp(3rem, 1.6rem + 6.4vw, 7.5rem);

  /* Space */
  --s-1: 0.375rem;
  --s-2: 0.75rem;
  --s-3: 1.125rem;
  --s-4: 1.75rem;
  --s-5: 2.5rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8.5rem;

  --measure: 34rem;
  --shell:   72rem;
  --rail:    11rem;

  --ease: cubic-bezier(0.22, 0.65, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0c1426;
    --ground-deep: #080e1c;
    --surface:     #141f38;
    --ink:         #edede6;
    --ink-soft:    #ccd2e0;
    --muted:       #93a0bc;
    --rule:        #22314f;
    --rule-strong: #33456a;

    --accent:         #f0b23c;
    --accent-ink:     #f0b23c;
    --accent-display: #f0b23c;
    --accent-wash:    #1d2a45;

    --band-ground: #141f38;
    --band-surface:#1b2846;
    --band-ink:    #edede6;
    --band-muted:  #93a0bc;
    --band-rule:   #2c3d61;
    --band-accent: #f0b23c;
  }
}

:root[data-theme="dark"] {
  --ground:      #0c1426;
  --ground-deep: #080e1c;
  --surface:     #141f38;
  --ink:         #edede6;
  --ink-soft:    #ccd2e0;
  --muted:       #93a0bc;
  --rule:        #22314f;
  --rule-strong: #33456a;

  --accent:         #f0b23c;
  --accent-ink:     #f0b23c;
  --accent-display: #f0b23c;
  --accent-wash:    #1d2a45;

  --band-ground: #141f38;
  --band-surface:#1b2846;
  --band-ink:    #edede6;
  --band-muted:  #93a0bc;
  --band-rule:   #2c3d61;
  --band-accent: #f0b23c;
}

/* ---------- 2. Base --------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--accent); }

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}

/* <figure> carries a 40px default inline margin in every browser — reset it
   here so component rules below control spacing entirely. */
p, figure, figcaption, blockquote, ol, ul, dl { margin: 0; }

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ground);
  padding: var(--s-2) var(--s-3);
  z-index: 100;
  font: 500 var(--t-sm)/1 var(--f-body);
}
.skip:focus { left: var(--s-3); top: var(--s-3); }

/* ---------- 3. Shared type utilities ---------------------- */

/* Also used on <h2> section labels, so it must override the display-face
   heading rule above. */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose p + p { margin-top: var(--s-3); }
.prose { max-width: var(--measure); color: var(--ink-soft); }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- 4. Nav ---------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground); /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav[data-stuck="true"] { border-bottom-color: var(--rule); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: 4.25rem;
}

.mark {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.mark em { font-style: italic; color: var(--accent-ink); }

.nav__links {
  display: flex;
  gap: var(--s-4);
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav__links a {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-block: var(--s-1);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.theme-toggle {
  margin-left: var(--s-2);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex: none;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--rule-strong); }
.theme-toggle svg { width: 1rem; height: 1rem; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
.theme-toggle .icon-sun { display: block; }

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

@media (max-width: 47.99rem) {
  .nav__links { display: none; }
}

/* ---------- 5. Section frame ------------------------------ */

.section {
  padding-block: var(--s-7);
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }

/* Rail layout: sticky mono index on the left, content at measure */
.railed {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
/* Grid and flex children default to min-width:auto, which lets wide content
   (the fan diagram's min-width SVG) push the whole page sideways. */
.railed > *, .cases, .case, .case > *, .job > * { min-width: 0; }
@media (min-width: 60rem) {
  .railed {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    gap: var(--s-6);
  }
  .rail-head {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}
.rail-head .eyebrow { margin-bottom: var(--s-1); }
.rail-head p:not(.eyebrow) {
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 15rem;
}

/* ---------- 6. Hero --------------------------------------- */

.hero {
  padding-block: clamp(3rem, 1rem + 8vw, 7rem) var(--s-7);
}

.hero__grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 55rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-6);
  }
}

.hero__name {
  font-size: var(--t-4xl);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-4);
}
.hero__name span { display: block; }
.hero__name .given { color: var(--ink); }
.hero__name .family {
  font-style: italic;
  color: var(--accent-display);
  margin-left: 0.06em;
}

.hero__role {
  font-family: var(--f-body);
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin-bottom: var(--s-3);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__meta span { display: inline-flex; align-items: flex-start; gap: var(--s-1); }
.hero__meta span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  /* Align the dot to the first line's optical centre, not the wrapped block. */
  margin-top: 0.55em;
}

.hero__portrait {
  position: relative;
  width: 148px;
  flex: none;
  justify-self: start;
}
.hero__portrait img {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(1.02);
}
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.7rem 1.15rem;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink); background: var(--surface); }
.btn svg { width: 0.95rem; height: 0.95rem; flex: none; }

.btn--primary {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fffdf7;
}

/* ---------- 7. Numbers ------------------------------------ */

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.numbers__item {
  padding: var(--s-4) var(--s-3) var(--s-4) 0;
  border-right: 1px solid var(--rule);
}
.numbers__item:last-child { border-right: 0; }
@media (max-width: 47.99rem) {
  .numbers__item:nth-child(2n) { border-right: 0; }
  .numbers__item { border-bottom: 1px solid var(--rule); }
}
.numbers__value {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: block;
}
.numbers__value .unit { color: var(--accent-ink); }
.numbers__label {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  line-height: 1.4;
  color: var(--muted);
  max-width: 16ch;
}

/* ---------- 8. Pull quote --------------------------------- */

.about__head {
  font-size: var(--t-2xl);
  margin-bottom: var(--s-3);
  max-width: 22ch;
}

.beyond__intro { margin-bottom: var(--s-5); }

.fan__caption { margin-top: var(--s-2); }

.pullquote {
  margin: var(--s-5) 0 0;
  padding-left: var(--s-4);
  border-left: 2px solid var(--accent);
  font-family: var(--f-display);
  font-size: var(--t-xl);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 26ch;
}

/* ---------- 9. Practice cards ----------------------------- */

.practice {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .practice { grid-template-columns: 1fr 1fr; } }

.practice__item {
  background: var(--ground);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: background 0.25s var(--ease);
}
.practice__item:hover { background: var(--surface); }
.practice__item h3 {
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
}
.practice__item p {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.55;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
  margin: var(--s-1) 0 0;
}
.tags li {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}

/* ---------- 10. Proof band (inverted) --------------------- */

.band {
  background: var(--band-ground);
  color: var(--band-ink);
  padding-block: var(--s-7);
  border-top: 0;
}
.band .eyebrow  { color: var(--band-muted); }
.band .rail-head p:not(.eyebrow) { color: var(--band-muted); }
.band h2, .band h3 { color: var(--band-ink); }

.cases {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case {
  padding-block: var(--s-5);
  border-top: 1px solid var(--band-rule);
  display: grid;
  gap: var(--s-3);
}
.case:first-child { border-top: 0; padding-top: 0; }

.case__org {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-accent);
}
.case__title {
  font-size: var(--t-2xl);
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.case__body {
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 52rem) {
  .case__body { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}
.case__body div h4 {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-muted);
  margin-bottom: var(--s-1);
}
.case__body div p {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--band-ink);
  opacity: 0.9;
}
.case__body div:last-child p { color: var(--band-accent); opacity: 1; }

/* Fan diagram */
.fan {
  margin-top: var(--s-3);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.fan svg { width: 100%; min-width: 34rem; height: auto; display: block; }
.fan .fan-link {
  fill: none;
  stroke: var(--band-accent);
  stroke-width: 1;
  opacity: 0.55;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
}
.fan[data-drawn="true"] .fan-link {
  animation: draw 1.1s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.fan .fan-node { fill: var(--band-surface); stroke: var(--band-rule); }
.fan .fan-dot  { fill: var(--band-accent); }
.fan .fan-src  { fill: var(--band-accent); }
.fan text {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--band-muted);
}
.fan text.fan-label-strong { fill: var(--band-ink); }
.fan .fan-fade { opacity: 0; }
.fan[data-drawn="true"] .fan-fade { animation: fadein 0.6s var(--ease) 0.7s forwards; }
@keyframes fadein { to { opacity: 1; } }

/* ---------- 11. Timeline ---------------------------------- */

.timeline { display: flex; flex-direction: column; }

.job {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
  grid-template-columns: 1fr;
}
.job:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 46rem) {
  .job { grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s-4); }
}

.job__when {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.3rem;
}
.job__when b {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
}
.job__org {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  letter-spacing: -0.015em;
  margin-bottom: 0.1rem;
}
.job__title {
  font-size: var(--t-base);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-1);
}
.job__where {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.job p.job__note {
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.6;
  max-width: var(--measure);
}

.subroles {
  margin-top: var(--s-3);
  border-left: 1px solid var(--rule);
  padding-left: var(--s-3);
}
.subroles summary {
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  list-style: none;
  padding-block: var(--s-1);
}
.subroles summary::-webkit-details-marker { display: none; }
.subroles summary::before { content: "+ "; }
.subroles[open] summary::before { content: "– "; }
.subroles ol {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.subroles li { display: grid; gap: 0.15rem; }
.subroles li b { font-weight: 500; font-size: var(--t-sm); }
.subroles li time {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.subroles li p { font-size: var(--t-sm); color: var(--muted); line-height: 1.55; }

/* ---------- 12. Voices ------------------------------------ */

.voices {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .voices { grid-template-columns: 1fr 1fr; } }

.voice {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.voice blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--t-lg);
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.voice figcaption {
  margin-top: auto;
  font-size: var(--t-sm);
  color: var(--muted);
  line-height: 1.45;
}
.voice figcaption b { display: block; color: var(--ink); font-weight: 500; }
.voice figcaption .rel {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.05em;
  margin-top: var(--s-1);
}

/* ---------- 13. Beyond / detail lists --------------------- */

.details {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .details { grid-template-columns: 1fr 1fr; } }

.detail h3 {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.detail ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.detail li { font-size: var(--t-sm); line-height: 1.5; color: var(--ink-soft); }
.detail li b { font-weight: 500; color: var(--ink); display: block; }
.detail li span { color: var(--muted); display: block; }

/* ---------- 14. Contact ----------------------------------- */

.contact { padding-block: var(--s-7) var(--s-6); }
.contact h2 {
  font-size: var(--t-3xl);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-3);
}
.contact h2 em { font-style: italic; color: var(--accent-display); }

.contact__mail {
  display: inline-block;
  margin-top: var(--s-4);
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.1em;
  transition: border-color 0.2s, color 0.2s;
  word-break: break-word;
}
.contact__mail:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* ---------- 15. Footer ------------------------------------ */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-4) var(--s-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.footer__names {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__names li { opacity: 0.75; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- 16. Motion ------------------------------------ */

/* Reveal is opt-in via the .js class so the page is fully readable
   with JavaScript disabled or broken. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .fan .fan-link { stroke-dashoffset: 0; }
  .fan .fan-fade { opacity: 1; }
}

@media print {
  .nav, .theme-toggle, .actions { display: none; }
  body { background: #fff; color: #000; }
}
