/* ============================================================
   portfolio-case-studies — shared design system
   Long-scroll narrative case studies. Per-project accent via
   <body data-project="mailchimp"> / data-project="spotify".
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Neutral palette */
  --ink:        #14130f;
  --ink-soft:   #4a473f;
  --ink-faint:  #8b877c;
  --paper:      #ffffff;
  --paper-2:    #f6f4ef;
  --paper-3:    #ece8df;
  --line:       #e3ded3;

  /* Accent — overridden per project below */
  --accent:      #6b5bd2;
  --accent-ink:  #ffffff;
  --hero-bg:     #14130f;
  --hero-ink:    #ffffff;

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Fluid type scale */
  --step--1: clamp(0.83rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.7rem + 2.5vw, 3.6rem);
  --step-4:  clamp(2.8rem, 2rem + 4.2vw, 5.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s:  1rem;
  --space-m:  2rem;
  --space-l:  4rem;
  --space-xl: 7rem;

  --container: 1180px;
  --nav-h: 58px;

  /* Portfolio brand (prateeknair.design) — used site-wide on the top bar,
     and as the full skin on the home page (body.site-home). */
  --brand-cream:    #f4eee2;
  --brand-espresso: #241c18;
  --brand-red:      #9e2b25;
  --font-serif: 'Gambetta', Georgia, 'Times New Roman', serif;
  --font-ui:    'General Sans', var(--font-sans);

  /* Cursor + hover (conch cursor is home-only, enabled by js/cursor.js) */
  --kumkumam:     var(--brand-red);
  --kumkumam-lit: #c1352e;
  --z-cursor:  9999;
  --cursor-size: 26px;
  --t-quick: 0.18s;
  --t-base:  0.42s;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --measure: 62ch;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 30px 60px -20px rgba(20, 19, 15, 0.25);
}

body[data-project="mailchimp"] {
  --accent:     #6b3fa0;   /* Creative Purple — the activation color */
  --accent-ink: #ffffff;
  --hero-bg:    #3d2314;   /* Heritage Brown */
  --hero-ink:   #f5efe8;   /* Founder's White */
}

body[data-project="spotify"] {
  --accent:     #f2882a;   /* Vitality Orange — flame accent */
  --accent-ink: #241354;
  --hero-bg:    #241354;   /* The Creative Sanctuary */
  --hero-ink:   #ece6ff;

  /* Cool, indigo-tinted neutrals so Spotify owns its palette instead of
     inheriting the warm Founder's White neutrals defined in :root. */
  --ink:        #181328;
  --ink-soft:   #45415c;
  --ink-faint:  #837e9b;
  --paper:      #ffffff;
  --paper-2:    #f3f2f9;
  --paper-3:    #e8e6f2;
  --line:       #e4e2f0;
}

/* ---------- Web fonts (self-hosted woff2, latin subset) ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('../assets/fonts/montserrat-900.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/source-sans-3-400.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/plus-jakarta-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/inter-400.woff2') format('woff2'); }
/* Portfolio brand faces (prateeknair.design) */
@font-face { font-family: 'Gambetta'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/gambetta-400.woff2') format('woff2'); }
@font-face { font-family: 'Gambetta'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/gambetta-500.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/general-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../assets/fonts/general-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/general-sans-600.woff2') format('woff2'); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l); }
.prose { max-width: var(--measure); }
.stack > * + * { margin-top: var(--space-s); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--step--1); font-weight: 650;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; background: var(--accent); border-radius: 2px;
}
/* Home "Selected work" eyebrow matches the portfolio's work-head label. */
.site-home .eyebrow { font-size: clamp(0.95rem, 1.5vw, 1.3rem); font-weight: 400;
  letter-spacing: 0.26em; color: var(--brand-red); }
.section-title { font-size: var(--step-2); margin-top: var(--space-s); }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.4; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem clamp(1.25rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--brand-cream) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-espresso) 14%, transparent);
  font-family: var(--font-ui); color: var(--brand-espresso);
}
.nav__brand { display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.15rem, 1.55vw, 1.5rem); letter-spacing: -0.01em; color: var(--brand-espresso); }
.nav__brand-conch { height: 1.8rem; width: auto; display: block; }
.nav__brand-name { color: var(--brand-espresso); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav__links a { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-red);
  border-block-end: 1px solid transparent; padding-block: 0.35rem;
  transition: color 0.2s ease, border-color 0.2s ease; }
.nav__links a:hover { color: var(--kumkumam-lit); border-block-end-color: var(--kumkumam-lit); }
.nav__links a[aria-current="page"] { border-block-end-color: var(--brand-red); }
.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--brand-red); transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg); color: var(--hero-ink);
  padding-block: clamp(4rem, 12vh, 9rem);
  overflow: hidden;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-m); }
.chip {
  font-size: var(--step--1); font-weight: 600;
  padding: 0.4em 0.9em; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hero-ink) 30%, transparent);
  color: var(--hero-ink);
}
.chip--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hero__title { font-size: var(--step-4); margin-top: var(--space-m); max-width: 16ch; }
.hero__sub { font-size: var(--step-1); margin-top: var(--space-m); max-width: 46ch; color: color-mix(in srgb, var(--hero-ink) 80%, transparent); }
.hero__media { margin-top: var(--space-l); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Media blocks ---------- */
.media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.media--plain { border: none; background: transparent; }
.figure { margin: 0; }
.figure figcaption { margin-top: 0.75rem; font-size: var(--step--1); color: var(--ink-faint); }

/* Two-column: text + image */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__text { order: 2; }
}

/* Full-bleed showcase */
.showcase { margin-top: var(--space-l); }
.showcase__grid { display: grid; gap: var(--space-m); }
@media (min-width: 720px) { .showcase__grid--2 { grid-template-columns: 1fr 1fr; } }

/* Mobile screen row */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: var(--space-m); overflow-x: auto; padding-bottom: var(--space-s); margin-top: var(--space-l); }
.screens .media { background: var(--paper-3); }
@media (min-width: 820px) { .screens { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* ---------- Before / After compare ---------- */
.compare { display: grid; gap: var(--space-m); }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__item { position: relative; }
.compare__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35em 0.8em; border-radius: 999px; background: var(--ink); color: var(--paper);
}
.compare__item--after .compare__tag { background: var(--accent); color: var(--accent-ink); }

/* ---------- Brand section: color system + typography ---------- */
.subhead { font-size: var(--step-1); margin-top: var(--space-l); }
.subhead + .prose { margin-top: var(--space-s); color: var(--ink-soft); }

.swatches { display: grid; gap: var(--space-m); margin-top: var(--space-l);
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.swatch { display: flex; flex-direction: column; }
.swatch__chip { aspect-ratio: 3 / 2; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.swatch__name { margin-top: 0.7rem; font-weight: 650; }
.swatch__hex { margin-top: 0.1rem; font-size: var(--step--1); text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-faint); }
.swatch__role { margin-top: 0.35rem; font-size: var(--step--1); line-height: 1.4; color: var(--ink-soft); }
.swatch--retired { opacity: 0.6; }
.swatch--retired .swatch__chip { filter: grayscale(0.4); }
.swatch__tag { align-self: flex-start; margin-top: 0.4rem; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.15em 0.7em; }

.typefaces { display: grid; gap: var(--space-m); margin-top: var(--space-l); }
@media (min-width: 760px) { .typefaces { grid-template-columns: 1fr 1fr; } }
.typeface { display: flex; gap: clamp(0.9rem, 3vw, 1.75rem); align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--paper); }
.typeface > :last-child { flex: 1; min-width: 0; }
.typeface__specimen { flex: none; font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800;
  line-height: 0.85; letter-spacing: -0.04em; color: var(--accent); }
.typeface__name { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700; line-height: 1.15; }
.typeface__use { font-size: var(--step--1); color: var(--ink-faint); margin-top: 0.2rem; }
.specs { margin: var(--space-s) 0 0; }
/* keep each spec row on one line: label left, values right */
.specs > div { display: flex; justify-content: space-between; gap: 0.75rem; white-space: nowrap;
  font-size: clamp(0.75rem, 2.4vw, 0.94rem); border-top: 1px solid var(--line); padding: 0.45rem 0; }
.specs dt { color: var(--ink-faint); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.pairing { border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); color: #fff; }
.pairing--move { background: #1b3a6b; }
.pairing--make { background: #6b3fa0; }
.pairing__label { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.75; }
.pairing__word { font-size: var(--step-2); font-weight: 800; margin-top: 0.15rem; }
.pairing__list { margin-top: var(--space-s); font-weight: 600; }
.pairing__note { margin-top: 0.5rem; opacity: 0.85; font-size: var(--step--1); }

/* real typeface specimens (scoped to the "Aa") */
.typeface__specimen--montserrat { font-family: 'Montserrat', var(--font-sans); font-weight: 900; }
.typeface__specimen--source     { font-family: 'Source Sans 3', var(--font-sans); font-weight: 400; }
.typeface__specimen--jakarta    { font-family: 'Plus Jakarta Sans', var(--font-sans); font-weight: 700; }
.typeface__specimen--mix        { font-family: 'Inter', var(--font-sans); font-weight: 400; }
.typeface__note { margin-top: 0.5rem; font-size: 0.72rem; font-style: italic; color: var(--ink-faint); }

/* ---------- Mailchimp logo cluster ---------- */
.logo-cluster { display: grid; gap: var(--space-m); margin-top: var(--space-l);
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "wordmark wordmark" "freddie envelope"; }
.logo-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04); min-width: 0; overflow: hidden; }
.logo-tile img { max-width: 82%; max-height: 100%; width: auto; height: auto; }
.logo-tile--wordmark { grid-area: wordmark; }
.logo-tile--wordmark img { width: min(78%, 460px); max-width: 100%; }
.logo-tile--freddie  { grid-area: freddie; aspect-ratio: 4 / 3; }
.logo-tile--envelope { grid-area: envelope; aspect-ratio: 4 / 3; }
/* size by a viewport clamp (always resolves + always smaller than the tile)
   so the marks scale down and stay centered on tight screens instead of
   being clipped by the tile's overflow. */
.logo-tile--freddie img  { max-width: 66%; max-height: clamp(80px, 18vw, 150px); }
.logo-tile--envelope img { max-width: 60%; max-height: clamp(74px, 16vw, 135px); }
@media (max-width: 560px) {
  .logo-cluster { grid-template-columns: 1fr; grid-template-areas: "wordmark" "freddie" "envelope"; }
  .logo-tile--freddie, .logo-tile--envelope { aspect-ratio: 3 / 2; }
}

/* ---------- Spotify logo marks (long + short form) ---------- */
.logo-marks { display: grid; gap: var(--space-s); min-width: 0; }
.logo-marks__tile { background: #241354; border-radius: var(--radius); min-width: 0;
  display: grid; place-items: center; padding: clamp(1.25rem, 4vw, 2rem); }
.logo-marks__tile img { max-width: 82%; height: auto; }
.logo-marks__tile--long img  { width: min(78%, 320px); }
.logo-marks__tile--short img { width: min(38%, 132px); }

/* ---------- Reflection ---------- */
.reflection { background: var(--paper-2); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); }
.reflection__list { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
@media (min-width: 720px) { .reflection__list { grid-template-columns: repeat(3, 1fr); } }
.reflection__list h3 { font-size: var(--step-1); }
.reflection__list p { color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- Footer / next project ---------- */
.footer { background: var(--hero-bg); color: var(--hero-ink); padding-block: var(--space-xl); }
.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m);
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--hero-ink) 22%, transparent);
}
.next__label { display: block; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; color: color-mix(in srgb, var(--hero-ink) 65%, transparent); }
.next__title { display: block; font-size: var(--step-3); margin-top: 0.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.8em 1.4em; border-radius: 999px; font-weight: 650;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.footer__meta { margin-top: var(--space-l); display: flex; flex-wrap: wrap; gap: var(--space-s);
  justify-content: space-between;
  font-size: var(--step--1); color: color-mix(in srgb, var(--hero-ink) 55%, transparent); }
.footer__meta a { color: var(--accent); text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }
/* The byline link is the way back to the portfolio, so it has to be usable
   from the keyboard. Nothing in this stylesheet defined a focus state at all,
   which left it on the UA default — easy to lose against a dark footer.
   --hero-ink is the footer's own foreground and is set per project, so the
   ring is legible on Mailchimp's brown and on Spotify's purple without
   either page importing anything from elsewhere. */
.footer__meta a:focus-visible {
  outline: 2px solid var(--hero-ink);
  outline-offset: 3px;
}
/* Mailchimp: Confident Blue reads as near-black on the dark footer, so use
   the palette's legible Brim Blue for the byline link.

   LIGHTENED ONE STEP, and only here. Brim Blue at #4A8AC4 measures 3.95:1
   against Heritage Brown — under the 4.5 floor for this link's 15px text.
   Same hue (209) and same saturation (51%); lightness 53% -> 58%, which is
   the first step that clears with real headroom. 57% lands on 4.49 and is too
   close to the line to trust against rounding.

   NOT changed on the Brim Blue swatch in mailchimp.html, which prints
   "#4A8AC4" beside the chip: that swatch documents the palette, and editing
   it would make the documentation disagree with itself. This rule is a
   usage of the colour, not the record of it. */
body[data-project="mailchimp"] .footer__meta a { color: #5d96ca; }

/* ============================================================
   Index / landing
   ============================================================ */
/* Home page carries the full portfolio skin; case study pages do not. */
body.site-home {
  --paper:    var(--brand-cream);
  --paper-2:  #ece3d1;
  --paper-3:  #e5dbc7;
  --ink:      var(--brand-espresso);
  --ink-soft: #5b5049;
  --ink-faint:#8c8279;
  --line:     #ddd0ba;
  --accent:   var(--brand-red);
  --accent-ink: var(--brand-cream);
  --hero-bg:  #e9e0cf;
  --hero-ink: var(--brand-espresso);
  --font-display: var(--font-serif);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
}
.index-hero { padding-block: clamp(1.75rem, 6vh, 4rem) clamp(5rem, 16vh, 11rem); }
.index-hero h1 { font-size: var(--step-4); max-width: 18ch; font-weight: 400; margin-top: var(--space-m); }
.index-hero p { font-size: var(--step-1); color: var(--ink-soft); max-width: 52ch; margin-top: var(--space-m); }

.projects { display: grid; gap: var(--space-m); }
@media (min-width: 820px) { .projects { grid-template-columns: 1fr 1fr; } }
.card {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-m); }
.card__kicker { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); }
.card__title { font-size: var(--step-2); margin-top: 0.4rem; font-weight: 400; }
.card__desc { color: var(--ink-soft); margin-top: 0.6rem; }

/* ---------- Section jump-nav (sticky sub-bar) ---------- */
section[id] { scroll-margin-top: calc(var(--nav-h) + 56px); }
.jumpnav { position: sticky; top: var(--nav-h); z-index: 15;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.jumpnav__inner { max-width: var(--container); margin-inline: auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem); display: flex; gap: clamp(1.1rem, 3vw, 2.2rem);
  overflow-x: auto; scrollbar-width: none; }
.jumpnav__inner::-webkit-scrollbar { display: none; }
.jumpnav a { white-space: nowrap; padding: 0.85rem 0; font-size: var(--step--1);
  font-weight: 550; color: var(--ink-faint); border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease; }
.jumpnav a:hover { color: var(--ink); }
.jumpnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Scroll reveal + load motion ---------- */
.has-js .reveal { opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0s); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.has-js .hero .eyebrow { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.has-js .hero__meta   { animation: rise .7s cubic-bezier(.2,.7,.2,1) .06s both; }
.has-js .hero__title  { animation: rise .7s cubic-bezier(.2,.7,.2,1) .12s both; }
.has-js .hero__sub    { animation: rise .7s cubic-bezier(.2,.7,.2,1) .18s both; }
.has-js .hero__media  { animation: rise .8s cubic-bezier(.2,.7,.2,1) .24s both; }

/* subtle image hover-zoom on screenshot media (logos/mascot excluded) */
.showcase .media img, .card__media img, .compare .media img, .split .figure .media img {
  transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.showcase .figure:hover .media img,
.card:hover .card__media img,
.compare .figure:hover .media img,
.split .figure:hover .media img { transform: scale(1.03); }

/* ---------- Custom conch cursor (home page only, via js/cursor.js) ---------- */
.has-conch-cursor,
.has-conch-cursor a, .has-conch-cursor button,
.has-conch-cursor summary, .has-conch-cursor label { cursor: none; }
.conch-flip { transform: translate(1000px, 0) scaleX(-1); transform-box: view-box; transform-origin: 0 0; }
.cursor { position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: var(--z-cursor);
  pointer-events: none; width: var(--cursor-size); aspect-ratio: 666 / 908;
  transform: translate3d(-100px, -100px, 0); will-change: transform; opacity: 0;
  transition: opacity var(--t-quick) var(--ease); }
.cursor.is-visible { opacity: 1; }
.cursor svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cursor__path { fill: none; stroke: var(--kumkumam); stroke-width: 46;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 550, 1000; stroke-dashoffset: -450;
  transition: stroke-dasharray var(--t-base) var(--ease),
              stroke-dashoffset var(--t-base) var(--ease),
              stroke var(--t-quick) var(--ease); }
.cursor.is-over .cursor__path { stroke-dasharray: 1000, 1000; stroke-dashoffset: 0; }

/* ---------- Portfolio hover states ---------- */
.site-home .card:hover .card__title,
.site-home .card:focus-visible .card__title { color: var(--kumkumam-lit); }
.site-home .footer__meta a:hover { color: var(--kumkumam-lit); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .has-js .reveal { opacity: 1 !important; transform: none !important; }
  .cursor.is-over .cursor__path { stroke-dasharray: 550, 1000; stroke-dashoffset: -450; }
}
