/* =========================================================
   AKSHAY — Anchor / EMCEE / Software Engineer
   ========================================================= */

:root {
  --bg: #07060d;
  --bg-2: #0e0b1c;
  --panel: #13102a;
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f6f3ff;
  --muted: #a6a1c2;

  --pink: #ff2e88;
  --violet: #8b5cf6;
  --amber: #ffb627;
  --cyan: #22d3ee;
  --lime: #a3e635;

  --a1: var(--pink);
  --a2: var(--amber);
  --a3: var(--violet);
  --grad: linear-gradient(100deg, var(--a1) 0%, var(--a3) 33%, var(--a2) 66%, var(--a1) 100%);

  --f-display: "Anton", "Impact", sans-serif;
  --f-jp: "Dela Gothic One", "Anton", sans-serif;
  --f-body: "Space Grotesk", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 22px;
}

html[data-mode="code"] {
  --a1: var(--cyan);
  --a2: var(--lime);
  --a3: #6366f1;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--a2); transition: color 0.6s; }
::selection { background: var(--a1); color: #000; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 6s linear infinite;
}

@keyframes gradShift { to { background-position: 200% 0; } }

/* ================= FX LAYERS ================= */

.grain {
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 3%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 5%); }
  80% { transform: translate(6%, 2%); }
  100% { transform: translate(0, 0); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  z-index: 100;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; width: 100%; height: 100%; }

/* custom cursor */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none; border-radius: 50%; }
.cursor {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid var(--a1);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.6s;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--a1); transition: background 0.6s; }
.cursor__label {
  font: 700 0.7rem/1 var(--f-body);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #000; opacity: 0; transition: opacity 0.2s;
}
.cursor.is-active {
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  background: var(--a1); border-color: transparent;
  mix-blend-mode: normal;
}
.cursor.is-active .cursor__label { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ================= LOADER ================= */

.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: all; }
.loader__curtain {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 14px, transparent 14px 44px),
    linear-gradient(180deg, #7a0f3a, #3d0620 70%, #1a0210);
  transition: transform 1.2s var(--ease);
}
.loader__curtain--l { left: 0; box-shadow: inset -30px 0 60px rgba(0, 0, 0, 0.6); }
.loader__curtain--r { right: 0; box-shadow: inset 30px 0 60px rgba(0, 0, 0, 0.6); }
.loader__inner { position: relative; text-align: center; transition: opacity 0.4s, transform 0.6s var(--ease); }
.loader__label { font: 700 0.9rem var(--f-mono); letter-spacing: 0.5em; color: var(--amber); }
.loader__count {
  font: 400 clamp(6rem, 20vw, 12rem)/1 var(--f-display);
  background: linear-gradient(180deg, #fff, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 182, 39, 0.6));
}
.loader__bars { display: flex; gap: 6px; justify-content: center; height: 34px; align-items: flex-end; margin-top: 0.5rem; }
.loader__bars span { width: 6px; background: var(--amber); border-radius: 3px; animation: eq 0.9s ease-in-out infinite; }
.loader__bars span:nth-child(2) { animation-delay: 0.1s; }
.loader__bars span:nth-child(3) { animation-delay: 0.25s; }
.loader__bars span:nth-child(4) { animation-delay: 0.05s; }
.loader__bars span:nth-child(5) { animation-delay: 0.3s; }
.loader__bars span:nth-child(6) { animation-delay: 0.15s; }
.loader__bars span:nth-child(7) { animation-delay: 0.2s; }

@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 34px; } }

.loader.is-done { pointer-events: none; }
.loader.is-done .loader__inner { opacity: 0; transform: scale(1.4); }
.loader.is-done .loader__curtain--l { transform: translateX(-102%); }
.loader.is-done .loader__curtain--r { transform: translateX(102%); }

/* ================= NAV ================= */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  transition: background 0.4s, padding 0.4s, transform 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 6, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font: 400 1.35rem var(--f-display);
  background: var(--grad); color: #07060d;
  transform: rotate(-8deg);
  transition: transform 0.4s var(--ease);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(8deg) scale(1.08); }
.nav__logo-text { font: 400 1.35rem var(--f-display); letter-spacing: 0.06em; }
.nav__logo-text sup { font-size: 0.55em; color: var(--a1); }

.nav__links { display: flex; gap: 2rem; }
.nav__links a { position: relative; font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 0.9rem; }

/* mode toggle */
.mode {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem; font-weight: 700;
}
.mode__opt { position: relative; z-index: 1; padding: 0.4rem 0.85rem; white-space: nowrap; transition: color 0.4s; }
.mode__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--grad);
  transition: transform 0.5s var(--ease);
}
html[data-mode="mic"] .mode__opt--mic,
html[data-mode="code"] .mode__opt--code { color: #07060d; }
html[data-mode="code"] .mode__thumb { transform: translateX(100%); }

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ================= BUTTONS ================= */

.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.01em;
  color: #07060d; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 10px 40px -10px var(--a1);
  transform: translate(var(--bx), var(--by));
  transition: transform 0.3s var(--ease), box-shadow 0.4s, background-position 0.6s;
  overflow: hidden; isolation: isolate;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 16px 50px -8px var(--a1); }
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }
.btn--full { width: 100%; }

.play-ico {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink);
  display: inline-grid; place-items: center; position: relative;
}
.play-ico::after {
  content: ""; border-left: 8px solid var(--bg); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px;
}

/* ================= COMMON ================= */

.section { position: relative; padding: clamp(5rem, 12vw, 9rem) var(--pad); }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section__title {
  font: 400 clamp(2.8rem, 8vw, 6.5rem)/0.92 var(--f-display);
  text-transform: uppercase; letter-spacing: 0.01em;
}
.section__sub { max-width: 32ch; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 600 0.78rem var(--f-mono); letter-spacing: 0.22em; color: var(--a1);
  margin-bottom: 1.1rem; transition: color 0.6s;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.chips li:hover { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 12%, transparent); transform: translateY(-3px); }
.chips--code li { font-family: var(--f-mono); font-size: 0.8rem; }

/* ================= HERO ================= */

.hero {
  position: relative; min-height: 100svh;
  padding: 7rem var(--pad) 4rem;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 20%, color-mix(in srgb, var(--a3) 35%, transparent), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, color-mix(in srgb, var(--a1) 22%, transparent), transparent 70%),
    var(--bg);
  transition: background 0.8s;
}

.hero__spot {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  left: 0; top: 0; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--a2) 22%, transparent), transparent 60%);
  pointer-events: none; mix-blend-mode: screen; opacity: 0.8;
}

.speedlines {
  position: absolute; inset: -20%;
  background: repeating-conic-gradient(from 0deg at 72% 45%, rgba(255, 255, 255, 0.045) 0deg 1.2deg, transparent 1.2deg 7deg);
  mask-image: radial-gradient(circle at 72% 45%, transparent 18%, #000 60%);
  -webkit-mask-image: radial-gradient(circle at 72% 45%, transparent 18%, #000 60%);
  animation: spin 120s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__bgtext {
  position: absolute; left: 0; right: 0; bottom: 4%;
  overflow: hidden; pointer-events: none; opacity: 0.9;
}
.hero__bgtrack { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.hero__bgtrack span {
  font: 400 clamp(7rem, 20vw, 18rem)/1 var(--f-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.hero__grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}

.tag {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.6rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  font: 600 0.78rem var(--f-mono); letter-spacing: 0.08em;
  margin-bottom: 1.6rem;
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }

.hero__title {
  font: 400 clamp(4.5rem, 13vw, 11.5rem)/0.84 var(--f-display);
  text-transform: uppercase; letter-spacing: 0.005em;
  margin-bottom: 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .word { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) .word { transition-delay: 0.1s; }
.hero__title .line:nth-child(3) .word { transition-delay: 0.2s; }
.is-ready .hero__title .word { transform: none; }
.hero__title .line:nth-child(2) .word { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.word--grad {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s linear infinite;
}
.hero__title .line:nth-child(3) { filter: drop-shadow(0 0 36px color-mix(in srgb, var(--a1) 40%, transparent)); }

.hero__lead { max-width: 46ch; color: var(--muted); margin-bottom: 2.2rem; }
.hero__lead strong { color: var(--ink); }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 0.88rem; color: var(--muted); }
.hero__meta li { position: relative; padding-left: 1rem; }
.hero__meta li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--a1); }
.hero__meta b { color: var(--ink); }

/* hero visual */
.hero__visual { position: relative; justify-self: center; width: min(100%, 520px); }

.hero__frame {
  --rx: 0deg; --ry: 0deg; --hx: 0px; --hy: 0px;
  position: relative; z-index: 1; aspect-ratio: 3 / 4;
  transform: perspective(1100px) translate3d(var(--hx), var(--hy), 0) rotateX(var(--rx)) rotateY(var(--ry));
  mask-image:
    radial-gradient(62% 58% at 50% 45%, #000 60%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 72%, transparent 97%);
  mask-composite: intersect;
  -webkit-mask-image:
    radial-gradient(62% 58% at 50% 45%, #000 60%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 8%, #000 72%, transparent 97%);
  -webkit-mask-composite: source-in;
  opacity: 0; scale: 0.9;
  transition: opacity 1.2s var(--ease) 0.3s, scale 1.2s var(--ease) 0.3s;
  cursor: pointer;
}
.is-ready .hero__frame { opacity: 1; scale: 1; }

.look { position: absolute; inset: 0; animation: breathe 4.5s ease-in-out infinite; transform-origin: 50% 90%; }
.look__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.15s ease-out;
  user-select: none; -webkit-user-drag: none;
}
.look__img--base, .look__img.is-on { opacity: 1; }
.look.is-hype { animation: hype 0.6s var(--ease); }
@keyframes breathe { 50% { transform: scale(1.012) translateY(-3px); } }
@keyframes hype {
  0% { transform: scale(1); }
  30% { transform: scale(1.05) translateY(-10px) rotate(-1.5deg); }
  60% { transform: scale(0.98) translateY(2px) rotate(1deg); }
  100% { transform: scale(1); }
}

.hero__frame-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 30% at var(--gx, 50%) var(--gy, 30%), color-mix(in srgb, var(--a1) 22%, transparent), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(7, 6, 13, 0.7));
  mix-blend-mode: screen;
}

.halo {
  position: absolute; left: 50%; top: 34%; width: 118%; aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
  opacity: 0; transition: opacity 1.4s var(--ease) 0.6s;
}
.is-ready .halo { opacity: 1; }
.halo i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--a1) 55%, transparent);
  animation: spin 40s linear infinite;
}
.halo i:nth-child(2) { inset: 9%; border: 1px solid color-mix(in srgb, var(--a3) 45%, transparent); border-left-color: transparent; border-right-color: transparent; animation-duration: 18s; animation-direction: reverse; }
.halo i:nth-child(3) { inset: -8%; border: 1px dotted rgba(255, 255, 255, 0.18); animation-duration: 70s; }

.beams { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; top: -12%; width: 34vw; height: 150vh; margin-left: -17vw;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--a2) 55%, transparent), color-mix(in srgb, var(--a1) 18%, transparent) 55%, transparent 85%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  filter: blur(14px); mix-blend-mode: screen; opacity: 0.2;
  transition: opacity 0.6s;
}
.beam--l { left: 12%; }
.beam--r { left: 88%; background: linear-gradient(180deg, color-mix(in srgb, var(--a3) 60%, transparent), color-mix(in srgb, var(--a1) 18%, transparent) 55%, transparent 85%); }
.hero:hover .beam { opacity: 0.3; }

.look-hint {
  position: absolute; left: 50%; bottom: 3%; z-index: 3; margin-left: -9.5rem; width: 19rem;
  text-align: center; white-space: nowrap;
  font: 600 0.72rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); padding: 0.5rem 0.9rem; border-radius: 999px;
  background: rgba(7, 6, 13, 0.6); border: 1px solid var(--line); backdrop-filter: blur(6px);
  animation: hintPulse 2.2s ease-in-out infinite;
  transition: opacity 0.6s;
}
.look-hint.is-gone { opacity: 0; }
@keyframes hintPulse { 50% { border-color: var(--a1); box-shadow: 0 0 24px -6px var(--a1); } }

.trail { position: fixed; inset: 0; z-index: 98; pointer-events: none; width: 100%; height: 100%; }
.halftone {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1.6px);
  background-size: 7px 7px;
  mask-image: linear-gradient(135deg, #000 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 45%);
}

.bubble {
  position: absolute; z-index: 3;
  font: 400 clamp(1rem, 1.8vw, 1.35rem)/1.1 var(--f-jp);
  color: #07060d; background: #fff;
  padding: 0.9rem 1.2rem; border-radius: 50% / 45%;
  border: 3px solid #07060d;
  box-shadow: 6px 6px 0 var(--a1);
  transition: box-shadow 0.6s;
}
.bubble::after {
  content: ""; position: absolute; bottom: -18px; left: 32%;
  border: 12px solid transparent; border-top: 18px solid #fff; border-bottom: 0;
  filter: drop-shadow(0 3px 0 #07060d);
}
.bubble--hero { top: 0; left: -26%; transform: rotate(-8deg); animation: bob 3.2s ease-in-out infinite; transition: box-shadow 0.6s, scale 0.3s var(--ease); }
.bubble--hero.is-pop { scale: 1.15; }
@keyframes bob { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(-8deg) translateY(-10px); } }

.sticker {
  position: absolute; z-index: 3;
  font: 700 0.8rem var(--f-mono); letter-spacing: 0.12em;
}
.sticker--onair {
  right: -4%; bottom: 14%;
  padding: 0.55rem 0.9rem; border-radius: 8px;
  background: #ff3b3b; color: #fff; transform: rotate(6deg);
  box-shadow: 0 0 30px rgba(255, 59, 59, 0.6);
  animation: flicker 3s infinite;
}
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: 0.3; } 96% { opacity: 1; } 98% { opacity: 0.5; } }
.sticker--star {
  left: -6%; bottom: 8%; font-size: 3.2rem; color: var(--a2);
  animation: spin 10s linear infinite; text-shadow: 0 0 20px var(--a2);
  transition: color 0.6s;
}

.jp-vert {
  position: absolute; right: -14%; top: 8%;
  writing-mode: vertical-rl;
  font: 400 clamp(1.8rem, 3.5vw, 3rem)/1 var(--f-jp);
  color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--a1) 80%, #fff);
  letter-spacing: 0.1em;
}
.jp-vert--2 { right: auto; left: -16%; top: 38%; font-size: clamp(1.2rem, 2vw, 1.8rem); -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font: 600 0.68rem var(--f-mono); letter-spacing: 0.3em; color: var(--muted);
}
.scroll-cue i { width: 1.5px; height: 44px; background: linear-gradient(var(--a1), transparent); animation: drop 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* mode-specific content */
html[data-mode="code"] .only-mic,
html[data-mode="mic"] .only-code { display: none !important; }
html[data-mode="code"] section.only-code { animation: modeIn 0.7s var(--ease); }

/* swap text animation */
.swap { display: inline-block; transition: opacity 0.25s, transform 0.25s, filter 0.25s; }
.swap.is-swapping { opacity: 0; transform: translateY(-0.2em) skewX(-8deg); filter: blur(6px); }

/* ================= MARQUEE ================= */

.marquee { position: relative; z-index: 3; overflow: hidden; padding: 1.1rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 36s; }
.marquee span { font: 400 clamp(1.6rem, 3.5vw, 2.8rem)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.marquee b { font-size: 1.4rem; }

.marquee--tilt { background: var(--grad); background-size: 200% 100%; color: #07060d; transform: rotate(-2deg) scale(1.03); margin-top: -1rem; animation: gradShift 8s linear infinite; }
.marquee--alt { background: var(--bg-2); border-block: 1px solid var(--line); transform: rotate(1.2deg) scale(1.03); margin-top: -0.4rem; }
.marquee--alt span { font-family: var(--f-jp); font-size: clamp(1.2rem, 2.6vw, 2rem); color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee--alt b { color: var(--a1); font-size: 0.8rem; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= ABOUT ================= */

.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }

.about__visual { position: relative; }
.manga-panel {
  position: relative; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden;
  clip-path: polygon(0 0, 100% 3%, 97% 100%, 2% 97%);
  box-shadow: 12px 12px 0 var(--a1);
  transition: box-shadow 0.6s;
}
.manga-panel img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1s var(--ease); }
.manga-panel:hover img { transform: scale(1.05); }
.manga-panel__fx {
  position: absolute; right: 1rem; bottom: 1rem;
  font: 400 clamp(2rem, 4vw, 3.2rem)/1 var(--f-jp);
  color: #fff; -webkit-text-stroke: 2px #07060d; paint-order: stroke fill;
  transform: rotate(-10deg);
  text-shadow: 4px 4px 0 var(--a1);
}
.manga-panel--small {
  position: absolute; width: 42%; right: -8%; bottom: -10%;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 96%);
  box-shadow: 8px 8px 0 var(--a2);
  transform: rotate(4deg);
}

.about__mode { display: none; }
html[data-mode="mic"] .about__mode--mic,
html[data-mode="code"] .about__mode--code { display: block; animation: modeIn 0.7s var(--ease); }
@keyframes modeIn { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } }

.about__copy p { color: var(--muted); margin-bottom: 1.2rem; max-width: 58ch; }
.about__copy .about__big {
  font: 700 clamp(1.6rem, 3vw, 2.5rem)/1.2 var(--f-body);
  color: var(--ink); letter-spacing: -0.02em; margin-bottom: 1.6rem;
}
.hl { position: relative; white-space: nowrap; }
.hl::before {
  content: ""; position: absolute; left: -0.1em; right: -0.1em; bottom: 0.05em; height: 0.38em; z-index: -1;
  background: var(--a1); opacity: 0.55; transform: skewX(-12deg);
  transition: background 0.6s;
}

.about__hint { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 2rem 0 3rem; font: 500 0.85rem var(--f-mono); color: var(--muted); }
.mini-toggle {
  position: relative; width: 84px; height: 40px; border-radius: 999px;
  border: 1.5px solid var(--a1); display: flex; align-items: center; justify-content: space-between; padding: 0 0.7rem;
  font-size: 0.9rem; font-family: var(--f-mono); font-weight: 700;
  transition: border-color 0.6s;
}
.mini-toggle::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); transition: transform 0.5s var(--ease);
}
html[data-mode="code"] .mini-toggle::before { transform: translateX(44px); }
.mini-toggle span { position: relative; z-index: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.3rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent); }
.stat__num { font: 400 clamp(2.2rem, 4vw, 3.4rem)/1 var(--f-display); }
.stat__num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }

/* ================= SERVICES ================= */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; padding: 2rem 1.8rem 2.2rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(400px circle at var(--mx) var(--my), color-mix(in srgb, var(--a1) 18%, transparent), transparent 45%),
    linear-gradient(160deg, var(--panel), var(--bg-2));
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s var(--ease), border-color 0.4s, opacity 1s var(--ease);
  min-height: 280px;
}
.card.reveal.is-in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.card:hover { border-color: color-mix(in srgb, var(--a1) 60%, transparent); }
.card__ep { position: absolute; top: 1.3rem; right: 1.5rem; font: 600 0.8rem var(--f-mono); color: var(--muted); }
.card__ico { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; font-size: 1.8rem; background: rgba(255, 255, 255, 0.06); margin-bottom: 1.5rem; transition: transform 0.5s var(--ease); }
.card:hover .card__ico { transform: rotate(-10deg) scale(1.12); }
.card h3 { font: 400 1.9rem/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.8rem; }
.card p { color: var(--muted); font-size: 0.95rem; position: relative; z-index: 1; }
.card__jp {
  position: absolute; right: -0.5rem; bottom: -1.2rem;
  font: 400 4.6rem/1 var(--f-jp); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  transition: -webkit-text-stroke-color 0.4s, transform 0.6s var(--ease);
}
.card:hover .card__jp { -webkit-text-stroke-color: color-mix(in srgb, var(--a1) 50%, transparent); transform: translateY(-8px); }

/* ================= HORIZONTAL GALLERY ================= */

.hscroll { position: relative; height: 400vh; background: var(--bg-2); }
.hscroll__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hscroll__head { padding: 0 var(--pad); margin-bottom: 2rem; }
.hscroll__head .section__title { font-size: clamp(2.4rem, 6vw, 5rem); }
.hscroll__track { display: flex; gap: 1.4rem; align-items: center; padding: 0 var(--pad); width: max-content; will-change: transform; }

.shot { position: relative; flex: none; height: min(56vh, 520px); border-radius: 20px; overflow: hidden; cursor: zoom-in; background: #111; }
.shot--tall { aspect-ratio: 2 / 3; }
.shot--wide { aspect-ratio: 3 / 2; }
.shot:nth-child(odd) { transform: translateY(-3vh) rotate(-1.2deg); }
.shot:nth-child(even) { transform: translateY(3vh) rotate(1.2deg); }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); transition: transform 0.9s var(--ease), filter 0.6s; }
.shot:hover img { transform: scale(1.08); filter: none; }
.shot figcaption {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  padding: 0.5rem 0.85rem; border-radius: 10px;
  background: rgba(7, 6, 13, 0.7); backdrop-filter: blur(8px);
  font: 600 0.8rem var(--f-mono); letter-spacing: 0.03em;
  transform: translateY(140%); transition: transform 0.5s var(--ease);
  width: max-content; max-width: calc(100% - 2rem);
}
.shot:hover figcaption { transform: none; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); pointer-events: none; }

.shot--end { aspect-ratio: auto; width: min(80vw, 420px); background: none; cursor: default; display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; padding: 2rem; transform: none !important; }
.shot--end::after { display: none; }
.shot--end p { font: 400 clamp(2.8rem, 5vw, 4.4rem)/0.95 var(--f-display); text-transform: uppercase; }

.hscroll__bar { margin: 3rem var(--pad) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.hscroll__bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

/* ================= FEATURE ================= */

.feature__card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #2a0616, #12081f 60%);
}
.feature__media { position: relative; min-height: 420px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #1d0719); }
.feature__vs {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-10deg);
  font: 400 clamp(4rem, 9vw, 7rem)/1 var(--f-jp);
  color: var(--amber); -webkit-text-stroke: 3px #07060d; paint-order: stroke fill;
  text-shadow: 6px 6px 0 #ff2e88;
  animation: vsPulse 2.4s ease-in-out infinite;
}
@keyframes vsPulse { 50% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.12); } }
.feature__copy { padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: center; }
.feature__copy > p { color: var(--muted); margin-bottom: 1.4rem; }
.feature__title { font: 400 clamp(3rem, 7vw, 5.5rem)/0.9 var(--f-display); margin-bottom: 0.8rem; }
.feature__copy .feature__theme { font: 600 1rem var(--f-mono); color: var(--ink); }
.feature__theme b:first-child { color: var(--cyan); }
.feature__theme b:last-child { color: var(--pink); }

/* ================= REEL ================= */

.reel__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.reel__copy > p { color: var(--muted); max-width: 40ch; margin: 1.5rem 0 2rem; }
.reel__list li {
  display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  font: 400 clamp(1.5rem, 3vw, 2.2rem)/1 var(--f-display); text-transform: uppercase;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.reel__list li:hover { padding-left: 1rem; color: var(--a1); }
.reel__list span { font: 600 0.8rem var(--f-mono); color: var(--muted); }

.phone {
  position: relative; justify-self: center; width: min(100%, 580px); aspect-ratio: 5 / 4;
  border-radius: 26px; padding: 10px; background: #0d0c14;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 50px 120px -30px color-mix(in srgb, var(--a1) 70%, transparent),
    0 0 100px -30px color-mix(in srgb, var(--a3) 80%, transparent);
  transform: rotate(2deg);
  transition: transform 0.6s var(--ease), opacity 1s var(--ease);
}
.phone.reveal.is-in { transform: rotate(2deg); }
.phone:hover, .phone.reveal.is-in:hover { transform: rotate(0deg) scale(1.02); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: #000; }

.phone__corners { position: absolute; inset: 26px; pointer-events: none; z-index: 2; }
.phone__corners i { position: absolute; width: 28px; height: 28px; border: 2.5px solid rgba(255, 255, 255, 0.85); }
.phone__corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.phone__corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.phone__corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.phone__corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.phone__rec, .phone__cam {
  position: absolute; z-index: 2; top: 42px;
  font: 700 0.75rem var(--f-mono); letter-spacing: 0.12em; color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.phone__rec { left: 46px; display: flex; align-items: center; gap: 0.45rem; }
.phone__rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b3b; animation: blink 1s steps(1) infinite; }
.phone__rec b { font-weight: 500; opacity: 0.85; }
.phone__cam { left: 50%; transform: translateX(-50%); opacity: 0.75; white-space: nowrap; }
.phone__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; z-index: 2;
  background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: transform 0.3s var(--ease), opacity 0.3s;
}
.phone__play::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); animation: ring 2s infinite; }
@keyframes ring { to { transform: scale(1.4); opacity: 0; } }
.phone__play span { border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.phone__play:hover { transform: scale(1.1); }
.phone.is-playing .phone__play { opacity: 0; pointer-events: none; }
.phone__sound { position: absolute; top: 32px; right: 40px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); font-size: 1rem; }
.phone__ui { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 2.5rem 2.6rem 2.2rem; border-radius: 0 0 18px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-size: 0.85rem; pointer-events: none; }
.phone__hearts { position: absolute; right: 44px; bottom: 40px; width: 40px; height: 260px; }
.heart { position: absolute; bottom: 0; left: 50%; font-size: 1.4rem; animation: heart 2.6s var(--ease) forwards; }
@keyframes heart {
  0% { transform: translate(-50%, 0) scale(0.4); opacity: 0; }
  15% { opacity: 1; transform: translate(-50%, -20px) scale(1); }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), -240px) scale(0.8); opacity: 0; }
}

/* ================= CODE ================= */

.code { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.skill-group--cta .btn { margin-top: 1.2rem; }
.code__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.terminal {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: #0a0915;
  box-shadow: 0 40px 100px -40px color-mix(in srgb, var(--a3) 70%, transparent);
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 0.9rem 1.1rem; background: #121024; border-bottom: 1px solid var(--line); }
.terminal__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal__bar i:nth-child(2) { background: #febc2e; }
.terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: 0.8rem; font: 500 0.78rem var(--f-mono); color: var(--muted); }
.terminal__body {
  padding: 1.5rem 1.4rem; min-height: 420px;
  font: 400 clamp(0.78rem, 1.2vw, 0.95rem)/1.75 var(--f-mono);
  white-space: pre-wrap; word-break: break-word; color: #d6d3f0;
}
.tk-k { color: #c792ea; }
.tk-v { color: #82aaff; }
.tk-s { color: #c3e88d; }
.tk-n { color: #f78c6c; }
.tk-c { color: #6b6890; font-style: italic; }
.tk-p { color: #89ddff; }
.caret { display: inline-block; width: 9px; height: 1.1em; background: var(--a1); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.skills { display: grid; gap: 1.2rem; }
.skill-group { padding: 1.6rem; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.skill-group h4 { font: 600 0.85rem var(--f-mono); color: var(--a1); margin-bottom: 1rem; transition: color 0.6s; }
.skill-group p { color: var(--muted); font-size: 0.95rem; }

.stack { margin-top: clamp(3.5rem, 7vw, 6rem); }
.stack__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.stack__card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; padding: 1.7rem 1.6rem 1.8rem; border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--a1) 16%, transparent), transparent 45%),
    linear-gradient(160deg, var(--panel), var(--bg-2));
  transition: transform 0.4s var(--ease), border-color 0.4s, opacity 1s var(--ease);
}
.stack__card.reveal.is-in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.stack__card:hover { border-color: color-mix(in srgb, var(--a1) 60%, transparent); }
.stack__card--wide { grid-column: span 2; }
.stack__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem; background: rgba(255, 255, 255, 0.06); margin-bottom: 1.1rem; transition: transform 0.5s var(--ease); }
.stack__card:hover .stack__ico { transform: rotate(-10deg) scale(1.12); }
.stack__card h3 { font: 400 1.6rem/1.05 var(--f-display); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.6rem; }
.stack__card > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; max-width: 52ch; }
.stack__card .chips li { font-size: 0.76rem; padding: 0.35rem 0.75rem; }

/* ================= PROCESS ================= */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.5rem; border-top: 2px solid var(--line); transition: border-color 0.4s; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--grad); transition: width 0.8s var(--ease); }
.step:hover::before { width: 100%; }
.step__n { font: 400 3.4rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.2px var(--a1); display: block; margin-bottom: 1rem; transition: -webkit-text-stroke-color 0.6s; }
.step h4 { font: 400 1.6rem/1 var(--f-display); text-transform: uppercase; margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ================= CONTACT ================= */

.contact { overflow: hidden; }
.contact__big {
  display: flex; flex-direction: column; margin-bottom: 4rem;
  font: 400 clamp(3.5rem, 13vw, 12rem)/0.85 var(--f-display); text-transform: uppercase;
}
.contact__big span:first-child { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35); }

.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__grid > *, .form label, .form__row > * { min-width: 0; }
.contact__copy .section__title { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.contact__copy > p { color: var(--muted); margin: 1.4rem 0 2rem; max-width: 42ch; }
.contact__links { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.contact__link {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1.3rem; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; transform: translate(var(--bx), var(--by));
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.contact__link:hover { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 10%, transparent); }

.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel), var(--bg-2)); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: 0.45rem; font: 600 0.78rem var(--f-mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.9rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3);
  font: 400 1rem var(--f-body); color: var(--ink); text-transform: none; letter-spacing: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
  color-scheme: dark;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent); }
.form .is-invalid { border-color: #ff4d4d; }
.form__note { font-size: 0.82rem; color: var(--muted); text-align: center; }
.form__note.is-success { color: var(--lime); }

/* ================= FOOTER ================= */

.footer { border-top: 1px solid var(--line); }
.marquee--footer { padding: 2rem 0; }
.marquee--footer span { font-size: clamp(2.4rem, 6vw, 5rem); }
.marquee--footer span:nth-of-type(even) { font-family: var(--f-jp); color: transparent; -webkit-text-stroke: 1px var(--a1); }
.marquee--footer b { color: var(--a1); }
.footer__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem var(--pad) 2.2rem; color: var(--muted); font-size: 0.88rem; }
.footer__top:hover { color: var(--a1); }

/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 2rem;
  background: rgba(5, 4, 10, 0.92); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.lightbox.is-open { opacity: 1; pointer-events: all; }
.lightbox figure { display: grid; justify-items: center; gap: 1rem; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 16px; box-shadow: 0 30px 100px -20px color-mix(in srgb, var(--a1) 60%, transparent); transform: scale(0.94); transition: transform 0.5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { font: 600 0.9rem var(--f-mono); color: var(--muted); }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.4rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 1.1rem; }
.lightbox__nav { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-size: 2rem; line-height: 1; transition: background 0.3s, border-color 0.3s; }
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 15%, transparent); }

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .cards, .stack__grid { grid-template-columns: repeat(2, 1fr); }
  .stack__card--wide:last-child { grid-column: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .jp-vert { right: -6%; }
  .jp-vert--2 { display: none; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
    background: rgba(7, 6, 13, 0.97);
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
  }
  .nav__links a { font: 400 2.6rem var(--f-display); text-transform: uppercase; color: var(--ink); }
  .nav.is-open .nav__links { opacity: 1; pointer-events: all; }
  .burger { display: block; }
  .nav__right .btn--small { display: none; }

  .hero { padding-top: 6.5rem; }
  .hero__title { font-size: clamp(4.5rem, 24vw, 10rem); }
  .scroll-cue { display: none; }
  .hero__grid, .about__grid, .reel__grid, .code__grid, .contact__grid, .feature__card { grid-template-columns: 1fr; }
  .hero__grid { gap: 0; }
  .hero__copy { display: contents; }
  .hero__visual { width: min(84%, 400px); margin: 2.6rem 0 2.4rem; order: 1; }
  .hero__lead, .hero__ctas, .hero__meta { order: 2; }
  .bubble--hero { left: -6%; top: -9%; }
  .sticker--onair { right: -2%; }
  .about__visual { max-width: 460px; margin: 0 auto 4rem; }
  .feature__media { min-height: 360px; }
  .feature__media::after { background: linear-gradient(180deg, transparent 60%, #1d0719); }

  /* horizontal scroll becomes a swipe carousel */
  .hscroll { height: auto !important; padding: 5rem 0; }
  .hscroll__pin { position: relative; height: auto; }
  .hscroll__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; transform: none !important; scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .shot { height: 62vw; max-height: 420px; scroll-snap-align: center; }
  .shot figcaption { transform: none; }
  .hscroll__bar { display: none; }
}

@media (max-width: 600px) {
  .mode__opt { padding: 0.35rem 0.6rem; font-size: 0.72rem; }
  .nav__logo-text { display: none; }
  .cards, .steps, .form__row, .stack__grid { grid-template-columns: 1fr; }
  .stack__card--wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__meta { gap: 1rem; }
  .jp-vert { display: none; }
  .phone__cam { display: none; }
  .phone__corners { inset: 18px; }
  .phone__rec { top: 30px; left: 34px; }
  .phone__sound { top: 22px; right: 28px; }
  .phone__ui { padding: 2rem 1.8rem 1.6rem; }
  .shot { height: 90vw; }
  .shot--wide { height: 60vw; }
  .contact__big { font-size: 15.5vw; margin-bottom: 2.5rem; }
  .contact__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; align-items: stretch; }
  .contact__link { justify-content: center; padding: 0.75rem 0.9rem; font-size: 0.9rem; min-width: 0; }
  .contact__link:first-child { grid-column: 1 / -1; overflow-wrap: anywhere; text-align: center; font-size: clamp(0.74rem, 3.9vw, 0.9rem); }
  .contact__link:nth-child(2), .contact__link:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .form { padding: 1.3rem; border-radius: 20px; }
  .form input, .form select, .form textarea { font-size: 16px; }
  .form input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 3.1rem; }
  .lightbox { grid-template-columns: 1fr; padding: 1rem; }
  .lightbox__nav { position: absolute; bottom: 1.5rem; }
  .lightbox__nav--prev { left: 30%; }
  .lightbox__nav--next { right: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
