/* =========================================================
   DevNytix — styles
   Palette: warm paper, near-black ink, one ember accent.
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #f3f1ec;
  --surface: #ffffff;
  --panel: #e7e4dd;
  --ink: #0e0e0d;
  --ink-2: #3b3a37;
  --muted: #6f6c66;
  --line: #d9d5cc;
  --dark: #0b0b0b;
  --dark-2: #161616;
  --dark-line: #2a2a2a;
  --dark-muted: #8a8780;
  --accent: #ff4d1f;
  --accent-ink: #ffffff;
  --accent-deep: #c73a12;
  --accent-text: #b8350f;   /* accent for small text on light backgrounds (WCAG AA 4.5:1) */

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --gut: 80px;
  --nav: 72px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

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

.wrap { width: min(100% - 2 * max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right)), 1280px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 999px;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- type helpers ---------- */
.eyebrow {
  font: 500 13px/1 var(--mono);
  letter-spacing: .02em;
  color: var(--accent-text);
  text-transform: uppercase;
}
.h2 {
  font: 500 clamp(32px, 4.2vw, 60px)/1 var(--display);
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-top: 20px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font: 500 15px/1 var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  touch-action: manipulation;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-deep); box-shadow: 0 8px 24px -8px rgb(255 77 31 / .6); }
.btn--ghost-dark { height: 40px; color: #fff; border: 1px solid #4a4a4a; font-size: 14px; }
.btn--ghost-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* round "let's talk" link */
.talk { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-text); font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .01em; }
.talk__dot {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  transition: transform .35s var(--ease-out);
}
.talk__dot::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); opacity: .6; transition: inset .35s var(--ease-out), opacity .35s; }
.talk:hover .talk__dot { transform: rotate(-45deg); }
.talk:hover .talk__dot::before { inset: -9px; opacity: 0; }
.talk__label { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .35s var(--ease-out); }
.talk:hover .talk__label { background-size: 100% 1px; }

.round-arrow {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .35s var(--ease-out);
}
.round-arrow--accent { background: var(--accent); color: #fff; width: 64px; height: 64px; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-scrolled { background: rgb(243 241 236 / .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px/1 var(--display); font-variation-settings: "wdth" 100; letter-spacing: -0.03em; }
.brand__mark { width: 22px; height: 27px; background: var(--accent); -webkit-mask: url(../assets/brand/devnytix-mark.png) center / contain no-repeat; mask: url(../assets/brand/devnytix-mark.png) center / contain no-repeat; transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: scale(1.12); }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 10px 12px; font-size: 14px; color: var(--ink-2);
  transition: color .2s;
}
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-current { color: var(--ink); }

.nav__toggle { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; border-radius: 50%; background: var(--ink); }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; z-index: 49; inset: 0; padding-top: var(--nav); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu__inner { display: flex; flex-direction: column; padding-top: 24px; }
.mobile-menu__inner a { padding: 18px 0; border-bottom: 1px solid var(--line); font: 500 34px/1 var(--display); font-variation-settings: "wdth" 88; text-transform: uppercase; letter-spacing: -0.03em; }
.mobile-menu__inner .mobile-menu__cta { color: var(--accent); border: 0; }
.mobile-menu:not([hidden]) a { animation: rise .5s var(--ease-out) both; }
.mobile-menu:not([hidden]) a:nth-child(2) { animation-delay: .04s; }
.mobile-menu:not([hidden]) a:nth-child(3) { animation-delay: .08s; }
.mobile-menu:not([hidden]) a:nth-child(4) { animation-delay: .12s; }
.mobile-menu:not([hidden]) a:nth-child(5) { animation-delay: .16s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: calc(var(--nav) + clamp(40px, 6vw, 88px)); }
.hero .wrap { position: relative; }
.hero__head { position: relative; }
.hero__title {
  font: 500 clamp(44px, 8.6vw, 132px)/.9 var(--display);
  font-variation-settings: "wdth" 78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--indent { padding-left: 16%; }
.hero__talk { position: absolute; right: 0; top: clamp(4px, 1.6vw, 26px); }

.hero__lead {
  max-width: 40ch; margin: clamp(24px, 3vw, 40px) 0 0 auto; margin-right: 6%;
  color: var(--ink-2); font-size: 16px; line-height: 1.55; text-wrap: pretty;
}

.hero__scroll {
  position: absolute; left: calc(-1 * var(--gut) / 2 - 6px); top: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--accent); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em;
}
.hero__scroll span { writing-mode: vertical-rl; transform: rotate(180deg); }
.hero__scroll i { position: relative; width: 1px; height: 56px; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: 0; background: linear-gradient(var(--accent) 50%, transparent 0) 0 0 / 1px 12px; animation: dash 1.4s linear infinite; }

/* ---------- reel ---------- */
.reel {
  position: relative; margin-top: clamp(32px, 4vw, 56px);
  height: clamp(380px, 42vw, 600px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 20% 0%, #232323 0%, transparent 60%),
    radial-gradient(90% 70% at 90% 10%, #1c1c1c 0%, transparent 55%),
    linear-gradient(160deg, #141414, #050505 70%);
}
.reel__grain { position: absolute; inset: 0; z-index: 1; opacity: .18; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.reel__orb {
  position: absolute; z-index: 0; left: 50%; top: 18%;
  width: min(92vw, 1060px); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 18%, #ffb98f 0%, #ff7a3d 14%, #ff4d1f 30%, #b8350f 52%, #4a1404 72%, #0b0b0b 86%);
  box-shadow: 0 -40px 140px -20px rgb(255 90 40 / .45);
  transform: scale(.86) translateY(12%); filter: brightness(.6) saturate(.95);
  transition: translate .6s var(--ease-out);
}
.reel__orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 -70px 200px -10px rgb(255 100 50 / .55); opacity: 0; animation: breathe 9s ease-in-out infinite; }

/* tabs */
.reel__tabs {
  position: absolute; z-index: 4; top: 22px; left: 50%; translate: -50% 0;
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgb(20 10 6 / .35); border: 1px solid rgb(255 255 255 / .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.reel__tab {
  position: relative; overflow: hidden; padding: 10px 18px; border-radius: 999px;
  color: rgb(255 255 255 / .7); font: 500 14px/1 var(--text); white-space: nowrap;
  transition: color .3s, background-color .3s; touch-action: manipulation;
}
.reel__tab:hover { color: #fff; }
.reel__tab.is-active { color: var(--ink); background: #fff; }
.reel__tab span { position: relative; z-index: 1; }
.reel__tab i { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.reel__tab.is-active i { animation: tabfill var(--reel-dur, 6s) linear forwards; }
.reel.is-paused .reel__tab.is-active i { animation-play-state: paused; }
@keyframes tabfill { to { transform: scaleX(1); } }

/* slides */
.reel__slides { position: absolute; inset: 0; z-index: 2; }
.reel__slide { position: absolute; inset: 0; margin: 0; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; padding: 84px 24px 70px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
.reel__slide.is-active { opacity: 1; transform: none; }
.reel__slide[hidden] { display: grid; visibility: hidden; }
.reel__img { position: absolute; left: 50%; top: 84px; translate: -50% 0; width: auto; height: calc(100% - 154px); max-width: min(70%, 760px); object-fit: cover; border-radius: 18px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9); }

.browser { width: min(62%, 760px); height: 100%; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #1a1a1a; border: 1px solid rgb(255 255 255 / .1); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #202020; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.browser__bar span { margin: 0 auto; translate: 28px 0; padding: 4px 14px; border-radius: 6px; background: #2b2b2b; font: 400 11px/1.2 var(--mono); color: #9e9b94; }
.browser__live { display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); font-style: normal; text-transform: uppercase; color: #9e9b94; }
.browser__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgb(61 220 132 / .2); }
.browser__view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.browser__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .5s var(--ease); }
.browser__view.is-loaded .browser__poster { opacity: 0; pointer-events: none; }
.browser__view iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .5s var(--ease); }
.browser__view.is-loaded iframe { opacity: 1; }

.reel__cap { position: absolute; left: 28px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; color: #fff; }
.reel__cap b { font: 600 15px/1.2 var(--text); }
.reel__cap span { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: #ffb18f; }
.reel__more { position: absolute; z-index: 4; right: 28px; bottom: 24px; padding: 11px 16px; border-radius: 999px; color: #fff; font: 500 14px/1 var(--text); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .3s; }
.reel__more:hover { background: rgb(255 255 255 / .2); }

/* phone mockups: real app screens in device frames */
.phones { position: relative; width: 100%; height: 100%; }
.phone {
  position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 9 / 19.6;
  padding: 6px; border-radius: 40px;
  background: linear-gradient(150deg, #5b5b5e 0%, #1c1c1e 18%, #0c0c0d 50%, #2a2a2c 82%, #6a6a6d 100%);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14), 0 60px 80px -40px rgb(0 0 0 / .95), 0 20px 30px -20px rgb(0 0 0 / .8);
}
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2c2c2e; }
.phone::before { left: -2px; top: 20%; height: 9%; box-shadow: 0 calc(100% + 12px) 0 #2c2c2e; }
.phone::after { right: -2px; top: 26%; height: 14%; }
.phone--front { z-index: 2; translate: -18% 0; }
.phone--back { z-index: 1; height: 88%; top: 9%; translate: -92% 0; rotate: -7deg; filter: brightness(.82); }

/* entry: phones rise in, slightly staggered */
.reel__slide .phone { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform 1s var(--ease-out); }
.reel__slide.is-active .phone { opacity: 1; transform: none; }
.reel__slide.is-active .phone--back { transition-delay: .15s; }

/* spec-style annotations */
.note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; white-space: nowrap; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: rgb(255 255 255 / .8); opacity: 0; transition: opacity .5s var(--ease) .6s; }
.note span { color: #ffb18f; }
.note i { display: block; width: 72px; height: 1px; background: rgb(255 255 255 / .45); transform: scaleX(0); transition: transform .6s var(--ease-out) .8s; }
.note i::after { content: ""; position: absolute; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--accent); }
.note--left { right: calc(50% + 24%); top: 30%; }
.note--left i { transform-origin: left; }
.note--left i::after { margin-left: 72px; }
.note--right { left: calc(50% + 18%); top: 58%; }
.note--right i { transform-origin: right; }
.note--right i::after { margin-left: -3px; }
.reel__slide.is-active .note { opacity: 1; }
.reel__slide.is-active .note i { transform: none; }
/* ---- coded app screens ---- */
.phone { container-type: inline-size; }
.scr { height: 100%; overflow: hidden; border-radius: 34px; display: flex; flex-direction: column; font: 400 6.3cqw/1.3 var(--text); }
.scr b { font-weight: 600; }
.scr small { display: block; font-size: .78em; }
.scr--light { background: #fff; color: #0e0e0d; }
.scr--dark { background: #0f0f10; color: #f4f2ee; }
.sb { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 5.5cqw 8cqw 2cqw; font-size: .92em; }
.sb__island { position: absolute; left: 50%; top: 3.6cqw; translate: -50% 0; width: 30%; height: 8.4cqw; border-radius: 99px; background: #000; }
.sb__ic { width: 17cqw; height: auto; }

/* tracking (front) */
.trk__map { position: relative; height: 50%; margin-top: -14cqw; flex: none; }
.trk__map svg { width: 100%; height: 100%; display: block; }
.trk__chip { position: absolute; left: 6cqw; top: 19cqw; padding: .45em .8em; border-radius: 99px; background: #fff; font-size: .8em; font-weight: 600; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }
.trk__route { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reel__slide.is-active .trk__route { animation: drawline 2.4s .5s var(--ease) forwards; }
.trk__rider { offset-path: path("M70 205 L70 150 L160 150 L160 70 L238 70"); offset-distance: 0%; offset-rotate: 0deg; }
.reel__slide.is-active .trk__rider { animation: ride 6s .5s var(--ease) forwards; }
.trk__pulse { transform-origin: 238px 70px; animation: pinpulse 1.8s ease-out infinite; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes ride { to { offset-distance: 64%; } }
@keyframes pinpulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
.trk__sheet { position: relative; flex: 1; margin-top: -6cqw; padding: 3cqw 7cqw 6cqw; border-radius: 7cqw 7cqw 0 0; background: #fff; box-shadow: 0 -6px 20px rgb(0 0 0 / .08); display: flex; flex-direction: column; gap: .55em; }
.trk__handle { align-self: center; width: 12cqw; height: 1.4cqw; border-radius: 9px; background: #e2e0dc; margin-bottom: .2em; }
.trk__small { color: #77736c; font-size: .82em; }
.trk__eta { margin-top: -.45em; font: 700 2em/1.05 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -.02em; }
.trk__eta span { font: 500 .42em var(--text); letter-spacing: 0; color: #77736c; }
.trk__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.trk__steps i { position: relative; height: 1.5cqw; border-radius: 9px; background: #ece9e4; overflow: hidden; }
.trk__steps i::after { content: ""; position: absolute; inset: 0; background: #ff4d1f; transform: scaleX(0); transform-origin: left; }
.reel__slide.is-active .trk__steps i:nth-child(1)::after { animation: fillx .5s .3s var(--ease) forwards; }
.reel__slide.is-active .trk__steps i:nth-child(2)::after { animation: fillx .5s .8s var(--ease) forwards; }
.reel__slide.is-active .trk__steps i.is-live::after { animation: fillx 4s 1.3s linear forwards; transform-origin: left; }
@keyframes fillx { to { transform: scaleX(1); } }
.reel__slide.is-active .trk__steps i.is-live::after { animation-name: fillhalf; }
@keyframes fillhalf { to { transform: scaleX(.6); } }
.trk__labels { display: grid; grid-template-columns: repeat(4, 1fr); font-size: .66em; color: #9a968f; margin-top: -.2em; }
.trk__labels .is-on { color: #ff4d1f; font-weight: 600; white-space: nowrap; }
.trk__order { display: flex; align-items: center; gap: .6em; padding: .55em .7em; border-radius: .8em; background: #f6f4f0; font-size: .85em; }
.trk__order b { flex: 1; }
.trk__order small { display: inline; color: #77736c; }
.trk__dish { width: 1.9em; height: 1.9em; flex: none; border-radius: .5em; background: radial-gradient(circle at 40% 35%, #ffcf8a, #e0602c 60%, #9c3510); }
.trk__rider-row { margin-top: auto; display: flex; align-items: center; gap: .6em; padding-top: .7em; border-top: 1px solid #efedea; }
.trk__rider-row > span:nth-child(2) { flex: 1; }
.trk__rider-row small { color: #77736c; }
.trk__av { width: 2.4em; height: 2.4em; flex: none; display: grid; place-items: center; border-radius: 50%; background: #0e0e0d; color: #fff; font-size: .8em; font-weight: 600; }
.trk__btn { width: 2.3em; height: 2.3em; flex: none; border-radius: 50%; background: #f3f1ec; position: relative; }
.trk__btn::after { content: ""; position: absolute; inset: 28%; background: #0e0e0d; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.trk__btn--call { background: #ff4d1f; }
.trk__btn--call::after { background: #fff; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1L6.6 10.8Z'/%3E%3C/svg%3E"); }
.trk__btn--chat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E"); }

/* wallet (back) */
.wal { flex: 1; padding: 3cqw 7cqw; display: flex; flex-direction: column; gap: .5em; min-height: 0; }
.wal__top { display: flex; align-items: center; gap: .6em; margin-bottom: .4em; }
.wal__top small { color: #8c8880; }
.wal__top > span:nth-child(2) { flex: 1; }
.wal__av { width: 2.4em; height: 2.4em; display: grid; place-items: center; border-radius: 50%; background: #ff4d1f; color: #fff; font-size: .8em; font-weight: 600; }
.wal__bell { width: 2.2em; height: 2.2em; border-radius: 50%; border: 1px solid #2b2b2d; }
.wal__label { color: #8c8880; font-size: .82em; }
.wal__bal { margin-top: -.3em; font: 700 2.1em/1 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -.02em; }
.wal__bal span { color: #6f6b65; }
.wal__up { color: #4ade80; font-size: .78em; font-weight: 500; }
.wal__chart { width: calc(100% + 14cqw); margin: .2em -7cqw 0; height: 22cqw; }
.wal__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reel__slide.is-active .wal__line { animation: drawline 1.8s .7s var(--ease) forwards; }
.wal__range { display: flex; justify-content: space-between; padding: .25em; border-radius: 99px; background: #1b1b1d; font-size: .75em; color: #8c8880; }
.wal__range span { padding: .35em .9em; border-radius: 99px; }
.wal__range .is-on { background: #2c2c2f; color: #fff; }
.wal__h { margin-top: .3em; font-weight: 600; }
.wal__list { display: flex; flex-direction: column; gap: .7em; }
.wal__list li { display: flex; align-items: center; gap: .6em; }
.wal__list li > span { flex: 1; }
.wal__list small { color: #8c8880; }
.wal__list em { font-style: normal; font-size: .9em; font-weight: 600; }
.wal__list em.pos { color: #4ade80; }
.ic { width: 2.3em; height: 2.3em; flex: none; border-radius: .7em; background: #1d1d20; position: relative; }
.ic::after { content: ""; position: absolute; inset: 30%; background: #d9d5ce; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic--cart { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 7H6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='20' r='1.6'/%3E%3Ccircle cx='17' cy='20' r='1.6'/%3E%3C/svg%3E"); }
.ic--in { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v14M6 12l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ic--in::after { background: #4ade80; }
.ic--play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E"); }



/* chat demo */
.agent-card--demo { min-height: 236px; justify-content: flex-start; }
.agent-card--demo [data-step] { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.agent-card--demo [data-step].is-on { opacity: 1; transform: none; }
.agent-card--demo .typing.is-gone { display: none; }
.typing { display: flex; gap: 4px; width: max-content; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9e9b94; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

/* agent card */
.agent-card { width: min(420px, 80vw); padding: 18px; border-radius: 20px; background: rgb(18 18 18 / .9); border: 1px solid #2d2d2d; color: #fff; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9); backdrop-filter: blur(10px); }
.agent-card__head { display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); text-transform: uppercase; color: #bdbab3; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc84; animation: ping 2s infinite; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble--bot { background: #262626; border-bottom-left-radius: 4px; }
.agent-card__tools { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-card__tools span { font: 400 11px/1 var(--mono); color: #9e9b94; padding: 6px 8px; border: 1px solid #333; border-radius: 6px; }
.agent-card--sm { width: 100%; }
.agent-card--sm .bubble { font-size: 13px; }

/* =========================================================
   STACK STRIP
   ========================================================= */
.stack { padding: 36px 0 0; }
.stack__row { display: flex; align-items: center; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.stack__side { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.stack__label { font: 500 12px/1.4 var(--mono); text-transform: uppercase; color: var(--muted); }
.stack__toggle { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 11px/1 var(--mono); text-transform: uppercase; color: var(--muted); transition: color .2s, border-color .2s; touch-action: manipulation; }
.stack__toggle:hover { color: var(--ink); border-color: var(--ink); }
.stack__lanes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.stack__lane { display: flex; align-items: center; gap: 20px; }
.stack__cat { flex: none; width: 92px; font: 500 11px/1.3 var(--mono); text-transform: uppercase; color: var(--accent-text); }
.stack__track { flex: 1; min-width: 0; display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.stack__logos { flex: none; display: flex; align-items: center; gap: 44px; padding-right: 44px; animation: stackmove 40s linear infinite; }
.stack__lane--rev .stack__logos { animation-direction: reverse; animation-duration: 46s; }
.stack__track:hover .stack__logos, .stack.is-paused .stack__logos { animation-play-state: paused; }
@keyframes stackmove { to { transform: translateX(-100%); } }
.stack__logos li { flex: none; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 600 17px/1 var(--display); font-variation-settings: "wdth" 90; letter-spacing: -0.02em; color: var(--ink-2); transition: color .25s; }
.stack__logos li:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .stack__logos { animation: none; }
  .stack__toggle { display: none; }
}
.logo { width: 22px; height: 22px; background: currentColor; -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; mask-position: center; mask-size: contain; mask-repeat: no-repeat; }

/* =========================================================
   WORK
   ========================================================= */
.work { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.work__nav { display: flex; gap: 8px; }
.work__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; padding-bottom: 4px;
}
.work__track::-webkit-scrollbar { display: none; }
.work__track:focus-visible { outline-offset: 6px; }
.project { scroll-snap-align: start; }
.project__link { display: block; }
.project__frame {
  position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--r-md); overflow: hidden;
  background: var(--panel);
}
.project__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.project:hover .project__frame img { transform: scale(1.03); }
.project[hidden] { display: none; }
.project__cat { flex: none; font: 500 11px/1 var(--mono); text-transform: uppercase; padding: 8px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-2); transition: background-color .25s, color .25s, border-color .25s; }
.project:hover .project__cat { background: var(--accent); border-color: var(--accent); color: #fff; }
.project__meta > div { min-width: 0; }
.project__tag { line-height: 1.4; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; touch-action: manipulation; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.filter span { font: 500 11px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.filter:hover { border-color: var(--ink); }
.filter:active { transform: scale(.96); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.is-active span { color: #b9b6ae; }
.project__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 4px 0; }
.project__title { font: 500 22px/1.1 var(--display); font-variation-settings: "wdth" 90; letter-spacing: -0.02em; text-transform: uppercase; }
.project__tag { margin-top: 6px; font: 400 12px/1 var(--mono); text-transform: uppercase; color: var(--muted); }
.project__link:hover .round-arrow { background: var(--accent); color: #fff; transform: rotate(45deg); }

/* =========================================================
   STUDIO — dark band
   ========================================================= */
.studio { background: var(--dark); color: #fff; padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
.studio::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 85% 0%, #1f1f1f, transparent 70%), radial-gradient(50% 40% at 0% 30%, #191919, transparent 70%); }
.studio__title { margin-top: 24px; font: 500 clamp(32px, 4.6vw, 66px)/1 var(--display); font-variation-settings: "wdth" 84; letter-spacing: -0.04em; text-transform: uppercase; text-wrap: balance; }
.studio__indent { display: block; padding-left: 8%; }
.studio__muted { color: #6a6863; }
.studio__row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 48px; padding-left: 8%; }
.studio__row p { color: #c8c5be; max-width: 46ch; }
.talk--dark { color: var(--accent); }
.studio__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.studio__stats li { padding-top: 20px; border-top: 1px solid var(--dark-line); }
.studio__stats b { display: block; font: 500 clamp(40px, 5vw, 72px)/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.studio__stats span { display: block; margin-top: 8px; color: var(--dark-muted); font-size: 14px; max-width: 26ch; }
.studio__foot { display: flex; justify-content: center; margin-top: 48px; }
.team { margin-top: 72px; }
.team__title { font: 500 13px/1 var(--mono); text-transform: uppercase; color: var(--dark-muted); }
.team__list { margin-top: 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.team__list li { display: flex; gap: 12px; align-items: center; padding-top: 20px; border-top: 1px solid var(--dark-line); }
.team__list b { display: block; font-weight: 500; }
.team__list span:not(.avatar) { display: block; font-size: 13px; color: var(--dark-muted); line-height: 1.35; }
.avatar--dark { flex: none; width: 44px; height: 44px; background: #1f1f1f; color: #ffb18f; font-size: 13px; border: 1px solid #333; }

/* marquee */
.marquee { margin-top: 72px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; color: #c8c5be; font: 500 12px/1 var(--mono); text-transform: uppercase; transition: color .2s, background-color .2s; }
.marquee-toggle:hover { color: #fff; background: #1d1d1d; }
.studio__foot { gap: 12px; align-items: center; }
.artefact { flex: none; width: 260px; height: 300px; border-radius: 6px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.artefact--card { background: var(--accent); color: #fff; }
.artefact--photo { padding: 0; background: #1a1a1a; }
.artefact--photo img { width: 100%; height: 100%; object-fit: cover; }
.artefact--card b { font: 700 36px/1 var(--display); font-variation-settings: "wdth" 100; letter-spacing: -0.04em; text-transform: uppercase; }
.artefact--card span { font: 500 12px/1 var(--mono); text-transform: uppercase; opacity: .85; }
.artefact--card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgb(255 255 255 / .18); }
.artefact--chat { background: #f3f1ec; justify-content: flex-end; gap: 10px; }
.artefact--chat p { font-size: 14px; padding: 10px 14px; background: #fff; border-radius: 14px 14px 14px 4px; color: var(--ink); max-width: 90%; box-shadow: 0 6px 16px -10px rgb(0 0 0 / .3); }
.artefact--chat p.me { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; }
.artefact--tag { background: #fff; color: var(--ink); justify-content: center; align-items: center; }
.artefact--tag span { font: 600 26px/1.05 var(--display); font-variation-settings: "wdth" 85; text-transform: uppercase; letter-spacing: -0.03em; color: var(--accent); text-align: center; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: clamp(80px, 10vw, 140px) 0; }
.svc-list { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.svc { border-top: 1px solid var(--line); transition: background-color .4s var(--ease), color .4s var(--ease); border-radius: 0; }
.svc.is-open { background: var(--dark); color: #fff; border-top-color: var(--dark); border-radius: var(--r-sm); }
.svc.is-open + .svc { border-top-color: transparent; }
.svc__h { font: inherit; }
.svc__btn {
  width: 100%; display: grid; grid-template-columns: 5fr 1fr 5fr 44px; gap: 24px; align-items: center;
  text-align: left; padding: 26px 20px; touch-action: manipulation;
}
.svc__name { font: 500 clamp(22px, 2.4vw, 32px)/1 var(--display); font-variation-settings: "wdth" 88; text-transform: uppercase; letter-spacing: -0.03em; transition: transform .35s var(--ease-out), color .3s; }
.svc__btn:hover .svc__name { transform: translateX(8px); }
.svc:not(.is-open) .svc__btn:hover .svc__name { color: var(--accent); }
.svc__num { font: 500 13px/1 var(--mono); color: var(--muted); }
.svc.is-open .svc__num { color: var(--accent); }
.svc__short { font-size: 14px; color: var(--muted); max-width: 44ch; }
.svc.is-open .svc__short { color: #c9c6bf; }
.svc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: transform .4s var(--ease-out), background-color .3s, color .3s; }
.svc__btn:hover .svc__icon { background: var(--ink); color: #fff; }
.svc.is-open .svc__icon { background: var(--accent); color: #fff; transform: rotate(90deg); }
.svc__panel-inner { display: grid; grid-template-columns: 5fr 1fr 5fr 44px; gap: 24px; padding: 4px 20px 32px; }
.svc__preview { grid-column: 1; border-radius: var(--r-sm); overflow: hidden; background: #1c1c1c; height: 240px; display: grid; place-items: center; }
.svc__preview img, .svc-float img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.svc__preview--agent { padding: 16px; }
.svc__list { grid-column: 3; display: grid; gap: 12px; align-content: start; }
.svc__list li { position: relative; padding-left: 22px; color: #e4e1da; font-size: 15px; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.svc.is-open .svc__panel-inner { animation: rise .6s var(--ease-out) both; }

/* floating hover preview */
.svc-float { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; height: 225px; border-radius: 14px; background: #1c1c1c; pointer-events: none; opacity: 0; scale: .85; transition: opacity .25s var(--ease), scale .35s var(--ease-out); overflow: hidden; display: grid; place-items: center; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .45); }
.svc-float.is-visible { opacity: 1; scale: 1; }

/* =========================================================
   PROCESS
   ========================================================= */
.process { padding: 0 0 clamp(80px, 10vw, 140px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 72px); counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 28px; border-radius: var(--r-md); background: var(--surface); border: 1px solid #ebe8e1; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgb(0 0 0 / .35); }
.step__num { font: 500 13px/1 var(--mono); color: var(--accent-text); }
.step h3 { font: 500 26px/1 var(--display); font-variation-settings: "wdth" 88; text-transform: uppercase; letter-spacing: -0.03em; margin-top: auto; }
.step p { color: var(--ink-2); font-size: 15px; }
.step__time { align-self: flex-start; font: 500 11px/1 var(--mono); text-transform: uppercase; padding: 7px 10px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.step:last-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.step:last-child p { color: #c9c6bf; }
.step:last-child .step__num { color: var(--accent); }
.step:last-child .step__time { background: #222; color: #e6e3dc; }

/* =========================================================
   QUOTES
   ========================================================= */
.quotes { padding: 0 0 clamp(80px, 10vw, 140px); }
.quotes__grid { display: grid; grid-template-columns: 4fr 8fr; grid-template-rows: auto 1fr; column-gap: 24px; row-gap: 24px; padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.quotes__who { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 15px/1 var(--display); }
.quotes__name { font-weight: 500; }
.quotes__role { font: 400 12px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; }
.quotes__text { grid-row: 1 / span 2; grid-column: 2; font: 400 clamp(20px, 2.1vw, 28px)/1.4 var(--text); letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; position: relative; transition: opacity .3s var(--ease); }
.quotes__text.is-fading { opacity: 0; }
.quotes__text::before { content: "“"; position: absolute; left: -.05em; top: -.62em; font: 700 120px/1 var(--display); color: var(--panel); z-index: -1; }
.quotes__nav { display: flex; align-items: center; gap: 8px; align-self: end; }
.text-arrow { width: 44px; height: 44px; border-radius: 50%; font-size: 18px; color: var(--muted); transition: background-color .2s, color .2s, transform .2s; }
.text-arrow:hover { background: var(--ink); color: #fff; }
.text-arrow:active { transform: scale(.94); }
.text-arrow--accent { color: var(--accent); }
.quotes__count { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: clamp(80px, 10vw, 140px) 0; background: var(--panel); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start; }
.contact__lead { margin-top: 24px; color: var(--ink-2); max-width: 40ch; }
.contact__points { margin-top: 32px; display: grid; gap: 12px; }
.contact__points li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.contact__points li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.contact__ways { margin-top: 32px; display: grid; gap: 8px; }
.contact__ways a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid #d3cec4; font-size: 17px; font-weight: 500; transition: color .2s; }
.contact__ways a:hover { color: var(--accent); }
.contact__ways span { width: 80px; flex: none; font: 500 11px/1 var(--mono); text-transform: uppercase; color: #5f5c56; }
.form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 20px; box-shadow: 0 30px 60px -40px rgb(0 0 0 / .3); }
.form__chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { width: 100%; padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip:active span { transform: scale(.96); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink);
  padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230e0e0d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bdb8ad; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgb(255 77 31 / .18); border-radius: var(--r-sm); }
.field input::placeholder, .field textarea::placeholder { color: #a19d95; }
.field.has-error input, .field.has-error textarea { border-color: #d93a1a; }
.field__err { min-height: 0; font-size: 13px; color: #c12f10; }
.field__err:empty { display: none; }
.form .btn { justify-self: start; }
.form__status { font-size: 14px; color: var(--ink-2); }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { color: var(--ink); font-weight: 500; }
.form__status[data-state="error"] { color: #b3261e; }
.form__status a { text-decoration: underline; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn[disabled] { opacity: .7; cursor: progress; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: #fff; padding: clamp(64px, 8vw, 100px) 0 0; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: start; }
.footer__kicker { font: 600 13px/1 var(--mono); text-transform: uppercase; color: var(--dark-muted); margin-bottom: 18px; }
.footer__big-link { display: inline-flex; align-items: flex-start; gap: 24px; }
.footer__big-link > span:first-child { font: 500 clamp(26px, 3vw, 42px)/1.02 var(--display); font-variation-settings: "wdth" 86; text-transform: uppercase; letter-spacing: -0.035em; max-width: 22ch; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); }
.footer__big-link:hover > span:first-child { background-size: 100% 2px; }
.footer__big-link:hover .round-arrow { transform: rotate(45deg) scale(1.06); }
.footer__addr { margin-top: 28px; font-size: 14px; color: var(--dark-muted); }
.footer__addr a { color: #d9d6cf; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(217 214 207 / .4); transition: color .2s; }
.footer__addr a:hover { color: var(--accent); }
.footer__side { display: grid; justify-items: end; gap: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-end; }
.footer__links a { padding: 10px 8px; font: 500 12px/1 var(--mono); text-transform: uppercase; color: #d9d6cf; transition: color .2s; }
.footer__links a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--dark-line); color: #d9d6cf; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.footer__social a:hover { background: #fff; color: var(--ink); border-color: #fff; transform: translateY(-2px); }
.footer__legal { font-size: 13px; color: var(--dark-muted); }
.footer__word {
  margin-top: clamp(48px, 7vw, 96px);
  font: 700 var(--fit, 12vw)/.78 var(--display);
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.05em;
  white-space: nowrap; width: max-content; margin-inline: auto;
  color: #fff;
  translate: 0 4%;
  user-select: none;
}
.footer__word span { color: var(--accent); }

/* =========================================================
   MOTION
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dash { to { transform: translateY(12px); } }
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

[data-enter] { animation: rise .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
/* The headline and showcase hold the LCP: slide them in without starting at opacity 0,
   so the browser can paint (and measure) them immediately. */
.hero__title[data-enter], .reel[data-enter] { animation-name: rise-in; }
@keyframes rise-in { from { transform: translateY(18px); } to { transform: none; } }
.studio .eyebrow { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  :root { --gut: 48px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 0; }
  .stack__row { flex-direction: column; align-items: stretch; gap: 20px; }
  .stack__side { flex-direction: row; align-items: center; justify-content: space-between; }
  .stack__lane { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stack__cat { width: auto; }
  .stack__track { width: 100%; }
  .stack__logos { gap: 32px; padding-right: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .team__list { grid-template-columns: repeat(3, 1fr); }
  .step { min-height: 240px; }
  .svc__btn, .svc__panel-inner { grid-template-columns: 4fr 1fr 6fr 44px; }
}

@media (max-width: 820px) {
  .hero__talk { position: static; margin-top: 24px; }
  .hero__line--indent { padding-left: 0; }
  .hero__lead { margin: 20px 0 0; }
  .hero__scroll { display: none; }
  .work__track { grid-auto-columns: 82%; }
  .section-head { flex-wrap: wrap; }
  .team__list { grid-template-columns: 1fr 1fr; }
  .studio__row { grid-template-columns: 1fr; gap: 24px; padding-left: 0; }
  .studio__indent { padding-left: 0; }
  .studio__stats { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .studio__stats li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; }
  .studio__stats span { margin: 0; }
  .svc__btn { grid-template-columns: 1fr 44px; grid-template-areas: "num icon" "name icon" "short icon"; row-gap: 10px; padding: 22px 16px; }
  .svc__num { grid-area: num; }
  .svc__name { grid-area: name; }
  .svc__short { grid-area: short; }
  .svc__icon { grid-area: icon; align-self: center; }
  .svc__panel-inner { grid-template-columns: 1fr; padding: 0 16px 24px; }
  .svc__list { grid-column: 1; }
  .svc__preview { height: 200px; }
  .svc-float { display: none; }
  .quotes__grid { grid-template-columns: 1fr; }
  .quotes__text { grid-row: auto; grid-column: 1; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__side { justify-items: start; }
  .footer__links { justify-content: flex-start; margin-left: -8px; }
}

@media (max-width: 640px) {
  :root { --gut: 20px; --nav: 64px; --r-lg: 20px; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero__title { font-size: clamp(40px, 12.4vw, 64px); }
  .reel { height: 500px; border-radius: var(--r-lg); }
  .reel__orb { width: 150vw; top: 30%; }
  .reel__tabs { top: 14px; }
  .reel__tab { padding: 9px 12px; font-size: 13px; }
  .reel__slide { padding: 66px 14px 92px; }
  .browser { width: 100%; }
  .reel__cap { left: 16px; right: 16px; bottom: 18px; }
  .reel__more { display: none; }
  .note { display: none; }
  .phone--front { translate: -30% 0; }
  .phone--back { translate: -80% 0; }
  .stack__logos li { font-size: 15px; }
  .work__track { grid-auto-columns: 88%; gap: 14px; }
  .project__frame { aspect-ratio: 1; }
  .team__list { grid-template-columns: 1fr; gap: 0; }
  .team__list li { padding: 14px 0; }
  .work__nav { display: none; }
  .reel__img { top: 66px; height: calc(100% - 158px); max-width: calc(100% - 28px); }
  .artefact { width: 200px; height: 240px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { min-height: 0; }
  .step h3 { margin-top: 12px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; justify-content: center; }
  .footer__big-link { gap: 16px; }
  .round-arrow--accent { width: 52px; height: 52px; }
}

/* =========================================================
   UX LAYER — progress, case studies, cursor, FAQ, helpers
   ========================================================= */

/* scroll progress under the nav */
.nav__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; z-index: 1; }
.mobile-menu:not([hidden]) a:nth-child(6) { animation-delay: .2s; }

/* project card: whole card opens the case study */
.project { position: relative; cursor: pointer; }
.project__btn { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.project__btn::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-md); }
.project__btn:focus-visible { outline: none; }
.project__btn:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; }
.project__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .28)); opacity: 0; transition: opacity .4s var(--ease); }
.project:hover .project__frame::after { opacity: 1; }
.work__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.work__track.is-dragging .project { pointer-events: none; }

/* slider progress */
.work__progress { position: relative; height: 2px; margin-top: 32px; background: var(--line); border-radius: 2px; overflow: hidden; }
.work__progress i { position: absolute; inset: 0 auto 0 0; width: var(--w, 30%); background: var(--ink); border-radius: 2px; transform: translateX(var(--x, 0)); transition: width .3s var(--ease); }

/* "View" cursor bubble */
.view-cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 500 13px/1 var(--mono); text-transform: uppercase; pointer-events: none; opacity: 0; scale: .3; transition: opacity .25s var(--ease), scale .35s var(--ease-out); }
.view-cursor.is-on { opacity: 1; scale: 1; }

/* case study dialog */
.case { width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); overflow: hidden; overscroll-behavior: contain; }
.case::backdrop { background: rgb(10 10 10 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.case[open] { animation: caseIn .5s var(--ease-out); }
.case[open]::backdrop { animation: fadeIn .4s var(--ease); }
.case__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); max-height: calc(100dvh - 48px); }
.case__media { background: var(--panel); min-height: 0; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { display: flex; flex-direction: column; gap: 18px; padding: 32px; overflow-y: auto; }
.case__top { display: flex; justify-content: space-between; align-items: center; }
.case__title { font: 500 clamp(30px, 3.4vw, 46px)/1 var(--display); font-variation-settings: "wdth" 86; letter-spacing: -0.035em; text-transform: uppercase; text-wrap: balance; }
.case__desc { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.case__label { font: 500 11px/1 var(--mono); text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.case__stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.case__stack li { font-size: 13px; padding: 8px 12px; border-radius: 99px; background: var(--bg); }
.case__actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.case__nav { display: flex; align-items: center; gap: 8px; }
.case__count { min-width: 48px; text-align: center; font: 500 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.case__media img.is-swapping, .case__body.is-swapping > * { opacity: 0; }
.case__media img, .case__body > * { transition: opacity .25s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }

/* heading reveal (only when JS runs and motion is allowed) */
.js [data-reveal] { clip-path: inset(0 0 100% 0); transform: translateY(30px); transition: clip-path 1s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].is-in { clip-path: inset(0 0 -10% 0); transform: none; }

/* magnetic targets move with the CSS translate property */
[data-magnetic] { transition: translate .4s var(--ease-out), transform .35s var(--ease-out), background-color .25s var(--ease), color .25s var(--ease); }

/* FAQ */
.faq { padding: 0 0 clamp(80px, 10vw, 140px); }
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start; padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.faq__lead { margin-top: 24px; color: var(--ink-2); max-width: 36ch; }
.faq__lead a { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; transition: color .2s; }
.faq__lead a:hover { color: var(--accent); }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 500 clamp(18px, 1.6vw, 22px)/1.3 var(--text); letter-spacing: -0.01em; transition: color .2s; touch-action: manipulation; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }
.qa__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .25s, border-color .25s, transform .4s var(--ease-out); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .4s var(--ease-out); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(180deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa p { padding: 0 64px 26px 0; color: var(--ink-2); max-width: 62ch; }
.qa[open] p { animation: rise .45s var(--ease-out); }

/* copy email */
.contact__email { display: flex; align-items: center; gap: 12px; }
.contact__email a { flex: 1; }
.copy-btn { height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid #cfc9be; font: 500 11px/1 var(--mono); text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s, transform .2s; touch-action: manipulation; }
.copy-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.copy-btn:active { transform: scale(.95); }

/* back to top */
.to-top { display: inline-flex; gap: 8px; font: 500 12px/1 var(--mono); text-transform: uppercase; color: #d9d6cf; padding: 10px 0; transition: color .2s; }
.to-top:hover { color: var(--accent); }
.to-top span { transition: transform .3s var(--ease-out); }
.to-top:hover span { transform: translateY(-3px); }

/* floating WhatsApp */
.wa-float { position: fixed; z-index: 45; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 16px 32px -12px rgb(0 0 0 / .45); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s var(--ease), transform .45s var(--ease-out), background-color .25s; }
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: #25d366; }
.wa-float svg { flex: none; }
.wa-float__label { font-size: 14px; font-weight: 500; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease-out); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 160px; }

/* toast */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; translate: -50% 0; padding: 12px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--ease-out); }
.toast.is-on { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .faq__grid { grid-template-columns: 1fr; }
  .qa p { padding-right: 0; }
  .case__inner { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .case__media { aspect-ratio: 4 / 3; }
  .case__body { overflow: visible; padding: 24px; }
}
@media (max-width: 640px) {
  .case { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .case__inner { max-height: 100dvh; height: 100%; }
  .case__actions .btn { width: 100%; justify-content: center; }
  .case__nav { width: 100%; justify-content: space-between; }
  .wa-float { height: 52px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { clip-path: none; transform: none; }
}

/* =========================================================
   SERVICE PAGES (/web-development/, /mobile-app-development/, /ai-agent-development/)
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs ol { display: contents; list-style: none; }

.sp-hero { padding: calc(var(--nav) + clamp(32px, 5vw, 72px)) 0 clamp(56px, 7vw, 96px); }
.sp-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 64px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.sp-title {
  font: 500 clamp(42px, 6.6vw, 100px)/.92 var(--display);
  font-variation-settings: "wdth" 80; letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance;
}
.sp-lead { margin-top: 28px; max-width: 52ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.sp-link { font: 500 14px/1 var(--mono); text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.sp-link:hover { color: var(--accent-text); }
.sp-media { border-radius: var(--r-lg); overflow: hidden; background: var(--panel); aspect-ratio: 1; }
.sp-media img { width: 100%; height: 100%; object-fit: cover; }
.sp-facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.sp-facts li { padding: 22px 24px 0 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 15px; }
.sp-facts b { font: 500 clamp(26px, 3vw, 40px)/1 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink); }

.sp-section { padding: clamp(72px, 9vw, 128px) 0; }
.sp-section--dark { background: var(--dark); color: #fff; }
.sp-section--dark .sp-prose p, .sp-section--dark .sp-card p { color: #c9c6bf; }
.sp-section--dark .sp-card { background: var(--dark-2); border-color: var(--dark-line); }
.sp-section--dark .eyebrow { color: var(--accent); }
.sp-section--panel { background: var(--panel); }
.sp-intro { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 64px; align-items: start; }
.sp-prose p { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.sp-prose p + p { margin-top: 16px; }
.sp-prose ul { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); }
.sp-prose li + li { margin-top: 6px; }

.sp-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(36px, 4.5vw, 64px); }
.sp-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-md); background: var(--surface); border: 1px solid #ebe8e1; }
.sp-card__num { font: 500 13px/1 var(--mono); color: var(--accent-text); }
.sp-section--dark .sp-card__num { color: var(--accent); }
.sp-card h3 { font: 500 24px/1.05 var(--display); font-variation-settings: "wdth" 88; letter-spacing: -0.03em; text-transform: uppercase; margin-top: 8px; }
.sp-card p { color: var(--ink-2); font-size: 15px; }

.sp-stack { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sp-stack li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px; background: var(--surface); border: 1px solid #ebe8e1; font: 600 15px/1 var(--display); font-variation-settings: "wdth" 90; letter-spacing: -0.01em; color: var(--ink-2); }
.sp-stack .logo { width: 18px; height: 18px; }

.sp-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(36px, 4.5vw, 64px); }
.sp-proj h3 { margin-top: 18px; font: 500 22px/1.1 var(--display); font-variation-settings: "wdth" 90; letter-spacing: -0.02em; text-transform: uppercase; }
.sp-proj p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.sp-proj .project__tag { display: block; margin-top: 10px; }
.sp-section--panel .project__tag { color: #5f5c56; }

.sp-quote { margin-top: clamp(36px, 4.5vw, 56px); max-width: 60ch; font: 400 clamp(20px, 2vw, 26px)/1.45 var(--text); letter-spacing: -0.01em; text-wrap: pretty; }
.sp-quote footer { margin-top: 16px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; color: var(--muted); }

.sp-others { list-style: none; padding: 0; margin-top: clamp(28px, 3.5vw, 48px); border-top: 1px solid var(--line); }
.sp-others li { border-bottom: 1px solid var(--line); }
.sp-others a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; transition: color .2s; }
.sp-others a:hover { color: var(--accent-text); }
.sp-others b { font: 500 clamp(26px, 3.4vw, 48px)/1 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -0.035em; text-transform: uppercase; }
.sp-others span { color: var(--ink-2); max-width: 40ch; text-align: right; font-size: 15px; }

.svc__more { grid-column: 3; justify-self: start; display: inline-block; margin-top: 4px; font: 500 13px/1 var(--mono); text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.svc__more:hover { color: var(--accent-text); }

@media (max-width: 1100px) {
  .sp-grid, .sp-work { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .svc__more { grid-column: 1; }
  .sp-hero__grid, .sp-intro { grid-template-columns: 1fr; }
  .sp-media { aspect-ratio: 4 / 3; }
  .sp-others span { display: none; }
}
@media (max-width: 640px) {
  .sp-grid, .sp-work, .sp-facts { grid-template-columns: 1fr; }
  .sp-facts li { padding: 18px 0 0; }
  .sp-lead { font-size: 16px; }
}

/* ---------- nav: services dropdown ---------- */
.nav__drop { position: relative; display: flex; align-items: center; }
.nav__drop-btn { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -10px; color: var(--ink-2); border-radius: 6px; transition: color .2s; }
.nav__drop-btn svg { transition: transform .25s var(--ease-out); }
.nav__drop:hover .nav__drop-btn, .nav__drop.is-open .nav__drop-btn { color: var(--ink); }
.nav__drop:hover .nav__drop-btn svg, .nav__drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 5; min-width: 300px;
  display: grid; gap: 2px; padding: 8px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid #ebe8e1; box-shadow: 0 24px 48px -24px rgb(0 0 0 / .3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility 0s .25s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.nav__drop:hover .nav__menu, .nav__drop.is-open .nav__menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility 0s;
}
.nav__links .nav__menu a { display: grid; gap: 4px; padding: 12px 14px; border-radius: 8px; color: var(--ink); transition: background-color .2s; }
.nav__links .nav__menu a::after { display: none; }
.nav__links .nav__menu a:hover, .nav__links .nav__menu a[aria-current="page"] { background: var(--bg); }
.nav__menu b { font: 500 15px/1.2 var(--text); }
.nav__menu span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.nav__menu a:hover b { color: var(--accent-text); }

/* ---------- mobile menu: service pages ---------- */
.mobile-menu__sub { display: grid; padding: 6px 0 10px 18px; border-bottom: 1px solid var(--line); }
.mobile-menu__inner .mobile-menu__sub a { padding: 10px 0; border: 0; font: 500 17px/1.2 var(--text); font-variation-settings: normal; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.mobile-menu__sub a[aria-current="page"] { color: var(--accent-text); }

/* ---------- home: links to the service pages ---------- */
.svc-pages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.svc-pages a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); font: 500 14px/1 var(--text); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.svc-pages a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.mobile-menu__inner a:has(+ .mobile-menu__sub) { border-bottom: 0; }
