/* ============================================================
   FEED ME LIGHT: CHARACTER BIBLE
   Clean white gallery edition. Let the images speak.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f4f4f5;   /* image placeholders / quiet panels */
  --ink:       #131218;   /* near-black text */
  --ink-soft:  #6b6a73;   /* muted text */
  --ink-faint: #9a99a2;   /* captions, meta */
  --line:      #e8e8ec;   /* hairlines */
  --accent:    #ff3f8e;   /* FML pink, used sparingly */

  --maxw: 1280px;
  --pad:  clamp(20px, 5vw, 80px);
  --r:    16px;

  --font-display: "Space Grotesk", "Futura", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .8em;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--accent); opacity: .6;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.0; letter-spacing: -.02em; color: var(--ink); }

.section-title {
  font-size: clamp(34px, 6vw, 80px);
  text-transform: uppercase;
  letter-spacing: -.025em;
}
/* legacy gradient class now renders flat ink for a calmer look */
.grad { color: var(--ink); }

.lead { color: var(--ink-soft); font-size: clamp(16px, 1.4vw, 19px); max-width: 60ch; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.9); }
.nav__logo { height: 26px; width: auto; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav__links a {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: #fff !important;
  transition: opacity .2s, transform .2s var(--ease);
}
.nav__cta:hover { transform: translateY(-1px); opacity: .85; }
@media (max-width: 860px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ============================================================
   HERO  (clean, two-column)
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 88px; padding-bottom: 40px;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px); align-items: center; width: 100%;
}
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 {
  font-size: clamp(56px, 11vw, 150px);
  text-transform: uppercase; line-height: .9; letter-spacing: -.04em;
  margin-top: 22px;
}
.hero__sub { margin-top: 26px; max-width: 44ch; color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 20px); }
.hero__meta {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .7em; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero__art { border-radius: var(--r); overflow: hidden; background: var(--bg-alt); }
.hero__art img {
  width: 100%; aspect-ratio: 4/5; object-fit: contain;
  will-change: transform;
}

.scrollcue {
  position: absolute; bottom: 22px; right: var(--pad);
  font-family: var(--font-display); font-size: 11px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
@media (max-width: 860px), (max-height: 700px) { .scrollcue { display: none; } }
.scrollcue::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--ink-faint), transparent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding-block: clamp(72px, 11vh, 150px); }
.section--tight { padding-block: clamp(46px, 7vh, 88px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head .lead { margin-top: 20px; }
.section-title br { display: block; }

/* glows removed for a calmer page */
.glow { display: none !important; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { text-align: center; }
.manifesto p {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 4.2vw, 56px); line-height: 1.06;
  letter-spacing: -.025em; max-width: 18ch; margin-inline: auto; color: var(--ink);
}
.manifesto .small { font-family: var(--font-body); font-weight: 400; font-size: clamp(15px,1.3vw,18px); color: var(--ink-soft); max-width: 56ch; margin: 28px auto 0; letter-spacing: 0; }

/* ============================================================
   FEATURE (split)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature--rev .feature__media { order: 2; }
@media (max-width: 900px) { .feature, .feature--rev { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }

.feature__media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 3/4; transition: transform 1s var(--ease); }
.feature__media:hover img { transform: scale(1.03); }

.tagband { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tag {
  font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: var(--ink-soft);
  border: 1px solid var(--line);
}
.feature h2 { font-size: clamp(30px, 4.2vw, 56px); text-transform: uppercase; margin-top: 14px; }
.feature p { margin-top: 18px; }
.feature .credit { margin-top: 22px; font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* BTS clip */
.gifchip {
  position: absolute; bottom: 14px; right: 14px; width: 40%; max-width: 220px;
  border-radius: 12px; overflow: hidden; border: 3px solid #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}
.gifchip img { aspect-ratio: 16/9 !important; }
.gifchip::before { content: "BTS"; position: absolute; top: 7px; left: 7px; z-index: 2; font-family: var(--font-display); font-size: 9px; letter-spacing: .18em; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--ink); }

/* ============================================================
   CARD ROW (worlds / creatures): label under image
   ============================================================ */
.cardrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 900px) { .cardrow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cardrow { grid-template-columns: 1fr; } }

.minicard { background: none; }
.minicard img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-alt); transition: transform .5s var(--ease); }
.minicard:hover img { transform: translateY(-4px); }
.minicard figcaption {
  position: static; padding: 14px 2px 0; background: none;
  font-family: var(--font-display); text-transform: uppercase;
  display: flex; flex-direction: column-reverse; gap: 3px;
}
.minicard figcaption b { font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.minicard figcaption span { font-size: 10px; letter-spacing: .16em; color: var(--accent); }

/* ============================================================
   PROJECT GRID: label under image
   ============================================================ */
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 2vw, 28px); }
.pcard { position: relative; grid-column: span 2; cursor: default; }
.pcard--lg { grid-column: span 3; }
.pcard--xl { grid-column: span 4; }
@media (max-width: 900px) { .projects { grid-template-columns: repeat(2,1fr); } .pcard, .pcard--lg, .pcard--xl { grid-column: span 1; } }

.pcard__media { position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-alt); }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4/3; transition: transform .8s var(--ease); }
.pcard--xl .pcard__media img { aspect-ratio: 16/9; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__overlay { position: static; padding: 16px 2px 0; background: none; display: block; }
.pcard__role { font-family: var(--font-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pcard__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.1vw, 26px); text-transform: uppercase; margin-top: 5px; color: var(--ink); }
.pcard__desc { color: var(--ink-soft); font-size: 14px; margin-top: 8px; max-width: 46ch; }
.pcard__badge { position: absolute; top: 12px; left: 12px; z-index: 3; font-family: var(--font-display); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.92); color: var(--ink); border: 1px solid var(--line); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-scroll { display: flex; gap: clamp(16px, 2vw, 24px); overflow-x: auto; padding: 4px var(--pad) 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.process-scroll::-webkit-scrollbar { display: none; }
.pstep { flex: 0 0 clamp(260px, 34vw, 400px); scroll-snap-align: start; }
.pstep__media { border-radius: var(--r); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.pstep__media img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #fff; }
.pstep h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; font-size: 17px; margin-top: 14px; color: var(--ink); }
.pstep .step-no { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.pstep p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   PROCESS PIPELINE (Sainsbury's 150th)
   ============================================================ */
.pipe-banner { margin-bottom: clamp(20px, 3vw, 32px); }
.pipe-banner img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-alt); object-fit: cover; }
.pipe-banner figcaption { margin-top: 12px; font-family: var(--font-display); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }

/* 2D-drawn (top) vs 3D-built (bottom) comparison */
.compare { margin-bottom: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compare__row { position: relative; background: var(--bg-alt); }
.compare__row + .compare__row { border-top: 1px solid var(--line); }
.compare__row img { width: 100%; display: block; object-fit: contain; }
.compare__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: rgba(255,255,255,.9); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 7px;
}

.pipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); margin-bottom: clamp(20px, 3vw, 32px); }
@media (max-width: 900px) { .pipe-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .pipe-grid { grid-template-columns: 1fr; } }
.pipe-media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); }
.pipe-media img { width: 100%; aspect-ratio: 4/5; object-fit: contain; }
.pipe-step .step-no { display: block; margin-top: 14px; font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.pipe-step h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; font-size: 18px; margin-top: 4px; color: var(--ink); }
.pipe-step p { font-size: 14px; color: var(--ink-soft); margin-top: 7px; }

/* ============================================================
   MOTION REEL: caption under clip
   ============================================================ */
.reel { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
@media (max-width: 820px) { .reel { grid-template-columns: repeat(2,1fr); } }
.reel figure { position: relative; }
.reel img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-alt); }
.reel figcaption { position: static; padding: 10px 2px 0; background: none; font-family: var(--font-display); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.reel .tall { grid-row: span 2; }
.reel .tall img { aspect-ratio: 9/13; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { text-align: center; }
.client-strip { display: flex; flex-wrap: wrap; gap: clamp(26px, 4vw, 58px); align-items: center; justify-content: center; margin-top: 34px; }
.client-strip img { height: clamp(20px, 2.6vw, 30px); width: auto; opacity: .42; filter: grayscale(1) brightness(0); transition: opacity .25s; }
.client-strip img:hover { opacity: .85; }

/* ============================================================
   THE CAST GRID: gallery, label under render
   ============================================================ */
.cast-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 900px) { .cast-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 620px) { .cast-grid { grid-template-columns: repeat(2,1fr); } }
.cast-item {
  border: 0; padding: 0; cursor: pointer; background: none; text-align: left;
  display: block; font: inherit;
}
.cast-item img {
  width: 100%; aspect-ratio: 4/5; object-fit: contain; padding: 14px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-alt);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.cast-item:hover img { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.cast-item figcaption {
  position: static; padding: 13px 2px 0; background: none;
  font-family: var(--font-display); text-transform: uppercase;
  display: flex; flex-direction: column; gap: 3px;
}
.cast-item figcaption b { font-size: 14px; color: var(--ink); letter-spacing: -.01em; line-height: 1.1; }
.cast-item figcaption span { font-size: 10px; letter-spacing: .14em; color: var(--accent); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 680px); max-height: 86vh; border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; transition: background .2s, transform .2s; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.lb-btn:hover { background: var(--bg-alt); }
.lb-prev { left: clamp(12px, 4vw, 48px); }
.lb-next { right: clamp(12px, 4vw, 48px); }
.lb-close { position: absolute; top: 22px; right: 22px; transform: none; width: 46px; height: 46px; }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); letter-spacing: .16em; font-size: 12px; text-transform: uppercase; color: var(--ink-soft); }

/* ============================================================
   CLOSING
   ============================================================ */
.closing { border-top: 1px solid var(--line); text-align: center; }
.closing__bg { display: none; }
.closing__inner { position: relative; z-index: 1; }
.quote { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 5vw, 64px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; margin: 0 auto; color: var(--ink); }
.quote .grad { color: var(--accent); }
.quote-by { margin-top: 24px; font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.closing__cta { margin-top: 42px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 15px 28px; border-radius: 999px; transition: transform .2s var(--ease), opacity .2s, background .2s, color .2s; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); opacity: .88; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--bg-alt); transform: translateY(-2px); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 42px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer img { height: 24px; opacity: .9; }
.footer__meta { font-size: 13px; color: var(--ink-faint); letter-spacing: .02em; }
.footer a:hover { color: var(--accent); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
