/* ============================================================================
   CAFFEINE FILMS — DESIGN SYSTEM v2
   Warm paper, espresso ink, brand red. Chunky condensed type, tactile cards,
   angled marquee bands. Vanilla CSS, no build step.
   ========================================================================== */

:root {
  /* Colour */
  --paper:    #f4ecdf;   /* page background (warm cream) */
  --paper-2:  #eadfcc;   /* slightly deeper cream for alternate blocks */
  --cream:    #fbf6ec;   /* light text on dark */
  --ink:      #1a1210;   /* espresso: text, borders, dark blocks */
  --ink-2:    #2a1e19;   /* raised dark surface */
  --ink-3:    #3a2b24;
  --red:      #e30000;   /* brand red (from the logo) */
  --red-deep: #b80000;
  --gold:     #e3a63a;   /* warm secondary */
  --gold-soft:#f3cf86;
  --muted:    #6e6158;   /* secondary text on paper */
  --muted-2:  #a3978c;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body:    "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif:   "Instrument Serif", Georgia, serif;

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(1rem, 4vw, 4rem);
  --radius: 22px;
  --radius-sm: 14px;
  --border: 3px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --nav-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
strong { font-weight: 700; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Scrollbar (on-brand) ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--ink) var(--paper-2); }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--paper-2); border-left: var(--border) solid var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--paper-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::-webkit-scrollbar-corner { background: var(--paper-2); }
.menu { scrollbar-color: var(--red) var(--ink); }
.menu::-webkit-scrollbar-track { background: var(--ink); border-left-color: var(--ink-3); }
.menu::-webkit-scrollbar-thumb { background: var(--red); border-color: var(--ink); }
.field textarea::-webkit-scrollbar { width: 10px; }
.field textarea::-webkit-scrollbar-track { border-left: 0; background: var(--cream); }

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Type ---------- */
.display, h1, h2, h3, .h-xl, .h-lg, .h-md {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
}
.h-xl { font-size: clamp(3.6rem, 11vw, 10.5rem); }
.h-lg { font-size: clamp(2.8rem, 7.5vw, 7rem); }
.h-md { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.h-sm { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.serif-it { font-family: var(--serif); font-style: italic; text-transform: none; font-weight: 400; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: .95rem; color: var(--red);
}
.eyebrow::before { content: ""; width: 1.6em; height: 3px; background: currentColor; border-radius: 2px; }
h4.eyebrow { display: flex; margin-bottom: .35rem; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; max-width: 36em; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--muted-2); }
p + p { margin-top: 1em; }
.prose { max-width: 42em; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 1.8em 0 .5em; }
.prose a { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .15em; }
.prose h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 1.5em 0 .4em; }
.prose h4 { font-size: 1.2rem; margin: 1.3em 0 .3em; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.1em; border-left: 4px solid var(--red); font-family: var(--serif); font-style: italic; font-size: 1.25em; }
.prose img { border: var(--border) solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow); margin: 1.5em 0; }

/* hard-shadow headline (the "sticker" headline) */
.shadowed { text-shadow: .045em .045em 0 var(--red); }
.on-dark .shadowed { text-shadow: .045em .045em 0 var(--red); }
.outlined {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.on-dark .outlined { -webkit-text-stroke: 2px var(--cream); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { --pad: clamp(4rem, 9vw, 8.5rem); padding-block: var(--pad); position: relative; }
.section-tight { --pad: clamp(2.5rem, 6vw, 5rem); padding-block: var(--pad); }
/* Bands straddle the seam between two blocks (zero flow height, see .band), so the
   blocks either side get extra padding to keep their content clear of the band. */
.band + .section, .band + .section-tight { padding-top: calc(var(--pad) + 2.2em); }
.section:has(+ .band), .section-tight:has(+ .band) { padding-bottom: calc(var(--pad) + 2.2em); }
.band + .footer { padding-top: calc(clamp(3rem, 7vw, 6rem) + 2.6em); }
.block-ink { background: var(--ink); color: var(--cream); }
.block-red { background: var(--red); color: var(--cream); }
.block-gold { background: var(--gold); color: var(--ink); }
.block-paper2 { background: var(--paper-2); }
.on-dark { color: var(--cream); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .h-lg { max-width: 12ch; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.15rem; line-height: 1;
  padding: .95em 1.6em; min-height: 56px;
  border: var(--border) solid var(--ink); border-radius: 999px;
  background: var(--cream); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: 4px 4px 0 var(--red); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--red); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; }
.on-dark .btn-ghost { color: var(--cream); border-color: var(--cream); box-shadow: 4px 4px 0 var(--red); background: rgba(26,18,16,.45); backdrop-filter: blur(6px); }
.on-dark .btn-ghost:hover { box-shadow: 6px 6px 0 var(--red); }
.btn-sm { font-size: .95rem; min-height: 42px; padding: .7em 1.2em; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem 1.1rem; align-items: center; }

.chip {
  display: inline-flex; align-items: center;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  padding: .35em .8em; border: 2px solid currentColor; border-radius: 999px; line-height: 1.1;
}
.chip-fill { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip-red { background: var(--red); color: var(--cream); border-color: var(--red); }

/* ---------- Nav (floating pills) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-cta { justify-self: start; }
.nav-menu { justify-self: end; }
.nav-pill {
  display: inline-flex; align-items: center; gap: .5em;
  height: 48px; padding: 0 1.1em;
  background: var(--cream); color: var(--ink);
  border: var(--border) solid var(--ink); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.nav-pill:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.nav-pill svg { width: 1.15em; height: 1.15em; }
.nav-cta .nav-pill { background: var(--red); color: var(--cream); }
.nav-brand { justify-self: center; }
.nav-brand .nav-pill { padding: 0 1.1em; gap: .7em; }
/* Logo: Ryan's master SVG (assets/img/brand/). Aspect 2.2117:1. Sized by height. */
.logo { display: block; height: auto; width: auto; }
.nav-brand .logo { height: 26px; }
.footer .footer-grid .logo { height: 40px; margin-bottom: .2rem; }
.nav-cta .short { display: none; }
@media (max-width: 680px) {
  .nav { padding: 10px 12px; gap: .5rem; }
  .nav-pill { height: 42px; padding: 0 .85em; font-size: .9rem; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .nav-cta .long { display: none; }
  .nav-cta .short { display: inline; }
  .nav-brand .logo { height: 22px; }
  .nav-menu .label { display: none; }
}

/* Full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: 990;
  background: var(--ink); color: var(--cream);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease);
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); }
body.menu-open { overflow: hidden; }
.menu-links { display: flex; flex-direction: column; justify-content: center; gap: .1em; }
.menu-links a {
  display: flex; align-items: baseline; gap: .4em;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95;
  font-size: clamp(3rem, 10vw, 7.5rem);
  padding: .04em 0;
  transition: color .15s, transform .25s var(--ease);
  transform: translateY(30px); opacity: 0;
}
.menu.is-open .menu-links a { transform: none; opacity: 1; transition: color .15s, transform .5s var(--ease), opacity .5s; }
.menu.is-open .menu-links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu-links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu-links a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu-links a:nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu-links a:nth-child(6) { transition-delay: .25s; }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--red); }
.menu-links a small { font-family: var(--body); font-weight: 600; font-size: .95rem; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 2px solid var(--ink-3); }
.menu-foot .email { font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; }
.menu-foot .email:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: calc(var(--nav-h) + 3rem) 0 clamp(5rem, 12vw, 9rem);
  background: var(--ink); color: var(--cream);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26,18,16,.55) 0%, rgba(26,18,16,.15) 45%, rgba(26,18,16,0) 70%),
    linear-gradient(180deg, rgba(26,18,16,.35) 0%, rgba(26,18,16,.05) 35%, rgba(26,18,16,.6) 72%, rgba(26,18,16,.95) 100%);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3.6rem, 11.5vw, 10.5rem); line-height: .84; letter-spacing: -.015em; margin: .2em 0 .35em; max-width: 7ch; }
.hero h1 .accent { text-shadow: .045em .045em 0 var(--cream); }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--red); -webkit-text-stroke: 0; }
.hero .lede { max-width: 30em; color: rgba(251,246,236,.9); }
.hero-row { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: end; justify-content: space-between; }
.hero .hero-sticker { position: absolute; z-index: 3; right: clamp(1rem, 6vw, 6rem); top: clamp(5.5rem, 14vh, 9rem); }
/* Phones: the seal sticker is hidden - at phone widths it sat over the subject (Ryan, 2026-10-13). */
@media (max-width: 760px) { .hero .hero-sticker { display: none; } }

/* ---------- Stickers ---------- */
.seal {
  --size: 150px;
  width: var(--size); height: var(--size);
  position: relative; display: grid; place-items: center;
  color: var(--cream);
  animation: spin 22s linear infinite;
}
.seal svg { width: 100%; height: 100%; }
.seal .seal-text { font-family: var(--display); font-weight: 800; font-size: 13.5px; letter-spacing: .22em; text-transform: uppercase; fill: currentColor; }
.seal-centre { position: absolute; inset: 0; display: grid; place-items: center; animation: spin 22s linear infinite reverse; }
.seal-centre .bean { width: 42%; height: 42%; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-grid; place-items: center; text-align: center;
  width: 120px; height: 120px;
  background: var(--red); color: var(--cream);
  clip-path: polygon(50% 0%, 61% 10%, 75% 5%, 80% 19%, 95% 22%, 92% 37%, 100% 50%, 92% 63%, 95% 78%, 80% 81%, 75% 95%, 61% 90%, 50% 100%, 39% 90%, 25% 95%, 20% 81%, 5% 78%, 8% 63%, 0% 50%, 8% 37%, 5% 22%, 20% 19%, 25% 5%, 39% 10%);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: 1rem; letter-spacing: .04em;
  transform: rotate(-8deg);
}
.badge b { display: block; font-size: 1.9em; }

/* ---------- Marquee bands ---------- */
.band {
  --band-bg: var(--ink); --band-fg: var(--cream); --tilt: -2deg;
  position: relative; z-index: 5;
  overflow: hidden; width: 100%;
  padding: 1.4em 0;
  /* zero flow height: the band sits centred ON the colour break, covering both blocks */
  margin: -2.6em 0;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(1.5rem, 3.6vw, 3rem); line-height: 1;
}
.band-inner {
  background: var(--band-bg); color: var(--band-fg);
  border-top: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink);
  transform: rotate(var(--tilt)); transform-origin: center;
  width: 110%; margin-left: -5%;
  overflow: hidden; white-space: nowrap;
  padding: .55em 0;
}
.band-red { --band-bg: var(--red); --band-fg: var(--cream); }
.band-gold { --band-bg: var(--gold); --band-fg: var(--ink); }
.band-paper { --band-bg: var(--cream); --band-fg: var(--ink); }
.band-flat { --tilt: 0deg; padding: 0; }
.band-flat .band-inner { width: 100%; margin-left: 0; }
.band-up { --tilt: 2deg; }
.band-overlap { z-index: 6; }  /* kept for the hero; same geometry as every other band now */
.band-track { display: inline-flex; gap: 0; animation: marquee var(--speed, 28s) linear infinite; will-change: transform; }
.band-track > span { display: inline-flex; align-items: center; gap: .6em; padding: 0 .6em; }
.band-track .dot { display: inline-block; width: .45em; height: .45em; border-radius: 50%; background: var(--red); flex: none; }
.band-gold .band-track .dot, .band-red .band-track .dot { background: var(--ink); }
.band-paper .band-track .dot { background: var(--red); }
.band-reverse .band-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink);
  border: var(--border) solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  /* Hover lift uses the separate `translate` property, NOT `transform`, so it never
     fights the GSAP scroll reveal (which animates transform). Do not add a transform
     transition here - it leaves cards stuck mid-reveal. */
  transition: translate .25s var(--ease), rotate .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { translate: -4px -4px; box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--border) solid var(--ink); background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: var(--cream);
  border: var(--border) solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s var(--snap);
}
.card-media .play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.card:hover .card-media .play, .card:focus-within .card-media .play { opacity: 1; transform: scale(1); }
.card-media .tag { position: absolute; left: 14px; top: 14px; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; color: var(--muted); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.card-meta .year { color: var(--red); }
.card p.blurb { color: var(--muted); font-size: 1rem; }
.card-tilt:nth-child(odd) { rotate: -1.3deg; }
.card-tilt:nth-child(even) { rotate: 1.1deg; }
.card-tilt:hover { rotate: 0deg; }
.card.is-link { cursor: pointer; }
.card-dark { background: var(--ink); color: var(--cream); border-color: var(--cream); box-shadow: 6px 6px 0 var(--red); }
.card-dark:hover { box-shadow: 10px 10px 0 var(--red); }
.card-dark .card-media { border-color: var(--cream); }
.card-dark .card-meta, .card-dark p.blurb { color: var(--muted-2); }

/* Photo frame (single image with the card treatment) */
.frame { border: var(--border) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tilt { transform: rotate(-2deg); }
.frame-tilt-r { transform: rotate(2deg); }
.on-dark .frame { border-color: var(--cream); box-shadow: 6px 6px 0 var(--red); }

/* ---------- Horizontal rail ---------- */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: clamp(1.25rem, 2.5vw, 2rem);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 14px var(--gutter) 24px;
  margin-inline: calc(-1 * var(--gutter));
  scroll-padding-inline: var(--gutter);   /* snap positions respect the gutter, so the first card
                                             sits on the page margin on load, not flush left */
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 clamp(280px, 68vw, 460px); scroll-snap-align: start; }
.rail-nav { display: flex; gap: .6rem; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: var(--border) solid var(--ink); background: var(--cream); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); transition: transform .18s var(--ease), box-shadow .18s; }
.rail-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.rail-btn svg { width: 22px; height: 22px; }

/* ---------- Work grid + filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.filter { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; padding: .55em 1.1em; border: 2px solid var(--ink); border-radius: 999px; background: transparent; transition: background .15s, color .15s, transform .15s; }
.filter:hover { transform: translateY(-2px); }
.filter.is-active { background: var(--ink); color: var(--cream); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2.2rem); }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }
.work-grid .card { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { border-top: var(--border) solid currentColor; padding-top: 1rem; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .9; letter-spacing: -.02em; }
.stat b .plus { color: var(--red); }
.stat > span { display: block; margin-top: .4rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; color: var(--muted); }
.stat b .plus { display: inline; font-size: inherit; margin: 0; }
.on-dark .stat > span { color: var(--muted-2); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; gap: 1rem; } .stat { display: flex; align-items: baseline; gap: 1rem; } .stat b { font-size: 3.2rem; } }

/* ---------- Service rows ---------- */
.rows { border-top: var(--border) solid currentColor; }
.row {
  display: grid; grid-template-columns: 4rem 1fr 1.2fr auto; gap: 1.5rem; align-items: start;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  border-bottom: var(--border) solid currentColor;
  transition: padding-left .25s var(--ease);
}
.row:hover { padding-left: .5rem; }
.row .num { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--red); }
.row .title { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; font-size: clamp(2.2rem, 4.5vw, 4rem); }
.row .desc { max-width: 34em; }
.row .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.row .go { width: 56px; height: 56px; border-radius: 50%; border: var(--border) solid currentColor; display: grid; place-items: center; transition: background .2s, color .2s, transform .25s var(--ease); }
.row .go svg { width: 24px; height: 24px; }
.row:hover .go { background: var(--red); color: var(--cream); border-color: var(--red); transform: rotate(-45deg); }
@media (max-width: 860px) {
  .row { grid-template-columns: 2.6rem 1fr; }
  .row > *:not(.num) { grid-column: 2; }
  .row .go { display: none; }
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; padding: 1.4rem 1.4rem 1.6rem;
  background: var(--cream); color: var(--ink);
  border: var(--border) solid var(--ink); border-radius: var(--radius-sm);
  box-shadow: 5px 5px 0 var(--ink);
  min-height: 190px; display: flex; flex-direction: column; gap: .5rem;
}
.step:nth-child(odd) { transform: rotate(-1deg); }
.step:nth-child(even) { transform: rotate(.8deg); }
.step .n { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--red); }
.step h3 { font-size: 1.6rem; }
.step p { font-size: 1rem; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.clients { display: flex; flex-wrap: wrap; gap: .7rem; }
.clients .chip { font-size: 1rem; padding: .55em 1em; }

/* ---------- CTA block ---------- */
.cta { position: relative; overflow: hidden; }
.cta .h-xl { max-width: 9ch; }
.cta .btn-ink { box-shadow: 4px 4px 0 var(--cream); }
.cta .btn-ink:hover { box-shadow: 6px 6px 0 var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: end; justify-content: space-between; }
.cta .big-email { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .03em; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: clamp(3rem, 7vw, 6rem) 0 0; overflow: hidden; border-top: var(--border) solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--gold); margin-bottom: 1rem; }
.footer li + li { margin-top: .45rem; }
.footer a:hover { color: var(--red); }
.footer .tagline { font-size: 1.15rem; max-width: 24em; color: rgba(251,246,236,.8); margin-top: .8rem; }
.footer .legal { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; padding: 1.2rem 0; border-top: 2px solid var(--ink-3); font-size: .9rem; color: var(--muted-2); }
.footer-mark { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 4rem); }
.footer-mark .logo { width: min(100%, 720px); height: auto; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }
.socials a {
  display: inline-flex; align-items: center; min-height: 38px; padding: .4em .95em;
  border: 2px solid currentColor; border-radius: 999px; line-height: 1;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem;
  transition: background .18s, color .18s, border-color .18s, translate .2s var(--snap), rotate .2s var(--snap);
}
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--cream); translate: 0 -3px; rotate: -2deg; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2rem, 5vw, 4rem); }
.page-head .h-xl { max-width: 10ch; margin: .15em 0 .3em; }
.page-head .lede { max-width: 32em; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--cream);
  border: var(--border) solid var(--ink); border-radius: var(--radius-sm);
  padding: .85em 1em; width: 100%; box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow .18s, transform .18s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 3.8em;
  /* one SVG = ink disc + cream chevron, so they are always centred on each other */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='20' fill='%231a1210'/><path d='M12 16.5 L20 24.5 L28 16.5' fill='none' stroke='%23fbf6ec' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right .75em center;
  background-size: 2.2em 2.2em;
}
.field select:focus {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'><circle cx='20' cy='20' r='20' fill='%23e30000'/><path d='M12 16.5 L20 24.5 L28 16.5' fill='none' stroke='%23fbf6ec' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.form-note { grid-column: 1 / -1; font-size: .95rem; color: var(--muted); }
.form-ok { display: none; padding: 1.5rem; border: var(--border) solid var(--ink); border-radius: var(--radius-sm); background: var(--gold); box-shadow: var(--shadow); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(26,18,16,.92); backdrop-filter: blur(6px); }
.lb.is-open { display: flex; }
.lb-box { position: relative; width: min(1200px, 96vw); aspect-ratio: 16 / 9; border: var(--border) solid var(--cream); border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: 8px 8px 0 var(--red); }
.lb-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-close { position: absolute; top: 1rem; right: 1rem; width: 52px; height: 52px; border-radius: 50%; background: var(--cream); color: var(--ink); border: var(--border) solid var(--ink); box-shadow: 3px 3px 0 var(--red); display: grid; place-items: center; }
.lb-close svg { width: 22px; height: 22px; }
.lb-cap { position: absolute; left: 1rem; bottom: 1rem; color: var(--cream); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; }

/* ---------- Journal ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2.2rem); }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.article-head { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 2rem; }
.article-head h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); max-width: 14ch; margin: .2em 0 .4em; }
.article-cover { margin: 1rem 0 3rem; max-height: 70vh; aspect-ratio: 16 / 9; }

/* ---------- Reveal (GSAP enhances; CSS keeps content visible without JS) ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }
.arrow-link { display: inline-flex; align-items: center; gap: .4em; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; border-bottom: 3px solid var(--red); padding-bottom: .1em; }
.arrow-link svg { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-track { animation: none; }
  .seal, .seal-centre { animation: none; }
  .card, .btn, .nav-pill, .frame, .step { transition: none; }
  .card:hover { translate: 0 0; }
  .menu { transition: none; }
  .menu-links a { transition: none; }
}
