/* ==========================================================================
   AI Native Club — Design System
   Palette, type, spacing, layout primitives
   ========================================================================== */

/* ---------- Fonts (Fontshare) ---------- */

@import url('https://api.fontshare.com/v2/css?f[]=gambarino@400&f[]=supreme@300,400,500,700&display=swap');

/* ---------- Tokens ---------- */

:root {
  /* Palette — OKLCH */
  --paper:        oklch(0.955 0.012 85);
  --paper-shade:  oklch(0.928 0.013 85);
  --paper-edge:   oklch(0.895 0.015 85);
  --ink:          oklch(0.19 0.005 50);
  --ink-soft:     oklch(0.28 0.008 50);
  --ink-muted:    oklch(0.45 0.008 50);
  --forest:       oklch(0.36 0.045 155);
  --forest-deep:  oklch(0.28 0.045 155);
  --clay:         oklch(0.52 0.075 50);

  /* Hairlines */
  --rule: color-mix(in oklch, var(--ink) 18%, transparent);
  --rule-soft: color-mix(in oklch, var(--ink) 8%, transparent);

  /* Type */
  --display: 'Gambarino', 'Times New Roman', serif;
  --sans: 'Supreme', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.44rem, 1.28rem + 0.8vw, 1.8rem);
  --step-3:  clamp(1.73rem, 1.5rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2.07rem, 1.7rem + 1.9vw, 3.2rem);
  --step-5:  clamp(2.49rem, 1.9rem + 3vw, 4.5rem);
  --step-6:  clamp(2.99rem, 2.1rem + 4.5vw, 6rem);
  --step-7:  clamp(3.58rem, 2.4rem + 6vw, 8rem);

  /* Spacing — 4pt scale, semantic */
  --space-xs:  0.25rem; /*  4 */
  --space-sm:  0.5rem;  /*  8 */
  --space-md:  1rem;    /* 16 */
  --space-lg:  2rem;    /* 32 */
  --space-xl:  4rem;    /* 64 */
  --space-2xl: 6rem;    /* 96 */
  --space-3xl: 8rem;    /* 128 */
  --space-4xl: 12rem;   /* 192 */

  /* Layout */
  --measure: 68ch;
  --page-max: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset & base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: 'ss01', 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms var(--ease-out);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; max-width: var(--measure); }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--forest); color: var(--paper); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(var(--space-2xl), 8vw, var(--space-4xl));
}

.section--shade {
  background: var(--paper-shade);
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay);
}

.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.site-nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-md);
}

.site-nav__brand {
  display: block;
  line-height: 0;
}
.site-nav__brand img {
  height: 68px;
  width: auto;
  display: block;
}
@media (max-width: 520px) {
  .site-nav__brand img { height: 52px; }
}

.site-nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-nav__links a {
  color: var(--ink-soft);
  padding-block: 0.5rem;
  position: relative;
}
.site-nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.site-nav__links a:hover { color: var(--ink); }
.site-nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 180ms var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--forest);
  color: var(--paper);
}
.btn--primary:hover {
  background: var(--forest-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn__arrow {
  width: 1rem; height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform 200ms var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(var(--space-xl), 8vh, var(--space-3xl));
  padding-bottom: clamp(var(--space-2xl), 10vh, var(--space-4xl));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: end;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(var(--space-xl), 6vw, var(--space-3xl));
  }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.hero__eyebrow::before {
  content: '';
  width: 2.5rem; height: 1px;
  background: var(--ink);
}

.hero__title {
  font-size: clamp(2.8rem, 2rem + 3.8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}
.hero__title .italic {
  font-style: italic;
  color: var(--forest);
}

.hero__deck {
  font-family: var(--sans);
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 400;
  max-width: 34ch;
  color: var(--ink-soft);
  margin-bottom: var(--space-xl);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.hero__mark {
  justify-self: center;
  width: 100%;
  max-width: min(560px, 50vw);
  aspect-ratio: 1200 / 1176;
  object-fit: cover;
  box-shadow: 0 20px 60px -20px rgba(20, 20, 20, 0.25), 0 6px 16px rgba(20, 20, 20, 0.08);
}
@media (max-width: 959px) {
  .hero__mark { max-width: 85vw; }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.hero__meta strong { color: var(--ink); font-weight: 500; display: block; }
.hero__meta dt { font-family: var(--display); color: var(--forest); font-style: italic; }

/* ---------- Thesis / manifesto ---------- */

.thesis {
  padding-block: clamp(var(--space-2xl), 10vh, var(--space-4xl));
}

.thesis__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 960px) {
  .thesis__grid {
    grid-template-columns: 1fr 2fr;
    gap: clamp(var(--space-xl), 6vw, var(--space-3xl));
  }
}

.thesis__label {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  align-self: start;
}

.thesis__body h2 {
  font-size: var(--step-5);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-lg);
  max-width: 20ch;
}
.thesis__body h2 em {
  color: var(--forest);
  font-style: italic;
}

.thesis__body p {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}
.thesis__body p + p { margin-top: var(--space-md); }

/* ---------- Format / what happens ---------- */

.format {
  background: var(--paper-shade);
  padding-block: clamp(var(--space-2xl), 10vh, var(--space-4xl));
}

.format__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  margin-bottom: clamp(var(--space-xl), 6vw, var(--space-2xl));
}
.format__header h2 {
  font-size: var(--step-5);
  line-height: 1.02;
  max-width: 14ch;
}
.format__header h2 em {
  font-style: italic;
  color: var(--forest);
}
.format__header p {
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: var(--step-0);
}

.format__list {
  display: grid;
  gap: 0;
}

.format__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(var(--space-md), 4vw, var(--space-xl));
  padding-block: var(--space-lg);
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.format__step:last-child { border-bottom: 1px solid var(--rule); }

.format__num {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-3);
  color: var(--forest);
  line-height: 1;
  width: 3ch;
}
.format__content h3 {
  font-size: var(--step-3);
  line-height: 1.05;
  margin-bottom: var(--space-sm);
}
.format__content p {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: var(--step-0);
}

/* ---------- Upcoming experiences ---------- */

.upcoming {
  padding-block: clamp(var(--space-2xl), 10vh, var(--space-4xl));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: clamp(var(--space-xl), 6vw, var(--space-2xl));
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-size: var(--step-5);
  line-height: 1.02;
}
.section-head h2 em { font-style: italic; color: var(--forest); }
.section-head .eyebrow { order: -1; width: 100%; }

.experiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(var(--space-lg), 4vw, var(--space-xl));
}

.upcoming__placeholder {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--ink);
  max-width: 42rem;
}
.upcoming__placeholder .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}
.upcoming__placeholder-title {
  font-family: var(--display);
  font-size: var(--step-4);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  max-width: 18ch;
}
.upcoming__placeholder-title em {
  font-style: italic;
  color: var(--forest);
}
.upcoming__placeholder-body {
  color: var(--ink-soft);
  font-size: var(--step-0);
  margin-bottom: var(--space-lg);
  max-width: 44ch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--ink);
  transition: transform 300ms var(--ease-out);
}
.card__session {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex;
  justify-content: space-between;
}
.card__session em {
  font-family: var(--display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--forest);
}
.card__title {
  font-size: var(--step-3);
  line-height: 1.05;
  max-width: 18ch;
}
.card__title em { font-style: italic; }
.card__meta {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.5;
}
.card__meta dt { display: inline; font-weight: 500; color: var(--ink); }
.card__meta dd { display: inline; margin-left: 0.4em; }
.card__meta div + div { margin-top: var(--space-xs); }
.card__foot {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 500;
}
.card__foot svg { width: 1rem; transition: transform 200ms var(--ease-out); stroke: currentColor; fill: none; stroke-width: 1.5; }
.card:hover .card__foot svg { transform: translateX(4px); }

/* ---------- Journal preview ---------- */

.journal {
  background: var(--paper-shade);
  padding-block: clamp(var(--space-2xl), 10vh, var(--space-4xl));
}

.journal__grid {
  display: grid;
  gap: clamp(var(--space-xl), 5vw, var(--space-2xl));
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .journal__grid { grid-template-columns: 1.2fr 1fr; }
}

.journal__feature {
  padding: var(--space-xl);
  background: var(--paper);
  border: 1px solid var(--rule);
}
.journal__feature .eyebrow { display: block; margin-bottom: var(--space-md); }
.journal__feature h3 {
  font-size: var(--step-4);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  max-width: 24ch;
}
.journal__feature h3 em { font-style: italic; color: var(--forest); }
.journal__feature p {
  color: var(--ink-soft);
  margin-bottom: var(--space-lg);
  max-width: 44ch;
}
.journal__player {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--ink-muted);
}
.journal__player .play {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  display: grid;
  place-items: center;
  transition: transform 200ms var(--ease-out);
}
.journal__player:hover .play { transform: scale(1.06); }
.journal__player svg { width: 1rem; height: 1rem; fill: currentColor; }

.journal__list {
  display: flex;
  flex-direction: column;
}
.journal__item {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: baseline;
}
.journal__item:last-child { border-bottom: 1px solid var(--rule); }
.journal__item .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--clay);
  font-size: var(--step-1);
  line-height: 1;
}
.journal__item .title {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.1;
  max-width: 26ch;
}
.journal__item .title em { font-style: italic; color: var(--forest); }
.journal__item .meta {
  font-size: var(--step--1);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Apply CTA ---------- */

.apply-cta {
  padding-block: clamp(var(--space-2xl), 10vh, var(--space-4xl));
}

.apply-cta__inner {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-block: clamp(var(--space-xl), 8vw, var(--space-3xl));
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 860px) {
  .apply-cta__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(var(--space-xl), 6vw, var(--space-3xl));
  }
}

.apply-cta h2 {
  font-size: var(--step-6);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.apply-cta h2 em {
  font-style: italic;
  color: var(--forest);
}
.apply-cta__body p {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: var(--space-lg);
}

/* ---------- Founder ---------- */

.founder {
  padding-block: clamp(var(--space-2xl), 8vh, var(--space-3xl));
}

.founder__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}
@media (min-width: 860px) {
  .founder__grid {
    grid-template-columns: 1fr 1.8fr;
    gap: clamp(var(--space-xl), 6vw, var(--space-3xl));
  }
}

.founder__portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-shade);
  border: 1px solid var(--rule);
  overflow: hidden;
  max-width: 420px;
}
.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder__body h2 {
  font-size: var(--step-5);
  line-height: 1.02;
  margin-bottom: var(--space-md);
  max-width: 20ch;
}
.founder__body h2 em { font-style: italic; color: var(--forest); }
.founder__body p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  max-width: 56ch;
  margin-bottom: var(--space-md);
}
.founder__body s {
  color: var(--ink-muted);
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
}
.founder__signature {
  margin-top: var(--space-lg);
  font-family: var(--display);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--forest);
}

.founder__socials {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.founder__socials a {
  color: var(--ink-muted);
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 180ms var(--ease-out);
}
.founder__socials a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.founder__socials a:hover {
  color: var(--forest);
}
.founder__socials a:hover::after {
  transform: scaleX(1);
}

.inline-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--forest);
  transition: color 180ms var(--ease-out);
}
.inline-link:hover {
  color: var(--forest);
}
.inline-link--light {
  border-bottom-color: color-mix(in oklch, var(--forest) 60%, var(--paper));
}
.inline-link--light:hover {
  color: color-mix(in oklch, var(--forest) 60%, var(--paper));
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(var(--space-2xl), 8vh, var(--space-3xl));
  margin-top: var(--space-2xl);
}
.site-footer .wrap { display: grid; gap: var(--space-xl); }

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 16%, transparent);
}
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer__brand h3 {
  color: var(--paper);
  font-size: var(--step-4);
  line-height: 0.95;
  max-width: 14ch;
  margin-bottom: var(--space-md);
}
.footer__brand h3 em { font-style: italic; color: color-mix(in oklch, var(--forest) 60%, var(--paper)); }
.footer__brand p {
  font-size: var(--step-0);
  color: color-mix(in oklch, var(--paper) 70%, transparent);
  max-width: 38ch;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in oklch, var(--paper) 60%, transparent);
  margin-bottom: var(--space-md);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__col a {
  color: var(--paper);
  font-size: var(--step-0);
}
.footer__col a:hover { color: color-mix(in oklch, var(--forest) 50%, var(--paper)); }

.footer__rally {
  padding-block: var(--space-lg);
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 16%, transparent);
  text-align: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 3rem);
  line-height: 1.05;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--step--1);
  color: color-mix(in oklch, var(--paper) 55%, transparent);
  font-family: var(--sans);
}
.footer__bottom span em {
  font-family: var(--display);
  color: color-mix(in oklch, var(--forest) 60%, var(--paper));
}

/* ---------- Animations ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up 900ms var(--ease-quart) both;
}
.fade-up--1 { animation-delay: 100ms; }
.fade-up--2 { animation-delay: 220ms; }
.fade-up--3 { animation-delay: 340ms; }
.fade-up--4 { animation-delay: 460ms; }
.fade-up--5 { animation-delay: 580ms; }

/* Scroll reveal (no JS needed for animation-timeline where supported) */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 80%;
  }
}

/* ---------- Paper texture overlay (subtle) ---------- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(color-mix(in oklch, var(--ink) 2%, transparent) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

body > * { position: relative; z-index: 2; }
