/* Layout: a gallery portfolio. Statement hero, two featured cards (game, AI agent), a filterable
   grid of real screenshots and clips, an index, about, contact. Case pages reuse the same tokens.
   Dark by default, with a light theme the visitor can switch to. */
:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --fg: #f3f1ec;
  --dim: #a19e97;
  --faint: #6c6a65;
  --line: #26262a;
  --accent: #e2456a;
  --glow: rgba(226, 69, 106, .13);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f3ef;
  --panel: #ffffff;
  --panel-2: #ece9e3;
  --fg: #16151a;
  --dim: #57544e;
  --faint: #8b877f;
  --line: #e0dcd4;
  --accent: #d6345c;
  --glow: rgba(214, 52, 92, .10);
  color-scheme: light;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s ease, color .4s ease;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 28px; }
.label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cursor glow (desktop only, follows the pointer) */
.glow { position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%); opacity: 0; transition: opacity .6s ease; will-change: transform; }
.glow.on { opacity: 1; }
main, footer, .nav { position: relative; z-index: 1; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.nav .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font: 800 20px/1 var(--display); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--dim); }
.nav nav a:hover { color: var(--fg); }
.clock { font: 400 13px var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .4s cubic-bezier(.2,.7,.2,1); }
.theme:hover { border-color: var(--faint); transform: rotate(-20deg); }
.theme svg { width: 17px; height: 17px; }
.theme .sun { display: none; }
:root[data-theme="light"] .theme .sun { display: block; }
:root[data-theme="light"] .theme .moon { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; font: 500 15px/1 var(--sans); border: 1px solid var(--line); color: var(--fg); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { border-color: var(--dim); }
.btn.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }

/* Hero */
.hero { padding-block: 72px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hello { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; font: 800 22px var(--display); color: #fff; letter-spacing: -0.03em; flex: none; }
.hello b { display: block; font: 600 16px var(--sans); }
.hello div span { font-size: 14px; color: var(--dim); }
.hero h1 { font: 700 clamp(2rem, 4.1vw, 3.3rem)/1.04 var(--display); letter-spacing: -0.035em; margin: 0; max-width: 18ch; text-wrap: balance; }
.hero .bio { margin: 20px 0 0; color: var(--dim); font-size: 1rem; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.now { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--panel); }
.now ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.now li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--dim); }
.now li b { color: var(--fg); font-weight: 500; }
.now li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 8px 0 0 4px; }
.now .foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; }

/* Rotating word in the headline */
.rotator { position: relative; display: inline-grid; vertical-align: bottom; color: var(--accent); overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.rotator .word { grid-area: 1 / 1; opacity: 0; transform: translateY(60%); filter: blur(6px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1), filter .5s ease; white-space: nowrap; }
.rotator .word.is-on { opacity: 1; transform: none; filter: none; }
.rotator .word.is-out { opacity: 0; transform: translateY(-60%); filter: blur(6px); }

/* Featured game (always dark, it is a poster) */
.featured { position: relative; border-radius: 22px; overflow: hidden; background: #071514; color: #f3f1ec; isolation: isolate; min-height: 560px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.featured .cover { position: absolute; inset: 0; z-index: -2; background: url("img/deadcity-cover.jpg") 85% center/cover no-repeat; opacity: .5; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,12,12,1) 0%, rgba(4,12,12,.94) 45%, rgba(4,12,12,.25) 100%); }
.featured .copy { padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.featured h2 { font: 800 clamp(2.2rem, 4.6vw, 3.9rem)/0.95 var(--display); letter-spacing: -0.04em; margin: 0; }
.featured p { margin: 0; color: #c4d3d0; max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.chips li { font: 400 12px var(--mono); color: #b9c9c6; border: 1px solid rgba(185,201,198,.25); padding: 5px 10px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.featured .btn, .omni .btn { color: #f3f1ec; border-color: rgba(243,241,236,.25); }
.featured .btn.solid, .omni .btn.solid { background: #f3f1ec; color: #0b0b0c; border-color: #f3f1ec; }
.featured .btn.solid:hover, .omni .btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.phones { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.phone { width: clamp(120px, 15vw, 190px); border-radius: 22px; overflow: hidden; border: 5px solid #0d1514; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); background: #000; transition: transform .5s cubic-bezier(.2,.7,.2,1); animation: float 6s ease-in-out infinite; }
.phone img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.phone:nth-child(1) { transform: translateX(34px) rotate(-7deg) translateY(24px); }
.phone:nth-child(2) { transform: translateY(-14px); z-index: 2; width: clamp(140px, 17vw, 215px); animation-delay: -2s; }
.phone:nth-child(3) { transform: translateX(-34px) rotate(7deg) translateY(24px); animation-delay: -4s; }
.featured:hover .phone:nth-child(1) { transform: translateX(14px) rotate(-10deg) translateY(18px); }
.featured:hover .phone:nth-child(3) { transform: translateX(-14px) rotate(10deg) translateY(18px); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* OmniBot featured card (always dark) */
.omni { margin-top: 24px; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); color: #f3f1ec; background: radial-gradient(70% 90% at 85% 50%, rgba(42,171,238,.22), transparent 70%), #08111b; border: 1px solid #12253a; }
.omni .copy { padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.omni h2 { font: 800 clamp(2.2rem, 4.6vw, 3.9rem)/0.95 var(--display); letter-spacing: -0.04em; margin: 0; }
.omni p { margin: 0; color: #b9c8d8; max-width: 33em; }
.omni .chips li { color: #a9c3dc; border-color: rgba(124,196,255,.25); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 0; padding-top: 18px; border-top: 1px solid #16283d; }
.stats dt { font: 700 clamp(1.3rem, 2.2vw, 1.8rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dd { margin: 4px 0 0; font-size: 13px; color: #7f93a8; }
.orbit { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; }
.orbit .rings { position: absolute; width: min(92%, 420px); height: auto; }
.orbit .rings circle { fill: none; stroke: rgba(124,196,255,.18); stroke-dasharray: 3 7; transform-origin: 200px 200px; }
.orbit .rings circle:first-child { animation: spin 40s linear infinite; }
.orbit .rings circle:last-child { animation: spin 70s linear infinite reverse; }
.core { width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; text-align: center; font: 800 18px/1 var(--display); letter-spacing: -0.02em; background: linear-gradient(145deg, #2aabee, #1b6fd6); color: #fff; box-shadow: 0 0 0 10px rgba(42,171,238,.08), 0 20px 60px -10px rgba(42,171,238,.6); animation: pulse-core 3.2s ease-in-out infinite; z-index: 2; }
@keyframes pulse-core { 50% { box-shadow: 0 0 0 22px rgba(42,171,238,.05), 0 20px 60px -10px rgba(42,171,238,.75); } }
.sat { position: absolute; left: 50%; top: 50%; font: 500 13px var(--sans); color: #d9e7f5; background: #0e1c2c; border: 1px solid #1d3550; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  --r: min(175px, 40vw); transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); animation: orbit 60s linear infinite; }
.sat.inner { --r: min(120px, 27vw); font-size: 12px; color: #8fb3d6; background: #0b1724; animation-duration: 40s; animation-direction: reverse; }
@keyframes orbit { from { transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(calc(var(--a) + 360deg)) translateX(var(--r)) rotate(calc(-1 * var(--a) - 360deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Work grid */
section { padding-block: 96px; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head h2 { font: 700 clamp(2rem, 4.2vw, 3.2rem)/1 var(--display); letter-spacing: -0.04em; margin: 10px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: 500 14px var(--sans); color: var(--dim); background: transparent; border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--fg); border-color: var(--faint); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters button span { font: 400 11px var(--mono); opacity: .6; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
.tile { grid-column: span 3; display: flex; flex-direction: column; gap: 16px; }
.tile[hidden] { display: none; }
.tile.wide { grid-column: span 4; }
.tile.narrow { grid-column: span 2; }
.tile.full { grid-column: 1 / -1; }
.media { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); aspect-ratio: 16 / 10;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; will-change: transform; }
.tile:hover .media { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile:hover .media > img, .tile:hover .media > video { transform: scale(1.035); }
.media.pad { padding: 18px; display: grid; place-items: center; background: #161618; }
.media.pad > img { height: auto; object-fit: contain; border-radius: 8px; }
.tile.full .media { aspect-ratio: 21 / 9; }
.media .badge { position: absolute; left: 14px; top: 14px; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 999px; display: flex; align-items: center; gap: 7px; }
.media .badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tile .meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.tile h3 { font: 700 1.45rem/1.15 var(--display); letter-spacing: -0.025em; margin: 0 0 4px; }
.tile p { margin: 0; color: var(--dim); font-size: 15px; max-width: 46em; }
.tile .kind { white-space: nowrap; padding-top: 6px; }
.links-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.go { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--fg); border-bottom: 1px solid var(--faint); padding-bottom: 2px; }
.go:hover { border-color: var(--accent); color: var(--accent); }
.go.case::after { content: "→"; transition: transform .25s; }
.go.case:hover::after { transform: translateX(4px); }

/* Voom VPN showcase */
.media.voom { aspect-ratio: auto; height: 100%; min-height: 420px; display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 40%, rgba(214,0,240,.35), transparent 70%), #120a16; }
.voom-phone { width: 46%; max-width: 190px; border-radius: 22px; overflow: hidden; border: 5px solid #1d1022; box-shadow: 0 30px 70px -20px rgba(214,0,240,.55); animation: float 5s ease-in-out infinite; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.media.voom .voom-phone img { width: 100%; height: auto; }
.tile:hover .voom-phone { transform: rotate(-4deg) scale(1.04); }
.media.voom .voom-icon { position: absolute; top: 18px; left: 18px; width: 46px; height: 46px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(214,0,240,.4); }

/* HNG internship tile (no screenshots; shows the stages) */
.media.stages { aspect-ratio: auto; height: 100%; min-height: 300px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: linear-gradient(160deg, #1a2a1f, #101512 70%); color: #e8f2ea; }
.stages .hng { font: 800 clamp(2.4rem, 5vw, 3.6rem)/.9 var(--display); letter-spacing: -0.05em; }
.stages ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stages li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c8dccd; }
.stages li b { font: 500 11px var(--mono); color: #0f1611; background: #7fd39a; border-radius: 6px; padding: 3px 7px; }

/* Index */
.index { width: 100%; border-collapse: collapse; font-size: 15px; }
.index th { text-align: left; padding: 0 12px 14px 0; border-bottom: 1px solid var(--line); }
.index td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: top; }
.index td:first-child { color: var(--fg); font: 600 1.1rem var(--display); letter-spacing: -0.01em; }
.index tbody tr:hover td { color: var(--fg); }
.index td a { color: var(--fg); border-bottom: 1px solid var(--faint); }
.index td a:hover { color: var(--accent); border-color: var(--accent); }
.table-scroll { overflow-x: auto; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; }
.about h2 { font: 700 clamp(2rem, 4.2vw, 3.2rem)/1 var(--display); letter-spacing: -0.04em; margin: 10px 0 0; }
.about .lead { font-size: 1.25rem; line-height: 1.55; margin: 0 0 40px; color: var(--fg); }
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cap { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.cap:nth-child(odd) { border-right: 1px solid var(--line); }
.cap:nth-child(even) { padding-left: 22px; }
.cap h3 { font: 600 1.05rem var(--display); margin: 0 0 6px; }
.cap p { margin: 0; color: var(--dim); font-size: 14.5px; }

/* Contact */
.contact { padding-block: 96px; border-top: 1px solid var(--line); }
.contact-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.contact-card h2 { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.035em; margin: 10px 0 12px; }
.contact-card p { margin: 0; color: var(--dim); max-width: 32em; }
.reach { display: grid; gap: 10px; }
.mail-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); min-width: 0; }
.mail-row a { flex: 1; min-width: 0; font: 500 15.5px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row a:hover { color: var(--accent); }
.copy-btn { font: 500 13px var(--sans); color: var(--fg); background: var(--panel-2); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; cursor: pointer; flex: none; }
.copy-btn:hover { border-color: var(--faint); }
.reach small { color: var(--faint); font-size: 13px; padding-left: 18px; }
footer { padding-block: 28px 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Case study pages */
.case-hero { padding-block: 56px 40px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14.5px; margin-bottom: 36px; }
.back:hover { color: var(--fg); }
.case-hero h1 { font: 800 clamp(2.6rem, 6.5vw, 5.2rem)/.95 var(--display); letter-spacing: -0.045em; margin: 14px 0 18px; text-wrap: balance; }
.case-hero .sum { font-size: 1.2rem; color: var(--dim); max-width: 38em; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.facts div { padding: 18px 18px 18px 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; }
.facts dd a { border-bottom: 1px solid var(--faint); }
.facts dd a:hover { color: var(--accent); border-color: var(--accent); }
.case-media { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.case-media img, .case-media video { width: 100%; height: auto; }
.case-media.dark { background: #0a0a0b; }
.case-media.phones-row { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); padding: clamp(20px, 4vw, 48px); background: radial-gradient(70% 80% at 50% 40%, var(--tint, rgba(127,201,189,.18)), transparent 70%), #0b0f0f; }
.case-media.phones-row img { width: min(23%, 220px); border-radius: 18px; border: 4px solid #111; box-shadow: 0 30px 50px -20px rgba(0,0,0,.8); }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; padding-block: 72px; }
.case-body h2 { font: 700 1.5rem/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
.case-body .prose { display: grid; gap: 18px; font-size: 1.05rem; color: var(--dim); }
.case-body .prose p { margin: 0; }
.case-body .prose ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.case-body .prose b { color: var(--fg); font-weight: 500; }
.case-sec + .case-sec { border-top: 1px solid var(--line); }
.next-case { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 32px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 96px; transition: border-color .2s; }
.next-case:hover { border-color: var(--faint); }
.next-case b { display: block; font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.03em; margin-top: 8px; }
.next-case .arrow { font: 400 2rem var(--display); transition: transform .3s; }
.next-case:hover .arrow { transform: translateX(6px); }

/* Entrance and scroll reveal (content stays visible; this only moves it into place) */
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .intro, .hero .now, .case-hero .wrap > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .now { animation-delay: .12s; }
.reveal { transform: translateY(40px); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { transform: none; }
  .glow { display: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .featured, .omni { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .featured::before { background: linear-gradient(180deg, rgba(4,12,12,.55) 0%, rgba(4,12,12,.95) 60%); }
  .phones { order: -1; padding-top: 48px; }
  .orbit { min-height: 380px; order: -1; }
  .tile, .tile.wide, .tile.narrow { grid-column: span 3; }
  .about, .case-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .wrap, .contact-card { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .wrap { padding-inline: 18px; }
  .nav nav a:not(.keep), .clock { display: none; }
  section { padding-block: 72px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile.wide, .tile.narrow, .tile.full { grid-column: 1 / -1; }
  .tile.full .media { aspect-ratio: 16 / 10; }
  .caps { grid-template-columns: minmax(0, 1fr); }
  .cap:nth-child(odd) { border-right: 0; }
  .cap:nth-child(even) { padding-left: 0; }
  .phone:nth-child(1) { transform: translateX(26px) rotate(-7deg) translateY(16px); }
  .phone:nth-child(3) { transform: translateX(-26px) rotate(7deg) translateY(16px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index .hide-sm { display: none; }
  .next-case { padding: 22px; }
}
.voom-phone { display: block; }

/* Map clips on the ApexRacer page */
.maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.maps figure { margin: 0; display: grid; gap: 10px; }
.maps video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #0a0a0b; }
.maps figcaption { font-size: 14.5px; color: var(--dim); }
.maps figcaption b { display: block; color: var(--fg); font: 600 1.05rem var(--display); margin-bottom: 2px; }
@media (max-width: 680px) { .maps { grid-template-columns: minmax(0, 1fr); } }
.phone video { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clips figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.clips video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: #0a0a0b; }
.clips figcaption { font-size: 14.5px; color: var(--dim); }
.clips figcaption b { display: block; color: var(--fg); font: 600 1.05rem var(--display); margin-bottom: 2px; }
@media (max-width: 680px) { .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
