/* ---------- Tokens ---------- */
:root {
  --bg: #f0f0f0;
  --surface: #e6e6e6;
  --ink: #121212;
  --muted: rgba(18, 18, 18, 0.55);
  --line: rgba(18, 18, 18, 0.14);
  --blue: #0059ff;
  --on-blue: #f0f0f0;

  --display: "Big Shoulders Display", "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "DM Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0f;
    --surface: #18181b;
    --ink: #f0f0f0;
    --muted: rgba(240, 240, 240, 0.55);
    --line: rgba(240, 240, 240, 0.14);
    --blue: #3d7bff;
    --on-blue: #0d0d0f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0f;
  --surface: #18181b;
  --ink: #f0f0f0;
  --muted: rgba(240, 240, 240, 0.55);
  --line: rgba(240, 240, 240, 0.14);
  --blue: #3d7bff;
  --on-blue: #0d0d0f;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: var(--on-blue); }

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

.label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 20px;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo { display: inline-flex; width: 40px; height: 40px; color: var(--blue); }
.logo svg { width: 100%; height: 100%; }

.nav { display: flex; gap: 32px; }
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.clock { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.theme-toggle {
  width: 52px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 3px;
  cursor: pointer;
  position: relative;
}
.theme-toggle span {
  display: block;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue);
  transition: transform 0.45s var(--ease);
}
:root[data-theme="dark"] .theme-toggle span { transform: translateX(24px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle span { transform: translateX(24px); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 120px;
  padding-bottom: 40px;
}
.hero-name {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(88px, min(27vw, 35svh), 460px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--blue);
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .line:first-child { padding-top: 0.16em; }
.hero-name .line:nth-child(2) { text-align: right; margin-top: -0.04em; }
.hero-name .line span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
}
.is-loaded .hero-name .line span { transform: none; }
.is-loaded .hero-name .line:nth-child(2) span { transition-delay: 0.12s; }

.hero-portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(110px, 15vw, 240px);
  aspect-ratio: 4 / 5;
  border-radius: 999px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: transform 1.2s var(--ease) 0.35s, opacity 0.8s var(--ease) 0.35s;
  z-index: 2;
}
.is-loaded .hero-portrait { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 24px;
  margin-top: clamp(24px, 4vw, 56px);
}
.hero-intro { max-width: 34ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; margin: 0; }
.scroll-cue { justify-self: end; display: flex; align-items: center; gap: 12px; }
.scroll-cue i {
  display: block;
  width: 1px; height: 48px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vw, 180px); }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.9;
  text-transform: uppercase;
}
.section-head .rule { height: 1px; background: var(--line); align-self: center; }
.section-index { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--blue); }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(56px, 8vw, 120px);
}
.case:nth-child(1) { grid-column: 1 / span 7; }
.case:nth-child(2) { grid-column: 9 / span 4; margin-top: 30%; }
.case:nth-child(3) { grid-column: 2 / span 5; }
.case:nth-child(4) { grid-column: 7 / span 6; margin-top: 12%; }
.case:nth-child(5) { grid-column: 3 / span 7; }

.case-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.case:nth-child(2) .case-media { aspect-ratio: 4 / 5; }
.case:nth-child(3) .case-media { aspect-ratio: 1 / 1; }
.case-media img, .case-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease);
}
.case:hover .case-media img, .case:hover .case-media video { transform: scale(1); }
.case-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-arrow {
  position: absolute;
  right: 16px; bottom: 16px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  transform: scale(0.4) rotate(-45deg);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.3s var(--ease);
}
.case:hover .case-arrow { transform: none; opacity: 1; }

.case-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.case-num { font-family: var(--display); font-weight: 600; color: var(--blue); }
.case-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 34px); line-height: 1; text-transform: uppercase; }
.case-tag { font-size: 13px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: clamp(16px, 2vw, 28px);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding-right: clamp(24px, 3vw, 48px);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee-item svg { width: 0.42em; height: 0.42em; color: var(--blue); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.about-lead {
  grid-column: 1 / span 8;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.about-lead em { font-style: normal; color: var(--blue); }
.about-body { grid-column: 8 / span 5; margin: clamp(24px, 4vw, 64px) 0 0; color: var(--muted); font-size: 17px; }

/* ---------- Lists (experience / education) ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 2fr 3fr 4fr;
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.row::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.row:hover::before { transform: scaleX(1); }
.row-years { font-variant-numeric: tabular-nums; color: var(--muted); }
.row-role {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
  text-transform: uppercase;
}
.row-org { display: block; margin-top: 10px; font-family: var(--text); font-weight: 400; font-size: 15px; line-height: 1.4; text-transform: none; color: var(--muted); }
.row-desc { margin: 0; color: var(--muted); max-width: 56ch; }

.sub-head { margin: clamp(80px, 10vw, 140px) 0 clamp(24px, 3vw, 40px); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 48px; }
.contact-intro { max-width: 36ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; margin: 0 0 clamp(32px, 5vw, 64px); }
.contact-mail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  /* sized on the real content width (minus a scrollbar) so it always fits one line */
  font-size: max(28px, calc((min(100vw, 1600px) - 2 * var(--gutter) - 20px) * 0.1));
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 4px no-repeat;
  transition: background-size 0.7s var(--ease);
  padding-bottom: 6px;
}
.contact-mail:hover { background-size: 100% 4px; }

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(64px, 10vw, 140px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer > :nth-child(2) { text-align: center; }
.site-footer > :nth-child(3) { text-align: right; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Case page ---------- */
.case-hero { padding-top: 140px; }
.back { display: inline-flex; gap: 10px; align-items: center; margin-bottom: clamp(32px, 5vw, 64px); }
.back:hover { color: var(--blue); }
.case-h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--blue);
}
.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-block: clamp(32px, 5vw, 64px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.case-facts dd { margin: 6px 0 0; font-size: 17px; }
.case-cover { border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }

.case-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(56px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
}
.case-block h2 {
  grid-column: 1 / span 4;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 3.6vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
}
.case-block p { grid-column: 6 / span 7; margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }

.ph {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 32px);
  padding-block: clamp(56px, 8vw, 120px);
}
.case-gallery .ph:nth-child(1) { grid-column: span 12; aspect-ratio: 16 / 8; }
.case-gallery .ph:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 5; }
.case-gallery .ph:nth-child(3) { grid-column: span 7; aspect-ratio: 7 / 5.6; }

.next-case .case-h1 { display: block; margin-top: 12px; }
.next-case { display: block; padding-block: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); }
.next-case .case-h1 { color: var(--ink); transition: color 0.4s var(--ease); }
.next-case:hover .case-h1 { color: var(--blue); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .site-header .wrap > .nav { display: none; }
  .clock { display: none; }
  .hero { min-height: auto; padding-top: 112px; }
  .hero-name { font-size: 30vw; }
  .hero-portrait { width: 30vw; }
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .case:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .case:nth-child(n) .case-media { aspect-ratio: 4 / 3; }
  .about-lead, .about-body { grid-column: 1 / -1; margin-top: 0; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-block h2, .case-block p { grid-column: 1 / -1; }
  .case-gallery .ph:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > :nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-name .line span { transform: none; }
  .hero-portrait { opacity: 1; transform: translate(-50%, -50%); }
}

/* =========================================================
   Case page v2 (Friteur)
   ========================================================= */
.fr { --fr-yellow: #f8b235; --fr-black: #191918; --fr-cream: #fefcf0; }

.cs-hero { padding-top: 120px; }
.cs-back {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 22px;
  margin-bottom: clamp(24px, 4vw, 48px);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}
.cs-back:hover { background: var(--blue); color: #fff; transform: translateX(-4px); }
.cs-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 22vw, 380px);
  line-height: 0.8;
  text-transform: uppercase;
  color: var(--blue);
  overflow: hidden;
}
.cs-title span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.is-loaded .cs-title span { transform: none; }
.cs-sub {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin: clamp(20px, 3vw, 36px) 0 clamp(24px, 4vw, 48px);
}
.cs-sub .label i { display: inline-block; width: 18px; height: 28px; border: 1px solid currentColor; border-radius: 10px; vertical-align: middle; margin-right: 10px; position: relative; }
.cs-sub .label i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }

.cs-media { border-radius: 16px; overflow: hidden; background: var(--fr-cream, #fefcf0); }
.cs-media video, .cs-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-hero-media { aspect-ratio: 16 / 9; }

.dot-label { display: inline-flex; align-items: center; gap: 10px; }
.dot-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

.cs-overview { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.cs-overview .dot-label { grid-column: 1 / -1; }
.cs-lead {
  grid-column: 1 / span 7;
  margin: 0;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.cs-lead em { font-style: normal; color: var(--blue); }
.cs-facts { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.cs-fact { background: var(--surface); border-radius: 14px; padding: 20px 22px 22px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.cs-fact dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cs-fact dd { margin: 16px 0 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; }

.cs-story { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 72px); }
.cs-story + .cs-story { margin-top: clamp(40px, 5vw, 72px); }
.cs-story h2 { grid-column: 1 / span 4; margin: 0; display: flex; gap: 14px; align-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.4vw, 72px); line-height: 0.9; text-transform: uppercase; }
.cs-story h2 svg { width: 0.5em; height: 0.5em; color: var(--blue); flex: none; }
.cs-story p { grid-column: 6 / span 7; margin: 0; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 11vw, 190px); gap: clamp(12px, 1.4vw, 20px); }
.bento > * { border-radius: 16px; overflow: hidden; background: var(--surface); position: relative; }
.bento img, .bento video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.bento > *:hover img { transform: scale(1.035); }
.b-a { grid-column: span 7; grid-row: span 4; }
.b-b { grid-column: span 5; grid-row: span 4; }
.b-c { grid-column: span 4; grid-row: span 3; }
.b-d { grid-column: span 8; grid-row: span 3; }
.b-e { grid-column: span 12; grid-row: span 4; }
.b-f { grid-column: span 6; grid-row: span 4; }
.b-g { grid-column: span 6; grid-row: span 4; }
.bento figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(18, 18, 18, 0.72); color: #fefcf0;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Friteur-coloured name band */
.fr-band { background: var(--fr-yellow); color: var(--fr-black); overflow: hidden; padding-block: clamp(14px, 2vw, 24px); transform: rotate(-2deg); margin-inline: -3vw; }
.fr-band + .fr-band { background: var(--fr-black); color: var(--fr-cream); transform: rotate(1.5deg); margin-top: -10px; }
.fr-track { display: flex; width: max-content; animation: marquee 22s linear infinite; }
.fr-band + .fr-band .fr-track { animation-direction: reverse; }
.fr-word { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 150px); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.fr-word img { height: 0.8em; width: auto; }

/* poster rail */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.rail-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 6vw, 96px); line-height: 0.9; text-transform: uppercase; }
.rail {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gutter); padding-bottom: 8px;
  cursor: grab; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail > * { flex: 0 0 clamp(240px, 28vw, 420px); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; scroll-snap-align: start; }
.rail img, .rail video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }

/* more works */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.more-card { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.more-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.more-card:hover img { transform: scale(1.04); }
.more-meta {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 14px 14px 20px; border-radius: 14px;
  background: rgba(18, 18, 18, 0.62); color: #fefcf0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.more-meta b { display: block; font-family: var(--display); font-size: 28px; line-height: 1; text-transform: uppercase; }
.more-meta small { font-size: 13px; opacity: 0.7; }
.more-meta i { font-style: normal; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 20px; transition: transform 0.4s var(--ease); }
.more-card:hover .more-meta i { transform: rotate(45deg); }

/* let's talk */
.talk { text-align: center; padding-block: clamp(80px, 12vw, 180px); }
.talk .label { display: block; margin-bottom: 24px; }
.talk a {
  display: inline-flex; align-items: center; gap: clamp(16px, 2vw, 32px);
  font-family: var(--display); font-weight: 800;
  font-size: clamp(72px, 15vw, 260px); line-height: 0.85; text-transform: uppercase;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.talk a:hover { color: var(--blue); }
.talk a i {
  font-style: normal; flex: none;
  width: 0.62em; height: 0.62em; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 0.32em;
  transition: transform 0.5s var(--ease);
}
.talk a:hover i { transform: rotate(45deg) scale(1.06); }

/* services list (home) */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px;
  padding-block: clamp(18px, 2.4vw, 32px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease), color 0.3s var(--ease);
}
.service:hover { color: var(--blue); padding-left: 16px; }
.service span:first-child { font-family: var(--display); font-weight: 600; color: var(--blue); font-size: 20px; }
.service h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 96px); line-height: 0.9; text-transform: uppercase; }
.service i { font-style: normal; font-size: clamp(24px, 3vw, 44px); transition: transform 0.4s var(--ease); }
.service:hover i { transform: rotate(45deg); }

@media (max-width: 900px) {
  .cs-lead, .cs-facts, .cs-story h2, .cs-story p { grid-column: 1 / -1; }
  .bento { grid-auto-rows: 90px; }
  .b-a, .b-b, .b-c, .b-d, .b-e, .b-f, .b-g { grid-column: span 12; grid-row: span 4; }
  .more-grid { grid-template-columns: 1fr; }
  .cs-sub { flex-direction: column; align-items: start; }
  .service { grid-template-columns: 48px 1fr auto; }
}

/* language switch */
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.lang button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* ---------- Home: hero reel ---------- */
.home .hero { position: relative; isolation: isolate; max-width: none; overflow: hidden; background: #0b0b0d; color: #f0f0f0;
  --ink: #f0f0f0; --muted: rgba(240, 240, 240, 0.62); --line: rgba(240, 240, 240, 0.2); }
.home .hero > :not(.hero-reel) { max-width: calc(1600px - 2 * var(--gutter)); margin-inline: auto; width: 100%; }
.home .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 13, 0.7) 0%, rgba(11, 11, 13, 0.12) 38%, rgba(11, 11, 13, 0.25) 60%, rgba(11, 11, 13, 0.92) 100%); }
.home .hero-name { color: #fff; }
.hero-reel { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.reel-cols { position: absolute; inset: -30% -12%; display: flex; gap: clamp(10px, 1vw, 16px); transform: rotate(-9deg); }
.reel-col { flex: 1; display: flex; flex-direction: column; gap: clamp(10px, 1vw, 16px); animation: reelUp var(--dur, 50s) linear infinite; will-change: transform; }
.reel-col:nth-child(even) { animation-direction: reverse; }
.reel-col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; opacity: 0.28; filter: grayscale(0.6); transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 0.9s var(--ease); }
.reel-col img.on { opacity: 1; filter: none; transform: scale(1.02); }
@keyframes reelUp { to { transform: translateY(-33.333%); } }
.hero-now { justify-self: end; display: grid; gap: 6px; text-align: right; }
.hero-now-t { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 2.6vw, 42px); text-transform: uppercase; line-height: 1; }
.hero-now-t b { color: var(--blue); font-weight: 800; }
.hero-now-t i { font-style: normal; display: inline-block; transition: transform 0.4s var(--ease); }
.hero-now:hover .hero-now-t i { transform: translate(4px, -4px); }
.home .site-header:not(.is-scrolled) { --ink: #f0f0f0; --muted: rgba(240, 240, 240, 0.62); --line: rgba(240, 240, 240, 0.22); --surface: rgba(255, 255, 255, 0.08); color: #f0f0f0; }
@media (prefers-reduced-motion: reduce) { .reel-col { animation: none; } }

/* ---------- Home: work grid without holes ---------- */
.home .work-grid { grid-template-columns: repeat(2, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 5vw, 72px); }
.home .case { grid-column: auto !important; margin-top: 0 !important; }
.home .case:first-child { grid-column: 1 / -1 !important; }
.home .case .case-media { aspect-ratio: 4 / 3; }
.home .case:first-child .case-media { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .home .work-grid { grid-template-columns: 1fr; } .hero-now { justify-self: start; text-align: left; } }

/* ---------- Home: depth + parallax ---------- */
.hero-reel { perspective: 1400px; }
.reel-cols { transform-style: preserve-3d; transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0) rotateX(22deg) rotateZ(-10deg) scale(1.28); transition: transform .25s linear; }
.reel-col:nth-child(3n+1) { transform: translateZ(60px); }
.reel-col:nth-child(3n+2) { transform: translateZ(-80px); }
.home .hero-name { transform: translate3d(0, var(--ny, 0px), 0); will-change: transform; }
.home .hero-foot { transform: translate3d(0, var(--fy, 0px), 0); }
.home .case { perspective: 1200px; }
.home .case-media { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.home .case:hover .case-media { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .35); }
.home .case-media img, .home .case-media video { transform: translate3d(0, var(--py, 0px), 0) scale(1.12) !important; transition: transform .2s linear; }
.home .case-meta { transform: translate3d(0, var(--my2, 0px), 0); }
@media (prefers-reduced-motion: reduce) { .reel-cols, .home .hero-name, .home .case-media, .home .case-media img, .home .case-media video { transform: none !important; } }

/* ---------- Home: centred name, tighter rhythm ---------- */
.home .hero { justify-content: space-between; }
.home .hero-name { margin-block: auto; text-align: center; }
.home .hero-name .line:nth-child(2) { text-align: center; }
.home .case-meta { transform: none; }
.home .section { padding-block: clamp(64px, 8vw, 120px); }
.home .about-grid { align-items: end; }
.home .about-lead { grid-column: 1 / span 7; }
.home .about-body { grid-column: 9 / span 4; margin: 0; }
@media (max-width: 900px) { .home .about-lead, .home .about-body { grid-column: 1 / -1; } }
/* let's talk: clean round arrow button */
.talk a i { width: 0.62em; height: 0.62em; font-size: 1em; color: transparent; position: relative; overflow: hidden; }
.talk a i::before { content: ""; position: absolute; inset: 27%; background: var(--on-blue, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18L18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18L18 6M8 6h10v10'/%3E%3C/svg%3E") center / contain no-repeat; }
.talk a:hover i { transform: rotate(45deg); }
.more-meta i { color: var(--on-blue, #fff); }
