:root {
  --paper: #eef0f3;
  --paper-2: #e3e6ec;
  --ink: #12141c;
  --mute: #5a6072;
  --stage: #0c1024;
  --stage-2: #161b36;
  --on-stage: #e9ebf5;
  --on-stage-mute: #9aa1c2;
  --gel: #6b4cff;
  --gel-light: #a995ff;
  --tungsten: #ffc94a;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);

  /* modular scale, ratio ~1.333 */
  --t-0: 1rem;
  --t-1: 1.333rem;
  --t-2: 1.777rem;
  --t-3: 2.369rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gel); }
:focus-visible { outline: 3px solid var(--tungsten); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  color: var(--on-stage);
}
.top .wrap { display: flex; align-items: center; justify-content: flex-end; height: 76px; }
.top .mark { font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -0.01em; text-decoration: none; font-size: 1.05rem; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--on-stage-mute); }
.top nav a:hover { color: var(--on-stage); }
@media (max-width: 640px) { .top nav a:not(.nav-contact):not(.lang) { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: var(--stage);
  color: var(--on-stage);
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
}
.hero-photo {
  position: absolute; inset: 0;
  background: #000 url("../img/portrait.jpg") no-repeat 78% 60% / cover;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--stage) 0%, rgba(12, 16, 36, 0.85) 38%, rgba(12, 16, 36, 0) 70%),
    linear-gradient(0deg, var(--stage) 0%, rgba(12, 16, 36, 0) 40%);
}
.hero .wrap { position: relative; padding-top: 140px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 {
  margin: 0;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.hero h1 span { display: block; }
.hero .lede {
  margin: clamp(24px, 3vw, 36px) 0 0;
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.3;
  color: var(--on-stage);
}
.hero .roles {
  margin: 20px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  color: var(--on-stage-mute); font-size: 0.98rem;
}
.hero .roles strong { color: var(--on-stage); font-weight: 600; }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero-photo { background-position: 70% 30%; opacity: 0.55; }
  .hero .wrap { padding-top: 220px; }
}

/* ---------- section scaffolding ---------- */
section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 {
  margin: 0;
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: var(--t-3); line-height: 1.02; letter-spacing: -0.02em;
}
.section-head p { margin: 0; max-width: 58ch; color: var(--mute); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- intro ---------- */
.intro .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.intro .big {
  margin: 0; font-size: var(--t-2); line-height: 1.22; letter-spacing: -0.01em; font-weight: 500;
  max-width: 30ch;
}
.intro .body p { margin: 0 0 1em; max-width: 62ch; }
.intro .body p:last-child { margin-bottom: 0; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--paper-2); padding-top: 28px; }
.facts b { display: block; font-size: var(--t-2); font-weight: 800; font-variation-settings: "wdth" 125; line-height: 1; letter-spacing: -0.02em; }
.facts span { color: var(--mute); font-size: 0.95rem; }
@media (max-width: 860px) { .intro .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- ventures lineup (the signature) ---------- */
.ventures { background: var(--stage); color: var(--on-stage); }
.ventures .section-head p { color: var(--on-stage-mute); }
.lineup { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stage-2); }
.lineup > li { border-bottom: 1px solid var(--stage-2); }
.lineup .head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 32px;
  padding: clamp(18px, 2.4vw, 30px) 0;
}
.lineup .name {
  font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(2rem, 6.4vw, 5.6rem); line-height: 0.92; letter-spacing: -0.03em;
}
.lineup .meta { text-align: right; color: var(--on-stage-mute); font-size: 0.98rem; white-space: nowrap; }
.lineup .meta strong { display: block; color: var(--on-stage); font-weight: 600; }
.lineup .more {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px;
  padding: 0 0 clamp(28px, 3.5vw, 44px);
}
.lineup .more p { margin: 0 0 1em; max-width: 62ch; color: var(--on-stage); }
.lineup .more .side { color: var(--on-stage-mute); font-size: 0.98rem; }
.lineup .more .side ul { margin: 0 0 16px; padding-left: 1.1em; }
.lineup .more a { color: var(--gel-light); }
.lineup .more a:hover { color: var(--on-stage); }
@media (max-width: 760px) {
  .lineup .head { grid-template-columns: 1fr; }
  .lineup .meta { text-align: left; white-space: normal; }
  .lineup .more { grid-template-columns: 1fr; }
}
.earlier { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; }
.earlier h3 { margin: 0; font-size: var(--t-1); font-weight: 700; }
.earlier dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; }
.earlier dt { color: var(--on-stage-mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.earlier dd { margin: 0; max-width: 62ch; }
@media (max-width: 760px) { .earlier { grid-template-columns: 1fr; } .earlier dl { grid-template-columns: 1fr; gap: 2px; } .earlier dd { margin-bottom: 12px; } }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.work-item { grid-column: span 2; margin: 0; }
.work-item.wide { grid-column: span 3; }
.work-item a { display: block; text-decoration: none; }
.work-item .img { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 2; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-item a:hover img { transform: scale(1.03); }
.work-item .play {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--paper); color: var(--ink);
  font-size: 0.85rem; font-weight: 600; padding: 6px 12px 6px 10px; border-radius: 99px;
  display: inline-flex; gap: 6px; align-items: center;
}
.work-item .play svg { width: 12px; height: 12px; }
.work-item figcaption { padding-top: 12px; }
.work-item figcaption b { display: block; font-weight: 700; font-size: 1.05rem; }
.work-item figcaption span { color: var(--mute); font-size: 0.95rem; }
@media (max-width: 900px) { .work-item, .work-item.wide { grid-column: span 3; } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } .work-item, .work-item.wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .work-item img { transition: none; } }

/* ---------- press ---------- */
.press { background: var(--paper-2); }
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cdd1da; }
.press-list li { border-bottom: 1px solid #cdd1da; }
.press-list a {
  display: grid; grid-template-columns: minmax(160px, 2fr) minmax(0, 7fr); gap: 8px 32px;
  padding: 20px 0; text-decoration: none; align-items: baseline;
}
.press-list .outlet { font-weight: 700; }
.press-list .title { font-size: 1.12rem; line-height: 1.35; }
.press-list a:hover .title { color: var(--gel); text-decoration: underline; }
@media (max-width: 700px) { .press-list a { grid-template-columns: 1fr; } }

/* ---------- teaching ---------- */
.teach-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.teach-grid h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; }
.teach-grid ul { margin: 0; padding: 0; list-style: none; color: var(--mute); font-size: 0.97rem; }
.teach-grid li { margin-bottom: 8px; }
@media (max-width: 900px) { .teach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .teach-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--stage); color: var(--on-stage); }
.contact h2 {
  margin: 0; max-width: 16ch;
  font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.03em;
}
.contact p { max-width: 52ch; color: var(--on-stage-mute); margin: 24px 0 36px; font-size: 1.15rem; }
.contact .links { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 99px; text-decoration: none; font-weight: 600;
  border: 1.5px solid var(--on-stage-mute); color: var(--on-stage);
}
.btn:hover { border-color: var(--on-stage); color: var(--on-stage); background: var(--stage-2); }
.btn.primary { background: var(--gel); border-color: var(--gel); color: #fff; }
.btn.primary:hover { background: #5a3cf0; border-color: #5a3cf0; color: #fff; }
.btn svg { width: 18px; height: 18px; }

footer { background: var(--stage); color: var(--on-stage-mute); font-size: 0.9rem; border-top: 1px solid var(--stage-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
footer a { color: var(--on-stage-mute); }

/* ---------- language switch ---------- */
.top nav a.lang { color: var(--on-stage); font-weight: 600; border: 1.5px solid var(--on-stage-mute); border-radius: 99px; padding: 1px 10px; }
.top nav a.lang:hover { border-color: var(--on-stage); }
@media (max-width: 640px) { .top nav a.lang { display: inline-block; } }

/* ---------- video modal ---------- */
.modal-open { overflow: hidden; }
.video-modal {
  width: min(1100px, calc(100vw - 32px));
  max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.video-modal::backdrop { background: rgba(6, 8, 18, 0.88); }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-close {
  position: absolute; right: 0; top: -52px;
  width: 44px; height: 44px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); display: grid; place-items: center;
}
.video-close svg { width: 20px; height: 20px; }
.video-close:hover { background: #fff; }

/* ---------- work sub-groups ---------- */
.work-sub { margin: 0 0 clamp(28px, 4vw, 48px); font-weight: 800; font-variation-settings: "wdth" 112; font-size: var(--t-3); line-height: 1.02; letter-spacing: -0.02em; }
.work-grid + .work-sub { margin-top: clamp(56px, 7vw, 96px); }
.work-item.r169 .img { aspect-ratio: 16 / 9; }
.work-item.full { grid-column: 1 / -1; }
@media (max-width: 900px) { .work-item.full { grid-column: 1 / -1; } }

/* ---------- consent banner + privacy modal ---------- */
.mm-noscroll { overflow: hidden; }
.mm-consent {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px;
  max-width: 460px; margin-left: auto;
  background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(6, 8, 18, 0.35);
}
.mm-consent[hidden], .mm-modal[hidden] { display: none; }
.mm-consent h2 { margin: 0 32px 8px 0; font-size: 1.1rem; font-weight: 700; }
.mm-consent p { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.5; color: var(--mute); }
.mm-consent__close, .mm-modal__close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border: 0; border-radius: 99px; background: transparent; color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.mm-consent__close:hover, .mm-modal__close:hover { background: var(--paper-2); }
.mm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.mm-btn {
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  padding: 10px 20px; border-radius: 99px; border: 1.5px solid var(--ink);
}
.mm-btn--outline { background: transparent; color: var(--ink); }
.mm-btn--outline:hover { background: var(--paper-2); }
.mm-btn--solid { background: var(--gel); border-color: var(--gel); color: #fff; }
.mm-btn--solid:hover { background: #5a3cf0; border-color: #5a3cf0; }
.mm-linkbtn {
  font: inherit; font-size: 0.92rem; background: none; border: 0; padding: 4px 0;
  color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.mm-consent .mm-linkbtn { color: var(--mute); }
.mm-modal {
  position: fixed; inset: 0; z-index: 60; background: rgba(6, 8, 18, 0.7);
  display: grid; place-items: center; padding: 16px;
}
.mm-modal__box {
  position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--paper); color: var(--ink); border-radius: 14px; padding: 32px clamp(20px, 4vw, 40px);
  outline: none;
}
.mm-modal__box h2 { margin: 0 40px 4px 0; font-size: var(--t-2); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; line-height: 1.1; }
.mm-modal__box h3 { margin: 24px 0 6px; font-size: 1.05rem; font-weight: 700; }
.mm-modal__box p, .mm-modal__box li { font-size: 0.97rem; line-height: 1.55; max-width: 66ch; }
.mm-modal__box ul { padding-left: 1.1em; margin: 0; }
.mm-modal__box li { margin-bottom: 8px; }
.mm-modal__box a { color: var(--gel); }
.mm-updated { color: var(--mute); margin: 0; }
.mm-modal__footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--paper-2); }
.mm-current { margin: 0 0 12px; color: var(--mute); }
footer .mm-footer-links { display: flex; gap: 18px; }
footer .mm-linkbtn { color: var(--on-stage-mute); }
footer .mm-linkbtn:hover { color: var(--on-stage); }
