/* Noan Sévin · portfolio */

/* Clash Display (titles) and Satoshi (text), by Indian Type Foundry, free licence (fontshare.com). */
@font-face {
  font-family: "Clash Display";
  src: url(../fonts/clash-display-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url(../fonts/clash-display-600.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url(../fonts/clash-display-700.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url(../fonts/satoshi-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url(../fonts/satoshi-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url(../fonts/satoshi-700.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0a09;
  --bg-2: #15120f;
  --line: rgba(243, 237, 228, 0.13);
  --ink: #f3ede4;
  --ink-2: #aaa197;
  --ink-3: #746c63;
  --ember: #ff5b2e;
  --ember-deep: #c2380f;
  --ember-ink: #160c08;
  --paper: #f1ece4;
  --paper-ink: #16120e;
  --day: #ece8e2;
  --night: #0e0817;
  --f-display: "Clash Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ember); color: var(--ember-ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ember); color: var(--ember-ink);
  padding: 10px 14px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.display em {
  font-style: normal;
  color: var(--ember);
}
/* Small labels stay in normal case: no spaced capitals above every title. */
.label {
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px;
  background: var(--ember); color: var(--ember-ink);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ember);
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(243, 237, 228, 0.35); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { min-height: 38px; padding: 0 1.05em; font-size: 0.85rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; text-decoration: none;
  padding: 0.4em 0;
  background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.arrow-link:hover { background-size: 100% 2px; }
.arrow-link span { transition: transform 0.35s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- nav ---------- */
/* No full-width bar: three floating groups. The links sit in a see-through pill in the middle
   (the current page in orange); once the page scrolls, the name and the end get a pill too,
   so they stay readable over light sections. */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem;
  padding: 12px var(--gutter);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
/* Once scrolled, a soft dark fade behind the pills, so the text passing under them does not show between them. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 10, 9, 0.88) 0%, rgba(11, 10, 9, 0.6) 60%, rgba(11, 10, 9, 0));
  opacity: 0; transition: opacity 0.4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__start, .nav__end, .nav__links {
  border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s, padding 0.4s var(--ease);
}
.nav__links, .nav.is-scrolled .nav__start, .nav.is-scrolled .nav__end {
  background: rgba(24, 22, 20, 0.66); border-color: rgba(243, 237, 228, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.7);
}
.nav__start { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 0.7rem; padding: 5px 6px 5px 0; min-width: 0; }
.nav.is-scrolled .nav__start { padding-left: 16px; }
.nav__name {
  font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0; word-spacing: 0.06em; text-decoration: none; white-space: nowrap;
}
.nav__back {
  display: inline-flex; align-items: center; gap: 0.45em; white-space: nowrap;
  padding: 0.42em 0.95em; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.nav__back span[aria-hidden="true"]:first-child { transition: transform 0.3s var(--ease); }
.nav__back:hover { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); }
.nav__back:hover span[aria-hidden="true"]:first-child { transform: translateX(-3px); }
.nav__back-short { display: none; }
.nav__links { grid-column: 2; display: flex; gap: 2px; padding: 5px; }
.nav__links a {
  padding: 0.5em 1.1em; border-radius: 999px; text-decoration: none;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s, background-color 0.25s;
}
.nav__links a:hover { color: var(--ink); background: rgba(243, 237, 228, 0.08); }
.nav__links a[aria-current="page"] { background: var(--ember); color: var(--ember-ink); font-weight: 600; }
.lang a, .lang span {
  text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s;
}
.lang a:hover { color: var(--ink); }
.nav__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 1rem; padding: 5px; }
.lang { display: flex; gap: 0.15rem; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a, .lang span { padding: 0.3em 0.7em; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; }
.lang span[aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- phone menu: a burger in the bar opens a full-screen list of the pages ---------- */
.nav__burger, .menu { display: none; }
@media (max-width: 900px) {
  .nav__end .lang { display: none; }
  .nav__burger {
    display: inline-grid; place-content: center; gap: 6px; flex: none;
    width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 1px solid var(--line); background: rgba(243, 237, 228, 0.06); color: var(--ink);
  }
  .nav__burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu {
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    position: fixed; inset: 0; z-index: 79; overflow-y: auto; overscroll-behavior: contain;
    padding: 92px var(--gutter) max(28px, env(safe-area-inset-bottom));
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
  .menu__links { display: grid; border-top: 1px solid var(--line); }
  .menu__links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.3em 0; border-bottom: 1px solid var(--line);
    font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 13vw, 4.4rem); line-height: 1.05; letter-spacing: -0.02em;
    color: var(--ink); text-decoration: none;
    opacity: 0; transform: translateY(18px); transition: opacity 0.4s ease, transform 0.55s var(--ease), color 0.2s;
  }
  .menu__links a::after { content: "→"; font-size: 0.5em; color: var(--ink-3); }
  .menu__links a[aria-current="page"] { color: var(--ember); }
  .menu.is-open .menu__links a { opacity: 1; transform: none; }
  .menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.05s; }
  .menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.1s; }
  .menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.15s; }
  .menu__foot { display: grid; gap: 1rem; }
  .menu__foot .lang { justify-self: start; }
  .menu__foot .lang a, .menu__foot .lang span { font-size: 0.9rem; padding: 0.55em 1.1em; letter-spacing: 0.02em; }
  .menu__foot .btn { justify-content: center; }
  html.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
/* A rounded stage, like a film frame: the light of the set blurred behind,
   the name big on the left, and the whole DJ clip in a card on the right,
   with nothing on top of the decks. Phones: card first, then the name and the text. */
.hero {
  --hero-h: max(100svh, 620px);
  --pad: clamp(22px, 3vw, 44px);
  height: var(--hero-h);
  padding: 72px 12px 12px;
}
.hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100%;
  border-radius: 28px;
  background: #0e0a14;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: ". media" "who media" "title media" "copy media";
  grid-template-rows: 1fr auto auto auto;
  column-gap: clamp(24px, 4vw, 72px);
  padding: var(--pad);
}
.hero__ambient {
  position: absolute; inset: -8%; z-index: -2;
  background: url(../img/hero-ambient.webp) 70% 35% / cover;
  filter: blur(28px) saturate(1.35);
  opacity: 0.75;
}
.hero__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(11, 10, 9, 0.88) 0%, rgba(11, 10, 9, 0.62) 45%, rgba(11, 10, 9, 0.25) 100%),
    radial-gradient(60% 50% at 0% 100%, rgba(255, 91, 46, 0.12), transparent 70%);
}
/* First screen: the name small on top, the ask as the title, the dates under it. */
.hero__who { grid-area: who; font-size: clamp(0.98rem, 1.15vw, 1.12rem); line-height: 1.4; color: var(--ink-2); margin-bottom: clamp(0.9rem, 2.4svh, 1.6rem); }
.hero__who strong { color: var(--ink); font-weight: 600; }
.hero__when { font-size: clamp(1.08rem, 1.4vw, 1.32rem); line-height: 1.45; color: var(--ink-2); }
.hero__dates { color: var(--ink); font-weight: 600; }
.nobr { white-space: nowrap; }
.hero__status {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.65em;
  padding: 0.55em 1em 0.55em 0.8em; border-radius: 1.4em;
  border: 1px solid var(--line); background: rgba(243, 237, 228, 0.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.85rem; font-weight: 500; color: var(--ink-2);
}
.hero__title {
  grid-area: title; container-type: inline-size;
  font-family: var(--f-display); font-weight: 600;
  letter-spacing: -0.02em; line-height: 0.92;
  margin-left: -0.04em;
}
.hero__line { display: block; overflow: hidden; padding-top: 0.14em; margin-top: -0.14em; font-size: min(10.4cqw, 9.4svh); }
.hero__inner { display: block; }
.hero__copy { grid-area: copy; display: grid; gap: 1.3rem; margin-top: clamp(1.2rem, 3svh, 2.2rem); }
.hero__lede { font-size: clamp(1.12rem, 1.45vw, 1.4rem); line-height: 1.4; max-width: 30ch; color: var(--ink); }
.hero__media {
  grid-area: media; position: relative; margin: 0; align-self: center;
  width: min(calc((var(--hero-h) - 84px - 2 * var(--pad)) * 0.8), 46vw);
  aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden;
  background: #120c1d url(../img/hero-decks-poster.webp) center / cover;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(243, 237, 228, 0.07);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__media figcaption {
  position: absolute; left: 14px; top: 14px;
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.45em 0.85em; border-radius: 999px;
  background: rgba(11, 10, 9, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
}
.hero__live { width: 7px; height: 7px; border-radius: 50%; background: #ff3d3d; box-shadow: 0 0 0 3px rgba(255, 61, 61, 0.25); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); flex: none; box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0.55); } 70% { box-shadow: 0 0 0 12px rgba(255, 91, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 46, 0); } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.3rem; }

/* ---------- hero, draft E: a curved row of real work ----------
   One row of images streams round the inside of a cylinder: flat in the middle,
   the ends bend toward you and fade out. Each tile is cut into 16 thin strips,
   each turned a few degrees, which reads as a curve. The name sits above,
   the line and the buttons below; nothing sits on the images. */
.hband {
  position: relative; isolation: isolate; overflow: hidden;
  height: max(100svh, 640px);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center;
  padding: 92px var(--gutter) clamp(28px, 5svh, 56px);
}
.hband__top, .hband__bottom { position: relative; z-index: 1; display: grid; justify-items: center; gap: clamp(0.9rem, 2.2svh, 1.5rem); }
.hband__title { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 0.95; font-size: min(10.5vw, 14svh); }
.hband__line { display: block; overflow: hidden; padding-top: 0.15em; margin-top: -0.15em; }
.hband__inner { display: block; }
.hband .hero__status { grid-area: auto; justify-self: center; }
.hband .hero__lede { max-width: 34ch; }
.hband .hero__ctas { justify-content: center; margin-top: 0; }
.band { position: absolute; inset: 0; z-index: 0; container-type: size; pointer-events: none; }
.band__stage { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
/* the ends of the row fade into the page (a gradient on top, not a mask on the 3D stage) */
.band::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg), transparent var(--band-fade, 12%), transparent calc(100% - var(--band-fade, 12%)), var(--bg));
}
.band__slice { backface-visibility: hidden; }
.band.is-ready .band__stage { opacity: 1; }
.band__tile { position: absolute; transform-style: preserve-3d; will-change: transform; }
.band__slice { position: absolute; top: 0; overflow: hidden; background: var(--bg-2); }
.band__slice.is-first { border-radius: 10px 0 0 10px; }
.band__slice.is-last { border-radius: 0 10px 10px 0; }
.band__slice img { position: absolute; top: 0; max-width: none; object-fit: cover; }
/* !important: each tile gets its animation inline (main.js), which would otherwise keep it running */
.band.is-paused .band__tile { animation-play-state: paused !important; }
/* Work page: the row keeps turning; the image under the mouse is named on it, the others dim. */
.band--links .band__tile { pointer-events: auto; cursor: pointer; }
.band.is-hover .band__tile:not(.is-active) .band__slice img { opacity: 0.35; }
.band__now {
  min-height: 2.5em; display: inline-flex; align-items: center;
  padding: 0.45em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(243, 237, 228, 0.06);
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s;
}
.band__now.is-on { opacity: 1; transform: none; }
/* the image under the mouse darkens and its project's name appears on it, big and bold */
.band__slice img { transition: opacity 0.35s ease, filter 0.35s ease; }
.band__tile.is-active .band__slice img { filter: brightness(0.55); }
.band__word {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: max-content;
  transform: translate(-50%, -50%) scale(0.92);
  font-family: var(--f-display); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; transition: opacity 0.2s ease, transform 0.45s var(--ease); pointer-events: none;
}
.band__word.is-on { opacity: 1; transform: translate(-50%, -50%); }
.hband--work .hband__title { font-size: min(8.4vw, 12.5svh); }
.hband__title em { font-style: normal; color: var(--ember); }
.work--page { padding-top: clamp(4rem, 10svh, 7rem); }
/* Images on the Work page link to a spot in a project (#lahoule, #site): land it under the nav. */
.site-frame[id], .film[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { .band__tile { animation-play-state: paused; } }
@media (max-width: 700px) {
  .hband { padding-top: 84px; }
  .hband__title { font-size: 15vw; }
  .hband .hero__status { font-size: 0.78rem; text-align: left; }
  .hband .hero__lede { font-size: 1.05rem; }
  .hband--work .hband__title { font-size: 12.5vw; }
  /* Phone: a shorter first screen, so the row of images is not lost in empty black. */
  .hband--work { height: max(72svh, 540px); }
  .band__now { display: none; }
}
/* Words for a mouse or for a finger. */
@media (hover: none) { .only-mouse { display: none; } }
@media (hover: hover) { .only-touch { display: none; } }

/* ---------- statement ---------- */
/* The sentence on the left, four facts on the right (each opens its project); no empty screen after it. */
.statement {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); align-items: center;
  gap: 3rem clamp(2rem, 6vw, 7rem); padding: max(2.5rem, calc(16svh - 76px)) var(--gutter) 4svh; /* 76px: about 2 cm less space above */
  margin-bottom: clamp(4rem, 14svh, 9rem); /* room before the crossfader; a margin, so the words light up at the same moment */
}
.facts { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.facts li { border-bottom: 1px solid var(--line); }
.facts__item {
  display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); align-items: center; gap: 1rem;
  padding: 1.1rem 0.5rem; color: inherit; text-decoration: none; transition: background-color 0.3s;
}
.facts__item strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1; color: var(--ember); }
.facts__item span { color: var(--ink-2); font-size: 1rem; line-height: 1.35; transition: color 0.2s; }
.facts__item:hover { background: rgba(255, 91, 46, 0.07); }
.facts__item:hover span { color: var(--ink); }
.statement__text {
  font-size: clamp(1.75rem, 3.4vw, 3.5rem);
  line-height: 1.1; font-weight: 500; letter-spacing: -0.02em;
  max-width: 27ch;
}
.statement__text em { font-style: normal; color: var(--ember); }
.statement .w { display: inline-block; }

/* ---------- ticket ---------- */
.ticket-wrap { padding: 9svh var(--gutter) 18svh; display: grid; justify-items: center; gap: 2.2rem; perspective: 1400px; }
.ticket-wrap__title { font-size: clamp(2rem, 4.4vw, 3.8rem); text-align: center; max-width: 24ch; text-wrap: balance; }
.ticket {
  --stub: 128px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  width: min(1100px, 100%);
  background: var(--paper); color: var(--paper-ink);
  border-radius: 20px;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d; will-change: transform;
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; right: calc(var(--stub) - 15px);
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
}
.ticket::before { top: -15px; }
.ticket::after { bottom: -15px; }
.ticket__main { padding: clamp(24px, 4vw, 56px); display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); }
.ticket__route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); align-items: end; gap: clamp(1rem, 3vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.4rem); border-bottom: 1px solid rgba(22, 18, 14, 0.14); }
.ticket__k, .ticket__grid dt {
  display: block; font-size: 0.7rem; font-stretch: 125%; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #6b6158; margin-bottom: 0.6em;
}
.ticket__city { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 0.95; }
.ticket__sub { display: block; margin-top: 0.6em; font-size: 0.95rem; color: #4f473f; }
.ticket__arrow { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; padding-bottom: 0.3em; color: var(--ember-deep); }
.ticket__grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr 1.6fr; gap: 1.5rem; margin: 0; }
.ticket__grid dd { margin: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.ticket__hl { color: var(--ember-deep); }
.ticket__stub {
  border-left: 2px dashed rgba(22, 18, 14, 0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 28px 0;
}
.ticket__stub span { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: uppercase; letter-spacing: 0.16em; font-stretch: 125%; }
.ticket__admit { font-size: 0.72rem; font-weight: 700; color: var(--ember-deep); }
.ticket__who { font-family: var(--f-display); font-weight: 600; font-size: 1.8rem; letter-spacing: -0.01em !important; }
.ticket__school { font-size: 0.66rem; color: #6b6158; }

/* ---------- work ---------- */
.work-head { padding: 12svh var(--gutter) 2svh; display: grid; gap: 1rem; }

/* work: one card per project, the whole card opens the project page */
.work { padding-bottom: 14svh; }
.pgrid { list-style: none; margin: 5svh 0 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.4rem 2rem; }
.pcard { margin: 0; }
.pcard__link { display: grid; gap: 0.6rem; color: inherit; text-decoration: none; }
.pcard__media {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 0.5rem;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s var(--ease), border-color 0.3s;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 0.9s var(--ease); }
.pcard__badge {
  position: absolute; left: 12px; bottom: 12px; padding: 0.45em 0.85em; border-radius: 999px;
  background: rgba(16, 12, 10, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 0.78rem; font-weight: 600;
}
.pcard__badge span { color: var(--tint, var(--ember)); }
.pcard__label { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.86rem; color: var(--ink-2); }
.pcard__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 2.4vw, 2.5rem); line-height: 1; }
.pcard__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tint, var(--ember)); flex: none; transition: background-color 0.3s; }
.pcard__title { transition: color 0.3s; }
.pcard__arrow { display: inline-block; color: var(--tint, var(--ember)); transition: transform 0.4s var(--ease); }
.pcard__line { color: var(--ink-2); font-size: 1.02rem; max-width: 36ch; }
.pcard__link:hover .pcard__media, .pcard__link:focus-visible .pcard__media { transform: rotate(-1.2deg) translateY(-6px); border-color: var(--tint, var(--ember)); box-shadow: 0 34px 70px -36px var(--tint, var(--ember)); }
/* under the mouse, only the title lights up, in the project's own colour (diginoone yellow, Kalm mint…) */
.pcard__link:hover .pcard__title, .pcard__link:focus-visible .pcard__title { color: var(--tint, var(--ember)); }
.pcard:nth-child(even) .pcard__link:hover .pcard__media, .pcard:nth-child(even) .pcard__link:focus-visible .pcard__media { transform: rotate(1.2deg) translateY(-6px); }
.pcard__link:hover img { transform: scale(1.04); }
.pcard__link:hover .pcard__arrow, .pcard__link:focus-visible .pcard__arrow { transform: translateX(6px); }
.pcard__link:focus-visible { outline: 2px solid var(--tint, var(--ember)); outline-offset: 6px; border-radius: 12px; }
.work__more { padding: 7svh var(--gutter) 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.9rem 2.6rem; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
  .pcard__media { aspect-ratio: 16 / 10; }
}
.work-head__title { font-size: clamp(3rem, 8vw, 8.5rem); }
.chapter-title { font-size: clamp(2.6rem, 5.6vw, 5.8rem); margin: 0.25em 0 0.35em; }
.chapter-title em { color: var(--ember); }

/* pan */
.pan { position: relative; overflow: hidden; }
.pan__inner { display: flex; align-items: center; gap: 5vw; min-height: 100svh; padding: 10svh var(--gutter); width: max-content; will-change: transform; }
.pan__intro { width: min(31rem, 36vw); display: grid; gap: 1.1rem; align-content: center; }
.pan__intro > p:not(.label) { color: var(--ink-2); font-size: 1.1rem; }
.pan__intro .chapter-title { margin: 0; }
.pan__track { display: flex; align-items: center; gap: 3vw; }
.shot { margin: 0; display: grid; gap: 0.8rem; }
.shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); }
.shot figcaption, .cfig figcaption, .steps__photo figcaption { font-size: 0.86rem; color: var(--ink-2); }
.shot--wide { width: min(54vw, 860px); }
.shot--phone { width: min(17vw, 260px); }
.shot--site img { border: 0; border-radius: 0; background: none; }
.scores { list-style: none; margin: 0.6rem 0 0.4rem; padding: 0; display: flex; gap: 2rem; }
.scores li { display: grid; }
.scores strong { font-family: var(--f-display); font-weight: 600; font-size: 3rem; line-height: 0.95; color: var(--ink); }
.scores span { font-size: 0.78rem; color: var(--ink-2); }

/* steps */
.steps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; padding: 14svh var(--gutter); }
.steps__media { position: relative; }
.steps__photo { position: sticky; top: 12svh; margin: 0; display: grid; gap: 0.8rem; }
.steps__photo img { width: 100%; height: 72svh; object-fit: cover; object-position: 50% 45%; border-radius: 8px; }
.steps__body { padding-top: 4svh; }
.steps__intro { font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; margin-bottom: 6svh; }
.steps__list { list-style: none; margin: 0 0 3rem; padding: 0; }
.step { min-height: 34svh; padding: 2.2rem 0 3rem; border-top: 1px solid var(--line); transition: opacity 0.6s var(--ease); }
.js .step { opacity: 0.25; }
.js .step.is-on { opacity: 1; }
.step__year { display: flex; align-items: center; gap: 0.8rem; font-size: 0.86rem; color: var(--ink-2); }
.step h4 { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 0.95; margin: 0.6rem 0 1rem; transition: color 0.6s; }
.step p { font-size: 1.12rem; max-width: 38ch; }
.step--win.is-on h4, .no-js .step--win h4 { color: var(--ember); }
.badge { display: inline-block; padding: 0.35em 0.8em; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-weight: 700; letter-spacing: 0.08em; font-size: 0.72rem; }

/* collage */
.collage { position: relative; min-height: 138svh; padding: 0 var(--gutter); }
.collage__text { position: absolute; z-index: 3; left: 38vw; top: 30svh; width: min(31rem, 34vw); display: grid; gap: 1.1rem; }
.collage__text > p:not(.label) { color: var(--ink-2); font-size: 1.1rem; }
.collage__text .chapter-title { margin: 0; }
.print {
  position: absolute; z-index: 1; margin: 0;
  background: var(--paper); padding: 10px 10px 34px; border-radius: 3px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.print img { width: 100%; height: auto; }
.print--a { left: 4vw; top: 6svh; width: 21vw; rotate: -4deg; }
.print--b { right: 4vw; top: 4svh; width: 28vw; rotate: 2.5deg; }
.print--c { left: 10vw; top: 72svh; width: 17vw; rotate: 3deg; }
.print--d { right: 10vw; top: 78svh; width: 21vw; rotate: -2deg; padding: 22px; }

/* wipe */
.wipe { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 5vw; align-items: center; padding: 16svh var(--gutter); }
.wipe__text { order: 2; display: grid; gap: 1.1rem; }
.wipe__text > p:not(.label) { color: var(--ink-2); font-size: 1.1rem; }
.wipe__text .chapter-title { margin: 0; }
.wipe__screen { order: 1; position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f7f5f2; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9); }
.wipe__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ---------- decks (signature) ---------- */
.decks { --x: 0; position: relative; }
.decks__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.deck { position: absolute; inset: 0; }
.deck--a { background: var(--day); color: var(--paper-ink); }
.deck--b {
  color: var(--ink);
  background: radial-gradient(60% 70% at 25% 40%, rgba(110, 50, 220, 0.35), transparent 70%), var(--night);
  clip-path: inset(0 calc((1 - var(--x)) * 100%) 0 0);
}
.deck--a .deck__img { position: absolute; right: 9vw; bottom: 0; height: 94%; width: auto; max-width: none; mix-blend-mode: multiply; }
.deck--b .deck__img {
  position: absolute; left: 7vw; bottom: 0; height: 94%; width: auto; max-width: none; aspect-ratio: 3 / 4; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent), linear-gradient(0deg, transparent, #000 18%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent), linear-gradient(0deg, transparent, #000 18%); mask-composite: intersect;
}
.decks__edge {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--x) * 100%); width: 2px; margin-left: -1px;
  background: var(--ember); box-shadow: 0 0 24px 4px rgba(255, 91, 46, 0.55);
  opacity: calc(min(var(--x), 1 - var(--x)) * 20);
}
.deck__copy { position: absolute; z-index: 2; left: var(--gutter); top: 18svh; max-width: 24rem; display: grid; gap: 0.9rem; }
.deck--b .deck__copy { left: auto; right: var(--gutter); text-align: right; justify-items: end; }
.deck__label { font-size: 0.75rem; font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.deck--a .deck__label { color: #6b6158; }
.deck--b .deck__label { color: #c9b8ff; }
.deck__line { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.2; }
.decks__name {
  position: absolute; z-index: 3; left: 0; right: 0; top: 50%;
  translate: 0 -55%;
  display: flex; justify-content: center; align-items: baseline;
  font-size: min(15vw, 28svh); line-height: 0.8; margin: 0;
  color: #fff; mix-blend-mode: difference; pointer-events: none; white-space: nowrap;
}
.nm-gap { display: inline-block; width: calc(var(--x) * 0.22em); }
.nm-swap { display: inline-grid; }
.nm-swap > span { grid-area: 1 / 1; text-align: center; }
.nm-a { opacity: clamp(0, calc((0.56 - var(--x)) * 8), 1); }
.nm-o { opacity: clamp(0, calc((var(--x) - 0.44) * 8), 1); }
.nm-e { display: inline-block; overflow: hidden; max-width: calc(var(--x) * 0.68em); opacity: var(--x); }
.decks__cta {
  position: absolute; z-index: 6; left: 50%; top: calc(50% + min(15vw, 28svh) * 0.36 + 26px); translate: -50% 0;
  min-height: 58px; padding: 0 1.9em; font-size: 1.08rem;
  box-shadow: 0 16px 44px -10px rgba(255, 91, 46, 0.7);
}
.js .decks__cta { opacity: 0; visibility: hidden; }
.decks__mid {
  position: absolute; z-index: 4; left: 50%; bottom: calc(7svh + 84px);
  translate: -50% 0; width: min(34rem, 86vw); text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 600; line-height: 1.35;
  color: #fff; opacity: 0;
  padding: 0.8em 1.3em; border-radius: 18px;
  background: rgba(16, 12, 10, 0.66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.fader {
  position: absolute; z-index: 5; left: 50%; bottom: 7svh; translate: -50% 0;
  display: flex; align-items: center; gap: 14px;
  padding: 6px 18px; border-radius: 999px;
  background: rgba(16, 12, 10, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.fader__end { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.fader__input { -webkit-appearance: none; appearance: none; width: min(340px, 56vw); height: 48px; margin: 0; background: transparent; cursor: grab; touch-action: none; }
.fader__input:active { cursor: grabbing; }
.fader__input::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 10%), rgba(255, 255, 255, 0.16);
}
.fader__input::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.fader__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 40px; margin-top: -17px; border-radius: 4px; border: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(22, 12, 8, 0.65) 45% 55%, transparent 55%), var(--ember);
  box-shadow: 0 6px 18px rgba(255, 91, 46, 0.45);
}
.fader__input::-moz-range-thumb {
  width: 22px; height: 40px; border-radius: 4px; border: 0;
  background: linear-gradient(90deg, transparent 45%, rgba(22, 12, 8, 0.65) 45% 55%, transparent 55%), var(--ember);
  box-shadow: 0 6px 18px rgba(255, 91, 46, 0.45);
}
.fader__input:focus-visible { outline: none; }
.fader__input:focus-visible::-webkit-slider-thumb { outline: 2px solid #fff; outline-offset: 3px; }
.fader__input:focus-visible::-moz-range-thumb { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- cv ---------- */
.cv { padding: 18svh var(--gutter) 6svh; }
.cv__head, .langs__head, .host__head { display: grid; gap: 1rem; margin-bottom: 7svh; }
.cv__title, .langs__title, .host__title { font-size: clamp(2.6rem, 6vw, 6.2rem); }
.cv__title em, .langs__title em, .host__title em { color: var(--ember); }
.cv__group { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 9.6fr); gap: 2rem; padding: 2.6rem 0 1rem; border-top: 1px solid var(--line); }
.cv__group-title { font-size: 0.8rem; font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; padding-top: 1.35rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 9.5rem minmax(0, 1.1fr) minmax(0, 1.5fr); gap: 1.5rem; padding: 1.25rem 0.6rem; border-bottom: 1px solid var(--line); transition: background-color 0.3s; }
.row:hover { background: rgba(255, 91, 46, 0.06); }
.row__when { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row__what strong { display: block; font-weight: 650; font-size: 1.12rem; }
.row__what span { color: var(--ink-2); }
.row__desc { color: var(--ink); }

/* ---------- langs ---------- */
.langs { padding: 14svh var(--gutter); }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem; }
.meter { display: grid; grid-template-columns: minmax(9rem, 15rem) 7.5rem minmax(0, 1fr); align-items: center; gap: 1.5rem; }
.meter__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 0.95; }
.meter__level { font-weight: 700; font-size: 1.05rem; }
.meter__bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.seg { position: relative; height: 48px; border-radius: 5px; background: rgba(243, 237, 228, 0.07); transition: background-color 0.45s var(--ease) calc(var(--i, 0) * 140ms); }
.seg span { position: absolute; left: 9px; bottom: 7px; font-size: 0.72rem; font-weight: 600; color: var(--ink-3); transition: color 0.45s calc(var(--i, 0) * 140ms); }
.seg--on { background: var(--ember); }
.seg--on span { color: var(--ember-ink); }
.js .meters:not(.is-lit) .seg--on { background: rgba(243, 237, 228, 0.07); }
.js .meters:not(.is-lit) .seg--on span { color: var(--ink-3); }
.langs__note { margin: 3rem 0 0; max-width: 46ch; font-size: 1.15rem; color: var(--ink-2); }
.tools { margin-top: 8svh; padding-top: 2.4rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 9.6fr); gap: 2rem; }
.tools__title { font-size: 0.8rem; font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; padding-top: 0.6rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li { padding: 0.55em 1.05em; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; }
.tools__also { grid-column: 2; color: var(--ink-2); }

/* ---------- host ---------- */
.host { padding: 14svh var(--gutter); }
.host__lede { font-size: 1.2rem; color: var(--ink-2); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.card { background: var(--bg); padding: clamp(1.4rem, 2.6vw, 2.4rem); min-height: 13rem; display: grid; align-content: start; gap: 0.9rem; transition: background-color 0.3s; }
.card:hover { background: var(--bg-2); }
.card h3 { font-size: 0.78rem; font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); font-weight: 600; }
.card p { font-size: 1.12rem; line-height: 1.45; }
/* About, told as a path: one line from 2020 to the internship, each step lights up on scroll. */
.aa-k { margin: 0 0 0.9rem; font-family: var(--f-text); font-size: 0.86rem; font-weight: 500; color: var(--ink-2); }
.aa-also { margin: 1rem 0 0; color: var(--ink-2); }
.ab-a section { scroll-margin-top: 90px; }

/* level bar: six blocks A1 → C2, lit when the row lights up */
.lvs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.lv { position: relative; height: 40px; border-radius: 5px; background: rgba(243, 237, 228, 0.07); transition: background-color 0.45s var(--ease) calc(var(--i, 0) * 120ms); }
.lv span { position: absolute; left: 8px; bottom: 6px; font-size: 0.7rem; font-weight: 600; color: var(--ink-3); transition: color 0.45s calc(var(--i, 0) * 120ms); }
html:not(.js) .lv--on, .is-on .lv--on { background: var(--ember); }
html:not(.js) .lv--on span, .is-on .lv--on span { color: var(--ember-ink); }

.aa-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end;
  gap: clamp(2rem, 5vw, 6rem); padding: 118px var(--gutter) 6svh; min-height: 92svh;
}
.aa-hero__text { display: grid; justify-items: start; gap: 1.3rem; padding-bottom: 4svh; }
.aa-hero__title { font-size: clamp(4rem, 12vw, 12.5rem); line-height: 0.86; margin: 0; }
.aa-hero__lede { font-size: clamp(1.2rem, 1.9vw, 1.75rem); line-height: 1.3; font-weight: 500; max-width: 28ch; margin: 0; }
.aa-hero__photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 80svh; justify-self: end; width: 100%; background: var(--bg-2); box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9); }
.aa-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.aa-status {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65em 0.95em; border-radius: 14px; font-size: 0.85rem; font-weight: 600;
  background: rgba(11, 10, 9, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.aa-head { display: grid; gap: 0.9rem; justify-items: start; margin-bottom: 7svh; }
.aa-h2 { font-size: clamp(2.8rem, 7vw, 7rem); margin: 0; }
.aa-sub { margin: 0; color: var(--ink-2); font-size: 1.1rem; }

.aa-path { padding: 14svh var(--gutter) 6svh; }
.aa-path .aa-head { justify-items: center; text-align: center; }
.aa-line { list-style: none; margin: 0 auto; padding: 0; max-width: 1240px; }
.aa-step {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  align-items: start; padding-bottom: 7svh;
}
/* the line: each step owns its piece, which turns orange when the step lights up */
.aa-step::before {
  content: ""; position: absolute; left: 50%; top: 10px; bottom: -10px; width: 2px; margin-left: -1px;
  background: var(--line); transition: background-color 0.6s var(--ease);
}
.aa-step:last-child::before { display: none; }
.aa-step__dot {
  grid-column: 2; grid-row: 1; justify-self: center; margin-top: 4px; position: relative; z-index: 1;
  width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.6s;
}
.aa-step__card {
  grid-row: 1; grid-column: 1; padding: 1.5rem 1.7rem 1.6rem; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  opacity: 0.38; translate: 0 14px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease), border-color 0.6s;
}
.aa-step__pic {
  grid-row: 1; grid-column: 3; display: block; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3;
  width: 100%; max-width: 440px; rotate: 1.6deg; opacity: 0.38; transition: rotate 0.5s var(--ease), opacity 0.6s var(--ease);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.aa-step__pic--tall { aspect-ratio: 3 / 4; max-width: 330px; }
.aa-step__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.aa-step__pic--tall img { object-position: 50% 20%; }
.aa-step__pic:hover { rotate: 0deg; }
.aa-step:nth-child(even) .aa-step__card { grid-column: 3; }
.aa-step:nth-child(even) .aa-step__pic { grid-column: 1; justify-self: end; rotate: -1.6deg; }
.aa-step:nth-child(even) .aa-step__pic:hover { rotate: 0deg; }

.aa-step.is-on::before { background: var(--ember); }
.aa-step.is-on .aa-step__dot { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 7px rgba(255, 91, 46, 0.18); }
.aa-step.is-on .aa-step__card { opacity: 1; translate: 0 0; border-color: rgba(243, 237, 228, 0.22); }
.aa-step.is-on .aa-step__pic { opacity: 1; }
html:not(.js) .aa-step__card, html:not(.js) .aa-step__pic { opacity: 1; translate: 0 0; }

.aa-step__when { margin: 0 0 0.7rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--ember); }
.aa-step__kind { font-family: var(--f-text); font-size: 0.8rem; font-weight: 500; color: var(--ink-2); padding: 0.3em 0.7em; border: 1px solid var(--line); border-radius: 999px; }
.aa-step__role { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -0.01em; }
.aa-step__where { margin: 0.35rem 0 0.8rem; color: var(--ink-2); font-weight: 500; }
.aa-step__desc { margin: 0; line-height: 1.5; max-width: 46ch; }
.aa-step--next .aa-step__card { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); }
.aa-step--next .aa-step__when, .aa-step--next .aa-step__kind { color: var(--ember-ink); border-color: rgba(22, 12, 8, 0.3); }
.aa-step--next .btn { margin-top: 1.2rem; background: var(--ember-ink); color: var(--ember); border-color: var(--ember-ink); }

.aa-langs { padding: 12svh var(--gutter) 8svh; }
.aa-langs__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.aa-lang {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.9fr) clamp(8rem, 21vw, 19.5rem); align-items: center;
  gap: clamp(1rem, 3vw, 3rem); padding: 2.2rem 0; border-top: 1px solid var(--line);
}
.aa-lang__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.95; }
.aa-lang__level { grid-column: 3; grid-row: 1; font-size: clamp(2.8rem, 6vw, 5.8rem); color: var(--ink-3); transition: color 0.6s var(--ease); min-width: 2.2ch; text-align: right; }
.aa-lang .lvs { grid-column: 2; grid-row: 1; }
.aa-lang.is-on .aa-lang__level, html:not(.js) .aa-lang__level { color: var(--ember); }
.aa-note { margin: 2rem 0 0; max-width: 52ch; font-size: 1.15rem; line-height: 1.5; }
.aa-tools { margin-top: 6svh; }

.aa-host { padding: 12svh var(--gutter) 6svh; }
.aa-host__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 3rem) clamp(1.4rem, 3vw, 3rem); }
.aa-host__list li { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.aa-host__n { display: block; font-size: clamp(3rem, 5vw, 4.6rem); color: transparent; -webkit-text-stroke: 1.5px var(--ember); margin-bottom: 0.8rem; }
.aa-host__list h3 { margin: 0 0 0.5rem; font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.aa-host__list p { margin: 0; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 900px) {
  .aa-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 104px; }
  .aa-hero__text { padding-bottom: 0; }
  .aa-hero__photo { justify-self: stretch; max-height: 70svh; }
  .aa-path .aa-head { justify-items: start; text-align: left; }
  .aa-step { grid-template-columns: 30px minmax(0, 1fr); column-gap: 0.9rem; padding-bottom: 5svh; }
  .aa-step::before { left: 15px; }
  .aa-step__dot { grid-column: 1; }
  .aa-step__card, .aa-step:nth-child(even) .aa-step__card { grid-column: 2; }
  .aa-step__pic, .aa-step:nth-child(even) .aa-step__pic { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 0.9rem; max-width: 100%; }
  .aa-step__pic--tall, .aa-step:nth-child(even) .aa-step__pic--tall { max-width: 78%; }
  .aa-lang { grid-template-columns: minmax(0, 1fr) auto; row-gap: 1rem; padding: 1.6rem 0; }
  .aa-lang__level { grid-column: 2; }
  .aa-lang .lvs { grid-column: 1 / -1; grid-row: 2; }
  .aa-host__list { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact { padding: 18svh var(--gutter) 8svh; display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 0.42fr); column-gap: clamp(2rem, 6vw, 6.5rem); }
.contact > * { grid-column: 1; }
.contact > .contact__title { grid-column: 1 / -1; }
.contact__photo { grid-column: 2; grid-row: 3 / span 3; align-self: start; position: relative; isolation: isolate; margin: 0.4rem 0.6rem 0 0; rotate: 2deg; }
.contact__photo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 22px; background: var(--ember); rotate: -7deg; scale: 0.97; }
.contact__photo img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.contact__sticker {
  position: absolute; left: -1.4rem; bottom: 2.2rem; rotate: -7deg;
  padding: 0.55em 1.1em; border-radius: 999px; background: var(--paper); color: var(--paper-ink);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.25rem);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
}
.contact__title { font-size: clamp(3.4rem, 11vw, 11.5rem); line-height: 0.92; margin: 0.15em 0 0.2em; }
.contact__lede { font-size: clamp(1.15rem, 1.8vw, 1.5rem); max-width: 34ch; }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact__list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1rem; align-items: baseline; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__k { font-size: 0.86rem; color: var(--ink-2); }
.contact__v { font-size: clamp(1.25rem, 2.6vw, 2.3rem); font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact__v a, a.contact__v, .contact__mini { text-decoration: none; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 2px no-repeat; transition: background-size 0.45s var(--ease); }
.contact__v a:hover, a.contact__v:hover, .contact__mini:hover { background-size: 100% 2px; }
.contact__mini { font-size: 0.5em; font-weight: 600; margin-left: 0.8em; color: var(--ember); vertical-align: middle; }
.contact__cv { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem var(--gutter) 2.4rem; color: var(--ink-3); font-size: 0.85rem; border-top: 1px solid var(--line); }
.foot__nav { flex-basis: 100%; display: flex; gap: 1.6rem; margin-bottom: 0.6rem; }
.foot__nav a { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.foot__nav a:hover { color: var(--ink); }

/* ---------- case pages ---------- */
/* The top of a project page (and of About): one coloured panel per page,
   the words on the left, the picture, film or website on the right, the facts underneath. */
.case-hero { padding: 76px 12px 0; }
.case-hero__stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: 1fr auto;
  column-gap: clamp(2rem, 5vw, 5.5rem); row-gap: 2.2rem;
  min-height: calc(100svh - 88px);
  padding: clamp(1.6rem, 3.4vw, 3.4rem);
  border-radius: 28px;
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(255, 255, 255, 0.24), transparent 55%),
    radial-gradient(90% 90% at 100% 100%, rgba(0, 0, 0, 0.2), transparent 60%),
    var(--accent, var(--ember));
  color: var(--on-accent, var(--ember-ink));
}
.case-hero--tall .case-hero__stage { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
.case-hero__text { grid-column: 1; grid-row: 1; display: grid; align-content: center; justify-items: start; gap: 1.1rem; }
.case-hero__media { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 0; }
.case-hero .label, .case-hero .back, .case-meta dt { color: color-mix(in srgb, var(--on-accent, #000) 70%, transparent); }
.case-hero .back { margin-bottom: 1svh; }
.case-hero .back:hover { color: var(--on-accent); }
.back { justify-self: start; display: inline-flex; gap: 0.5em; text-decoration: none; color: var(--ink-2); font-weight: 500; margin-bottom: 2svh; }
.back:hover { color: var(--ink); }
.case-title { font-size: clamp(3rem, 6.6vw, 7.4rem); margin: 0.05em 0 0.1em; }
.case-hero--tall .case-title { font-size: clamp(3.2rem, 8vw, 9rem); }
.case-title em { color: var(--hero-em, var(--ember)); }
.case-lede { font-size: clamp(1.2rem, 1.9vw, 1.8rem); line-height: 1.28; max-width: 28ch; font-weight: 500; }
.case-chips { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case-chips li { padding: 0.5em 1em; border-radius: 999px; font-weight: 600; font-size: 0.95rem; background: color-mix(in srgb, var(--on-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent); }
.case-meta { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.2rem 2rem; margin: 0; padding-top: 1.4rem; border-top: 1px solid color-mix(in srgb, var(--on-accent, #000) 28%, transparent); }
.case-meta dt { font-size: 0.86rem; margin-bottom: 0.4rem; }
.case-meta dd { margin: 0; font-weight: 600; }
.case-meta a { color: inherit; text-decoration-color: currentColor; text-underline-offset: 4px; }
/* what sits on the right of the panel */
.case-cover { margin: 0; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 16 / 10; background: rgba(0, 0, 0, 0.25); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.7); }
.case-hero--tall .case-cover { aspect-ratio: 4 / 5; max-height: calc(100svh - 88px - 2 * clamp(1.6rem, 3.4vw, 3.4rem)); margin-left: auto; }
.case-cover img, .case-cover video { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-cover--photo img { object-position: 50% 18%; }
.page-dw .case-cover img { object-position: 50% 42%; }
.page-dj .case-cover video { object-position: 50% 20%; }
.page-ai .case-cover img { object-position: top left; }
.case-cover figcaption { position: absolute; left: 1rem; bottom: 0.9rem; color: var(--ink); font-size: 0.86rem; padding: 0.45em 0.8em; border-radius: 999px; background: rgba(11, 10, 9, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.case-hero__media .site-frame__link { border-color: rgba(0, 0, 0, 0.25); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75); }
.case-hero__media .site-frame__link:hover, .case-hero__media .site-frame__link:focus-visible { border-color: var(--on-accent); }
.case-hero__media .film video { border: 0; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75); }
.case-hero__media .film--vertical { width: min(21rem, 100%); margin-left: auto; }
.case-hero__media .film--vertical video { max-height: calc(100svh - 200px); }
.case-hero .case-hero__media figcaption { color: color-mix(in srgb, var(--on-accent, #000) 75%, transparent); }
.case-hero .case-hero__media .case-cover figcaption { color: var(--ink); }
.case-hero__media .site-frame__link:focus-visible, .case-hero__media .film__play:focus-visible { outline-color: var(--on-accent); }
.case-body { padding: 10svh var(--gutter) 4svh; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4svh; }
.cblock { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 4rem; padding-top: 2.4rem; border-top: 1px solid var(--line); position: relative; }
.case .cblock::before, .case .cstats::before { content: ""; position: absolute; left: 0; top: -1px; width: 3.2rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--tint, var(--ember)); }
.cstats { position: relative; }
.case-body .display em, .case-body .cblock__h em { color: var(--tint, var(--ember)); }
.cblock__h { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 0.92; }
.prose { display: grid; gap: 1.1rem; }
.prose p, .ticks li { font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.55; max-width: 40em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.ticks li { padding: 0.7rem 0 0.7rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.7rem; height: 2px; background: var(--tint, var(--ember)); }
.social { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.6rem; }
.cstats { display: grid; gap: 2rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.cstats .cblock__h { font-family: var(--f-text); font-stretch: 125%; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--ink-2); font-weight: 600; }
.cstats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.cstats__list li { display: grid; gap: 0.6rem; align-content: start; }
.cstats__list strong { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 0.95; color: var(--tint, var(--ember)); }
.cstats__list span { color: var(--ink-2); max-width: 22ch; }
.cstats__note { font-size: 0.85rem; color: var(--ink-3); }
.cgallery { display: grid; gap: 1.4rem; }
.cgallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.cgallery--three { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.cgallery--phone { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: end; }
.cfig { margin: 0; display: grid; gap: 0.8rem; }
.cfig img, .cfig video { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.cfig--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.cfig--light img { background: var(--paper); padding: 12%; object-fit: contain; }
.cfig--big img { max-height: 80svh; object-fit: cover; object-position: top; }
/* In a project page, photos, galleries and site captures keep a comfortable size instead of filling the screen. */
.case-body .cmedia, .case-body .cgallery--two { width: 100%; max-width: 760px; justify-self: center; }
.case-body .csite { width: 100%; max-width: 920px; justify-self: center; }
.case-body .cgallery--three, .case-body .cgallery--phone { width: 100%; max-width: 960px; justify-self: center; }
/* Marketing Day: the team photo and the logo a bit bigger. */
.page-md .case-body .cgallery--two { max-width: 1120px; }

.collage__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; }
.arrow-link__meta { color: var(--ink-2); font-weight: 500; }

/* live site in a browser window: the whole window opens the real site */
.site-frame { margin: 0; display: grid; gap: 0.8rem; }
.site-frame__link {
  display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line);
  background: #1a1714; color: var(--ink); text-decoration: none;
  box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.95);
  transition: transform 0.6s var(--ease), border-color 0.3s, box-shadow 0.6s var(--ease);
}
.site-frame__bar { display: flex; align-items: center; gap: 1rem; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.site-frame__dots { display: flex; gap: 6px; flex: 1; }
.site-frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(243, 237, 228, 0.18); }
.site-frame__url { flex: 0 1 22rem; text-align: center; padding: 0.35em 1em; border-radius: 999px; background: rgba(243, 237, 228, 0.07); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-frame__open { flex: 1; text-align: right; color: var(--ink-2); white-space: nowrap; transition: color 0.3s; }
.site-frame__link img { display: block; width: 100%; height: auto; transition: transform 0.9s var(--ease); }
.site-frame__link:hover, .site-frame__link:focus-visible { border-color: rgba(255, 91, 46, 0.55); transform: translateY(-6px); box-shadow: 0 50px 100px -45px rgba(0, 0, 0, 1); }
.site-frame__link:hover .site-frame__open, .site-frame__link:focus-visible .site-frame__open { color: var(--tint, var(--ember)); }
.site-frame__link:hover img { transform: scale(1.012); }
.site-frame__link:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.site-frame figcaption, .film figcaption { font-size: 0.86rem; color: var(--ink-2); }

/* a film to watch with sound */
.film { position: relative; margin: 0; display: grid; gap: 0.8rem; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); background: #000; }
.film__play { display: none; }
.film.is-ready .film__play {
  position: absolute; left: 50%; top: calc(50% - 0.9rem); translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.85em 1.4em 0.85em 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(16, 12, 10, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.film__icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--tint, var(--ember)); position: relative; flex: none; }
.film__icon::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 0.45rem 0 0.45rem 0.75rem; border-color: transparent transparent transparent #fff; }
.film__len { color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.film.is-ready .film__play:hover { background: rgba(16, 12, 10, 0.8); transform: scale(1.04); }
.film.is-ready .film__play:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.film.is-playing .film__play { display: none; }
.film--vertical { width: min(26rem, 100%); margin-inline: auto; }
.film--vertical video { aspect-ratio: 9 / 16; border-radius: 18px; }

/* reel: Marketing Day, a vertical clip with a print of the team */
.reel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: center; padding: 14svh var(--gutter) 18svh; }
.reel__text { display: grid; gap: 1.1rem; max-width: 34rem; justify-self: end; }
.reel__text > p:not(.label) { color: var(--ink-2); font-size: 1.1rem; }
.reel__text .chapter-title { margin: 0; }
.reel__media { position: relative; justify-self: start; padding: 0 0 6svh 8vw; }
.reel__phone { margin: 0; width: min(23rem, 26vw); rotate: 2deg; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 50px 90px -45px rgba(0, 0, 0, 0.95); }
.reel__phone video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.reel__print { position: absolute; z-index: 2; left: 0; bottom: 0; width: min(19rem, 20vw); rotate: -4deg; }
.cquote { padding: 6svh 0; border-top: 1px solid var(--line); }
.cquote p.display { font-size: clamp(2.2rem, 6vw, 5.8rem); }
.cquote p.display em { color: var(--tint, var(--ember)); }
.cquote__by { margin-top: 1.2rem; color: var(--ink-2); }
.case-next { padding: 12svh var(--gutter) 6svh; border-top: 1px solid var(--line); margin-top: 8svh; display: grid; gap: 1rem; }
.case-next__link { font-size: clamp(2.4rem, 7.5vw, 7.2rem); text-decoration: none; transition: color 0.3s; }
.case-next__link:hover { color: var(--tint, var(--ember)); }
.case-next__link span { display: inline-block; transition: transform 0.4s var(--ease); }
.case-next__link:hover span { transform: translateX(0.12em); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ticket__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-frame__bar { height: 34px; padding: 0 12px; font-size: 0.75rem; }
  .site-frame__open-txt { display: none; }
  .site-frame__dots i { width: 8px; height: 8px; }
  .film.is-ready .film__play { top: 50%; padding: 0.6em 1.1em 0.6em 0.6em; font-size: 0.9rem; }
  .film__icon { width: 2rem; height: 2rem; }
  .nav__links { display: none; }
  .nav { display: flex; justify-content: space-between; gap: 0.5rem; }
  .btn { min-height: 46px; }

  .hero { height: auto; padding: 64px 8px 8px; }
  .hero__stage {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "who" "title" "copy" "media";
    row-gap: 18px; padding: 20px 16px 18px; border-radius: 22px;
  }
  .hero__who { font-size: 0.95rem; }
  .hero__media { width: min(100%, calc(62svh * 0.8)); justify-self: center; border-radius: 14px; margin-top: 6px; }
  .hero__line { font-size: 11.2cqw; }
  .hero__copy { margin-top: 0; gap: 1rem; }
  .hero__lede { font-size: 1.05rem; }

  .statement { grid-template-columns: minmax(0, 1fr); padding: 12svh var(--gutter) 2svh; gap: 2.4rem; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .facts__item { grid-template-columns: 1fr; gap: 0.35rem; padding: 1rem 0; }

  .ticket { grid-template-columns: 1fr; --stub: 0px; }
  .ticket::before, .ticket::after { display: none; }
  .ticket__route { grid-template-columns: 1fr; gap: 1.2rem; }
  .ticket__arrow { transform: rotate(90deg); justify-self: start; padding: 0; }
  .ticket__stub { border-left: 0; border-top: 2px dashed rgba(22, 18, 14, 0.25); flex-direction: row; padding: 16px 24px; }
  .ticket__stub span { writing-mode: horizontal-tb; transform: none; }
  .ticket__who { font-size: 1.3rem; }

  .pan { overflow: visible; }
  .pan__inner { display: grid; width: auto; min-height: 0; padding: 8svh 0; gap: 2rem; }
  .pan__intro { width: auto; padding: 0 var(--gutter); }
  .pan__track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; gap: 1rem; scrollbar-width: none; align-items: start; }
  .ticket-wrap { padding-bottom: 10svh; }
  .work-head { padding-top: 8svh; }
  .pan__track::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; flex: none; }
  .shot--wide { width: 84vw; }
  .shot--phone { width: 46vw; }

  .steps { grid-template-columns: 1fr; padding-top: 10svh; }
  .steps__photo { position: relative; top: 0; }
  .steps__photo img { height: 56svh; }
  .step { min-height: 0; padding: 1.8rem 0 2.2rem; }

  .collage { min-height: 0; padding: 10svh var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .collage__text { position: static; width: auto; grid-column: 1 / -1; margin-bottom: 2rem; }
  .print { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .print--b { grid-column: 1 / -1; }

  .reel { grid-template-columns: 1fr; gap: 3rem; padding: 8svh var(--gutter) 10svh; }
  .reel__text { justify-self: stretch; max-width: none; }
  .reel__media { justify-self: center; padding: 0 0 10vw 12vw; }
  .reel__phone { width: min(66vw, 20rem); }
  .reel__print { position: absolute; left: 0; bottom: 0; width: 46vw; }

  .wipe { grid-template-columns: 1fr; padding: 10svh var(--gutter); }
  .wipe__text { order: 1; }
  .wipe__screen { order: 2; }

  .deck--a .deck__img { right: -6vw; height: 74%; }
  .deck__copy { top: 13svh; right: var(--gutter); }
  .decks__name { font-size: 16vw; top: 66%; }
  .deck--b .deck__img { left: 50%; translate: -42% 0; height: 86%; }
  .decks__mid { bottom: calc(5svh + 78px); }
  .fader { bottom: 5svh; }

  .cv__group, .tools { grid-template-columns: 1fr; gap: 0.6rem; }
  .cv__group-title { padding-top: 0; }
  .tools__also { grid-column: 1; }
  .row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.2rem 0; }
  .meter { grid-template-columns: 1fr auto; gap: 0.8rem 1rem; }
  .meter__bar { grid-column: 1 / -1; }
  .seg { height: 40px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .contact__list li { grid-template-columns: 1fr; gap: 0.3rem; }

  .cblock { grid-template-columns: 1fr; }
  .cgallery--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgallery--three .cfig:first-child { grid-column: 1 / -1; }
  .cgallery--two { grid-template-columns: 1fr; }
  .case-hero { padding: 72px 8px 0; }
  .case-hero__stage, .case-hero--tall .case-hero__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; padding: 1.3rem 1.2rem 1.6rem; border-radius: 22px; row-gap: 1.8rem; }
  .case-hero__text, .case-hero__media, .case-meta { grid-column: 1; grid-row: auto; }
  .case-hero__text { gap: 0.8rem; }
  .case-title, .case-hero--tall .case-title { font-size: clamp(2.8rem, 15vw, 5.4rem); }
  .case-hero--tall .case-cover { max-height: 70svh; width: 100%; }
  .case-hero__media .film--vertical { width: min(78%, 20rem); margin-inline: auto; }

  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__photo { grid-column: 1; grid-row: auto; width: min(72%, 22rem); justify-self: center; margin: 1.5rem 0 1rem; }
  .contact__sticker { left: -1rem; bottom: 1.4rem; }

  .decks__cta { top: calc(66% + 16vw * 0.36 + 18px); min-height: 52px; font-size: 1rem; }
}

@media (max-width: 520px) {
  .nav { padding-top: 10px; padding-bottom: 10px; }
  .nav__name { font-size: 1.15rem; }
  .nav__end { gap: 0.5rem; }
  .nav__start { gap: 0.5rem; }
  .nav.is-scrolled .nav__start { padding-left: 12px; }
  .nav__back { padding: 0.4em 0.75em; font-size: 0.8rem; }
  .nav__back-long { display: none; }
  .nav__back-short { display: inline; }
}
@media (max-width: 420px) {
  .nav { padding-left: 10px; padding-right: 10px; }
  .nav__name { font-size: 1rem; }
  .nav__start { gap: 0.4rem; }
  .nav.is-scrolled .nav__start { padding-left: 10px; }
  .nav__end { gap: 0.35rem; padding: 4px; }
  .lang a, .lang span { padding: 0.3em 0.5em; }
  .nav__end .btn--small { padding-left: 0.9em; padding-right: 0.9em; }
  .ticket__grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .ticket__grid > div:last-child { grid-column: 1 / -1; }
  .scores { gap: 1.4rem; }
  .scores strong { font-size: 2.8rem; }
  .cgallery--phone { grid-template-columns: 1fr; }
  .cgallery--phone .cfig--phone { width: 60%; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .step { opacity: 1; }
  .js .meters:not(.is-lit) .seg--on { background: var(--ember); }
  .js .meters:not(.is-lit) .seg--on span { color: var(--ember-ink); }
}
/* No pinned pan without motion (or without JS): the shots wrap instead of being cut off. */
@media (prefers-reduced-motion: reduce) and (min-width: 901px) {
  .pan { overflow: visible; }
  .pan__inner { width: auto; flex-wrap: wrap; align-items: start; min-height: 0; }
  .pan__intro { width: 100%; max-width: 40rem; }
  .pan__track { flex-wrap: wrap; align-items: start; }
}
@media (min-width: 901px) {
  html:not(.js) .pan { overflow: visible; }
  html:not(.js) .pan__inner { width: auto; flex-wrap: wrap; align-items: start; min-height: 0; }
  html:not(.js) .pan__intro { width: 100%; max-width: 40rem; }
  html:not(.js) .pan__track { flex-wrap: wrap; align-items: start; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 72svh; display: grid; place-content: center; justify-items: center; gap: 1.1rem; text-align: center; padding: 9rem var(--gutter) 4rem; }
.notfound .display { font-size: clamp(2.2rem, 6vw, 4.6rem); max-width: 16ch; text-wrap: balance; }
.notfound p { color: var(--ink-2); font-size: 1.1rem; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.8rem; }
