/* Kopka's Canvas. One page: a hero with the CK-1 handheld (title menu, island map, five minigames, a video channel), then the portfolio. */
:root {
  --night: #0d0f0e; --surface: rgba(22, 25, 24, .82); --surface-2: rgba(30, 34, 33, .9); --line: rgba(236, 235, 226, .1); --line-2: rgba(236, 235, 226, .18);
  --text: #f1f0ea; --text-2: #b9bcb6; --text-3: #868a85;
  --c1: #ef7b86; --c2: #f0a46f; --c3: #e8cf6c; --c4: #7fca86; --c5: #77a0ea; --c6: #b18be6; --accent: var(--c5);
  --shell: #34c6b8; --shell-hi: #6fe0d4; --shell-lo: #1f9c90; --shell-side: #178276; --shell-ink: #0e4a44; --bezel: #141518; --rubber: #17181a;
  --f-head: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-px: "Press Start 2P", ui-monospace, monospace;
  --f-brand: var(--f-head);
  --radius: 18px; --ease: cubic-bezier(.2, .8, .2, 1); --gut: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(119, 160, 234, .35); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: #fff; color: #111; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c5); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: -2; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(13,15,14,0) 0%, rgba(13,15,14,0) 60%, rgba(13,15,14,.55) 100%); }

/* ---------- top bar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(14px, env(safe-area-inset-top, 0px)) max(var(--gut), 4vw) 14px; transition: background .3s var(--ease), border-color .3s, transform .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(13, 15, 14, .78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.playing .nav { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1 var(--f-body); color: var(--text); }
.brand b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--shell-hi), var(--shell-lo)); color: var(--shell-ink); font: 800 14px/1 var(--f-head); letter-spacing: .02em; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav nav a.cta { color: #10221f; background: var(--shell-hi); font-weight: 600; }
.nav nav a.cta:hover { background: #8ff0e6; color: #10221f; }
@media (max-width: 720px) { .nav nav a:not(.cta) { display: none; } .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "head stage" "more stage"; column-gap: 4vw; padding: 110px max(var(--gut), 6vw) 70px; }
.hero-head, .hero-more { position: relative; z-index: 3; max-width: 620px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.hero-head { grid-area: head; align-self: end; }
.hero::before { content: ""; position: absolute; z-index: 0; left: 0; top: 0; width: 62%; height: 100%; pointer-events: none; background: radial-gradient(60% 55% at 35% 52%, rgba(13,15,14,.82), rgba(13,15,14,0) 75%); }
@media (max-width: 960px) { .hero::before { width: 100%; background: linear-gradient(180deg, rgba(13,15,14,.3), rgba(13,15,14,.75) 70%, rgba(13,15,14,.9)); } }
.hero-more { grid-area: more; align-self: start; }
.playing .hero-head, .playing .hero-more { opacity: 0; transform: translateX(-40px); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(13,15,14,.5); color: var(--text-2); font-size: 14px; font-weight: 500; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--c4); box-shadow: 0 0 0 4px rgba(127, 202, 134, .18); }
h1 { margin: 0; font: 800 clamp(40px, 5.6vw, 76px)/1.02 var(--f-head); letter-spacing: -.03em; text-wrap: balance; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--c1), var(--c2) 30%, var(--c3) 50%, var(--c4) 68%, var(--c5) 84%, var(--c6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 22px 0 0; max-width: 52ch; color: var(--text-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.04); color: var(--text); font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { border-color: transparent; background: linear-gradient(180deg, #7ef0e3, #34c6b8); color: #0b2724; box-shadow: 0 10px 30px -10px rgba(52, 198, 184, .65), inset 0 1px 0 rgba(255,255,255,.5); }
.btn.primary:hover { box-shadow: 0 14px 36px -10px rgba(52, 198, 184, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn svg { width: 18px; height: 18px; flex: none; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--text-3); font-size: 14px; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof b { color: var(--text); font-weight: 600; }
.hero-stage { grid-area: stage; position: relative; min-height: 520px; display: grid; place-items: center; }

/* legend shown while playing (desktop) */
.legend { position: absolute; z-index: 4; display: grid; gap: 10px; color: var(--text-3); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease) .4s; }
.legend { position: fixed; top: 50%; transform: translateY(-50%); }
.legend.l { left: max(var(--gut), 4vw); }
.legend.r { right: max(var(--gut), 4vw); }
.playing .legend { opacity: 1; }
.legend h2 { margin: 0 0 2px; font: 400 10px/1 var(--f-px); letter-spacing: .1em; color: var(--text-2); }
.legend h2.gap { margin-top: 14px; }
.legend p { margin: 0; display: flex; align-items: center; gap: 8px; }
.kc { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 8px; color: var(--text); font: 500 13px/1 var(--f-body); background: rgba(13,15,14,.7); }
.exit { position: absolute; z-index: 6; white-space: nowrap; top: max(18px, env(safe-area-inset-top, 0px)); right: max(var(--gut), 4vw); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease) .3s; }
.playing .exit { opacity: 1; pointer-events: auto; }
@media (max-width: 1100px), (max-aspect-ratio: 4/3) { .legend { display: none; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "more"; row-gap: 26px; padding-top: 92px; min-height: 0; }
  .hero-head, .hero-more { max-width: none; }
  .hero-stage { min-height: 0; padding: 8px 0 44px; }
  .playing .hero-head, .playing .hero-more { opacity: 1; transform: none; pointer-events: auto; }
  .exit { position: fixed; }
  .playing .nav { transform: none; }
  .playing .exit { top: auto; bottom: max(18px, env(safe-area-inset-bottom, 0px)); right: auto; left: 50%; transform: translateX(-50%); background: rgba(16,17,22,.94); border-color: rgba(255,255,255,.22); box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
html.lock, html.lock body { overflow: hidden; }
.playing .screen { touch-action: none; }

/* ---------- the device ---------- */
.rig-wrap { --dw: min(46vh, 34vw, 440px); position: relative; width: var(--dw); container-type: inline-size; z-index: 2; touch-action: manipulation; perspective: 1500px; }
@media (max-width: 960px) { .rig-wrap { --dw: min(80vw, 54svh, 420px); } }
.rig { position: relative; transform-style: preserve-3d; will-change: transform; }
.layer { position: absolute; inset: 0; border-radius: 6cqi 6cqi 15cqi 15cqi; background: var(--shell-side); transform: translateZ(calc(var(--i) * -.6cqi)); }
.layer.back { background: #0f6b62; box-shadow: 0 6cqi 12cqi rgba(0,0,0,.45); }
.device {
  position: relative; transform: translateZ(0); color: var(--shell-ink); cursor: pointer;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(120% 70% at 30% 10%, var(--shell-hi) 0%, var(--shell) 45%, var(--shell-lo) 100%);
  border-radius: 6cqi 6cqi 15cqi 15cqi; padding: 7cqi 6.5cqi 9cqi;
  box-shadow: inset 0 .7cqi 0 rgba(255,255,255,.35), inset 0 -1.4cqi 0 rgba(0,0,0,.14), inset .8cqi 0 0 rgba(255,255,255,.12);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.device * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.power { position: absolute; top: .9cqi; right: 7cqi; display: flex; align-items: center; gap: 1.6cqi; padding: .7cqi 1.6cqi; border: 0; border-radius: 2cqi; background: rgba(0,0,0,.12); box-shadow: inset 0 .3cqi .6cqi rgba(0,0,0,.25); cursor: pointer; font: 800 2.6cqi/1 var(--f-brand); letter-spacing: .12em; color: var(--shell-ink); }
.power i { position: relative; width: 13cqi; height: 4cqi; border-radius: 2cqi; background: #0d3d38; box-shadow: inset 0 .4cqi .8cqi rgba(0,0,0,.5); }
.power i::after { content: ""; position: absolute; top: .5cqi; left: .6cqi; width: 5.6cqi; height: 3cqi; border-radius: 1.4cqi; background: #ff5a4f; transition: left .25s var(--ease), background .25s; animation: ping 1.4s ease-out infinite; }
.on .power i::after { left: 6.8cqi; background: #e9fbf8; animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,90,79,.75); } 100% { box-shadow: 0 0 0 2.4cqi rgba(255,90,79,0); } }
.power:focus-visible { outline: .5cqi solid #ff5a4f; outline-offset: .5cqi; }
.bezel { position: relative; background: var(--bezel); border-radius: 3.5cqi 3.5cqi 11cqi 3.5cqi; padding: 6cqi 9.5cqi 3.4cqi 11cqi; box-shadow: inset 0 0 0 .4cqi rgba(255,255,255,.04), 0 .4cqi 0 rgba(255,255,255,.25); }
.bezel::before { content: ""; position: absolute; left: 0; right: 0; top: 2.8cqi; height: .35cqi; background: linear-gradient(90deg, transparent 4%, #7f3b56 4% 46%, transparent 46% 54%, #2c5d86 54% 96%, transparent 96%); opacity: .8; }
.ledbox { position: absolute; left: 2.6cqi; top: 22cqi; display: grid; justify-items: center; gap: 1cqi; font: 400 1.75cqi/1 system-ui, sans-serif; color: #9aa0a6; letter-spacing: .06em; }
.ledrow { display: flex; align-items: center; gap: .5cqi; }
.led { width: 2.2cqi; height: 2.2cqi; border-radius: 50%; background: #3b1d1d; transition: background .2s, box-shadow .2s; }
.on .led { background: #ff4b4b; box-shadow: 0 0 2.4cqi #ff4b4b; }
.waves { display: flex; gap: .25cqi; }
.waves i { width: .9cqi; height: 2.4cqi; border: .4cqi solid #c9ced3; border-left: 0; border-radius: 0 2cqi 2cqi 0; opacity: .8; }
.screen { position: relative; aspect-ratio: 10 / 9; width: 100%; background: #07080a; border-radius: .6cqi; overflow: hidden; container-type: inline-size; box-shadow: inset 0 0 0 .5cqi #050506; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.07) 0 34%, transparent 34.3%); z-index: 6; }
.wordmark { display: flex; justify-content: center; align-items: baseline; gap: 2.2cqi; margin-top: 3.4cqi; font: italic 800 6.4cqi/1 var(--f-brand); letter-spacing: -.02em; color: #e8ecef; }
.wordmark span { display: inline-flex; font-size: .78em; letter-spacing: 0; }
.wordmark span i { font-style: italic; }
.wordmark span i:nth-child(6n+1) { color: #ff6b8b; } .wordmark span i:nth-child(6n+2) { color: #ffb347; } .wordmark span i:nth-child(6n+3) { color: #ffe066; }
.wordmark span i:nth-child(6n+4) { color: #6ee7a0; } .wordmark span i:nth-child(6n+5) { color: #6fb7ff; } .wordmark span i:nth-child(6n) { color: #c79bff; }
.emboss { margin: 5.5cqi auto 0; width: 29cqi; height: 7.4cqi; border-radius: 99px; display: grid; place-items: center; font: 800 3.6cqi/1 var(--f-brand); letter-spacing: .14em; color: transparent; text-shadow: -.2cqi -.2cqi 0 rgba(255,255,255,.4), .25cqi .25cqi 0 rgba(0,0,0,.2); box-shadow: inset .3cqi .3cqi .3cqi rgba(0,0,0,.18), .3cqi .3cqi .2cqi rgba(255,255,255,.3); }
.controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin-top: 6.5cqi; padding: 0 1cqi; }
.dpad { width: 28cqi; height: 28cqi; position: relative; filter: drop-shadow(0 1cqi 0 rgba(0,0,0,.3)); touch-action: none; }
.dpad button { position: absolute; width: 9.6cqi; height: 9.6cqi; background: var(--rubber); border: 0; padding: 0; cursor: pointer; color: rgba(255,255,255,.14); font-size: 2.6cqi; display: grid; place-items: center; touch-action: none; }
.dpad .u { left: 9.2cqi; top: 0; border-radius: 1.4cqi 1.4cqi 0 0; } .dpad .d { left: 9.2cqi; bottom: 0; border-radius: 0 0 1.4cqi 1.4cqi; }
.dpad .l { left: 0; top: 9.2cqi; border-radius: 1.4cqi 0 0 1.4cqi; } .dpad .r { right: 0; top: 9.2cqi; border-radius: 0 1.4cqi 1.4cqi 0; }
.dpad::after { content: ""; position: absolute; left: 9.2cqi; top: 9.2cqi; width: 9.6cqi; height: 9.6cqi; background: radial-gradient(circle, #232427 0 38%, var(--rubber) 40%); pointer-events: none; }
.ab { grid-column: 3; display: flex; gap: 4.5cqi; align-items: center; touch-action: none; }
.ab button { width: 13.5cqi; height: 13.5cqi; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 38% 32%, #3a3b3f, #121315 70%); box-shadow: 0 1.1cqi 0 rgba(0,0,0,.35), inset 0 0 0 .4cqi rgba(255,255,255,.04); color: rgba(255,255,255,.16); font: 800 5cqi/1 var(--f-brand); touch-action: none; }
.ab button:first-child { margin-top: 7cqi; }
.ss { display: flex; justify-content: center; gap: 4.5cqi; margin-top: 8cqi; }
.ss div { display: grid; justify-items: center; gap: 1.4cqi; font: 800 2.2cqi/1 var(--f-brand); letter-spacing: .1em; color: var(--shell-ink); opacity: .8; }
.ss button { width: 10cqi; height: 3cqi; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: var(--rubber); box-shadow: 0 .6cqi 0 rgba(0,0,0,.25); }
.grille { position: absolute; right: 7cqi; bottom: 6cqi; width: 21cqi; height: 21cqi; border-radius: 50%; background-image: radial-gradient(circle, rgba(0,0,0,.5) 0 .85cqi, transparent .95cqi); background-size: 3.4cqi 3.4cqi; background-position: center; -webkit-mask: radial-gradient(circle, #000 62%, transparent 64%); mask: radial-gradient(circle, #000 62%, transparent 64%); }
.pressed, .dpad button:active, .ab button:active, .ss button:active { transform: translateY(.6cqi); filter: brightness(.85); }
.device button:focus:not(:focus-visible) { outline: none; }
.tap-hint { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap; color: var(--text-3); font-size: 14px; transition: opacity .3s; }
.on ~ .tap-hint, .playing .tap-hint { opacity: 0; }

/* ---------- screen UI (cqi = % of screen width) ---------- */
.ui { position: absolute; inset: 0; z-index: 3; font-family: var(--f-body); color: #fff; }
.ui p, .ui h3 { margin: 0; }
.fader { position: absolute; inset: 0; z-index: 5; background: #05060a; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.screen.dark .fader { opacity: 1; }
.off-glow { position: absolute; inset: 0; background: radial-gradient(90% 80% at 30% 20%, rgba(255,255,255,.04), transparent 60%); }
.boot { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3cqi; background: #ece6d4; color: #2b2f4a; }
.boot .big { font: 400 11cqi/1 var(--f-px); display: flex; }
.boot .big i { font-style: normal; opacity: 0; animation: pop .35s var(--ease) forwards; }
.boot .sub { font: 400 3.2cqi/1 var(--f-px); letter-spacing: .3em; opacity: 0; animation: pop .4s var(--ease) .7s forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(-2cqi) scale(1.3); } to { opacity: 1; transform: none; } }
/* title */
.title { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; gap: 1.6cqi; padding-bottom: 8cqi; background: linear-gradient(180deg, rgba(8, 12, 40, .55), rgba(8, 12, 40, 0) 70%); }
.t-sub { margin-bottom: 1cqi; padding: 1.3cqi 3cqi; font: 400 max(3cqi, 7px)/1 var(--f-px); letter-spacing: .14em; color: #fff; background: #b8324a; box-shadow: 0 .6cqi 0 #6e1730; clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }
.t-logo { position: relative; font: 400 10.5cqi/1 var(--f-px); letter-spacing: -.03em; color: #2a1446; text-shadow: .9cqi 0 0 #2a1446, -.9cqi 0 0 #2a1446, 0 .9cqi 0 #2a1446, 0 -.9cqi 0 #2a1446, .9cqi .9cqi 0 #2a1446, -.9cqi .9cqi 0 #2a1446, .9cqi -.9cqi 0 #2a1446, -.9cqi -.9cqi 0 #2a1446, 0 2cqi 0 #2a1446, 1.2cqi 2cqi 0 #2a1446; }
.t-logo::after { content: attr(data-t); position: absolute; inset: 0; text-shadow: none; color: transparent; background: linear-gradient(#fff7cf 0 22%, #ffd34e 22% 58%, #f29a1f 58% 82%, #c9600f 82%); -webkit-background-clip: text; background-clip: text; }
.t-menu { list-style: none; margin: 3.4cqi 0 0; padding: 2.6cqi 4.4cqi 2.6cqi 8cqi; display: grid; gap: 2.4cqi; text-align: left; background: rgba(6, 8, 22, .74); border: .5cqi solid rgba(255,255,255,.88); border-radius: 1.6cqi; }
.t-menu li { position: relative; font: 400 max(3.6cqi, 9px)/1 var(--f-px); color: #fff; letter-spacing: .04em; cursor: pointer; }
.t-menu li.sel { color: #ffd75e; }
.t-menu li.sel::before { content: ""; position: absolute; left: -4.4cqi; top: 50%; border-style: solid; border-width: max(1.3cqi, 4px) 0 max(1.3cqi, 4px) max(2cqi, 6px); border-color: transparent transparent transparent #7cf2c6; transform: translateY(-50%); animation: nudge .8s steps(2) infinite; }
@keyframes nudge { 50% { transform: translate(.9cqi, -50%); } }
.t-foot { position: absolute; left: 0; right: 0; bottom: 2.6cqi; font: 400 max(2.2cqi, 7px)/1.4 var(--f-px); color: rgba(255,255,255,.85); text-shadow: 0 .3cqi 0 rgba(0,0,0,.6); }
/* island map */
.mp { position: absolute; inset: 0; pointer-events: none; }
.mp-top { position: absolute; left: 2.6cqi; right: 2.6cqi; top: 2.4cqi; display: flex; justify-content: space-between; }
.pill { display: flex; align-items: center; gap: 1.2cqi; padding: 1.3cqi 2.2cqi; border-radius: 9cqi; background: rgba(10, 12, 20, .64); font: 400 max(2.5cqi, 8px)/1 var(--f-px); color: #fff; }
.pill.dim { color: rgba(255,255,255,.78); }
.pill svg { width: max(3cqi, 9px); height: max(3cqi, 9px); }
.mp-box { position: absolute; left: 3cqi; right: 3cqi; bottom: 3cqi; padding: 2.4cqi 3cqi 2.4cqi 4.6cqi; overflow: hidden; background: #f6f3ea; color: #1b1d26; border-radius: 1.6cqi; box-shadow: 0 0 0 .6cqi #1b1d26, inset 0 0 0 .6cqi #fff, 0 1.4cqi 0 .6cqi rgba(0,0,0,.28); pointer-events: auto; }
.mp-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.6cqi; background: var(--zc); }
.mp .mp-y { font: 400 max(2.2cqi, 7px)/1.3 var(--f-px); color: #6a6d78; letter-spacing: .03em; text-transform: uppercase; }
.mp .mp-n { margin-top: 1.1cqi; font: 800 max(6cqi, 15px)/1 var(--f-head); letter-spacing: -.01em; }
.mp .mp-s { margin-top: 1.2cqi; padding-right: 18cqi; font: 600 max(3cqi, 10px)/1.25 var(--f-body); color: #4a4d58; }
.mp .mp-a { position: absolute; right: 3cqi; bottom: 2.4cqi; display: flex; align-items: center; gap: 1.2cqi; font: 400 max(2.6cqi, 8px)/1 var(--f-px); cursor: pointer; }
.mp-a b, .ka, .kb { display: inline-grid; place-items: center; width: max(4.4cqi, 14px); height: max(4.4cqi, 14px); border-radius: 50%; background: #2f9e57; color: #fff; font: 700 max(2.6cqi, 8px)/1 var(--f-body); }
.kb { background: #d0453a; }
.mp-box.locked .mp-a { color: #8c8f99; }
.st-on { color: #e8a317; letter-spacing: .12em; } .st-off { color: #d3cfc3; letter-spacing: .12em; }
/* the video channel on the screen */
.vc { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0c0e1a; }
.vc-media { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-play { position: absolute; left: 50%; top: 50%; width: 11cqi; height: 11cqi; margin: -5.5cqi 0 0 -5.5cqi; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1cqi 3cqi rgba(0,0,0,.4); }
.vc-play::after { content: ""; position: absolute; left: 4.2cqi; top: 3.2cqi; border-style: solid; border-width: 2.3cqi 0 2.3cqi 3.6cqi; border-color: transparent transparent transparent #14161a; }
.vc-arr { position: absolute; top: 50%; transform: translateY(-50%); width: max(7cqi, 22px); height: max(12cqi, 36px); border: 0; padding: 0; background: rgba(10, 12, 20, .72); color: #fff; font: 400 max(3cqi, 9px)/1 var(--f-px); cursor: pointer; display: grid; place-items: center; }
.vc-arr.l { left: 0; border-radius: 0 1.4cqi 1.4cqi 0; } .vc-arr.r { right: 0; border-radius: 1.4cqi 0 0 1.4cqi; }
.vc-dots { position: absolute; right: 2.4cqi; bottom: 2cqi; display: flex; gap: .9cqi; padding: 1.1cqi 1.4cqi; border-radius: 1cqi; background: rgba(10, 12, 20, .72); }
.vc-dots i { width: max(1.6cqi, 4px); height: max(1.6cqi, 4px); background: rgba(255,255,255,.35); }
.vc-dots i.on { background: #fff; }
.vc-tag { position: absolute; left: 2.4cqi; top: 2cqi; padding: 1cqi 1.4cqi; border-radius: 1cqi; background: rgba(0,0,0,.65); font: 400 max(2cqi, 7px)/1 var(--f-px); color: #fff; }
.vc-box { position: relative; flex: 1; min-height: 0; margin: 2.2cqi; padding: 2cqi 3cqi; display: flex; flex-direction: column; background: #f6f3ea; color: #1b1d26; border-radius: 1.4cqi; box-shadow: 0 0 0 .6cqi #1b1d26, inset 0 0 0 .6cqi #fff; }
.vc .vc-t { font: 400 max(2.6cqi, 8px)/1.3 var(--f-px); color: #22346e; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc .vc-s { margin-top: .8cqi; font: 500 max(3cqi, 10px)/1.3 var(--f-body); color: #3b3e49; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc .vc-k { margin-top: auto; display: flex; justify-content: flex-end; gap: 3.4cqi; font: 400 max(2.4cqi, 8px)/1 var(--f-px); }
.vc-k span { display: flex; align-items: center; gap: 1.1cqi; cursor: pointer; }
.vc-empty { margin: auto !important; font: 400 max(3cqi, 9px)/1 var(--f-px); }
.tv { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: #000; }
.tv-frame { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; }
.tv.vertical .tv-frame { flex: 1; aspect-ratio: auto; }
.tv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-back { flex: 1; min-height: max(10cqi, 30px); border: 0; background: #0c0e1a; color: #fff; display: flex; align-items: center; justify-content: center; gap: 1.4cqi; font: 400 max(2.6cqi, 8px)/1 var(--f-px); cursor: pointer; }
.tv.vertical .tv-back { flex: none; }
/* ---------- pop-out cards (outside the device, crisp text) ---------- */
.popcard { position: fixed; z-index: 30; left: 0; top: 0; width: min(440px, calc(100vw - 24px)); max-height: calc(100svh - 24px); overflow: auto; border-radius: 20px; background: #fbfaf6; color: #1b1d26; box-shadow: 0 30px 80px -20px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.06); opacity: 0; transform: translateY(18px) scale(.94); transform-origin: 50% 70%; transition: opacity .28s var(--ease), transform .45s cubic-bezier(.2, 1.3, .3, 1); }
.popcard.show { opacity: 1; transform: none; }
.popcard[hidden] { display: none; }
.pc-media { position: relative; aspect-ratio: 16 / 9; background: #222 center / cover no-repeat; }
.pc-media img, .pc-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-media canvas { image-rendering: pixelated; }
.pc-media .yr { position: absolute; left: 14px; bottom: 14px; padding: 7px 10px 6px; border-radius: 8px; background: rgba(12,14,20,.78); color: #fff; font: 400 10px/1 var(--f-px); letter-spacing: .06em; }
.pc-media .yr i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 2px; background: var(--zc); vertical-align: 0; }
.pc-body { padding: 18px 22px 20px; }
.pc-body .lv { margin: 0 0 6px; font: 600 12.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #6a6d78; }
.pc-body h3 { margin: 0; font: 800 23px/1.15 var(--f-head); letter-spacing: -.015em; }
.pc-body p.s { margin: 8px 0 0; color: #4a4d58; font-size: 15.5px; line-height: 1.5; }
.pc-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.pc-skills li { padding: 5px 10px; border-radius: 99px; background: #efece3; color: #3b3e49; font-size: 13px; font-weight: 600; }
.pc-skills li.got { background: color-mix(in srgb, var(--zc) 30%, #fff); }
.pc-skills li.got::before { content: "✓ "; }
.pc-acts { display: flex; gap: 10px; margin-top: 16px; }
.pc-acts button, .pc-acts a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: #1b1d26; color: #fff; font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.pc-acts .ghost { background: #ebe8df; color: #1b1d26; }
.pc-acts button:hover, .pc-acts a:hover { transform: translateY(-1px); }
.pc-acts kbd { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2f9e57; color: #fff; font: 700 11px/1 var(--f-body); }
.pc-acts .ghost kbd { background: #d0453a; }
.popcard.end { text-align: center; }
.popcard.end .pc-body { padding: 26px 24px 24px; }
.popcard.end .pc-acts { flex-wrap: wrap; }
.popcard.end .pc-acts > :first-child { flex-basis: 100%; }
.pc-trophy { font: 400 12px/1.6 var(--f-px); color: #b8862a; }
.pc-body .lv i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--zc); }
.pc-how { margin: 14px 0 0; padding: 12px 14px; list-style: none; display: grid; gap: 9px; border-radius: 12px; background: #f0ede4; color: #2b2e38; font-size: 14.5px; line-height: 1.4; }
.pc-how li { display: flex; align-items: baseline; gap: 10px; }
.pc-how span { flex: none; min-width: 54px; padding: 3px 7px; border-radius: 6px; background: #1b1d26; color: #fff; font: 600 12.5px/1.3 var(--f-body); text-align: center; }
.pc-stars { margin: 0 0 8px; display: flex; align-items: center; gap: 2px; font-size: 22px; line-height: 1; }
.pc-stars .lbl { margin-left: 10px; font: 600 12.5px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #6a6d78; }
.pc-score { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--zc) 24%, #fff); color: #2b2e38; font: 600 14.5px/1.45 var(--f-body); }
.popcard.result .pc-body h3 { font-size: 20px; }
.popcard.result .pc-acts { flex-wrap: wrap; }
.popcard.result .pc-acts > :first-child { flex-basis: 100%; }
.pc-acts button, .pc-acts a { white-space: nowrap; }
.pc-acts kbd.ks { width: auto; min-width: 22px; padding: 0 5px; border-radius: 6px; background: #3b5bdb; font-size: 10px; }
.pc-link { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none; color: #6a6d78; font: 500 14px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pc-avatar { float: right; width: 84px; height: 84px; margin: 0 0 8px 14px; border-radius: 50%; object-fit: cover; object-position: center 18%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(0,0,0,.08); }
.popcard.about .pc-acts { clear: both; }

/* ---------- portfolio ---------- */
main { position: relative; }
.section { position: relative; padding: 110px max(var(--gut), 6vw); }
.wrap { max-width: 1160px; margin: 0 auto; }
.kicker { margin: 0 0 14px; font: 400 11px/1.4 var(--f-px); letter-spacing: .12em; color: var(--c5); text-transform: uppercase; }
h2 { margin: 0; font: 800 clamp(32px, 4vw, 52px)/1.05 var(--f-head); letter-spacing: -.025em; text-wrap: balance; }
.section-lede { margin: 18px 0 0; max-width: 62ch; color: var(--text-2); font-size: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* highlights */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.stat { padding: 26px 24px 24px; }
.stat b { display: block; font: 800 clamp(34px, 3.4vw, 46px)/1 var(--f-head); letter-spacing: -.03em; }
.stat:nth-child(1) b { color: var(--c4); } .stat:nth-child(2) b { color: var(--c3); } .stat:nth-child(3) b { color: var(--c2); } .stat:nth-child(4) b { color: var(--c6); }
.stat span { display: block; margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stat { padding: 20px 18px; } .stat span { font-size: 14px; } }
/* work */
.jobs { margin-top: 48px; display: grid; gap: 22px; }
.job, .life { scroll-margin-top: 96px; transition: border-color .3s, box-shadow .3s; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); overflow: hidden; }
.job.small { grid-template-columns: minmax(0, .72fr) minmax(0, 1.4fr); }
.job.flash, .life.flash { border-color: var(--zc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zc) 25%, transparent); }
.job.sap { grid-template-columns: 1fr; }
.job.sap .media { min-height: 0; aspect-ratio: 21 / 8; }
.job.sap .media img { object-position: center 38%; }
.media { position: relative; margin: 0; min-height: 260px; background: #151817; overflow: hidden; }
.media img, .media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media canvas { image-rendering: pixelated; }
.media figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 8px; background: rgba(10, 12, 12, .72); color: var(--text-2); font-size: 12.5px; line-height: 1.35; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.when { margin: 0; font: 400 10px/1.5 var(--f-px); letter-spacing: .08em; color: var(--zc); }
.job h3, .life h3 { margin: 0; font: 800 clamp(22px, 2.1vw, 28px)/1.15 var(--f-head); letter-spacing: -.02em; }
.role { margin: -4px 0 0; color: var(--text-2); font-weight: 600; font-size: 15px; }
.lead { margin: 0; color: var(--text-2); }
ul.pts { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
ul.pts li { position: relative; padding-left: 22px; color: var(--text); font-size: 15.5px; line-height: 1.5; }
ul.pts li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--zc); transform: rotate(45deg); }
.roles { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.roles > li { padding: 14px 0 0; border-top: 2px solid var(--zc); scroll-margin-top: 110px; transition: background .3s; }
.roles > li.flash { background: color-mix(in srgb, var(--zc) 10%, transparent); }
.rt { margin: 0 0 12px; display: grid; gap: 6px; }
.rt b { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.rt span { font: 400 10px/1.4 var(--f-px); color: var(--zc); }
.roles ul.pts li { font-size: 15px; }
.note { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--text-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.chips li { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 500; }
.go { align-self: flex-start; margin-top: 4px; color: var(--zc); font-weight: 600; font-size: 15px; text-decoration: none; }
.go::after { content: " ↓"; }
.go.mail::after { content: " →"; }
.go:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .roles { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 860px) {
  .job, .job.small { grid-template-columns: 1fr; }
  .media { min-height: 0; aspect-ratio: 16 / 10; }
  .job.sap .media { aspect-ratio: 16 / 9; }
  .body { padding: 22px 20px 24px; }
}
/* videos */
.vid { position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden; border-radius: 16px; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s; }
a.vid:hover { border-color: var(--line-2); background: var(--surface-2); }
.vid .thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--zc, #77a0ea) 45%, #151817), #151817 70%); }
.vid .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.vid:hover .thumb img { transform: scale(1.04); }
.vid .play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .25s var(--ease); }
.vid .play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #14161a; }
a.vid:hover .play { transform: scale(1.08); }
.vid .cap { display: block; padding: 13px 16px 15px; font-size: 13.5px; line-height: 1.4; }
.vid .cap b { display: block; font-size: 15.5px; font-weight: 600; }
.vid .cap span { display: block; margin-top: 2px; color: var(--text-2); }
.vid[data-vertical] .thumb::before { content: "SHORT"; position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 4px 6px; border-radius: 6px; background: rgba(0,0,0,.6); font: 400 8px/1 var(--f-px); letter-spacing: .08em; color: #fff; }
.vid.still .thumb img { object-position: center 30%; }
.stage-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vid.big { grid-column: span 2; grid-row: span 2; }
.vid.big .thumb { aspect-ratio: auto; flex: 1; min-height: 300px; }
.vid.big .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.vid.big .play::after { left: 29px; top: 22px; border-width: 14px 0 14px 22px; }
.vid.big .cap b { font: 700 clamp(19px, 1.8vw, 24px)/1.2 var(--f-head); }
.topics { grid-column: span 2; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.topics h3 { margin: 0; font: 700 21px/1.2 var(--f-head); }
.topics ul.pts { --zc: var(--c5); }
@media (max-width: 900px) { .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vid.big, .topics { grid-column: 1 / -1; grid-row: auto; } .vid.big .thumb { aspect-ratio: 16 / 10; min-height: 0; flex: none; } }
@media (max-width: 560px) { .stage-grid { grid-template-columns: minmax(0, 1fr); } }
/* life */
.life-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.life { display: flex; flex-direction: column; overflow: hidden; }
.life .body { padding: 22px 24px 24px; gap: 10px; }
.life .body p:not(.when) { margin: 0; color: var(--text-2); font-size: 15.5px; }
.life .body a { color: var(--zc); font-weight: 600; text-decoration: none; }
.life .body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.life .media { min-height: 0; aspect-ratio: 16 / 9; }
.life h3 { font-size: clamp(20px, 1.8vw, 24px); }
.life .vid { border: 0; border-radius: 0; background: none; }
.life.wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.life.wide .vid .thumb { aspect-ratio: auto; flex: 1; min-height: 240px; }
.life.wide .vid .cap { padding: 12px 24px 18px; }
.life.wide .body { justify-content: center; }
.shorts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 12px 0; }
.shorts .vid { border-radius: 12px; }
.shorts .thumb { aspect-ratio: 4 / 5; border-radius: 12px; }
.shorts .vid .cap { padding: 8px 2px 0; font-size: 12.5px; }
.shorts .vid .cap b { font-size: 13.5px; }
.shorts .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.shorts .play::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }
.life.row { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 4px; padding-left: 24px; }
.life.row .ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.06); color: var(--zc); }
.life.row .ic svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .life.wide { grid-column: 1 / -1; } }
@media (max-width: 640px) { .life-grid { grid-template-columns: minmax(0, 1fr); } .life.wide { grid-template-columns: 1fr; } .life.wide .vid .thumb { aspect-ratio: 16 / 9; flex: none; min-height: 0; } .life.row { flex-direction: column; align-items: flex-start; padding: 22px 0 0 24px; } }
/* video player */
.player { width: min(1100px, 94vw); max-width: none; max-height: 92svh; padding: 0; border: 0; border-radius: 16px; background: #000; color: #fff; overflow: visible; }
.player::backdrop { background: rgba(5,6,8,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player .frame { position: relative; aspect-ratio: 16 / 9; max-height: 92svh; margin: 0 auto; border-radius: 16px; overflow: hidden; }
.player.vertical { width: auto; }
.player.vertical .frame { aspect-ratio: 9 / 16; height: min(88svh, 900px); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .close { position: absolute; right: -6px; top: -52px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.player .close svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .player .close { right: 0; } }
/* projects + beyond */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tile { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.tile .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--zc, var(--c5)); }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { margin: 0; font: 700 21px/1.2 var(--f-head); letter-spacing: -.01em; }
.tile .ic + h3 { margin-top: 6px; }
.tile .chips { margin: 6px 0 0; padding: 0; }
.langs { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.langs li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.langs li:last-child { border-bottom: 0; padding-bottom: 0; }
.langs b { font-weight: 600; }
.langs span { color: var(--text-2); }
.certs { margin-top: 16px; padding: 24px 26px; }
.certs h3 { margin: 0 0 12px; font: 700 21px/1.2 var(--f-head); letter-spacing: -.01em; }
.certs ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.certs li { display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.certs li b { font-weight: 600; }
.certs li span { color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) { .certs ul { grid-template-columns: 1fr; } }
.tile p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.tile .links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 8px; }
.tile .links a { color: var(--zc, var(--c5)); font-weight: 600; font-size: 15px; text-decoration: none; }
.tile .links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
/* contact */
.contact { text-align: center; padding: 64px max(24px, 5vw); overflow: hidden; }
.contact .avatar { width: 104px; height: 104px; margin: 0 auto 22px; border-radius: 50%; object-fit: cover; object-position: center 18%; box-shadow: 0 0 0 4px rgba(255,255,255,.06), 0 0 0 5px rgba(52,198,184,.5); }
.contact h2 { font-size: clamp(34px, 4.6vw, 60px); }
.contact p { margin: 16px auto 0; max-width: 52ch; color: var(--text-2); font-size: 18px; }
.contact .cta-row { justify-content: center; }
footer { padding: 34px max(var(--gut), 6vw) max(34px, env(safe-area-inset-bottom, 0px)); color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 24px; }
/* sound toggle */
.sound { position: fixed; z-index: 21; right: max(var(--gut), 2vw); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(13,15,14,.78); color: var(--text); display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sound.show { opacity: 1; pointer-events: auto; }
.sound svg { width: 20px; height: 20px; }
/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .rv { opacity: 1; transform: none; } }
