/* =========================================================
   Webshaf — v2 styles
   Display: Sora · Body: Manrope · Script accent: Sacramento
   Dark-first, film grain, glass surfaces, cobalt + ember
   ========================================================= */

:root {
  --bg: #07070f;
  --bg-2: #0d0d1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --ink: #14142b;
  --paper: #f4f3ee;
  --paper-2: #e9e7df;
  --cobalt: #2f5bff;
  --cobalt-deep: #203ead;
  --cobalt-light: #a8baff;
  --ember: #ff6a3d;
  --ember-light: #ff8560;
  --text: #ecebf3;
  --muted: #9ea4b8;
  --muted-2: #6b7086;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Sacramento', 'Brush Script MT', cursive;
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--ember); color: #fff; }

.container { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 400; padding: 12px 18px; border-radius: 999px; background: var(--ember); color: #fff; font-weight: 700; }
.skip-link:focus { top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- film grain ---------- */
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 300; pointer-events: none; opacity: 0.055; 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.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.4s steps(4) infinite; will-change: transform; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(-1%, -2%); } }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 500; background: var(--ink); display: flex; align-items: center; justify-content: center; color: var(--paper); }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader__mark { width: clamp(140px, 22vw, 240px); }
.preloader__mark path, .preloader__mark polygon { fill: none; stroke: var(--cobalt-light); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.preloader__mark .tip { stroke: var(--ember-light); }
.preloader__count { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 8vw, 96px); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.preloader__count small { font-size: 0.4em; color: var(--muted); margin-left: 4px; }
.preloader__tag { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.preloader__bar { width: clamp(140px, 22vw, 240px); height: 2px; background: var(--line-strong); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cobalt), var(--ember)); }
body.is-ready .preloader { display: none; }

/* ---------- page wipe (transitions) ---------- */
.wipe { position: fixed; inset: 0; z-index: 450; pointer-events: none; transform: translateY(100%); }
.wipe__a, .wipe__b { position: absolute; inset: 0; }
.wipe__a { background: var(--cobalt); }
.wipe__b { background: var(--ink); transform: translateY(100%); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 420; pointer-events: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ember); opacity: 0; transition: opacity 0.3s, transform 0.25s var(--ease); }
.cursor-ring { position: fixed; left: 0; top: 0; z-index: 419; pointer-events: none; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55); opacity: 0; transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s, border-color 0.3s; display: grid; place-items: center; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.cursor-ring span { opacity: 0; transition: opacity 0.2s; }
body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; }
body.cur-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(2px); }
body.cur-link .cursor { transform: scale(0.5); }
body.cur-view .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--paper); border-color: var(--paper); }
body.cur-view .cursor-ring span { opacity: 1; }
body.cur-view .cursor { opacity: 0; }
body.cur-text .cursor-ring { width: 4px; height: 44px; margin: -22px 0 0 -2px; border-radius: 2px; background: var(--paper); border-color: transparent; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h); display: flex; align-items: center; transition: transform 0.5s var(--ease), background 0.35s, border-color 0.35s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(7, 7, 15, 0.6); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; color: var(--paper); }
.brand img { width: 52px; height: 24px; }
.brand__text { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-left: -6px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav__link { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.25s, background 0.25s; }
.nav__link:hover { color: var(--paper); background: var(--surface-2); }
.nav__link.is-active { color: var(--paper); }
.nav__link.is-active::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); transform: translateX(-50%); }
.nav .btn { margin-left: 14px; }
.header__meta { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.header__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.burger { display: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; background: var(--surface); }
.burger span { position: absolute; left: 16px; width: 20px; height: 2px; background: var(--paper); transition: transform 0.4s var(--ease), top 0.4s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 20px; } .burger span:nth-child(2) { top: 25px; } .burger span:nth-child(3) { top: 30px; }
body.menu-open .burger span:nth-child(1) { top: 25px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 25px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 190; background: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 110px 28px 40px; clip-path: circle(0% at calc(100% - 46px) 46px); transition: clip-path 0.7s var(--ease-io); }
body.menu-open .mobile-nav { clip-path: circle(150% at calc(100% - 46px) 46px); }
body.menu-open { overflow: hidden; }
.mobile-nav a { font-family: var(--display); font-size: clamp(38px, 10vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.12; color: var(--paper); display: flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.mobile-nav a small { font-family: var(--body); font-size: 12px; letter-spacing: 0.2em; color: var(--muted-2); }
body.menu-open .mobile-nav a { opacity: 1; transform: none; }
.mobile-nav a:nth-child(2) { transition-delay: 0.08s; } .mobile-nav a:nth-child(3) { transition-delay: 0.16s; } .mobile-nav a:nth-child(4) { transition-delay: 0.24s; }
.mobile-nav a.is-active { color: var(--ember-light); }
.mobile-nav__foot { margin-top: auto; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.3s, border-color 0.3s; }
.btn span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.btn--primary { background: var(--ember); color: #fff; box-shadow: 0 12px 34px rgba(255, 106, 61, 0.28); }
.btn--primary::after { content: ''; position: absolute; inset: 0; background: var(--paper); border-radius: 999px; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease-io); }
.btn--primary:hover { color: var(--ink); box-shadow: 0 16px 44px rgba(255, 106, 61, 0.38); }
.btn--primary:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--paper); background: var(--surface); backdrop-filter: blur(8px); }
.btn--ghost::after { content: ''; position: absolute; inset: 0; background: var(--paper); border-radius: 999px; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease-io); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
.btn--ghost:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.btn--sm { height: 46px; padding: 0 22px; font-size: 14px; }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.section--paper .btn--ghost { border-color: rgba(20, 20, 43, 0.2); color: var(--ink); background: transparent; }
.section--paper .btn--ghost::after { background: var(--ink); }
.section--paper .btn--ghost:hover { color: var(--paper); border-color: var(--ink); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ember-light); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.h1 { font-family: var(--display); font-size: clamp(46px, 7.6vw, 124px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.96; color: var(--paper); }
.h2 { font-family: var(--display); font-size: clamp(36px, 5vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--paper); }
.h3 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--paper); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; color: var(--muted); max-width: 58ch; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1; font-size: 1.32em; color: var(--ember-light); display: inline-block; padding-right: 0.08em; }
.script.is-gradient { background: linear-gradient(90deg, var(--cobalt-light), #fff 40%, var(--ember-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ink { background: linear-gradient(90deg, currentColor 50%, rgba(255, 255, 255, 0.08) 50%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ink.is-inked { background-position: 0 0; transition: background-position 1.6s cubic-bezier(0.65, 0, 0.35, 1); }
.section--paper .h1, .section--paper .h2, .section--paper .h3 { color: var(--ink); }
.section--paper .lead, .section--paper p { color: #4a4f63; }
.section--paper .eyebrow { color: var(--cobalt); }
.grad { background: linear-gradient(90deg, var(--cobalt-light), #fff 45%, var(--ember-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { color: transparent; -webkit-text-stroke: 1px rgba(244, 243, 238, 0.45); }

/* word / char splitting */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > .wi { display: inline-block; will-change: transform; }
.c { display: inline-block; will-change: transform, opacity; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 176px) 0; }
.section--tight { padding: clamp(64px, 8vw, 112px) 0; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--surface { background: var(--bg-2); }
.section__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; margin-bottom: clamp(44px, 6vw, 88px); }
.section__head .lead { justify-self: end; }
.section__head .eyebrow { margin-bottom: 22px; }
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.orb--cobalt { background: radial-gradient(circle, rgba(47, 91, 255, 0.55), transparent 65%); }
.orb--ember { background: radial-gradient(circle, rgba(255, 106, 61, 0.45), transparent 65%); }
.lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 110px 110px; mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%); opacity: 0.55; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 24px) 0 40px; overflow: hidden; }
.hero .lines { background-size: 96px 96px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); position: relative; z-index: 1; }
.hero__copy { max-width: 620px; }
.hero__hello { font-family: var(--script); font-size: clamp(56px, 7vw, 108px); line-height: 1; color: var(--paper); margin-bottom: 4px; }
.hero__title { margin: 6px 0 26px; }
.hero__sub { max-width: 50ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 46px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.hero__foot li { display: flex; align-items: center; gap: 10px; }
.hero__foot li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cobalt); }
.hero__visual { position: relative; aspect-ratio: 1; max-height: 78vh; width: 100%; justify-self: center; }
.aura { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(47, 91, 255, 0.6), rgba(47, 91, 255, 0.18) 38%, rgba(7, 7, 15, 0) 68%); filter: blur(26px); animation: breathe 6s ease-in-out infinite; }
.aura--ember { inset: 26%; background: radial-gradient(circle at 60% 40%, rgba(255, 106, 61, 0.5), rgba(255, 106, 61, 0) 60%); animation-delay: -3s; animation-duration: 7s; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
.orbit { position: absolute; inset: 3%; border-radius: 50%; border: 1px dashed rgba(168, 186, 255, 0.28); animation: spin 44s linear infinite; }
.orbit--2 { inset: 13%; border: 1px solid rgba(168, 186, 255, 0.12); animation-duration: 66s; animation-direction: reverse; }
.orbit--3 { inset: -6%; border: 1px solid rgba(255, 255, 255, 0.05); animation-duration: 90s; }
.orbit::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 18px var(--ember); }
.orbit--2::before { background: var(--cobalt-light); box-shadow: 0 0 14px var(--cobalt-light); width: 7px; height: 7px; top: -3px; }
.orbit--3::before { background: rgba(255, 255, 255, 0.5); width: 5px; height: 5px; top: -2px; box-shadow: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#hero-canvas { position: absolute; inset: -8%; width: 116%; height: 116%; mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%); }
.hero__fallback { position: absolute; inset: 18%; display: none; align-items: center; justify-content: center; }
.hero__visual.no-webgl #hero-canvas { display: none; }
.hero__visual.no-webgl .hero__fallback { display: flex; }
.hero__fallback img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(47, 91, 255, 0.35)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.hero__badge { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 999px; background: rgba(13, 13, 28, 0.7); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hero__badge b { color: var(--paper); font-weight: 700; }
.hero__badge i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: #fff; font-style: normal; }
.hero__badge i svg { width: 16px; height: 16px; }
.hero__badge--1 { left: 2%; top: 14%; }
.hero__badge--2 { right: 0; bottom: 14%; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-2); z-index: 1; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--muted-2), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__bar { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.hero__bar .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 0; font-size: 13px; color: var(--muted); }
.hero__bar b { color: var(--paper); font-weight: 600; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: clamp(22px, 3vw, 36px) 0; border-block: 1px solid var(--line); }
.marquee--big { padding: clamp(12px, 2vw, 24px) 0; border: 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 48px; font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee__item::after { content: ''; width: 8px; height: 8px; background: var(--ember); transform: rotate(45deg); }
.marquee--big .marquee__item { font-size: clamp(64px, 11vw, 168px); letter-spacing: -0.045em; text-transform: none; color: transparent; -webkit-text-stroke: 1px rgba(244, 243, 238, 0.35); transition: color 0.4s; }
.marquee--big .marquee__item::after { width: 0.22em; height: 0.22em; background: var(--ember); }
.marquee--big:hover .marquee__item { color: var(--paper); }
.section--paper .marquee--big .marquee__item { -webkit-text-stroke-color: rgba(20, 20, 43, 0.35); }
.section--paper .marquee--big:hover .marquee__item { color: var(--ink); }

/* ---------- manifesto ---------- */
.manifesto { max-width: 1040px; margin-inline: auto; font-family: var(--display); font-size: clamp(28px, 4.2vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.16; color: var(--paper); }
.manifesto .mw { display: inline-block; opacity: 0.16; transition: none; }
.manifesto .mw.hi { color: var(--ember-light); }
.manifesto .mw.hi2 { color: var(--cobalt-light); }

/* ---------- stacked service cards ---------- */
.stack { position: relative; }
.stack__card { position: sticky; will-change: transform; top: calc(var(--nav-h) + 16px); margin-bottom: 24px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; overflow: hidden; transform-origin: 50% 0; }
.stack__card:nth-child(2) { top: calc(var(--nav-h) + 36px); }
.stack__card:nth-child(3) { top: calc(var(--nav-h) + 56px); }
.stack__card:nth-child(4) { top: calc(var(--nav-h) + 76px); }
.stack__card:nth-child(5) { top: calc(var(--nav-h) + 96px); }
.stack__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px circle at var(--mx, 70%) var(--my, 30%), rgba(47, 91, 255, 0.18), transparent 45%); pointer-events: none; }
.stack__card .stack__dim { position: absolute; inset: 0; background: #07070f; opacity: 0; pointer-events: none; border-radius: inherit; }
.stack__num { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.3em; color: var(--ember-light); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.stack__num::after { content: ''; flex: 1; max-width: 80px; height: 1px; background: var(--line-strong); }
.stack__card .h2 { font-size: clamp(30px, 3.6vw, 52px); margin-bottom: 18px; }
.stack__card p { color: var(--muted); max-width: 48ch; }
.stack__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.stack__chips li { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--cobalt-light); }
.stack__art { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #141a48, #0a0a1c 70%); }
.stack__art .glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(40px); opacity: 0.8; }
.stack__art .g1 { left: -10%; top: -10%; background: rgba(47, 91, 255, 0.55); }
.stack__art .g2 { right: -15%; bottom: -20%; background: rgba(255, 106, 61, 0.45); }
.stack__art .pane { position: absolute; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
.stack__art .pane--bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.18); border: 0; }
.stack__art .pane--dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); border: 0; box-shadow: 0 0 20px var(--ember); }
.stack__art .pane--phone { border-radius: 34px; border-width: 2px; }
.stack__art .pane--server { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.stack__art .pane--server i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.stack__art .pane--server i:first-child { background: var(--cobalt-light); }
.stack__art .pane--mail { display: grid; place-items: center; }
.stack__art .pane--mail svg { width: 44%; stroke: var(--cobalt-light); }
.stack__art .pane--chart { display: flex; align-items: flex-end; gap: 6%; padding: 10%; }
.stack__art .pane--chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cobalt-light), var(--cobalt)); }
.stack__art .pane--chart i:last-child { background: linear-gradient(180deg, var(--ember-light), var(--ember)); }

/* ---------- horizontal process ---------- */
.hscroll { position: relative; overflow: hidden; }
.hscroll__head { padding-bottom: clamp(32px, 4vw, 56px); }
.hscroll__track { display: flex; gap: 24px; width: max-content; padding: 0 var(--gutter) 0 max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.hpanel { width: min(560px, 78vw); flex: none; padding: clamp(28px, 3vw, 44px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); position: relative; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.hpanel__num { font-family: var(--display); font-size: clamp(64px, 8vw, 120px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: transparent; -webkit-text-stroke: 1px rgba(168, 186, 255, 0.5); }
.hpanel .h3 { margin: 22px 0 10px; }
.hpanel p { color: var(--muted); max-width: 40ch; }
.hpanel__tag { position: absolute; right: 26px; top: 26px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); }
.hpanel--cta { background: linear-gradient(135deg, #1a2f8f, #0f1a52 70%); border-color: rgba(168, 186, 255, 0.25); }
.hpanel--cta .hpanel__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.4); }
.hscroll__progress { height: 2px; background: var(--line); margin: 40px var(--gutter) 0; }
.hscroll__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cobalt), var(--ember)); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 18px; }
.bento__cell { position: relative; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: border-color 0.4s, transform 0.5s var(--ease); }
.bento__cell::before { content: ''; position: absolute; inset: 0; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 91, 255, 0.2), transparent 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.bento__cell:hover { border-color: rgba(168, 186, 255, 0.35); transform: translateY(-3px); }
.bento__cell:hover::before { opacity: 1; }
.bento__k { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.04em; color: var(--paper); line-height: 1.05; margin-bottom: 8px; }
.bento__k em { font-style: normal; color: var(--ember-light); }
.bento__cell p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.bento__icon { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--cobalt-light); }
.bento__icon svg { width: 20px; height: 20px; }
.bento__cell--2 { grid-column: span 2; }
.bento__cell--3 { grid-column: span 3; }
.bento__cell--4 { grid-column: span 4; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--accent { background: linear-gradient(135deg, var(--ember), #d64a22); border-color: transparent; }
.bento__cell--accent .bento__k, .bento__cell--accent p { color: #fff; }
.bento__cell--accent p { opacity: 0.85; }
.bento__cell--accent .bento__icon { background: rgba(255, 255, 255, 0.18); border-color: transparent; color: #fff; }
.bento__cell--cobalt { background: linear-gradient(135deg, #2f5bff, #1b3fcc); border-color: transparent; }
.bento__cell--cobalt .bento__k, .bento__cell--cobalt p { color: #fff; }
.bento__clock { font-family: var(--display); font-size: clamp(40px, 4vw, 56px); font-weight: 800; letter-spacing: -0.05em; color: var(--paper); font-variant-numeric: tabular-nums; line-height: 1; }
.bento__clock small { font-size: 0.32em; color: var(--muted); letter-spacing: 0.2em; margin-left: 8px; }
.bento__mark { position: absolute; right: -12%; top: -6%; width: 60%; height: auto; opacity: 0.18; pointer-events: none; }
.bento__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--display); font-weight: 700; color: #fff; }
.bento__link svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.bento__cell:hover .bento__link svg { transform: translate(3px, -3px); }

/* ---------- work tiles ---------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tile { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); display: block; }
.tile__art { position: absolute; inset: -8%; transition: transform 1s var(--ease); }
.tile:hover .tile__art { transform: scale(1.06); }
.tile__art--a { background: radial-gradient(circle at 30% 30%, rgba(47, 91, 255, 0.6), transparent 55%), linear-gradient(160deg, #1b2a6b, #07070f); }
.tile__art--b { background: radial-gradient(circle at 70% 30%, rgba(255, 106, 61, 0.55), transparent 55%), linear-gradient(200deg, #3a2a3a, #07070f); }
.tile__art--c { background: radial-gradient(circle at 50% 80%, rgba(168, 186, 255, 0.45), transparent 55%), linear-gradient(160deg, #163a4a, #07070f); }
.tile__art .shape { position: absolute; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); }
.tile__meta { position: absolute; left: 26px; right: 26px; bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 12px; transform: translateY(6px); transition: transform 0.5s var(--ease); }
.tile:hover .tile__meta { transform: none; }
.tile__meta .h3 { font-size: 22px; }
.tile__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.tile__idx { position: absolute; left: 26px; top: 24px; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.3em; color: var(--muted); }

/* ---------- values / cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; padding: 32px 28px; border-radius: 22px; background: #fff; border: 1px solid #e3e1da; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(20, 20, 43, 0.12); }
.card__k { font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--cobalt); margin-bottom: 18px; }
.card .h3 { font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 15px; color: #4a4f63; }
.section--paper .card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--cobalt), var(--ember)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.section--paper .card:hover::after { transform: scaleX(1); }

/* ---------- stack marquee rows ---------- */
.rows { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.rows .marquee { padding: 0; border: 0; }
.rows .marquee__item { font-family: var(--body); font-weight: 600; letter-spacing: 0.02em; text-transform: none; font-size: 15px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); gap: 0; }
.rows .marquee__item::after { display: none; }
.rows .marquee__track { gap: 14px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(56px, 8vw, 110px) clamp(28px, 6vw, 88px); background: #0d0d1c; border: 1px solid transparent; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 32px; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: -2px; border-radius: 34px; padding: 1px; background: conic-gradient(from var(--ang, 0deg), var(--cobalt), var(--ember), var(--cobalt-light), var(--cobalt)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: rotate 6s linear infinite; z-index: -1; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rotate { to { --ang: 360deg; } }
.cta::after { content: ''; position: absolute; right: -10%; top: -50%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 106, 61, 0.35), transparent 60%); filter: blur(30px); z-index: -1; }
.cta .h2 { font-size: clamp(34px, 4.6vw, 64px); }
.cta p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0 28px; background: #050509; overflow: hidden; }
.footer__big { font-family: var(--display); font-size: clamp(72px, 15.5vw, 236px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; color: transparent; -webkit-text-stroke: 1px rgba(244, 243, 238, 0.28); transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s; margin-bottom: clamp(40px, 6vw, 80px); user-select: none; }
.footer__big:hover { color: var(--paper); -webkit-text-stroke-color: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer__h { font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer li a, .footer li span { color: var(--muted); font-size: 15px; transition: color 0.25s; }
.footer li a:hover { color: var(--paper); }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.totop { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.totop i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease); }
.totop i svg { width: 16px; height: 16px; }
.totop:hover i { background: var(--paper); color: var(--ink); transform: translateY(-3px); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 72px; overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero .h1 { margin: 22px 0 24px; max-width: 13ch; }
.page-hero__mark { position: absolute; right: -6%; top: 6%; width: 48%; opacity: 0.28; pointer-events: none; }
.page-hero__mark img { width: 100%; height: auto; animation: floaty 8s ease-in-out infinite; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; font-size: 13px; color: var(--muted); }
.page-hero__meta b { color: var(--paper); font-weight: 600; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split__art { position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(47, 91, 255, 0.4), transparent 60%), var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; }
.split__art img { width: 68%; height: auto; filter: drop-shadow(0 30px 60px rgba(47, 91, 255, 0.45)); }
.split__art .orbit { inset: 8%; }
.split p + p { margin-top: 18px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.figure { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.figure__k { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.05em; color: var(--paper); line-height: 1; }
.figure__k small { font-size: 14px; color: var(--ember-light); margin-left: 4px; letter-spacing: 0; }
.figure p { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- services page ---------- */
.services-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; }
.sidenav { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidenav > a { display: flex; align-items: center; gap: 14px; padding: 13px 0 13px 18px; font-size: 14px; font-weight: 600; color: var(--muted-2); border-left: 1px solid var(--line); transition: color 0.3s, border-color 0.3s, padding-left 0.35s var(--ease); }
.sidenav > a.is-active { color: var(--paper); border-color: var(--ember); padding-left: 26px; }
.sidenav > a span { font-family: var(--display); font-size: 11px; letter-spacing: 0.2em; color: var(--muted-2); }
.sidenav__cta { margin-top: 28px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sidenav__cta .btn { margin-top: 14px; width: 100%; }
.service { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.service:first-child { border-top: 0; padding-top: 0; }
.service__head { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 30px; }
.service__num { font-family: var(--display); font-size: 72px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; color: transparent; -webkit-text-stroke: 1px rgba(168, 186, 255, 0.55); }
.service .h2 { font-size: clamp(30px, 3.6vw, 48px); margin-top: 10px; }
.service__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; }
.service__body .lead { font-size: 17px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--text); font-size: 15.5px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(47, 91, 255, 0.18); border: 1px solid rgba(168, 186, 255, 0.5); }
.checks li::after { content: ''; position: absolute; left: 6px; top: 10.5px; width: 6px; height: 4px; border-left: 2px solid var(--cobalt-light); border-bottom: 2px solid var(--cobalt-light); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; background: rgba(255, 106, 61, 0.12); color: var(--ember-light); }
.service__cta { margin-top: 30px; }
.service__panel { position: relative; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.service__panel .eyebrow { margin-bottom: 18px; }

.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--paper); }
.faq__q .plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s; }
.faq__q .plus::before, .faq__q .plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--paper); transform: translate(-50%, -50%); }
.faq__q .plus::before { width: 12px; height: 2px; }
.faq__q .plus::after { width: 2px; height: 12px; }
.faq__item.is-open .plus { transform: rotate(45deg); background: var(--ember); border-color: var(--ember); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 54px 26px 0; color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--nav-h) + 24px); }
.info { position: relative; padding: 24px 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.info::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 91, 255, 0.16), transparent 45%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.info:hover { border-color: rgba(168, 186, 255, 0.35); }
.info:hover::before { opacity: 1; }
.info__k { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.info__v { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--paper); letter-spacing: -0.02em; }
.info__v a { position: relative; }
.info__v a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s var(--ease); }
.info__v a:hover::after { transform: scaleX(1); }
.info p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.info__map { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--cobalt-light); }
.info__map svg { width: 14px; height: 14px; }

.form { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 30px; background: var(--bg-2); border: 1px solid var(--line-strong); overflow: hidden; }
.form::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px circle at 100% 0%, rgba(47, 91, 255, 0.18), transparent 50%), radial-gradient(500px circle at 0% 100%, rgba(255, 106, 61, 0.14), transparent 50%); pointer-events: none; }
.form > * { position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea, .field select { width: 100%; padding: 24px 18px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(7, 7, 15, 0.7); color: var(--paper); font: inherit; font-size: 16px; outline: none; transition: border-color 0.3s, box-shadow 0.3s; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 160px; resize: vertical; }
.field label { position: absolute; left: 18px; top: 18px; font-size: 15px; color: var(--muted-2); pointer-events: none; transition: transform 0.25s var(--ease), font-size 0.25s, color 0.25s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cobalt-light); box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field select + label { transform: translateY(-11px); font-size: 11.5px; color: var(--cobalt-light); letter-spacing: 0.06em; }
.field select option { color: #14142b; }
.field .chev { position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field.is-error input, .field.is-error textarea { border-color: var(--ember); }
.field__err { display: none; font-size: 12.5px; color: var(--ember-light); margin: 6px 0 0 4px; }
.field.is-error .field__err { display: block; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--muted-2); }
.form__status { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; display: none; }
.form__status.is-ok { display: block; background: rgba(47, 91, 255, 0.15); color: var(--cobalt-light); border: 1px solid rgba(168, 186, 255, 0.3); }
.form__status.is-err { display: block; background: rgba(255, 106, 61, 0.12); color: var(--ember-light); border: 1px solid rgba(255, 106, 61, 0.35); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.btn.is-busy { opacity: 0.7; pointer-events: none; }
.form__done { display: none; text-align: center; padding: 40px 0 20px; }
.form.is-done form { display: none; }
.form.is-done .form__done { display: block; }
.form__done .check { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--cobalt); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(47, 91, 255, 0.15); }
.form__done .check svg { width: 36px; height: 36px; stroke: #fff; }
.form__done .h3 { margin-bottom: 8px; }

/* ---------- reveal defaults (JS-driven; safe without JS) ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .bento__cell--4 { grid-column: span 4; }
  .bento__cell--3 { grid-column: span 2; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .services-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidenav { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .sidenav > a { border-left: 0; border-bottom: 2px solid var(--line); padding: 10px 14px; white-space: nowrap; }
  .sidenav > a.is-active { border-color: var(--ember); padding-left: 14px; }
  .sidenav > a span, .sidenav__cta { display: none; }
  .contact-info { position: static; }
}

@media (max-width: 860px) {
  :root { --nav-h: 76px; }
  body { font-size: 16px; }
  .nav, .header__meta { display: none; }
  .burger { display: block; }
  .grain { opacity: 0.045; }
  .hero { padding-top: calc(var(--nav-h) + 16px); min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 6px; }
  .hero__visual { max-height: none; width: min(82vw, 440px); aspect-ratio: 1; margin: 0 auto 6px; }
  .hero__badge { display: none; }
  .hero__copy { max-width: none; }
  .hero__foot { margin-top: 30px; }
  .scroll-cue { display: none; }
  .hero__bar .container { gap: 10px 20px; }
  .section__head { grid-template-columns: 1fr; }
  .section__head .lead { justify-self: start; }
  .stack__card { grid-template-columns: 1fr; position: relative; top: auto !important; }
  .stack__art { aspect-ratio: 16 / 10; }
  .hscroll__track { width: auto; flex-direction: column; padding: 0 var(--gutter); }
  .hpanel { width: 100%; min-height: auto; }
  .hscroll__progress { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 12px; }
  .bento__cell--4, .bento__cell--3, .bento__cell--2 { grid-column: span 2; }
  .bento__cell--tall { grid-row: span 1; }
  .work, .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__art { max-width: 420px; width: 100%; margin-inline: auto; }
  .figures { grid-template-columns: 1fr; }
  .service__head { grid-template-columns: 1fr; gap: 8px; }
  .service__body { grid-template-columns: 1fr; gap: 24px; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .cta { grid-template-columns: 1fr; }
  .page-hero__mark { width: 72%; right: -22%; top: 2%; opacity: 0.2; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .cursor, .cursor-ring { display: none; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 36px); }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__cell { min-height: 180px; }
  .bento__cell--4, .bento__cell--3, .bento__cell--2 { grid-column: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .grain { display: none; }
}
