:root {
  --bg: #060506;
  --ink: #f4ede5;
  --muted: #a39a92;
  --line: rgba(244, 237, 229, .14);
  --merlot: #ec4b7f;
  --blue: #1b4aae; /* sampled from the stripes in the portrait */
  --blue-text: #3f74ee; /* the same blue, lifted so lettering in it stays readable on black */
  --accent: var(--merlot);
  --display: 'Montserrat', 'Figtree', system-ui, sans-serif; /* the face of the showreel title card */
  --body: 'Figtree', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 170px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.viewing { overflow: hidden; }
a { color: inherit; }
img, video, iframe, canvas { display: block; max-width: 100%; }
h2 {
  font: 800 clamp(34px, 5.6vw, 72px)/1 var(--display);
  
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px var(--gutter) 34px;
  pointer-events: none;
  /* a soft shade keeps the name and links readable over whatever scrolls underneath */
  background: linear-gradient(rgba(6, 5, 6, .99), rgba(6, 5, 6, .97) 72%, transparent);
}
.top a { pointer-events: auto; text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; }
.who img {
  width: clamp(60px, 6.5vw, 88px); height: auto; flex: none; margin: -6px 0 -14px -8px;
  filter: drop-shadow(0 0 14px rgba(120, 90, 255, .45));
  transition: transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
.who:hover img { transform: rotate(-10deg) scale(1.12); }
/* pressed: one continuous spin that winds up, whips round and settles with a small overshoot.
   How many turns (--spin), how long (--dur) and how much blur (--blur) are set in main.js from
   how far the page has to scroll back up. Rotation, size and blur ease separately. */
.who img.spin { animation: blob-rot var(--dur, 1.3s) both, blob-pop var(--dur, 1.3s) ease-in-out both, blob-blur var(--dur, 1.3s) ease-in-out both; }
@keyframes blob-rot {
  0%   { rotate: 0deg; animation-timing-function: cubic-bezier(.55, 0, .15, 1); }
  82%  { rotate: calc(var(--spin, 1080deg) + 14deg); animation-timing-function: cubic-bezier(.3, 0, .3, 1); }
  100% { rotate: var(--spin, 1080deg); }
}
@keyframes blob-pop {
  0%, 100% { scale: 1; }
  10% { scale: .88; }
  45% { scale: 1.2; }
  84% { scale: 1.05; }
}
@keyframes blob-blur {
  0%, 100% { filter: blur(0) drop-shadow(0 0 14px rgba(120, 90, 255, .45)); }
  42% { filter: blur(var(--blur, 5px)) drop-shadow(0 0 22px rgba(120, 90, 255, .8)); }
  78% { filter: blur(.6px) drop-shadow(0 0 16px rgba(120, 90, 255, .55)); }
}
.who strong {
  display: block;
  /* the same face and weight as his name on the showreel title card */
  font: 800 clamp(22px, 2.7vw, 34px)/1 var(--display);
  letter-spacing: -.025em;
}
.who-text > span { display: block; margin-top: 3px; font-size: 13px; opacity: .75; }
.top nav { display: flex; align-items: center; gap: clamp(4px, .8vw, 10px); padding-top: 8px; }
.top nav a {
  font: 700 clamp(14px, 1.15vw, 16px)/1 var(--display); letter-spacing: -.01em;
  padding: 11px 16px; border-radius: 999px; color: var(--ink);
  transition: background .25s, color .25s;
}
.top nav a:hover, .top nav a:focus-visible { background: rgba(255, 255, 255, .12); }

/* the showreel button: a ring of coloured light that keeps travelling round it */
@property --ring { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.top nav a.reel-btn {
  position: relative; isolation: isolate; margin-right: 6px; padding: 11px 18px; color: #fff;
  border: 2px solid transparent;
  background:
    linear-gradient(#151214, #151214) padding-box,
    conic-gradient(from var(--ring), #4a3bd0, #5f7dff 20%, #a9b8ff 30%, #7a4dff 45%, #b04be0 62%, #e3a8ff 72%, #8a3fd6 85%, #4a3bd0) border-box;
  animation: ring 4s linear infinite;
}
.top nav a.reel-btn::before {
  /* the same light, blurred, as a glow behind the button */
  content: ''; position: absolute; inset: -5px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from var(--ring), #4a3bd0, #5f7dff 20%, #a9b8ff 30%, #7a4dff 45%, #b04be0 62%, #e3a8ff 72%, #8a3fd6 85%, #4a3bd0);
  filter: blur(11px); opacity: .6; animation: ring 4s linear infinite; transition: opacity .3s;
}
.top nav a.reel-btn span { font-size: .72em; margin-right: 5px; vertical-align: .08em; }
.top nav a.reel-btn:hover, .top nav a.reel-btn:focus-visible {
  background:
    linear-gradient(#241d22, #241d22) padding-box,
    conic-gradient(from var(--ring), #4a3bd0, #5f7dff 20%, #a9b8ff 30%, #7a4dff 45%, #b04be0 62%, #e3a8ff 72%, #8a3fd6 85%, #4a3bd0) border-box;
}
.top nav a.reel-btn:hover::before { opacity: .95; }
@keyframes ring { to { --ring: 360deg; } }
@media (prefers-reduced-motion: reduce) { .top nav a.reel-btn, .top nav a.reel-btn::before { animation: none; } }

@media (max-width: 560px) {
  /* on phones the links move to their own row under the name */
  .top { flex-wrap: wrap; gap: 4px 16px; }
  .who { white-space: nowrap; }
  .top nav { width: 100%; padding-top: 6px; gap: 2px; }
  .top nav a { padding: 9px 11px; font-size: 13.5px; }
  .top nav a.reel-btn { padding: 9px 13px; }
}

/* ---------- hero: Merlot and Instant-Life ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 92px var(--gutter) 32px;
  display: grid; grid-auto-rows: minmax(calc(50svh - 76px), auto); gap: clamp(8px, 2vh, 28px);
  max-width: 1320px; margin: 0 auto;
}
.glow {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
  animation: drift 28s ease-in-out infinite alternate;
}
.g1 { width: 55vmax; height: 55vmax; left: -20vmax; top: -12vmax; background: radial-gradient(circle, #5a1232 0%, transparent 65%); }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }

.feature {
  display: grid; align-items: center; gap: clamp(12px, 4vw, 64px);
  text-decoration: none; min-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.f-merlot { grid-template-columns: 1.35fr 1fr; padding-left: clamp(0px, 5vw, 80px); }
.f-il { grid-template-columns: 1fr 1.7fr; padding-right: clamp(0px, 6vw, 110px); }
.f-art { display: grid; place-items: center; min-height: 0; height: 100%; }
.f-art > * { transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.feature:hover .f-art > *, .feature:focus-visible .f-art > * { transform: scale(1.05); }

/* Merlot's row: a pool of pink light behind him, a brighter logo, clearer text */
.f-merlot { position: relative; }
.f-merlot::before {
  content: ''; position: absolute; z-index: -1; right: -4%; top: 50%; width: 52%; aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%; background: radial-gradient(circle, rgba(236, 75, 127, .5), rgba(120, 60, 200, .22) 45%, transparent 70%);
  filter: blur(30px); transition: opacity .6s, scale .8s; opacity: .8;
}
.f-merlot:hover::before, .f-merlot:focus-visible::before { opacity: 1; scale: 1.12; }
.f-merlot .logo {
  filter: brightness(1.3) saturate(1.1) drop-shadow(0 0 30px rgba(236, 75, 127, .4)) drop-shadow(0 8px 22px #000);
}
.f-merlot .sub { color: #fff; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; text-shadow: 0 1px 14px #000; }
.f-merlot .sub span { color: #e9e0d8; font-size: clamp(15px, 1.3vw, 17px); font-weight: 400; }
.cue {
  display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0 6px;
  padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid rgba(236, 75, 127, .7); background: rgba(236, 75, 127, .12);
  transition: background .3s, color .3s, box-shadow .3s;
}
.cue i { font-style: normal; transition: translate .3s; }
.feature:hover .cue, .feature:focus-visible .cue { background: var(--merlot); color: #1a0710; box-shadow: 0 0 34px rgba(236, 75, 127, .55); }
.feature:hover .cue i { translate: 5px 0; }

/* the small idle: a slow breath, nothing more */
.idle { animation: idle 6.5s ease-in-out infinite; }
@keyframes idle {
  0%, 100% { translate: 0 0; rotate: -.8deg; }
  50%      { translate: 0 -10px; rotate: .8deg; }
}

.f-merlot .f-art img { height: 39svh; width: auto; max-height: 420px; filter: drop-shadow(0 0 54px rgba(236, 75, 127, .5)) drop-shadow(0 24px 30px rgba(0, 0, 0, .6)); }
.f-merlot .logo { width: min(100%, 640px); height: auto; }
.sub {
  margin: 14px 0 0; font-size: clamp(14px, 1.3vw, 17px); letter-spacing: .16em; text-transform: uppercase;
}
.sub span { display: block; margin-top: 4px; color: var(--muted); letter-spacing: .04em; text-transform: none; font-size: 15px; }
.f-merlot .sub { padding-left: 6px; }

.storm { position: relative; height: min(39svh, 440px); aspect-ratio: 294 / 468; }
/* Storm is cut at the waist; the cut fades out instead of ending in a hard edge */
.storm canvas {
  /* out of the layout flow, so the canvas' own pixel size can never stretch Storm's box */
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent);
}
.storm .arrow {
  position: absolute; width: var(--w, 34%); left: var(--x); top: var(--y); max-width: none;
  animation: float var(--t, 9s) ease-in-out infinite; animation-delay: var(--d, 0s);
  filter: drop-shadow(0 0 8px var(--g)) drop-shadow(0 0 22px var(--g));
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r0, -4deg)); }
  50%      { transform: translate3d(var(--dx, 8px), var(--dy, -14px), 0) rotate(var(--r1, 6deg)); }
}
/* logo and wordmark grow together with their character */
.feature .f-text { transform-origin: left center; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.feature:hover .f-text, .feature:focus-visible .f-text { transform: scale(1.05); }
.f-il .word {
  display: block;
  font: 800 clamp(44px, 8.4vw, 124px)/.9 'Bricolage Grotesque', sans-serif;
  letter-spacing: -.035em;
  text-shadow: 0 0 34px rgba(90, 140, 255, .55);
}

@media (max-width: 720px) {
  .hero { grid-auto-rows: auto; gap: 56px; padding-top: 104px; }
  .f-merlot, .f-il, .f-hippo { grid-template-columns: 1fr; padding: 0; text-align: center; justify-items: center; }
  .f-hippo .f-art { order: -1; }
  .goods { width: min(86vw, 380px); }
  .f-merlot .f-art { order: -1; }
  .f-merlot .f-art img { height: 44svh; }
  .f-merlot .sub { padding-left: 0; }
  .cue { margin-left: 0; }
  .f-merlot::before { right: 10%; width: 80%; top: 26%; }
  .storm { height: 52svh; }
}

/* Storm grows smoothly on hover: no bounce, and on its own layer so the animated canvas is not re-rasterised */
.f-il .f-art > .storm { transition: transform .55s cubic-bezier(.2, .7, .2, 1); will-change: transform; backface-visibility: hidden; }
.f-il .f-text { transition: transform .55s cubic-bezier(.2, .7, .2, 1); }

/* Instant-Life's row gets its own light and button colour */
.f-il { position: relative; }
.f-il::before {
  content: ''; position: absolute; z-index: -1; left: -6%; top: 50%; width: 46%; aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%; background: radial-gradient(circle, rgba(90, 140, 255, .5), transparent 70%);
  filter: blur(30px); opacity: .8; transition: opacity .6s, scale .8s;
}
.f-il:hover::before, .f-il:focus-visible::before { opacity: 1; scale: 1.12; }
.f-il .sub { color: #fff; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; }
.f-il .sub span { color: #e9e0d8; font-size: clamp(15px, 1.3vw, 17px); font-weight: 400; }
.f-il .cue { margin-left: 0; border-color: rgba(110, 160, 255, .75); background: rgba(90, 140, 255, .14); }
.f-il:hover .cue, .f-il:focus-visible .cue { background: #7fb0ff; color: #050b1a; box-shadow: 0 0 34px rgba(90, 140, 255, .6); }

/* Hippo's row: the products I modeled, each floating on its own */
.f-hippo { position: relative; grid-template-columns: 1.25fr 1fr; padding-left: clamp(0px, 5vw, 80px); margin-top: clamp(20px, 5vh, 60px); }
.f-hippo::before {
  content: ''; position: absolute; z-index: -1; right: -4%; top: 50%; width: 52%; aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%; background: radial-gradient(circle, rgba(236, 72, 82, .34), transparent 70%);
  filter: blur(30px); opacity: .8; transition: opacity .6s, scale .8s;
}
.f-hippo:hover::before, .f-hippo:focus-visible::before { opacity: 1; scale: 1.12; }
.f-hippo .word {
  display: block; font: 800 clamp(40px, 6.6vw, 98px)/.86 'Baloo 2', var(--body);
  letter-spacing: -.02em; text-shadow: 0 0 28px rgba(236, 72, 82, .42), 0 0 70px rgba(236, 72, 82, .22), 0 6px 20px #000;
}
.f-hippo .sub { color: #fff; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; margin-top: 18px; }
.f-hippo .sub span { color: #e9e0d8; font-size: clamp(15px, 1.3vw, 17px); font-weight: 400; }
.f-hippo .cue { margin-left: 0; border-color: rgba(240, 96, 104, .7); background: rgba(236, 72, 82, .14); }
.f-hippo:hover .cue, .f-hippo:focus-visible .cue { background: #e9545d; color: #fff; box-shadow: 0 0 30px rgba(236, 72, 82, .4); }
.goods { position: relative; width: min(100%, 56svh, 580px); aspect-ratio: 1; }
.goods img {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; max-width: none;
  animation: float var(--t, 9s) ease-in-out infinite; animation-delay: var(--d, 0s);
  filter: drop-shadow(0 0 16px rgba(255, 120, 130, .35)) drop-shadow(0 16px 20px rgba(0, 0, 0, .55));
}
.goods .mascot { animation: none; filter: drop-shadow(0 0 30px rgba(255, 77, 90, .3)) drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); }

/* ---------- the three hero rows share one rhythm (desktop) ---------- */
@media (min-width: 721px) {
  .hero {
    min-height: 0; grid-auto-rows: auto; max-width: 1200px;
    gap: clamp(56px, 10svh, 120px);
    padding: clamp(104px, 15svh, 150px) var(--gutter) clamp(40px, 7svh, 80px);
  }
  /* same two columns in every row, mirrored for the middle one */
  .f-merlot, .f-hippo { grid-template-columns: 1.1fr 1fr; padding: 0; margin: 0; }
  .f-il { grid-template-columns: 1fr 1.1fr; padding: 0; margin: 0; }
  .feature { gap: clamp(24px, 5vw, 72px); }
  /* every picture sits in the same-height stage, centred */
  .feature .f-art { height: clamp(300px, 42svh, 450px); }
  .f-merlot .f-art img { height: 100%; max-height: none; }
  .storm { height: 100%; }
  .goods { width: auto; height: 108%; }
  /* lights sit behind the picture, not the row */
  .f-merlot::before, .f-hippo::before { right: 2%; width: 44%; }
  .f-il::before { left: 2%; width: 40%; }
}

/* Instant-Life and Hippo get the same big ambient light Merlot has from the wine-red glow at the top:
   a wide, very soft pool of their own colour behind the TEXT side of the row (the picture has its own light) */
.f-il::after, .f-hippo::after {
  content: ''; position: absolute; z-index: -2; top: 50%; width: 55vmax; aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%; filter: blur(90px); opacity: .6; pointer-events: none;
  animation: drift 32s ease-in-out infinite alternate;
}
.f-il::after { right: -16vmax; background: radial-gradient(circle, #16357e 0%, transparent 65%); }
.f-hippo::after { left: -22vmax; background: radial-gradient(circle, #6b1722 0%, transparent 65%); animation-direction: alternate-reverse; }
@media (max-width: 720px) { .f-il::after, .f-hippo::after { left: 50%; right: auto; translate: -50% -50%; width: 90vmax; } }
@media (prefers-reduced-motion: reduce) { .f-il::after, .f-hippo::after { animation: none; } }

/* ---------- showreel ---------- */
.reel { max-width: 1280px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) 0; }
.reel-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #131112;
  border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 120px -50px rgba(236, 75, 127, .55), 0 40px 80px -40px #000;
}
.reel-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.reel-frame .lite::after { width: clamp(84px, 11vw, 132px); height: clamp(84px, 11vw, 132px); }

/* ---------- section tabs: one connected bar that stays in view while browsing the work ---------- */
.jump {
  position: sticky; top: 92px; z-index: 21;
  display: flex; max-width: calc(1280px - 2 * var(--gutter)); margin: clamp(32px, 5vw, 64px) auto 0;
  width: calc(100% - 2 * var(--gutter));
  border-radius: 20px; border: 1px solid var(--line); overflow: hidden;
  background: rgba(20, 17, 19, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -22px #000;
}
.jump a {
  flex: 1 1 0; text-align: center; white-space: nowrap; text-decoration: none;
  padding: clamp(14px, 1.5vw, 19px) 12px;
  font: 700 clamp(14px, 1.25vw, 17px)/1.1 var(--display); letter-spacing: -.01em;
  color: var(--muted); border-left: 1px solid var(--line);
  transition: background .25s, color .25s;
}
.jump a:first-child { border-left: 0; }
.jump a:hover, .jump a:focus-visible { color: var(--ink); background: rgba(255, 255, 255, .06); }
.jump a.active { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) {
  /* too many tabs for a phone: the bar scrolls sideways */
  .jump { overflow-x: auto; scrollbar-width: none; border-radius: 16px; top: 104px; }
  .jump::-webkit-scrollbar { display: none; }
  .jump a { flex: none; padding-inline: 18px; }
}
#links a {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 15px; transition: background .25s, color .25s, border-color .25s;
}

/* ---------- work sections ---------- */
.group, .about, .contact { padding: clamp(56px, 9vw, 120px) var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
.group header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: clamp(20px, 3vw, 36px); }
.group h2 { margin: 0; }
.group header p { margin: 0; color: var(--muted); }
/* every card in a section is the same size (--cols per row, set in main.js); a short last row is centred */
.cards { --gap: clamp(18px, 2.6vw, 34px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(26px, 3.4vw, 44px) var(--gap); }
.card { flex: 0 0 calc((100% - (var(--cols, 4) - 1) * var(--gap)) / var(--cols, 4)); min-width: 0; }
@media (max-width: 980px) { .cards { --cols: 2 !important; } }
@media (max-width: 560px) { .cards { --cols: 1 !important; } }
.card { text-decoration: none; display: block; }
.card .pic {
  aspect-ratio: 4 / 3; overflow: hidden; background: #151213;
  border-radius: 34px 26px 38px 24px / 28px 36px 24px 34px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  transition: border-radius .6s ease, box-shadow .4s, transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .pic, .card:focus-visible .pic {
  border-radius: 24px 38px 26px 36px / 36px 24px 36px 26px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 60px -22px var(--c);
  transform: translateY(-4px);
}
.card:hover .pic img { transform: scale(1.06); }
.card h3 { margin: 14px 2px 2px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.2; font-weight: 700; font-family: var(--display); letter-spacing: -.01em; }
.card:hover h3 { color: var(--c); }
.card p { margin: 0 2px; font-size: 14px; color: var(--muted); }

/* smaller pieces: a plain list */
.more ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.more a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s, background .3s; }
.more a:hover, .more a:focus-visible { padding-left: 16px; background: rgba(255, 255, 255, .03); }
.more a span { font: 700 clamp(20px, 2.4vw, 28px)/1.15 var(--display);  }
.more a:hover span { color: var(--c); }
.more a small { font-size: 14px; color: var(--muted); }
.more h2 { font-size: clamp(30px, 4.4vw, 54px); }

/* ---------- short films: bigger cards, each lit in its own colour ---------- */
.spotlight .card { position: relative; }
.spotlight .card::before {
  /* the light behind the picture */
  content: ''; position: absolute; inset: 6% 4% 30%; z-index: -1; border-radius: 50%;
  background: var(--c); filter: blur(46px); opacity: .34; transition: opacity .5s, transform .6s;
}
.spotlight .card:hover::before, .spotlight .card:focus-visible::before { opacity: .62; transform: scale(1.12); }
.spotlight .card .pic {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 26px 50px -18px rgba(0, 0, 0, .9), 0 0 44px -14px var(--c);
}
.spotlight .card:hover .pic, .spotlight .card:focus-visible .pic {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 34px 60px -20px rgba(0, 0, 0, .95), 0 0 70px -12px var(--c);
  transform: translateY(-8px);
}
.spotlight .card .pic::after {
  /* a soft highlight from above, like a lamp on the frame */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 30% -10%, rgba(255, 255, 255, .2), transparent 60%);
}
.spotlight .card .pic { position: relative; }
.spotlight .card h3 {
  margin-top: 20px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.08;
  text-shadow: 0 0 26px color-mix(in srgb, var(--c) 70%, transparent), 0 2px 0 rgba(0, 0, 0, .6);
}
.spotlight .card p { margin-top: 6px; font-size: 15px; }
.card-logo { height: 1.05em; width: auto; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 60%, transparent)); }
.view h1.lit { text-shadow: 0 0 44px color-mix(in srgb, var(--accent) 60%, transparent), 0 3px 0 rgba(0, 0, 0, .5); }

/* Shorts titles: every film has its own face, so each is sized to look equally large, and all
   of them sit on one baseline in a title area of the same height (so the lines under them align) */
.spotlight .card h3 {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: clamp(54px, 5.2vw, 72px);
  margin: 16px 2px 8px; line-height: 1.05;
}
.spotlight .card p { margin-top: 0; text-align: center; }
.spotlight .card h3 .card-logo { height: clamp(27px, 2.6vw, 36px); margin-bottom: 3px; }
.spotlight .card h3.t-robbie { font-size: clamp(19px, 1.72vw, 24px); line-height: 1.14; letter-spacing: .01em; }
.spotlight .card h3.t-glyph { font-size: clamp(25px, 2.4vw, 33px); line-height: .95; }
.spotlight .card h3.t-first-pick { font-size: clamp(34px, 3.3vw, 46px); letter-spacing: .015em; line-height: .95; }
/* the same films on their own pages */
.view h1.t-robbie { font-size: clamp(30px, 5.4vw, 74px); line-height: 1.08; }
.t-robbie { text-transform: uppercase; }
/* the small THE between two rules */
.t-robbie .the { display: inline-block; font-size: .48em; line-height: 1; vertical-align: .3em; margin: 0 .2em; padding: .16em 0 .1em; letter-spacing: .06em; border-top: .13em solid currentColor; border-bottom: .13em solid currentColor; }
.view h1.t-glyph { letter-spacing: 0; }
.view h1.t-first-pick { letter-spacing: .015em; }

@keyframes emit {
  from { filter: brightness(1); }
  to   { filter: brightness(1.22); } /* brightness only: a blur here would soften the marks too */
}
/* Glyph: the film's mark on both sides of the title, the right one mirrored */
.t-glyph > span {
  display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em;
  /* the glow is cast by the whole title, marks and letters alike; the shapes themselves stay sharp */
  filter: drop-shadow(0 0 5px rgba(130, 250, 255, .85)) drop-shadow(0 0 16px rgba(25, 217, 255, .8)) drop-shadow(0 0 38px rgba(0, 190, 255, .55));
}
.t-glyph > span::before, .t-glyph > span::after {
  /* sized so the mark's stroke is as thick as the stems of the letters */
  content: ''; flex: none; height: .74em; aspect-ratio: 428 / 318;
  background: url('../media/glyph-icon.png') center / contain no-repeat;
  filter: none;
}
.t-glyph > span::after { transform: scaleX(-1); }
/* Robbie: cartoon paint splats around the title (smooth blobs, a drip and a few drops, inline SVG) */
/* .ink is the run of text itself, so the splats anchor to where the lettering starts (first line)
   and where it ends (last line), also when the title wraps */
.t-robbie .ink { position: relative; z-index: 0; }
.t-robbie .ink::before, .t-robbie .ink::after {
  content: ''; position: absolute; z-index: -1; width: 2.7em; aspect-ratio: 3 / 2; pointer-events: none;
  background: center / contain no-repeat; opacity: .8;
}
.t-robbie .ink::before { left: -.75em; top: -.7em; rotate: -14deg; background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 80%22%3E%3Cg fill=%22%23ff3b3b%22%3E%3Ccircle cx=%2234%22 cy=%2240%22 r=%2215%22/%3E%3Ccircle cx=%2248%22 cy=%2233%22 r=%2210%22/%3E%3Ccircle cx=%2224%22 cy=%2250%22 r=%228%22/%3E%3Crect x=%2230%22 y=%2248%22 width=%227%22 height=%2220%22 rx=%223.5%22/%3E%3Ccircle cx=%2233.5%22 cy=%2270%22 r=%224.5%22/%3E%3Ccircle cx=%2270%22 cy=%2224%22 r=%226%22/%3E%3Ccircle cx=%2286%22 cy=%2246%22 r=%228%22/%3E%3Ccircle cx=%22104%22 cy=%2228%22 r=%223.5%22/%3E%3Ccircle cx=%2212%22 cy=%2220%22 r=%223.5%22/%3E%3C/g%3E%3C/svg%3E'); }
.t-robbie .ink::after { right: -.8em; bottom: -.6em; rotate: 9deg; background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 120 80%22%3E%3Cg fill=%22%23ff3b3b%22%3E%3Ccircle cx=%2284%22 cy=%2238%22 r=%2214%22/%3E%3Ccircle cx=%2270%22 cy=%2246%22 r=%229%22/%3E%3Ccircle cx=%2296%22 cy=%2228%22 r=%228%22/%3E%3Crect x=%2280%22 y=%2246%22 width=%226%22 height=%2217%22 rx=%223%22/%3E%3Ccircle cx=%2283%22 cy=%2265%22 r=%224%22/%3E%3Ccircle cx=%2246%22 cy=%2226%22 r=%227%22/%3E%3Ccircle cx=%2228%22 cy=%2250%22 r=%225%22/%3E%3Ccircle cx=%22108%22 cy=%2258%22 r=%223.5%22/%3E%3Ccircle cx=%2214%22 cy=%2222%22 r=%223%22/%3E%3C/g%3E%3C/svg%3E'); }
@keyframes sheen { from { background-position: 220% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .card h3, .view h1 { animation: none !important; } }

/* ---------- banner above About ---------- */
.banner {
  width: 100%; height: auto; min-height: 150px; object-fit: cover;
  margin-top: clamp(64px, 10vw, 130px);
  /* the image has its own dark backdrop; fade its edges into the page */
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}

/* ---------- about / contact: side by side at the bottom of the page ---------- */
.bottom {
  max-width: 1280px; margin: 0 auto; padding: clamp(28px, 4vw, 52px) var(--gutter) 0;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: start;
}
.bottom .about, .bottom .contact { padding: 0; max-width: none; margin: 0; }
.bottom h2 { font-size: clamp(32px, 4.2vw, 56px); margin-bottom: .45em; }

.about-grid { display: grid; grid-template-columns: clamp(140px, 15vw, 200px) 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.portrait { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; box-shadow: 0 26px 60px -28px rgba(40, 90, 255, .55); }
.bio p { font: 400 clamp(17px, 1.5vw, 20px)/1.6 var(--body); margin: 0 0 1em; }
.facts { margin: clamp(18px, 2.4vw, 30px) 0 0; padding-top: clamp(18px, 2.2vw, 26px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.5fr .8fr; gap: 20px clamp(18px, 2.6vw, 36px); font-size: 15px; }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; line-height: 1.6; }

/* contact sits in its own panel next to About */
.contact { padding: clamp(22px, 2.8vw, 36px) !important; border-radius: 30px 24px 32px 22px / 24px 32px 22px 30px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.avail { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font: 500 14px/1.3 var(--body); }
.avail::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4dff7a; box-shadow: 0 0 12px #4dff7a; }
.contact-lede { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.mail { margin: 0 0 18px; }
.mail a {
  font: 700 clamp(19px, 2vw, 28px)/1.2 'Space Grotesk', var(--display); letter-spacing: -.01em;
  text-decoration: none; overflow-wrap: anywhere;
  /* on hover the address itself turns blue and an underline sweeps in */
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; padding-bottom: 4px;
  transition: background-size .4s, color .3s;
}
.mail a:hover, .mail a:focus-visible { color: var(--blue-text); background-size: 100% 3px; }
/* one tidy block of buttons: copy across the top, the four links as a 2 x 2 grid below */
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btns ul, .btns li { display: contents; }
#links { list-style: none; padding: 0; margin: 0; }
.btns button, .btns a {
  display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none; cursor: pointer;
  font: 500 15px/1.2 var(--body); color: var(--ink);
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.btns #links a { border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.btns button { grid-column: 1 / -1; background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.btns button:hover { background: #fff; }
.btns a:hover, .btns a:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fine { max-width: 1280px; margin: clamp(48px, 7vw, 90px) auto 0; padding: 22px var(--gutter) 40px; font-size: 13px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .bottom { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 200px; }
}

/* ---------- project view ---------- */
.view {
  position: fixed; inset: 0; z-index: 30;
  background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden;
  clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path .75s cubic-bezier(.6, 0, .2, 1), visibility 0s .75s;
}
.view.open {
  visibility: visible;
  clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%));
  transition: clip-path .9s cubic-bezier(.6, 0, .2, 1), visibility 0s;
}
.view::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(90vmax 60vmax at 15% -10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
}
/* Instant-Life: its own page in a frame, with its own way back */
.view.framed { overflow: hidden; }
.view.framed::before, .view.framed .back { display: none; }
.view.framed .view-inner { position: absolute; inset: 0; max-width: none; padding: 0; }
.view.framed iframe { width: 100%; height: 100%; border: 0; }

.back {
  position: fixed; top: 16px; left: var(--gutter); z-index: 2;
  padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px;
  background: rgba(20, 18, 19, .7); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.back:hover { background: var(--ink); color: var(--bg); }
.view-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(84px, 12vw, 150px) var(--gutter) 80px; }
.view .kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.view h1 {
  font: 800 clamp(38px, 7.4vw, 104px)/.98 var(--display); 
  letter-spacing: -.03em; margin: 0 0 .35em; text-wrap: balance;
}
.view h1.custom { letter-spacing: -.01em; font-size: clamp(40px, 8vw, 112px); line-height: 1; }
.view .title-logo { width: min(100%, 720px); height: auto; margin-left: -6px; }
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 5vw, 70px); margin-bottom: clamp(36px, 6vw, 72px); }
.intro .text { font: 400 clamp(19px, 1.9vw, 23px)/1.55 var(--body); margin: 0; max-width: 34em; }
/* follow-up paragraphs read as body copy: sans, regular weight, comfortable measure */
.intro .text.more { margin-top: 1em; font: 400 clamp(17px, 1.35vw, 19px)/1.7 var(--body); color: #d9d2ca; max-width: 60ch; }

/* loose objects scattered behind a project page, at different depths (see scatter() in main.js) */
.scatter { position: absolute; inset: 0 calc(50% - 50vw); overflow: hidden; pointer-events: none; z-index: 0; }
.scatter img {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; max-width: none;
  filter: blur(var(--blur)) drop-shadow(0 20px 24px rgba(0, 0, 0, .5)); opacity: var(--o);
  will-change: transform; translate: -50% -50%;
}
.view-inner > :not(.scatter) { position: relative; z-index: 1; }
@media (max-width: 760px) { .scatter img { opacity: calc(var(--o) * .55); } }

/* text over the faded image stays readable: a soft pool of shadow behind the whole intro block,
   plus a tight shadow on the lettering itself */
.has-hero .intro::before {
  content: ''; position: absolute; z-index: -1; inset: -70px -110px -60px;
  background: radial-gradient(closest-side, rgba(6, 5, 6, .88), rgba(6, 5, 6, .74) 55%, rgba(6, 5, 6, .35) 80%, transparent);
  filter: blur(26px); pointer-events: none;
}
.has-hero .intro .text { text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 18px rgba(0, 0, 0, .85); }
.has-hero .film-hero .kicker { text-shadow: 0 1px 3px #000, 0 0 16px #000; }
.has-hero .intro.with-poster .poster { box-shadow: 0 30px 80px -20px #000, 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }

/* label on a video frame */
.media .tag {
  position: absolute; z-index: 1; left: 16px; top: 16px; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font: 800 clamp(13px, 1.2vw, 16px)/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(8, 6, 7, .72); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px);
  transition: opacity .3s;
}
.media .tag i { font-style: normal; font-size: .7em; color: var(--accent); }
.media .frame.playing .tag { opacity: 0; }
.has-hero .intro.with-poster .poster { width: auto; max-width: 100%; max-height: 72svh; }
@media (max-width: 760px) { .has-hero .intro.with-poster .meta { grid-template-columns: repeat(2, 1fr); } }

/* poster: a button that opens the enlarged view */
.poster-btn { all: unset; position: relative; display: block; justify-self: center; cursor: zoom-in; border-radius: 18px; line-height: 0; }
.poster-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.poster-btn .poster { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.poster-btn:hover .poster { transform: scale(1.02); }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; line-height: 1;
  font: 500 13px/1 var(--body); color: #fff; background: rgba(8, 6, 7, .7); border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s;
}
.poster-btn:hover .zoom-hint, .poster-btn:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }
.zoomer {
  position: fixed; inset: 0; z-index: 60; display: none; background: rgba(4, 3, 4, .94); cursor: zoom-out;
}
.zoomer.on { display: block; }
.zoom-pan { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; padding: 56px 16px 16px; }
.zoomer img { max-width: 100%; max-height: calc(100svh - 80px); width: auto; height: auto; border-radius: 10px; cursor: zoom-in; box-shadow: 0 30px 90px -20px #000; }
.zoomer.big .zoom-pan { display: block; }
.zoomer.big img { max-width: none; max-height: none; cursor: zoom-out; margin: 0 auto; display: block; }
.zoom-x {
  position: fixed; top: 14px; right: 18px; z-index: 1; cursor: pointer;
  font: 500 14px/1 var(--body); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  background: rgba(20, 18, 19, .8); border: 1px solid var(--line);
}
.zoom-x:hover { background: var(--ink); color: var(--bg); }

/* film page with a wide still behind the title */
.view { overflow-x: clip; }
.film-hero {
  position: relative; display: block;
  width: 100vw; margin: calc(-1 * clamp(84px, 12vw, 150px)) 0 clamp(18px, 2.6vh, 34px) calc(50% - 50vw);
  /* only this much of the page is reserved for the image; the rest of it runs on behind the text */
  padding-top: clamp(110px, 17svh, 200px);
}
.film-hero .hero-img {
  display: block; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: min(92svh, 70vw); min-height: 420px;
  background: center 30% / cover no-repeat;
  /* a long fade: full strength at the top, gone well before the bottom */
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .78) 22%, rgba(0, 0, 0, .34) 50%, rgba(0, 0, 0, .1) 74%, transparent 96%);
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, .78) 22%, rgba(0, 0, 0, .34) 50%, rgba(0, 0, 0, .1) 74%, transparent 96%);
}
.film-hero > div { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(10px, 2vw, 26px); }
.film-hero .kicker { color: #fff; text-shadow: 0 1px 12px #000; }
.film-hero h1 { margin-bottom: 0; }
.film-hero .title-logo { width: min(100%, 760px); filter: brightness(1.25) drop-shadow(0 6px 26px #000) drop-shadow(0 0 3px #000); }
.has-hero.view::before { display: none; }
.has-hero .intro .text:first-child { font-weight: 500; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.45; }
.has-hero .intro.with-poster .meta {
  margin-top: 26px; padding: 20px 24px 4px; grid-template-columns: repeat(3, 1fr); gap: 0 24px;
  background: rgba(14, 12, 13, .72); backdrop-filter: blur(8px); border-radius: 20px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  font-size: 16px;
}
.has-hero .intro .meta b { color: var(--accent); }
.view h2.label { font-size: clamp(26px, 3.2vw, 40px); margin: 0 0 .7em; }
.has-hero .credits { padding: clamp(22px, 3vw, 38px); border-radius: 24px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.has-hero .credits dd { font-size: 17px; }
.has-hero .media .frame { box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--accent) 70%, transparent); }
.intro.with-poster { grid-template-columns: 1.25fr 1fr; align-items: start; }
.intro.with-poster .poster { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.intro.with-poster .meta { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 28px; }
.intro.with-poster .meta b { grid-column: auto; }
.intro.with-poster .meta > * { min-width: 0; }
@media (max-width: 560px) {
  .intro.with-poster { grid-template-columns: 1fr; }
  .intro.with-poster .poster { max-width: 360px; }
}
.credits { margin-top: clamp(48px, 8vw, 100px); }
.credits h2 { font-size: clamp(30px, 4vw, 48px); }
.credits dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px 40px; }
.credits dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 2px 0 0; }
.credits .press { margin: 32px 0 0; color: var(--muted); font-size: 15px; }
.credits .press a { color: var(--ink); text-underline-offset: 4px; }
.intro .meta { font-size: 14px; color: var(--muted); }
.intro .meta b { display: block; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.intro .meta p { margin: 0 0 18px; color: var(--ink); }
.cta {
  display: inline-block; margin-top: 22px; padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: #08110a; font: 600 15px/1 var(--body); text-decoration: none;
}
.cta:hover { filter: brightness(1.12); }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } }

.media { display: grid; gap: clamp(18px, 3vw, 40px); }
.media figure { margin: 0; }
.media .frame { position: relative; border-radius: 18px; overflow: hidden; background: #131112; }
.media .frame.tall { max-width: min(100%, 560px); margin-inline: auto; }
.media img, .media video, .media iframe { width: 100%; height: auto; }
.media .ratio { aspect-ratio: 16 / 9; }
.media .ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.media figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 60em; }
.lite { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.lite::after {
  content: ''; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(8, 6, 7, .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f4ede5' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center/46% no-repeat;
  border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.lite:hover::after, .lite:focus-visible::after { transform: scale(1.12); }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 8vw, 110px); padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; max-width: 48%; }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager span { font: 700 clamp(20px, 3vw, 36px)/1.1 var(--display);  }
.pager a:hover span { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, .idle, .storm .arrow, .goods img { animation: none; }
  .view, .view.open { transition: none; }
  .f-art > *, .feature .f-text, .card .pic, .card .pic img { transition: none; }
}

/* ---------- phones: late overrides (rules above for the Hippo row and the header come after the first mobile block) ---------- */
@media (max-width: 720px) {
  .f-hippo { grid-template-columns: 1fr; padding: 0; margin-top: 0; text-align: center; justify-items: center; }
  .f-hippo .f-art { order: -1; width: 100%; height: auto; }
  .goods { width: min(78vw, 340px); height: auto; aspect-ratio: 1; margin: 6px auto 0; }
  .f-hippo .word { font-size: clamp(40px, 12vw, 60px); }
  .f-hippo::before { right: 10%; width: 80%; top: 26%; }
  .f-il .f-text, .f-hippo .f-text, .f-merlot .f-text { transform-origin: center; }
}
@media (max-width: 560px) {
  .top nav a { white-space: nowrap; }
  .top nav a.reel-btn { padding: 9px 12px; font-size: 13px; }
}
