:root {
  --canvas: #161616;
  --slide-dark: #000;
  --slide-light: #fff;
  --ink: #fff;
  --ink-2: #9a9a9a;
  --ink-3: #5c5c5c;
  --lk-ink: #111;
  --lk-ink-2: #6b6b6b;
  --lk-line: #e6e6e6;
  --line: rgba(255,255,255,.14);
  --ui-bg: rgba(70,70,70,.95);
  --ui-bg-hover: #5a5a5a;
  --ui-selected: rgba(255,255,255,.12);
  --ui-text: #fff;
  --ui-muted: #a3a3a3;
  --active: #facc15;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ───────────── Canvas ───────────── */
#viewport { position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: default; }
#world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
#world.anim { transition: transform .85s var(--ease); }
body.overview #viewport { cursor: grab; }
body.overview.dragging #viewport { cursor: grabbing; }
body.tool-highlight #viewport { cursor: crosshair; }
body.tool-sticky #viewport { cursor: copy; }

.row-label {
  position: absolute; font-size: 130px; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink-2); opacity: 0; transition: opacity .5s; pointer-events: none; white-space: nowrap;
}
.row-label i { font-family: var(--serif); font-weight: 400; color: var(--ink-3); margin-right: 40px; }
body.overview .row-label { opacity: 1; }

.slide {
  position: absolute; width: 1280px; height: 720px; overflow: hidden;
  background: var(--slide-dark); color: var(--ink);
  padding: 76px 96px 64px;
  transition: opacity .5s, box-shadow .3s;
}
.slide.light { background: var(--slide-light); color: var(--lk-ink); }
body.overview .slide { cursor: zoom-in; }
body.overview .slide:hover { box-shadow: 0 0 0 6px rgba(255,255,255,.35); }
body.overview .slide * { pointer-events: none; }

.slide-foot {
  position: absolute; left: 96px; right: 96px; bottom: 30px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.light .slide-foot { color: #b5b5b5; }

/* ───────────── Typography ───────────── */
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 28px; }
.light .kicker { color: var(--lk-ink-2); }
.hl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: 1.12em; line-height: .9; }
.lnk {
  display: inline-flex; align-items: center; gap: 6px; font-size: 18px; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px; cursor: pointer; transition: opacity .2s;
}
.lnk:hover { opacity: .65; }
.links { display: flex; gap: 32px; margin-top: 40px; }
.body { font-size: 20px; line-height: 1.55; color: var(--ink-2); font-weight: 300; }
.light .body { color: #3d3d3d; }
.signature { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; letter-spacing: -.01em; }

/* ───────────── Layout: particle hero ───────────── */
.l-particle { padding: 0; }
.l-particle canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-particle .explore { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); font-size: 20px; }
.l-particle .hero-meta {
  position: absolute; left: 0; right: 0; top: 56px; text-align: center;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3);
}

/* ───────────── Layout: intro ───────────── */
.l-intro { display: flex; flex-direction: column; justify-content: center; padding-left: 150px; padding-right: 150px; }
.l-intro .signature { margin-bottom: 56px; }
.l-intro .intro { font-size: 22px; line-height: 1.45; font-weight: 400; margin-bottom: 28px; white-space: pre-line; }
.l-intro h2 { font-size: 42px; line-height: 1.22; font-weight: 300; letter-spacing: -.015em; color: var(--ink-2); max-width: 920px; }
.l-intro h2 .hl { color: var(--ink); }

/* ───────────── Layout: menu ───────────── */
.l-menu { display: grid; grid-template-columns: 1fr 1fr; }
.l-menu .label { font-size: 15px; color: var(--ink-2); }
.l-menu ol { list-style: none; align-self: center; counter-reset: m; }
.l-menu li { counter-increment: m; border-bottom: 1px solid var(--line); }
.l-menu li a {
  display: flex; align-items: baseline; gap: 20px; padding: 22px 0; font-size: 34px; font-weight: 400;
  text-decoration: none; letter-spacing: -.01em; transition: padding .3s var(--ease), color .2s;
}
.l-menu li a::before { content: "0" counter(m); font-size: 12px; color: var(--ink-3); }
.l-menu li a:hover { padding-left: 14px; }
.l-menu li a::after { content: "↗"; margin-left: auto; font-size: 22px; opacity: 0; transition: opacity .2s; }
.l-menu li a:hover::after { opacity: 1; }

/* ───────────── Layout: about ───────────── */
.l-about h2 { font-size: 58px; line-height: 1.08; font-weight: 400; letter-spacing: -.025em; max-width: 1000px; margin-bottom: 56px; }
.l-about .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.l-about .cols p { font-size: 17px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.l-about .cols p:first-child { color: var(--ink); }

/* ───────────── Layout: practice ───────────── */
.l-practice h2 { font-size: 64px; line-height: 1.05; font-weight: 400; letter-spacing: -.03em; max-width: 900px; margin-bottom: 70px; }
.l-practice .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.l-practice .p { padding: 28px 28px 0 0; }
.l-practice .p + .p { padding-left: 28px; border-left: 1px solid var(--line); }
.l-practice .p b { display: block; font-weight: 500; font-size: 20px; margin-bottom: 14px; }
.l-practice .p span { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); font-weight: 300; }

/* ───────────── Layout: timeline ───────────── */
.l-timeline h2 { font-size: 54px; font-weight: 400; letter-spacing: -.025em; margin-bottom: 90px; }
.l-timeline .tl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.l-timeline .tl::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 1px; background: var(--line); }
.l-timeline .st { padding-right: 22px; position: relative; }
.l-timeline .st span { font-size: 14px !important; }
.l-timeline .yr { font-family: var(--serif); font-style: italic; font-size: 36px; line-height: 1; height: 40px; }
.l-timeline .st::after { content: ""; position: absolute; left: 0; top: 47px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.l-timeline .st:last-child::after { box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
.l-timeline .st b { display: block; margin-top: 46px; font-weight: 500; font-size: 18px; margin-bottom: 10px; }
.l-timeline .st span { font-size: 15px; line-height: 1.55; color: var(--ink-2); font-weight: 300; }

/* ───────────── Layout: testimonials ───────────── */
.l-testimonials { display: grid; grid-template-columns: 380px 1fr; gap: 40px; }
.l-testimonials h2 { font-size: 64px; font-weight: 400; letter-spacing: -.03em; line-height: 1; margin-bottom: 26px; }
.l-testimonials .hint { font-size: 14px; color: var(--ink-3); }
.l-testimonials .count { margin-top: 30px; font-size: 13px; color: var(--ink-2); letter-spacing: .1em; }
.deck { position: relative; height: 100%; }
.card {
  position: absolute; left: 50%; top: 50%; width: 560px; min-height: 300px; margin: -170px 0 0 -280px;
  background: #fff; color: #111; border-radius: 18px; padding: 40px 44px 36px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45); cursor: grab; user-select: none;
  transition: transform .55s var(--ease), box-shadow .3s;
}
.card.dragging { transition: none; cursor: grabbing; }
.card q { font-size: 23px; line-height: 1.4; font-weight: 400; letter-spacing: -.01em; quotes: "“" "”"; }
.card .who b { display: block; font-weight: 500; font-size: 16px; }
.card .who span { font-size: 13px; color: #777; }

/* ───────────── Layout: jigsaw ───────────── */
.l-jigsaw { display: grid; grid-template-columns: 1fr 500px; align-items: center; gap: 60px; }
.l-jigsaw h2 { font-size: 72px; font-weight: 400; letter-spacing: -.03em; margin-bottom: 24px; }
.l-jigsaw .state { margin-top: 28px; font-size: 14px; color: var(--ink-3); letter-spacing: .08em; }
.puzzle { position: relative; width: 500px; height: 500px; display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; cursor: pointer; }
.tile { background-size: 500px 550px; border-radius: 3px; transition: transform .35s var(--ease), outline-color .2s; outline: 2px solid transparent; outline-offset: -2px; }
.tile.sel { outline-color: var(--active); transform: scale(.94); }
.puzzle.solved { gap: 0; }
.puzzle.solved .tile { border-radius: 0; }

/* ───────────── Layout: work index ───────────── */
.l-index { display: grid; grid-template-columns: 330px 1fr; gap: 70px; }
.l-index h2 { font-size: 64px; font-weight: 400; letter-spacing: -.03em; margin-bottom: 26px; }
.l-index .body { font-size: 16px; }
.l-index ol { list-style: none; align-self: center; }
.l-index li { border-bottom: 1px solid var(--line); }
.l-index li:first-child { border-top: 1px solid var(--line); }
.l-index li a { display: grid; grid-template-columns: 50px 1fr auto; align-items: baseline; padding: 17px 0; text-decoration: none; cursor: pointer; transition: padding .3s var(--ease); }
.l-index li a:hover { padding-left: 12px; }
.l-index .n { font-size: 12px; color: var(--ink-3); }
.l-index .t { font-size: 25px; letter-spacing: -.01em; }
.l-index .g { font-size: 13px; color: var(--ink-2); }

/* ───────────── Layout: project cover ───────────── */
.l-cover { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 92px; }
.l-cover .big-n {
  position: absolute; right: 70px; top: 10px; font-family: var(--serif); font-style: italic;
  font-size: 420px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.22); user-select: none;
}
.l-cover h2 { font-size: 92px; line-height: .98; font-weight: 400; letter-spacing: -.035em; max-width: 960px; margin-bottom: 30px; }
.l-cover .body { max-width: 720px; font-size: 21px; }
.l-cover .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.l-cover .tags span { border: 1px solid var(--line); border-radius: 99px; padding: 7px 15px; font-size: 13px; color: var(--ink-2); }
.l-cover .links { position: absolute; right: 96px; bottom: 96px; margin: 0; }

/* ───────────── Layout: project intro (light) ───────────── */
.l-pintro { display: flex; flex-direction: column; justify-content: center; padding-left: 130px; padding-right: 200px; }
.l-pintro h2 { font-size: 50px; line-height: 1.1; font-weight: 400; letter-spacing: -.025em; margin-bottom: 36px; }
.l-pintro .body { max-width: 860px; }

/* ───────────── Layout: details (light) ───────────── */
.l-details h2 { font-size: 54px; font-weight: 400; letter-spacing: -.025em; margin-bottom: 80px; }
.l-details .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.l-details .c h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--lk-ink-2); padding-bottom: 18px; border-bottom: 1px solid var(--lk-line); margin-bottom: 18px; }
.l-details .c li { list-style: none; font-size: 19px; line-height: 1.35; margin-bottom: 12px; }

/* ───────────── Layout: content ───────────── */
.l-content { display: grid; grid-template-columns: 1fr 380px; gap: 90px; align-content: center; }
.l-content.noaside { grid-template-columns: 1fr; padding-right: 260px; }
.l-content h2 { font-size: 54px; font-weight: 400; letter-spacing: -.025em; margin-bottom: 34px; }
.l-content .body { font-size: 23px; line-height: 1.5; }
.l-content aside { border-left: 1px solid var(--lk-line); padding-left: 36px; align-self: end; }
.l-content:not(.light) aside { border-color: var(--line); }
.l-content aside h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lk-ink-2); font-weight: 500; margin-bottom: 18px; }
.l-content aside li { list-style: none; font-size: 18px; line-height: 1.4; padding: 10px 0; border-bottom: 1px solid var(--lk-line); }
.l-content blockquote { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.25; }
.l-content blockquote cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* ───────────── Layout: process (light) ───────────── */
.l-process h2 { font-size: 54px; font-weight: 400; letter-spacing: -.025em; margin-bottom: 84px; }
.l-process .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.l-process .s { counter-increment: s; padding: 0 30px 0 0; position: relative; }
.l-process .s::before { content: "0" counter(s); display: block; font-size: 12px; color: var(--lk-ink-2); margin-bottom: 16px; }
.l-process .s::after { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: #111; transform-origin: left; }
.l-process .s:not(:first-child)::after { background: var(--lk-line); }
.l-process .s b { display: block; font-size: 30px; font-weight: 400; letter-spacing: -.02em; margin: 38px 0 16px; }
.l-process .s span { font-size: 16.5px; line-height: 1.55; color: #444; font-weight: 300; }

/* ───────────── Layout: metrics (dark) ───────────── */
.l-metrics h2 { font-size: 54px; font-weight: 400; letter-spacing: -.025em; margin-bottom: 90px; }
.l-metrics .grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); }
.l-metrics .m { padding: 34px 32px 0 0; }
.l-metrics .m + .m { padding-left: 32px; border-left: 1px solid var(--line); }
.l-metrics .v { font-size: 96px; line-height: 1; font-weight: 300; letter-spacing: -.045em; margin-bottom: 26px; white-space: nowrap; }
.l-metrics .m4 .v { font-size: 76px; }
.l-metrics .m b { display: block; font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.l-metrics .m span { font-size: 15px; line-height: 1.5; color: var(--ink-2); font-weight: 300; }

/* ───────────── Layout: columns (light) ───────────── */
.l-columns h2 { font-size: 50px; font-weight: 400; letter-spacing: -.025em; margin-bottom: 70px; max-width: 800px; }
.l-columns .grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.l-columns .c { background: #f4f4f2; border-radius: 14px; padding: 30px 30px 34px; }
.l-columns .c small { font-size: 12px; letter-spacing: .12em; color: var(--lk-ink-2); }
.l-columns .c b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.01em; margin: 14px 0 14px; line-height: 1.2; }
.l-columns .c span { font-size: 16px; line-height: 1.55; color: #444; font-weight: 300; }

/* ───────────── Layout: photo / gallery ───────────── */
.l-photo { display: grid; grid-template-columns: 1fr 470px; gap: 70px; align-items: center; padding-right: 64px; }
.l-photo h2 { font-size: 52px; line-height: 1.06; font-weight: 400; letter-spacing: -.025em; margin-bottom: 28px; }
.l-photo .body { font-size: 18px; }
.l-photo figure { height: 600px; border-radius: 14px; overflow: hidden; background: #111; }
.l-photo figure img, .l-photo figure video { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-photo figure.contain { height: auto; background: none; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.6); transform: rotate(1.5deg); }
.l-photo figure.contain img { height: auto; object-fit: contain; }
.l-photo .stat { display: flex; align-items: baseline; gap: 8px; margin: -6px 0 26px; flex-wrap: wrap; }
.l-photo .stat b { font-size: 120px; line-height: .9; font-weight: 300; letter-spacing: -.05em; }
.l-photo .stat i { font-family: var(--serif); font-size: 44px; }
.l-photo .stat span { flex-basis: 100%; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
.l-photo .chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.l-photo .chips li { border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); }
.l-gallery { display: grid; grid-template-columns: 330px 1fr; gap: 60px; align-items: center; }
.l-gallery h2 { font-size: 54px; line-height: 1.04; font-weight: 400; letter-spacing: -.025em; margin-bottom: 24px; }
.l-gallery .body { font-size: 17px; }
.l-gallery .pics { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 18px; height: 560px; }
.l-gallery figure { position: relative; border-radius: 14px; overflow: hidden; }
.l-gallery figure:nth-child(2) { transform: translateY(26px); }
.l-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.l-gallery figure:hover img { transform: scale(1.04); }
.l-gallery figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 13px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 99px; }

/* ───────────── Layout: contact ───────────── */
.l-contact { display: grid; grid-template-columns: 1fr 300px; gap: 80px; align-items: center; }
.l-contact h2 { font-size: 66px; line-height: 1.04; font-weight: 400; letter-spacing: -.03em; margin-bottom: 30px; }
.l-contact .mail { display: inline-block; font-size: 30px; margin: 34px 0 26px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.l-contact .mail:hover { border-color: #fff; }
.l-contact .links { margin-top: 0; }
.l-contact img { width: 300px; height: 360px; object-fit: cover; border-radius: 16px; filter: grayscale(1) contrast(1.05); }

/* ───────────── Notes & drawing (live in world space) ───────────── */
#ink { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
#ink path { fill: none; stroke-linecap: round; stroke-linejoin: round; transition: opacity 1.2s; mix-blend-mode: screen; }
.note {
  position: absolute; width: 240px; min-height: 200px; padding: 14px 16px 12px; border-radius: 4px;
  color: #1a1a1a; box-shadow: 0 18px 40px rgba(0,0,0,.35); display: flex; flex-direction: column;
  transform: rotate(-1.5deg); z-index: 5;
}
.note .bar { height: 18px; cursor: grab; margin: -6px -8px 6px; }
.note textarea { flex: 1; border: 0; background: transparent; resize: none; font: 400 19px/1.35 var(--sans); color: inherit; outline: none; min-height: 130px; }
.note .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.note .row button { opacity: .65; font-size: 12px; padding: 4px 6px; border-radius: 4px; }
.note .row button:hover { opacity: 1; background: rgba(0,0,0,.08); }

/* ───────────── UI chrome ───────────── */
.ui-round, .ui-pill, #toolbar, #dpad, #call, .panel, #honorsTab {
  background: var(--ui-bg); color: var(--ui-text); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ui-round { position: fixed; left: 24px; top: 24px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; z-index: 30; transition: background .2s; }
.ui-round:hover, .ui-pill:hover { background: var(--ui-bg-hover); }
#topRight { position: fixed; right: 24px; top: 24px; display: flex; align-items: center; gap: 12px; z-index: 30; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 1px solid rgba(255,255,255,.25); }
.ui-pill { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px 0 20px; border-radius: 99px; font-size: 14.5px; font-weight: 500; transition: background .2s; }
body.presenting #presenterBtn { opacity: .4; pointer-events: none; }

.panel { position: fixed; z-index: 40; border-radius: 18px; padding: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
#menu { left: 24px; top: 84px; width: 300px; max-height: calc(100vh - 110px); overflow: auto; animation: pop .22s var(--ease); }
#menu h5, #honors h5 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ui-muted); padding: 12px 12px 8px; font-weight: 500; }
#menu button, #menu a { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; text-decoration: none; }
#menu button:hover, #menu a:hover { background: var(--ui-selected); }
#menu button.cur { background: var(--ui-selected); }
#menu .n { font-size: 11px; color: var(--ui-muted); width: 18px; }
#menu hr { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 8px 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

#honorsTab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 30;
  background: #fff; color: #000; width: 54px; padding: 20px 0 22px; border-radius: 10px 0 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 46px;
}
#honorsTab b { font-family: var(--serif); font-style: italic; font-size: 26px; font-weight: 400; line-height: 1; }
#honorsTab span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
#honors { right: 70px; top: 50%; transform: translateY(-50%); width: 360px; padding: 12px; animation: pop .22s var(--ease); }
#honors li { list-style: none; padding: 12px; border-radius: 10px; }
#honors li:hover { background: var(--ui-selected); }
#honors li b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 3px; }
#honors li span { font-size: 13px; color: var(--ui-muted); }

#toolbar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px;
}
#toolbar button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
#toolbar button:hover { background: var(--ui-bg-hover); }
#toolbar button.on { background: var(--ui-selected); }
#toolbar .sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); margin: 0 4px; }
.swatches, .emojis { display: flex; gap: 6px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s var(--ease), opacity .25s, padding .3s; }
.swatches.open { max-width: 200px; opacity: 1; padding: 0 6px; }
.emojis.open { max-width: 260px; opacity: 1; padding-right: 4px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; flex: none; border: 2px solid transparent; }
.swatches i.on { border-color: #fff; }
#toolbar .emojis button { width: 34px; height: 34px; font-size: 19px; }

#dpad {
  position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 66px; height: 66px; border-radius: 50%;
  display: grid; grid-template: "a a a" 1fr "b c d" 1fr "e e e" 1fr / 1fr 1fr 1fr; place-items: center;
}
#dpad [data-dir=up] { grid-area: a; } #dpad [data-dir=down] { grid-area: e; }
#dpad [data-dir=left] { grid-area: b; } #dpad [data-dir=overview] { grid-area: c; } #dpad [data-dir=right] { grid-area: d; }
#dpad button { width: 20px; height: 20px; display: grid; place-items: center; opacity: .85; }
#dpad button:disabled { opacity: .25; cursor: default; }
#dpad .dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #d4d4d4; transition: transform .2s; }
#dpad .dot:hover::before { transform: scale(1.3); }
body.overview #dpad .dot::before { background: var(--active); }

#call {
  position: fixed; left: 24px; bottom: 24px; z-index: 35; width: min(460px, calc(100vw - 48px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 22px;
  animation: pop .25s var(--ease);
}
.call-main { flex: 1; min-width: 0; }
.call-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
#caption { font-size: 13px; line-height: 1.4; color: var(--ui-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 18px; }
.bars { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.bars i { width: 3px; height: 100%; background: #fff; border-radius: 2px; transform: scaleY(.3); }
body.speaking .bars i { animation: voiceBar .5s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: .1s !important; } .bars i:nth-child(3) { animation-delay: .25s !important; }
.bars i:nth-child(4) { animation-delay: .05s !important; } .bars i:nth-child(5) { animation-delay: .18s !important; }
@keyframes voiceBar { to { transform: scaleY(1); } }
.ui-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background .2s; }
.ui-icon:hover { background: var(--ui-bg-hover); }
.ui-icon.end { background: #e5484d; }
.ui-icon.end:hover { background: #f2555a; }
#muteBtn.muted { color: var(--ui-muted); text-decoration: line-through; }

#search { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: grid; place-items: start center; padding-top: 14vh; }
.search-box { width: min(560px, calc(100vw - 32px)); background: #2b2b2b; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .2s var(--ease); }
#searchInput { width: 100%; background: transparent; border: 0; outline: 0; color: #fff; font: 400 18px var(--sans); padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
#searchResults { list-style: none; max-height: 50vh; overflow: auto; padding: 6px; }
#searchResults li { padding: 11px 14px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
#searchResults li span { color: var(--ui-muted); font-size: 12.5px; white-space: nowrap; }
#searchResults li.on { background: rgba(255,255,255,.1); }
.search-foot { display: flex; gap: 18px; padding: 10px 18px; font-size: 12px; color: var(--ui-muted); border-top: 1px solid rgba(255,255,255,.08); }

#fx { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.floaty { position: absolute; font-size: 34px; animation: floatUp 2.4s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translate(var(--dx), -360px) scale(1) rotate(var(--r)); opacity: 0; } }

#hint {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 20; font-size: 12.5px; color: var(--ui-muted);
  background: rgba(30,30,30,.8); padding: 8px 14px; border-radius: 99px; transition: opacity .6s; white-space: nowrap;
}
#hint.gone { opacity: 0; pointer-events: none; }

/* ───────────── Stacked (phones) ───────────── */
body.stacked { overflow: auto; overflow-x: hidden; }
body.stacked #viewport { position: static; overflow: visible; touch-action: auto; }
body.stacked #world { position: static; transform: none !important; padding: 84px 16px 120px; }
body.stacked .row-label { position: static; opacity: 1; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 46px 4px 14px; display: block; }
body.stacked .row-label i { font-size: 15px; margin-right: 8px; letter-spacing: 0; }
body.stacked .slide { position: relative; left: auto !important; top: auto !important; width: 100%; height: auto; min-height: 0; padding: 34px 24px 52px; margin-bottom: 14px; border-radius: 14px; }
body.stacked .slide-foot { left: 24px; right: 24px; bottom: 18px; font-size: 9.5px; }
body.stacked .l-particle { aspect-ratio: 4 / 5; padding: 0; }
body.stacked .l-particle .explore { bottom: 34px; font-size: 17px; }
body.stacked .l-particle .hero-meta { top: 80px; font-size: 10px; letter-spacing: .22em; }
body.stacked .l-intro, body.stacked .l-pintro { padding: 40px 24px 60px; }
body.stacked .l-intro .signature { font-size: 34px; margin-bottom: 30px; }
body.stacked .l-intro .intro { font-size: 17px; }
body.stacked .l-intro h2 { font-size: 26px; }
body.stacked .l-photo, body.stacked .l-gallery, body.stacked .l-menu, body.stacked .l-testimonials, body.stacked .l-jigsaw, body.stacked .l-index, body.stacked .l-content, body.stacked .l-contact { display: block; padding-right: 24px; }
body.stacked .l-menu li a { font-size: 24px; padding: 16px 0; }
body.stacked .l-menu ol { margin-top: 20px; }
body.stacked h2 { font-size: 34px !important; line-height: 1.1 !important; margin-bottom: 22px !important; }
body.stacked .l-cover h2 { font-size: 42px !important; }
body.stacked .l-cover { min-height: 420px; padding-bottom: 60px; }
body.stacked .l-cover .big-n { font-size: 220px; right: 10px; }
body.stacked .l-cover .links { position: static; margin-top: 26px; }
body.stacked .body, body.stacked .l-content .body { font-size: 16.5px; }
body.stacked .l-about .cols, body.stacked .l-practice .grid, body.stacked .l-details .grid, body.stacked .l-process .steps,
body.stacked .l-columns .grid, body.stacked .l-timeline .tl { grid-template-columns: 1fr; grid-auto-flow: row; gap: 22px; }
body.stacked .l-practice .p, body.stacked .l-practice .p + .p { padding: 18px 0 0; border-left: 0; }
body.stacked .l-timeline .tl::before, body.stacked .l-timeline .st::after { display: none; }
body.stacked .l-timeline .yr { font-size: 28px; height: auto; }
body.stacked .l-timeline .st b { margin-top: 6px; }
body.stacked .l-process .s::after { display: none; }
body.stacked .l-process .s b { margin: 4px 0 8px; font-size: 24px; }
body.stacked .l-metrics .grid { grid-auto-flow: row; }
body.stacked .l-metrics .m, body.stacked .l-metrics .m + .m { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
body.stacked .l-metrics .v, body.stacked .l-metrics .m4 .v { font-size: 56px; margin-bottom: 12px; }
body.stacked .l-content aside { margin-top: 28px; }
body.stacked .l-content blockquote { font-size: 22px; margin-top: 26px; }
body.stacked .deck { height: 420px; margin-top: 20px; }
body.stacked .card { width: calc(100% - 10px); left: 5px; margin: 0; top: 10px; padding: 26px; min-height: 0; }
body.stacked .card q { font-size: 17px; }
body.stacked .puzzle { width: 100%; height: auto; aspect-ratio: 1; margin-top: 24px; }
body.stacked .l-contact img { width: 100%; height: 260px; margin-top: 30px; }
body.stacked .l-contact .mail { font-size: 19px; word-break: break-all; }
body.stacked #toolbar, body.stacked #dpad, body.stacked #hint, body.stacked #honorsTab, body.stacked .note, body.stacked #ink { display: none; }
body.stacked #topRight .avatar { display: none; }
body.stacked .ui-round { left: 16px; top: 16px; }
body.stacked #topRight { right: 16px; top: 16px; }
body.stacked #call { left: 16px; bottom: 16px; width: calc(100vw - 32px); }
body.stacked #menu { left: 16px; top: 72px; width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) {
  #world.anim { transition-duration: .01s; }
  .floaty { animation-duration: .01s; }
}
body.stacked .l-particle canvas { object-fit: cover; }
body.stacked .l-index li a { grid-template-columns: 34px 1fr; row-gap: 4px; }
body.stacked .l-index .t { font-size: 20px; }
body.stacked .l-index .g { grid-column: 2; }
body.stacked .l-photo figure { height: 380px; margin-top: 26px; }
body.stacked .l-photo figure.contain { height: auto; transform: none; }
body.stacked .l-photo .stat b { font-size: 84px; }
body.stacked .l-gallery .pics { grid-auto-flow: row; height: auto; margin-top: 22px; }
body.stacked .l-gallery figure { height: 360px; transform: none !important; }

/* ───────────── Language ───────────── */
#langToggle { padding: 0 6px; gap: 2px; }
#langToggle button { height: 36px; min-width: 38px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ui-muted); transition: background .2s, color .2s; }
#langToggle button.on { background: var(--ui-selected); color: #fff; }
#langToggle button:hover { color: #fff; }
body.stacked #langToggle button { height: 34px; min-width: 34px; }
@media (max-width: 760px) { #presenterBtn span { display: none; } #presenterBtn { padding: 0 16px; } }
