/* ============================================================
   Sandeep Nandi — Main stylesheet
   One sheet for every page. Editorial base, illustrated punctuation.
   ============================================================ */

/* —— 1. Reset & base ———————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent-wash); color: var(--accent-ink); }

/* —— 2. Typography ———————————————————————————————— */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { text-wrap: pretty; }
em { font-style: italic; }

.serif { font-family: var(--serif); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-70);
}
.meta {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-70);
}

/* —— 3. Layout helpers ———————————————————————————— */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }
.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-lg); }
.measure { max-width: var(--measure); }
.rule { height: 1px; background: var(--line); border: 0; }
.visually-hidden {
  position: absolute; 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%; transform: translateX(-50%) translateY(-200%);
  top: .5rem; z-index: var(--z-overlay);
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-size: var(--fs-small); font-weight: 600; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* —— 4. Motif & flourish —————————————————————————— */
.flourish { color: var(--accent); display: block; }
.flourish path { stroke: currentColor; fill: none; }
.divider {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); padding-block: var(--space-lg);
}
.divider svg { width: clamp(54px, 8vw, 78px); height: auto; opacity: .9; }

/* Draw-on animation for any stroked path with .draw */
.draw path {
  stroke-dasharray: var(--len, 320);
  stroke-dashoffset: var(--len, 320);
  animation: draw 1.1s var(--ease-out) .25s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* —— 5. Header / nav ——————————————————————————————— */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out),
              padding var(--dur-mid) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: clamp(1rem, .8rem + .6vw, 1.5rem);
}
.wordmark {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  letter-spacing: -.01em; text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent-ink); }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2rem); }
.nav-links a {
  font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink-70);
  position: relative; padding-block: .25rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* —— 6. Footer ————————————————————————————————————— */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-xl) var(--space-lg);
  margin-top: var(--space-2xl);
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: var(--space-lg);
  align-items: flex-start; justify-content: space-between;
}
.footer-bike { color: var(--accent); margin-bottom: var(--space-sm); }
.footer-bike svg { width: 64px; height: auto; }
.footer-lead { font-family: var(--serif); font-size: var(--fs-h3); max-width: 18ch; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: var(--ink-70); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: var(--space-lg); color: var(--ink-70); font-size: var(--fs-small);
}
.footer-base a { color: var(--ink-70); text-decoration: none; }
.footer-base a:hover { color: var(--accent-ink); }

/* —— 7. Hero (home) ———————————————————————————————— */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 7rem) var(--space-lg); }
.hero h1 {
  font-size: var(--fs-display); font-weight: 300; line-height: 1.04;
  letter-spacing: -.025em; max-width: 16ch;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-position {
  margin-top: var(--space-md); max-width: 52ch;
  font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-70);
}
.hero-position strong { color: var(--ink); font-weight: 600; }
.hero-position .flourish { margin-top: .35rem; width: min(320px, 80%); height: auto; }

/* —— 7b. Landing curtain (home, once per session) ——————— */
/* Hidden by default; only shown when the head script adds .intro-play
   (first visit this session, motion allowed). JS-off never sees it. */
.intro { display: none; }
.intro-play .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  animation: intro-out .55s var(--ease-out) 1.5s forwards;
}
.intro-inner { display: grid; justify-items: center; gap: var(--space-md); }
.intro-bike {
  width: clamp(96px, 22vw, 168px); height: auto; color: var(--accent);
  animation: intro-roll .9s var(--ease-out) both;
}
.intro-spokes { opacity: .5; }
.intro-wheel { transform-box: fill-box; transform-origin: center; }
.intro-play .intro-wheel { animation: intro-spin .8s linear .1s infinite; }
.intro-word {
  font-family: var(--serif); font-size: var(--fs-h3); letter-spacing: -.01em;
  color: var(--ink); opacity: 0;
  animation: intro-fade .5s var(--ease-out) .5s both;
}

@keyframes intro-roll {
  0%   { transform: translateX(-46px); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes intro-spin { to { transform: rotate(1turn); } }
@keyframes intro-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes intro-out  { to { opacity: 0; visibility: hidden; transform: translateY(-12px); } }

/* Hero entrance, choreographed to the curtain lift — first run only */
.intro-play .hero h1,
.intro-play .hero-position { opacity: 0; }
.intro-play .hero h1 { animation: hero-rise .8s var(--ease-out) 1.45s both; }
.intro-play .hero-position { animation: hero-rise .8s var(--ease-out) 1.58s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .intro-play .hero h1,
  .intro-play .hero-position { opacity: 1; animation: none; }
}

/* —— 8. Works grid + cards ————————————————————————— */
.works-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: var(--space-lg);
}
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.25rem, .8rem + 1.6vw, 2rem);
}
.work-card.is-hidden { display: none; }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--space-lg); }
.filter-chip {
  font-family: var(--sans); font-size: .85rem; font-weight: 500; line-height: 1;
  color: var(--ink-70); background: transparent;
  border: 1px solid var(--line); border-radius: 100px;
  padding: .5rem 1rem; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.filter-chip:hover { color: var(--ink); border-color: var(--ink-35); }
.filter-chip.is-active { color: var(--white); background: var(--accent); border-color: var(--accent); }
.filter-chip:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.works-empty { color: var(--ink-70); padding-block: var(--space-lg); font-size: var(--fs-lead); }

/* Discipline kicker links into the filtered grid (interlinking) */
.detail-discipline a { color: inherit; text-decoration: none; }
.detail-discipline a:hover { text-decoration: underline; text-underline-offset: 3px; }

.work-card a {
  display: block; text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.work-card__frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line);
  aspect-ratio: 3 / 2;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
/* uniform grid: every card frame shares one aspect ratio */
.work-card__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.work-card a:hover .work-card__frame,
.work-card a:focus-visible .work-card__frame {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px -26px rgba(26, 26, 26, .55);
}
.work-card a:hover .work-card__frame img,
.work-card a:focus-visible .work-card__frame img { transform: scale(1.035); }

.work-card__title {
  font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3);
  margin-top: var(--space-sm); letter-spacing: -.015em;
  line-height: 1.15; min-height: 2.3em;          /* reserve 2 lines so every card aligns */
}
.work-card__meta { margin-top: .35rem; }
.work-card a:hover .work-card__title { color: var(--accent-ink); }

/* More work — compact text-link row */
.morework { margin-top: var(--space-xl); border-top: 1px solid var(--line); padding-top: var(--space-lg); }
.morework__list { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: var(--space-sm); }
.morework__list a {
  font-family: var(--serif); font-size: 1.15rem; text-decoration: none; color: var(--ink-70);
  display: inline-flex; align-items: baseline; gap: .5rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.morework__list a span { font-family: var(--sans); font-size: var(--fs-small); color: var(--ink-70); }
.morework__list a:hover { color: var(--accent-ink); }

/* —— 9. Project detail page ———————————————————————— */
.detail-back { padding-top: var(--space-lg); }
.detail-back a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-70); text-decoration: none;
}
.detail-back a:hover { color: var(--accent-ink); }
.detail-back a svg { width: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.detail-back a:hover svg { transform: translateX(-3px); }

.detail-head { padding-block: var(--space-lg) var(--space-md); }
.detail-head h1 { font-size: var(--fs-h1); max-width: 18ch; }
.detail-discipline { color: var(--accent-ink); font-weight: 600; }

.detail-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md); margin-top: var(--space-lg);
  border-block: 1px solid var(--line); padding-block: var(--space-md);
}
.detail-meta dt { font-size: var(--fs-meta); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-70); font-weight: 600; }
.detail-meta dd { font-family: var(--serif); font-size: 1.15rem; margin-top: .35rem; }

.detail-cover { margin-top: var(--space-lg); }
.detail-cover img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper-2);
}

/* Framing block: Role / Challenge / What changed */
.framing { display: grid; gap: var(--space-lg); margin-block: var(--space-xl); }
@media (min-width: 760px) { .framing { grid-template-columns: repeat(3, 1fr); } }
.framing__item h2 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.framing__item p { color: var(--ink-70); max-width: 42ch; }
.framing__item p strong { color: var(--ink); font-weight: 600; }

/* Image scroll */
.gallery { display: flex; flex-direction: column; gap: var(--space-lg); }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper-2);
}
.gallery figcaption {
  margin-top: var(--space-sm); color: var(--ink-70); font-size: var(--fs-small);
  max-width: var(--measure);
}

/* Credits + next */
.credits {
  display: grid; gap: var(--space-md); margin-top: var(--space-xl);
  padding-top: var(--space-lg); border-top: 1px solid var(--line);
}
.credits dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-md); }
.credits dt { font-size: var(--fs-meta); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-70); font-weight: 600; }
.credits dd { margin-top: .35rem; color: var(--ink-70); }

.next-project { display: block; margin-top: var(--space-xl); text-decoration: none; color: inherit; }
.next-project__label { color: var(--ink-70); }
.next-project__title {
  font-family: var(--serif); font-size: var(--fs-h2); margin-top: .35rem;
  display: inline-flex; align-items: center; gap: .75rem; letter-spacing: -.02em;
}
.next-project__title svg { width: 30px; color: var(--accent); transition: transform var(--dur-mid) var(--ease-out); }
.next-project:hover .next-project__title { color: var(--accent-ink); }
.next-project:hover .next-project__title svg { transform: translateX(8px); }

/* —— 10. About page ———————————————————————————————— */
.about-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) var(--space-md); }
.about-hero h1 { font-size: var(--fs-display); font-weight: 300; max-width: 15ch; }
.about-hero h1 em { color: var(--accent); }

/* Intro: bio + "Now" panel */
.about-intro { display: grid; gap: var(--space-lg); }
@media (min-width: 860px) {
  .about-intro { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
}
.about-bio { display: grid; gap: var(--space-md); }
.about-bio p { max-width: var(--measure); color: var(--ink-70); font-size: var(--fs-lead); line-height: 1.6; }
.about-bio p:first-child { color: var(--ink); font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); line-height: 1.38; letter-spacing: -.01em; }

.about-now { display: grid; gap: var(--space-md); align-content: start; }
.about-now > .meta { color: var(--accent-ink); }
.about-now dl { display: grid; gap: var(--space-md); margin: 0; }
.about-now dt { font-size: var(--fs-meta); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-70); font-weight: 600; margin-bottom: .4rem; }
.about-now dd { margin: 0; color: var(--ink); }
.now-role { display: flex; align-items: center; gap: .7rem; }
.now-role + .now-role { margin-top: .55rem; }
.now-role span, .now-role a { font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; }
.now-role a { color: var(--ink); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
.now-role a:hover { color: var(--accent-ink); }

/* Career timeline with logos */
.timeline { margin-top: var(--space-sm); }
.timeline__item {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--space-md);
  padding-block: var(--space-md); border-top: 1px solid var(--line); align-items: start;
}
.timeline__item:last-child { border-bottom: 1px solid var(--line); }
.timeline__head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.timeline__role { font-family: var(--serif); font-size: var(--fs-h3); letter-spacing: -.015em; font-weight: 500; }
.timeline__when { font-size: var(--fs-small); color: var(--ink-70); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline__org { color: var(--accent-ink); font-weight: 600; margin-top: .15rem; }
.timeline__note { color: var(--ink-70); margin-top: .45rem; max-width: 56ch; }

/* Logo chips */
.logo-chip { overflow: hidden; background: #fff; flex: none; }
.logo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline__logos { display: flex; }
.timeline__logos .logo-chip { width: 56px; height: 56px; }

/* Education with logos */
.facts { display: grid; gap: var(--space-lg) var(--space-md); grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.facts__item { display: flex; gap: var(--space-sm); align-items: flex-start; }
.facts__logo { width: 54px; height: 54px; }
.facts__body h3 { font-size: var(--fs-h3); }
.facts__body p { color: var(--ink-70); margin-top: .3rem; }
.facts__body .meta { margin-top: .25rem; }

/* Off the clock — adventures + visual journal */
.life-lead {
  max-width: 60ch; color: var(--ink-70); font-size: var(--fs-lead); line-height: 1.6;
  margin-top: calc(var(--space-lg) * -.4); margin-bottom: var(--space-lg);
}

/* Adventures: a wide hero over two tall frames */
.life-grid { display: grid; gap: clamp(.85rem, .55rem + 1vw, 1.4rem); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .life--wide { grid-column: 1 / -1; }
}
.life-figure { margin: 0; }
.life-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 4 / 5;
}
.life--wide .life-frame { aspect-ratio: 16 / 9; }
.life-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* legibility scrim + place label */
.life-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(26, 26, 26, .55), transparent);
  pointer-events: none;
}
.life-label {
  position: absolute; left: .9rem; bottom: .7rem; z-index: 1;
  color: #fff; font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.sketch-head {
  display: flex; align-items: baseline; gap: .85rem; flex-wrap: wrap;
  margin-top: var(--space-xl); margin-bottom: var(--space-md);
}
.sketch-head h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.015em; }
.sketch-head .meta { color: var(--accent-ink); }

/* Visual journal: four tall pages in a row, then a wide + tall pair */
.journal-grid { display: grid; gap: clamp(1rem, .7rem + 1.2vw, 1.75rem); grid-template-columns: 1fr; }
@media (min-width: 480px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .journal-grid { grid-template-columns: repeat(4, 1fr); } }
.journal-figure { margin: 0; }
.journal-frame {
  overflow: hidden; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper-2);
  aspect-ratio: 843 / 1500;
}
.journal-frame--wide { aspect-ratio: 1600 / 1044; }
.journal-frame--portrait { aspect-ratio: 1131 / 1600; }
.journal-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.journal-figure figcaption {
  margin-top: var(--space-sm); color: var(--ink-70);
  font-size: var(--fs-small); line-height: 1.45; max-width: 34ch;
}

/* Closing pair — recipe (wide) beside the chai-wala (tall), matched heights.
   Columns track each image's aspect ratio so neither is cropped. */
.journal-pair {
  grid-column: 1 / -1;
  display: grid; gap: clamp(1rem, .7rem + 1.2vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .journal-pair { grid-template-columns: 1.53fr 0.71fr; align-items: start; }
}

/* —— 11. Contact page —————————————————————————————— */
.contact-hero { padding-block: clamp(3rem, 2rem + 6vw, 7rem) var(--space-lg); }
.contact-hero h1 { font-size: var(--fs-display); font-weight: 300; max-width: 14ch; }
.contact-lead { margin-top: var(--space-md); font-size: var(--fs-lead); color: var(--ink-70); max-width: 46ch; }
.contact-email {
  display: inline-block; margin-top: var(--space-lg);
  font-family: var(--serif); font-size: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  letter-spacing: -.02em; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: .15rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-email:hover { color: var(--accent-ink); }
.contact-rows { margin-top: var(--space-xl); display: grid; gap: 0; }
.contact-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: baseline;
  padding-block: var(--space-md); border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row a { text-decoration: none; font-family: var(--serif); font-size: var(--fs-h3); color: var(--ink); }
.contact-row a:hover { color: var(--accent-ink); }

/* —— 12. Reveal / motion utilities ———————————————— */
/* Reveal only when JS is present (.js on <html>); otherwise content is visible
   by default — never gate content visibility on a class-triggered transition. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .07s; }
.js .reveal[data-delay="2"] { transition-delay: .14s; }
.js .reveal[data-delay="3"] { transition-delay: .21s; }

/* —— 13. Focus & a11y —————————————————————————————— */
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
a, button { -webkit-tap-highlight-color: transparent; }

/* —— 14. Responsive ———————————————————————————————— */
@media (max-width: 1000px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-card__frame { aspect-ratio: 3 / 2; }

  /* Mobile nav: keep the wordmark + 3 links on one row, no overflow */
  .nav { gap: .75rem; }
  .wordmark { font-size: 1rem; }
  .nav-links { gap: .85rem; flex: none; }
  .nav-links a { font-size: .82rem; }
  .nav-links a::after { display: none; }
  .timeline__item { grid-template-columns: 56px 1fr; gap: var(--space-sm); }
  .timeline__logos .logo-chip { width: 50px; height: 50px; }
  .next-project__title { font-size: var(--fs-h3); }
}

/* —— 15. Reduced motion ———————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .draw path { stroke-dashoffset: 0; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .work-card a:hover .work-card__frame { transform: none; }
}

/* —— 16. Print ————————————————————————————————————— */
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { background: #fff; }
}
