/* ==========================================================================
   Wooden Bird Productions — Option 01 «FIELD GUIDE»
   Editorial gallery minimalism. Paper, ink, walnut, one persimmon accent.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-v38-latin-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-v38-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-v38-latin-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('assets/fonts/fraunces-v38-latin-600italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F6F1E7;
  --paper-0: rgba(246, 241, 231, 0);  /* --paper, zero alpha — for fade-outs */
  --ink: #1A1713;
  --walnut: #5A4632;
  --persimmon: #C3502B;        /* accent — large type, rules, hovers */
  --persimmon-deep: #B04424;   /* darker variant for small text (AA) */
  --line: #D8CFBE;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --measure: 62rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-draw: cubic-bezier(0.6, 0, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scrollbar-color: var(--walnut) var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* Bookbinding headband — thin persimmon rule at the very top */
.headband {
  height: 4px;
  background: var(--persimmon);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8em 1.2em;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 0.75rem; }

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

/* ---------- Type helpers ---------- */
.label {
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
}
.label .tick { color: var(--persimmon-deep); }

/* ==========================================================================
   Masthead
   ========================================================================== */
.site-head {
  border-bottom: 1px solid var(--line);
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.mast-mark { display: inline-flex; align-items: center; }
.mast-mark svg { height: 28px; width: auto; }
.mast-mark svg g { fill: var(--ink); }

.mast-wordmark {
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
}
.mast-place {
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
}
.mast-place .clock {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  min-width: 5.2em; /* prevents jitter as digits change */
  text-align: right;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: 0.75rem;
  overflow-x: auto;
}
.site-nav a {
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-block: 0.25em;
  white-space: nowrap;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--persimmon);
  transition: width 0.4s var(--ease-out);
}
.site-nav a:hover::after { width: 100%; }

@media (max-width: 620px) {
  .masthead { grid-template-columns: auto 1fr auto; }
  .mast-wordmark { font-size: 0.625rem; letter-spacing: 0.16em; }
  .mast-place .place-name { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: clamp(3.5rem, 9vh, 7rem) clamp(4rem, 10vh, 8rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.hero-h {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 12ch;
}
.hero-h .w { display: inline-block; }
.hero-h em {
  font-weight: 600;
  font-style: italic;
  color: var(--persimmon);
  letter-spacing: -0.005em;
}

.statement {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--walnut);
}

/* The etched bird illustration */
.bird-figure { justify-self: center; width: 100%; max-width: 520px; }
.bird-svg { width: 100%; height: auto; display: block; }
.bird-svg .bird-path {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
/* Manifesto hero — the statement is the headline */
.hero-h.manifesto {
  font-size: clamp(1.9rem, 4.2vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.hero-h.manifesto em { white-space: nowrap;
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { border-top: 1px solid var(--line); padding-block: clamp(3rem, 8vh, 5.5rem); }
.section > .label, .section > .wrap > .label { margin-bottom: clamp(2rem, 5vh, 3.25rem); }

/* ==========================================================================
   Plates — Selected Work
   ========================================================================== */
.work-list { list-style: none; }
.work-list > li { border-top: 1px solid var(--line); }
.work-list > li:last-child { border-bottom: 1px solid var(--line); }

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  grid-template-areas:
    "no    thumb"
    "title thumb"
    "meta  thumb";
  column-gap: 1.25rem;
  row-gap: 0.4rem;
  align-items: start;
  padding-block: 1.5rem;
  text-decoration: none;
}

.work-no {
  grid-area: no;
  font: 600 0.6875rem/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
  transition: color 0.4s var(--ease-out);
  white-space: nowrap;
}
.work-no .pn {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-variant-numeric: oldstyle-nums;
}

.work-title-zone { grid-area: title; min-width: 0; }
.work-title {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: transform 0.45s var(--ease-out);
}

.work-meta {
  grid-area: meta;
  font: 500 0.6875rem/1.8 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--walnut);
}
.work-meta .role { color: var(--ink); }
.work-meta .note {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--walnut);
  opacity: 0.85;
}


/* Thumbnails — quiet, right of the row (mobile & reduced-motion) */
.work-thumb {
  grid-area: thumb;
  width: 96px;
  align-self: center;
  border-radius: 2px;
  overflow: hidden;
}
.work-thumb img {
  width: 100%;
  height: auto; /* beat the height="" presentational hint so aspect-ratio wins */
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  filter: sepia(0.42) saturate(0.72) contrast(0.94) brightness(1.04);
}
/* Typographic tile stand-ins (Arthur, Renew/Remix) */
.work-thumb.tile {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--line);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.2rem;
  background: var(--paper);
}
.work-thumb.tile .t-no {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--persimmon-deep);
  font-variant-numeric: oldstyle-nums;
}
.work-thumb.tile .t-word {
  font: 600 0.5rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}

/* Hover states */
@media (hover: hover) {
  .work-row:hover .work-title { transform: translateX(6px); }
  .work-row:hover .work-no { color: var(--persimmon-deep); }
}
.work-row:focus-visible .work-title { transform: translateX(6px); }
.work-row:focus-visible .work-no { color: var(--persimmon-deep); }

/* Desktop layout: one editorial row, thumb column retained… */
@media (min-width: 900px) {
  .work-row {
    grid-template-columns: 3.25rem minmax(0, 1.4fr) minmax(0, 1fr) 110px;
    grid-template-areas: "no title meta thumb";
    column-gap: 2rem;
    align-items: center;
    padding-block: 1.75rem;
  }
  .work-no { align-self: center; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.taxonomy {
  display: grid;
  border-top: 1px solid var(--line);
}
.taxon {
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}
.taxon .t-index {
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.14em;
  color: var(--persimmon-deep);
  font-variant-numeric: oldstyle-nums;
}
.taxon h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
  color: var(--ink);
}
.taxon p {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--walnut);
  max-width: 42ch;
}
@media (min-width: 720px) {
  .taxonomy { grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 6vw, 5rem); }
  .taxon { padding: 2.25rem 0; }
}

/* ==========================================================================
   The Hands — Studio
   ========================================================================== */
.hands {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 760px) { .hands { grid-template-columns: 1fr 1fr; } }

.hand h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.hand .credit {
  margin-top: 0.7rem;
  font: 600 0.6875rem/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
}
.hand .bio {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 44ch;
}
.hand .press {
  margin-top: 1.25rem;
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}
.hand .press p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--walnut);
}
.hand .press cite {
  display: block;
  margin-top: 0.4rem;
  font: 600 0.625rem/1 var(--sans);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
}

.cadre {
  margin-top: clamp(3rem, 8vh, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2rem, 5vh, 3rem);
  text-align: center;
}
.cadre p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.375rem, 3vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 30ch;
  margin-inline: auto;
}

/* ==========================================================================
   Clients — logo marquee
   ========================================================================== */
.clients-band { overflow: hidden; padding-block: clamp(2.25rem, 5vh, 3.5rem); }
.marquee {
  position: relative;
  /* Clip the strip here, on the moving element's own parent, instead of
     leaning on .clients-band two levels up. Keeping the clip next to the
     animated layer is what stops iOS dropping or mis-painting chunks of the
     strip while the page scrolls. */
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.75rem;
}
/* Feather both ends. A phone only ever shows about three logos, so an item is
   sitting on an edge nearly all the time — fading them out reads as gliding
   past, where a hard edge just reads as a broken, chopped-off logo. */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: clamp(1.75rem, 8vw, 5rem);
  z-index: 1;
  pointer-events: none;
}
.marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, var(--paper), var(--paper-0));
}
.marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, var(--paper), var(--paper-0));
}
.marquee-inner {
  display: flex;
  width: max-content;
  position: relative;
  z-index: 0;  /* stay under the edge fades */
}
/* Scripted mode: main.js scrolls the strip instead of transforming it.
   A transform animation promotes .marquee-inner to a compositing layer as
   wide as the entire strip — ~15,600 device px on a 3x phone, well past what
   iOS can rasterize, so it paints whole stretches as blank paper. Scrolling a
   normal (unpromoted) overflow box has no such limit: the strip is painted
   through the ordinary paint path, clipped to the viewport. The keyframe
   animation below stays as the no-JS fallback. */
.marquee.is-scripted .marquee-inner {
  width: 100%;
  overflow: hidden;   /* the scrollport — JS drives scrollLeft */
  animation: none;
}
.marquee.is-scripted .marquee-track { flex: none; }
.marquee-track {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.625rem, 6vw, 4.75rem);
  padding-right: clamp(1.625rem, 6vw, 4.75rem); /* equals item gap → seamless -50% loop */
}
.marquee li { flex: none; display: flex; align-items: center; }
/* Logos and gaps shrink together below ~667px, so a phone fits three whole
   logos rather than one whole and two half-cut ones. All four sizes reach
   their maximum at the same width, so the proportions never drift; at 667px
   and up these resolve to the original 28/46/34/22px. */
.marquee img {
  height: clamp(21px, 4.2vw, 28px); width: auto;
  max-width: min(240px, 55vw);  /* 240 so the 300×36 Kennedy Center mark is not
                                   letterboxed down to 24px by its own cap */
  object-fit: contain;
}
.marquee img.lg-tall  { height: clamp(34px, 6.9vw, 46px); }
.marquee img.lg-mid   { height: clamp(26px, 5.1vw, 34px); }
.marquee img.lg-short { height: clamp(17px, 3.3vw, 22px); }
.marquee .m-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(0.6875rem, 1.95vw, 0.8125rem);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.marquee .m-wink {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.875rem, 2.25vw, 0.9375rem);
  color: var(--walnut);
  white-space: nowrap;
}
/* The wink is a whole sentence — on one line it is 486px, wider than the
   phone it has to fit on, so it could never be read in one piece. Two lines. */
@media (max-width: 620px) {
  .marquee .m-wink { white-space: normal; max-width: 15rem; line-height: 1.3; }
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-inner { animation: marquee 64s linear infinite; }
}
/* Pause on hover only where a real pointer exists — never freeze because a
   touch-scroll happened to drag across the strip (iOS makes that hover sticky). */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-inner,
  .marquee:focus-within .marquee-inner { animation-play-state: paused; }
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow: visible; }
  .marquee::before, .marquee::after { content: none; }  /* static grid — nothing to feather */
  .marquee-inner { width: auto; }
  /* Static grid, so give it the page gutter instead of the seam padding —
     otherwise the first logo in every row sits flush against the screen. */
  .marquee-track { flex-wrap: wrap; gap: 1.5rem 2.5rem; padding-inline: var(--gutter); }
  .marquee-track[aria-hidden] { display: none; }
}

/* ==========================================================================
   About the Name
   ========================================================================== */
.name-body { max-width: 58ch; }
.name-body p {
  font-size: 1.03125rem;
  line-height: 1.75;
  color: var(--ink);
}
.name-body p + p { margin-top: 1.25em; }
.name-body p:first-child::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.35em;
  line-height: 0.82;
  float: left;
  padding-right: 0.14em;
  color: var(--persimmon);
}


/* ==========================================================================
   The finished carving — static illustration beside the name story
   ========================================================================== */
.name-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) {
  .name-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
}
.carve-wrap { justify-self: center; width: 100%; max-width: 480px; }
.carve-fig { margin: 0; }
.carve-svg { width: 100%; height: auto; display: block; overflow: visible; }
.carve-svg path, .carve-svg ellipse {
  fill: none;
  stroke: var(--ink);
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carve-svg .c-bird { stroke-width: 330; }
.carve-svg .c-eye  { fill: var(--persimmon); stroke: none; }
.carve-svg .c-song { stroke: var(--persimmon-deep); stroke-width: 34; }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.contact { text-align: left; }
.contact .invite {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.contact-mail {
  display: inline-block;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.25rem, 3.8vw, 2.625rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--persimmon), var(--persimmon));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% 0.06em;
  transition: background-size 0.4s var(--ease-out), color 0.4s var(--ease-out);
  padding-bottom: 0.08em;
  overflow-wrap: anywhere;
}
.contact-mail:hover { background-size: 100% 0.16em; color: var(--persimmon-deep); }
.contact .phone {
  margin-top: 1.5rem;
  font: 500 0.6875rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
}
.contact .phone a { text-decoration: none; color: inherit; }
.contact .phone a:hover { color: var(--persimmon-deep); }

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  justify-content: space-between;
  font: 400 0.71875rem/1.8 var(--sans);
  letter-spacing: 0.04em;
  color: var(--walnut);
}
.site-foot a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line); }
.site-foot a:hover { color: var(--persimmon-deep); text-decoration-color: var(--persimmon); }

/* ==========================================================================
   Lightbox (YouTube — loads only on click)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 19, 0.88);
}
.lightbox-panel {
  position: relative;
  width: min(100%, 960px);
}
.lightbox-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(10, 8, 6, 0.8);
}
.lightbox-frame iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}
.lightbox-close {
  position: absolute;
  right: 0;
  top: -3rem;
  background: none;
  border: 1px solid rgba(246, 241, 231, 0.4);
  border-radius: 50%;
  width: 2.4rem; height: 2.4rem;
  color: var(--paper);
  font: 400 1.1rem/1 var(--sans);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.lightbox-close:hover { border-color: var(--paper); transform: rotate(90deg); }

/* ==========================================================================
   Motion — everything gated behind no-preference
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Load: masthead fades in */
  .site-head {
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out) 0.1s forwards;
  }
  /* Load: hero words rise, 80ms stagger (delays set inline via --d) */
  .hero-h .w {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.8s var(--ease-out) forwards;
    animation-delay: var(--d, 0s);
  }
  .statement {
    opacity: 0;
    animation: fadeIn 0.9s var(--ease-out) 0.7s forwards;
  }
  .hero-h.manifesto {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.9s var(--ease-out) 0.15s forwards;
  }
  /* Load: the bird draws itself, then fills ink softly */
  .bird-svg .bird-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    fill-opacity: 0;
    animation:
      draw 2.2s var(--ease-draw) 0.35s forwards,
      inkFill 1.4s var(--ease-out) 2.1s forwards;
  }
  /* Scroll reveals (class applied by JS only when IO is available) */
  .will-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.6s var(--ease-out),
      transform 0.6s var(--ease-out);
  }
  .will-reveal.revealed { opacity: 1; transform: none; }
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes inkFill { to { fill-opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
