/* ==========================================================================
   Elamaran Sugumar — Sidebar portfolio
   Paper · ink · signal yellow. Film-studio details (viewfinder, timecode, NLE).
   ========================================================================== */
:root {
  --paper: #f1efea;
  --paper-2: #e7e4dd;
  --card: #ffffff;
  --ink: #141414;
  --ink-2: #2a2a2a;
  --muted: #5d5b57;
  --line: rgba(20, 20, 20, 0.12);
  --line-2: rgba(20, 20, 20, 0.24);
  --accent: #f5b800;
  --accent-2: #ffd24a;
  --accent-ink: #141414;
  --rec: #e5331d;
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --side: 288px;
  --rail: 64px;
  --pad: clamp(20px, 4vw, 64px);
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── buttons, chips ── */
.btn { display: inline-flex; align-items: center; gap: 0.55em; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-2px); }
.btn svg:last-child { transition: transform 0.3s var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 0 -2px rgba(0, 0, 0, 0.9); }
.btn--accent:hover { box-shadow: 0 8px 0 -2px rgba(0, 0, 0, 0.9); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background 0.3s, border-color 0.3s; }
.icon-btn:hover { background: var(--accent); border-color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.pill svg { width: 10px; height: 10px; }
.pill--play { background: var(--ink); color: var(--accent); }
.pill--dash { background: none; border: 1px dashed var(--muted); }
.badge { display: inline-flex; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); }
.badge--dash { background: none; border: 1px dashed var(--muted); }
.slot { width: 100%; height: 100%; min-height: 150px; display: grid; place-content: center; gap: 4px; text-align: center; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 12px, transparent 12px 24px); }
.slot__label { font-weight: 600; }
.slot__hint { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── sidebar ── */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; background: var(--accent); color: var(--accent-ink); }
.side__id { display: block; position: relative; }
.side__photo { display: block; aspect-ratio: 1; overflow: hidden; background: #222; }
.side__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.side__id:hover .side__photo img { filter: grayscale(0); transform: scale(1.04); }
.side__name { position: absolute; left: 18px; bottom: 34px; color: #fff; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: -0.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.side__name strong { color: var(--accent); }
.side__role { position: absolute; left: 18px; bottom: 14px; color: rgba(255, 255, 255, 0.85); font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.side__id::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); pointer-events: none; }
.side__id > span:not(.side__photo) { z-index: 1; }
.side__toggle { display: none; }
.side__nav { position: relative; flex: 1; display: flex; align-items: center; padding: 18px 22px; overflow-y: auto; }
.side__nav ul { position: relative; width: 100%; display: grid; gap: 2px; }
.side__nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 999px; font: 800 13.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.3s; }
.side__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; transition: opacity 0.3s, transform 0.3s; }
.side__nav a.is-active { color: var(--accent); }
.side__nav a.is-active .side__dot { opacity: 1; transform: scale(1.3); }
.side__nav a:not(.is-active):hover { background: rgba(0, 0, 0, 0.08); }
.side__marker { position: absolute; left: 22px; right: 22px; top: 0; height: 0; border-radius: 999px; background: var(--ink); transition: transform 0.5s var(--ease), height 0.5s var(--ease); pointer-events: none; }
.side__foot { padding: 16px 22px 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1.5px solid rgba(0, 0, 0, 0.15); }
.side__foot .btn--accent { background: var(--ink); color: var(--accent); box-shadow: none; }
.side__social { display: flex; gap: 2px; }
.side__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: background 0.3s; }
.side__social a:hover { background: rgba(0, 0, 0, 0.1); }

/* right icon rail (like a camera's control strip) */
.rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 30; display: grid; gap: 4px; padding: 8px 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35); }
.rail a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; transition: background 0.3s, color 0.3s; }
.rail a svg { width: 17px; height: 17px; }
.rail a:hover { background: rgba(0, 0, 0, 0.1); }
.rail a.is-active { background: var(--ink); color: var(--accent); }

/* ── main ── */
.main { margin-left: var(--side); padding-right: calc(var(--rail) + 16px); }
.sec { padding: clamp(64px, 9vw, 120px) var(--pad); max-width: 1240px; }
.hbox { position: relative; border: 1.5px solid var(--ink); padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3vw, 36px); margin-bottom: clamp(32px, 4vw, 52px); text-align: center; background: var(--paper); }
.hbox::before { content: ''; position: absolute; inset: 6px; border: 1px dashed var(--line-2); pointer-events: none; }
.hbox h2 { font: 900 clamp(34px, 5.4vw, 72px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.hbox p { margin: 12px auto 0; max-width: 60ch; color: var(--muted); }
.sub { display: flex; align-items: center; gap: 12px; margin: 44px 0 20px; font: 800 14px var(--display); text-transform: uppercase; letter-spacing: 0.12em; }
.sub::after { content: ''; flex: 1; height: 1.5px; background: var(--line); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; margin-bottom: 28px; }
.tab { position: relative; padding: 8px 2px; font: 800 13px var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); transition: color 0.3s; }
.tab sup { font: 500 10px var(--mono); margin-left: 2px; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── hero ── */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); background: var(--card); }
.hero__text { container-type: inline-size; align-self: center; padding: clamp(80px, 8vw, 120px) var(--pad); max-width: 680px; }
.hero__hi { font: 800 clamp(20px, 2vw, 26px) var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.hero__name { margin: 4px 0 18px; font: 900 clamp(40px, 15.5cqi, 104px)/0.92 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.hero__first { display: block; }
.hero__last { display: inline-block; color: transparent; -webkit-text-stroke: 2px var(--ink); background: linear-gradient(var(--accent), var(--accent)) left 62% / 0% 34% no-repeat; -webkit-background-clip: border-box; transition: background-size 1.2s var(--ease) 0.6s; }
.is-loaded .hero__last { background-size: 100% 34%; }
.hero__role span { display: inline-block; background: var(--ink); color: var(--accent); padding: 6px 12px; font: 600 12.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.hero__intro { margin-top: 20px; max-width: 52ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.hero__now { margin-top: 18px; font: 500 14px var(--mono); }
.hero__now-label { color: var(--muted); }
.hero__rot { font-weight: 500; background: linear-gradient(transparent 60%, var(--accent-2) 60%); }
.hero__caret { display: inline-block; width: 2px; height: 1.05em; background: var(--ink); vertical-align: -0.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.js [data-in] { opacity: 0; transform: translateY(18px); }
.js .is-loaded [data-in] { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) calc(var(--i, 0) * 80ms + 100ms), transform 0.9s var(--ease) calc(var(--i, 0) * 80ms + 100ms); }

/* viewfinder */
.vf { position: relative; overflow: hidden; background: #111; cursor: crosshair; isolation: isolate; min-height: 520px; }
.vf__img { position: absolute; inset: 0; }
.vf__img picture, .vf__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.vf__img--bw img { filter: grayscale(1) contrast(1.1) brightness(0.95); }
.vf__img--color { --x: 50%; --y: 35%; --r: 0px; -webkit-mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 98%, transparent 100%); mask: radial-gradient(circle var(--r) at var(--x) var(--y), #000 98%, transparent 100%); }
.vf.is-shot .vf__img--color { --r: 2000px !important; }
.vf__hud { position: absolute; inset: clamp(14px, 2.2vw, 28px); pointer-events: none; color: #fff; font: 500 11.5px var(--mono); letter-spacing: 0.08em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.vf__c { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, 0.9); }
.vf__c--tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.vf__c--tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.vf__c--bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.vf__c--br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.vf__rec { position: absolute; left: 38px; top: 4px; display: flex; align-items: center; gap: 8px; }
.vf__rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: blink 1.2s steps(1) infinite; }
.vf__spec { position: absolute; left: 38px; top: 24px; opacity: 0.85; }
.vf__spec b, .vf__rec b { font-weight: 500; }
.vf__hint { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); }
.vf__af { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1.5px solid var(--accent); transform: translate(var(--ax, 50%), var(--ay, 35%)); transition: border-color 0.2s, width 0.2s, height 0.2s; }
.vf__af::before, .vf__af::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--accent); }
.vf__af::before { width: 8px; height: 1.5px; transform: translate(-50%, -50%); }
.vf__af::after { width: 1.5px; height: 8px; transform: translate(-50%, -50%); }
.vf.is-locked .vf__af { border-color: #7cff6b; }
.vf__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vf.is-flash .vf__flash { animation: flash 0.5s ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

/* ── about ── */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about__text p { color: var(--muted); margin-bottom: 14px; }
.about__lead { font: 500 clamp(19px, 1.7vw, 23px)/1.45 var(--sans); color: var(--ink) !important; }
.stats { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: #fff; border-radius: 4px; }
.stats li { padding: clamp(18px, 2.4vw, 30px); text-align: center; border-color: rgba(255, 255, 255, 0.14); border-style: solid; border-width: 0; }
.stats li:nth-child(odd) { border-right-width: 1px; }
.stats li:nth-child(-n + 2) { border-bottom-width: 1px; }
.stats strong { display: block; font: 900 clamp(36px, 4vw, 54px)/1 var(--display); color: var(--accent); }
.stats li > span { display: block; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.services li { padding: 22px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.services li:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.4); }
.services__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); margin-bottom: 14px; transition: background 0.3s; }
.services__icon svg { width: 22px; height: 22px; }
.services li:hover .services__icon { background: var(--accent); }
.services h4 { font: 800 15px var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.services p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ── films ── */
.reel { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; border-radius: var(--r); overflow: hidden; background: #1a1a1a; margin-bottom: 36px; text-align: left; color: #fff; }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease), opacity 0.5s; }
.reel:hover img { transform: scale(1); }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 60%); }
.reel__tc { position: absolute; left: 22px; top: 18px; font: 500 11.5px var(--mono); letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.85); }
.reel__label { position: absolute; left: clamp(18px, 3vw, 36px); right: 20px; bottom: clamp(18px, 3vw, 32px); display: flex; align-items: center; gap: 18px; }
.reel__label strong { display: block; font: 900 clamp(28px, 4vw, 54px)/1 var(--display); text-transform: uppercase; }
.reel__label small { display: block; margin-top: 6px; opacity: 0.8; font-size: 14px; }
.reel__play, .film__play, .cs__play { display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); flex: none; }
.reel__play { width: clamp(56px, 6vw, 80px); aspect-ratio: 1; transition: transform 0.4s var(--ease); }
.reel__play svg, .film__play svg, .cs__play svg { width: 38%; height: 38%; margin-left: 5%; }
.reel:hover .reel__play { transform: scale(1.1); }
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.film[hidden] { display: none; }
.film button { display: block; width: 100%; text-align: left; }
.film__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2a2a2a, #121212); }
.film__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.5s, filter 0.5s; filter: grayscale(0.35); }
.film button:hover .film__media img { transform: scale(1.06); filter: none; }
img[data-vimeo-thumb]:not([src]) { opacity: 0; }
.film__play { position: absolute; left: 50%; top: 50%; width: 52px; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0.85); transition: transform 0.4s var(--ease); }
.film button:hover .film__play { transform: translate(-50%, -50%) scale(1); }
.film__dur { position: absolute; right: 8px; bottom: 8px; font: 500 11px var(--mono); color: #fff; background: rgba(0, 0, 0, 0.6); padding: 2px 7px; border-radius: 4px; }
.film__dur:empty { display: none; }
.film__cat { display: block; margin-top: 12px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.film__title { display: block; margin-top: 2px; font-weight: 600; }
.film--slot .slot { aspect-ratio: 16 / 9; min-height: 0; }

/* ── projects ── */
.projs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.proj[hidden] { display: none; }
.proj a { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.proj a:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.45); }
.proj__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #1b1b1b; }
.proj__media img, .proj__media picture { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.5s; }
.proj a:hover .proj__media img { transform: scale(1.05); }
.proj__gen { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; background: var(--ink); color: var(--accent); overflow: hidden; }
.proj__gen b { font: 900 clamp(20px, 1.9vw, 28px)/1 var(--display); text-transform: uppercase; position: relative; z-index: 2; color: #fff; background: var(--ink); padding: 4px 8px 4px 0; }
.proj__gen::before { content: ''; position: absolute; right: -12%; top: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 18px solid var(--accent); opacity: 0.9; }
.proj__gen::after { content: ''; position: absolute; right: 18%; top: 22%; width: 22%; aspect-ratio: 1; background: #fff; border-radius: 50%; }
.proj__gen--gaming::before, .proj__gen--3d::before { border-radius: 18%; transform: rotate(20deg); }
.proj__gen--tech::before, .proj__gen--uiux::before { border-radius: 0; border-width: 12px; transform: rotate(45deg); }
.proj__gen--branding::after { border-radius: 0; }
.proj__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.proj__meta { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.proj__meta em { font-style: normal; color: var(--ink); }
.proj__title { font: 800 18px/1.25 var(--display); }
.proj__sum { font-size: 14.5px; color: var(--muted); }
.proj__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.proj__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.proj--slot a { background: transparent; border-style: dashed; border-color: var(--line-2); }

/* ── process / NLE timeline ── */
.nle { background: #161616; color: #e8e6e1; border-radius: var(--r); padding: 0 0 4px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.6); user-select: none; -webkit-user-select: none; }
.nle__top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: #1f1f1f; border-bottom: 1px solid #2c2c2c; font: 500 12px var(--mono); }
.nle__name { color: #9a988f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nle__tc { margin-left: auto; color: var(--accent); font-size: 15px; letter-spacing: 0.06em; }
.nle__btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); }
.nle__btn svg { width: 14px; height: 14px; margin-left: 2px; }
.nle__btn.is-playing svg { margin: 0; }
.nle__ruler { display: grid; grid-template-columns: repeat(var(--steps, 6), 1fr); margin-left: 56px; padding: 8px 0 6px; font: 500 10.5px var(--mono); color: #7d7b74; border-bottom: 1px solid #2c2c2c; background: repeating-linear-gradient(90deg, #3a3a3a 0 1px, transparent 1px 16.66%) bottom / 100% 6px no-repeat; }
.nle__tracks { position: relative; padding: 10px 0; touch-action: none; }
.nle__track { display: flex; align-items: center; height: 54px; }
.nle__tlabel { flex: none; width: 56px; text-align: center; font: 500 11px var(--mono); color: #9a988f; }
.nle__lane { position: relative; flex: 1; height: 42px; margin-right: 14px; background: #1c1c1c; border-radius: 6px; }
.nle__clip { position: absolute; top: 3px; bottom: 3px; left: calc(var(--i) * 100% / var(--n) + 2px); width: calc(100% / var(--n) - 4px); border-radius: 5px; padding: 0 10px; text-align: left; font: 600 12.5px var(--sans); color: #111; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: filter 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; }
.nle__clip--v2 { background: #8f7cf2; }
.nle__clip--v1 { background: #4fc3d9; }
.nle__clip--a1 { background: #7fd67a; }
.nle__clip:not(.is-active) { filter: saturate(0.35) brightness(0.7); }
.nle__clip.is-active { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-1px); }
.nle__head { position: absolute; top: 0; bottom: 0; left: calc(56px + var(--p, 0) * (100% - 70px)); width: 24px; margin-left: -12px; cursor: ew-resize; z-index: 2; }
.nle__head::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--rec); }
.nle__head i { position: absolute; left: 4px; top: -2px; width: 16px; height: 14px; background: var(--rec); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.nle__head:focus-visible { outline: 2px solid var(--accent); }
.nle__monitor { margin: 6px 14px 10px; padding: 18px 20px; border-radius: 10px; background: #0f0f0f; border: 1px solid #2c2c2c; min-height: 118px; }
.nle__step { font: 500 11px var(--mono); color: var(--accent); letter-spacing: 0.1em; }
.nle__monitor h3 { margin-top: 6px; font: 900 clamp(22px, 2.4vw, 30px)/1.1 var(--display); text-transform: uppercase; color: #fff; }
.nle__monitor p { margin-top: 6px; color: #b8b5ad; max-width: 60ch; }
.nle__monitor.is-swap h3, .nle__monitor.is-swap p { animation: swap 0.45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* ── resume ── */
.resume { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.resume .sub:first-child { margin-top: 0; }
.xp { position: relative; display: grid; gap: 22px; padding-left: 24px; border-left: 2px solid var(--ink); }
.xp > li { position: relative; }
.xp > li::before { content: ''; position: absolute; left: -31px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.xp__when { display: inline-block; font: 600 11px var(--mono); letter-spacing: 0.06em; background: var(--accent); padding: 2px 8px; }
.xp h4 { margin-top: 8px; font: 800 17px/1.25 var(--display); }
.xp__org { color: var(--muted); font-size: 14.5px; }
.xp li ul { margin-top: 6px; display: grid; gap: 4px; }
.xp li ul li { font-size: 14.5px; color: var(--ink-2); padding-left: 14px; position: relative; }
.xp li ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1.5px; background: var(--ink); }
.hl { display: grid; gap: 10px; }
.hl li { font-size: 14.5px; padding-left: 18px; position: relative; }
.hl li::before { content: '★'; position: absolute; left: 0; color: var(--accent); -webkit-text-stroke: 0.6px var(--ink); }
.resume__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skills__group { padding: 20px; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); }
.skills__group h4 { font: 800 13.5px var(--display); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.skills__group ul { display: flex; flex-wrap: wrap; gap: 6px; }
.skills__group li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); transition: background 0.25s; }
.skills__group li:hover { background: var(--accent); }

/* ── testimonials ── */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.quotes li { background: var(--ink); color: #fff; padding: 24px; border-radius: var(--r); }
.quotes blockquote { font-size: 16px; line-height: 1.55; }
.quotes p { margin-top: 14px; display: grid; }
.quotes strong { color: var(--accent); }
.quotes span { font-size: 13px; opacity: 0.75; }
.quotes .quotes__slot { background: none; color: var(--ink); padding: 0; grid-column: 1 / -1; }

/* ── contact ── */
.contact { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact__big { font: 900 clamp(30px, 3.6vw, 48px)/1.02 var(--display); text-transform: uppercase; }
.contact__big span { display: block; background: linear-gradient(transparent 58%, var(--accent) 58%); display: inline; }
.contact__p { margin: 18px 0 26px; color: var(--muted); }
.contact__email { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.contact__email a, .contact__line { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); padding: 6px 0; }
.contact__line { display: flex; }
.contact__email a svg, .contact__line svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--ink); color: var(--accent); }
.contact__email a:hover span, .contact__line:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.copy-toast { font: 12px var(--mono); color: #1d7a36; }
.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 10px 10px 0 var(--accent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font: 700 11.5px var(--display); text-transform: uppercase; letter-spacing: 0.08em; }
.field i { font-style: normal; font-weight: 500; text-transform: none; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font-size: 16px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--paper); resize: vertical; transition: border-color 0.25s, box-shadow 0.25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-2); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c4321f; }
.field .err { font-size: 12.5px; color: #b02a18; }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form__status { font-size: 13.5px; color: var(--muted); }
.form__status.is-ok { color: #1d7a36; }
.form__status.is-err { color: #b02a18; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: clamp(64px, 8vw, 100px); padding-top: 20px; border-top: 1.5px solid var(--ink); font-size: 13.5px; color: var(--muted); }
.foot a:hover { color: var(--ink); }
.noscript { display: grid; gap: 8px; margin-top: 16px; }

/* ── dialogs ── */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10, 10, 10, 0.78); backdrop-filter: blur(6px); }
.cs { width: min(1040px, 100vw); height: 100dvh; margin: 0 auto; }
.cs[open] { animation: dlgIn 0.5s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px); } }
.cs__inner { height: 100%; overflow-y: auto; background: var(--paper); padding: clamp(64px, 7vw, 88px) clamp(20px, 5vw, 60px) 60px; overscroll-behavior: contain; }
.cs__close, .player__close { position: fixed; top: 16px; right: 16px; background: var(--accent); border-color: var(--ink); z-index: 3; }
.cs__kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.cs__title { margin: 16px 0 12px; font: 900 clamp(30px, 4.4vw, 56px)/1 var(--display); text-transform: uppercase; }
.cs__summary { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 60ch; }
.cs__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 28px 0; background: var(--ink); color: #fff; border-radius: 4px; }
.cs__facts div { padding: 16px 18px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.cs__facts dt { font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cs__facts dd { margin: 4px 0 0; font-size: 14.5px; }
.cs__body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.cs__body h3 { font: 800 12.5px var(--display); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.cs__body p { color: var(--ink-2); }
.cs__list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.cs__list li { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.cs__media { display: grid; gap: 18px; margin-top: 36px; }
.cs__media .embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; }
.cs__media .embed iframe, .cs__media .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs__media .embed button { position: absolute; inset: 0; width: 100%; }
.cs__media .embed button img { width: 100%; height: 100%; object-fit: cover; }
.cs__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; aspect-ratio: 1; }
.cs__media > img { border-radius: 10px; width: 100%; }
.cs__media .slot { aspect-ratio: 16 / 9; }
.cs__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.cs__nav button { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.cs__nav button:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.player { width: 100vw; height: 100dvh; }
.player[open] { display: grid; place-items: center; animation: dlgIn 0.4s var(--ease); }
.player__frame { position: relative; width: min(92vw, calc((100dvh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.player__frame iframe, .player__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__title { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #fff; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── responsive ── */
@media (max-width: 1280px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .rail { display: none; }
  .main { padding-right: 0; }
  .hero { grid-template-columns: 1fr; }
  .vf { min-height: 0; aspect-ratio: 4 / 5; max-height: 80vh; order: -1; }
  .hero__text { padding-top: 40px; }
  .about, .resume, .contact { grid-template-columns: 1fr; }
  .films, .projs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs__body { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .side { inset: 0 0 auto 0; width: auto; height: 64px; flex-direction: row; align-items: center; padding: 0 12px; box-shadow: 0 2px 0 var(--ink); }
  .side__id { display: flex; align-items: center; gap: 10px; }
  .side__id::after { display: none; }
  .side__photo { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); }
  .side__name { position: static; color: var(--ink); text-shadow: none; font-size: 17px; }
  .side__name strong { color: var(--ink); }
  .side__role { display: none; }
  .side__toggle { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); }
  .side__toggle svg { width: 20px; height: 20px; }
  .side__nav { position: fixed; inset: 64px 0 0; background: var(--accent); padding: 24px; align-items: flex-start; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s; }
  .side__nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .side__nav a { font-size: 24px; padding: 12px 16px; }
  .side__foot { display: none; }
  .side__nav.is-open + .side__foot { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--accent); }
  .main { padding-top: 64px; }
  .vf { aspect-ratio: 1; }
}
@media (max-width: 640px) {
  .films, .projs, .services, .skills, .quotes { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .reel { aspect-ratio: 16 / 10; }
  .reel__label small { display: none; }
  .hero__last { -webkit-text-stroke-width: 1.5px; }
  .nle__clip { font-size: 11px; padding: 0 6px; }
  .nle__name { display: none; }
  .stats strong { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-in] { opacity: 1; transform: none; }
}

/* ── AI Lab: sidebar badge, home teaser band ── */
.side__badge { margin-left: auto; font: 700 9.5px var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; background: var(--ink); color: var(--accent); }
.side__nav a.is-active .side__badge { background: var(--accent); color: var(--ink); }
.labband { margin: 0 var(--pad); max-width: calc(1240px - 2 * var(--pad)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(24px, 3.4vw, 44px); background: var(--ink); color: #fff; border-radius: calc(var(--r) + 4px); overflow: hidden; position: relative; }
.labband::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 184, 0, 0.22), transparent); pointer-events: none; }
.labband__kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.labband h2 { margin: 12px 0; font: 900 clamp(26px, 3vw, 40px)/1.05 var(--display); text-transform: uppercase; }
.labband p { color: rgba(255, 255, 255, 0.78); margin-bottom: 22px; max-width: 48ch; }
.labband__shots { position: relative; display: block; aspect-ratio: 16 / 11; }
.labband__shot { position: absolute; width: 78%; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.15); transition: transform 0.6s var(--ease); }
.labband__shot img { width: 100%; height: auto; }
.labband__shot--0 { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.labband__shot--1 { right: 0; bottom: 0; transform: rotate(3deg); z-index: 2; }
.labband__shots:hover .labband__shot--0 { transform: rotate(-5deg) translate(-8px, -6px); }
.labband__shots:hover .labband__shot--1 { transform: rotate(4deg) translate(8px, 6px); }

/* ── AI Lab page ── */
.labhero { padding-top: clamp(48px, 7vw, 96px); }
.labhero__h { font: 900 clamp(40px, 7vw, 96px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.labhero .hbox p { font: 600 clamp(15px, 1.4vw, 19px) var(--sans); color: var(--ink); }
.labhero__intro { max-width: 70ch; margin: 0 auto 32px; text-align: center; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.stats--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats--row li { border-bottom-width: 0 !important; border-right-width: 1px; }
.stats--row li:last-child { border-right-width: 0; }
.stats--row strong { font-size: clamp(24px, 2.8vw, 40px); }
.labjump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.labjump a { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.labjump a:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--accent); }
.labjump span { grid-row: span 2; font: 700 12px var(--mono); background: var(--accent); padding: 6px 8px; border-radius: 6px; }
.labjump strong { font: 800 15px var(--display); text-transform: uppercase; }
.labjump em { grid-column: 2; font-style: normal; font-size: 13px; color: var(--muted); }
.labjump svg { grid-column: 3; grid-row: 1 / span 2; }
.lab { border-top: 1.5px solid var(--ink); }
.lab__head { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(14px, 2vw, 24px); align-items: center; margin-bottom: 28px; }
.lab__num { font: 900 clamp(44px, 6vw, 84px)/1 var(--display); color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lab__head h2 { font: 900 clamp(30px, 4vw, 56px)/1 var(--display); text-transform: uppercase; }
.lab__tagline { margin-top: 6px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); }
.lab__status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #e3f5e5; color: #17632b; }
.lab__status i { width: 7px; height: 7px; border-radius: 50%; background: #1fa84a; box-shadow: 0 0 0 0 rgba(31, 168, 74, 0.6); animation: pulse 1.8s infinite; }
.lab__status--dev { background: var(--paper-2); color: var(--muted); }
.lab__status--dev i { background: var(--accent); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(31, 168, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 168, 74, 0); } }
.browser { border-radius: 12px; overflow: hidden; background: #1c1c1e; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55), 0 0 0 1.5px var(--ink); }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #2a2a2d; flex-wrap: wrap; }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }
.browser__url { flex: 1; min-width: 160px; max-width: 360px; padding: 5px 12px; border-radius: 6px; background: #1c1c1e; color: #d8d6d0; font: 500 12px var(--mono); }
.browser__url:hover { color: #fff; }
.browser__tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.browser__tabs button { padding: 5px 12px; border-radius: 6px; font: 600 12px var(--sans); color: #b9b7b1; transition: background 0.25s, color 0.25s; }
.browser__tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.browser__tabs button.is-active { background: var(--accent); color: var(--ink); }
.browser__view { position: relative; aspect-ratio: 1389 / 868; background: #fff; }
.browser__shot { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.browser__shot.is-active { opacity: 1; }
.browser__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser figcaption { padding: 8px 14px; font: 500 11.5px var(--mono); color: #9a988f; background: #1c1c1e; }
.no-js .browser__shot { position: static; opacity: 1; }
.lab__body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); margin-top: 12px; }
.lab__intro { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; }
.lab__facts { margin-top: 22px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lab__facts div { background: var(--card); padding: 12px 16px; }
.lab__facts dt { font: 600 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lab__facts dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 500; }
.feats { display: grid; gap: 10px; }
.feats > li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand, var(--accent)); border-radius: 10px; transition: transform 0.3s var(--ease); }
.feats > li:hover { transform: translateX(4px); }
.feats > li > span { font: 700 12px var(--mono); color: var(--brand, var(--ink)); padding-top: 2px; }
.feats h4 { font: 800 15px var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.feats p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.devs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.devs > li { padding: 24px; background: var(--card); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.devs h3 { font: 800 20px var(--display); text-transform: uppercase; margin: 4px 0 8px; }
.devs > li > p:not(.lab__status) { color: var(--muted); font-size: 15px; }
.devs ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.devs ul li { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.labcta { margin-top: 48px; padding: clamp(22px, 3vw, 36px); background: var(--accent); border: 1.5px solid var(--ink); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.labcta p { font: 800 clamp(18px, 1.8vw, 24px)/1.2 var(--display); max-width: 36ch; }
.labcta div { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1100px) {
  .labband { grid-template-columns: 1fr; }
  .lab__body { grid-template-columns: 1fr; }
  .labjump { grid-template-columns: 1fr; }
  .stats--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--row li:nth-child(2) { border-right-width: 0; }
  .stats--row li:nth-child(-n + 2) { border-bottom-width: 1px !important; }
}
@media (max-width: 640px) {
  .lab__head { grid-template-columns: auto 1fr; }
  .lab__cta { grid-column: 1 / -1; justify-self: start; }
  .devs { grid-template-columns: 1fr; }
  .browser__tabs { margin-left: 0; width: 100%; }
  .labband { margin: 0 16px; }
}
