/* =============================================================
   PASHAI STUDIO v2 — WebGL cinematic
   Палитра: midnight + electric teal + warm amber (НЕ oxblood)
   Anti-slop: Fraunces + Geist + JetBrains Mono
   ============================================================= */

:root {
  /* v2 color tokens — midnight + teal + amber */
  --c-bg:            oklch(0.06 0.005 250);   /* midnight, base */
  --c-bg-2:          oklch(0.10 0.01 250);    /* surface */
  --c-bg-3:          oklch(0.14 0.015 250);   /* surface edge */
  --c-shadow:        oklch(0.04 0.005 250);   /* deeper */

  --c-accent:        oklch(0.78 0.16 200);    /* electric teal — primary */
  --c-accent-deep:   oklch(0.58 0.18 200);    /* teal deep */
  --c-warm:          oklch(0.82 0.14 65);     /* warm amber — secondary */

  --c-bone:          oklch(0.94 0.02 80);     /* ivory, text on dark */
  --c-bone-muted:    oklch(0.62 0.02 220);    /* cool muted */
  --c-ink-on-paper:  oklch(0.16 0.03 30);     /* text on parchment */

  --c-parchment:     oklch(0.92 0.02 75);

  --f-display: "Fraunces", "Times New Roman", serif;
  --f-text:    "Geist", "Söhne", "Helvetica Neue", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);

  --z-sticky: 10;
  --z-canvas: 1;
  --z-overlay: 50;
  --z-cursor: 100;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background-color: var(--c-bg);
  color-scheme: dark;
  /* Disable native cursor globally when data-cursor="custom" */
  cursor: none;
}
@media (hover: none), (pointer: coarse) {
  html { cursor: auto; }
}
body {
  font-family: var(--f-text);
  font-weight: 400;
  font-size: clamp(15px, 0.4vw + 0.95rem, 17px);
  line-height: 1.55;
  color: var(--c-bone);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 1400px 800px at 80% -8%, oklch(0.18 0.08 200 / 0.18), transparent 60%),
    radial-gradient(ellipse 1100px 800px at 5% 95%, oklch(0.14 0.10 65 / 0.08), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='11'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: 0;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: none; }
@media (hover: none), (pointer: coarse) {
  button { cursor: pointer; }
}
a { color: inherit; text-decoration: none; cursor: none; }
@media (hover: none), (pointer: coarse) {
  a { cursor: pointer; }
}
::selection { background: var(--c-accent); color: var(--c-bg); }

.visually-hidden {
  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: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--c-bone);
  color: var(--c-bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 9999;
}
.skip-link:focus { left: 1rem; }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "ss01" 1; }

/* ─── Custom cursor ───────────────────────────────────── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 220ms var(--ease-out-expo), height 220ms var(--ease-out-expo), border-color 220ms var(--ease-out-expo), background-color 220ms var(--ease-out-expo);
}
.cursor__dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translate(-50%, -50%);
  transition: transform 180ms var(--ease-out-expo), background-color 220ms var(--ease-out-expo);
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.cursor.is-hover .cursor__dot {
  transform: translate(-50%, -50%) scale(1.8);
  background: var(--c-bg);
}
.cursor.is-down {
  width: 18px; height: 18px;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
}
.cursor-trail canvas {
  width: 100%; height: 100%;
  display: block;
}

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

/* ─── Header ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  padding: 1.1rem 0;
  background: oklch(0.06 0.005 250 / 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid oklch(0.94 0.02 80 / 0.06);
}
.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36, "SOFT" 100;
  color: var(--c-bone);
  font-style: italic;
  line-height: 1;
}
.wordmark__letters {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  line-height: 1;
}
.wordmark__p, .wordmark__h { color: var(--c-accent); }
.wordmark__sub {
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--c-bone-muted);
  text-transform: lowercase;
  font-weight: 400;
}
.wordmark--footer {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36;
  font-style: italic;
  color: var(--c-accent);
  margin: 0 0 0.5rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  font-size: 0.92rem;
}
.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--c-bone-muted);
  transition: color 200ms var(--ease-out-quint);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out-quint);
}
.site-nav a:hover { color: var(--c-bone); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid oklch(0.78 0.16 200 / 0.4);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--c-bone);
  transition: background-color 200ms var(--ease-out-quint), border-color 200ms var(--ease-out-quint);
}
.site-header__cta:hover {
  background-color: oklch(0.78 0.16 200 / 0.12);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--f-text);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: none;
  border: none;
  transition: transform 160ms var(--ease-out-quint), background-color 200ms var(--ease-out-quint), color 200ms var(--ease-out-quint);
}
@media (hover: none), (pointer: coarse) {
  .btn { cursor: pointer; }
}
.btn--primary {
  background-color: var(--c-accent);
  color: var(--c-bg);
}
.btn--primary:hover {
  background-color: var(--c-bone);
  transform: translateY(-1px);
}
.btn--ghost {
  background-color: transparent;
  color: var(--c-bone);
  border: 1px solid oklch(0.94 0.02 80 / 0.3);
}
.btn--ghost:hover {
  background-color: oklch(0.94 0.02 80 / 0.08);
  border-color: oklch(0.94 0.02 80 / 0.6);
}

/* ─── HERO (WebGL) ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero__webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-canvas);
  pointer-events: none;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 70% at 50% 100%, var(--c-bg) 5%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 0%, var(--c-bg) 10%, transparent 60%);
  opacity: 0.5;
}
.hero__letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 4vh;
  background: oklch(0.04 0.005 250);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__letterbox.is-shown {
  opacity: 1;
}
.hero__letterbox--top { top: 0; }
.hero__letterbox--bottom { bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero__letterbox { display: none; }
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  padding: 9rem clamp(1.25rem, 3vw, 2.5rem) 4rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  font-size: 0.78rem;
  color: var(--c-bone-muted);
  letter-spacing: 0.06em;
}
.hero__kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 16px oklch(0.78 0.16 200 / 0.7);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: clamp(3.5rem, 9.5vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 2rem;
  color: var(--c-bone);
  text-wrap: balance;
  max-width: 19ch;
  margin-left: 4%;
  perspective: 1200px;
  text-shadow: 0 2px 40px oklch(0.06 0.005 250 / 0.95), 0 0 80px oklch(0.06 0.005 250 / 0.7);
}
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0, 400px) rotateX(-30deg);
  filter: blur(8px);
  transition:
    opacity 1000ms var(--ease-out-expo),
    transform 1000ms var(--ease-out-expo),
    filter 1000ms var(--ease-out-expo);
  transform-origin: 50% 100%;
  margin-right: 0.25em;
}
.hero__title.is-revealed .hero__word {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0);
  filter: blur(0);
}
.hero__word--accent {
  color: var(--c-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  text-shadow:
    0 2px 40px oklch(0.06 0.005 250 / 0.95),
    0 0 80px oklch(0.78 0.16 200 / 0.4),
    0 0 24px oklch(0.78 0.16 200 / 0.6);
}

.hero__lede {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.18rem);
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 0 2.5rem;
  color: var(--c-bone-muted);
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 900ms var(--ease-out-quint) 1300ms, transform 900ms var(--ease-out-quint) 1300ms;
  text-shadow: 0 1px 16px oklch(0.06 0.005 250 / 0.9);
}
.hero__lede.is-revealed { opacity: 1; transform: translateY(0); }

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 700ms var(--ease-out-quint) 1600ms, transform 700ms var(--ease-out-quint) 1600ms;
}
.hero__actions.is-revealed { opacity: 1; transform: translateY(0); }

.hero__bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.08);
  max-width: 620px;
  opacity: 0;
  transition: opacity 700ms var(--ease-out-quint) 1900ms;
}
.hero__bottom.is-revealed { opacity: 1; }
.hero__bottom-label {
  font-size: 0.62rem;
  color: var(--c-bone-muted);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.hero__bottom-bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, oklch(0.78 0.16 200 / 0.4), transparent);
}
.hero__bottom-stamp {
  font-size: 0.7rem;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: oklch(0.94 0.02 80 / 0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%;
  height: 50%;
  background: var(--c-accent);
  animation: scroll-cue 2s var(--ease-out-quint) infinite;
}
@keyframes scroll-cue {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ─── NUMBERS (flip 3D) ────────────────────────────────── */
.numbers {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--c-bg);
  position: relative;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.06);
}
.numbers::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 1000px 600px at 50% 50%, oklch(0.78 0.16 200 / 0.06), transparent 70%);
  pointer-events: none;
}
.numbers__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.numbers__head { margin-bottom: clamp(3rem, 5vw, 4rem); }
.numbers__kicker, .process__kicker, .work__kicker, .pricing__kicker, .contact__kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-accent);
}
.numbers__title, .process__title, .work__title, .pricing__title, .studio__title, .contact__title-huge {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--c-bone);
  text-wrap: balance;
}
.numbers__title em, .process__title em, .work__title em, .pricing__title em, .studio__title em {
  color: var(--c-warm);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.numbers__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
}
.num {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid oklch(0.78 0.16 200 / 0.4);
  perspective: 1000px;
  position: relative;
}
.num__prefix {
  position: absolute;
  top: 1.5rem;
  left: -2.5rem;
  font-size: 1rem;
  color: oklch(0.78 0.16 200 / 0.35);
}
.num__big {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--c-bone);
  transform: rotateY(60deg) translateZ(-40px);
  opacity: 0;
  transition: transform 1000ms var(--ease-out-expo), opacity 800ms var(--ease-out-expo);
  position: relative;
}
.num__big.is-flipped { transform: rotateY(0) translateZ(0); opacity: 1; }
/* Phase 2 glitch numerals: hide text (canvas paints on top), kill the 3D-flip */
.num__big.is-glitched {
  color: transparent;
  transform: none;
  opacity: 1;
  transition: none;
}
.num__big-glitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.num__suffix {
  font-size: 0.7rem;
  color: var(--c-accent);
  letter-spacing: 0.06em;
}
.num__label {
  font-size: 0.85rem;
  color: var(--c-bone-muted);
  line-height: 1.5;
}

/* ─── PROCESS (horizontal grid, vertical scroll) ─────── */
.process {
  position: relative;
  background: var(--c-bg-2);
  border-top: 1px solid oklch(0.94 0.02 80 / 0.06);
  border-bottom: 1px solid oklch(0.94 0.02 80 / 0.06);
}
.process__sticky {
  padding: clamp(6rem, 10vw, 10rem) 0;
  display: flex;
  flex-direction: column;
}
.process__head {
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.process__progress {
  margin-top: 1rem;
  width: 100%;
  height: 2px;
  background: oklch(0.94 0.02 80 / 0.08);
  position: relative;
  overflow: hidden;
}
.process__progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 16.66%;
  background: var(--c-accent);
  transition: width 300ms var(--ease-out-quint);
}

.process__track {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.process__track::-webkit-scrollbar { display: none; }
.process__steps {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem) 2rem;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
.step {
  flex: 0 0 clamp(280px, 24vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--c-bg);
  border: 1px solid oklch(0.78 0.16 200 / 0.18);
  border-radius: 4px;
  min-height: 340px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--c-accent), transparent);
  opacity: 0.4;
}
.step__num {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--c-accent);
  letter-spacing: -0.02em;
}
.step__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: -0.025em;
  color: var(--c-bone);
  line-height: 1.1;
}
.step__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--c-bone-muted);
  flex: 1;
}
.step__cmd {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  padding: 0.4rem 0.7rem;
  background: var(--c-bg);
  color: var(--c-accent);
  border: 1px solid oklch(0.78 0.16 200 / 0.3);
  border-radius: 3px;
  letter-spacing: -0.01em;
  align-self: flex-start;
}
.step__result {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--c-warm);
  letter-spacing: -0.01em;
  align-self: flex-start;
}

/* ─── WORK (cards with WebGL distortion) ─────────────── */
.work {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--c-bg);
  position: relative;
}
.work__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.work__header { margin-bottom: clamp(3rem, 5vw, 4rem); max-width: 760px; }
.work__lede { margin: 1rem 0 0; font-size: clamp(1rem, 0.6vw + 0.85rem, 1.18rem); line-height: 1.55; color: var(--c-bone-muted); }

.work__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.case {
  background: var(--c-bg-2);
  border: 1px solid oklch(0.94 0.02 80 / 0.08);
  border-radius: 4px 12px 4px 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 700ms var(--ease-out-quint), transform 700ms var(--ease-out-quint);
}
.case.is-revealed { opacity: 1; transform: translateY(0) scale(1); }
.case:nth-child(odd) { transform: translateY(20px) scale(0.96) rotate(-0.6deg); }
.case:nth-child(even) { transform: translateY(20px) scale(0.96) rotate(0.5deg); }
.case.is-revealed:nth-child(odd) { transform: translateY(0) scale(1) rotate(-0.6deg); }
.case.is-revealed:nth-child(even) { transform: translateY(0) scale(1) rotate(0.5deg); }
.case__visual {
  position: relative;
  height: 280px;
  background: var(--c-bg-3);
  overflow: hidden;
}
.case__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out-expo);
}
.case:hover .case__visual img { transform: scale(1.04); }
.case__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, oklch(0.18 0.04 35) 0%, oklch(0.10 0.01 250) 100%);
}
.case__placeholder svg { width: 60%; height: 60%; }
.case__status {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--c-accent);
  color: var(--c-bg);
  padding: 0.3rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.case__status--wip {
  background: var(--c-warm);
}
.case__meta {
  padding: 1.5rem 1.5rem 1.25rem;
  display: grid;
  gap: 0.6rem;
}
.case__niche {
  margin: 0;
  font-size: 0.7rem;
  color: var(--c-bone-muted);
  letter-spacing: 0.04em;
}
.case__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--c-bone);
  line-height: 1.05;
}
.case__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--c-bone-muted);
  line-height: 1.55;
}
.case__numbers {
  margin: 0.5rem 0 0;
  padding: 0.75rem 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.08);
  font-size: 0.7rem;
  color: var(--c-bone-muted);
}
.case__numbers span {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: var(--c-warm);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

/* ─── PRICING (calculator) ───────────────────────────── */
.pricing {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--c-bg-2);
  position: relative;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.06);
}
.pricing__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.pricing__header { margin-bottom: clamp(3rem, 5vw, 4rem); max-width: 760px; }
.pricing__lede { margin: 1rem 0 0; font-size: clamp(1rem, 0.6vw + 0.85rem, 1.18rem); line-height: 1.55; color: var(--c-bone-muted); }

.pricing__layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.pricing__options {
  background: var(--c-bg);
  border: 1px solid oklch(0.94 0.02 80 / 0.08);
  border-radius: 4px 12px 4px 12px;
  padding: 2rem 1.75rem;
}
.pricing__options-title {
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--c-accent);
}
.opt {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid oklch(0.94 0.02 80 / 0.06);
  cursor: none;
}
@media (hover: none), (pointer: coarse) {
  .opt { cursor: pointer; }
}
.opt:last-of-type { border-bottom: none; }
.opt input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  width: 18px; height: 18px;
  border: 1.5px solid oklch(0.94 0.02 80 / 0.3);
  border-radius: 3px;
  position: relative;
  transition: border-color 180ms var(--ease-out-quint), background-color 180ms var(--ease-out-quint);
}
.opt input:checked + .opt__box {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.opt input:checked + .opt__box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-bg);
  font-size: 0.78rem;
  font-weight: 700;
}
.opt__label {
  font-size: 0.92rem;
  color: var(--c-bone);
}
.opt__price {
  font-size: 0.85rem;
  color: var(--c-bone-muted);
}
.opt--select {
  grid-template-columns: 1fr auto;
  gap: 1rem;
}
.opt--select .opt__label { font-size: 0.85rem; color: var(--c-bone-muted); }
.opt--select select {
  background: var(--c-bg-2);
  border: 1px solid oklch(0.94 0.02 80 / 0.15);
  border-radius: 3px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-family: var(--f-text);
  color: var(--c-bone);
  cursor: none;
}
@media (hover: none), (pointer: coarse) {
  .opt--select select { cursor: pointer; }
}

.pricing__total {
  background: var(--c-bg);
  border: 1px solid oklch(0.78 0.16 200 / 0.3);
  border-radius: 12px 4px 12px 4px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 8rem;
}
.pricing__total-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--c-accent);
}
.pricing__total-num {
  margin: 0;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-bone);
}
.pricing__total-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--c-bone-muted);
}
.pricing__total .btn { margin-top: 0.5rem; }
.pricing__total-note {
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.06);
  font-size: 0.8rem;
  color: var(--c-bone-muted);
  line-height: 1.5;
}

/* ─── STUDIO ──────────────────────────────────────────── */
.studio {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--c-parchment);
  color: var(--c-ink-on-paper);
  position: relative;
}
.studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: multiply;
}
.studio__inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.studio__figure { margin: 0; position: sticky; top: 6rem; }
.studio__figure svg { width: 100%; height: auto; border: 1px solid oklch(0.16 0.03 30 / 0.18); }
.studio__figure figcaption { margin-top: 0.75rem; font-family: var(--f-mono); font-size: 0.72rem; color: oklch(0.32 0.04 35 / 0.6); line-height: 1.5; }

.studio__text { padding-top: 1rem; grid-column: 2; }
.studio__title { color: oklch(0.16 0.03 30); font-size: clamp(2.2rem, 4.5vw, 3.8rem); margin: 0 0 1.5rem; }
.studio__lede { font-size: clamp(1.05rem, 1vw + 0.6rem, 1.25rem); line-height: 1.55; color: oklch(0.22 0.03 30); margin: 0 0 1.25rem; }
.studio__text p { margin: 0 0 1rem; max-width: 62ch; color: oklch(0.28 0.03 30); }
.studio__text strong { color: oklch(0.16 0.03 30); font-weight: 600; }
.studio__facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid oklch(0.32 0.04 35 / 0.18);
}
.studio__facts li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: baseline; }
.studio__fact-num { font-size: 1.6rem; font-weight: 500; color: oklch(0.16 0.03 30); letter-spacing: -0.02em; font-family: var(--f-mono); }
.studio__fact-label { font-size: 0.92rem; color: oklch(0.32 0.04 35 / 0.7); line-height: 1.5; }

/* ─── CONTACT ─────────────────────────────────────────── */
.contact {
  padding: clamp(6rem, 10vw, 10rem) 0;
  background: var(--c-bg);
  position: relative;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 700px at 80% 80%, oklch(0.78 0.16 200 / 0.1), transparent 60%);
  pointer-events: none;
}
.contact__inner { max-width: 1320px; margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.5rem); position: relative; }
.contact__lead { display: grid; gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 1100px; }
.contact__title-huge {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--c-bone);
  font-style: italic;
  display: block;
}
.contact__title-line {
  font-family: var(--f-text);
  font-weight: 400;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.4rem);
  line-height: 1.4;
  max-width: 52ch;
  color: var(--c-bone-muted);
  margin-top: 1rem;
}
.contact__kicker { margin: 0; color: var(--c-accent); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.contact__field { display: grid; gap: 0.5rem; }
.contact__field--wide { grid-column: 1 / -1; }
.contact__field span {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--c-bone-muted);
}
.contact__field input,
.contact__field textarea {
  background: var(--c-shadow);
  border: 1px solid oklch(0.94 0.02 80 / 0.15);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-family: var(--f-text);
  color: var(--c-bone);
  outline: none;
  transition: border-color 180ms var(--ease-out-quint), background-color 180ms var(--ease-out-quint);
  resize: vertical;
}
.contact__field input::placeholder,
.contact__field textarea::placeholder { color: oklch(0.62 0.02 220 / 0.5); }
.contact__field input:focus,
.contact__field textarea:focus {
  border-color: var(--c-accent);
  background: var(--c-bg-3);
}
.contact__form .btn { grid-column: 1 / -1; justify-self: start; }
.contact__sent {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: var(--c-accent);
}
.contact__aside {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  background: var(--c-bg-2);
  border: 1px solid oklch(0.78 0.16 200 / 0.18);
  border-radius: 4px 12px 4px 12px;
}
.contact__row { display: grid; gap: 0.4rem; padding-bottom: 1rem; border-bottom: 1px solid oklch(0.94 0.02 80 / 0.06); }
.contact__row:last-of-type { border-bottom: none; padding-bottom: 0; }
.contact__row-label { margin: 0; font-size: 0.65rem; letter-spacing: 0.12em; color: var(--c-bone-muted); }
.contact__row-value {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 36;
  font-size: 1.05rem;
  color: var(--c-bone);
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
a.contact__row-value {
  color: var(--c-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease-out-quint);
}
a.contact__row-value:hover { border-color: var(--c-accent); }
.contact__note {
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.06);
  font-size: 0.82rem;
  color: var(--c-bone-muted);
  line-height: 1.55;
}

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--c-shadow);
  padding: clamp(3rem, 5vw, 5rem) 0 2rem;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.06);
}
.site-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}
.site-footer__brand p { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--c-bone-muted); }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: flex-end;
  font-size: 0.88rem;
}
.site-footer__nav a {
  color: var(--c-bone-muted);
  transition: color 180ms var(--ease-out-quint);
}
.site-footer__nav a:hover { color: var(--c-accent); }
.site-footer__legal {
  grid-column: 1 / -1;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.94 0.02 80 / 0.06);
  font-size: 0.78rem;
  color: oklch(0.62 0.02 220 / 0.7);
}
.site-footer__legal .mono { color: var(--c-accent); margin-right: 0.5rem; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .numbers__row { grid-template-columns: repeat(2, 1fr); }
  .studio__inner { grid-template-columns: 1fr; }
  .studio__text { grid-column: 1; padding-top: 0; }
  .studio__figure { position: static; }
  .pricing__layout { grid-template-columns: 1fr; }
  .pricing__total { position: static; }
  .contact__grid { grid-template-columns: 1fr; }
  .process__sticky { position: static; height: auto; }
  .process__track { overflow: visible; }
  .process__steps { flex-direction: column; }
  .step { flex: 1 1 auto; min-height: 0; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero__title { margin-left: 0; }
  .numbers__row { grid-template-columns: 1fr; }
  .num__prefix { position: static; }
  .contact__form { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__nav { justify-content: flex-start; }
  .work__grid { grid-template-columns: 1fr; }
}

/* ─── prefers-reduced-motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__word, .hero__lede, .hero__actions, .hero__bottom {
    opacity: 1; transform: none; filter: none;
  }
  .num__big { opacity: 1; transform: none; }
  .case { opacity: 1; transform: none; }
  .hero__webgl { display: none; }
  .cursor, .cursor-trail { display: none; }
  html, body, a, button { cursor: auto !important; }
  .intro-curtain { display: none; }
  .vto-fallback { display: none; }
}

/* =============================================================
   PASHAI STUDIO v3 — avantgarde additions
   intro curtain · view-transition fallback · work fluid · contact shader
   ============================================================= */

/* ─── Intro curtain ──────────────────────────────────── */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 1200px 600px at 30% 20%, oklch(0.18 0.08 200 / 0.18), transparent 60%),
    radial-gradient(ellipse 900px 500px at 80% 90%, oklch(0.16 0.10 65 / 0.08), transparent 55%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 800ms cubic-bezier(0.86, 0, 0.07, 1),
              opacity 400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.intro-curtain.is-lifted {
  transform: translateY(-100%);
  pointer-events: none;
}
.intro-curtain__stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--c-accent), transparent);
  opacity: 0.6;
}
.intro-curtain__stamp {
  position: relative;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--c-bone-muted);
  text-transform: uppercase;
}

/* ─── View transition fallback overlay ───────────────── */
.vto-fallback {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: var(--c-bg);
  background-image: radial-gradient(ellipse 800px 400px at 50% 50%, oklch(0.14 0.08 200 / 0.25), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}
.vto-fallback.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Work fluid canvas ──────────────────────────────── */
.work__fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
  display: block;
}
.work__inner {
  position: relative;
  z-index: 1;
}

/* ─── Contact shader canvas ──────────────────────────── */
.contact__shader {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 3 / 1;
  max-height: 280px;
  height: auto;
  margin: 0;
  background: transparent;
}
.contact__lead {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 1100px;
}
.contact__lead-text { padding: 0; }
.contact__lead .contact__kicker { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) {
  .contact__lead { grid-template-columns: 1fr; }
  .contact__shader { max-height: 200px; }
}

/* ─── View transition styling (Chromium) ────────────── */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) {
  animation-name: vto-fade-out;
}
::view-transition-new(root) {
  animation-name: vto-fade-in;
}
@keyframes vto-fade-out {
  to { opacity: 0; }
}
@keyframes vto-fade-in {
  from { opacity: 0; }
}

/* ─── Touch / reduced-motion: solid fallback for shader */
@media (max-width: 720px) {
  .contact__shader { display: none; }
  .contact__title-line { font-size: clamp(1.5rem, 4vw, 2.2rem); font-style: italic; color: var(--c-accent); }
}

/* ─── Scroll-driven 3D background (Phase 3) ─────────────────── */
.scroll-3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-3d.is-loaded { opacity: 1; }

/* The body is a non-stacking context so a z-index:-1 child paints after the
   body background but before in-flow content. body bg is midnight per spec. */
body { background-color: oklch(0.06 0.005 250); }

/* Scroll progress as an animatable custom property.
   animation-timeline: scroll(root block) drives --scroll-progress 0..1 across
   the full document scroll range. JS reads it via getComputedStyle. */
@property --scroll-progress {
  syntax: '<number>';
  initial-value: 0;
  inherits: true;
}
:root {
  animation: pashai-scroll-progress linear forwards;
  animation-timeline: scroll(root block);
}
@keyframes pashai-scroll-progress {
  to { --scroll-progress: 1; }
}

/* Reduced motion: pin to mid-page (0.3) and freeze the timeline. */
@media (prefers-reduced-motion: reduce) {
  :root {
    animation: none;
    --scroll-progress: 0.3;
  }
}