/* ========================================================
   LOSTMORD — Cinematic Landing Page
   Warm dark palette · Typography-first · Landscape atmosphere
   ======================================================== */

:root {
  --bg: #0a0908;
  --surface: #13120f;
  --text: #f0ebe3;
  --text-dim: rgba(240,235,227,0.6);
  --text-ghost: rgba(240,235,227,0.5);
  --muted: #8a847a;
  --accent: #bfb091;
  --border: rgba(240,235,227,0.06);
  --border-hover: rgba(240,235,227,0.14);
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'BubbledotICG-FinePos', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-x: clamp(28px, 5.5vw, 80px);
  --pad-y: clamp(28px, 4.5vh, 56px);
  --content-w: 960px;
}

/* ========================================================
   RESET
   ======================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow: hidden; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
}
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; text-align: left; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 14px; border-radius: 6px; background: var(--text); color: var(--bg);
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ========================================================
   BACKGROUND
   ======================================================== */
.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-layer__images {
  position: absolute; inset: -60px;
  filter: saturate(0) brightness(0.3) contrast(1.1);
}
.bg-layer__img {
  position: absolute; inset: 0;
  width: calc(100% + 120px); height: calc(100% + 120px);
  object-fit: cover; object-position: center 30%;
  opacity: 0; transition: opacity 1.4s ease; pointer-events: none;
}
.bg-layer__img.active { opacity: 1; }
.bg-layer__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,9,8,0.15) 0%, rgba(10,9,8,0.3) 40%, rgba(10,9,8,0.5) 100%);
  pointer-events: none;
}
.bg-layer__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, transparent 20%, rgba(10,9,8,0.5) 100%);
  pointer-events: none;
}
.bg-layer__grain {
  position: absolute; inset: 0;
  opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

/* ========================================================
   VIEWPORT + SCREEN + SNAP
   ======================================================== */
.viewport { position: relative; z-index: 1; width: 100%; height: 100%; }
.screen {
  width: 100%; height: 100%;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

/* ========================================================
   SLIDE BASE
   ======================================================== */
.slide {
  min-height: 100%; scroll-snap-align: start; scroll-snap-stop: normal;
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  padding-right: calc(var(--pad-x) + 40px);
  position: relative;
}
.slide__content {
  width: 100%; max-width: var(--content-w);
  position: relative; z-index: 2; text-align: center;
}
.slide__content--hero {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 70vh;
}
.slide__content--cta {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}

/* ========================================================
   ANIMATIONS
   ======================================================== */
.reveal { opacity: 0; transform: translateY(16px); }
.slide.active .reveal {
  animation: revealUp 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

.clip-reveal { clip-path: inset(100% 0 0 0); opacity: 0; }
.slide.active .clip-reveal {
  animation: clipReveal 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes clipReveal {
  from { clip-path: inset(100% 0 0 0); opacity: 1; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1; }
}

/* ========================================================
   BUTTONS / CTA
   ======================================================== */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px; font-size: 14px; font-weight: 500;
  border-radius: 999px; border: 1px solid var(--border-hover);
  background: rgba(240,235,227,0.04); color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; cursor: pointer; white-space: nowrap;
}
.cta-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.cta-btn:active { transform: scale(0.97); }
.cta-btn svg { transition: transform 0.3s ease; flex-shrink: 0; }
.cta-btn:hover svg { transform: translateX(3px); }

.cta-btn--primary {
  border-color: var(--accent);
  color: var(--accent);
}
.cta-btn--primary:hover {
  background: var(--accent); color: var(--bg); border-color: var(--accent); border-radius: 999px;
}

.cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 400; color: var(--accent);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease; cursor: pointer; position: relative;
}
.cta-link::before { content: ''; position: absolute; inset: -12px -8px; }
.cta-link:hover { border-color: var(--accent); }
.cta-link svg { width: 14px; height: 14px; transition: transform 0.3s ease; flex-shrink: 0; }
.cta-link:hover svg { transform: translateX(4px); }

/* ========================================================
   SECTION HEADING — centered white bold
   ======================================================== */
.section-heading {
  font-weight: 700; font-size: clamp(22px, 4vw, 36px);
  letter-spacing: -0.03em; color: var(--text);
  margin-bottom: clamp(20px, 3vh, 36px);
  text-align: center;
}


/* ========================================================
   HERO
   ======================================================== */
.hero-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 9.5vw, 110px);
  letter-spacing: -0.07em; line-height: 1; color: var(--text); margin-bottom: 16px;
}
.hero-tagline {
  font-size: clamp(14px, 1.6vw, 19px); color: var(--accent);
  font-weight: 400; letter-spacing: -0.01em; margin-bottom: 12px;
}
.hero-desc {
  font-size: clamp(13.5px, 1.3vw, 15.5px); color: var(--text-dim);
  line-height: 1.7; max-width: 480px; margin-bottom: 28px; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Scroll hint — subtle line that pulses */
.hero-scroll-hint {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll-hint__line {
  display: block; width: 1px; height: 36px; position: relative; overflow: hidden;
  background: var(--border);
}
.hero-scroll-hint__line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 1px; height: 100%; background: var(--text-dim);
  animation: none;
}
#hero.active .hero-scroll-hint__line { animation: scrollHintPulse 2s ease-in-out infinite; }
@keyframes scrollHintPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}
/* ========================================================
   PROBLEMS — Cinematic diagnostic states
   ======================================================== */
#problems { min-height: 300%; align-items: stretch; padding: 0; }
.prob-scene {
  position: sticky; top: 0; width: 100%; height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; z-index: 2;
  padding-right: 100px;
}

/* Contextual label — quiet, top-left */
.prob-label {
  position: absolute; top: var(--pad-y); left: var(--pad-x);
  font-size: clamp(14px, 1.4vw, 18px); color: var(--text-dim);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1.45;
  z-index: 2; max-width: 340px; pointer-events: none;
}

/* Atmospheric blurred SVG — full-bleed background disturbance */
.prob-visual {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.prob-svg {
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease 0.3s;
}
#problems.active .prob-svg { opacity: 1; }
.prob-hint {
  fill: none; stroke: rgba(191,176,145,0.07);
  stroke-width: 2.5; stroke-linecap: round;
  opacity: 0; transition: opacity 1s ease;
}
.prob-hint.active {
  opacity: 1;
  animation: none;
}
#problems.active .prob-hint.active { animation: hintPulse 7s ease-in-out infinite; }
@keyframes hintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Symptom — centered, massive, landscape-scale */
.prob-symptom {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
}
.prob-symptom__title,
.prob-symptom__desc {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.prob-symptom__title {
  font-weight: 700; font-size: clamp(30px, 6vw, 72px);
  color: var(--text); letter-spacing: -0.035em;
  line-height: 1.08; text-transform: uppercase;
}
.prob-symptom__desc {
  font-size: clamp(14px, 1.3vw, 17px); color: rgba(240,235,227,0.55);
  font-weight: 300; line-height: 1.65; max-width: 420px;
  margin-top: 4px;
}

/* Transition states */
.prob-symptom.fading .prob-symptom__title,
.prob-symptom.fading .prob-symptom__desc {
  opacity: 0; transform: translateY(-14px);
}
.prob-symptom.entering .prob-symptom__title,
.prob-symptom.entering .prob-symptom__desc {
  opacity: 0; transform: translateY(14px);
}

/* Scroll hint */
.prob-scroll-hint {
  position: absolute; bottom: clamp(40px, 7vh, 60px);
  left: 50%; transform: translateX(-50%);
  color: var(--text-ghost); opacity: 0.4;
  transition: opacity 0.5s ease;
  animation: none;
  z-index: 1;
}
#problems.active .prob-scroll-hint { animation: probScrollBounce 2.5s ease-in-out infinite; }
.prob-scroll-hint.hidden { opacity: 0; pointer-events: none; }
@keyframes probScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* Quiet progress index — bottom center */
.prob-index {
  position: absolute; bottom: var(--pad-y);
  left: 50%; transform: translateX(-50%);
  display: flex; gap: 0; z-index: 3;
}
.prob-index__item {
  width: 24px; height: 24px; border: none; position: relative;
  background: transparent;
  cursor: pointer; padding: 0;
}
.prob-index__item::after {
  content: ''; position: absolute; inset: 50% auto auto 50%; width: 5px; height: 5px;
  border-radius: 50%; background: rgba(240,235,227,0.12);
  transform: translate(-50%, -50%); transition: background 0.4s ease;
}
.prob-index__item:hover::after { background: rgba(240,235,227,0.25); }
.prob-index__item.active::after { background: rgba(240,235,227,0.45); }
.prob-index__item.past::after { background: rgba(240,235,227,0.08); }
/* ========================================================
   PROJECTS — SaaS-style tab showcase
   ======================================================== */
#projects { flex-direction: column; gap: 0; }
.slide__content--projects {
  text-align: left; display: flex; flex-direction: column; gap: 20px;
}

/* Tabs */
.proj-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  padding-bottom: 0; margin-bottom: 0;
}
.proj-tab {
  padding: 10px 18px; min-height: 44px; font-size: 13px; font-weight: 400;
  color: var(--muted); letter-spacing: 0.01em;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px; transition: color 0.3s ease, border-color 0.3s ease;
  text-align: center; position: relative;
}
.proj-tab:hover { color: var(--text-dim); }
.proj-tab.active {
  color: var(--text); border-bottom-color: var(--accent);
}

/* Body: image + info side by side */
.proj-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  align-items: start; min-height: 260px;
}

/* Image container */
.proj-body__image {
  position: relative; border-radius: 6px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  aspect-ratio: 16/10;
}
.proj-body__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; padding: 18%;
  background: var(--surface); opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transform: scale(0.98);
}
.proj-body__img.active { opacity: 1; transform: scale(1); }

/* Info panel */
.proj-body__info {
  display: flex; flex-direction: column; gap: 0;
  min-height: 200px;
}
.proj-info {
  animation: projInfoFade 0.5s var(--ease) forwards;
}
@keyframes projInfoFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.proj-info__name {
  font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.04em; color: var(--text); margin-bottom: 4px;
}
.proj-info__sphere {
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.proj-info__block {
  padding: 12px 0; border-top: 1px solid var(--border);
}
.proj-info__block-label {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase;
  margin-bottom: 6px;
}
.proj-info__block-text {
  font-size: 13.5px; color: var(--text-dim); font-weight: 300;
  line-height: 1.6;
}
.proj-info__tech {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
.proj-info__tech-tag {
  font-family: var(--font-display); font-size: 10px;
  letter-spacing: 0.06em; color: var(--text-ghost);
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px;
  background: rgba(240,235,227,0.02);
}

/* ========================================================
   SERVICES — Four large words, one reveals
   ======================================================== */
#services { flex-direction: column; gap: 0; }
.svc-intro {
  font-weight: 400; font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text); letter-spacing: -0.025em; margin-bottom: 40px;
}
.svc-words {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(16px, 4vw, 48px); margin-bottom: 36px;
}
.svc-word {
  font-family: var(--font-display); font-size: clamp(18px, 3vw, 36px);
  letter-spacing: 0.03em; padding: 12px 0; min-height: 44px;
  color: var(--text-dim); transition: color 0.4s var(--ease);
  cursor: pointer; border: none; background: none;
  position: relative; text-align: center;
}
.svc-word::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--border-hover);
  transition: background-color 0.4s var(--ease);
}
.svc-word:hover { color: var(--text); }
.svc-word:hover::after { background: var(--text-dim); }
.svc-word.active { color: var(--text); }
.svc-word.active::after { background: var(--accent); height: 2px; }
.svc-reveal {
  min-height: 80px; width: 100%; max-width: 560px; margin: 0 auto; text-align: center;
}
.svc-reveal__inner { animation: svcFadeIn 0.5s var(--ease) forwards; }
@keyframes svcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.svc-reveal__phrase {
  font-size: clamp(13.5px, 1.4vw, 16px); color: rgba(240,235,227,0.72);
  font-weight: 300; line-height: 1.65; margin-bottom: 12px;
}
.svc-reveal__price {
  font-family: var(--font-display); font-size: clamp(13px, 1.2vw, 15px);
  color: var(--accent); letter-spacing: 0.04em;
}

/* ========================================================
   PROCESS — Vertical stages in landscape
   ======================================================== */
#process { min-height: 240%; padding: 0; display: block; }
.proc-sticky {
  position: sticky; top: 0; width: 100%; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--pad-y) calc(var(--pad-x) + 40px) var(--pad-y) var(--pad-x);
}
.proc-scene { width: 100%; max-width: 480px; margin: 0 auto; }
.proc-stages { display: flex; flex-direction: column; gap: 0; }
.proc-stage {
  display: flex; align-items: flex-start;
  gap: clamp(14px, 2vw, 24px); padding: 14px 0;
  opacity: 1; transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); position: relative;
}
.proc-stage.active { opacity: 1; transform: translateY(0); }
.proc-stage.completed { opacity: 1; transform: translateY(0); }
.proc-stage::before {
  content: ''; position: absolute; left: 5px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.proc-stage:first-child::before { top: 50%; }
.proc-stage:last-child::before { bottom: 50%; }
.proc-stage.completed::before { background: var(--border-hover); }
.proc-stage.active::before { background: linear-gradient(180deg, var(--border-hover) 0%, var(--border) 100%); }
.proc-stage__dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--border-hover); background: transparent;
  flex-shrink: 0; margin-top: 3px;
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease; position: relative; z-index: 1;
}
.proc-stage.active .proc-stage__dot {
  border-color: var(--text); background: var(--text);
  box-shadow: 0 0 14px rgba(240,235,227,0.12);
}
.proc-stage.completed .proc-stage__dot {
  border-color: rgba(240,235,227,0.2); background: rgba(240,235,227,0.15);
}
.proc-stage__text {
  display: grid; grid-template-rows: auto 0fr; gap: 2px; position: relative;
}
.proc-stage.active .proc-stage__text { grid-template-rows: auto 1fr; }

.proc-stage__title {
  font-weight: 500; font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: -0.02em; color: var(--muted); transition: color 0.18s ease-out;
}
.proc-stage.active .proc-stage__title { color: var(--text); }
.proc-stage.completed .proc-stage__title { color: var(--text-dim); }
.proc-stage__desc {
  font-size: clamp(12px, 1.1vw, 13.5px); color: var(--text-dim);
  line-height: 1.55; font-weight: 300;
  min-height: 0; overflow: hidden; opacity: 0;
  transition: opacity 0.18s ease-out;
}
.proc-stage.active .proc-stage__desc { opacity: 1; }
.proc-tagline {
  text-align: center; font-weight: 400;
  font-size: clamp(13px, 1.3vw, 15px); color: var(--text-dim);
  letter-spacing: -0.015em; line-height: 1.5; margin-top: 18px;
  max-width: 400px; opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}
.proc-tagline.visible { opacity: 1; transform: translateY(0); }

/* ========================================================
   CONTACT
   ======================================================== */
.cta-heading {
  font-weight: 500; font-size: clamp(24px, 4.5vw, 44px);
  letter-spacing: -0.04em; line-height: 1.15; color: var(--text); max-width: 560px;
}
.cta-sub {
  font-size: clamp(13.5px, 1.3vw, 16px); color: var(--text-dim);
  font-weight: 300; line-height: 1.6;
}

/* ========================================================
   SIDE NAV
   ======================================================== */
.side-nav {
  position: fixed; right: clamp(16px, 2.5vw, 36px); top: 50%;
  transform: translateY(-50%); z-index: 100;
  display: flex; flex-direction: column; gap: 18px;
  opacity: 0; animation: navFadeIn 0.8s ease 1s forwards;
}
@keyframes navFadeIn { to { opacity: 1; } }
.side-nav__item {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  color: var(--muted); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.3s; white-space: nowrap;
}
.side-nav__item:hover { color: var(--text-dim); }
.side-nav__item.active { color: var(--text); }
.side-nav__dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid currentColor; flex-shrink: 0; transition: background-color 0.3s, border-color 0.3s;
}
.side-nav__item.active .side-nav__dot { background: var(--text); border-color: var(--text); }
.side-nav__label {
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}
.side-nav__item:hover .side-nav__label,
.side-nav__item.active .side-nav__label { opacity: 1; transform: translateX(0); }

/* ========================================================
   MOBILE
   ======================================================== */
@media (max-width: 768px) {
  :root { --pad-x: 20px; --pad-y: 24px; }
  .screen { scroll-snap-type: y proximity; }
  .bg-layer__grain { display: none; }
  .slide { padding-right: var(--pad-x); padding-bottom: calc(var(--pad-y) + 56px); }
  #projects { padding-bottom: calc(var(--pad-y) + 72px + env(safe-area-inset-bottom, 0px)); }
  .proc-sticky { padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) + 56px); }
  .side-nav {
    position: fixed; right: auto; top: auto; bottom: 0;
    left: 0; right: 0; transform: none;
    flex-direction: row; justify-content: stretch; gap: 0;
    padding: 2px 4px; padding-bottom: calc(2px + env(safe-area-inset-bottom, 0px));
    background: rgba(10,9,8,0.96); -webkit-backdrop-filter: none; backdrop-filter: none;
    border-top: 1px solid var(--border); opacity: 1; animation: none;
    overflow-x: hidden; scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav__item {
    flex: 1 1 0; min-width: 0; justify-content: center;
    min-height: 44px; font-size: clamp(9px, 2.4vw, 10px); letter-spacing: 0.02em;
    padding: 0 1px; gap: 0;
  }
  .side-nav__label {
    display: flex; align-items: center; justify-content: center;
    min-height: 24px; padding: 0 2px; border-radius: 6px;
  }
  .side-nav__dot { display: none; }
  .side-nav__label { opacity: 1; transform: none; }
  .side-nav__item.active { color: var(--bg); background: transparent; border-radius: 0; }
  .side-nav__item.active .side-nav__label { background: var(--text); }
  .side-nav__item:focus-visible { outline: none; }
  .side-nav__item:focus-visible .side-nav__label {
    outline: 2px solid var(--accent); outline-offset: 2px;
  }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; justify-content: center; }
  .hero-scroll-hint { display: none; }
  .prob-label { font-size: clamp(12px, 3.2vw, 15px); max-width: 200px; }
  .prob-symptom { gap: 8px; }
  .prob-symptom__title { font-size: clamp(24px, 8vw, 48px); }
  .prob-symptom__desc { font-size: clamp(12px, 3vw, 14px); max-width: 90%; }
  .prob-scroll-hint { bottom: 56px; }
  .prob-index { bottom: 16px; }
  .prob-scene { padding-right: 0; }
  /* Projects mobile: stack image above info */
  .proj-body { grid-template-columns: 1fr; gap: 20px; }
  .proj-body__image { aspect-ratio: 16/9; }
  .proj-tabs { gap: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .proj-tabs::-webkit-scrollbar { display: none; }
  .proj-tab { padding: 8px 14px; min-height: 44px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .proj-info__name { font-size: clamp(20px, 5vw, 26px); }
  .proj-info__block-text { font-size: 13px; }
  .svc-words { gap: 12px; }
  .svc-word { font-size: clamp(14px, 4vw, 20px); }
  .proc-scene { max-width: 100%; }
  .proc-stage__title { font-size: clamp(14px, 3.5vw, 16px); }
  .proc-stage__desc { font-size: clamp(11.5px, 2.8vw, 13px); }
  .proc-tagline { font-size: clamp(12px, 3vw, 14px); }
}


/* ========================================================
   REDUCED MOTION
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .clip-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .prob-hint { opacity: 1 !important; }
  .prob-symptom__title, .prob-symptom__desc { opacity: 1 !important; transform: none !important; }
  .proj-body__img.active:not([hidden]) { opacity: 1 !important; transform: none !important; }
  .proc-stage { opacity: 1 !important; transform: none !important; }
  .bg-layer__images { transform: none !important; }
}

@media (forced-colors: active) {
  .side-nav__dot, .prob-index__item::after { forced-color-adjust: none; background: CanvasText; }
}
