/* ==========================================================================
   Jyun — portfolio
   Two universes: 3D (electric blue, chrome) and Design (paper, blue ink)
   ========================================================================== */

@font-face { font-family: 'Celias'; src: url('../fonts/celias-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Celias'; src: url('../fonts/celias-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Celias'; src: url('../fonts/celias-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Celias'; src: url('../fonts/celias-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Celias'; src: url('../fonts/celias-700.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Celias'; src: url('../fonts/celias-900.woff2') format('woff2'); font-weight: 800 900; font-style: normal; font-display: swap; }

:root {
  /* palette: --blue is the ink/accent, --bg-1..4 the 3D universe gradient (centre to edge) */
  --blue: #1a24ff;
  --bg-1: #2b36ff;
  --bg-2: #1a24ff;
  --bg-3: #1019d6;
  --bg-4: #0a0f9e;
  --blue-2: #2b36ff;
  --blue-deep: #0a0f9e;
  --ink: #05061a;
  --ink-2: #0b0d2b;
  --paper: #efede6;
  --paper-2: #e6e3da;
  --white: #ffffff;

  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.62);
  --fg-faint: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-hi: rgba(255, 255, 255, 0.92);
  --glass-hi-fg: var(--blue);

  --gutter: clamp(16px, 2.4vw, 40px);
  --hud-top: clamp(16px, 2.2vw, 34px);
  --radius: 999px;

  --f-sans: 'Celias', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'Celias', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.83, 0, 0.17, 1);

  color-scheme: dark;
}

html[data-palette='klein'] { --blue: #002fa7; --bg-1: #1442c6; --bg-2: #002fa7; --bg-3: #00248a; --bg-4: #00155c; }
html[data-palette='marine'] { --blue: #14267a; --bg-1: #22378f; --bg-2: #14267a; --bg-3: #0c1a5c; --bg-4: #050d33; }
html[data-palette='nuit'] { --blue: #2a35ff; --bg-1: #161c48; --bg-2: #0c1130; --bg-3: #070a20; --bg-4: #020309; }

html[data-universe='design'] {
  --fg: var(--blue);
  --fg-dim: color-mix(in srgb, var(--blue) 62%, transparent);
  --fg-faint: color-mix(in srgb, var(--blue) 18%, transparent);
  --glass: color-mix(in srgb, var(--blue) 6%, transparent);
  --glass-border: color-mix(in srgb, var(--blue) 22%, transparent);
  --glass-hi: var(--blue);
  --glass-hi-fg: var(--paper);
  color-scheme: light;
}

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

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg-2);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: color 0.8s var(--ease-io);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
/* the work can't be saved from a right click or a long press, nor dragged out (as on Behance): pictures let the
   pointer through to what is under them, so the menu that opens is the page's own, without « save image as » */
img, video:not([controls]) { pointer-events: none; -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
svg { fill: currentColor; }
::selection { background: var(--white); color: var(--blue); }

:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Background
   -------------------------------------------------------------------------- */

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-layer { position: absolute; inset: 0; }

.bg-blue {
  background:
    radial-gradient(120% 90% at 50% 45%, var(--bg-1) 0%, var(--bg-2) 38%, var(--bg-3) 70%, var(--bg-4) 100%);
}

.bg-paper {
  background: radial-gradient(130% 100% at 50% 40%, #f4f2ec 0%, var(--paper) 55%, var(--paper-2) 100%);
  clip-path: circle(0% at var(--wipe-x, 10%) var(--wipe-y, 92%));
}

.bg-grid {
  --cell: clamp(56px, 6.2vw, 96px);
  background-image:
    linear-gradient(to right, var(--grid-line, rgba(255, 255, 255, 0.075)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line, rgba(255, 255, 255, 0.075)) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: calc(50% + var(--grid-x, 0px)) calc(50% + var(--grid-y, 0px));
  -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 100%);
}
html[data-universe='design'] .bg-grid { --grid-line: color-mix(in srgb, var(--blue) 9%, transparent); }

.bg-glow {
  background: radial-gradient(40% 40% at 50% 48%, rgba(120, 140, 255, 0.35), transparent 70%);
  mix-blend-mode: screen;
  transition: opacity 0.8s;
}
html[data-universe='design'] .bg-glow { opacity: 0; }

.bg-grain {
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-universe='design'] .bg-grain { opacity: 0.35; mix-blend-mode: multiply; filter: invert(1); }

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  touch-action: none;
  outline: none;
}

.edge-fade {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  --edge: rgba(17, 25, 214, 0.78);
  background:
    linear-gradient(to bottom, var(--edge) 0, transparent clamp(90px, 14vh, 150px)),
    linear-gradient(to top, var(--edge) 0, transparent clamp(100px, 16vh, 170px));
}
html[data-universe='design'] .edge-fade { --edge: rgba(237, 235, 228, 0.94); }

/* --------------------------------------------------------------------------
   HUD
   -------------------------------------------------------------------------- */

.hud { position: fixed; left: 0; right: 0; z-index: 10; pointer-events: none; }
.hud > * { pointer-events: auto; }

.hud-top {
  top: 0;
  padding: var(--hud-top) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  align-items: start;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  justify-self: start;
  line-height: 1;
}
.logo-mark {
  display: block;
  height: clamp(34px, 3.1vw, 48px);
  aspect-ratio: 992 / 586;
  transition: transform 0.9s var(--ease-out);
}
.logo:hover .logo-mark,
.panel-logo:hover .logo-mark { transform: rotate(-4deg) scale(1.06); }

.tagline {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 500;
  padding-top: 2px;
}

.nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.4vw, 54px);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding-top: 2px;
}
.nav-link { position: relative; display: inline-block; }
.nav-link.is-active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: currentColor;
}

.lang { display: inline-flex; gap: 4px; color: var(--fg-dim); cursor: pointer; }
.lang button { text-transform: uppercase; transition: color 0.3s; }
.lang button[aria-pressed='true'] { color: var(--fg); }
.lang button:hover { color: var(--fg); }
/* on a touch screen the menu links and FR / EN get a finger-sized hit area, without moving */
@media (hover: none) {
  .nav-link { padding-block: 14px; margin-block: -14px; }
  /* no hover on touch: the rolling copy would show in the taller tap area */
  .nav-link .roll-char::after { display: none; }
  .lang button { padding: 14px 6px; margin: -14px -2px; }
}

/* rolling letters (K95-style) */
[data-roll] { overflow: hidden; vertical-align: top; }
.roll { display: inline-flex; white-space: pre; }
.roll-char {
  display: inline-block;
  position: relative;
  transition: transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i) * 18ms);
}
.roll-char::after {
  content: attr(data-c);
  position: absolute;
  left: 0;
  top: 100%;
}
a:hover .roll-char,
button:hover .roll-char,
[data-roll]:hover .roll-char { transform: translateY(-100%); }

.hud-bottom {
  bottom: 0;
  padding: 0 var(--gutter) calc(var(--hud-top) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-radius: var(--radius);
  transition: background 0.8s, border-color 0.8s;
}

.switch {
  position: relative;
  display: inline-flex;
  padding: 5px;
  justify-self: start;
  isolation: isolate;
}
.switch button {
  position: relative;
  z-index: 1;
  padding: 11px 18px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  color: var(--fg-dim);
  transition: color 0.5s var(--ease-out);
}
.switch button[aria-selected='true'] { color: var(--glass-hi-fg); }
.switch button:hover { color: var(--fg); }
.switch button[aria-selected='true']:hover { color: var(--glass-hi-fg); }
.switch sup { font-family: var(--f-mono); font-size: 8px; font-weight: 500; line-height: 1; margin-top: -1px; }
.switch-pill {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--radius);
  background: var(--glass-hi);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 30, 0.5);
  transition: transform 0.7s var(--ease-out), width 0.7s var(--ease-out), background 0.8s;
}

.hint {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: opacity 0.8s, transform 0.8s var(--ease-out);
}
.hint.is-hidden { opacity: 0; transform: translateY(8px); }
.hint-dot {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.hint-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: currentColor;
  animation: hint 1.8s var(--ease-io) infinite;
}
@keyframes hint {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(8px); opacity: 0; }
  100% { opacity: 0; }
}

.status {
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}
.status-time { color: var(--fg-dim); font-family: var(--f-mono); font-size: 11px; }
.status-time time { color: var(--fg); }
.status-count { font-variant-numeric: tabular-nums; }
.status-count span:last-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  html.has-cursor,
  html.has-cursor * { cursor: none !important; }
}
.cursor-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  transition: transform 0.5s var(--ease-out), opacity 0.4s, border-color 0.8s, background 0.4s;
}
.cursor-ring::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--fg);
  transition: background 0.8s;
}
.cursor[data-theme='ink'] { --fg: #f3f4ff; --glass-hi: #f3f4ff; --glass-hi-fg: var(--ink); }
.cursor[data-theme='paper'] { --fg: var(--blue); --glass-hi: var(--blue); --glass-hi-fg: var(--paper); }
.cursor[data-theme='blue'] { --fg: #fff; --glass-hi: #fff; --glass-hi-fg: var(--blue); }
.cursor.is-link .cursor-ring { transform: scale(1.45); }
.cursor.is-hover .cursor-ring { transform: scale(0.35); background: var(--fg); }
.cursor.is-drag .cursor-ring { transform: scale(1.6); }
.cursor.is-down .cursor-ring { transform: scale(0.8); }
.cursor.is-hidden .cursor-ring { opacity: 0; }

/* cursor variants: ring (default) · dot · spark · cross · native */
.cursor-spark,
.cursor-cross { position: absolute; display: none; }

html[data-cursor='dot'] .cursor-ring {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-color: transparent;
  background: var(--fg);
}
html[data-cursor='dot'] .cursor-ring::after { display: none; }
html[data-cursor='dot'] .cursor.is-link .cursor-ring {
  transform: scale(4.2);
  background: color-mix(in srgb, var(--fg) 18%, transparent);
  border-color: color-mix(in srgb, var(--fg) 40%, transparent);
}
html[data-cursor='dot'] .cursor.is-hover .cursor-ring { transform: scale(1.4); background: var(--fg); }

html[data-cursor='spark'] .cursor-ring,
html[data-cursor='cross'] .cursor-ring,
html[data-cursor='native'] .cursor-ring { display: none; }
html[data-cursor='spark'] .cursor-spark {
  display: block;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  fill: var(--fg);
  animation: spin 6s linear infinite;
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), margin 0.5s var(--ease-out), opacity 0.4s;
}
html[data-cursor='spark'] .cursor.is-link .cursor-spark { width: 38px; height: 38px; margin: -19px 0 0 -19px; animation-duration: 1.6s; }
html[data-cursor='spark'] .cursor.is-down .cursor-spark { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
html[data-cursor='spark'] .cursor.is-hidden .cursor-spark { opacity: 0; }

html[data-cursor='cross'] .cursor-cross {
  display: block;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  background:
    linear-gradient(var(--fg), var(--fg)) 50% 0 / 1px 9px no-repeat,
    linear-gradient(var(--fg), var(--fg)) 50% 100% / 1px 9px no-repeat,
    linear-gradient(var(--fg), var(--fg)) 0 50% / 9px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) 100% 50% / 9px 1px no-repeat;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
html[data-cursor='cross'] .cursor.is-link .cursor-cross { transform: rotate(45deg) scale(1.3); }
html[data-cursor='cross'] .cursor.is-down .cursor-cross { transform: scale(0.75); }
html[data-cursor='cross'] .cursor.is-hidden .cursor-cross { opacity: 0; }
.cursor-coords {
  position: absolute;
  left: 30px;
  top: 30px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--fg);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}
html[data-cursor='cross'] .cursor.has-label .cursor-coords { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor[data-cursor='native'],
  html.has-cursor[data-cursor='native'] * { cursor: auto !important; }
  html.has-cursor[data-cursor='native'] a,
  html.has-cursor[data-cursor='native'] button { cursor: pointer !important; }
}

.cursor-label {
  position: absolute;
  left: 16px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 14px 8px;
  border-radius: 14px;
  background: var(--glass-hi);
  color: var(--glass-hi-fg);
  white-space: nowrap;
  transform-origin: 0 0;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s, background 0.8s, color 0.8s;
}
.cursor.has-label .cursor-label { transform: scale(1); opacity: 1; }
.cursor-label-text { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.cursor-label-sub { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; opacity: 0.7; }
.cursor-label-sub:empty { display: none; }

/* --------------------------------------------------------------------------
   Panels (project / index / info)
   -------------------------------------------------------------------------- */

.panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(100% 0 0 0);
  --p-bg: var(--ink);
  --p-fg: #f3f4ff;
  --p-dim: rgba(243, 244, 255, 0.66);
  --p-line: rgba(243, 244, 255, 0.14);
  background: var(--p-bg);
  color: var(--p-fg);
}
.panel[data-theme='paper'] {
  --p-bg: var(--paper);
  --p-fg: var(--blue);
  --p-dim: color-mix(in srgb, var(--blue) 80%, transparent);
  --p-line: color-mix(in srgb, var(--blue) 18%, transparent);
}
.panel[data-theme='blue'] {
  --p-bg: var(--bg-2);
  --p-fg: #ffffff;
  --p-dim: rgba(255, 255, 255, 0.8);
  --p-line: rgba(255, 255, 255, 0.22);
}
.panel.is-open { visibility: visible; pointer-events: auto; }
.panel::before {
  content: '';
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(80px, 12vh, 120px);
  pointer-events: none;
  background: linear-gradient(to bottom, var(--p-bg) 15%, color-mix(in srgb, var(--p-bg) 0%, transparent));
}
.panel ::selection { background: var(--p-fg); color: var(--p-bg); }

.panel-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.panel-content { min-height: 100%; }
/* the page's heading takes the keyboard focus when it opens, without a ring around it */
.panel [tabindex='-1']:focus { outline: none; }
/* the fixed logo steps aside once a page scrolls, so it never sits on the text */
.panel-logo { transition: opacity 0.4s var(--ease-out); }
.panel.is-scrolled .panel-logo { opacity: 0; pointer-events: none; }

.panel-logo {
  position: fixed;
  z-index: 5;
  top: var(--hud-top);
  left: var(--gutter);
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  color: var(--p-fg);
}

.panel-close {
  position: fixed;
  z-index: 5;
  top: calc(var(--hud-top) - 9px);
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--p-fg);
  --glass: color-mix(in srgb, var(--p-bg) 55%, transparent);
  --glass-border: var(--p-line);
}
.panel-close .x {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p-fg);
  transition: transform 0.6s var(--ease-out);
}
.panel-close .x::before,
.panel-close .x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: var(--p-bg);
  transform: rotate(45deg);
}
.panel-close .x::after { transform: rotate(-45deg); }
.panel-close:hover .x { transform: rotate(90deg); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

/* line reveal helper */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------------- Project ---------------- */

.case { --accent: #fff; padding-bottom: 0; }

.case-head {
  padding-top: clamp(110px, 16vh, 180px);
  padding-bottom: clamp(36px, 6vh, 72px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  row-gap: clamp(28px, 4vh, 48px);
}

.case-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--p-dim);
}
.case-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.case-kicker b { color: var(--p-fg); font-weight: 500; }

.case-title {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  font-size: clamp(44px, 9.4vw, 176px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.case-title .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-variation-settings: normal;
}

/* after the images: one invitation to get in touch, alone so nothing competes with it
   (the project's own links stay on top, next to the description) */
.case-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.4vh, 28px);
  padding-top: clamp(64px, 10vh, 128px);
  padding-bottom: clamp(56px, 9vh, 112px);
}
.case-cta p { margin: 0; font-size: clamp(30px, 3.6vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.case-meta {
  grid-column: 1 / span 7;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--p-line);
  padding-top: 16px;
  align-self: start;
}
.case-meta dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--p-dim); margin-bottom: 8px; }
.case-meta dd { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; }
.case-credits dd span { display: block; }
.case-credits a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--p-line); transition: text-decoration-color 0.3s; }
.case-credits a:hover { text-decoration-color: currentColor; }

.case-desc {
  grid-column: 9 / -1;
  margin: 0;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  font-weight: 400;
  text-wrap: pretty;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--p-line);
  padding-bottom: 4px;
  transition: border-color 0.3s;
}
.case-link svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.case-link:hover { border-color: var(--p-fg); }
.case-link:hover svg { transform: translate(2px, -2px); }
/* the link buttons under the description, in the look picked in the lab (?lab&liens=…) */
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 22px; }
.case-links .case-link { margin-top: 0; }
.case-links.is-buttons, .case-links.is-icons { gap: 10px; }
/* the buttons stack at the width of the longest, so they line up */
.case-links.is-buttons { flex-direction: column; align-items: stretch; width: fit-content; max-width: 100%; }
.case-links.is-buttons .case-btn { justify-content: space-between; gap: 18px; }
.case-btn, .case-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 12px;
  border: 1px solid var(--p-fg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.case-btn { background: var(--p-fg); color: var(--p-bg); }
.case-btn:hover { background: transparent; color: var(--p-fg); }
.case-btn.is-ghost, .case-chip { background: transparent; color: var(--p-fg); border-color: var(--p-line); }
.case-btn.is-ghost:hover, .case-chip:hover { border-color: var(--p-fg); }
.case-btn svg, .case-chip svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.case-chip .net-ic { width: 16px; height: 16px; }
.case-btn:hover svg:last-child, .case-chip:hover svg:last-child { transform: translate(2px, -2px); }

.case-hero {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 25%, var(--p-bg));
}
.case-hero img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  will-change: transform;
}

.case-gallery {
  padding-top: clamp(16px, 2vw, 32px);
  padding-bottom: clamp(16px, 2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 24px);
}
.g-row { display: grid; gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.g-row.full { grid-template-columns: 1fr; }
/* side by side, the columns follow the proportions of each image so a row keeps one height */
.g-row.two { grid-template-columns: var(--cols, 1fr 1fr); }
.g-row.three { grid-template-columns: var(--cols, 1fr 1fr 1fr); }
.g-row.four { grid-template-columns: var(--cols, repeat(4, minmax(0, 1fr))); }
.g-row.single { grid-template-columns: repeat(12, 1fr); }
.g-row.single figure { grid-column: 3 / span 8; }
.g-row.single.left figure { grid-column: 1 / span 7; }
.g-row.single.right figure { grid-column: 6 / span 7; }

.g-item {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 18%, var(--p-bg));
  clip-path: inset(8% 0 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.g-item img {
  width: 100%;
  height: auto;
  transform: scale(1.12);
  transition: transform 1.6s var(--ease-out), opacity 0.6s;
  opacity: 0;
}
.g-item.is-in { clip-path: inset(0 0 0 0); }
.g-item.is-in img { transform: scale(1); }
.g-item img.is-loaded { opacity: 1; }
.g-item video { display: block; width: 100%; height: auto; background: #000; }
/* edge to edge: out of the side margins */
.g-row.bleed { grid-template-columns: 1fr; margin-inline: calc(-1 * var(--gutter)); }
.g-row.bleed .g-item { border-radius: 0; }

/* --- project page versions (lab) --- */
/* how the images arrive (lab): the current wipe and zoom, nothing, or one of the soft ones */
.case:not([data-anim='wipe']) .g-item { clip-path: none; }
.case:not([data-anim='wipe']) .g-item img { transform: none; }
.case[data-anim='aucune'] .g-item, .case[data-anim='aucune'] .g-item img { transition: none; }
.case[data-anim='fondu'] .g-item { opacity: 0; transition: opacity 1.4s ease; }
.case[data-anim='montee'] .g-item { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out); }
.case[data-anim='flou'] .g-item { opacity: 0; filter: blur(16px); transition: opacity 1.1s ease, filter 1.3s var(--ease-out); }
.case[data-anim='zoom'] .g-item { opacity: 0; transform: scale(0.94); transition: opacity 1.1s ease, transform 1.5s var(--ease-out); }
.case[data-anim] .g-item.is-in { opacity: 1; transform: none; filter: none; }
/* side by side, the images of a row arrive one after the other */
.case:not([data-anim='aucune']) .g-row > .g-item:nth-child(2) { transition-delay: 0.08s; }
.case:not([data-anim='aucune']) .g-row > .g-item:nth-child(3) { transition-delay: 0.16s; }
.case:not([data-anim='aucune']) .g-row > .g-item:nth-child(4) { transition-delay: 0.24s; }

/* one per screen */
.case-slides { display: flex; flex-direction: column; }
.slide { position: relative; display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 6vh var(--gutter); }
.slide .g-item { width: min(100%, calc(82vh * var(--r))); background: none; }
.slide .g-item img, .slide .g-item video { width: 100%; height: auto; }
.slide-n { position: absolute; left: var(--gutter); bottom: 5vh; margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--p-dim); }

/* the pile: each row stays put while the next one slides over it */
.case[data-v='pile'] .case-gallery { gap: 0; padding-top: 0; }
.case[data-v='pile'] .g-row { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; align-content: center; padding: 7vh 0; background: var(--p-bg); box-shadow: 0 -28px 60px rgba(0, 0, 0, 0.22); }
.case[data-v='pile'] .g-item { background: none; }
.case[data-v='pile'] .g-item img, .case[data-v='pile'] .g-item video { max-height: 80vh; width: 100%; object-fit: contain; }

/* the strip: scrolling down slides the images sideways */
.case-strip { position: relative; }
.strip-sticky { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; height: 100vh; height: 100svh; overflow: hidden; }
.strip-track { display: flex; gap: clamp(12px, 1.6vw, 24px); width: max-content; padding: 0 var(--gutter); will-change: transform; }
.case .case-strip .g-item { flex: none; height: 72vh; width: auto; aspect-ratio: var(--r); opacity: 1; transform: none; filter: none; }
.case-strip .g-item img, .case-strip .g-item video { width: 100%; height: 100%; object-fit: cover; }
.strip-count { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--p-dim); }
.strip-count b { color: var(--p-fg); font-weight: 500; }

/* the mosaic: every image at once, a click opens it full screen */
.case-mosaic { columns: 3 260px; column-gap: clamp(12px, 1.4vw, 20px); padding-top: clamp(16px, 2vw, 32px); padding-bottom: clamp(16px, 2vw, 32px); }
.mo-item { display: block; width: 100%; margin: 0 0 clamp(12px, 1.4vw, 20px); padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; break-inside: avoid; }
.mo-item .g-item { transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 0.4s; }
.mo-item:hover .g-item { filter: brightness(1.08); }
.mo-item:focus-visible { outline: 2px solid var(--p-fg); outline-offset: 4px; }
.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 6vh 7vw; background: rgba(4, 5, 20, 0.94); color: #fff; }
.lb-media { display: grid; place-items: center; width: 100%; height: 100%; }
.lb-media img, .lb-media video { max-width: 100%; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lb-n { position: absolute; left: 24px; bottom: 20px; margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; opacity: 0.7; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 16px; cursor: pointer; transition: background 0.3s, color 0.3s; }
.lb-btn:hover { background: #fff; color: #05061a; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .case-strip { height: auto; }
  .strip-sticky { position: static; height: auto; padding: 4vh 0; }
  .strip-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; }
  .case .case-strip .g-item { height: 60vh; scroll-snap-align: center; }
  .slide { min-height: 0; padding: 3vh var(--gutter); }
  .slide-n { position: static; justify-self: start; margin-top: 10px; }
  .case[data-v='pile'] .g-row { min-height: 0; padding: 3vh 0; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: auto; right: 80px; }
}

.case-videos { padding-bottom: clamp(16px, 2vw, 32px); }
.case-videos h3 {
  margin: clamp(24px, 4vw, 56px) 0 16px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--p-dim);
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  margin-bottom: clamp(12px, 1.6vw, 24px);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.case-next {
  position: relative;
  display: block;
  margin-top: clamp(40px, 8vw, 120px);
  padding-top: 20px;
  padding-bottom: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--p-line);
  overflow: hidden;
}
.case-next-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--p-dim);
}
.case-next-title {
  display: block;
  margin-top: clamp(20px, 3vw, 40px);
  font-weight: 800;
  font-variation-settings: 'wdth' 118;
  font-size: clamp(40px, 8.4vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  transition: transform 0.9s var(--ease-out);
}
.case-next-img {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 6vw, 80px);
  width: clamp(120px, 16vw, 260px);
  aspect-ratio: var(--thumb-ratio, 4 / 3);
  object-fit: cover;
  border-radius: 4px;
  transform: translateY(20%) rotate(4deg) scale(0.9);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.5s;
}
.case-next:hover .case-next-title { transform: translateX(clamp(8px, 2vw, 32px)); }
.case-next:hover .case-next-img { transform: translateY(0) rotate(-3deg) scale(1); opacity: 1; }

.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--p-line);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--p-dim);
}
.panel-foot a:hover { color: var(--p-fg); }

/* ---------------- Index ---------------- */

.index-head {
  padding-top: clamp(110px, 16vh, 180px);
  padding-bottom: clamp(24px, 4vh, 48px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.index-title {
  margin: 0;
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(56px, 12vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.index-title sup {
  font-family: var(--f-mono);
  font-size: 0.1em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: top;
  margin-left: 0.2em;
}
.filters { display: inline-flex; padding: 5px; gap: 2px; --glass: transparent; --glass-border: var(--p-line); }
.filters button {
  padding: 10px 16px 9px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--p-dim);
  transition: background 0.4s, color 0.4s;
}
.filters button sup { font-family: var(--f-mono); font-size: 8px; margin-left: 2px; }
.filters button[aria-pressed='true'] { background: var(--p-fg); color: var(--p-bg); }
.filters button:hover { color: var(--p-fg); }
.filters button[aria-pressed='true']:hover { color: var(--p-bg); }

.index-cols,
.index-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) 90px 60px;
  gap: 16px;
  align-items: baseline;
}
.index-cols {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--p-dim);
  padding-bottom: 12px;
}
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-line); }
.index-list li { border-bottom: 1px solid var(--p-line); }
.index-list li.is-hidden { display: none; }
.index-row {
  position: relative;
  padding: clamp(14px, 2vw, 22px) 0;
  transition: color 0.4s, padding 0.6s var(--ease-out);
}
.index-row .i-num,
.index-row .i-year,
.index-row .i-type { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--p-dim); }
.index-row .i-title {
  font-weight: 700;
  font-variation-settings: 'wdth' 112;
  font-size: clamp(22px, 3.2vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: transform 0.6s var(--ease-out);
}
.index-row .i-client,
.index-row .i-role { font-size: 13px; font-weight: 500; }
.index-row .i-role { color: var(--p-dim); }
.index-row .i-type { display: inline-flex; align-items: center; gap: 6px; }
.index-row .i-type::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, currentColor); }
.index-list:hover .index-row { color: var(--p-dim); }
.index-list .index-row:hover { color: var(--p-fg); }
.index-row:hover .i-title { transform: translateX(14px); }

.index-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  will-change: transform;
}
.index-preview.is-visible { opacity: 1; }
.ip-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #1a24ff) 30%, #05061a);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: scale(0.86);
  transition: width 0.7s var(--ease-out), height 0.7s var(--ease-out), transform 0.6s var(--ease-out);
}
.index-preview.is-visible .ip-frame { transform: scale(1); }
.ip-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.18);
  transition: clip-path 0.75s var(--ease-out), transform 1.4s var(--ease-out);
}
.ip-img.is-in { clip-path: inset(0 0 0 0); transform: scale(1); }
.ip-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--p-fg);
}
.ip-label { display: inline-flex; align-items: center; gap: 7px; }
.ip-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, currentColor); }
.ip-bars { display: flex; gap: 3px; }
.ip-bars i { width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.25; transition: opacity 0.4s; }
.ip-bars i.is-on { opacity: 1; }

/* small thumbnails in the rows: phones only, desktop gets the floating preview */
.index-row .i-thumb { display: none; }

/* view switch: list or grid */
.index-tools { display: flex; gap: 8px; flex-wrap: wrap; }
/* 4 projects a row at most, so the pictures stay big on a wide screen */
.index-grid { --gap-x: clamp(14px, 1.6vw, 24px); display: none; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, max(260px, (100% - 3 * var(--gap-x)) / 4)), 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap-x); }
.index[data-view='grid'] .index-grid { display: grid; }
.index[data-view='grid'] .index-list,
.index[data-view='grid'] .index-cols { display: none; }
.index-grid li.is-hidden { display: none; }
.index li.is-hidden { display: none; }

/* --- Work versions (lab) --- */
.wk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.wk-names { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-line); }
.wk-names li { border-bottom: 1px solid var(--p-line); }
.wk-name { display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: clamp(12px, 1.8vh, 20px) 0; }
.wk-name b { font-size: clamp(22px, 2.6vw, 44px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; transition: transform 0.6s var(--ease-out), color 0.3s; }
.wk-name .i-num, .wk-name .i-type { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--p-dim); }
.wk-names:hover .wk-name b { color: var(--p-dim); }
.wk-names .wk-name:hover b { color: var(--p-fg); transform: translateX(12px); }
.wk-stage { position: sticky; top: 14vh; height: 72vh; }
.wk-stage figure { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 6px; background: color-mix(in srgb, var(--accent) 25%, var(--p-bg)); opacity: 0; transform: scale(1.02); transition: opacity 0.6s, transform 1s var(--ease-out); }
.wk-stage figure.is-on { opacity: 1; transform: none; }
.wk-stage img { width: 100%; height: 100%; object-fit: cover; }
.wk-stage figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(5, 6, 26, 0.6); color: #fff; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; }

.wk-acc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-line); }
.wk-acc li { border-bottom: 1px solid var(--p-line); }
.wk-acc-row { display: block; padding: clamp(14px, 2vh, 24px) 0; }
.wk-acc-head { display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; align-items: baseline; gap: 16px; }
.wk-acc-head b { font-size: clamp(30px, 4.6vw, 84px); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; text-transform: uppercase; }
.wk-acc-head .i-num, .wk-acc-meta { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--p-dim); }
.wk-acc-imgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-height: 0; overflow: hidden; transition: max-height 0.8s var(--ease-out), margin 0.8s var(--ease-out); }
.wk-acc-imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.wk-acc-row:hover .wk-acc-imgs, .wk-acc-row:focus-visible .wk-acc-imgs { max-height: 26vw; margin-top: 18px; }

.wk-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 80px) clamp(16px, 2vw, 32px); }
.wk-cards li:nth-child(even) { margin-top: clamp(60px, 10vw, 180px); }
.wk-card { display: flex; flex-direction: column; gap: 12px; }
.wk-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; background: color-mix(in srgb, var(--accent) 25%, var(--p-bg)); }
.wk-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.wk-card:hover .wk-card-media img { transform: scale(1.05); }
.wk-card-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 10px; }
.wk-card-meta b { font-size: clamp(22px, 2.2vw, 36px); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; }
.wk-card-meta .i-num, .wk-card-meta .i-type { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; color: var(--p-dim); }
.wk-card-sub { font-size: 13px; color: var(--p-dim); }

.wk-wall { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: clamp(10px, 1.2vw, 18px); }
.wk-wall li { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 18px); }
.wk-brick { position: relative; display: block; overflow: hidden; border-radius: 6px; background: color-mix(in srgb, var(--accent) 25%, var(--p-bg)); transition: opacity 0.4s; }
.wk-brick img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.wk-wall:hover .wk-brick:not(:hover) { opacity: 0.45; }
.wk-brick:hover img { transform: scale(1.04); }
.wk-brick-cap { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 3px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(5, 6, 26, 0.75)); color: #fff; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.wk-brick-cap b { font-size: 17px; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; }
.wk-brick-cap span { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; opacity: 0.8; }
.wk-brick:hover .wk-brick-cap, .wk-brick:focus-visible .wk-brick-cap { opacity: 1; transform: none; }
@media (hover: none) { .wk-brick-cap { opacity: 1; transform: none; } .wk-acc-imgs { max-height: none; margin-top: 14px; } }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile-media {
  position: relative;
  aspect-ratio: var(--thumb-ratio, 4 / 3);
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent, #1a24ff) 25%, transparent);
}
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 0.6s; }
.tile-media .tile-alt { opacity: 0; }
.tile:hover .tile-media img { transform: scale(1.06); }
.tile:hover .tile-alt { opacity: 1; }
/* under each picture: the title in full with a dot in the project's colour, then client · year · 3D / Graphic */
.tile-title { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: clamp(18px, 1.5vw, 24px); line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; text-wrap: balance; }
.tile-title::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, currentColor); transform: translateY(-0.12em); }
/* client · year on the left, small 3D / Graphic tags on the right (they drop below when the card is narrow) */
.tile-sub { margin-top: -4px; padding-left: 18px; font-size: 12px; color: var(--p-dim); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.tile-tags { display: flex; gap: 4px; }
.tile-tags i { font-style: normal; font-family: var(--f-mono); font-size: 10px; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 7px 3px; border: 1px solid var(--p-line); border-radius: 999px; white-space: nowrap; }
/* lab look of the grid (?lab&work=editorial): the first project the filter shows over two columns and two rows */
.index[data-work='editorial'] .index-grid { grid-auto-flow: dense; }
.index[data-work='editorial'] .index-grid li.is-feature { grid-column: span 2; }
@media (min-width: 721px) {
  .index[data-work='editorial'] .index-grid li.is-feature { grid-row: span 2; }
  .index[data-work='editorial'] li.is-feature .tile { height: 100%; }
  .index[data-work='editorial'] li.is-feature .tile-media { flex: 1; aspect-ratio: auto; min-height: 0; }
  .index[data-work='editorial'] li.is-feature .tile-title { font-size: clamp(26px, 2.6vw, 44px); }
}

/* ---------------- Info ---------------- */

.info { padding-top: clamp(110px, 16vh, 180px); }
@keyframes spin { to { transform: rotate(360deg); } }

.avail { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p-dim); }
.avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3dff8b; box-shadow: 0 0 12px #3dff8b; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.kicker { margin: 0 0 18px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px 14px;
  border-radius: 999px;
  background: var(--p-fg);
  color: var(--p-bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.btn-pill svg { width: 13px; height: 13px; flex: none; transition: transform 0.5s var(--ease-out); }
.btn-pill:hover svg { transform: translate(3px, -3px); }
.btn-pill:disabled { opacity: 0.5; }

/* ---- about: the live scene shows through ---- */
.panel-info { background: color-mix(in srgb, var(--bg-2) 46%, transparent); }
/* the project pages: the same blue, a little denser so the images read well */
.panel-case { background: color-mix(in srgb, var(--bg-2) 64%, transparent); }
/* Work keeps its dark colour in 3D, see-through so the scene shows behind */
.panel-index { background: color-mix(in srgb, var(--ink) 74%, transparent); }
/* in the Graphic universe, Work and the project pages are paper you can see the star through */
html[data-universe='design'] .panel-case,
html[data-universe='design'] .panel-index { background: color-mix(in srgb, var(--paper) 74%, transparent); }
.pane-sub { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }

/* intro: the big name, the avatar and the statement */
.ab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: end;
  min-height: 90vh;
  min-height: 90svh;
  padding-top: clamp(96px, 13vh, 140px);
  padding-bottom: clamp(32px, 6vh, 64px);
}
.ab-id .kicker { margin-bottom: 22px; }
.about-name {
  margin: 0;
  font-weight: 900;
  font-size: clamp(64px, 11vw, 210px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.about-name .line { display: block; }
.about-name .is-outline { color: transparent; -webkit-text-stroke: 2px var(--p-fg); }
.ab-side { display: flex; flex-direction: column; gap: 22px; }
.ab-side .avail { margin: 0; }
.about-lead { margin: 0; font-size: clamp(19px, 1.7vw, 27px); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.about-lead .spark, .ab-ulead .spark { display: inline-block; width: 0.6em; height: 0.6em; vertical-align: 0.05em; animation: spin 9s linear infinite; }
.av { position: relative; width: 132px; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av.is-empty { display: grid; place-items: center; border: 1px dashed var(--p-line); background: color-mix(in srgb, var(--p-fg) 6%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.av-spark { width: 30%; aspect-ratio: 1; fill: var(--p-fg); animation: spin 14s linear infinite; }

/* what I do: one block per universe, in glass, leaning towards the cursor */
.ab-do { padding-top: clamp(56px, 9vh, 100px); }
.ab-h { margin: 0 0 clamp(24px, 4vh, 40px); font-weight: 900; font-size: clamp(40px, 6vw, 108px); line-height: 0.86; letter-spacing: -0.05em; text-transform: uppercase; }
.ab-h span { display: inline-block; }
.ab-unis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); perspective: 1100px; }
.ab-uni {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 36px);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease-out), border-color 0.4s;
}
.ab-uni:hover { border-color: rgba(255, 255, 255, 0.4); }
.ab-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.18), transparent 55%); transition: opacity 0.4s; }
.ab-uni:hover .ab-glare { opacity: 1; }
.ab-uni > :not(.ab-glare) { position: relative; }
.ab-uni-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ab-uni-head .kicker { margin: 0; padding-top: 0.6em; }
.ab-uword { margin: 0; font-weight: 900; font-size: clamp(48px, 6vw, 104px); line-height: 0.84; letter-spacing: -0.05em; text-transform: uppercase; }
.ab-ulead { margin: 0; max-width: 30em; font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; line-height: 1.35; }
.ab-ulist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p-line); }
.ab-ulist li { padding: 11px 0 10px; border-bottom: 1px solid var(--p-line); font-size: 15px; font-weight: 600; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 6px 0 0; }
.tool { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border: 1px solid var(--p-line); border-radius: 999px; font-size: 13px; font-weight: 600; transition: transform 0.5s var(--ease-out), background 0.3s; }
.tool-ic { flex: none; width: 26px; height: 26px; fill: currentColor; overflow: visible; transition: transform 0.5s var(--ease-out); }
/* a tool with no logo: the same rounded tile as the Adobe ones, with its letters */
.tool-ic.is-tile { display: grid; place-items: center; border-radius: 18%; background: currentColor; }
.tool-ic.is-tile b { color: var(--p-bg); font-size: 11px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.tool:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.1); }
.tool:hover .tool-ic { transform: rotate(-10deg) scale(1.12); }
.ab-cta { padding-top: clamp(56px, 9vh, 100px); padding-bottom: clamp(60px, 10vh, 110px); }

/* my journey: a timeline */
.ab-journey { padding-top: clamp(56px, 9vh, 100px); }
.jr-when { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }
.jr-role { margin: 0; font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; }
.jr-text { margin: 0; max-width: 36em; font-size: 15px; line-height: 1.45; color: var(--p-dim); }
.jr-now { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--p-line); border-radius: 999px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
/* --- journey versions (lab) --- */
.jr-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); row-gap: clamp(30px, 5vh, 48px); }
.jr-stop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px clamp(18px, 2.4vw, 36px) 0 0; border-top: 1px solid var(--p-line); }
.jr-stop::before { content: ''; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border: 1.5px solid var(--p-fg); border-radius: 50%; background: var(--p-bg); }
.jr-stop.is-now::before { background: var(--p-fg); }
.jr-stop h3, .jr-vt-item h3 { margin: 0; font-size: clamp(24px, 2.2vw, 36px); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }

/* bars: each step at its real length, on the years */
.jr-gantt { position: relative; padding-top: 34px; }
.jr-years { position: absolute; inset: 0; pointer-events: none; }
.jr-years span { position: absolute; top: 0; bottom: 0; padding-left: 8px; border-left: 1px solid var(--p-line); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--p-dim); }
.jr-bars { position: relative; list-style: none; margin: 0; padding: 0; }
.jr-bar-row { position: relative; padding-bottom: clamp(22px, 3.4vh, 34px); }
.jr-bar-label { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: fit-content; max-width: min(36em, 60%); }
.jr-bar-label b { font-size: clamp(22px, 2vw, 34px); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; }
.jr-bar-label .jr-text { font-size: 13px; }
.jr-bar { display: block; margin-top: 14px; height: 10px; border: 1.5px solid var(--p-fg); border-radius: 999px; transition: background 0.4s; }
.jr-bar-row.is-now .jr-bar { background: linear-gradient(90deg, var(--p-fg) 70%, transparent); border-right-color: transparent; border-radius: 999px 0 0 999px; }
.jr-bar-row:hover .jr-bar { background: var(--p-fg); }

/* vertical: a line down the middle */
.jr-vt { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px, 4vh, 44px); }
.jr-vt::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--p-line); }
.jr-vt-item { position: relative; justify-self: start; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: calc(50% - 40px); text-align: right; }
.jr-vt-item.is-right { justify-self: end; align-items: flex-start; text-align: left; }
.jr-vt-item::before { content: ''; position: absolute; top: 3px; right: -46px; width: 11px; height: 11px; border: 1.5px solid var(--p-fg); border-radius: 50%; background: var(--p-bg); }
.jr-vt-item.is-right::before { right: auto; left: -46px; }
.jr-vt-item.is-now::before { background: var(--p-fg); }

/* the years in big */
.jr-yr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: clamp(22px, 3vh, 32px) clamp(12px, 1.6vw, 24px); }
.jr-yr-col { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--p-line); }
.jr-yr-n { font-size: clamp(40px, 5vw, 84px); font-weight: 900; line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--p-dim); }
.jr-yr-col.has-start { border-top-color: var(--p-fg); }
.jr-yr-col.has-start .jr-yr-n { color: var(--p-fg); -webkit-text-stroke: 0; }
.jr-yr-job { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.jr-yr-job b { font-size: 18px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.jr-yr-job .jr-role { font-size: 14px; }
.jr-yr-job .jr-when { font-size: 10px; }
.jr-yr-goes { margin: 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }
.jr-yr-goes::before { content: '— '; }
@media (max-width: 1200px) {
  .jr-tl { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wk-split { grid-template-columns: 1fr; }
  .wk-stage { display: none; }
  .wk-cards { grid-template-columns: 1fr; }
  .wk-cards li:nth-child(even) { margin-top: 0; }
  .jr-bar-label { margin: 0 !important; max-width: none; text-align: left !important; align-items: flex-start !important; }
  .jr-tl { grid-template-columns: 1fr; row-gap: 30px; margin-left: 5px; padding-left: 26px; border-left: 1px solid var(--p-line); }
  .jr-stop { padding: 0; border-top: 0; }
  .jr-stop::before { top: 4px; left: -32px; }
  .jr-vt::before { left: 5px; }
  .jr-vt-item, .jr-vt-item.is-right { justify-self: stretch; width: auto; padding-left: 30px; align-items: flex-start; text-align: left; }
  .jr-vt-item::before, .jr-vt-item.is-right::before { left: 0; right: auto; }
}
.jr-now::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* the line shows the last steps; the button opens the older ones, four to a row on a wide screen */
.jr-tl:not(.is-all) .jr-stop.is-older { display: none; }
@media (min-width: 1201px) {
  .jr-tl.is-all { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.jr-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(30px, 5vh, 48px);
  padding: 12px 20px 11px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: none;
  color: var(--p-fg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s;
}
.jr-more:hover { border-color: var(--p-fg); }
.jr-more sup { font-size: 9px; color: var(--p-dim); }

@media (max-width: 900px) {
  .ab-hero { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .ab-unis { grid-template-columns: 1fr; }
}

/* clients marquee */
.clients { margin-top: clamp(72px, 12vh, 140px); }
.mq {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
}
/* edge fades as overlays: a mask on the moving strip forces a repaint every frame */
.mq::before,
.mq::after { content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; width: 8%; pointer-events: none; }
.mq::before { left: 0; background: linear-gradient(90deg, var(--p-bg), transparent); }
.mq::after { right: 0; background: linear-gradient(-90deg, var(--p-bg), transparent); }
.mq-track { display: flex; width: max-content; will-change: transform; animation: marquee 42s linear infinite; }
.mq:hover .mq-track,
.panel:not(.is-open) .mq-track { animation-play-state: paused; }
.mq-group { display: flex; align-items: center; flex: none; }
.mq-item {
  padding: 0 0.4em;
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mq-item.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--p-fg); }
/* a client with a link: a small arrow, and the fill flips under the cursor */
.mq-item.is-link { transition: color 0.3s; }
.mq-item.is-link::after { content: '↗'; display: inline-block; margin-left: 0.12em; font-size: 0.32em; vertical-align: super; color: var(--p-fg); -webkit-text-stroke: 0; opacity: 0.7; }
.mq-item.is-link:hover { color: transparent; -webkit-text-stroke: 1.5px var(--p-fg); }
.mq-item.is-link.is-outline:hover { color: var(--p-fg); }
.mq-spark { flex: none; width: clamp(18px, 2vw, 30px); height: clamp(18px, 2vw, 30px); margin: 0 0.4em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ---- contact: split screen, the live scene shows through the left half ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel-contact { background: transparent; }
.contact { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; }

.contact-intro-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(110px, 16vh, 160px) clamp(24px, 5vw, 96px) 56px;
  /* a blue veil, denser behind the text, thinner towards the sparkle on the seam */
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg-2) 97%, transparent) 0%,
    color-mix(in srgb, var(--bg-2) 91%, transparent) 68%,
    color-mix(in srgb, var(--bg-2) 30%, transparent) 100%);
}
/* on a computer the intro stays in place while the form scrolls (when the screen is tall enough to hold it) */
@media (min-width: 721px) and (min-height: 680px) {
  .contact-intro-side { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; }
}
.contact-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; max-width: 34em; }
.contact-copy .kicker { margin: 0; }
.contact-title {
  margin: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.1em;
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(48px, 6.2vw, 108px);
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.contact-title svg { width: 0.28em; height: 0.28em; flex: none; animation: spin 9s linear infinite; }
.contact-lead { margin: 0; max-width: 28em; font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; line-height: 1.4; color: var(--p-dim); }
.cd-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }
.cd-value { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.contact-meta { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; }
.contact-meta .avail { margin: 0; padding: 9px 14px; --glass: rgba(255, 255, 255, 0.08); --glass-border: var(--p-line); color: var(--p-fg); }
.clock-big { margin: 0; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--p-dim); text-align: right; white-space: nowrap; }
.clock-big time { display: block; color: var(--p-fg); font-size: clamp(20px, 2vw, 28px); font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.02em; }
/* HUD label running down the seam, under the sparkle */
.contact-seam {
  position: absolute;
  right: 20px;
  bottom: 56px;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--p-dim);
}

.contact-form-side {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(110px, 16vh, 160px) clamp(24px, 6vw, 110px) 56px clamp(40px, 6vw, 110px);
  background: var(--bg-2);
  border-left: 1px solid var(--p-line);
}

.wiz-q { margin: 0; padding: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.wiz-q small { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--p-dim); }

.chips-block { display: flex; flex-direction: column; gap: 12px; }
.chips-label { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 11px 17px 10px;
  border: 1px solid var(--p-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover span { border-color: color-mix(in srgb, var(--p-fg) 50%, transparent); }
.chip input:checked + span { background: var(--p-fg); color: var(--p-bg); border-color: var(--p-fg); }
.chip input:focus-visible + span { outline: 1.5px solid var(--p-fg); outline-offset: 3px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }
.req { position: relative; top: 0.2em; color: var(--p-fg); font-size: 15px; font-weight: 700; line-height: 0; }
.opt { font-style: normal; text-transform: none; letter-spacing: 0.02em; }
.opt::before { content: '· '; }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--p-line);
  border-radius: 0;
  background: none;
  color: var(--p-fg);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  outline: none;
  resize: vertical;
  transition: border-color 0.4s;
}
.field textarea { min-height: 96px; line-height: 1.4; }
.field input::placeholder,
.field textarea::placeholder { color: var(--p-dim); opacity: 0.7; }
.field input:focus,
.field textarea:focus { border-color: var(--p-fg); }

.hp { position: absolute; left: -9999px; }
.wiz-status { min-height: 1.4em; margin: -14px 0 0; font-size: 14px; color: var(--p-dim); }
.wiz-done { align-items: flex-start; gap: 18px; padding: 8px 0; }
.wiz-done h3 {
  margin: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.1em;
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.wiz-done h3 svg { width: 0.3em; height: 0.3em; flex: none; animation: spin 6s linear infinite; }
.wiz-done p { margin: 0; max-width: 26em; font-size: 16px; color: var(--p-dim); }

/* --------------------------------------------------------------------------
   Transition image (card -> project hero)
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-2);
  color: #fff;
  display: grid;
  place-items: center;
}
.loader-mark { display: block; overflow: hidden; padding: 6px; }
.loader-logo { display: block; width: clamp(220px, 34vw, 520px); aspect-ratio: 992 / 586; }
.loader-bottom {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--hud-top) + 14px);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.loader-count b { font-weight: 500; font-variant-numeric: tabular-nums; }
/* until the site knows it is not in maintenance, the loader is only the blue background */
html.boot-wait .loader > * { visibility: hidden; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.15); }
.loader-bar span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

.noscript { position: fixed; inset: auto 16px 16px; z-index: 200; color: #fff; }

/* --------------------------------------------------------------------------
   States
   -------------------------------------------------------------------------- */

html.is-loading .hud { opacity: 0; }
.hud { transition: opacity 0.8s var(--ease-out); }
html.panel-open .hud-bottom,
html.panel-open .hud-top .tagline { opacity: 0; pointer-events: none; }
html.panel-open .hud-top { opacity: 0; pointer-events: none; }
html.no-webgl .hud-bottom .switch,
html.no-webgl .hud-bottom .hint { visibility: hidden; }

/* the 3D grid replaces the flat CSS grid in the 3D universe */
.bg-grid { transition: opacity 0.8s var(--ease-out); }
html.grid3d[data-universe='3d'] .bg-grid { opacity: 0; }

/* --------------------------------------------------------------------------
   Lab (temporary preview panel)
   -------------------------------------------------------------------------- */

.lab {
  position: fixed;
  z-index: 12;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: 236px;
  max-height: calc(100vh - 2 * var(--hud-top) - 120px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 14px;
  border-radius: 18px;
  background: rgba(5, 6, 26, 0.42);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: opacity 0.6s var(--ease-out);
}
html.is-loading .lab,
html.panel-open .lab,
html[data-universe='design'] .lab { opacity: 0; pointer-events: none; }
.lab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.lab-group { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 14px; }
.lab-group:last-child { margin-bottom: 0; }
.lab button {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  color: var(--fg-dim);
  transition: background 0.3s, color 0.3s;
}
.lab button:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.lab button[aria-pressed='true'] { color: var(--blue); background: var(--white); }
.lab .lab-replay {
  padding: 3px 8px;
  border: 1px solid var(--glass-border);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lab-fx { grid-template-columns: 1fr; }
.lab-fx button { display: flex; justify-content: space-between; gap: 8px; }
.lab-fx button::after { content: 'off'; font-size: 10px; text-transform: uppercase; opacity: 0.6; }
.lab-fx button[aria-pressed='true']::after { content: 'on'; }

@media (max-width: 700px) {
  .lab {
    top: auto;
    bottom: calc(var(--hud-top) + 64px + env(safe-area-inset-bottom));
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-height: 46vh;
    transform: none;
    padding: 10px;
  }
  .lab-group { display: flex; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
  .lab button { flex: none; }
}

/* --------------------------------------------------------------------------
   Lab (?lab): versions of the contact page, the clients and the call to action
   -------------------------------------------------------------------------- */

.lab-bar {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100% - 24px);
  padding: 5px 5px 5px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  transform: translateX(-50%);
  color: var(--p-fg);
  --glass: color-mix(in srgb, var(--p-bg) 60%, transparent);
  --glass-border: var(--p-line);
}
.lab-bar > span { flex: none; margin-right: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }
.lab-bar > .lab-sep { width: 1px; height: 18px; margin: 0 8px; background: var(--p-line); }
.lab-bar button { flex: none; padding: 9px 13px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; white-space: nowrap; color: var(--p-dim); transition: background 0.3s, color 0.3s; }
.lab-bar button:hover { color: var(--p-fg); }
.lab-bar button[aria-pressed='true'] { background: var(--p-fg); color: var(--p-bg); }

/* contact: 3D, Graphic or both as cards */
.uni-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.uni-card { position: relative; display: grid; cursor: pointer; }
.uni-card input { position: absolute; opacity: 0; pointer-events: none; }
.uni-card-in {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--p-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out);
}
.uni-name b { font-size: clamp(22px, 2vw, 32px); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; }
.uni-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.uni-plus { font-style: normal; font-size: 13px; font-weight: 800; line-height: 1; opacity: 0.6; }
.uni-name { display: flex; flex-direction: column; gap: 6px; }
.uni-name small { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--p-dim); transition: color 0.35s; }
.uni-card input:checked + .uni-card-in small { color: color-mix(in srgb, var(--p-bg) 72%, transparent); }
.uni-tools .tool-ic { width: 22px; height: 22px; }
.uni-tools .tool-ic.is-tile b { font-size: 9px; }
.uni-card input:checked + .uni-card-in .tool-ic.is-tile b { color: var(--p-fg); }
.uni-card:hover .uni-card-in { transform: translateY(-3px); border-color: color-mix(in srgb, var(--p-fg) 50%, transparent); }
.uni-card input:checked + .uni-card-in { background: var(--p-fg); color: var(--p-bg); border-color: var(--p-fg); }
.uni-card input:focus-visible + .uni-card-in { outline: 1.5px solid var(--p-fg); outline-offset: 3px; }
.uni-pick.is-compact .uni-card-in { min-height: 0; gap: 10px; padding: 12px 14px; }
.uni-pick.is-compact .uni-tools { gap: 4px; }
.uni-pick.is-compact .uni-tools .tool-ic { width: 18px; height: 18px; }
.uni-pick.is-compact .uni-name b { font-size: 18px; }
[data-types]:empty { display: none; }

.bs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.bs-foot .wiz-status { margin: 0; }
.bs-promise { margin: 0; font-size: 13px; color: var(--p-dim); }
.wiz-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* contact: everything on one screen */
.brief-one { display: flex; flex-direction: column; gap: 22px; }
.brief-one .wiz-q { margin: 0; }
.bo-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.brief-one.is-tried .field input:invalid { border-color: #ffb4b4; }
.brief-one.is-error .wiz-status { color: #ffb4b4; }
.brief-one.is-tried .uni-pick:not(:has(input:checked)) .uni-card-in { border-color: #ffb4b4; }
.bo-head { display: flex; flex-direction: column; gap: 12px; }
.req-note { margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-dim); }
.req-note .req { margin: 0 1px; }

/* clients: one sentence */
.cl-sentence { margin: 0; font-weight: 900; font-size: clamp(32px, 4.6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; color: var(--p-dim); }
.cl-name { position: relative; color: var(--p-fg); transition: color 0.3s; }
.cl-name[data-count] { cursor: default; }
.cl-name[data-count]::after {
  content: attr(data-count);
  position: absolute;
  left: 50%;
  bottom: 100%;
  padding: 6px 10px 5px;
  border-radius: 999px;
  background: var(--p-fg);
  color: var(--p-bg);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
  pointer-events: none;
}
.cl-name[data-count]:hover::after, .cl-name[data-count]:focus-visible::after { opacity: 1; transform: translate(-50%, -4px); }

/* clients: tiles, a project shows behind on hover */
.cl-tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cl-tile > a, .cl-tile > div {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 150px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.cl-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.5s, transform 1s var(--ease-out); }
.cl-tile b { position: relative; font-size: clamp(18px, 1.6vw, 26px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.cl-tile small { position: relative; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--p-dim); }
.cl-tile a:hover img { opacity: 0.55; transform: scale(1); }
.cl-tile a:hover small { color: var(--p-fg); }

/* clients: the names turn on a 3D ring, like the scene's text ring */
.cl-ring { position: relative; height: clamp(110px, 14vw, 200px); overflow: hidden; perspective: 2000px; }
.cl-ring-track { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; animation: cl-spin 40s linear infinite; }
.cl-ring span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  font-weight: 900;
  font-size: clamp(24px, 3.2vw, 54px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(clamp(360px, 54vw, 920px));
  backface-visibility: hidden;
}
.cl-ring span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--p-fg); }
.cl-ring svg { width: 0.32em; height: 0.32em; fill: var(--p-fg); }
.cl-ring:hover .cl-ring-track { animation-play-state: paused; }
@keyframes cl-spin { to { transform: rotateY(-360deg); } }

/* contact: network logos, the email with a copy button */
.net-ic { flex: none; width: 18px; height: 18px; fill: currentColor; overflow: visible; }
.contact-mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.contact-mailrow a { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.01em; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--p-line); transition: text-decoration-color 0.3s; }
.contact-mailrow a:hover { text-decoration-color: currentColor; }
.contact-mailrow .net-ic { width: 20px; height: 20px; }
.copy-btn { padding: 8px 14px 7px; border: 1px solid var(--p-line); border-radius: 999px; font-size: 12px; font-weight: 600; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.copy-btn:hover { border-color: var(--p-fg); }
.copy-btn.is-done { background: var(--p-fg); color: var(--p-bg); border-color: var(--p-fg); }
/* the networks stay on one line: on a narrow screen the circles get a little smaller instead of wrapping */
.contact-nets { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 76px); gap: 10px; margin: 6px 0 0; padding: 0; }
.contact-nets a { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.contact-nets .net-circle { width: min(56px, 100%); height: auto; aspect-ratio: 1; }
.net-circle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--p-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  transition: background 0.35s, color 0.35s, transform 0.5s var(--ease-out), border-color 0.35s;
}
.net-circle .net-ic { width: 22px; height: 22px; }
.contact-nets span { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--p-dim); transition: color 0.3s; }
.contact-nets a:hover .net-circle { background: var(--p-fg); color: var(--p-bg); border-color: var(--p-fg); transform: translateY(-4px) rotate(-6deg); }
.contact-nets a:hover span { color: var(--p-fg); }

.wiz-done { display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .uni-pick { grid-template-columns: 1fr; }
  .uni-card-in { min-height: 0; flex-direction: row; align-items: center; }
  .uni-tools { justify-content: flex-end; }
  .bo-2col { grid-template-columns: 1fr; }
  .cl-tiles { grid-template-columns: 1fr 1fr; }
  .lab-bar { left: 12px; right: 12px; transform: none; }
}

/* --------------------------------------------------------------------------
   Availability statuses + maintenance page
   -------------------------------------------------------------------------- */

.avail[data-status='limited']::before { background: #ffd23d; box-shadow: 0 0 12px #ffd23d; }
.avail[data-status='busy']::before { background: #ff8a3d; box-shadow: 0 0 12px #ff8a3d; }

html.is-maint body > :not(.maint):not(svg):not(script):not(noscript) { display: none !important; }
html.is-maint body { overflow: auto; }
.maint {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  padding: clamp(20px, 3vw, 36px) var(--gutter, 24px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(90% 70% at 70% 30%, #3a44ff 0%, #1a24ff 45%, #0b1090 100%);
}
.maint-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.maint-logo { width: 96px; height: 58px; fill: #fff; }
.maint .lang { display: flex; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 12px; }
.maint .lang { cursor: pointer; }
.maint .lang button { padding: 4px; color: rgba(255, 255, 255, 0.6); }
.maint.is-entering > * { animation: maint-in 0.7s var(--ease-out) both; }
.maint.is-entering > :nth-child(2) { animation-delay: 0.08s; }
.maint.is-entering > :nth-child(3) { animation-delay: 0.16s; }
@keyframes maint-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .maint.is-entering > * { animation: none; } }
.maint .lang button[aria-pressed='true'] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.maint-main { align-self: center; max-width: 1100px; }
.maint .kicker { color: rgba(255, 255, 255, 0.7); }
.maint-title {
  position: relative;
  margin: 0;
  font-weight: 900;
  font-size: clamp(64px, 12vw, 220px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}
.maint-spark { display: inline-block; width: 0.32em; height: 0.32em; margin-left: 0.08em; vertical-align: top; fill: #fff; animation: spin 9s linear infinite; }
.maint-text { max-width: 34em; margin: clamp(22px, 4vh, 40px) 0 0; font-size: clamp(18px, 1.7vw, 26px); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.maint-text .spark { display: inline-block; width: 0.6em; height: 0.6em; fill: #fff; animation: spin 9s linear infinite; }
.maint .avail { margin-top: 26px; color: #fff; }
.maint-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.25); }
.maint-links a { display: grid; grid-template-columns: auto minmax(0, 1fr) 16px; align-items: baseline; gap: 14px; padding: 18px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.25); transition: padding 0.5s var(--ease-out); }
.maint-links span { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.maint-links b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.maint-links svg { width: 14px; height: 14px; }
.maint-links a:hover { padding-left: 12px; }

.maint-banner {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: #ff5a4f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transform: translateX(-50%);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.6);
}
.maint-banner i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2s infinite; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .case-meta { grid-column: 1 / -1; }
  .case-desc { grid-column: 1 / -1; max-width: 40em; }
  .index-cols,
  .index-row { grid-template-columns: 40px minmax(0, 4fr) minmax(0, 2fr) 80px 50px; }
  .index-cols .c-role,
  .index-row .i-role { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 13px; }
  .hud-top { grid-template-columns: auto 1fr; row-gap: 6px; }
  .tagline { grid-column: 1 / -1; grid-row: 2; font-size: 12px; opacity: 0.9; }
  .nav { gap: 16px; font-size: 11px; }
  .nav-link.is-active::before { left: -10px; width: 5px; height: 5px; margin-top: -2.5px; }
  .hud-bottom { grid-template-columns: 1fr auto; row-gap: 14px; }
  .hint { grid-column: 1 / -1; grid-row: 1; font-size: 11px; }
  .switch, .status { grid-row: 2; }
  .status { flex-direction: column; align-items: flex-end; gap: 6px; }
  .switch button { padding: 10px 14px 9px; }

  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .g-row.three,
  .g-row.four { grid-template-columns: 1fr 1fr; }
  .g-row.three > :last-child:nth-child(3) { grid-column: 1 / -1; }
  .g-row.single figure,
  .g-row.single.left figure,
  .g-row.single.right figure { grid-column: 1 / -1; }
  .case-next-img { display: none; }

  .index-cols { display: none; }
  .index-row {
    grid-template-columns: 30px 56px minmax(0, 1fr) auto;
    grid-template-areas: 'num thumb title year' 'num thumb client type';
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
  }
  .index-row .i-num { grid-area: num; }
  .index-row .i-thumb { display: block; grid-area: thumb; width: 64px; height: auto; aspect-ratio: var(--thumb-ratio, 4 / 3); border-radius: 6px; object-fit: cover; }
  /* one card per row on phones: bigger pictures, and client · year + tags fit on one line like on a computer */
  .index-grid { grid-template-columns: 1fr; gap: 36px; }
  .index-row .i-title { grid-area: title; }
  .index-row .i-client { grid-area: client; color: var(--p-dim); font-size: 12px; }
  .index-row .i-type { grid-area: type; justify-self: end; }
  .index-row .i-year { grid-area: year; justify-self: end; }
  .index-preview { display: none; }

  .contact { grid-template-columns: 1fr; }
  .contact-intro-side { padding: 100px var(--gutter) 40px; background: color-mix(in srgb, var(--bg-2) 90%, transparent); }
  .contact-form-side { padding: 40px var(--gutter) 56px; border-left: 0; border-top: 1px solid var(--p-line); }
  .contact-seam { display: none; }
  .clock-big { text-align: left; }
  .panel-close { padding: 8px 8px 8px 14px; }
}

@media (max-width: 420px) {
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
}
