/* Pushkar Raj Singh — portfolio
   Black / white / signal-red poster system. Bricolage Grotesque + Figtree (self-hosted). */
:root {
  --ink: #0d0d0d;
  --paper: #f3f3f0;
  --white: #fff;
  --red: #e4261a;
  --red-dark: #c21d12;
  --gray: #6a6a66;
  --line: rgba(13, 13, 13, .14);
  --gut: clamp(20px, 4.2vw, 64px);
  --bar: 72px;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.19, .9, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 clamp(16px, .35vw + 14.6px, 18px)/1.6 var(--text); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.sr { 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: 200; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.dark :focus-visible, .contact :focus-visible, .foot :focus-visible, .reel :focus-visible { outline-color: #fff; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
::selection { background: var(--red); color: #fff; }

/* headings */
.h2, .hero-title, .contact-title { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: .9; font-variation-settings: "wdth" 86, "opsz" 96; }
.h2 { font-size: clamp(2.7rem, 7vw, 6.6rem); }

/* words that rise out of a mask (JS wraps the words) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em; margin: 0 -.04em; }
.wi { display: inline-block; will-change: transform; }
.js:not([data-motion="off"]) .wi { transform: translateY(112%); transition: transform 1s var(--ease) calc(var(--i, 0) * 55ms + var(--base, 0ms)); }
.js:not([data-motion="off"]) .split.in .wi { transform: none; }
.split { display: block; }

[data-fade] { }
.js:not([data-motion="off"]) [data-fade] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--dl, 0ms), transform .9s var(--ease) var(--dl, 0ms); }
.js:not([data-motion="off"]) [data-fade].in { opacity: 1; transform: none; }

/* ---------- progress + header ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gut); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.bar.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.94); }
.js:not([data-motion="off"]) .bar { animation: barIn .8s var(--ease) both; }
@keyframes barIn { from { transform: translateY(-100%); } }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; background: var(--red); display: grid; place-items: center; transition: transform .5s var(--ease); }
.logo-mark svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; font-variation-settings: "wdth" 90; }
.logo-text small { font-size: .72rem; color: var(--gray); font-weight: 500; letter-spacing: .04em; }
.menu ul { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.menu a { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 8px 0; }
.menu a:not(.menu-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.menu a:not(.menu-cta):hover::after, .menu a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.menu-cta { background: var(--ink); color: #fff; padding: 11px 22px !important; transition: background .25s; }
.menu-cta:hover { background: var(--red); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-of-type(1) { top: 18px; } .burger i:nth-of-type(2) { top: 26px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn .ic { transition: transform .4s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-line { border: 2px solid var(--ink); }
.btn-line:hover { color: #fff; border-color: var(--red); }
.btn-line .ic { }
.btn-line:hover .ic { transform: translateY(3px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white::before { background: var(--ink); }
.btn-white:hover { color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline::before { background: #fff; }
.btn-outline:hover { color: var(--red); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--bar) + clamp(24px, 3.4vw, 48px)) 0 clamp(48px, 6vw, 96px); }
.avail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; margin-bottom: clamp(14px, 2vw, 24px); }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: rec 1.4s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.hero-title { font-size: clamp(3.1rem, 8.8vw, 9.2rem); margin-bottom: clamp(28px, 4vw, 56px); }
.hero-title .red { color: var(--red); }
.hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-lede { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.5; font-weight: 500; max-width: 34ch; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 340px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--gray); font-weight: 500; }
.hero-tags li + li::before { content: "/"; margin-right: 18px; color: #bbb; }

.stage { position: relative; }
.crop { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); z-index: 2; transition: transform .8s var(--ease) .5s; }
.crop.tl { top: -12px; left: -12px; border-width: 2px 0 0 2px; } .crop.tr { top: -12px; right: -12px; border-width: 2px 2px 0 0; }
.crop.bl { bottom: -12px; left: -12px; border-width: 0 0 2px 2px; } .crop.br { bottom: -12px; right: -12px; border-width: 0 2px 2px 0; }
.js:not([data-motion="off"]) .crop { opacity: 0; animation: cropIn .8s var(--ease) .9s forwards; }
@keyframes cropIn { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: none; } }
.stage-screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.js:not([data-motion="off"]) .stage-screen { clip-path: inset(0 0 100% 0); animation: curtain 1.15s var(--ease-io) .35s forwards; }
@keyframes curtain { to { clip-path: inset(0); } }
.stage-screen video { width: 100%; height: 100%; object-fit: cover; }
.js:not([data-motion="off"]) .stage-screen video { animation: drift 10s var(--ease) .4s both; }
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }
.stage-ui { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; color: #fff; font-weight: 700; font-size: .85rem; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.chip { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.tc { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.stage-ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ctl { height: 42px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.5); font-weight: 700; font-size: .88rem; padding: 0 12px; transition: background .25s, border-color .25s; }
.ctl:hover { background: var(--red); border-color: var(--red); }
.ctl-text { margin-left: auto; padding: 0 16px; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 10vw, 160px) 0; }
.paper { background: var(--paper); }
.work { background: var(--paper); }
.dark { background: var(--ink); color: #fff; }
.sec-h { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; align-items: end; border-top: 3px solid currentColor; padding-top: clamp(18px, 2.4vw, 32px); margin-bottom: clamp(36px, 6vw, 88px); }
.sec-note { max-width: 36ch; font-size: .98rem; color: var(--gray); font-weight: 500; }
.dark .sec-note { color: #a9a9a4; }
@media (max-width: 800px) { .sec-h { grid-template-columns: 1fr; } }

/* ---------- selected work: project bin + monitor ---------- */
.bin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.6vw, 80px); align-items: start; }
.proj-list { border-top: 3px solid var(--ink); }
.proj { position: relative; isolation: isolate; width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 26px; gap: 14px; align-items: center; text-align: left; padding: 22px 14px 22px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .35s; overflow: hidden; }
.proj::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); z-index: -1; }
.proj:hover { padding-left: 14px; }
.proj[aria-current="true"] { color: #fff; padding-left: 16px; }
.proj[aria-current="true"]::before { transform: none; }
.proj-n { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--red); font-variation-settings: "wdth" 90; }
.proj-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proj-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.85vw, 1.7rem); line-height: 1.1; letter-spacing: -.02em; font-variation-settings: "wdth" 90; }
.proj-c { font-size: .84rem; color: var(--gray); font-weight: 500; transition: color .3s; }
.proj[aria-current="true"] .proj-c { color: #bdbdb8; }
.proj-d { font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.proj-ic { width: 22px; height: 22px; opacity: 0; transform: translateX(-10px); transition: .4s var(--ease); color: #fff; }
.proj:hover .proj-ic { opacity: 1; transform: none; color: var(--red); }
.proj[aria-current="true"] .proj-ic { opacity: 1; transform: none; color: var(--red); }

.monitor { position: sticky; top: calc(var(--bar) + 20px); }
.canvas { position: relative; height: clamp(340px, 62vh, 620px); transition: height .6s var(--ease); display: grid; place-items: center; overflow: hidden; background-color: #e4e4df; background-image: radial-gradient(#c8c8c2 1.1px, transparent 1.3px); background-size: 20px 20px; }
.screen { position: relative; background: #000; box-shadow: 0 34px 60px -28px rgba(0,0,0,.55); transition: width .65s var(--ease), height .65s var(--ease), opacity .3s; flex: none; }
.screen img, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen video { opacity: 0; transition: opacity .5s; }
.screen.live video { opacity: 1; }
.screen img { transition: opacity .3s; }
.screen.swap img, .screen.swap video { opacity: 0 !important; }
.m-play { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; transition: background .25s, transform .4s var(--ease); }
.m-play:hover { background: var(--ink); transform: translateY(-2px); }
.m-play.big { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; justify-content: center; padding: 0; }
.m-play.big .ic { width: 36px; height: 36px; margin-left: 5px; }
.m-play.big:hover { transform: translate(-50%, -50%) scale(1.08); }
.screen.full .m-play, .reel-screen.playing .m-play { display: none; }
.info { padding-top: 26px; }
.info > * { transition: opacity .35s, transform .5s var(--ease); }
.info.swap > * { opacity: 0; transform: translateY(10px); }
.info-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.info-head h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -.03em; line-height: 1; font-variation-settings: "wdth" 88; }
.meta { font-size: .88rem; font-weight: 600; color: var(--gray); }
.info-desc { margin-top: 16px; max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { font-size: .84rem; font-weight: 600; padding: 7px 12px; border: 1.5px solid var(--ink); }
.note { margin-top: 14px; font-size: .84rem; color: var(--gray); max-width: 62ch; border-left: 3px solid var(--red); padding-left: 12px; }
.fine { margin-top: clamp(40px, 6vw, 80px); font-size: .84rem; color: var(--gray); max-width: 76ch; }

/* shared custom player bar */
.pbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 26px 8px 6px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.82)); transition: opacity .35s; }
.pbar[hidden] { display: none; }
.pb { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.pb:hover { color: var(--red); }
.pb svg { width: 22px; height: 22px; fill: currentColor; }
.pb .i-p { display: none; }
.pb.is-playing .i-p { display: block; } .pb.is-playing .i-pl { display: none; }
.pb.muted .wave { display: none; }
.pb-time { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 6px; flex: none; }
.pb-seek { position: relative; flex: 1; min-width: 40px; height: 40px; display: flex; align-items: center; }
.pb-seek input { width: 100%; margin: 0; height: 40px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; position: relative; z-index: 1; }
.pb-seek input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--red) var(--p, 0%), rgba(255,255,255,.35) var(--p, 0%)); }
.pb-seek input::-moz-range-track { height: 3px; background: rgba(255,255,255,.35); }
.pb-seek input::-moz-range-progress { height: 3px; background: var(--red); }
.pb-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: #fff; margin-top: -4.5px; border: 0; }
.pb-seek input::-moz-range-thumb { width: 12px; height: 12px; background: #fff; border: 0; border-radius: 0; }
.screen.full:not(:hover):not(:focus-within) .pbar, .reel-screen.playing:not(:hover):not(:focus-within) .pbar { opacity: 0; }
.media-status { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; font-weight: 600; background: rgba(0,0,0,.8); font-size: .92rem; }
.media-status[data-state="loading"] { background: transparent; pointer-events: none; }
.media-status[data-state="loading"]::before { content: ""; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--red); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- breakdown accordion ---------- */
.acc { border-bottom: 1px solid rgba(255,255,255,.2); }
.acc-item { border-top: 1px solid rgba(255,255,255,.2); }
.acc-btn { width: 100%; display: grid; grid-template-columns: clamp(48px, 7vw, 96px) minmax(0, 1fr) 30px; gap: 8px; align-items: center; text-align: left; padding: clamp(20px, 2.8vw, 34px) 0; transition: color .3s, padding .5s var(--ease); }
.acc-btn:hover { color: var(--red); padding-left: 10px; }
.acc-n { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 1.1rem; }
.acc-t { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 3.2rem); letter-spacing: -.035em; line-height: 1; font-variation-settings: "wdth" 88; }
.acc-btn .ic { width: 28px; height: 28px; transition: transform .5s var(--ease); }
.acc-btn[aria-expanded="true"] .ic { transform: rotate(45deg); color: var(--red); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); padding: 4px 0 clamp(26px, 3.4vw, 44px) clamp(48px, 7vw, 96px); }
.facts div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.14); }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.facts dd { font-size: .98rem; color: #d8d8d3; line-height: 1.5; }
.js:not([data-motion="off"]) .facts div { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js:not([data-motion="off"]) .acc-item.open .facts div { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 70ms + 200ms); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .acc-btn { grid-template-columns: 40px minmax(0, 1fr) 26px; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.lede { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 3.3rem); line-height: 1.12; letter-spacing: -.03em; font-variation-settings: "wdth" 90; }
.lede .lw { color: var(--ink); transition: color .25s linear; }
.js:not([data-motion="off"]) .lede .lw { color: #cdcdc8; }
.js:not([data-motion="off"]) .lede .lw.on { color: var(--ink); }
.about-side { display: grid; gap: 1.1em; color: #3c3c3a; padding-top: .4em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 110px); border-top: 3px solid var(--ink); }
.stats > div { padding-top: 18px; }
.stats dt { font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 11vw, 10rem); line-height: .9; letter-spacing: -.05em; font-variation-settings: "wdth" 80, "opsz" 96; font-variant-numeric: tabular-nums; }
.stats dt::after { content: ""; }
.stats dd { font-weight: 600; margin-top: 10px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- experience timeline ---------- */
.timeline { position: relative; padding-left: clamp(28px, 4vw, 56px); }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; background: var(--ink); transform: scaleY(var(--p, 1)); transform-origin: top; }
.timeline li { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 40px; padding: 0 0 clamp(36px, 5vw, 72px); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-1 * clamp(28px, 4vw, 56px) + 0px); top: .55em; width: 15px; height: 15px; background: var(--red); transition: transform .7s var(--ease); }
.js:not([data-motion="off"]) .timeline li::before { transform: scale(0); }
.js:not([data-motion="off"]) .timeline li.in::before { transform: none; }
.t-when { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.03em; line-height: 1; color: var(--red); }
.t-body h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 3.2rem); letter-spacing: -.035em; line-height: 1; font-variation-settings: "wdth" 88; }
.t-body p { margin-top: 14px; max-width: 62ch; color: #3c3c3a; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; } }

/* ---------- software ---------- */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tool { position: relative; padding: clamp(22px, 2.4vw, 34px); background: var(--paper); display: flex; flex-direction: column; gap: 8px; transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .3s; overflow: hidden; }
.tool::after { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tool:hover { transform: translateY(-8px); box-shadow: 0 28px 40px -24px rgba(0,0,0,.35); background: #fff; }
.tool:hover::after { transform: none; }
.tool-mark { width: 58px; height: 58px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.04em; border-radius: 10px; margin-bottom: 14px; border: 2px solid currentColor; }
.tool-mark.pr { background: #1a0f5c; color: #a99bff; } .tool-mark.ae { background: #1a0f5c; color: #c9a3ff; }
.tool-mark.ai { background: #2e1200; color: #ff9a1f; } .tool-mark.dr { background: #181818; color: #e9e9e9; }
.tool-mark.cc { background: #000; color: #fff; }
.tool h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.03em; line-height: 1.05; font-variation-settings: "wdth" 90; }
.tool-role { font-weight: 700; font-size: .9rem; color: var(--red); }
.tool p:last-child { font-size: .96rem; color: #3c3c3a; }
.tool-more { background: transparent; border: 2px dashed #bdbdb8; justify-content: center; }
.tool-more:hover { transform: none; box-shadow: none; background: transparent; }
@media (max-width: 960px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.svc { border-top: 1px solid rgba(255,255,255,.2); }
.svc li { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: clamp(48px, 7vw, 96px) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 32px; align-items: baseline; padding: clamp(20px, 2.6vw, 32px) 0; border-bottom: 1px solid rgba(255,255,255,.2); transition: padding .5s var(--ease); }
.svc li::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: -1; }
.svc li:hover { padding-left: 16px; padding-right: 16px; }
.svc li:hover::before { transform: none; }
.svc-n { font-family: var(--display); font-weight: 800; color: var(--red); transition: color .3s; }
.svc li:hover .svc-n { color: #fff; }
.svc h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.8vw, 2.5rem); letter-spacing: -.035em; line-height: 1.02; font-variation-settings: "wdth" 88; }
.svc p { color: #b4b4af; transition: color .3s; }
.svc li:hover p { color: #fff; }
@media (max-width: 760px) { .svc li { grid-template-columns: 40px minmax(0, 1fr); } .svc p { grid-column: 2; } }

/* ---------- contact ---------- */
.contact { background: var(--red); color: #fff; padding-bottom: clamp(64px, 9vw, 140px); }
.stripe { height: 34px; margin-bottom: clamp(56px, 8vw, 120px); background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, #fff 18px 36px); background-size: 51px 100%; animation: stripes 2.4s linear infinite; }
@keyframes stripes { to { background-position: 51px 0; } }
.contact-title { font-size: clamp(3rem, 10vw, 10.4rem); margin-bottom: clamp(40px, 6vw, 96px); }
.contact-title .split:last-child { font-size: .62em; margin-top: .12em; letter-spacing: -.04em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; border-top: 3px solid #fff; padding-top: 28px; }
.c-name { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.03em; }
.c-list li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 8px 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.45); }
.c-list li:first-child { padding-top: 0; }
.c-label { font-weight: 700; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.c-link { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 3.2vw, 2.9rem); letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; line-height: 1.1; background: linear-gradient(#fff, #fff) 0 100% / 0 3px no-repeat; transition: background-size .5s var(--ease); font-variation-settings: "wdth" 90; }
.c-link:hover { background-size: 100% 3px; }
.copy { font-weight: 700; font-size: .84rem; padding: 9px 14px; border: 2px solid #fff; transition: background .25s, color .25s; }
.copy:hover { background: #fff; color: var(--red); }
.c-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.btn-white::before { background: var(--ink); }
.contact .btn-white { color: var(--red); } .contact .btn-white:hover { color: #fff; }
.live { margin-top: 14px; min-height: 1.4em; font-weight: 700; font-size: .9rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .c-list li { grid-template-columns: 1fr; } .copy { justify-self: start; } }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #fff; padding: 28px 0 36px; font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; }
.foot-r { display: flex; gap: 24px; align-items: center; }
.foot a, .motion { text-decoration: none; font-weight: 600; transition: color .25s; }
.foot a:hover, .motion:hover { color: var(--red); }
.motion { border: 1.5px solid rgba(255,255,255,.4); padding: 7px 12px; }
.foot-c { grid-column: 1 / -1; color: #8d8d88; font-size: .8rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- showreel modal ---------- */
.reel { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(8,8,8,.97); color: #fff; overflow: auto; }
.reel::backdrop { background: #000; }
.reel[open] { display: grid; place-items: center; animation: reelIn .5s var(--ease); }
@keyframes reelIn { from { opacity: 0; transform: scale(.97); } }
.reel-x { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; color: var(--ink); z-index: 10; transition: background .25s, color .25s, transform .4s var(--ease); }
.reel-x:hover { background: var(--red); color: #fff; transform: rotate(90deg); }
.reel-x .ic { width: 22px; height: 22px; }
.reel-in { width: min(1280px, 94vw, calc((100dvh - 150px) * 16 / 9)); padding: 70px 0 20px; }
.reel-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.reel-screen video { width: 100%; height: 100%; object-fit: contain; }
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chapters button { display: inline-flex; gap: 10px; align-items: baseline; padding: 9px 14px; border: 1.5px solid rgba(255,255,255,.35); font-weight: 600; font-size: .88rem; transition: background .25s, border-color .25s; }
.chapters button i { font-style: normal; color: var(--red); font-variant-numeric: tabular-nums; font-weight: 800; }
.chapters button:hover { border-color: #fff; }
.chapters button.on { background: #fff; color: var(--ink); border-color: #fff; }
.reel-note { margin-top: 12px; font-size: .8rem; color: #8d8d88; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-row { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .hero-cta { flex-direction: row; flex-wrap: wrap; max-width: none; }
  .bin { grid-template-columns: 1fr; }
  .monitor { position: relative; top: 0; order: -1; }
  .canvas { height: clamp(300px, 56vh, 520px); }
}
@media (max-width: 860px) {
  .burger { display: block; position: relative; z-index: 3; }
  .menu { position: fixed; inset: 0; background: var(--ink); color: #fff; display: grid; place-items: center; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s; z-index: 2; }
  .menu.open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
  .menu ul { flex-direction: column; gap: 10px; }
  .menu a { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 4rem); letter-spacing: -.04em; }
  .menu-cta { background: var(--red) !important; padding: 10px 26px !important; margin-top: 10px; }
  .logo { position: relative; z-index: 3; }
  .bar.menu-open .logo-text b, .bar.menu-open .logo-text small { color: #fff; }
  .bar.menu-open .burger i { background: #fff; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .stage-ui { padding: 12px; font-size: .78rem; } .tc { display: none; }
  .ctl-text { padding: 0 12px; }
  .proj { grid-template-columns: 36px minmax(0, 1fr) auto; } .proj-ic { display: none; }
}

/* motion toggled off by the visitor */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="off"] .stripe { background-position: 0 0; }
