/* ============================================================
   ARKLINE DESIGN
   Dark cinematic. One theme, one accent, one family (Archivo).
   Radius system: buttons = pill, cards & media = 18px, thumbs = 12px.
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-2: #0b0e17;
  --bg-3: #10141f;
  --ink: #eef0f8;
  --muted: #969cae;
  --line: rgba(238, 240, 248, 0.09);
  --cobalt: #0539b7;        /* brand mark blue, for surfaces + graphics */
  --electric: #4d6bff;      /* readable accent on dark, same hue family */
  --r-card: 18px;
  --r-thumb: 12px;
  --pad-x: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--cobalt); color: #fff; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 4px; }

.container { padding-inline: var(--pad-x); max-width: 1600px; margin-inline: auto; }

/* Big section headline */
.display {
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

/* Film grain, fixed + inert */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* Ambient light. Static radial gradients, zero repaint cost. */
.glow {
  position: absolute; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(37, 78, 255, 0.22), transparent 72%);
}
.glow-hero { width: 60vw; height: 60vw; left: -18vw; bottom: -28vw; }
.glow-services { width: 46vw; height: 46vw; right: -20vw; top: -8vw; }
.glow-pricing { width: 52vw; height: 52vw; left: 50%; top: 8%; translate: -50% 0; opacity: 0.7; }
.glow-footer { width: 70vw; height: 40vw; left: 15vw; top: -16vw; opacity: 0.55; }

/* Intro veil (first visit only; JS shows and lifts it) */
.veil {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: none;
  place-items: center;
}
.veil.is-active { display: grid; }
.veil-mark {
  width: 76px; height: 76px;
  color: var(--cobalt);
  opacity: 0;
  filter: drop-shadow(0 0 40px rgba(31, 78, 255, 0.7));
}

/* Cross-page fade */
.page-fade {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.32s var(--ease-io);
}
.page-fade.is-active { opacity: 1; pointer-events: auto; }

/* Cursor spotlight on cards (JS drives --sx / --sy) */
.spotlight {
  background-image: radial-gradient(340px circle at var(--sx, -30%) var(--sy, -30%),
    rgba(77, 107, 255, 0.13), transparent 62%);
}

/* Ambient video loops */
video[data-ambient] { display: block; object-fit: cover; }

/* North-east arrow, inline SVG so iOS never swaps in the emoji glyph */
.arrow-ne {
  width: 0.78em; height: 0.78em;
  display: inline-block; vertical-align: -0.05em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cobalt); color: #fff;
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  font-size: 0.95rem; font-weight: 560; letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.6s var(--ease-out), background-color 0.4s var(--ease-out),
              box-shadow 0.6s var(--ease-out);
}
.btn:hover { background: #0742d6; box-shadow: 0 0 32px rgba(31, 78, 255, 0.35); }
.btn:active { transform: scale(0.97); }
.btn-orb {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem; line-height: 1;
  transition: transform 0.6s var(--ease-out);
}
.btn:hover .btn-orb { transform: translate(2px, -2px); }
.btn-lg { padding: 14px 14px 14px 30px; font-size: 1.05rem; }
.btn-lg .btn-orb { width: 40px; height: 40px; }
.btn-ghost { background: transparent; border: 1px solid rgba(238, 240, 248, 0.22); color: var(--ink); }
.btn-ghost:hover { background: rgba(238, 240, 248, 0.06); border-color: rgba(238, 240, 248, 0.4); box-shadow: none; }
.btn-ghost .btn-orb { background: rgba(238, 240, 248, 0.1); }

@media (prefers-reduced-motion: no-preference) {
  .btn-glow { animation: btnBreathe 4.5s var(--ease-io) infinite; }
  @keyframes btnBreathe {
    0%, 100% { box-shadow: 0 0 24px rgba(31, 78, 255, 0.25); }
    50%      { box-shadow: 0 0 44px rgba(31, 78, 255, 0.5); }
  }
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding-inline: var(--pad-x);
  transition: background-color 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }
.nav-mark { width: 26px; height: 26px; color: var(--electric); }
.nav-word {
  font-weight: 700; font-stretch: 118%; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.95rem;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  position: relative;
  font-size: 0.95rem; color: var(--muted); font-weight: 480;
  transition: color 0.35s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--electric);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-io);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Mobile menu (toggle + full-screen overlay) */
.nav-toggle {
  display: none;
  position: relative; width: 44px; height: 44px; flex: none;
}
.nav-toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.45s var(--ease-io), top 0.45s var(--ease-io);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
html.menu-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
html.menu-open .nav-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.m-menu {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(5, 6, 10, 0.88);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 96px var(--pad-x) 48px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-io), visibility 0s linear 0.4s;
}
.m-menu::before {
  content: ""; position: absolute; right: -30%; bottom: -20%;
  width: 90vw; height: 90vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(37, 78, 255, 0.22), transparent 70%);
}
html.menu-open .m-menu {
  opacity: 1; visibility: visible;
  transition: opacity 0.4s var(--ease-io);
}
.m-menu > a:not(.btn) {
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 640; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink);
  opacity: 0; translate: 0 22px;
  transition: opacity 0.5s var(--ease-out), translate 0.5s var(--ease-out);
}
html.menu-open .m-menu > a:not(.btn) { opacity: 1; translate: 0 0; }
html.menu-open .m-menu > a:nth-child(1) { transition-delay: 0.08s; }
html.menu-open .m-menu > a:nth-child(2) { transition-delay: 0.14s; }
html.menu-open .m-menu > a:nth-child(3) { transition-delay: 0.2s; }
html.menu-open .m-menu > a:nth-child(4) { transition-delay: 0.26s; }
.m-menu-cta {
  align-self: flex-start; margin-top: 28px;
  opacity: 0; translate: 0 22px;
  transition: opacity 0.5s var(--ease-out) 0.34s, translate 0.5s var(--ease-out) 0.34s;
}
html.menu-open .m-menu-cta { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .m-menu > a:not(.btn), .m-menu-cta { opacity: 1; translate: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: clip;
}
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video video { width: 100%; height: 100%; opacity: 0.5; }
.hero-video::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 50%, transparent 40%, var(--bg) 96%);
}
.hero-mark {
  position: absolute;
  right: -6vw; top: 50%;
  width: clamp(340px, 46vw, 780px); height: clamp(340px, 46vw, 780px);
  /* "translate" (not transform) so GSAP's transform tweens compose with it */
  translate: 0 -52%;
  color: var(--cobalt);
  opacity: 0.92;
  filter: drop-shadow(0 0 120px rgba(5, 57, 183, 0.35));
}
.hero-inner {
  position: relative; z-index: 2;
  padding-inline: var(--pad-x);
  padding-top: 72px;
  max-width: 1600px; width: 100%; margin-inline: auto;
}
.hero-title {
  font-size: clamp(2.55rem, 9.2vw, 9rem);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.line-mask { display: block; overflow: clip; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line { display: block; }
.kinetic {
  font-style: italic; font-weight: 720; color: var(--electric);
  text-shadow: 0 0 42px rgba(77, 107, 255, 0.45);
}
.hero-sub {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 34ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--muted);
}
.hero-cta { margin-top: clamp(24px, 4vh, 40px); }

/* Hidden-until-intro states, only when JS + motion are active */
html.motion .line { transform: translateY(112%); }
html.motion [data-hero-fade] { opacity: 0; }
html.motion .hero-mark { opacity: 0; }

/* ============ WORK ============ */
.work { position: relative; }
.work-pin {
  height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(20px, 3.5vh, 44px);
  padding-top: 80px;
  overflow: clip;
}
.section-head { width: 100%; }

.work-track {
  display: flex; align-items: flex-end;
  gap: clamp(48px, 6vw, 110px);
  padding-inline: var(--pad-x);
  width: max-content;
  will-change: transform;
}
.work-panel {
  display: flex; align-items: flex-end; gap: clamp(20px, 2vw, 32px);
  flex: none;
  transition: translate 0.7s var(--ease-out);
}
.work-panel:hover { translate: 0 -8px; }
.work-media {
  --h: min(56vh, 540px);
  overflow: clip; border-radius: var(--r-card);
  height: var(--h); width: calc(var(--h) * 0.75);
  flex: none;
  background: var(--bg-2);
  transition: box-shadow 0.7s var(--ease-out);
}
.work-panel:hover .work-media { box-shadow: 0 24px 80px rgba(10, 40, 160, 0.35); }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.work-meta { width: clamp(190px, 16vw, 250px); padding-bottom: 6px; }
.work-progress {
  width: 100%;
  height: 2px; border-radius: 999px;
  background: rgba(238, 240, 248, 0.1);
  overflow: clip;
}
.work-progress-fill {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--electric));
  box-shadow: 0 0 12px rgba(77, 107, 255, 0.7);
  transform: scaleX(0); transform-origin: left;
}
.work-meta h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 640; font-stretch: 110%; letter-spacing: -0.01em;
}
.work-line { color: var(--muted); margin-top: 4px; font-size: 0.98rem; }
.work-tags {
  margin-top: 10px;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* ============ STATS (inside Studio) ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(56px, 9vh, 110px);
}
.stat { display: grid; gap: 6px; justify-items: start; }
.stat-num {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700; font-stretch: 116%; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ============ SERVICES ============ */
.services { position: relative; padding-block: clamp(64px, 10vh, 120px); overflow: clip; }
.services .container { position: relative; z-index: 1; }
.services .display { margin-bottom: clamp(24px, 4vh, 48px); }
.service { list-style: none; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-row {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  text-align: left;
  padding-block: clamp(16px, 2.4vh, 24px);
}
.service-name {
  font-size: clamp(1.7rem, 3.8vw, 3.1rem);
  font-weight: 560; font-stretch: 108%;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--muted);
  transition: color 0.45s var(--ease-out), transform 0.6s var(--ease-out),
              text-shadow 0.6s var(--ease-out);
}
.service.is-open .service-name,
.service-row:hover .service-name {
  color: var(--ink); transform: translateX(12px);
  text-shadow: 0 0 32px rgba(77, 107, 255, 0.35);
}
.service-plus { position: relative; width: 20px; height: 20px; flex: none; }
.service-plus::before, .service-plus::after {
  content: ""; position: absolute; background: var(--muted); inset: 0; margin: auto;
  transition: transform 0.5s var(--ease-io), background-color 0.4s var(--ease-out);
}
.service-plus::before { width: 100%; height: 2px; }
.service-plus::after { width: 2px; height: 100%; }
.service.is-open .service-plus::after,
.faq-item.is-open .service-plus::after { transform: rotate(90deg); }
.service.is-open .service-plus::before,
.service.is-open .service-plus::after,
.faq-item.is-open .service-plus::before,
.faq-item.is-open .service-plus::after { background: var(--electric); }
.service-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease-io);
}
.service.is-open .service-body { grid-template-rows: 1fr; }
.service-body-inner {
  overflow: clip;
  min-height: 0; /* lets the 0fr grid row actually collapse */
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
}
.service-body-inner p {
  color: var(--muted); max-width: 52ch; font-size: 1.02rem;
  padding-bottom: clamp(18px, 3vh, 30px);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out) 0.15s, transform 0.5s var(--ease-out) 0.15s;
}
.service-body-inner img {
  width: clamp(150px, 14vw, 210px); border-radius: var(--r-thumb);
  margin-bottom: clamp(18px, 3vh, 30px);
  opacity: 0; transform: translateY(18px) scale(0.96);
  transition: opacity 0.55s var(--ease-out) 0.2s, transform 0.55s var(--ease-out) 0.2s;
}
.service.is-open .service-body-inner p,
.service.is-open .service-body-inner img { opacity: 1; transform: none; }

/* ============ PROCESS ============ */
.process { padding-top: clamp(40px, 8vh, 96px); }
.process .display { margin-bottom: clamp(36px, 6vh, 72px); }
.stack-item {
  min-height: 100vh;
  display: grid; place-items: center;
  padding-inline: var(--pad-x);
}
.p-card {
  position: relative; overflow: clip;
  width: min(760px, 100%);
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  will-change: transform;
}
/* cobalt light along the top edge instead of a logo watermark */
.p-card::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 107, 255, 0.7), transparent);
}
.p-card::after {
  content: ""; position: absolute; top: -40%; left: 20%; width: 60%; height: 80%;
  background: radial-gradient(closest-side, rgba(37, 78, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.p-card h3 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 660; font-stretch: 112%; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.p-card p { color: var(--muted); max-width: 46ch; font-size: 1.08rem; position: relative; }

/* ============ STUDIO ============ */
.studio { padding-block: clamp(96px, 16vh, 180px) 0; }
.studio-media {
  overflow: clip;
  margin-inline: var(--pad-x);
  border-radius: var(--r-card);
  aspect-ratio: 16 / 8;
  background: var(--bg-2);
}
.studio-media img, .studio-media video { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.manifesto {
  padding-block: clamp(96px, 16vh, 180px) clamp(48px, 8vh, 96px);
  font-size: clamp(1.9rem, 4.4vw, 3.9rem);
  font-weight: 580; font-stretch: 106%;
  line-height: 1.14; letter-spacing: -0.02em;
  max-width: 24ch;
}
.manifesto .word { opacity: 0.13; }
.quote { border-left: 2px solid var(--cobalt); padding-left: clamp(20px, 3vw, 36px); margin-bottom: clamp(64px, 10vh, 120px); max-width: 640px; }
.quote blockquote { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; }
.quote figcaption { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* ============ ESTIMATOR ============ */
.estimate { position: relative; padding-block: clamp(96px, 15vh, 170px); overflow: clip; }
.estimate-bg { position: absolute; inset: 0; z-index: 0; }
.estimate-bg img, .estimate-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.estimate-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 4%, rgba(5, 6, 10, 0.62) 40%, rgba(5, 6, 10, 0.62) 68%, var(--bg) 97%);
}
.estimate .container { position: relative; z-index: 1; }
.estimate-note { color: var(--muted); margin-top: 18px; max-width: 52ch; }
.estimate-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(36px, 6vh, 64px);
  align-items: start;
}
.estimate-controls { display: grid; gap: clamp(28px, 5vh, 44px); padding-top: 10px; }
.est-control-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 14px;
}
.est-control-head label { color: var(--muted); font-size: 0.98rem; }
.est-control-head output {
  font-weight: 660; font-stretch: 112%; font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, var(--electric) var(--fill, 30%), rgba(238, 240, 248, 0.14) var(--fill, 30%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 999px; margin-top: -7px;
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(77, 107, 255, 0.25), 0 0 18px rgba(77, 107, 255, 0.6);
  transition: box-shadow 0.3s var(--ease-out);
}
input[type="range"]:active::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 7px rgba(77, 107, 255, 0.3), 0 0 26px rgba(77, 107, 255, 0.8);
}
input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 999px; background: rgba(238, 240, 248, 0.14);
}
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--electric); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 0; border-radius: 999px;
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(77, 107, 255, 0.25), 0 0 18px rgba(77, 107, 255, 0.6);
}
input[type="range"]:focus-visible { outline-offset: 8px; }
.estimate-results {
  background: rgba(11, 14, 23, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(238, 240, 248, 0.12);
  border-radius: var(--r-card);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.5);
}
.est-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.est-row + .est-row { border-top: 1px solid var(--line); }
.est-row-label { color: var(--muted); font-size: 0.95rem; }
.est-row-value { font-weight: 620; font-variant-numeric: tabular-nums; }
.est-hero-num { margin-top: 22px; display: grid; gap: 6px; }
.est-hero-label { color: var(--muted); font-size: 0.95rem; }
.est-hero-value {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 720; font-stretch: 114%; letter-spacing: -0.02em; line-height: 1;
  color: var(--electric);
  text-shadow: 0 0 48px rgba(77, 107, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.est-fine { margin-top: 20px; color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

/* ============ PRICING ============ */
.pricing { position: relative; padding-block: clamp(80px, 13vh, 150px); overflow: clip; }
.pricing .container { position: relative; z-index: 1; }
.pricing .display { margin-bottom: clamp(32px, 5vh, 60px); }
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: stretch;
}
.price-card {
  display: flex; flex-direction: column;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px);
}
.price-card.is-featured {
  background-color: var(--bg-3);
  border-color: rgba(77, 107, 255, 0.45);
  box-shadow: 0 0 60px rgba(20, 55, 200, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.price-tag {
  align-self: flex-start;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--electric);
  border: 1px solid rgba(77, 107, 255, 0.45);
  border-radius: 999px; padding: 4px 12px;
  margin-bottom: 18px;
}
.price-card h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 660; font-stretch: 112%; letter-spacing: -0.01em;
}
.price-from { margin-top: 10px; font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 720; font-stretch: 110%; letter-spacing: -0.02em; }
.price-from span { font-size: 0.55em; font-weight: 480; color: var(--muted); margin-right: 6px; letter-spacing: 0; }
.price-desc { margin-top: 12px; color: var(--muted); font-size: 0.98rem; }
.price-list { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; list-style: none; }
.price-list li { color: var(--muted); font-size: 0.95rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; margin-top: clamp(24px, 4vh, 36px); }

/* ============ FAQ ============ */
.faq { padding-block: clamp(64px, 10vh, 130px); }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1.35fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
}
.faq-media { margin-top: clamp(24px, 4vh, 40px); overflow: clip; border-radius: var(--r-card); }
.faq-media img { width: 100%; }
.faq-list { list-style: none; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  text-align: left;
  padding-block: 20px;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 560;
  transition: color 0.35s var(--ease-out);
}
.faq-q:hover { color: var(--electric); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-io); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: clip; min-height: 0; }
.faq-a-inner p { color: var(--muted); max-width: 58ch; padding-bottom: 22px; }

/* ============ FOLLOW ============ */
.follow { padding-bottom: clamp(80px, 12vh, 140px); }
.follow-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.follow-head h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 640; font-stretch: 112%; letter-spacing: -0.01em;
}
.follow-handle {
  color: var(--electric); font-weight: 560;
  transition: text-shadow 0.4s var(--ease-out);
}
.follow-handle:hover { text-shadow: 0 0 28px rgba(77, 107, 255, 0.6); }
.follow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.follow-grid a {
  display: block; overflow: clip; border-radius: var(--r-thumb);
  aspect-ratio: 1;
}
.follow-grid img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
  transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease-out);
}
.follow-grid a:hover img { transform: scale(1.05); filter: saturate(1) brightness(1); }

/* ============ FOOTER ============ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: clamp(96px, 14vh, 160px);
  overflow: clip;
}
.footer .container { position: relative; z-index: 1; }
.footer-ask {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 640; font-stretch: 110%; letter-spacing: -0.025em; line-height: 1;
}
.footer-link {
  display: inline-flex; align-items: baseline; gap: 16px;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  font-weight: 560; letter-spacing: -0.01em;
  color: var(--electric);
  text-shadow: 0 0 36px rgba(77, 107, 255, 0.35);
  position: relative;
}
.footer-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--electric);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease-io);
}
.footer-link:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-arrow { font-size: 0.7em; transition: transform 0.5s var(--ease-out); }
.footer-link:hover .footer-arrow { transform: translate(4px, -4px); }
.footer-word {
  display: flex; justify-content: space-between;
  padding-inline: var(--pad-x);
  margin-top: clamp(72px, 12vh, 140px);
  font-size: clamp(3.4rem, 16.4vw, 15.4rem);
  font-weight: 780; font-stretch: 122%;
  line-height: 0.78; letter-spacing: -0.01em;
  color: var(--ink);
  user-select: none;
}
.footer-word span {
  display: inline-block; will-change: transform;
  transition: translate 0.5s var(--ease-out), color 0.5s var(--ease-out),
              text-shadow 0.5s var(--ease-out);
}
.footer-word span:hover {
  translate: 0 -0.06em;
  color: var(--electric);
  text-shadow: 0 0 60px rgba(77, 107, 255, 0.55);
}
.footer-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 28px 32px;
  margin-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
.footer-note { font-size: 0.85rem; opacity: 0.7; margin-top: 2px; }
.footer-social { display: flex; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.footer-social a { transition: color 0.35s var(--ease-out); }
.footer-social a:hover { color: var(--ink); }

/* ============================================================
   START A PROJECT (start.html)
   ============================================================ */
.page-start main { min-height: 100dvh; padding-top: clamp(110px, 16vh, 160px); position: relative; overflow: clip; }
.glow-start { width: 55vw; height: 55vw; right: -20vw; top: -18vw; position: fixed; }
.start-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  padding-bottom: clamp(80px, 12vh, 140px);
}
.start-head h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 700; font-stretch: 110%; line-height: 0.98; letter-spacing: -0.03em;
}
.start-head p { margin-top: 18px; color: var(--muted); max-width: 46ch; }
.start-form { margin-top: clamp(32px, 5vh, 56px); display: grid; gap: clamp(32px, 5vh, 48px); }
.field-group { display: grid; gap: 16px; }
.field-group > legend, .field-label {
  font-size: 0.95rem; font-weight: 600; color: var(--ink); padding: 0;
}
fieldset.field-group { border: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid rgba(238, 240, 248, 0.18);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem; color: var(--muted);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              background-color 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out),
              transform 0.4s var(--ease-out);
}
.pill:hover { color: var(--ink); border-color: rgba(238, 240, 248, 0.4); }
.pill:active { transform: scale(0.96); }
.pill.is-selected {
  color: #fff; background: var(--cobalt); border-color: transparent;
  box-shadow: 0 0 26px rgba(31, 78, 255, 0.4);
}
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-block { display: grid; gap: 8px; }
.input-block label { font-size: 0.95rem; font-weight: 600; }
.input-block label small { color: var(--muted); font-weight: 480; }
.input-block input, .input-block textarea {
  font: inherit; color: var(--ink);
  background: rgba(238, 240, 248, 0.05);
  border: 1px solid rgba(238, 240, 248, 0.16);
  border-radius: var(--r-thumb);
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.input-block input::placeholder, .input-block textarea::placeholder { color: rgba(150, 156, 174, 0.75); }
.input-block input:focus, .input-block textarea:focus {
  outline: none; border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(77, 107, 255, 0.22);
}
.input-block textarea { min-height: 130px; resize: vertical; }
.input-block.is-error input { border-color: #e0455c; }
.field-error { color: #ff7c8e; font-size: 0.85rem; display: none; }
.input-block.is-error .field-error { display: block; }
.start-submit { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.start-alt { color: var(--muted); font-size: 0.92rem; display: grid; gap: 4px; }
.start-alt a { color: var(--electric); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 120;
  background: var(--cobalt); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  transform: translateY(-300%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }
.start-visual { position: relative; }
.start-visual img { border-radius: var(--r-card); }
.start-visual figcaption { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.start-success {
  display: none;
  padding: clamp(32px, 5vw, 56px);
  background: var(--bg-2); border: 1px solid rgba(77, 107, 255, 0.4);
  border-radius: var(--r-card);
  box-shadow: 0 0 60px rgba(20, 55, 200, 0.25);
}
.start-success.is-visible { display: block; }
.start-success h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 680; font-stretch: 112%; }
.start-success p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.start-success .btn { margin-top: 24px; }
.nav-back { color: var(--muted); font-size: 0.95rem; transition: color 0.3s var(--ease-out); }
.nav-back:hover { color: var(--ink); }
html.motion .page-start [data-enter] { opacity: 0; transform: translateY(26px); }

/* ============================================================
   LEGAL (privacy.html)
   ============================================================ */
.page-legal .legal {
  max-width: 720px;
  padding-top: clamp(120px, 18vh, 180px);
  padding-bottom: clamp(64px, 10vh, 120px);
}
.legal h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1;
}
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.legal h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 660; font-stretch: 110%;
  margin-top: clamp(36px, 5vh, 52px); margin-bottom: 10px;
}
.legal p { color: var(--muted); margin-top: 14px; max-width: 62ch; }
.legal p strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--electric); }
.legal-foot { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; max-width: 720px; }
.legal-foot a { color: var(--electric); }

/* ============================================================
   404 (404.html)
   ============================================================ */
.page-err main {
  min-height: 100dvh;
  display: grid; place-items: center;
  position: relative; overflow: clip;
  text-align: center; padding-inline: var(--pad-x);
}
.glow-err { position: fixed; width: 70vw; height: 70vw; left: 15vw; top: 10vh; }
.err-inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; }
.err-mark { width: 60px; height: 60px; color: var(--cobalt); filter: drop-shadow(0 0 30px rgba(5, 57, 183, 0.6)); }
.err-code {
  font-size: clamp(6rem, 24vw, 17rem);
  font-weight: 780; font-stretch: 120%; line-height: 0.9; letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--ink) 30%, rgba(77, 107, 255, 0.75));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err-line { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 34ch; }
.err-inner .btn { margin-top: 26px; }

/* ============ MOBILE ============ */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .hero-mark {
    right: -22vw; top: auto; bottom: -4vh;
    width: 78vw; height: 78vw;
    translate: none; opacity: 0.5;
  }
  html.motion .hero-mark { opacity: 0; }

  /* Work: plain vertical stack, no pin */
  .work-pin { height: auto; display: block; padding-top: 0; overflow: visible; }
  .section-head { margin-bottom: 40px; }
  .work { padding-top: clamp(80px, 12vh, 120px); }
  .work-track {
    display: grid; grid-template-columns: 1fr;
    gap: 56px; width: auto; padding-inline: var(--pad-x);
  }
  .work-panel { width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .work-progress { display: none; }
  .work-media { height: auto; width: 100%; aspect-ratio: 3 / 4; }
  .work-media img { transform: none; }
  .work-meta { width: auto; padding-top: 16px; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .service-body-inner { flex-direction: column-reverse; gap: 16px; }

  .stack-item { min-height: 0; padding-block: 12px; }
  .p-card { box-shadow: none; }

  .studio-media { aspect-ratio: 4 / 3; }

  .estimate-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-media { display: none; }

  .start-grid { grid-template-columns: 1fr; }
  .start-visual { display: none; }
  .input-grid { grid-template-columns: 1fr; }

  .footer-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

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