/* =====================================================
   apk.utkarsh — Mono Minimal
   Near-black · monospace · hairline grid · small type
   Animations unchanged (preloader, ink-blot nav, cursor,
   hover previews, stacked cards, scroll reveals, marquee)
   ===================================================== */

:root {
  --c-bg:        #08090a;
  --c-bg-soft:   #0e1012;
  --c-bg-card:   #0c0d0f;
  --c-fg:        #e7e7e7;
  --c-fg-dim:    rgba(231, 231, 231, 0.56);
  --c-fg-faint:  rgba(231, 231, 231, 0.30);
  --c-line:      rgba(231, 231, 231, 0.10);
  --c-line-2:    rgba(231, 231, 231, 0.18);
  --c-accent:    #ff5a1f;

  --ff-sans:     'Space Grotesk', system-ui, -apple-system, sans-serif;
  --ff-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ff-serif:    'Fraunces', Georgia, serif;   /* loader word only */

  --pad-x:       clamp(20px, 4vw, 56px);
  --maxw:        1280px;
  --radius:      2px;
  --ease:        cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html, body { width: 100%; }
body {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* technical bits stay monospace (labels, indices, numbers, tags, editor chrome) */
.section-label, .intro__label, .footer__label,
.hero__eyebrow, .hero__scroll,
.menu__num, .service__num, .stat__num, .stat__label,
.project__tag, .service__tag,
.editor__bar, .editor__status, .editor__lang {
  font-family: var(--ff-mono);
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
em { font-style: normal; }
::selection { background: var(--c-accent); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-cursor] { cursor: none; }
}

/* ---------- Shared bits ---------- */
.section-label, .intro__label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-fg-dim);
}
.section-title {
  font-family: var(--ff-sans); font-weight: 600;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em; line-height: 1.1;
}
.rule { height: 1px; background: var(--c-line); width: 100%; }

/* =====================================================
   CUSTOM CURSOR  (unchanged mechanic)
   ===================================================== */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
.cursor__dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-fg);
  transition: background 0.3s ease, opacity 0.25s ease;
}
.cursor.is-link .cursor__dot,
.cursor.is-view .cursor__dot { background: var(--c-accent); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =====================================================
   PRELOADER  (kept as-is — user-approved)
   ===================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg);
}
.preloader__svg { position: absolute; top: 0; width: 100%; height: calc(100% + 300px); }
.preloader__svg path { fill: var(--c-bg); }
.preloader__word {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-serif); font-style: italic;
  font-size: clamp(34px, 5vw, 56px); color: var(--c-fg);
  opacity: 0;
}
.preloader__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c-accent); flex: 0 0 auto; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--c-line);
  background: rgba(8, 9, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand {
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand::before { content: "●"; color: var(--c-accent); font-size: 9px; }
.brand span { color: var(--c-fg-dim); }
.header__nav { display: none; align-items: center; gap: 28px; }
.header__link { font-size: 12px; color: var(--c-fg-dim); position: relative; transition: color 0.3s; }
.header__link:hover { color: var(--c-fg); }

/* ---------- Toggle ---------- */
.toggle {
  position: relative; width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--c-line-2); color: var(--c-fg);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}
.toggle:hover { border-color: var(--c-accent); background: rgba(255,90,31,0.08); }
.toggle__inner { display: flex; flex-direction: column; gap: 4px; }
.toggle__line { display: block; height: 1.5px; background: currentColor; transition: width 0.4s var(--ease), transform 0.4s, opacity 0.3s; }
.toggle__line:nth-child(1) { width: 16px; }
.toggle__line:nth-child(2) { width: 10px; }
.toggle__line:nth-child(3) { width: 13px; }
body.is-open .toggle__line:nth-child(1) { width: 16px; transform: translateY(5.75px) rotate(-90deg); }
body.is-open .toggle__line:nth-child(2) { width: 16px; }
body.is-open .toggle__line:nth-child(3) { opacity: 0; transform: translateY(-2px); }

/* =====================================================
   OVERLAY MENU (ink-blot — mechanic unchanged)
   ===================================================== */
.menu { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.menu.is-open { pointer-events: auto; }
.menu__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu__fill { fill: var(--c-bg-soft); }
.menu__content {
  position: absolute; inset: 0;
  padding: 96px var(--pad-x) var(--pad-x);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--c-fg);
  clip-path: circle(var(--cr, 0px) at var(--cx, 100%) var(--cy, 0%));
  will-change: clip-path;
}
.menu__list { display: flex; flex-direction: column; }
.menu__item { overflow: hidden; border-top: 1px solid var(--c-line); }
.menu__item:last-child { border-bottom: 1px solid var(--c-line); }
.menu__link { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; padding: 14px 0; }
.menu__num { font-size: 11px; color: var(--c-fg-faint); letter-spacing: 0.06em; }
.menu__text {
  position: relative; display: block; height: 1em; line-height: 1;
  font-size: clamp(26px, 4vw, 44px); font-weight: 500;
  letter-spacing: -0.02em; overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.menu__main { display: block; }
.menu__alt { display: block; color: var(--c-accent); }
.menu__link:hover .menu__text { transform: translateY(-1em); }
.menu__footer { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.menu__footer a { font-size: 13px; color: var(--c-fg-dim); }
.menu__footer > a:first-child { font-size: clamp(16px, 2vw, 22px); color: var(--c-fg); width: fit-content; }
.menu__footer > a:first-child:hover { color: var(--c-accent); }
.menu__socials { display: flex; gap: 22px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad-x) 56px;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(transparent 0 calc(100% - 1px), var(--c-line) 100%) 0 0 / 100% 80px,
    radial-gradient(50% 40% at 85% 15%, rgba(255, 90, 31, 0.08), transparent 60%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__eyebrow {
  font-size: 12px; color: var(--c-fg-dim); letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero__title {
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 58px);
  line-height: 1.08; letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero__title em { color: var(--c-accent); }
.hero__meta {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-top: 34px; max-width: 760px;
}
.hero__lede { font-size: 14px; color: var(--c-fg-dim); max-width: 42ch; }
.hero__scroll {
  position: absolute; right: var(--pad-x); bottom: 28px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-fg-faint);
}
.hero__scroll-line { width: 1px; height: 40px; background: var(--c-line-2); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--c-accent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -100%; } 60%, 100% { top: 100%; } }

.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; will-change: transform; }

/* ---------- Hero code editor (typing animation) ---------- */
.hero__code { position: relative; }
.editor {
  border: 1px solid var(--c-line-2); border-radius: var(--radius);
  background: var(--c-bg-card); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.editor__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px solid var(--c-line);
  font-size: 10.5px; color: var(--c-fg-faint); letter-spacing: 0.04em;
}
.editor__dots { color: var(--c-accent); font-size: 7px; letter-spacing: 2px; }
.editor__file { color: var(--c-fg-dim); }
.editor__lang { font-size: 9px; color: var(--c-fg-dim); border: 1px solid var(--c-line-2); border-radius: 2px; padding: 2px 6px; letter-spacing: 0.1em; }
.editor__body {
  margin: 0; padding: 14px 0; font-family: var(--ff-mono); font-size: 12.5px;
  line-height: 1.75; min-height: 300px; color: var(--c-fg); overflow: hidden;
}
.editor__body code { display: block; }
.code-line { display: flex; align-items: flex-start; padding: 0 16px; }
.ln-num { flex: 0 0 22px; text-align: right; margin-right: 14px; color: var(--c-fg-faint); opacity: 0.45; user-select: none; }
.ln-code { white-space: pre; }
.caret {
  display: inline-block; width: 7px; height: 1em; margin-left: 1px;
  background: var(--c-accent); vertical-align: -0.12em;
  animation: codeBlink 1s steps(1) infinite;
}
@keyframes codeBlink { 50% { opacity: 0; } }

/* syntax tokens */
.t-keyword { color: #ff5a1f; }
.t-string  { color: #9ece9e; }
.t-comment { color: #5a5f66; font-style: italic; }
.t-type    { color: #6cc7d6; }
.t-number  { color: #c792ea; }
.t-plain   { color: #e7e7e7; }
.t-punct   { color: #8a9099; }
.t-space   { color: inherit; }

.editor__status {
  display: flex; gap: 18px; padding: 6px 14px;
  border-top: 1px solid var(--c-line);
  font-size: 10px; color: var(--c-fg-faint); letter-spacing: 0.04em;
}
.editor__status span:first-child::before { content: "●"; color: var(--c-accent); margin-right: 6px; font-size: 7px; }
#editor-pos { margin-left: auto; }

/* =====================================================
   BUTTON
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius);
  border: 1px solid var(--c-fg);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
  background: transparent; color: var(--c-fg);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.btn:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn:hover svg { transform: translateX(3px); }

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee {
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: 28px; will-change: transform; }
.marquee__item {
  font-size: clamp(16px, 2vw, 22px); font-weight: 500;
  letter-spacing: -0.01em; color: var(--c-fg-dim);
}
.marquee__star { color: var(--c-accent); font-size: 12px; }

/* =====================================================
   INTRO + STATS
   ===================================================== */
.intro { padding: clamp(64px, 9vw, 120px) var(--pad-x); max-width: var(--maxw); margin: 0 auto; }
.intro__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.intro__copy { display: flex; flex-direction: column; gap: 24px; }
.intro__label { margin-bottom: 0; }
.intro__3d { position: relative; height: clamp(300px, 38vw, 440px); overflow: hidden; }
.intro__3d canvas { display: block; }
.intro__statement {
  font-weight: 400; font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.4; letter-spacing: -0.02em; max-width: 30ch; color: var(--c-fg);
}
.intro__statement em { color: var(--c-accent); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--c-line);
}
.stat { display: flex; flex-direction: column; gap: 6px; padding: 24px 20px 0; border-right: 1px solid var(--c-line); }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.stat__suffix { display: inline; color: var(--c-accent); font-size: 0.7em; }
.stat__label { font-size: 11px; color: var(--c-fg-dim); letter-spacing: 0.04em; }

/* =====================================================
   SERVICES
   ===================================================== */
.services { padding: clamp(48px, 7vw, 96px) var(--pad-x); max-width: var(--maxw); margin: 0 auto; position: relative; }
.services__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.services__list { border-bottom: 1px solid var(--c-line); }
.service {
  position: relative; display: grid;
  grid-template-columns: 56px 1.1fr 1.5fr 24px;
  align-items: center; gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
  transition: padding 0.4s var(--ease);
}
.service:last-child { border-bottom: 0; }
.service:hover { padding-left: 14px; padding-right: 14px; }
.service__num { font-size: 11px; color: var(--c-fg-faint); letter-spacing: 0.06em; }
.service__name {
  font-weight: 500; font-size: clamp(17px, 1.9vw, 24px);
  letter-spacing: -0.02em; line-height: 1.2;
  transition: color 0.3s;
}
.service:hover .service__name { color: var(--c-accent); }
.service__copy { position: relative; min-height: 1.55em; overflow: hidden; }
.service__desc { font-size: 13px; color: var(--c-fg-dim); max-width: 52ch; transition: opacity 0.3s; }
.service__tags {
  position: absolute; inset: 0; display: flex; align-items: center;
  overflow: hidden; opacity: 0; transition: opacity 0.3s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.service__tags-track {
  display: inline-flex; align-items: center; gap: 18px; white-space: nowrap;
  padding-right: 18px; will-change: transform;
  animation: tagScroll 18s linear infinite; animation-play-state: paused;
}
.service__tag { font-size: 13px; color: var(--c-fg); }
.service__tag::after { content: "·"; margin-left: 18px; color: var(--c-fg-faint); }
.service:hover .service__desc { opacity: 0; }
.service:hover .service__tags { opacity: 1; }
.service:hover .service__tags-track { animation-play-state: running; }
@keyframes tagScroll { to { transform: translateX(-50%); } }
.service__arrow { width: 18px; height: 18px; justify-self: end; opacity: 0; transform: translate(-6px, 6px); transition: opacity 0.3s, transform 0.3s; color: var(--c-accent); }
.service__arrow svg { width: 100%; height: 100%; }
.service:hover .service__arrow { opacity: 1; transform: translate(0, 0); }

/* =====================================================
   WORK
   ===================================================== */
.work { padding: clamp(48px, 7vw, 96px) var(--pad-x); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--c-line); }
.work__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.work__more {
  font-size: 12px; color: var(--c-fg-dim); white-space: nowrap;
  border: 1px solid var(--c-line-2); border-radius: var(--radius);
  padding: 8px 14px; align-self: center;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.work__more:hover { color: var(--c-accent); border-color: var(--c-accent); }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.project { display: block; background: var(--c-bg); padding: 18px; transition: background 0.3s; }
.project:hover { background: var(--c-bg-soft); }
.project__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--c-bg-soft); }
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.3); transition: transform 0.6s var(--ease);
  filter: grayscale(40%) brightness(0.8);
}
.project:hover .project__media img { transform: scale(1.05); filter: grayscale(0) brightness(0.95); }
.project__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; gap: 12px; }
.project__name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.project__tag { font-size: 11px; color: var(--c-fg-dim); text-align: right; }

/* =====================================================
   TESTIMONIALS — stacked cards
   ===================================================== */
.voices { padding: clamp(48px, 7vw, 96px) var(--pad-x); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--c-line); }
.voices__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.voices__hint { font-size: 11px; color: var(--c-fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.stack { position: relative; height: 360px; perspective: 1200px; perspective-origin: 50% 60%; }
.stack__card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 3vw, 36px);
  background: var(--c-bg-card);
  border: 1px solid var(--c-line-2); border-radius: var(--radius);
  opacity: 0;                       /* hidden until JS positions the deck */
  will-change: transform, opacity;
}
.stack__quote {
  font-size: clamp(16px, 1.8vw, 22px); line-height: 1.45;
  letter-spacing: -0.02em; max-width: 32ch; color: var(--c-fg);
}
.stack__by { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.stack__by > span:first-child { color: var(--c-fg); }
.stack__role { color: var(--c-fg-dim); }

/* =====================================================
   PROCESS
   ===================================================== */
.process { padding: clamp(48px, 7vw, 96px) var(--pad-x); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--c-line); }
.process__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.process__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.process__step { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; background: var(--c-bg); }
.process__num { font-size: 12px; color: var(--c-accent); letter-spacing: 0.04em; }
.process__name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.process__step p { font-size: 12px; color: var(--c-fg-dim); max-width: 30ch; }

/* =====================================================
   CTA
   ===================================================== */
.cta { padding: clamp(72px, 12vw, 140px) var(--pad-x); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--c-line); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta__intro { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.cta__title { font-weight: 500; font-size: clamp(28px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.03em; max-width: 14ch; }
.cta__title em { color: var(--c-accent); }
.cta__info { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.cta__email { font-size: clamp(16px, 2vw, 20px); width: fit-content; transition: color 0.3s; }
.cta__email:hover { color: var(--c-accent); }
.cta__note { font-size: 12px; color: var(--c-fg-dim); }

/* ---------- Contact form ---------- */
.contact { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-fg-faint); }
.field__label .opt { text-transform: lowercase; letter-spacing: 0.04em; opacity: 0.6; margin-left: 5px; font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--ff-sans); font-size: 14px; color: var(--c-fg);
  background: var(--c-bg-card); border: 1px solid var(--c-line-2); border-radius: var(--radius);
  padding: 11px 13px; outline: none; width: 100%;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-fg-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-accent); background: var(--c-bg-soft); }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a9099' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field select option { background: var(--c-bg-card); color: var(--c-fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.contact__status { font-size: 13px; min-height: 1.1em; margin-top: 2px; }
.contact__status[data-kind="ok"] { color: #8fd1a4; }
.contact__status[data-kind="err"] { color: #ff6a5a; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { padding: clamp(40px, 5vw, 64px) var(--pad-x) 24px; max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--c-line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__big { font-size: clamp(28px, 4vw, 52px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.footer__big span { color: var(--c-accent); }
.footer__brand p { color: var(--c-fg-dim); font-size: 13px; max-width: 28ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-fg-faint); margin-bottom: 6px; }
.footer__col a { font-size: 13px; color: var(--c-fg-dim); transition: color 0.3s; width: fit-content; }
.footer__col a:hover { color: var(--c-accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 14px; padding-top: 20px; border-top: 1px solid var(--c-line); font-size: 11px; color: var(--c-fg-faint); flex-wrap: wrap; }

/* =====================================================
   HEADER ACTIONS (⌘K trigger) + COMMAND PALETTE
   ===================================================== */
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__kbd {
  font-family: var(--ff-mono); font-size: 11px; color: var(--c-fg-dim);
  border: 1px solid var(--c-line-2); border-radius: var(--radius);
  padding: 7px 10px; letter-spacing: 0.04em;
  transition: color 0.3s, border-color 0.3s;
}
.header__kbd:hover { color: var(--c-accent); border-color: var(--c-accent); }

.palette {
  position: fixed; inset: 0; z-index: 500; display: none;
  align-items: flex-start; justify-content: center; padding-top: 14vh;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.palette.is-open { display: flex; }
.palette__panel {
  width: min(560px, calc(100vw - 32px)); background: var(--c-bg-card);
  border: 1px solid var(--c-line-2); border-radius: 8px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.palette__search { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.palette__prompt { color: var(--c-accent); font-family: var(--ff-mono); }
.palette__search input { flex: 1; background: transparent; border: 0; outline: none; color: var(--c-fg); font-family: var(--ff-sans); font-size: 15px; }
.palette__search input::placeholder { color: var(--c-fg-faint); }
.palette__esc { font-family: var(--ff-mono); font-size: 10px; color: var(--c-fg-faint); border: 1px solid var(--c-line-2); border-radius: 3px; padding: 2px 6px; }
.palette__list { list-style: none; max-height: 320px; overflow-y: auto; padding: 6px; margin: 0; }
.palette__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 5px; cursor: pointer; color: var(--c-fg-dim); transition: background 0.15s, color 0.15s; }
.palette__item.is-active { background: rgba(255, 90, 31, 0.12); color: var(--c-fg); }
.palette__item .pl-label { font-size: 14px; }
.palette__item .pl-kind { font-family: var(--ff-mono); font-size: 10px; color: var(--c-fg-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.palette__empty { padding: 20px; text-align: center; color: var(--c-fg-faint); font-size: 13px; }
.palette__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--c-line); font-family: var(--ff-mono); font-size: 10px; color: var(--c-fg-faint); }
.palette__foot kbd { border: 1px solid var(--c-line-2); border-radius: 3px; padding: 1px 5px; margin-right: 4px; }
.palette__list::-webkit-scrollbar { width: 8px; }
.palette__list::-webkit-scrollbar-thumb { background: var(--c-line-2); border-radius: 4px; }

/* =====================================================
   BEHIND THE WORK (personal about)
   ===================================================== */
.maker { padding: clamp(64px, 9vw, 120px) var(--pad-x); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--c-line); }
.maker__grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.maker__avatar { display: block; width: clamp(96px, 13vw, 132px); height: clamp(96px, 13vw, 132px); border-radius: 50%; overflow: hidden; border: 1px solid var(--c-line-2); transition: border-color 0.3s; }
.maker__avatar:hover { border-color: var(--c-accent); }
.maker__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.maker__copy { display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
.maker__name { font-family: var(--ff-sans); font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.maker__role { font-family: var(--ff-mono); font-size: 12px; color: var(--c-accent); letter-spacing: 0.04em; }
.maker__bio { font-size: clamp(15px, 1.5vw, 18px); color: var(--c-fg-dim); line-height: 1.6; }
.maker__links { display: flex; gap: 22px; margin-top: 6px; font-size: 13px; }
.maker__links a { color: var(--c-fg-dim); transition: color 0.3s; }
.maker__links a:hover { color: var(--c-accent); }

/* =====================================================
   BOOT EASTER EGG (Konami → fake Android boot)
   ===================================================== */
.boot {
  position: fixed; inset: 0; z-index: 10000; background: #050606; color: #5af078;
  font-family: var(--ff-mono); font-size: clamp(11px, 1.4vw, 14px); line-height: 1.6;
  padding: 6vh 6vw 8vh; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; overflow: hidden;
}
.boot.is-on { opacity: 1; visibility: visible; }
.boot__log { max-height: 100%; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.boot__line { opacity: 0; transform: translateY(3px); animation: bootIn 0.18s ease forwards; }
@keyframes bootIn { to { opacity: 1; transform: none; } }
.boot .ok { color: #8dffb0; }
.boot__hint { position: absolute; bottom: 4vh; right: 6vw; color: #2f7a45; font-size: 11px; letter-spacing: 0.04em; }
.boot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.22) 2px 3px); mix-blend-mode: multiply; }
.boot__log::-webkit-scrollbar { width: 6px; }
.boot__log::-webkit-scrollbar-thumb { background: #1f5a32; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .work__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--c-line); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .intro__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .header__nav { display: none; }
  .service { grid-template-columns: 44px 1fr; grid-template-areas: "num name" "num desc"; row-gap: 10px; }
  .service__num { grid-area: num; }
  .service__name { grid-area: name; }
  .service__copy { grid-area: desc; }
  .service__arrow { display: none; }
  .hero__scroll { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .process__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .menu__link { grid-template-columns: 36px 1fr; }
  .services__head, .work__head, .process__head, .voices__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .editor__body { min-height: 220px; padding: 10px 0; font-size: 11px; line-height: 1.55; overflow-x: auto; }
  .editor__bar { padding: 8px 11px; font-size: 9.5px; }
  .editor__lang { display: none; }
  .editor__status { font-size: 9px; gap: 12px; padding: 5px 11px; }
  .ln-num { flex: 0 0 18px; margin-right: 10px; }
  .code-line { padding: 0 12px; }
  .intro__3d { display: none; }
}

@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; gap: 40px; }
  .cta__intro { position: static; }
}
@media (max-width: 560px) {
  .contact__row { grid-template-columns: 1fr; }
}

/* =====================================================
   MOTION PREFS
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
