:root {
  --bg: #13110D;            /* deep warm ink */
  --bg-2: #1B1812;
  --paper: #EFE9DA;
  --paper-2: #CFC8B6;
  --mute: #7E7666;
  --rule: rgba(239,233,218,.14);
  --rule-strong: rgba(239,233,218,.28);
  --accent: oklch(0.80 0.13 85); /* PDF-matched metallic gold */

  /* Typographic system — 4 explicit roles */
  --font-simplification: "Jost", "Century Gothic", "Segoe UI", sans-serif;  /* slogan, mises en avant, "un même métier..." */
  --font-minimalisme: "Geist Mono", ui-monospace, monospace;                 /* contact, chips, eyebrows, années d'expérience */
  --font-quote: "Instrument Serif", Georgia, serif;                           /* citation dans le panneau bio */
  --font-general: "Geist", "Noto Sans SC", system-ui, sans-serif;            /* mentions légales, textes conventionnels */
}

* { box-sizing: border-box }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: "Geist", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="ch"] body { font-family: "Noto Sans SC", "Geist", sans-serif }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 80% at 78% 50%, rgba(217,170,99,.10), transparent 70%),
    radial-gradient(40% 60% at 10% 100%, rgba(217,170,99,.05), transparent 65%),
    var(--bg);
}

.mono { font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: .02em }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }


/* ── Layout ─────────────────────────────────────────────────────────────── */

.frame {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 40px 0;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

header { display: flex; align-items: center; justify-content: space-between; gap: 24px }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper-2) }
.brand .logo { height: 34px; width: auto; display: block; filter: brightness(.96) }
.brand .dot { display: none }

.lang {
  position: relative;
  z-index: 300;
  display: flex;
  gap: 2px;
  background: rgba(239,233,218,.04);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  font-family: "Geist Mono", monospace;
}
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--bg) }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: "Geist Mono", monospace;
  color: var(--mute);
  letter-spacing: .06em;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9CC78A;
  box-shadow: 0 0 0 3px rgba(156,199,138,.15);
}


/* ── Main ───────────────────────────────────────────────────────────────── */

main {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 80px;
  padding: 48px 0;
  min-height: 0;
}

.left { position: relative; z-index: 2 }
.left .role { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-2); font-family: "Geist Mono", monospace }
html[data-lang="ch"] .left .role { font-family: "Noto Sans SC", sans-serif; letter-spacing: .18em }

.disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper-2);
  line-height: 1.3;
}
.disciplines span + span { position: relative; padding-left: 18px }
.disciplines span + span::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rule-strong);
}
html[data-lang="ch"] .disciplines { font-family: "Noto Sans SC", sans-serif; letter-spacing: .18em }

.left h1 {
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: .96;
  letter-spacing: -.025em;
  font-weight: 400;
  margin: 22px 0 28px;
  color: var(--paper);
}
.left h1 .small {
  font-size: .55em;
  color: var(--mute);
  font-weight: 300;
  display: block;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.tagline { font-size: 18px; line-height: 1.55; color: var(--paper-2); max-width: 38ch; margin: 0 0 28px }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--mute);
  font-family: "Geist Mono", monospace;
  letter-spacing: .04em;
}
.meta-row .sep { color: var(--rule-strong) }


/* ── Portrait wheel ─────────────────────────────────────────────────────── */

.right {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}
.wheel { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1/1 }
.wheel .ring { position: absolute; inset: 0; border: 1px solid var(--rule); border-radius: 50% }
.wheel .ring.inner { inset: 14%; border-style: dashed; opacity: .6 }

.portrait {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62%; aspect-ratio: 1/1;
  background: url('assets/04-portrait.jpg') center 22%/cover no-repeat;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  /* soft edge fade so portrait blends into bg */
  -webkit-mask-image: radial-gradient(circle at center, #000 38%, rgba(0,0,0,.7) 60%, transparent 88%);
  mask-image: radial-gradient(circle at center, #000 38%, rgba(0,0,0,.7) 60%, transparent 88%);
  filter: grayscale(1) contrast(1.12) brightness(.95);
  cursor: pointer;
  transition: filter .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
.portrait:hover {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: translate(-50%, -50%) scale(1.16);
}

.portrait-hint {
  position: absolute;
  left: 50%; top: 32%; transform: translate(-50%, -50%);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #13110D;
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(19,17,13,.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease .05s;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,.45);
  font-weight: 600;
}
.portrait:hover ~ .portrait-hint { opacity: 1 }

.caption {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, 0);
  margin-top: 18%;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity .2s;
}
.caption .eye {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.caption .val {
  font-family: var(--font-simplification);
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: 0;
  color: var(--paper);
  line-height: 1.15;
}
.caption .val em { font-family: inherit; font-style: normal; color: var(--accent); font-weight: 500 }

.chip {
  position: absolute;
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: lowercase;
  color: var(--paper-2);
  background: rgba(239,233,218,.04);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
html[data-lang="ch"] .chip { font-family: "Noto Sans SC", sans-serif; text-transform: none }
.chip:hover, .chip[data-active="true"] {
  background: var(--paper);
  color: var(--bg);
  border-color: var(--paper);
  transform: scale(1.05);
}
.chip[data-active="true"] { box-shadow: 0 8px 30px rgba(217,170,99,.20) }


/* ── Contact ────────────────────────────────────────────────────────────── */

.contact-block {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px 28px;
  font-size: 13px;
  font-family: "Geist Mono", monospace;
  color: var(--paper-2);
  margin-top: 32px;
}
.contact-block .k { color: var(--mute); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase }
.contact-block .v { font-size: 14px }
.contact-block .v a { border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px }
.contact-block .v a:hover { border-color: var(--accent); color: var(--accent) }


/* ── Footer / selection band ────────────────────────────────────────────── */

footer { border-top: 0; padding: 24px 0 28px; margin-top: 8px; display: flex; flex-direction: column; gap: 0 }

.selection {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.40) 100%);
  border-radius: 8px 8px 0 0;
  padding: 16px 18px 30px;
  margin: 0 -18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.sel-head { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 4px 8px 2px }
.sel-head::before, .sel-head::after {
  content: "";
  flex: 1 1 auto;
  height: 0;
  border-top: 1px solid var(--rule-strong);
  min-width: 24px;
}
.sel-title {
  color: var(--paper-2);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}
html[data-lang="ch"] .sel-title { font-family: "Noto Sans SC", sans-serif; letter-spacing: .18em }
.sel-lead { display: none }

.banner { position: relative; display: flex; align-items: center; gap: 14px; background: transparent; padding: 0; margin: 0 }
.banner .strip { display: flex; gap: 10px; overflow-x: auto; flex: 1; cursor: pointer; min-width: 0; scrollbar-width: none }
.banner .strip::-webkit-scrollbar { display: none }
.banner .actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0 }
.banner .strip img.strip-img { flex: 1 1 0; min-width: 0; height: 108px; border-radius: 5px; object-fit: cover; display: block; cursor: pointer }

.banner .see {
  font-size: 11px;
  font-family: "Geist Mono", monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-2);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  white-space: nowrap;
}
.banner .see:hover { color: var(--accent); border-color: var(--accent) }

/* Ledger-style "grille tarifaire" button */
.see.grille {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  height: 36px;
}
.see.grille > * { display: inline-flex; align-items: center; line-height: 1 }
.see.grille .num {
  padding: 0 12px;
  background: rgba(217,170,99,.08);
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: .06em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--rule);
  transition: background .2s, color .2s;
}
.see.grille .lbl { padding: 0 16px; color: var(--paper); background: rgba(239,233,218,.04); border-right: 1px solid var(--rule) }
.see.grille .cur { padding: 0 12px; font-size: 10px; color: var(--mute); letter-spacing: .18em; background: rgba(0,0,0,.18) }
.see.grille .arr {
  padding: 0 12px 0 8px;
  color: var(--mute);
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  letter-spacing: 0;
  background: rgba(239,233,218,.04);
  border-left: 1px dashed var(--rule);
  transition: transform .2s, color .2s;
}
.see.grille:hover { border-color: var(--accent); transform: translateY(-1px) }
.see.grille:hover .arr { color: var(--accent); transform: translateX(2px) }

/* Extra-subtle variant */
.see.grille.subtle { height: 32px; font-size: 10px; border-color: var(--rule); align-self: center }
.see.grille.subtle .num { font-size: 10px; padding: 0 10px; background: transparent; color: var(--accent) }
.see.grille.subtle .lbl { padding: 0 12px; background: transparent; color: var(--paper-2) }
.see.grille.subtle .cur { padding: 0 10px; background: transparent; font-size: 9px; color: var(--mute) }
.see.grille.subtle .arr { padding: 0 10px 0 6px; background: transparent; border-left: 0; font-size: 12px }

/* Featured highlight slot in strip */
.banner .strip .featured-wrap img.strip-img { width: 100%; height: 100%; border-radius: 5px; object-fit: cover; display: block; border: 1px solid var(--accent); box-shadow: 0 0 0 2px rgba(217,170,99,.10) }
.banner .strip .featured-wrap { position: relative; flex: 1 1 0; min-width: 0; height: 108px; cursor: pointer }
.banner .strip .featured-wrap .tag {
  position: absolute;
  top: -7px; left: 6px;
  background: var(--accent);
  color: #1a140a;
  font-family: "Geist Mono", monospace;
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
  pointer-events: none;
}
.banner .strip .featured-wrap image-slot { border: 1px solid var(--accent); box-shadow: 0 0 0 2px rgba(217,170,99,.10) }


/* ── Closing ─────────────────────────────────────────────────────────────── */

.closing { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; border-top: 1px dashed var(--rule); flex-wrap: wrap }
.closing-text { display: flex; flex-direction: column; gap: 4px; min-width: 240px; flex: 1 }
.closing-text h2 {
  font-family: var(--font-simplification);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
  color: var(--paper-2);
  text-transform: none;
}
.closing-text h2 em {
  font-style: normal;
  color: var(--accent);
  font-family: inherit;
  text-transform: none;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0;
  line-height: 1;
}
html[data-lang="ch"] .closing-text h2 { font-family: "Noto Sans SC", sans-serif; letter-spacing: 0 }
html[data-lang="ch"] .closing-text h2 em { font-family: inherit; font-style: normal }
.closing-text p { margin: 2px 0 0; color: var(--mute); font-size: 13.5px; font-family: var(--font-general); letter-spacing: 0; line-height: 1.45 }

.social { display: flex; gap: 10px; align-items: center; flex-shrink: 0; align-self: flex-end }
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--paper-2);
  background: rgba(239,233,218,.03);
  transition: all .2s ease;
}
.social a:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); transform: translateY(-1px) }
.social a svg { width: 18px; height: 18px; display: block }
.social a.pdf { width: auto; padding: 0 14px 0 12px; gap: 8px; font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; border-radius: 999px }
.social a.pdf svg { width: 14px; height: 14px }


/* ── Biography panel ────────────────────────────────────────────────────── */

.biopanel {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: min(560px, 92vw);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-right: 1px solid var(--rule-strong);
  z-index: 115;
  padding: 48px 48px 36px;
  transform: translateX(-100%);
  transition: transform .5s cubic-bezier(.7,0,.15,1);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 30px 0 80px -30px rgba(0,0,0,.6);
}
.biopanel.open { transform: translateX(0) }

.biopanel .bio-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px }
.biopanel .bio-eye { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent) }
.biopanel .bio-close {
  color: var(--paper-2);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
}
.biopanel .bio-close:hover { border-color: var(--accent); color: var(--accent) }
.biopanel .bio-mark { font-family: "Instrument Serif", serif; font-style: italic; color: var(--accent); font-size: 72px; line-height: .7; height: 24px; margin-top: -4px; letter-spacing: -.04em }

.biopanel .bio-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 46ch;
}
.biopanel .bio-text p { margin: 0; text-indent: 0; text-wrap: pretty }
.biopanel .bio-text p.bio-quote {
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--accent);
  font-size: 1.32em;
  line-height: 1.4;
  letter-spacing: -.005em;
  padding: 6px 0 4px;
  position: relative;
}
.biopanel .bio-text p.bio-quote::before {
  content: "\201C";
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--accent);
  font-size: 2.2em;
  line-height: 0;
  vertical-align: -.32em;
  margin-right: .08em;
  letter-spacing: -.04em;
}
.biopanel .bio-text p.bio-quote::after {
  content: "\201D";
  font-family: var(--font-quote);
  font-style: italic;
  color: var(--accent);
  font-size: 2.2em;
  line-height: 0;
  vertical-align: -.45em;
  margin-left: .04em;
  letter-spacing: -.04em;
}
html[data-lang="ch"] .biopanel .bio-text p.bio-quote,
html[data-lang="ch"] .biopanel .bio-text p.bio-quote::before,
html[data-lang="ch"] .biopanel .bio-text p.bio-quote::after { font-family: "Noto Serif SC", serif; font-style: normal }

html[data-lang="ch"] .biopanel .bio-text { font-family: "Noto Serif SC", "Noto Sans SC", serif; font-weight: 400; font-size: 16.5px; line-height: 1.75 }

.biopanel .bio-showreel { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 18px 0; border-top: 1px dashed var(--rule); max-width: 46ch }
.biopanel .bio-showreel .sr-lead { font-size: 14.5px; line-height: 1.5; color: var(--paper-2); font-weight: 300 }
.biopanel .bio-showreel a.sr-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.biopanel .bio-showreel a.sr-cta:hover { background: var(--accent); color: #13110D }
.biopanel .bio-showreel a.sr-cta svg { width: 11px; height: 11px }
html[data-lang="ch"] .biopanel .bio-showreel .sr-lead { font-family: "Noto Sans SC", sans-serif }
html[data-lang="ch"] .biopanel .bio-showreel a.sr-cta { font-family: "Noto Sans SC", sans-serif; letter-spacing: .1em }

.biopanel .bio-sign {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}
.biopanel .bio-sign .sig { font-family: var(--font-quote); font-style: italic; color: var(--paper); font-size: 24px; letter-spacing: -.01em; text-transform: none; line-height: 1 }

.biopanel-scrim { position: fixed; inset: 0; background: rgba(13,11,9,.5); backdrop-filter: blur(3px); z-index: 114; opacity: 0; pointer-events: none; transition: opacity .35s ease }
.biopanel-scrim.open { opacity: 1; pointer-events: auto }

/* Bio first paragraph */
#bioText > p:nth-child(1) { font-weight: 600 }

@media (max-width: 600px) {
  .biopanel { padding: 28px 22px }
  .biopanel .bio-text { font-size: 15.5px }
}


/* ── Highlight popups ───────────────────────────────────────────────────── */

.hlbox {
  position: fixed;
  inset: 0;
  background: rgba(13,11,9,.94);
  display: none;
  z-index: 120;
  padding: 48px;
  backdrop-filter: blur(10px);
  overflow: auto;
}
.hlbox.open { display: flex; flex-direction: column; align-items: center }
.hlbox .hl-inner { max-width: 1100px; width: 100%; margin: auto 0 }
.hlbox .hl-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule-strong); gap: 24px }
.hlbox .hl-head.bare { border-bottom: 0; padding-bottom: 0; margin-bottom: 18px; justify-content: flex-end }
.hlbox .hl-eyebrow { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px }
.hlbox .hl-title { font-family: var(--font-simplification); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: 0; font-weight: 400; margin: 0; color: var(--paper) }
.hlbox .hl-title .it { font-family: inherit; font-style: normal; font-weight: 500; color: var(--accent); letter-spacing: 0 }
html[data-lang="ch"] .hlbox .hl-title,
html[data-lang="ch"] .hlbox .hl-title .it { font-family: "Noto Sans SC", sans-serif; font-style: normal }
.hlbox .hl-close {
  color: var(--paper);
  background: rgba(239,233,218,.06);
  border: 1px solid var(--rule-strong);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-end;
}
.hlbox .hl-close:hover { border-color: var(--accent); color: var(--accent) }

.hlbox .hl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 36px; align-items: start; justify-items: stretch }
.hlbox .hl-grid img.hl-img {
  width: 100%;
  height: auto;
  aspect-ratio: 5/3;
  object-fit: cover;
  max-height: min(60vh, 560px);
  border-radius: 6px;
  border: 1px solid var(--rule);
  cursor: zoom-in;
  background: #0c0a07;
  display: block;
  transition: border-color .2s, transform .2s;
}
.hlbox .hl-grid img.hl-img:hover { border-color: var(--accent); transform: translateY(-2px) }
.hlbox .hl-grid.single { margin-bottom: 0; grid-template-columns: 1fr }
.hlbox .hl-grid.single img.hl-img { aspect-ratio: auto; max-height: min(78vh,820px); width: auto; max-width: 100%; object-fit: contain; background: transparent; border: 0; margin: 0 auto }
.hlbox .hl-grid .hl-img.bg { aspect-ratio: 249/140; background-color: #0c0a07; background-size: cover; background-position: center; border-radius: 6px; border: 1px solid var(--rule); width: 100%; height: auto; max-height: none }

.hlbox .hl-body { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start }
.hlbox .hl-body p { font-size: 17px; line-height: 1.55; color: var(--paper-2); margin: 0; max-width: 48ch }
.hlbox .hl-body .k { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px }

@media (max-width: 800px) {
  .hlbox { padding: 24px }
  .hlbox .hl-grid { grid-template-columns: 1fr }
  .hlbox .hl-body { grid-template-columns: 1fr; gap: 18px }
}


/* ── Showreel lightbox ──────────────────────────────────────────────────── */

.srbox {
  position: fixed;
  inset: 0;
  background: rgba(8,7,5,.96);
  display: none;
  z-index: 140;
  padding: 24px;
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
}
.srbox.open { display: flex }
.srbox .sr-frame { width: min(1720px, 96vw); aspect-ratio: 16/9; max-height: 94vh; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); position: relative }
.srbox .sr-frame iframe { width: 100%; height: 100%; display: block; border: 0 }
.srbox .sr-close {
  position: absolute;
  top: 18px; right: 18px;
  color: var(--paper);
  background: rgba(13,11,9,.55);
  border: 1px solid var(--rule-strong);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.srbox .sr-close:hover { border-color: var(--accent); color: var(--accent) }
.srbox .sr-eyebrow {
  position: absolute;
  top: 22px; left: 24px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(13,11,9,.55);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}


/* ── Zoom overlay ───────────────────────────────────────────────────────── */

.zoombox {
  position: fixed;
  inset: 0;
  background: rgba(8,7,5,.96);
  display: none;
  z-index: 130;
  padding: 32px;
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
}
.zoombox.open { display: flex }

.zoom-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
  max-height: calc(100vh - 64px);
}
.zoom-frame img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.zoombox .zoom-close {
  color: var(--paper);
  background: rgba(239,233,218,.06);
  border: 1px solid var(--rule-strong);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}
.zoombox .zoom-close:hover { border-color: var(--accent); color: var(--accent) }
.zoombox .zoom-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  pointer-events: none;
}


/* ── Rate sheet popup ───────────────────────────────────────────────────── */

#openRates { display: none }

.ratebox {
  position: fixed;
  inset: 0;
  background: rgba(13,11,9,.94);
  display: none;
  z-index: 110;
  padding: 48px;
  backdrop-filter: blur(10px);
  overflow: auto;
}
.ratebox.open { display: flex; flex-direction: column; align-items: center }
.ratebox .rb-inner { max-width: 1100px; width: 100%; margin: auto 0 }
.ratebox .rb-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--rule-strong); gap: 24px }
.ratebox .rb-eyebrow { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px }
.ratebox .rb-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1; letter-spacing: -.02em; font-weight: 400; margin: 0; color: var(--paper) }
.ratebox .rb-title .it { font-family: "Instrument Serif", serif; font-style: italic; color: var(--accent) }
html[data-lang="ch"] .ratebox .rb-title .it { font-family: sans-serif; font-style: normal }
.ratebox .rb-close {
  color: var(--paper);
  background: rgba(239,233,218,.06);
  border: 1px solid var(--rule-strong);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ratebox .rb-close:hover { border-color: var(--accent); color: var(--accent) }
.ratebox .rb-intro { font-size: 16px; line-height: 1.55; color: var(--paper-2); max-width: 60ch; margin: 0 0 28px }

.ratebox table { width: 100%; border-collapse: collapse; font-size: 14.5px; color: var(--paper) }
.ratebox thead th {
  text-align: left;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.ratebox thead th:last-child { text-align: right; padding-right: 0 }
.ratebox tbody td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--paper-2); line-height: 1.45 }
.ratebox tbody tr td:first-child { color: var(--paper); font-weight: 500; width: 22% }
.ratebox tbody tr td:nth-child(3) { width: 9%; font-family: "Geist Mono", monospace; color: var(--mute) }
.ratebox tbody tr td:last-child { text-align: right; font-family: "Geist Mono", monospace; white-space: nowrap; color: var(--paper); padding-right: 0; width: 24% }
.ratebox .rb-notes { margin-top: 24px; display: grid; gap: 10px; font-size: 12.5px; line-height: 1.55; color: var(--mute); font-family: "Geist Mono", monospace; letter-spacing: .02em; padding-top: 18px; border-top: 1px dashed var(--rule) }
html[data-lang="ch"] .ratebox .rb-notes { font-family: "Noto Sans SC", sans-serif }

@media (max-width: 800px) {
  .ratebox { padding: 20px }
  .ratebox table, .ratebox thead, .ratebox tbody, .ratebox tr, .ratebox td, .ratebox th { display: block }
  .ratebox thead { display: none }
  .ratebox tbody tr { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 4px 16px }
  .ratebox tbody td { border-bottom: 0; padding: 2px 0; width: auto !important }
  .ratebox tbody td:first-child { grid-column: 1/3; font-size: 15px }
  .ratebox tbody td:nth-child(2) { grid-column: 1/2; color: var(--paper-2); font-size: 13px }
  .ratebox tbody td:nth-child(3) { display: none }
  .ratebox tbody td:last-child { grid-column: 2/3; text-align: right; align-self: center }
}


/* ── Legal / privacy overlay ────────────────────────────────────────────── */

.legal-toggle {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s ease;
  white-space: nowrap;
  align-self: center;
}
.legal-toggle:hover { color: var(--accent) }
.legal-toggle .chev {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .35s ease;
  margin-bottom: 2px;
}
.legal-toggle[aria-expanded="true"] .chev { transform: rotate(135deg); margin-bottom: -2px }

.legal-scrim { position: fixed; inset: 0; background: rgba(13,11,9,.5); backdrop-filter: blur(3px); z-index: 124; opacity: 0; pointer-events: none; transition: opacity .35s ease }
.legal-scrim.open { opacity: 1; pointer-events: auto }

.legal-overlay {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 125;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--rule-strong);
  box-shadow: 0 -30px 60px -20px rgba(0,0,0,.6);
  max-height: min(82vh, 720px);
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
}
.legal-overlay.open { transform: translateY(0) }
.legal-overlay .lo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 40px 14px; border-bottom: 1px solid var(--rule); flex: 0 0 auto }
.legal-overlay .lo-eyebrow { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent) }
.legal-overlay .lo-close {
  color: var(--paper-2);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.legal-overlay .lo-close:hover { border-color: var(--accent); color: var(--accent) }
.legal-overlay .lo-body { padding: 22px 40px 28px; overflow: auto; flex: 1 1 auto }
.legal-overlay p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(217,170,99,.35); transition: border-color .2s }
.legal-overlay p a:hover { border-color: var(--accent) }
.legal-overlay .lp-inner { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px 48px; max-width: 1180px; margin: 0 auto }
.legal-overlay h3 { font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; font-weight: 500 }
.legal-overlay p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; color: var(--paper-2); text-wrap: pretty }
.legal-overlay .lp-updated { grid-column: 1/-1; text-align: center; font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); padding-top: 14px; border-top: 1px dashed var(--rule); margin-top: 4px }
html[data-lang="ch"] .legal-overlay p { font-family: "Noto Sans SC", sans-serif; font-size: 13.5px; line-height: 1.7 }

@media (max-width: 720px) {
  .legal-overlay .lo-head, .legal-overlay .lo-body { padding-left: 22px; padding-right: 22px }
  .legal-overlay .lp-inner { grid-template-columns: 1fr; gap: 22px }
}


/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 }
  .right { min-height: 380px }
  .wheel { max-width: 380px }
  .frame { padding: 20px 22px 0 }
  .closing { flex-direction: column; align-items: flex-start; gap: 20px }
  .social { align-self: flex-start }
}
