/* ==========================================================================
   Softign — style.css
   Black & white. Inter throughout; Instrument Serif italic only for highlighted words in headings.
   Dark by default; light theme follows prefers-color-scheme.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --bg-2: #080808;
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .66);
  --fg-3: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .28);
  --card: rgba(255, 255, 255, .028);
  --card-hover: rgba(255, 255, 255, .05);
  --logo-white: block;
  --logo-black: none;

  /* status colours: the only semantic colour on the site */
  --status-live: #22c55e;
  --status-dev: #f59e0b;
  --status-rebuilding: #f97316;
  --status-soon: #3b82f6;
  --error: #f87171;

  /* type scale (the only sizes used on the page) */
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent-serif: "Instrument Serif", "Times New Roman", Georgia, serif;   /* italic highlights only */
  --accent-ink: #dadada;
  --fs-display: clamp(44px, 5.6vw, 76px);  /* hero H1 only */
  --fs-h2: clamp(34px, 4vw, 56px);         /* section titles, menu, work titles */
  --fs-h3: 21px;                           /* card / item titles */
  --fs-value: 28px;                        /* contact email */
  --fs-body: 17px;
  --fs-body-sm: 15px;                      /* body inside narrow columns */
  --fs-small: 14px;                        /* nav, buttons, footer, lists */
  --fs-caption: 13px;                      /* badges, meta, copyright */
  --fs-label: 12px;                        /* eyebrows, tags, numbers */

  /* 8px spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px;
  --s8: 64px; --s10: 80px; --s12: 96px; --s15: 120px; --s20: 160px;
  --section-pad: 140px;
  --nav-h: 72px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --bg-2: #f7f7f5;
    --fg: #000;
    --fg-2: rgba(0, 0, 0, .62);
    --fg-3: rgba(0, 0, 0, .56);
    --line: rgba(0, 0, 0, .1);
    --line-strong: rgba(0, 0, 0, .32);
    --card: rgba(0, 0, 0, .02);
    --card-hover: rgba(0, 0, 0, .035);
    --logo-white: none;
    --logo-black: block;
    --accent-ink: #555;
    color-scheme: light;
  }
}

@media (min-width: 768px)  { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }
@media (max-width: 899px)  { :root { --nav-h: 64px; --section-pad: 88px; } }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
p { color: var(--fg-2); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--fg); color: var(--bg); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type roles ---------- */
h1, h2, .display { font-family: var(--sans); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-family: var(--sans); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -.01em; }
/* Highlighted phrase inside a heading: <em class="accent">…</em>. Change the words in the HTML, nothing else. */
.accent {
  font-family: var(--accent-serif); font-style: italic; font-weight: 400;
  font-size: 1.05em; line-height: 1; letter-spacing: -.01em;
  color: var(--accent-ink);
}
.label {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1001;
  padding: 10px 14px; background: #fff; color: #000; border-radius: 999px; font-size: var(--fs-caption);
  transform: translateY(-200%); transition: transform .3s;
}
.skip-link:focus-visible { transform: none; }

/* ---------- Logo ---------- */
.logo { height: 20px; width: auto; }
.logo--white { display: var(--logo-white); }
.logo--black { display: var(--logo-black); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 var(--s3);
  border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: var(--fs-small); font-weight: 500; white-space: nowrap;
  transition: background .4s var(--ease-out), color .4s, border-color .4s, opacity .3s;
  will-change: transform;
}
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary:hover { background: color-mix(in srgb, var(--fg) 84%, var(--bg)); border-color: transparent; }
.btn--ghost:hover { border-color: var(--fg); background: var(--card-hover); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn__arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Status dots (hero badge and status badges) ---------- */
@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status) 55%, transparent); }
  100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--status) 0%, transparent); }
}
.live-dot, .badge i {
  width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 10px color-mix(in srgb, var(--status) 60%, transparent);
  animation: status-pulse 2.4s ease-out infinite;
}
.live-dot { --status: var(--status-live); }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #000; }
.preloader__logo { width: clamp(160px, 28vw, 300px); height: auto; opacity: 0; }
html.intro-done .preloader,
html.reduced-motion .preloader,
html:not(.js) .preloader { display: none; }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-tilt] { cursor: none; }
html.has-cursor .cursor {
  display: block; position: fixed; top: 0; left: 0; z-index: 1002;
  pointer-events: none; mix-blend-mode: difference;
  transition: opacity .3s;
}
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__ring {
  width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .6);
  transition: width .4s var(--ease-out), height .4s var(--ease-out), border-color .3s, opacity .3s;
}
.cursor.is-hover .cursor__ring { width: 44px; height: 44px; border-color: rgba(255, 255, 255, .35); }
.cursor.is-text .cursor__ring { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease-out), background .4s, border-color .4s;
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.nav.is-solid {
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-top, html.menu-open .nav {
  --fg: #fff; --bg: #000;
  --fg-2: rgba(255, 255, 255, .7);
  --line-strong: rgba(255, 255, 255, .3);
  --card-hover: rgba(255, 255, 255, .08);
  --logo-white: block; --logo-black: none;
}
html.menu-open .nav.is-solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
html.menu-open .nav.is-hidden { transform: none; }

.nav__logo { display: block; padding: var(--s1) 0; }
.nav__links { display: flex; gap: var(--s4); }
.nav__links a { position: relative; padding: 4px 0; font-size: var(--fs-small); color: var(--fg-2); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { height: 40px; padding: 0 18px; }

.burger { display: none; width: 44px; height: 44px; margin-right: -10px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--fg); transition: transform .45s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  --fg: #fff; --bg: #000; --fg-2: rgba(255, 255, 255, .66); --line: rgba(255, 255, 255, .12);
  background: #000; color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + var(--s3)) var(--gutter) var(--s5);
  visibility: hidden; opacity: 0;
  clip-path: inset(0 0 100% 0);
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: clamp(30px, 8vw, 44px); line-height: 1.15; letter-spacing: -.03em; }
.menu__foot { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3); font-size: var(--fs-small); color: var(--fg-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + var(--s8)) 0 var(--s15);
  background: #000; color: #fff;
  --fg: #fff; --bg: #000;
  --fg-2: rgba(255, 255, 255, .68); --fg-3: rgba(255, 255, 255, .56);
  --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .3);
  --card: rgba(255, 255, 255, .03); --card-hover: rgba(255, 255, 255, .08);
}
.hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 40%, transparent 55%),
    linear-gradient(180deg, transparent 88%, #000 100%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.hero__content { max-width: 580px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s4); }
.hero__title { max-width: 13ch; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .08em .16em; margin: -.1em -.08em -.16em; }
.w__i { display: inline-block; transform: translateY(112%); will-change: transform; }
.nobr { white-space: nowrap; }
.js .hero__title { opacity: 0; }
.js .hero__title.is-split { opacity: 1; }
.hero__lead { max-width: 520px; margin: var(--s4) 0 var(--s5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s8); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--fg-2); }
.platforms li { display: inline-flex; align-items: center; gap: 8px; }
.platforms__icon { width: 16px; height: 16px; fill: currentColor; color: var(--fg); }
.js [data-hero] { opacity: 0; }

/* 2D device stage (mobile + WebGL fallback); the canvas handles desktop */
.hero__stage { position: relative; min-height: 420px; }
.stage2d { display: none; position: relative; width: 100%; aspect-ratio: 4 / 3; max-width: 560px; margin: 0 auto; }
.stage2d__window { left: 0; top: 0; width: 64%; }
.stage2d__laptop { left: 16%; top: 20%; width: 72%; }
.stage2d__phone  { right: 2%; top: 36%; width: 22%; }
.hero--2d .hero__canvas, .hero--fallback .hero__canvas { display: none; }
.hero--2d .stage2d, .hero--fallback .stage2d { display: block; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.stage2d .device { animation: floaty 6s ease-in-out infinite; }
.stage2d__laptop { animation-duration: 7s; animation-delay: -2s; }
.stage2d__phone  { animation-duration: 5s; animation-delay: -1s; }

.hero__scroll {
  position: absolute; left: 50%; bottom: var(--s4); z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
}
.hero__scroll i { width: 1px; height: 40px; background: linear-gradient(#fff, rgba(255, 255, 255, .1)); animation: scrollline 2.4s var(--ease-out) infinite; }
@keyframes scrollline {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Tech strip (under the hero) ---------- */
.strip { padding-top: var(--s5); }
.strip__label { text-align: center; padding: 0 var(--gutter); margin-bottom: var(--s3); }
.marquee__track { display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; }
.logos {
  position: relative; width: 100%;
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.logos::before, .logos::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(80px, 8vw, 120px); z-index: 1; pointer-events: none; }
.logos::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logos::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.logos__row { display: flex; overflow: hidden; }
.logos__row .marquee__track { gap: var(--s8); padding-right: var(--s8); font-size: 0; }
.logos__icon { width: 32px; height: 32px; flex-shrink: 0; fill: var(--fg); opacity: .4; transition: opacity .3s; }
.logos__icon:hover { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section__head { max-width: 640px; margin-bottom: var(--s10); }
.section__head .label { margin-bottom: var(--s3); }
.section__lead { max-width: 520px; margin-top: var(--s3); }
.section__head--row { max-width: none; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s6); align-items: end; }
.section__head--row .section__lead { margin-top: 0; justify-self: end; max-width: 400px; }
.section__note { margin-top: var(--s4); font-size: var(--fs-small); }
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; }

/* ---------- Product mark (logo placeholder) ---------- */
.mark {
  display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 7px; background: #fff; color: #000;
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0;
}
.mark.has-logo { width: auto; background: none; border-radius: 0; }
.mark > img { display: block; height: 28px; width: auto; max-width: 140px; border-radius: 7px; object-fit: contain; }
.mark--sm { width: 24px; height: 24px; border-radius: 6px; font-size: var(--fs-label); }
.mark--sm > img { height: 24px; max-width: 120px; border-radius: 6px; }

/* ---------- Status badge ---------- */
[data-status] { --status: var(--status-dev); }
[data-status="live"]       { --status: var(--status-live); }
[data-status="dev"]        { --status: var(--status-dev); }
[data-status="rebuilding"] { --status: var(--status-rebuilding); }
[data-status="soon"]       { --status: var(--status-soon); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--status) 32%, transparent);
  font-size: var(--fs-label); font-weight: 500; line-height: 1.4;
  color: color-mix(in srgb, var(--status) 70%, var(--fg));
  transition: border-color .4s;
}

/* ---------- Cards (shared by services and compact work cards) ---------- */
.card, .service {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--card);
  overflow: hidden; transform-style: preserve-3d;
  transition: border-color .5s var(--ease-out), background .5s;
}
.card:hover, .service:hover { border-color: var(--line-strong); background: var(--card-hover); }
.card__glare {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--status, var(--fg)) 10%, transparent), transparent 48%);
  transition: opacity .5s;
}
.card:hover .card__glare, .service:hover .card__glare { opacity: 1; }
.card__body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.card__brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.card__text { flex: 1; font-size: var(--fs-body-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-label); color: var(--fg-3); }
.card__link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding-bottom: 2px; font-size: var(--fs-small); color: var(--fg);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .5s var(--ease-out);
}
.card__link:hover, .work__row:hover .card__link { background-size: 100% 1px; }
.card__link span { transition: transform .45s var(--ease-out); }
.card__link:hover span { transform: translate(3px, -3px); }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s2); perspective: 1400px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; } .span-12 { grid-column: span 12; }
.service__visual {
  position: relative; height: 184px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-hover), transparent);
  --mv-ink: color-mix(in srgb, var(--fg) 26%, transparent);
  --mv-soft: color-mix(in srgb, var(--fg) 8%, transparent);
  --mv-strong: color-mix(in srgb, var(--fg) 60%, transparent);
}
.service__body { display: flex; flex-direction: column; gap: 12px; padding: var(--s3); }
.service__body p { font-size: var(--fs-body-sm); }
.service__list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; font-size: var(--fs-small); color: var(--fg-2); }
.service__list li { display: flex; align-items: center; gap: 10px; }
.service__list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); flex-shrink: 0; }
.service--wide { flex-direction: row; align-items: stretch; }
.service--wide .service__body { flex: 1; justify-content: center; }
.service--wide .service__body p { max-width: 52ch; }
.service--wide .service__visual { width: 40%; height: auto; min-height: 220px; border-bottom: 0; border-left: 1px solid var(--line); }

/* Micro-visuals: looping CSS illustrations, running while the card is on screen (.is-live) */
.mv i { display: block; position: absolute; }
.mv--site .mv__nav  { left: 8%; right: 8%; top: 14%; height: 8px; border-radius: 4px; background: var(--mv-ink); }
.mv--site .mv__hero { left: 8%; right: 8%; top: 30%; height: 28%; border-radius: 6px; background: var(--mv-soft); }
.mv--site .mv__col  { top: 66%; width: 26%; height: 20%; border-radius: 6px; background: var(--mv-soft); }
.mv--site .mv__col:nth-of-type(3) { left: 8%; } .mv--site .mv__col:nth-of-type(4) { left: 37%; } .mv--site .mv__col:nth-of-type(5) { left: 66%; }
@keyframes mv-assemble { 0%, 100% { opacity: 0; transform: translateY(14px); } 12%, 82% { opacity: 1; transform: none; } }
.mv--site.is-live i { animation: mv-assemble 5.5s var(--ease-out) infinite; }
.mv--site.is-live .mv__hero { animation-delay: .25s; }
.mv--site.is-live .mv__col:nth-of-type(3) { animation-delay: .5s; }
.mv--site.is-live .mv__col:nth-of-type(4) { animation-delay: .65s; }
.mv--site.is-live .mv__col:nth-of-type(5) { animation-delay: .8s; }

.mv--dash svg { position: absolute; left: 8%; right: 8%; top: 14%; width: 84%; height: 46%; overflow: visible; }
.mv__chart { fill: none; stroke: var(--mv-strong); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; }
.mv--dash .mv__bar { bottom: 12%; width: 14%; height: var(--h); border-radius: 4px 4px 0 0; background: var(--mv-soft); transform-origin: bottom; transform: scaleY(0); }
.mv--dash .mv__bar:nth-of-type(1) { left: 10%; } .mv--dash .mv__bar:nth-of-type(2) { left: 30%; } .mv--dash .mv__bar:nth-of-type(3) { left: 50%; } .mv--dash .mv__bar:nth-of-type(4) { left: 70%; }
@keyframes mv-draw { 0% { stroke-dashoffset: 320; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 320; } }
@keyframes mv-grow { 0% { transform: scaleY(0); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.mv--dash.is-live .mv__chart { animation: mv-draw 5s ease-in-out infinite; }
.mv--dash.is-live .mv__bar { animation: mv-grow 5s var(--ease-out) infinite; }
.mv--dash.is-live .mv__bar:nth-of-type(2) { animation-delay: .1s; } .mv--dash.is-live .mv__bar:nth-of-type(3) { animation-delay: .2s; } .mv--dash.is-live .mv__bar:nth-of-type(4) { animation-delay: .3s; }

.mv__device { position: absolute; left: 50%; top: 12%; width: 72px; height: 150px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); overflow: hidden; }
.mv__screens { display: flex; height: 100%; width: 300%; }
.mv__screens i { position: static; width: 33.333%; height: 100%; padding: 14px 8px; background:
  linear-gradient(var(--mv-ink), var(--mv-ink)) 8px 16px / 40% 5px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 8px 30px / 80% 42px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 8px 80px / 80% 14px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 8px 100px / 60% 14px no-repeat; }
.mv__screens i:nth-child(2) { background:
  linear-gradient(var(--mv-ink), var(--mv-ink)) 8px 16px / 55% 5px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 8px 30px / 36% 36px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 40px 30px / 36% 36px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 8px 74px / 36% 36px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 40px 74px / 36% 36px no-repeat; }
.mv__screens i:nth-child(3) { background:
  radial-gradient(circle, var(--mv-strong) 0 46%, transparent 48%) 50% 30px / 36px 36px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 8px 84px / 80% 12px no-repeat,
  linear-gradient(var(--mv-soft), var(--mv-soft)) 8px 104px / 80% 12px no-repeat; }
@keyframes mv-swipe { 0%, 26% { transform: translateX(0); } 33%, 59% { transform: translateX(-33.333%); } 66%, 92% { transform: translateX(-66.666%); } 100% { transform: translateX(0); } }
.mv--phone.is-live .mv__screens { animation: mv-swipe 7s var(--ease-out) infinite; }

.mv__window { position: absolute; left: 10%; right: 10%; top: 18%; height: 64%; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); }
.mv__dots { left: 10px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--mv-ink); box-shadow: 10px 0 0 var(--mv-ink), 20px 0 0 var(--mv-ink); }
.mv__window .mv__line { left: 10%; height: 5px; border-radius: 3px; background: var(--mv-ink); }
.mv__window .mv__line.w60 { top: 36%; width: 60%; } .mv__window .mv__line.w40 { top: 50%; width: 40%; background: var(--mv-soft); }
.mv__progress { left: 10%; right: 10%; top: 70%; height: 6px; border-radius: 3px; background: var(--mv-soft); overflow: hidden; }
.mv__progress i { left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--mv-strong); }
@keyframes mv-fill { 0% { width: 0; } 70%, 88% { width: 100%; } 100% { width: 0; } }
.mv--desk.is-live .mv__progress i { animation: mv-fill 4.5s ease-in-out infinite; }

.mv__product { top: 24%; width: 24%; height: 50%; border-radius: 8px; background: var(--mv-soft); border: 1px solid var(--line); }
.mv__product:nth-of-type(1) { left: 10%; } .mv__product:nth-of-type(2) { left: 38%; } .mv__product:nth-of-type(3) { left: 66%; }
.mv__product::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 10%; height: 5px; border-radius: 3px; background: var(--mv-ink); }
.mv__cart { position: absolute; right: 8%; top: 10%; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); }
.mv__cart::before { content: ""; position: absolute; left: 10px; top: 12px; width: 14px; height: 9px; border: 1.5px solid var(--mv-strong); border-top: 0; border-radius: 0 0 3px 3px; }
.mv__count { position: absolute; right: -6px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 10px; font-weight: 600; overflow: hidden; }
.mv__count span { display: block; height: 18px; line-height: 18px; text-align: center; }
@keyframes mv-count { 0%, 22% { transform: translateY(0); } 25%, 47% { transform: translateY(-18px); } 50%, 72% { transform: translateY(-36px); } 75%, 97% { transform: translateY(-54px); } 100% { transform: translateY(0); } }
@keyframes mv-bump { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
.mv__count { display: flex; flex-direction: column; }
.mv--shop.is-live .mv__count { animation: mv-count 8s var(--ease-out) infinite; }
.mv--shop.is-live .mv__product:nth-of-type(1) { animation: mv-bump .8s var(--ease-out) 2s infinite; animation-iteration-count: 1; }
.mv--shop.is-live .mv__product { animation: mv-bump 8s var(--ease-out) infinite; }
.mv--shop.is-live .mv__product:nth-of-type(2) { animation-delay: 2s; } .mv--shop.is-live .mv__product:nth-of-type(3) { animation-delay: 4s; }

.mv__wire, .mv__final { position: absolute; inset: 16% 12%; }
.mv__wire i, .mv__final i { border-radius: 6px; }
.mv__wire i { border: 1px dashed var(--mv-strong); } .mv__final i { background: var(--mv-soft); border: 1px solid var(--line); }
.mv__wire i:nth-child(1), .mv__final i:nth-child(1) { left: 0; top: 0; width: 100%; height: 14%; }
.mv__wire i:nth-child(2), .mv__final i:nth-child(2) { left: 0; top: 22%; width: 58%; height: 78%; }
.mv__wire i:nth-child(3), .mv__final i:nth-child(3) { right: 0; top: 22%; width: 36%; height: 36%; }
.mv__wire i:nth-child(4), .mv__final i:nth-child(4) { right: 0; top: 64%; width: 36%; height: 36%; }
.mv__final i:nth-child(1) { background: var(--mv-ink); }
.mv__final { opacity: 0; }
@keyframes mv-morph-out { 0%, 38% { opacity: 1; } 50%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mv-morph-in  { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.mv--ux.is-live .mv__wire  { animation: mv-morph-out 6s ease-in-out infinite; }
.mv--ux.is-live .mv__final { animation: mv-morph-in 6s ease-in-out infinite; }

/* ---------- Device mockups (CSS-drawn placeholder UIs) ---------- */
.device {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
  transition: transform .7s var(--ease-out);
  --ui-ink: color-mix(in srgb, var(--fg) 26%, transparent);
  --ui-soft: color-mix(in srgb, var(--fg) 8%, transparent);
  --ui-strong: color-mix(in srgb, var(--fg) 55%, transparent);
}
.device--laptop { aspect-ratio: 16 / 10; border-radius: 8px 8px 2px 2px; transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0); }
.device--laptop::after { content: ""; position: absolute; left: -5%; right: -5%; top: 100%; height: 7px; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 8px 8px; background: linear-gradient(var(--card-hover), var(--bg)); }
.device--laptop::before { content: ""; position: absolute; left: 50%; top: 100%; width: 14%; height: 3px; z-index: 1; transform: translateX(-50%); border-radius: 0 0 3px 3px; background: var(--line-strong); }
.device--phone  { aspect-ratio: 9 / 19; border-radius: 14px; transform: translate3d(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -14px), 0); }
.device--phone::before { content: ""; position: absolute; top: 5px; left: 50%; width: 32%; height: 4px; border-radius: 2px; background: var(--ui-soft); transform: translateX(-50%); z-index: 2; }
.device--window { aspect-ratio: 16 / 10; border-radius: 8px; transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0); }
.device__titlebar { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.device__titlebar i { width: 6px; height: 6px; border-radius: 50%; background: var(--ui-ink); }
.device__screen { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.device--window .device__screen { top: 19px; border-radius: 0 0 8px 8px; }
.device__screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device__screen.has-shot .ui { display: none; }

.ui { position: absolute; inset: 0; padding: 6%; display: flex; flex-direction: column; gap: 6%; font-size: 8px; }
.device--phone .ui { padding: 14% 8% 8%; gap: 7%; }
.ui i { display: block; }
.ui__bar { display: flex; align-items: center; gap: 6%; }
.ui__bar .ui__pill { flex: 1; }
.ui__logo { font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-strong); white-space: nowrap; }
.ui__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ui-ink); margin-left: auto; flex-shrink: 0; }
.ui__line { height: 3px; border-radius: 2px; background: var(--ui-ink); }
.ui__line + .ui__line { margin-top: 3px; }
.ui__pill { height: 7px; border-radius: 999px; background: var(--ui-soft); border: 1px solid var(--ui-ink); }
.ui__img { aspect-ratio: 4 / 3; border-radius: 3px; background: var(--ui-soft); margin-bottom: 4px; }
.ui__grid { display: grid; gap: 6%; }
.ui__grid.cols3 { grid-template-columns: repeat(3, 1fr); }
.ui__grid.cols2 { grid-template-columns: repeat(2, 1fr); }
.ui__list { display: flex; flex-direction: column; gap: 5px; }
.ui__row { display: flex; align-items: center; gap: 6px; }
.ui__row > div { flex: 1; }
.ui__thumb { width: 16%; aspect-ratio: 1; border-radius: 3px; background: var(--ui-soft); flex-shrink: 0; }
.ui__store { display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 4px; background: var(--ui-soft); }
.ui__store > div { flex: 1; }
.ui__avatar { width: 12px; height: 12px; border-radius: 50%; background: var(--ui-ink); flex-shrink: 0; }
.ui__split { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; flex: 1; min-height: 0; }
.ui__prop { padding: 4px; border-radius: 4px; border: 1px solid var(--ui-soft); }
.ui__prop .ui__pill { margin-top: 4px; }
.ui__map {
  position: relative; flex: 1; min-height: 32px; border-radius: 4px; overflow: hidden;
  background:
    linear-gradient(var(--ui-soft) 1px, transparent 1px) 0 0 / 22% 22%,
    linear-gradient(90deg, var(--ui-soft) 1px, transparent 1px) 0 0 / 22% 22%,
    color-mix(in srgb, var(--fg) 3%, transparent);
}
.ui__map--short { flex: 0 0 38%; }
.ui__pin { position: absolute; width: 7px; height: 7px; border-radius: 50% 50% 50% 0; background: var(--ui-strong); transform: rotate(-45deg); }
.ui__check { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ui-ink); flex-shrink: 0; }
.ui__check.is-on { background: var(--ui-strong); border-color: transparent; }
.ui__ringwrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ui__ring {
  width: 44%; max-width: 56px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--ui-strong) 0 68%, var(--ui-soft) 68% 100%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
}
.ui__ringwrap .ui__line { width: 40%; }
.ui__chips { display: flex; gap: 4%; }
.ui__input { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 4px; border: 1px solid var(--ui-ink); }
.ui__input .ui__line { flex: 0 0 60%; }
.ui__btn { width: 18%; height: 8px; margin-left: auto; border-radius: 3px; background: var(--ui-strong); }
.ui__progress { position: relative; height: 3px; margin-top: 4px; border-radius: 2px; background: var(--ui-soft); overflow: hidden; }
.ui__progress i { position: absolute; inset: 0 auto 0 0; background: var(--ui-strong); }
.w14 { width: 14%; } .w16 { width: 16%; } .w18 { width: 18%; } .w20 { width: 20%; } .w22 { width: 22%; } .w26 { width: 26%; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; } .w100 { width: 100%; }

/* ---------- Work rows ---------- */
.work { display: flex; flex-direction: column; gap: var(--s15); }
.work__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s10); align-items: center; }
.work__row:nth-child(even) .work__visual { order: 2; }
.work__visual { position: relative; aspect-ratio: 4 / 3; }
.work__visual .device--laptop { left: 0; top: 10%; width: 78%; }
.work__visual .device--phone  { right: 0; top: 24%; width: 24%; }
.work__visual--window .device--window { left: 4%; right: 4%; top: 12%; }
.work__body { display: flex; flex-direction: column; gap: var(--s2); }
.work__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.work__title { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.04em; }
.work__pitch { max-width: 46ch; }
.work__caps-label { margin-top: var(--s1); }
.work__caps { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-small); color: var(--fg-2); }
.work__caps li { display: flex; align-items: center; gap: 10px; }
.work__caps li::before { content: ""; width: 14px; height: 7px; border-left: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg); transform: translateY(-2px) rotate(-45deg); flex-shrink: 0; }
.work__meta { font-size: var(--fs-caption); color: var(--fg-3); }
.work__more { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s15); perspective: 1400px; }
.card__visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(180deg, var(--card-hover), transparent); border-bottom: 1px solid var(--line); }
.card__visual .device--laptop { left: 7%; top: 14%; width: 70%; }
.card__visual .device--phone  { right: 7%; top: 30%; width: 22%; }
.card__title { font-size: var(--fs-h3); }

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); padding-top: 44px; }
.timeline__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.timeline__line i { display: block; width: 100%; height: 100%; background: var(--fg); transform: scaleX(var(--p, 0)); transform-origin: left; }
.tstep { position: relative; }
.tstep h3 { color: var(--fg-2); transition: color .6s var(--ease-out); }   /* dimmed until the line reaches it */
.tstep.is-on h3 { color: var(--fg); }
.tstep__dot { position: absolute; left: 0; top: -44px; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); transition: background .4s, border-color .4s, box-shadow .4s; }
.tstep.is-on .tstep__dot { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--fg) 12%, transparent); }
.tstep h3 { margin: 8px 0 8px; }
.tstep p { font-size: var(--fs-small); }

/* ---------- Why Softign (4 benefits) ---------- */
.build__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s4); }
.build__item { padding-top: var(--s3); border-top: 1px solid var(--line); }
.build__icon { width: 28px; height: 28px; margin-bottom: var(--s3); fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.build__item h3 { margin-bottom: var(--s1); }
.build__item p { font-size: var(--fs-body-sm); }

/* ---------- Technology (compact) ---------- */
.tech { padding-top: var(--s12); padding-bottom: var(--s12); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tech .section__head { margin-bottom: var(--s6); }
.tech__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.tech__group { min-width: 0; padding-top: var(--s3); border-top: 1px solid var(--line); }
.tech__label { margin-bottom: var(--s2); }
.tech__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card);
  font-size: var(--fs-small); font-weight: 500; white-space: nowrap;
  transition: border-color .4s, background .4s;
}
.chip:hover { border-color: var(--line-strong); background: var(--card-hover); }
.chip__icon { width: 17px; height: 17px; flex-shrink: 0; fill: currentColor; color: var(--fg-2); transition: color .35s; }
.chip:hover .chip__icon { color: var(--brand, var(--fg)); }
.js .chip { opacity: 0; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s8); align-items: start; }
.faq__grid .section__head { margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: inherit; font-weight: inherit; letter-spacing: 0; line-height: inherit; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) 0; text-align: left;
  font-size: var(--fs-body); font-weight: 500; line-height: 1.4; color: var(--fg);
  transition: color .3s;
}
.faq__q:hover { color: var(--fg-2); }
.faq__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { max-width: 60ch; padding-bottom: var(--s3); font-size: var(--fs-body-sm); }

/* ---------- Contact / project form ---------- */
.contact__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s10); align-items: start; }
.form { display: flex; flex-direction: column; }
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--s3); border: 0; min-width: 0; }
.field label, .field legend { font-size: var(--fs-small); color: var(--fg-2); }
.field legend { margin-bottom: 8px; }
.field__opt { color: var(--fg-3); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: var(--fs-body); line-height: 1.4;
  transition: border-color .3s, background .3s;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg); }
.field textarea { resize: vertical; min-height: 140px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field__error { min-height: 0; font-size: var(--fs-caption); color: var(--error); }
.field__error:empty { display: none; }
.form__error { margin-bottom: var(--s2); }
.field input, .field textarea, .field select { color-scheme: dark; }   /* any remaining native UI (scrollbars, autofill, pickers) renders dark */
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
/* once enhanced, the native select is kept for submission but hidden */
.select.is-enhanced::after { display: none; }
.select.is-enhanced select { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }

/* Custom dropdown (WAI-ARIA listbox) */
.dropdown { position: relative; }
.dropdown__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; text-align: left;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: var(--fs-body); line-height: 1.4;
  transition: border-color .3s, background .3s;
}
.dropdown__trigger:hover, .dropdown.is-open .dropdown__trigger { border-color: var(--line-strong); }
.dropdown__trigger:focus-visible { outline: none; border-color: var(--fg); }
.dropdown__chevron { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--fg-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.dropdown.is-open .dropdown__chevron { transform: rotate(180deg); }
.dropdown__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  padding: 6px; margin: 0;
  background: color-mix(in srgb, #0d0d0d 92%, transparent); border: 1px solid #2a2a2a; border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .8), 0 2px 8px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility 0s linear .18s;
}
.dropdown.is-above .dropdown__panel { top: auto; bottom: calc(100% + 6px); transform: translateY(6px); }
.dropdown.is-open .dropdown__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown__panel:focus { outline: none; }
.dropdown__option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 10px; cursor: pointer;
  color: var(--fg-2); font-size: 15px; line-height: 1.3;
  transition: background .15s, color .15s;
}
.dropdown__option.is-active { background: #1a1a1a; color: var(--fg); }
.dropdown__option[aria-selected="true"] { color: var(--fg); }
.dropdown__option small { display: block; margin-top: 2px; font-size: var(--fs-label); color: var(--fg-3); }
.dropdown__check { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.dropdown__option[aria-selected="true"] .dropdown__check { opacity: 1; }
@media (prefers-color-scheme: light) {
  .dropdown__panel { background: color-mix(in srgb, #fff 94%, transparent); border-color: #e2e2e2; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .25), 0 2px 8px rgba(0, 0, 0, .08); }
  .dropdown__option.is-active { background: #f0f0f0; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: var(--fs-small); font-weight: 500; color: var(--fg-2);
  transition: background .3s, color .3s, border-color .3s;
}
.pick:hover span { border-color: var(--line-strong); color: var(--fg); }
.pick input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pick input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.form__submit { align-self: flex-start; height: 52px; padding: 0 var(--s4); }
/* The slot's min-height is set by JS at submit time, so swapping form <-> success never moves the layout */
.form-slot { position: relative; }
.form__success {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s6) var(--s4);
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  text-align: center;
}
.form__success[hidden] { display: none; }
.form__check { width: 64px; height: 64px; margin: 0 0 var(--s3); fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form__success h3 { margin-bottom: 8px; }
.form__success p { max-width: 42ch; margin-bottom: var(--s4); }
.contact__aside { padding: var(--s4); border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.contact__aside .label { margin-bottom: 12px; }
.contact__email {
  display: inline-block; overflow-wrap: anywhere;
  font-size: var(--fs-value); font-weight: 500; line-height: 1.2; letter-spacing: -.01em;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1px;
  transition: background-size .5s var(--ease-out);
}
.contact__email:hover { background-size: 100% 2px; }
.contact__points { margin-top: var(--s4); }
.contact__points li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--fg-2); }
.contact__points svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.footer { padding: var(--s8) 0 var(--s4); border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--fg-2); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s5); padding-bottom: var(--s6); }
.footer__brand a { display: inline-block; }
.footer__brand .logo { height: 18px; }
.footer__brand p { max-width: 320px; margin-top: var(--s3); font-size: var(--fs-small); }
.footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__links .label { margin-bottom: 4px; }
.footer__links a { padding-bottom: 1px; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .45s var(--ease-out), color .3s; }
.footer__links a:hover { color: var(--fg); background-size: 100% 1px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-caption); color: var(--fg-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .span-4, .span-5, .span-7 { grid-column: span 6; }
  .build__grid { grid-template-columns: repeat(2, 1fr); }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--s2); }
}
@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
  .hero { padding-top: calc(var(--nav-h) + var(--s5)); padding-bottom: var(--s12); min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s8); }
  .hero__content { max-width: 100%; }
  .hero__stage { min-height: 0; }
  .hero__canvas { display: none; }
  .stage2d { display: block; }
  .hero__scroll { display: none; }
  .section__head--row { grid-template-columns: 1fr; gap: var(--s2); }
  .section__head--row .section__lead { justify-self: start; }
  .work__row { grid-template-columns: 1fr; gap: var(--s5); }
  .work__row:nth-child(even) .work__visual { order: 0; }
  .work { gap: var(--s12); }
  .work__more { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: var(--s5); padding-top: 0; padding-left: 36px; }
  .timeline__line { left: 7px; top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .timeline__line i { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .tstep__dot { left: -36px; top: 4px; }
  .faq__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .contact__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .span-4, .span-5, .span-7, .span-12 { grid-column: span 12; }
  .service--wide { flex-direction: column; }
  .service--wide .service__visual { width: 100%; min-height: 184px; border-left: 0; border-top: 1px solid var(--line); }
  .build__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .tech__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .hero__cta .btn { flex: 1 1 auto; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__submit { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s4); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .live-dot, .badge i, .stage2d .device { animation: none; }
  .mv.is-live *, .mv.is-live { animation: none !important; }
  .mv__chart { stroke-dashoffset: 0; }
  .mv--dash .mv__bar { transform: none; }
  .mv__progress i { width: 100%; }
  .mv__final { opacity: 1; } .mv__wire { opacity: 0; }
  .tstep { opacity: 1; }
}
html.reduced-motion [data-reveal],
html.reduced-motion [data-reveal-group] > *,
html.reduced-motion [data-hero],
html.reduced-motion .chip { opacity: 1; }
html.reduced-motion .w__i { transform: none; }
