/* =========================================================
   NK Programming — design system
   ---------------------------------------------------------
   Type:   Geologica (text + headings, variable wght/slnt/SHRP/CRSV)
           Martian Mono (wordmark, numbers) · JetBrains Mono (code labels)
   Colour: #0a0a0a / #f2f2ee / #ccff00
   Space:  4px base — every value below is a multiple of it
   ========================================================= */

:root {
  /* colour */
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --fg: #f2f2ee;
  --fg-2: #b4b4ae;
  --muted: #7d7d78;
  --line: rgba(242, 242, 238, .1);
  --line-2: rgba(242, 242, 238, .2);
  --accent: #ccff00;
  --ink: #0a0a0a;

  /* type */
  --f-display: "Geologica", system-ui, sans-serif;
  --f-body: "Geologica", system-ui, sans-serif;
  --f-brand: "Martian Mono", "JetBrains Mono", ui-monospace, monospace;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --t-label: .6875rem;                                   /* 11px */
  --t-small: .875rem;                                    /* 14px */
  --t-body: clamp(1rem, .95rem + .18vw, 1.125rem);       /* 16 → 18 */
  --t-lead: clamp(1.125rem, 1rem + .45vw, 1.375rem);     /* 18 → 22 */
  --t-h3: clamp(1.375rem, 1.05rem + 1.1vw, 2rem);        /* 22 → 32 */
  --t-statement: clamp(1.875rem, 1rem + 3.2vw, 4.25rem); /* 30 → 68 */
  --t-h2: clamp(3rem, 1.1rem + 6.6vw, 8.5rem);           /* 48 → 136 */

  /* space */
  --gutter: max(clamp(1.25rem, 3.6vw, 3.5rem), calc((100vw - 1760px) / 2));
  --section: clamp(6rem, 3rem + 9vw, 12rem);
  --gap: clamp(1rem, .5rem + 1.6vw, 2rem);
  --nav-h: 5.5rem;
  --app-h: 100svh; /* replaced by a fixed pixel height from index.html */

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; touch-action: manipulation; }
/* the page itself never scrolls sideways (only the projects and prices carousels do) */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
main { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  overflow-x: hidden;
}
/* line breaks: no lonely word at the end of a paragraph, headings split into even lines */
p, li, blockquote, .svc__desc, .step__desc, .plan__for { text-wrap: pretty; }
h2, h3, .big-title, .faq__qt, .plan__name, .cform__title, .card__title { text-wrap: balance; }
body.is-loading { overflow: hidden; height: 100vh; height: var(--app-h); }
::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); position: relative; flex-shrink: 0;
}
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------
   FX layers
   --------------------------------------------------------- */

.grain {
  position: fixed; inset: -8%; width: 116%; height: 116%;
  z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(4%, 3%); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 110; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------
   Loader
   --------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 300; pointer-events: all; overflow: hidden; }
.loader__bg { position: absolute; inset: 0; background: var(--bg); }
.loader__wall { position: absolute; inset: 0; overflow: hidden; }
.wall-row {
  position: absolute; left: 0; white-space: nowrap;
  font-family: var(--f-brand); font-weight: 800; line-height: 1;
  letter-spacing: -.04em; text-transform: uppercase;
  color: rgba(242, 242, 238, .045);
  transition: color .5s var(--ease);
  will-change: transform;
}
.wall-row b { font-weight: inherit; color: rgba(242, 242, 238, .08); transition: color .5s var(--ease); }
.wall-row.is-lit { color: rgba(242, 242, 238, .1); }
.wall-row.is-lit b { color: var(--accent); }

.loader__brand {
  position: absolute; left: 0; top: 0;
  font-family: var(--f-brand); font-weight: 800;
  line-height: .9; letter-spacing: -.04em;
  will-change: transform;
}
.loader__brand .char.is-enc { color: #3a3a37 !important; text-shadow: none !important; }

.loader__top, .loader__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.loader__top { top: 1.75rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.loader__task { display: inline-flex; align-items: center; gap: .625rem; color: var(--fg); }
.loader__task i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink .8s steps(2) infinite; }
.loader__task b { font-weight: 400; min-width: 18ch; }
.loader__bottom { bottom: 1.75rem; align-items: flex-end; }
.loader__count {
  font-family: var(--f-brand); font-weight: 800;
  font-size: clamp(3.5rem, 2rem + 6vw, 8.5rem);
  line-height: .78; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.loader__count::after { content: '%'; margin-left: .04em; }
.loader__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; width: min(20rem, 40vw); color: var(--muted); padding-bottom: .25rem; }
.loader__file { color: var(--fg); text-transform: none; letter-spacing: .02em; }
.loader__bar { width: 100%; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  --nfg: var(--fg);
  transition: transform .7s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,10,.9), rgba(10,10,10,0));
  opacity: 0; transition: opacity .5s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-light { --nfg: var(--ink); }
.nav.is-light::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-110%); }
.menu-open .nav { --nfg: var(--fg); transform: none; }

.nav__logo { display: flex; align-items: center; gap: .875rem; justify-self: start; }
.nav__logo svg { width: 36px; }
.nav__logo path { stroke: var(--nfg); stroke-width: 9; stroke-linecap: square; transition: stroke .5s; }
.nav__logo .mono { font-size: .625rem; line-height: 1.3; color: var(--nfg); transition: color .5s; }
.nav__logo .mono b { font-weight: inherit; }
.nav__logo .mono i { font-style: normal; }
.nav__logo .mono em { display: none; font-style: normal; }

.nav__links { display: flex; gap: .25rem; }
.nav__links a {
  position: relative; padding: .625rem 1rem; border-radius: 100px;
  color: var(--nfg); transition: color .5s, background-color .4s;
}
.nav__links a::before {
  content: ""; position: absolute; left: .375rem; top: 50%; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .5s var(--ease);
}
.nav__links a.is-active::before { transform: scale(1); }
.nav__links a:hover { background: rgba(242,242,238,.07); }
.nav.is-light .nav__links a:hover { background: rgba(10,10,10,.06); }
.nav.is-light .nav__links a.is-active::before { background: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 1.25rem; justify-self: end; }
.lang { display: flex; gap: .375rem; align-items: center; color: var(--muted); }
.lang button { font-size: inherit; letter-spacing: inherit; color: var(--muted); padding: .375rem .25rem; transition: color .3s; }
.lang button.is-active, .lang button:hover { color: var(--nfg); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--nfg);
  transition: transform .6s var(--ease), top .6s var(--ease), background-color .5s;
}
.burger i:first-child { top: 18px; }
.burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--bg);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.menu__links b {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 3.5rem); line-height: 1; letter-spacing: -.03em;
}
.menu__links .mono { color: var(--accent); }
.menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: env(safe-area-inset-bottom); }
.menu__row { display: flex; justify-content: space-between; align-items: center; color: var(--fg); }
.menu__row .lang button { font-size: var(--t-label); }
.menu__cta { width: 100%; height: 3.5rem; }
.menu__mail { color: var(--muted); text-transform: none; letter-spacing: .02em; text-align: center; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  height: 3.25rem; padding: 0 1.5rem; border-radius: 100px; overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; text-transform: none; white-space: nowrap;
  transition: color .5s var(--ease);
}
.btn--sm { height: 2.75rem; padding: 0 1.125rem; }
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: none; }
.btn__arrow { display: inline-block; transition: transform .6s var(--ease); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent::before { background: var(--fg); }
.nav.is-light .btn--accent::before { background: var(--ink); }
.nav.is-light .btn--accent:hover { color: var(--accent); }
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--ink); }

.round-btn {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); font-size: 1.125rem;
  transition: background-color .4s var(--ease), color .4s, box-shadow .4s, transform .5s var(--ease);
}
.round-btn:hover { background: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.round-btn:active { transform: scale(.92); }

/* ---------------------------------------------------------
   Layout primitives
   --------------------------------------------------------- */
main { position: relative; z-index: 2; }
section { position: relative; }
.section { padding: var(--section) var(--gutter); }

.section-label {
  display: flex; align-items: center; gap: .875rem;
  color: var(--muted); margin-bottom: 1.5rem;
}
.sl-num { color: var(--accent); font-variant-numeric: tabular-nums; }
.sl-line { width: 2.5rem; height: 1px; background: var(--line-2); }

.big-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: var(--t-h2); line-height: .88; letter-spacing: -.03em;
  margin-left: -.04em;
}
.big-title sup {
  font-size: var(--t-label); letter-spacing: .08em; color: var(--accent);
  vertical-align: top; margin-left: .75rem; position: relative; top: .5em;
}
[data-wght], .contact__title {
  font-variation-settings: "wght" var(--w, 800), "slnt" var(--sl, 0), "SHRP" var(--sh, 100);
}

.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.sec-head__aside { max-width: 22rem; color: var(--fg-2); padding-bottom: .5rem; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: var(--app-h);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + clamp(2rem, 1rem + calc(var(--app-h) * 0.04), 5rem)) var(--gutter) 1.75rem;
  overflow: hidden;
}
.hero__content {
  width: min(40rem, 50%);
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative; z-index: 2;
}
.hero__kicker { display: inline-flex; gap: .625rem; color: var(--fg-2); text-transform: none; letter-spacing: .02em; font-size: .8125rem; }
.tok-c { color: var(--accent); }

.hero__headline {
  margin-top: 1.5rem;
  font-family: var(--f-body); font-weight: 500;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.75rem);
  line-height: 1.06; letter-spacing: -.03em;
}
.hl { display: block; }
.hl--dim { color: var(--muted); }
.rot {
  position: relative; display: inline-block; isolation: isolate;
  font-family: var(--f-brand); font-weight: 700;
  font-size: .8em; letter-spacing: -.03em;
  color: var(--accent);
  padding: 0 .1em; margin-left: -.05em;
  transition: color .2s;
}
.rot__sel {
  position: absolute; left: 0; right: 0; top: .1em; bottom: -.04em; z-index: -1;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.rot__txt { position: relative; z-index: 1; }
.rot.is-selected, .rot.is-selected .rot__txt { color: var(--ink); }
.hl { white-space: nowrap; }
.rot-line { white-space: nowrap; }
.rot__caret {
  display: inline-block; width: .06em; height: .8em; margin-left: .04em;
  background: var(--accent); vertical-align: -.04em;
  animation: blink 1s steps(2) infinite;
}
.rot.is-typing + .rot__caret { animation: none; opacity: 1; }
.rot.is-selected + .rot__caret { opacity: 0; }

.hero__desc {
  margin-top: 1.75rem; max-width: 30rem;
  font-size: var(--t-lead); line-height: 1.5; color: var(--fg-2);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

/* the big wordmark is not shown any more — it stays as the template the loader's wordmark is built from */
.hero__brand {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5rem;
  visibility: hidden !important; pointer-events: none;
  font-family: var(--f-brand); font-weight: 800;
  line-height: .9; letter-spacing: -.04em;
}
.hero__brand-line { display: inline-block; white-space: nowrap; font-size: 9vw; margin-left: -.05em; }
.hero__brand .char, .loader__brand .char {
  font-variation-settings: "wght" var(--w, 800);
  transition: font-variation-settings .6s var(--ease);
}
.hb-gap { display: inline-block; width: .26em; }
.hb-tail { white-space: nowrap; }
.hb-outline .char {
  color: var(--bg);
  text-shadow: 1.4px 0 0 var(--fg), -1.4px 0 0 var(--fg), 0 1.4px 0 var(--fg), 0 -1.4px 0 var(--fg),
               1px 1px 0 var(--fg), -1px 1px 0 var(--fg), 1px -1px 0 var(--fg), -1px -1px 0 var(--fg);
}
.hb-caret { display: inline-block; color: var(--accent); margin-left: .02em; animation: blink 1s steps(2) infinite; }

.char { display: inline-block; }
.char-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .01em 0; margin-top: -.06em; }

/* desktop: the copy sits in the middle of the screen, the stack to its right */
@media (min-width: 901px) {
  .hero__content { margin-block: auto; }
}

/* ---------- hero visual: the exploded website (CSS 3D, see js/stack.js) ---------- */
.stack {
  position: absolute; z-index: 0; right: 0; top: var(--nav-h); bottom: 5rem; width: 54%;
  pointer-events: none; perspective: calc(var(--sw, 500px) * 3);
}
.stack__rig {
  position: absolute; left: 50%; top: 50%;
  width: var(--sw); height: calc(var(--sw) * .625);
  margin: calc(var(--sw) * -.3125) 0 0 calc(var(--sw) * -.5);
  transform-style: preserve-3d;
  transform: rotateX(calc(57deg - var(--my, 0) * 6deg)) rotateZ(calc(-36deg + var(--mx, 0) * 12deg));
  transition: transform 1.4s var(--ease);
}
.sl { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc((var(--i) - 1.5) * var(--sw) * .27)); }
.sl__b { position: absolute; inset: 0; transform-style: preserve-3d; animation: sl-breathe 6s ease-in-out calc(var(--i) * -1.5s) infinite; }
@keyframes sl-breathe { 0%, 100% { transform: translateZ(calc(var(--sw) * -.012)); } 50% { transform: translateZ(calc(var(--sw) * .012)); } }
.sl__in {
  position: absolute; inset: 0; opacity: 0;
  transform: translateZ(calc(var(--sw) * -.75)) rotateZ(32deg);
  transition: opacity 1.2s var(--ease) calc(var(--i) * .16s), transform 1.9s var(--ease) calc(var(--i) * .16s);
}
.stack.is-in .sl__in { opacity: var(--dim, 1); transform: none; }
.sl__c {
  position: absolute; left: 0; top: 0; width: 1024px; height: 640px;
  transform: scale(var(--k)); transform-origin: 0 0;
  border-radius: 18px; overflow: hidden;
  background: radial-gradient(rgba(242,242,238,.07) 1px, transparent 1.6px) 24px 90px / 32px 32px, rgba(12,12,12,.78);
  box-shadow: inset 0 0 0 2px rgba(242,242,238,.3);
  font-family: var(--f-mono); color: #8b8b86; text-transform: none; letter-spacing: 0;
}
.sl--3 .sl__c { box-shadow: inset 0 0 0 2px rgba(204,255,0,.9); }
.sl__head {
  position: absolute; left: 0; right: 0; top: 0; height: 72px; padding: 0 28px;
  display: flex; align-items: center; gap: 28px;
  font-size: 22px; font-weight: 500; color: var(--fg); border-bottom: 2px solid rgba(242,242,238,.12);
}
.sl__head b { color: var(--accent); font-weight: 500; }
.sl__head i { margin-left: auto; font-style: normal; color: #6b6b67; }
.sl__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sl__svg text { font-family: var(--f-mono); }
.sl__svg .t-name { font-size: 22px; font-weight: 500; fill: var(--fg); }
.sl__svg .t-col { font-size: 18px; fill: #c9c9c3; }
.sl__svg .t-type { font-size: 18px; fill: #6b6b67; }
.sl__svg .t-type.is-k { fill: var(--accent); }
.sl__svg .t-logo { font-family: var(--f-brand); font-size: 26px; font-weight: 800; fill: var(--fg); }
.sl__svg .t-hero { font-family: var(--f-brand); font-size: 58px; font-weight: 800; fill: var(--fg); }
html:lang(bg) .sl .l-en, html:not(:lang(bg)) .sl .l-bg { display: none; }
.sl-db__q {
  position: absolute; left: 64px; right: 64px; top: 470px; height: 64px;
  display: flex; align-items: center; font-size: 19px; white-space: pre;
}
.sl-db__q b { margin-left: auto; color: var(--accent); font-weight: 400; }
.sl-db__meta { position: absolute; left: 40px; top: 570px; font-size: 17px; color: #6b6b67; }
.sl-code { position: absolute; left: 0; right: 0; top: 89px; font-size: 21px; line-height: 38px; }
.ln { position: relative; display: flex; height: 38px; align-items: center; white-space: pre; }
.ln__no { width: 50px; margin-right: 28px; text-align: right; color: #3d3d3a; flex: none; }
.stack.is-typing .ln__t { clip-path: inset(-4px calc(100% - var(--c, 0) * 1ch) -4px -4px); }
.ln.is-cur::after {
  content: ''; position: absolute; top: 6px; left: calc(81px + var(--c, 0) * 1ch);
  width: 12px; height: 26px; background: var(--accent); animation: blink 1s steps(2) infinite;
}
.sl__status {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52px; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; color: #6b6b67; border-top: 2px solid rgba(242,242,238,.12);
}
.sl__build { color: var(--accent); }
.sl__build.is-off { color: #6b6b67; }
/* the interface layer: a cursor wanders over, clicks the button, wanders off — on a 4 s loop */
.sl-ui__btn {
  position: absolute; left: 44px; top: 382px; width: 210px; height: 58px; padding-left: 26px;
  display: flex; align-items: center; border-radius: 29px;
  background: var(--accent); color: var(--ink); font-size: 19px; font-weight: 500;
  animation: ui-press 4s infinite;
}
@keyframes ui-press { 0%, 58.7%, 65.1%, 100% { background: var(--accent); } 58.8%, 65% { background: var(--fg); } }
.sl-ui__ring {
  position: absolute; left: 114px; top: 336px; width: 160px; height: 160px;
  border: 3px solid var(--accent); border-radius: 50%; opacity: 0;
  animation: ui-ring 4s infinite;
}
@keyframes ui-ring {
  0%, 58.7% { opacity: 0; transform: scale(.125); }
  58.8% { opacity: 1; transform: scale(.125); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  82.5%, 100% { opacity: 0; transform: scale(1); }
}
.sl-ui__cursor { position: absolute; left: 0; top: 0; width: 31px; height: 45px; animation: ui-cursor 4s ease-in-out infinite; }
@keyframes ui-cursor {
  0% { transform: translate(860px, 560px); }
  27.5% { transform: translate(700px, 250px); }
  57.5% { transform: translate(194px, 414px); }
  59%, 65% { transform: translate(194px, 414px) scale(.85); }
  67%, 75% { transform: translate(194px, 414px); }
  100% { transform: translate(520px, 540px); }
}
/* posts between the layers, with data packets running up them */
.post {
  position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%);
  width: 1px; height: calc(var(--sw) * .81); background: rgba(242,242,238,.16);
  transform-origin: 0 0; transform: translateZ(calc(var(--sw) * -.405)) rotateX(90deg);
  opacity: 0; transition: opacity 1s ease .9s;
}
.stack.is-in .post { opacity: 1; }
.post i {
  position: absolute; left: -6px; top: -6px; width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle, #f6ffd0 0 22%, rgba(204,255,0,.6) 34%, rgba(204,255,0,0) 70%);
  animation: pk var(--d) linear var(--o) infinite;
}
@keyframes pk { from { transform: translateY(0); } to { transform: translateY(calc(var(--sw) * .81)); } }
/* a few code glyphs drifting through the hero */
.stack-glyphs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.stack-glyphs span {
  position: absolute; font-family: var(--f-mono); font-size: calc(var(--s) * 1.125rem);
  color: rgba(242,242,238,var(--a)); animation: glyph-up var(--d) linear var(--o) infinite;
}
.stack-glyphs .is-acc { color: rgba(204,255,0,calc(var(--a) + .2)); }
@keyframes glyph-up {
  0% { transform: translateY(calc(var(--app-h) * 0.18)); opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { transform: translateY(calc(var(--app-h) * -0.18)); opacity: 0; }
}
/* asleep while the hero is off screen; calmer on weaker machines */
.stack.is-paused *, .hero:has(.stack.is-paused) .stack-glyphs span { animation-play-state: paused !important; }
.lite .sl__b { animation: none; }

.hero__status { display: inline-flex; align-items: center; gap: .625rem; color: var(--fg); }


/* ---------------------------------------------------------
   Marquee
   --------------------------------------------------------- */
.marquee {
  overflow: hidden; padding: 1.75rem 0;
  border-block: 1px solid var(--line);
  background: rgba(10,10,10,.82);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; flex-shrink: 0; }
.marquee__row span {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.75rem); letter-spacing: -.02em;
  padding: 0 2.25rem; white-space: nowrap;
}
.marquee__row em { font-style: normal; color: var(--accent); font-size: clamp(.875rem, .6rem + 1vw, 1.5rem); }

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.about .section-label { grid-column: 1 / 4; align-self: start; margin-top: .75em; }
.about__text {
  grid-column: 4 / 13;
  font-weight: 500; font-size: var(--t-statement);
  line-height: 1.12; letter-spacing: -.025em;
  text-wrap: pretty;
}
.about__text em { font-style: normal; color: var(--accent); }
.about__text em .punct { color: var(--fg); }
.about__text .word { display: inline-block; }
.about__more { display: block; margin-top: 1.1em; }

.stats {
  grid-column: 1 / 13;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(4rem, 2rem + 6vw, 8rem);
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 1rem; padding: 2rem var(--gap) 0 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: var(--gap); }
.stat b {
  font-family: var(--f-brand); font-weight: 700;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 6rem); line-height: 1; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.stat sup { color: var(--accent); font-size: .42em; vertical-align: top; position: relative; top: .1em; margin-left: .06em; }
.stat .mono { color: var(--muted); max-width: 20ch; }

/* ---------------------------------------------------------
   Work
   --------------------------------------------------------- */
.work { padding-top: var(--section); min-height: 100vh; min-height: var(--app-h); display: flex; flex-direction: column; overflow: hidden; }
.work .sec-head { padding: 0 var(--gutter); margin-bottom: 0; }
.work__progress { display: flex; align-items: center; gap: .875rem; color: var(--muted); padding-bottom: .75rem; }
.work__cur { color: var(--fg); font-variant-numeric: tabular-nums; }
.work__bar { width: 8rem; height: 1px; background: var(--line-2); position: relative; }
.work__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* light panel, like services — the screenshots pop on white */
.work {
  background: var(--fg); color: var(--ink);
  clip-path: inset(0 var(--inset, 0px) round var(--radius, 0px));
}
.work .section-label { color: #6d6d68; }
.work .sl-num { color: var(--ink); background: var(--accent); padding: .125rem .375rem; border-radius: 3px; }
.work .sl-line { background: rgba(10,10,10,.2); }
.work .big-title sup { color: #6d6d68; }
.work .work__progress { color: #7a7a74; }
.work .work__cur { color: var(--ink); }
.work .work__bar { background: rgba(10,10,10,.14); }
.work .work__bar i { background: var(--ink); }
.work {
  background-image: radial-gradient(rgba(10,10,10,.09) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: center top;
}
.work .card__media {
  border-radius: .875rem;
  box-shadow: 0 0 0 1px rgba(10,10,10,.08), 0 1.5rem 3rem -1.75rem rgba(10,10,10,.4);
  transition: translate .7s var(--ease), box-shadow .7s var(--ease);
}
.work .card:hover .card__media {
  translate: 0 -.5rem;
  box-shadow: 0 0 0 1px rgba(10,10,10,.1), 0 2.5rem 4.5rem -2rem rgba(10,10,10,.5);
}
.work .card__browser { background: #e8e8e3; border-bottom-color: rgba(10,10,10,.08); backdrop-filter: none; -webkit-backdrop-filter: none; }
.work .card__browser i:nth-child(1) { background: #ff5f57; }
.work .card__browser i:nth-child(2) { background: #febc2e; }
.work .card__browser i:nth-child(3) { background: #28c840; }
.work .card__browser span { color: #6d6d68; }
.work .card__cover:has(img) { background: #e8e8e3; }
.work .card--cta .card__media { box-shadow: none; }
.work .card__meta { border-bottom-color: rgba(10,10,10,.14); }
.work .card__num { color: #7a7a74; }
.work .card__go { box-shadow: inset 0 0 0 1px rgba(10,10,10,.2); }
.work .card:hover .card__go { background: var(--ink); color: var(--accent); }
.work .card__info { color: #7a7a74; }
.work .card__soon { color: var(--ink); }
/* "Online": a solid green pill with a live, pulsing dot — it should read at a glance */
.work .card__badge--live {
  color: #0f5a12; font-weight: 600; letter-spacing: .1em;
  padding: .4375rem .75rem .4375rem .625rem;
  background: #dff5d6; box-shadow: inset 0 0 0 1px rgba(46,160,42,.35);
}
.work .card__badge--live i {
  position: relative; width: 8px; height: 8px; background: #22a51c; box-shadow: none;
}
.work .card__badge--live i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22a51c;
  animation: live-ping 1.8s var(--ease) infinite;
}
@keyframes live-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.work .card__badge--concept { color: #6d6d68; box-shadow: inset 0 0 0 1px rgba(10,10,10,.18); background-image: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(10,10,10,.06) 4px 5px); }

.work__viewport { flex: 1; display: flex; align-items: center; padding: 3rem 0 4rem; }
.work__track { display: flex; gap: clamp(1rem, .5rem + 1.4vw, 2rem); padding: 0 var(--gutter); will-change: transform; }

.card { flex: 0 0 auto; width: clamp(18rem, 12rem + 24vw, 36rem); perspective: 1200px; }
.card__link { display: block; }
.card__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 1rem; overflow: hidden;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transform-style: preserve-3d; will-change: transform;
}
.card__browser {
  position: absolute; top: 0; left: 0; right: 0; height: 2rem; z-index: 3;
  display: flex; align-items: center; gap: 6px; padding: 0 .875rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,10,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card__browser i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a2a; }
.card__browser span { margin-left: .5rem; font-family: var(--f-mono); font-size: .625rem; color: var(--muted); letter-spacing: .04em; }
.card__cover {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 75% 45%, #1b1b1b 0%, #0d0d0d 60%);
  transition: transform 1.2s var(--ease);
}
.card__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__cover img {
  position: absolute; inset: 2rem 0 0; width: 100%; height: calc(100% - 2rem); object-fit: cover; object-position: top;
  transition: filter .8s var(--ease);
}
.card__initials {
  position: absolute; left: 1.25rem; bottom: 1rem; z-index: 2;
  font-family: var(--f-brand); font-weight: 800;
  font-size: clamp(3.5rem, 2rem + 4vw, 6.5rem); line-height: .9; letter-spacing: -.02em;
  color: #141414;
  text-shadow: 1px 0 0 rgba(242,242,238,.45), -1px 0 0 rgba(242,242,238,.45), 0 1px 0 rgba(242,242,238,.45), 0 -1px 0 rgba(242,242,238,.45);
  transition: color .6s var(--ease);
}
.card__glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(204,255,0,.16), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.card__visit {
  position: absolute; right: .875rem; bottom: .875rem; z-index: 4;
  padding: .5rem .875rem; border-radius: 100px; background: var(--accent); color: var(--ink); font-family: var(--f-display); font-size: .875rem; font-weight: 700; letter-spacing: -.01em; text-transform: none;
  transform: translateY(.75rem) scale(.9); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.card:hover .card__glow, .card:hover .card__visit { opacity: 1; }
.card:hover .card__visit { transform: none; }
.card:hover .card__cover { transform: scale(1.02); }
.card:hover .card__initials { color: var(--fg); }

.card__meta {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem;
  padding: 1.25rem 0 1rem; border-bottom: 1px solid var(--line);
}
.card__num { color: var(--accent); }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.0625rem, .9rem + .5vw, 1.375rem); letter-spacing: -.02em; line-height: 1.15; }
.card__go {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center; font-size: .875rem;
  transition: background-color .5s var(--ease), color .5s, box-shadow .5s, transform .6s var(--ease);
}
.card:hover .card__go { background: var(--accent); color: var(--ink); box-shadow: none; transform: rotate(-45deg); }
.card__idx, .card__cat { display: none; }
.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: .875rem; color: var(--muted); }
.card__soon { color: var(--accent); white-space: nowrap; }
/* live client site vs. concept work: same weight, different look, so concepts read as deliberate, not lesser */
.card__badge { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; padding: .3125rem .625rem; border-radius: 100px; line-height: 1; }
.card__badge--live { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.card__badge--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(204,255,0,.18); }
.card__badge--concept { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); border: 0; background-image: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(242,242,238,.05) 4px 5px); }

/* ---- under construction (`soon: true`) ---- */
.card__build {
  position: absolute; inset: 2rem 0 0; z-index: 2; pointer-events: none; overflow: hidden;
  background: linear-gradient(to bottom, rgba(10,10,10,.2), rgba(10,10,10,.45) 60%, rgba(10,10,10,.8));
}
.build__site {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 6px 14px rgba(0,0,0,.55));
}
.build__sign {
  position: absolute; top: 9%; right: 5%; z-index: 1; transform-origin: 50% 0;
  padding: 4px; border-radius: .5rem;
  background: repeating-linear-gradient(-45deg, #ffc21a 0 8px, #141414 8px 16px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: build-sign 3.2s ease-in-out infinite;
}
.build__sign span {
  display: grid; gap: .2rem; padding: .45rem .8rem; border-radius: .25rem; background: #141414; text-align: center; white-space: nowrap;
}
.build__sign b {
  color: #ffc21a; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(.8125rem, .55rem + .7vw, 1.25rem); line-height: 1;
}
.build__sign small {
  color: rgba(242,242,238,.75); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(.5rem, .4rem + .25vw, .6875rem);
}
.build__tape {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(-45deg, #ffc21a 0 12px, #141414 12px 24px);
  background-size: 34px 8px; animation: build-tape 1.2s linear infinite;
}
.build__site g { transform-box: view-box; }
.build__trolley { animation: build-trolley 7s ease-in-out infinite; }
.build__load { transform-origin: 224px 52px; animation: build-swing 3.5s ease-in-out infinite; }
.build__arm { transform-origin: 430px 196px; animation: build-dig 3s ease-in-out infinite; }
.build__bucket { transform-origin: 328px 182px; animation: build-scoop 3s ease-in-out infinite; }
.build__dirt { opacity: 0; animation: build-dirt 3s ease-in infinite; }
.build__dirt--2 { animation-delay: .15s; }
@keyframes build-sign { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes build-tape { to { background-position: 34px 0; } }
@keyframes build-trolley { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(80px); } }
@keyframes build-swing { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
@keyframes build-dig { 0%, 100% { transform: rotate(0); } 45%, 55% { transform: rotate(-14deg); } }
@keyframes build-scoop { 0%, 100% { transform: rotate(0); } 45%, 55% { transform: rotate(28deg); } }
@keyframes build-dirt { 0%, 55% { opacity: 0; transform: translate(0, 0); } 60% { opacity: 1; } 100% { opacity: 0; transform: translate(-14px, 30px); } }
@media (prefers-reduced-motion: reduce) {
  .card__build *, .build__sign { animation: none !important; }
}

.card--cta .card__media { display: grid; place-items: center; text-align: center; background: var(--accent); color: var(--ink); box-shadow: none; }
.card--cta .card__cta-t { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.75rem, 1rem + 2vw, 3rem); line-height: 1; letter-spacing: -.02em; }
.card--cta .card__cta-a {
  display: inline-grid; place-items: center; width: 4rem; height: 4rem; margin-top: 1.5rem;
  border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 1.375rem;
  transition: transform .6s var(--ease);
}
.card--cta:hover .card__cta-a { transform: rotate(-45deg) scale(1.08); }

/* ---------------------------------------------------------
   Process
   --------------------------------------------------------- */
/* one straight line, drawn by scroll from point to point (path built in js from the dots) */
.process__path { position: relative; }
.process__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.process__svg path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pp-base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 7; }
.pp-line { stroke: var(--accent); stroke-width: 2; }
.process__runner {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 .35rem rgba(204,255,0,.18), 0 0 1.5rem rgba(204,255,0,.7);
  opacity: 0; transition: opacity .4s;
}
.process__runner.is-live { opacity: 1; }

.process__list { list-style: none; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5rem; }
.step { position: relative; }
.step__dot {
  position: absolute; left: 6px; top: .45rem; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
}
.step.is-on .step__dot { background: var(--accent); box-shadow: 0 0 0 7px rgba(204,255,0,.14); transform: scale(1.15); }
.step__body { display: flex; flex-direction: column; gap: .875rem; padding-left: 2.75rem; }
.step__num { color: var(--muted); transition: color .5s var(--ease); }
.step.is-on .step__num { color: var(--accent); }
.step__title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.12; }
.step__title .tc { opacity: 0; }
.step__desc { color: var(--fg-2); line-height: 1.6; max-width: 30rem; }
.step__out { color: var(--muted); }
.step__out::before { content: "→ "; color: var(--accent); }

/* desktop: points zigzag left/right, joined by long straight diagonals through the middle */
@media (min-width: 901px) {
  .process__list { gap: clamp(10rem, calc(var(--app-h) * 0.42), 26rem); padding-bottom: 2rem; }
  .step__dot { top: .5rem; left: 36%; }
  .step:nth-child(even) .step__dot { left: 64%; }
  .step__body { width: 32%; padding: 0; align-items: flex-end; text-align: right; }
  .step:nth-child(even) .step__body { margin-left: 68%; align-items: flex-start; text-align: left; }
  .step__title { font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem); }
}

/* phones / tablets: the same zigzag — the line runs down beside each step as a rail,
   then crosses the whole screen in a long diagonal to the next one on the other side */
@media (max-width: 900px) {
  .process__list { gap: clamp(9rem, calc(var(--app-h) * 0.3), 17rem); padding-bottom: 1rem; }
  .step:nth-child(even) .step__dot { left: calc(100% - 6px); }
  .step__body { gap: .75rem; padding: 0 0 .5rem clamp(1.75rem, 8vw, 3rem); }
  .step:nth-child(even) .step__body { padding: 0 clamp(1.75rem, 8vw, 3rem) .5rem 0; align-items: flex-end; text-align: right; }
  .step__title { font-size: clamp(1.5rem, 1rem + 3.4vw, 2.5rem); overflow-wrap: anywhere; }
  .step__desc { max-width: min(30rem, 100%); }
  .pp-line { stroke-width: 2.5; }
}
@media (max-width: 374px) {
  .process__list { gap: clamp(7rem, calc(var(--app-h) * 0.26), 11rem); }
  .step__body { padding-left: 1.5rem; }
  .step:nth-child(even) .step__body { padding-right: 1.5rem; }
}

/* ---------------------------------------------------------
   Services (light)
   --------------------------------------------------------- */
.services {
  background: var(--fg); color: var(--ink);
  clip-path: inset(0 var(--inset, 0px) round var(--radius, 0px));
}
.services .section-label { color: #6d6d68; }
.services .sl-num { color: var(--ink); background: var(--accent); padding: .125rem .375rem; border-radius: 3px; }
.services .sl-line { background: rgba(10,10,10,.2); }
.services .sec-head__aside { color: #55554f; }
.services__list { border-top: 1px solid rgba(10,10,10,.14); }
.svc {
  position: relative;
  display: grid; grid-template-columns: 4rem minmax(0, 1.25fr) minmax(0, 1fr) 3rem; align-items: center; gap: var(--gap);
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.5rem) 0;
  border-bottom: 1px solid rgba(10,10,10,.14);
  isolation: isolate;
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform .7s var(--ease);
}
.svc > * { transition: color .5s var(--ease), translate .7s var(--ease), rotate .7s var(--ease); }
.svc__num { color: #7a7a74; }
.svc__title {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.625rem, .8rem + 3vw, 4.25rem); line-height: 1; letter-spacing: -.02em;
}
.svc__desc { color: #4d4d48; max-width: 28rem; line-height: 1.6; }
.svc__arrow { font-size: 1.75rem; justify-self: end; }
@media (hover: hover) {
  .svc:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc:hover > * { color: var(--fg); }
  .svc:hover .svc__num { color: var(--accent); }
  .svc:hover .svc__title { translate: 1rem 0; }
  .svc:hover .svc__desc { color: #b4b4ae; }
  .svc:hover .svc__arrow { color: var(--accent); rotate: -45deg; }
}

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
.testi { padding-inline: 0; overflow: hidden; }
.testi .sec-head { padding: 0 var(--gutter); }
.testi__nav { display: flex; gap: .625rem; padding-bottom: .5rem; }
.testi__track {
  display: flex; gap: 1.5rem;
  padding: 0 var(--gutter) .5rem; scroll-padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.testi__track::-webkit-scrollbar { display: none; }
.testi__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tcard {
  flex: 0 0 clamp(18rem, 12rem + 22vw, 32rem); scroll-snap-align: start;
  min-height: 24rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 2rem;
  border-radius: 1.25rem; box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(160deg, rgba(242,242,238,.05), rgba(242,242,238,.01) 60%), rgba(10,10,10,.6);
  transition: box-shadow .5s var(--ease);
  user-select: none;
}
.tcard:hover { box-shadow: inset 0 0 0 1px rgba(204,255,0,.4); }
.tcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.tcard__mark { font-family: var(--f-display); font-weight: 800; font-size: 4.5rem; line-height: .7; color: var(--accent); }
.tcard__num { color: var(--muted); }
.tcard blockquote { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; letter-spacing: -.015em; font-weight: 500; }
.tcard figcaption { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tcard__av {
  width: 3rem; height: 3rem; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--fg); color: var(--ink); font-family: var(--f-brand); font-weight: 700; font-size: .8125rem; letter-spacing: -.02em;
}
.tcard__who { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 0; }
.tcard__who b { font-weight: 600; font-size: 1rem; }
.tcard__who .mono { color: var(--muted); }
.tcard__link {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center; font-size: .875rem;
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.tcard__link:hover { background: var(--accent); color: var(--ink); box-shadow: none; }
.tcard--soon { background: transparent; box-shadow: none; border: 1px dashed var(--line-2); }
.tcard--soon .tcard__mark { color: rgba(242,242,238,.14); }
.tcard--soon blockquote { color: var(--muted); font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 400; }
.tcard__caret { display: inline-block; width: .6em; height: 1.15em; background: var(--accent); vertical-align: -.25em; margin-left: .5em; animation: blink 1s steps(2) infinite; }
.tcard--soon .tcard__av { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------------------------------------------------------
   Pricing
   --------------------------------------------------------- */
.pricing { padding-block: clamp(4.5rem, 2.5rem + 4.5vw, 8rem); }
.pricing .sec-head { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.pricing .big-title { font-size: clamp(2.5rem, 1rem + 4.4vw, 5.5rem); }
.pricing__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1vw, 1.5rem);
  align-items: stretch; padding-top: 1rem;
}
.plan {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #161616, #0f0f0f);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.6);
  transition: box-shadow .6s var(--ease), translate .8s var(--ease);
}
/* a soft light that follows the cursor */
.plan__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(204,255,0,.13), transparent 60%);
  transition: opacity .6s var(--ease);
}
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 1.75rem; }
.plan__n { color: var(--muted); }
.plan__name {
  margin-top: clamp(1.25rem, .75rem + 1.2vw, 2rem);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.375rem, .9rem + 1vw, 1.875rem); line-height: 1.04; letter-spacing: -.015em;
  min-height: 2.08em; /* two lines everywhere, so the prices line up across the cards */
  display: flex; align-items: flex-end;
}
.plan__for { margin-top: .625rem; color: var(--fg-2); font-size: .9375rem; line-height: 1.5; letter-spacing: .005em; min-height: 3em; }
.plan__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem .625rem .375rem .5rem; border-radius: 100px;
  background: var(--ink); color: var(--accent);
  font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; line-height: 1;
}
.plan__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s steps(2) infinite; }

/* price: € · 50 ─ 150 — the dash is a drawn rule with air on both sides */
.plan__price {
  display: flex; align-items: flex-start; white-space: nowrap; min-height: 1em;
  margin: clamp(1.25rem, .9rem + 1vw, 1.75rem) 0; padding-bottom: clamp(1.25rem, .9rem + 1vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 800; line-height: .82; letter-spacing: -.04em;
  font-size: clamp(2.75rem, 1.4rem + 3vw, 4.5rem); font-variant-numeric: tabular-nums;
}
.plan__amt { display: inline-flex; align-items: center; }
.plan__cur { font-size: .36em; line-height: 1; letter-spacing: 0; color: var(--accent); margin: .12em .16em 0 0; }
.plan__dash { display: inline-block; width: .34em; height: max(2px, .055em); margin: 0 .2em; background: var(--muted); border-radius: 2px; }
.plan__ask { font-size: .62em; line-height: 1; text-transform: uppercase; letter-spacing: -.03em; }

.plan__inc { color: var(--muted); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; }
.plan__list { display: grid; gap: .5625rem; margin-top: 1.125rem; color: var(--fg); font-size: .9375rem; line-height: 1.45; letter-spacing: .005em; }
.plan__list li { position: relative; padding-left: 1.75rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.0625rem; height: 1.0625rem; border-radius: 50%;
  background: rgba(204,255,0,.14) no-repeat center / .5625rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.5 11 1.5' fill='none' stroke='%23ccff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.plan__cta { margin-top: auto; width: 100%; }
.plan__list { margin-bottom: clamp(1.5rem, 1rem + 1vw, 2rem); }

/* the middle card: solid lime, lifted */
.plan--featured {
  background: var(--accent); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(204,255,0,.35);
  translate: 0 -1rem;
}
.plan--featured .plan__glow { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.45), transparent 60%); }
.plan--featured .plan__n { color: rgba(10,10,10,.55); }
.plan--featured .plan__for { color: rgba(10,10,10,.7); }
.plan--featured .plan__price { border-bottom-color: rgba(10,10,10,.15); }
.plan--featured .plan__cur { color: var(--ink); }
.plan--featured .plan__dash { background: rgba(10,10,10,.4); }
.plan--featured .plan__inc { color: rgba(10,10,10,.55); }
.plan--featured .plan__list { color: var(--ink); }
.plan--featured .plan__list li::before {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5.2 4.3 8.5 11 1.5' fill='none' stroke='%23ccff00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.btn--ink { background: var(--ink); color: var(--fg); }
.btn--ink::before { background: var(--fg); }
.btn--ink:hover { color: var(--ink); }

@media (hover: hover) {
  .plan:hover { translate: 0 -.5rem; box-shadow: inset 0 0 0 1px rgba(204,255,0,.35), 0 40px 70px -30px rgba(0,0,0,.7); }
  .plan--featured:hover { translate: 0 -1.5rem; box-shadow: 0 50px 90px -30px rgba(204,255,0,.45); }
  .plan:hover .plan__glow { opacity: 1; }
  .plan:hover .plan__name { --sl: -12; --cr: 1; }
}

.pricing__dots { display: none; }
.pricing__more {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: clamp(1.5rem, 1rem + 1vw, 2.25rem); padding: 1rem 1rem 1rem 1.75rem;
  border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line);
  background: linear-gradient(90deg, rgba(242,242,238,.04), rgba(242,242,238,0) 70%);
}
.pricing__more p { color: var(--fg-2); font-size: .9375rem; }
.pricing__more b { color: var(--fg); font-weight: 600; margin-right: .25rem; }

@media (max-width: 1100px) {
  .plan__price { font-size: clamp(2.25rem, 1rem + 3vw, 3.25rem); }
}
@media (max-width: 900px) {
  /* phones: a sideways carousel that snaps each card to the centre */
  .pricing__list {
    display: flex; gap: .75rem; align-items: stretch;
    margin: 0 calc(var(--gutter) * -1); padding: .5rem var(--gutter) 1.75rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .pricing__list::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(78vw, 19rem); scroll-snap-align: center; scroll-snap-stop: always; padding: 1.375rem; border-radius: 1.25rem; }
  .plan--featured { translate: none; box-shadow: 0 24px 50px -24px rgba(204,255,0,.4); }
  .plan__name { margin-top: 1.25rem; font-size: 1.25rem; min-height: 2.08em; }
  .plan__for { font-size: .875rem; min-height: 3em; }
  .plan__price { font-size: 2.5rem; margin: 1rem 0; padding-bottom: 1rem; }
  .plan__list { font-size: .875rem; gap: .5rem; margin-top: .875rem; margin-bottom: 1.25rem; }
  .plan__list li { padding-left: 1.625rem; }
  .plan__cta { height: 2.875rem; }
  .pricing__dots { display: flex; justify-content: center; gap: .5rem; margin-top: .25rem; }
  .pricing__dots i { width: .5rem; height: .5rem; border-radius: 100px; background: var(--line-2); transition: width .5s var(--ease), background-color .5s var(--ease); cursor: pointer; }
  .pricing__dots i.is-on { width: 1.5rem; background: var(--accent); }
  .pricing__more { flex-direction: column; align-items: flex-start; border-radius: 1.25rem; padding: 1.5rem; gap: 1.25rem; }
}

/* ---------------------------------------------------------
   FAQ (light)
   --------------------------------------------------------- */
.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  background: var(--fg); color: var(--ink);
  clip-path: inset(0 var(--inset, 0px) round var(--radius, 0px));
}
.faq .section-label { color: #6d6d68; }
.faq .sl-num { color: var(--ink); background: var(--accent); padding: .125rem .375rem; border-radius: 3px; }
.faq .sl-line { background: rgba(10,10,10,.2); }
.faq__side { grid-column: 1 / 5; position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.faq__note { margin-top: 2rem; color: #55554f; max-width: 20rem; line-height: 1.55; }
.faq__note a {
  color: var(--ink); font-weight: 600; padding: 0 2px 2px; white-space: nowrap;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 3px no-repeat;
  transition: background-size .5s var(--ease);
}
.faq__note a:hover { background-size: 100% 100%; }
.faq__list { grid-column: 6 / 13; border-top: 1px solid rgba(10,10,10,.14); }
.faq__item { position: relative; border-bottom: 1px solid rgba(10,10,10,.14); }
/* an ink bar grows along the left edge of the open answer */
.faq__item::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--ink);
  transform: scaleY(0); transform-origin: top; transition: transform .8s var(--ease);
}
.faq__item.is-open::before { transform: scaleY(1); }
.faq__item { transition: background-color .6s var(--ease); }
.faq__item.is-open { background: rgba(10,10,10,.035); }
.faq .big-title { font-size: min(var(--t-h2), 6.8vw); }
.faq__q {
  width: 100%; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3rem; align-items: center; gap: 1rem;
  padding: 1.875rem 0 1.875rem 1.25rem; text-align: left; color: inherit;
}
.faq__n { color: #8a8a84; transition: color .4s, background-color .4s, padding .5s var(--ease); justify-self: start; border-radius: 3px; padding: .125rem 0; }
.faq__qt { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; transition: translate .7s var(--ease), color .4s; }
.faq__q:hover .faq__qt { translate: .625rem 0; }
.faq__icon {
  position: relative; width: 3rem; height: 3rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,10,10,.2);
  transition: background-color .5s var(--ease), box-shadow .5s, rotate .7s var(--ease), color .5s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .875rem; height: 1.5px; background: currentColor;
  translate: -50% -50%; transition: rotate .7s var(--ease);
}
.faq__icon::after { rotate: 90deg; }
.faq__q:hover .faq__icon { background: var(--ink); color: var(--fg); box-shadow: none; }
.faq__item.is-open .faq__icon { background: var(--ink); color: var(--accent); box-shadow: none; rotate: 180deg; }
.faq__item.is-open .faq__icon::after { rotate: 0deg; }
.faq__item.is-open .faq__n { color: var(--ink); background: var(--accent); padding: .125rem .375rem; }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding: 0 4rem 2.25rem 5.75rem; color: #4d4d48; max-width: 44rem; font-size: 1.0625rem; line-height: 1.65; }

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact { min-height: 100vh; min-height: var(--app-h); display: flex; flex-direction: column; padding-bottom: 4rem; }
.contact__title {
  margin-top: auto;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.5rem, .6rem + 8.4vw, 12rem); line-height: 1.1; letter-spacing: -.03em;
  margin-left: -.05em;
}
.mask { display: block; overflow: hidden; padding-top: .04em; }
.mask > span { display: inline-block; will-change: transform; }
.contact__accent { color: var(--accent); }
.contact__row {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__sub { font-size: var(--t-lead); line-height: 1.5; max-width: 26rem; color: var(--fg-2); }
.contact__mail {
  align-self: flex-start; position: relative; padding-bottom: .375rem;
  font-family: var(--f-brand); font-weight: 400;
  font-size: clamp(1rem, .7rem + 1.5vw, 2.25rem); letter-spacing: -.01em;
  word-break: break-all;
}
.contact__mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform-origin: right; transition: transform .7s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(0); }
/* link to the detailed project brief (zapitvane.html) */
.contact__brief { display: inline-flex; align-items: center; gap: .625rem; align-self: flex-start; padding: .875rem 1.375rem; border-radius: 100px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--ink); font-size: .8125rem; font-weight: 500; transition: color .3s, border-color .3s, background-color .3s; }
.contact__brief i { font-style: normal; color: var(--ink); transition: transform .4s var(--ease); }
.contact__brief:hover { color: var(--accent); background: transparent; }
.contact__brief:hover i { color: var(--accent); transform: rotate(45deg); }
.contact__cta {
  position: relative; flex-shrink: 0;
  width: clamp(8.5rem, 6rem + 6vw, 12rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; text-transform: none;
}
.contact__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--fg); transform: scale(0); transition: transform .7s var(--ease);
}
.contact__cta:hover::before { transform: scale(1); }
.contact__cta-inner { display: flex; flex-direction: column; align-items: center; gap: .625rem; }
.contact__cta svg { width: 1.5rem; }
.contact__cta[disabled] { opacity: .5; pointer-events: none; }

/* contact form — a light card on the dark section */
.contact__row { align-items: flex-start; }
.cform {
  --c-ink: #0a0a0a; --c-soft: rgba(10,10,10,.56); --c-field: rgba(10,10,10,.055); --c-bad: #d8341f;
  position: relative; flex: 0 1 40rem; width: 100%; overflow: hidden;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); border-radius: 1.75rem;
  background: #f4f4f0; color: var(--c-ink);
  box-shadow: 0 2.5rem 5rem -2rem rgba(0,0,0,.7);
}
.cform__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.cform__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.375rem, 1.1rem + .9vw, 2rem); letter-spacing: -.02em; line-height: 1.12; }
.cform__badge {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  padding: .5rem .75rem; border-radius: 100px; background: var(--c-ink); color: var(--accent); font-size: .6875rem;
}
.cform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.cform__f { position: relative; display: block; }
.cform__f--wide { grid-column: 1 / -1; }
.cform input, .cform textarea {
  display: block; width: 100%; padding: 1.625rem 1.125rem .625rem; border: 0; border-radius: 1rem;
  background: var(--c-field); color: var(--c-ink); font: inherit; font-size: 1.0625rem; line-height: 1.4;
  outline: none; box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.cform textarea { resize: vertical; min-height: 8.5rem; }
.cform input:hover, .cform textarea:hover { background: rgba(10,10,10,.085); }
.cform input:focus, .cform textarea:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--c-ink), 0 0 0 4px rgba(204,255,0,.55); }
/* floating label: sits in the field, lifts when it is focused or filled */
.cform__f > span {
  position: absolute; left: 1.125rem; top: 1.125rem; pointer-events: none;
  color: var(--c-soft); font-size: 1.0625rem; line-height: 1.4; transform-origin: left top;
  transition: transform .45s var(--ease), color .3s;
}
.cform__f :focus + span, .cform__f :not(:placeholder-shown) + span { transform: translateY(-.75rem) scale(.7); }
.cform__f :focus + span { color: var(--c-ink); }
.cform .is-bad input, .cform .is-bad textarea { box-shadow: inset 0 0 0 1.5px var(--c-bad); animation: cshake .45s var(--ease); }
.cform .is-bad > span { color: var(--c-bad); }
@keyframes cshake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } 85% { transform: translateX(-2px); } }
/* consent checkbox — same ink / accent language as the fields */
.cform__consent {
  position: relative; display: flex; align-items: flex-start; gap: .75rem; margin-top: 1rem; cursor: pointer;
  color: var(--c-soft); font-size: .8125rem; line-height: 1.5;
}
.cform__consent input { position: absolute; opacity: 0; width: 1.25rem; height: 1.25rem; margin: 0; }
.cform__box {
  flex-shrink: 0; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: .0625rem; border-radius: .375rem;
  background: var(--c-field); box-shadow: inset 0 0 0 1.5px rgba(10,10,10,.22);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cform__box svg { width: .875rem; }
.cform__box path { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease); }
.cform__consent input:checked + .cform__box { background: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cform__consent input:checked + .cform__box path { stroke-dashoffset: 0; }
.cform__consent input:focus-visible + .cform__box { box-shadow: inset 0 0 0 1.5px var(--c-ink), 0 0 0 4px rgba(204,255,0,.55); }
.cform__consent a { color: var(--c-ink); text-decoration: underline; text-underline-offset: .2em; }
.cform__consent.is-bad { color: var(--c-bad); }
.cform__consent.is-bad .cform__box { box-shadow: inset 0 0 0 1.5px var(--c-bad); animation: cshake .45s var(--ease); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 1.5rem; }
.cform__msg { color: var(--c-soft); font-size: .875rem; line-height: 1.5; letter-spacing: .005em; max-width: 20rem; }
.cform__msg.is-err { color: var(--c-bad); }
.cform__send {
  position: relative; display: inline-flex; align-items: center; gap: 1rem; flex-shrink: 0; overflow: hidden; isolation: isolate;
  height: 3.75rem; padding: 0 .5rem 0 1.75rem; border-radius: 100px;
  background: var(--c-ink); color: #f4f4f0;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  transition: color .4s var(--ease), transform .3s var(--ease);
}
.cform__send::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.cform__send-a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--accent); color: var(--c-ink); transition: background-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
}
.cform__send svg { width: 1.125rem; }
.cform__send path { stroke: currentColor; stroke-width: 2; }
.cform__send:active { transform: scale(.97); }
.cform__send[disabled] { pointer-events: none; }
.cform__send[disabled] .cform__send-a { animation: cspin 1s linear infinite; }
@keyframes cspin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .cform__send:hover { color: var(--c-ink); }
  .cform__send:hover::before { transform: none; }
  .cform__send:hover .cform__send-a { background: var(--c-ink); color: var(--accent); transform: rotate(45deg); }
}

/* sent: the card flips to a confirmation with a drawn check */
.cform__done {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem;
  padding: 2rem; text-align: center; background: var(--accent); color: var(--c-ink);
  clip-path: circle(0 at 100% 100%); visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s .9s;
}
.cform.is-sent .cform__done { clip-path: circle(150% at 100% 100%); visibility: visible; transition: clip-path .9s var(--ease); }
.cform__check { width: 4.5rem; }
.cform__check circle, .cform__check path { stroke: var(--c-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cform__check circle { stroke-dasharray: 183; stroke-dashoffset: 183; }
.cform__check path { stroke-dasharray: 38; stroke-dashoffset: 38; }
.cform.is-sent .cform__check circle { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) .35s; }
.cform.is-sent .cform__check path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .95s; }
.cform__done-t { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); letter-spacing: -.02em; line-height: 1.25; max-width: 24rem; }
.cform__again { padding: .5rem 0; font-weight: 600; font-size: .9375rem; text-decoration: underline; text-underline-offset: .3em; }
.cform__done-t, .cform__again { opacity: 0; transform: translateY(1rem); }
.cform.is-sent .cform__done-t, .cform.is-sent .cform__again { opacity: 1; transform: none; transition: opacity .6s 1.1s, transform .8s var(--ease) 1.1s; }
.cform.is-sent .cform__again { transition-delay: 1.25s; }
.contact__cta path { stroke: currentColor; stroke-width: 1.6; }

/* ---------------------------------------------------------
   Mobile helpers
   --------------------------------------------------------- */
.work__hint { display: none; }
.m-cta { display: none; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto auto 1fr; align-items: center; gap: 2.5rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line); color: var(--muted);
}
.footer b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; margin: 0 .25rem; }
.footer__socials { display: flex; gap: 1.5rem; }
.footer__socials a, .footer__top { color: var(--fg); }
.footer__top { justify-self: end; }
.footer__copy { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.footer__copy a { color: var(--fg-2); transition: color .3s; }
.footer__copy a:hover { color: var(--accent); }

/* ---------------------------------------------------------
   Initial states (JS enhances)
   --------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(2.5rem); }
.js [data-hero-fade] { opacity: 0; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
/* pinned carousel: the whole section must fit one screen, so cards scale with its height */
@media (min-width: 901px) {
  .work { padding-top: clamp(5rem, calc(var(--app-h) * 0.11), 9rem); }
  .work__viewport { padding: clamp(1.25rem, calc(var(--app-h) * 0.03), 2.5rem) 0 clamp(2.5rem, calc(var(--app-h) * 0.07), 5rem); }
  .card {
    --mh: min(clamp(15rem, 8rem + 16vw, 28rem), max(14rem, calc(var(--app-h) - 26rem)));
    width: calc((var(--mh) - 2rem) * var(--ar, 2.1));
  }
  .card__media { aspect-ratio: auto; height: var(--mh); }
}

@media (max-width: 1200px) {
  .nav__links a { padding: .625rem .75rem; }
  .svc { grid-template-columns: 3rem minmax(0, 1fr) 2.5rem; }
  .svc__desc { grid-column: 2 / 3; grid-row: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 2rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 4.5rem; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav .btn { display: none; }
  .burger { display: block; }
  /* phones: the wordmark moves up here (the big one at the bottom of the hero makes room for the 3D stack) */
  .nav__logo svg { display: none; }
  /* same look as the loader wordmark: solid NK, outlined PROGRAMMING, blinking accent caret */
  .nav__logo .mono { font-family: var(--f-brand); font-weight: 800; font-size: 1.25rem; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
  /* stroke under, fill on top in the page colour: only the outer edge shows, no overlapping letter contours */
  .nav__logo .mono i { color: var(--bg); -webkit-text-stroke: 2px var(--nfg); paint-order: stroke fill; letter-spacing: .01em; }
  .nav.is-light .nav__logo .mono i { color: var(--fg); }
  .menu-open .nav .nav__logo .mono i { color: var(--bg); }
  .nav__logo .mono em { display: inline; color: var(--accent); margin-left: .02em; animation: blink 1s steps(2) infinite; }
  .nav.is-light .nav__logo .mono em { color: var(--nfg); }
  .nav__logo .mono br { display: none; }

  .hero__content { width: 100%; }
  .hero__headline { margin-top: 1.25rem; }
  .hero__desc { margin-top: 1.25rem; }
  .hero__ctas { margin-top: 2rem; }
  /* the stack moves into the flow, in the free space below the buttons */
  .stack { position: relative; top: auto; right: auto; bottom: auto; width: auto; flex: 1 1 auto; min-height: 15rem; margin: .5rem calc(var(--gutter) * -1) 0; }
  .stack__rig { transform: rotateX(57deg) rotateZ(-36deg); }
  .sl__b { animation: none; }
  .post--x { display: none; }
  /* the lower layers step back, the interface on top leads */
  .sl--0 { --dim: .4; } .sl--1 { --dim: .5; } .sl--2 { --dim: .65; }
  .sl--3 .sl__c { background: radial-gradient(rgba(242,242,238,.07) 1px, transparent 1.6px) 24px 90px / 32px 32px, rgba(12,12,12,.94); }

  .about .section-label, .about__text, .stats { grid-column: 1 / 13; }
  .about .section-label { margin-top: 0; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .work { min-height: 0; }

  .testi__nav { display: none; }

  .faq__side, .faq__list { grid-column: 1 / 13; }
  .faq__side { position: static; margin-bottom: 2.5rem; }
  .faq .big-title { font-size: var(--t-h2); }
  .faq__q { grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; padding: 1.375rem .25rem 1.375rem .75rem; gap: .75rem; }
  .faq__icon { width: 2.5rem; height: 2.5rem; }
  .faq__item::before { width: 2px; }
  .faq__a p { padding: 0 1rem 1.75rem 4rem; font-size: 1rem; }

  .footer { grid-template-columns: 1fr; gap: .75rem; }
  .footer__top { justify-self: start; }
}

@media (max-width: 600px) {
  /* hero: calmer on phones — the brand stays on one line, the copy steps back, the 3D stack gets the room */
  .hero__kicker { display: none; }
  .hero__headline { margin-top: 0; }
  .hero__desc { margin-top: 1rem; font-size: 1rem; line-height: 1.55; color: var(--fg-2); max-width: 34ch; }
  .hero__ctas { margin-top: 1.5rem; }
  .hb-outline .char {
    text-shadow: 1px 0 0 var(--fg), -1px 0 0 var(--fg), 0 1px 0 var(--fg), 0 -1px 0 var(--fg);
  }
  /* stats: 2 × 2 tiles, number on top and its label right under it */
  .cform__grid { grid-template-columns: 1fr; }
  .cform__head { flex-direction: column-reverse; align-items: flex-start; }
  .cform__foot { flex-direction: column; align-items: stretch; }
  .cform__send { justify-content: space-between; }
  .cform__msg { max-width: none; }
  .cform__f { grid-column: 1 / -1; }
  .stat, .stat + .stat { gap: .75rem; padding: 1.5rem 1rem 1.5rem 0; }
  .stat:nth-child(even) { padding-left: 1.25rem; padding-right: 0; }
  .stat:nth-child(n + 3) { margin-top: 0; }
  .stat .mono { max-width: none; line-height: 1.5; color: var(--fg-2); }
  .marquee { padding: 1.25rem 0; }
  .marquee__row span { padding: 0 1.25rem; }
  .svc { grid-template-columns: 2.25rem minmax(0, 1fr) 1.75rem; gap: .5rem 1rem; }
  .svc__arrow { font-size: 1.25rem; }
  .loader__meta { display: none; }
  .loader__top > span:last-child { display: none; }
  .loader__top { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .sl__in, .post { transition: none; }
  .stack *, .stack-glyphs span { animation: none !important; }
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   PHONES — tuned for small (360), medium (390) and large (430+)
   ========================================================= */
@media (max-width: 900px) {
  :root {
    --gutter: clamp(1.125rem, 5vw, 1.75rem);
    --section: clamp(5rem, 18vw, 7rem);
    --t-lead: clamp(1rem, .9rem + .5vw, 1.125rem);
    --t-h2: clamp(3rem, 15vw, 5.25rem);
    --t-statement: clamp(1.75rem, 7.4vw, 2.5rem);
    --t-h3: clamp(1.125rem, 4.8vw, 1.375rem);
  }
  .nav { padding-top: env(safe-area-inset-top); height: calc(var(--nav-h) + env(safe-area-inset-top)); }
  .nav__right { gap: .75rem; }
  /* language switch stays in the top bar, next to the burger */
  .nav .lang { gap: .125rem; font-size: .75rem; }
  .nav .lang button { min-width: 2.25rem; min-height: 2.75rem; padding: 0 .25rem; }
  .nav .lang button.is-active { color: var(--accent); }
  .nav.is-light .lang button.is-active { color: var(--nfg); text-decoration: underline; text-underline-offset: .3em; }
  .menu .lang { display: flex; }

  /* menu */
  .menu__links a { padding: 1.125rem 0; }
  .menu__links b { font-size: clamp(2.25rem, 11vw, 3.25rem); }

  /* hero */
  .hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + clamp(1.5rem, calc(var(--app-h) * 0.05), 3rem)); padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
  .hero__kicker { font-size: .75rem; }
  .hl { white-space: normal; }
  .rot-line { display: block; }
  .hero__headline { font-size: clamp(2rem, 8.9vw, 3.25rem); line-height: 1.04; }
  .hero__desc { max-width: 34ch; }
  /* one action only — "start a project" lives in the menu and the floating bar */
  .hero__ctas .btn--ghost { display: none; }
  .hero__ctas .btn { height: 3.25rem; padding: 0 1.5rem; }

  /* marquee */
  .marquee__row span { font-size: clamp(1.5rem, 7vw, 2.25rem); }

  /* about */
  /* the first paragraph is the statement; the second steps back to readable body copy */
  .about__text { font-size: clamp(1.5rem, 6.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; }
  .about__more {
    margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
    font-size: clamp(1rem, 4.4vw, 1.1875rem); font-weight: 400; line-height: 1.6; letter-spacing: 0;
    color: var(--fg-2); max-width: 34ch;
  }
  .stats { margin-top: 3.5rem; }
  .stat b { font-size: clamp(3rem, 15vw, 4.5rem); }
  .stats { border-bottom: 1px solid var(--line); }

  /* work → stacked cards: full-width, the whole screenshot uncropped, each one slides over the last */
  .work { overflow: visible; padding-bottom: clamp(3.5rem, 12vw, 5rem); }
  .work .sec-head { margin-bottom: 0; }
  .work__progress, .work__hint { display: none; }
  .work__viewport { display: block; padding: 1.75rem calc(var(--gutter) - .5rem) 0; }
  .work__track { flex-direction: column; width: auto; gap: 1.25rem; padding: 0; overflow: visible; transform: none !important; }
  .card {
    position: sticky; top: calc(env(safe-area-inset-top) + .75rem + var(--i) * .5rem);
    flex: none; width: 100%;
  }
  .card__link {
    display: block; padding: .5rem .5rem 1.25rem; border-radius: 1.5rem;
    position: relative; background: #fff; box-shadow: 0 -12px 40px -24px rgba(10,10,10,.35), 0 0 0 1px rgba(10,10,10,.06);
  }
  /* the card being covered dims (an overlay's opacity — cheap, and the screenshot itself never moves) */
  .card__link::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: #0a0a0a; opacity: var(--cover, 0);
  }
  .card__cover img { transform: translateZ(0); backface-visibility: hidden; }
  /* the screenshot at its own proportions — nothing cropped, nothing zoomed */
  .card__media { height: auto; aspect-ratio: var(--ar, 2.1); border-radius: 1.125rem; box-shadow: inset 0 0 0 1px rgba(10,10,10,.06); }
  .card__browser, .card__visit, .card__glow { display: none; }
  .card__cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .card__initials { font-size: clamp(3rem, 16vw, 4.5rem); }

  .card__meta {
    grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: .375rem; align-items: center;
    padding: 1.125rem .75rem 0; border-bottom: 0;
  }
  .card__idx { display: block; grid-column: 1 / -1; color: #8a8a84; font-size: .6875rem; }
  .card__idx em { font-style: normal; color: #b5b5ae; }
  .card__title { font-size: clamp(1.625rem, 7.6vw, 2.125rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
  .card__go { width: 3rem; height: 3rem; font-size: 1.0625rem; background: var(--ink); color: var(--accent); box-shadow: none; }
  .card__cat { display: block; margin-top: .375rem; padding: 0 .75rem; color: #55554f; font-size: 1rem; line-height: 1.45; }
  .card__info { padding: .875rem .75rem 0; }

  /* the "your project next?" card closes the stack */
  .card--cta .card__link { background: var(--accent); }
  .card--cta .card__media { aspect-ratio: 1.6; background: transparent; }
  .card--cta .card__go { background: var(--ink); color: var(--accent); }

  /* services */
  .svc { padding: 1.5rem 0; }
  .svc__title { font-size: clamp(1.375rem, 6.4vw, 2rem); }
  .svc__desc { font-size: .9375rem; line-height: 1.55; }

  /* testimonials */
  .testi__track { gap: .875rem; }
  .tcard { flex-basis: min(84vw, 26rem); min-height: 19rem; padding: 1.5rem; border-radius: 1rem; }
  .tcard__mark { font-size: 3.5rem; }

  /* faq */
  .faq__note { margin-top: 1.25rem; }

  /* contact */
  .contact { min-height: 0; padding-bottom: 3rem; }
  .contact__title { margin-top: 2rem; font-size: clamp(2.5rem, 12.6vw, 4.5rem); }
  .contact__row { flex-direction: column; align-items: stretch; gap: 2.5rem; }
  .contact__info { gap: 1rem; }
  .contact__mail { white-space: nowrap; word-break: normal; font-size: clamp(.875rem, 4.4vw, 1.25rem); }
  .cform { flex: none; border-radius: 1.5rem; }
  .cform input, .cform textarea { font-size: 1rem; } /* 16px — no zoom on focus in iOS */

  /* footer: leave room for the CTA bar */
  .footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

  /* floating CTA bar */
  .m-cta {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    position: fixed; z-index: 96;
    left: var(--gutter); right: var(--gutter); bottom: calc(.75rem + env(safe-area-inset-bottom));
    height: 3.5rem; padding: 0 .375rem 0 1.125rem; border-radius: 100px;
    background: rgba(20,20,20,.72);
    box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 40px rgba(0,0,0,.5);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    transform: translateY(calc(100% + 2rem)); transition: transform .7s var(--ease);
  }
  .m-cta.is-on { transform: none; }
  .menu-open .m-cta { transform: translateY(calc(100% + 2rem)); }
  .m-cta__status { display: inline-flex; align-items: center; gap: .625rem; font-size: .8125rem; color: var(--fg); }
  .m-cta__btn {
    display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1.25rem; border-radius: 100px;
    background: var(--accent); color: var(--ink); white-space: nowrap;
    font-family: var(--f-display); font-size: .875rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; text-transform: none;
  }
  .m-cta__arrow { font-size: 1rem; letter-spacing: 0; line-height: 1; }
}

/* touch: no hover — show affordances by default */
@media (hover: none) {
  .card__visit { opacity: 1; transform: none; }
  .card:hover .card__cover { transform: none; }
  .btn:hover::before { transform: translateY(101%); }
  .btn--ghost:hover { color: var(--fg); }
  .btn:active::before { transform: none; transition-duration: .2s; }
}

/* small phones */
@media (max-width: 374px) {
  .m-cta__status { font-size: .75rem; }
}

/* =========================================================
   LIVING TYPE — Geologica variable axes
   wght (weight) · slnt (slant) · SHRP (sharpness) · CRSV (cursive)
   ========================================================= */
.svc__title, .plan__name, .faq__qt, .card__title, .menu__links b, .card--cta .card__cta-t {
  --w: 800; --sl: 0; --cr: 0;
  font-variation-settings: "wght" var(--w), "slnt" var(--sl), "CRSV" var(--cr), "SHRP" 100;
  transition: font-variation-settings .7s var(--ease), color .5s var(--ease), translate .7s var(--ease);
}
.faq__qt { --w: 500; }
.card__title { --w: 700; }
@media (hover: hover) {
  .svc:hover .svc__title, .faq__q:hover .faq__qt, .card:hover .card__title, .menu__links a:hover b { --sl: -12; --cr: 1; }
  .faq__q:hover .faq__qt { --w: 600; }
}
.faq__item.is-open .faq__qt { --sl: -12; --cr: 1; --w: 600; }

.hero__headline, .about__text { font-variation-settings: "wght" 500, "SHRP" 40; }
.about__text em, .hero__headline em { font-variation-settings: "wght" 500, "slnt" -12, "CRSV" 1, "SHRP" 60; }

/* hero first line: letters react to the pointer (and breathe on touch devices) */
.hl--dim .lch {
  display: inline-block;
  font-variation-settings: "wght" var(--w, 400), "slnt" var(--sl, 0), "CRSV" var(--cr, 0), "SHRP" var(--sh, 30);
  transition: font-variation-settings .5s var(--ease), color .5s var(--ease);
}
.hl--dim .lch.is-hot { color: var(--fg); }
.hl--dim.is-wave .lch { transition: color .5s var(--ease); } /* touch wave: driven per frame from js */

/* marquee leans with scroll speed */
.marquee__row span { font-variation-settings: "wght" 300, "slnt" var(--mq-sl, 0), "CRSV" 1, "SHRP" 50; }
.rot { font-variation-settings: "wght" 700; }

/* ---------------------------------------------------------
   Lite mode (older / weaker machines — set from js)
   Same design, without the things that cost a repaint per frame.
   --------------------------------------------------------- */
.lite .grain { display: none; }
/* touch: every dark section paints its own background, so the page colour underneath can follow the
   section at the bottom edge (Safari tints its toolbar and bottom fade from it) — see main.js */
@media (hover: none) and (pointer: coarse) {
  .hero, .marquee, .about, .process, .pricing, .contact, .footer { background-color: var(--bg); }
  html.edge-light, html.edge-light body { background-color: var(--fg); }
}
/* touch devices: decorative loops hold still while a finger is scrolling the page */
.is-scrolling .stack *, .is-scrolling .stack-glyphs span, .is-scrolling .dot::after, .is-scrolling .card__badge--live i::after, .is-scrolling .plan__tag::before { animation-play-state: paused !important; }
.lite .nav, .lite .m-cta, .lite .progress { will-change: transform; }
.lite .card__browser { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,10,10,.92); }
.lite .m-cta { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,20,20,.96); }
.lite .process__runner { box-shadow: 0 0 0 .35rem rgba(204,255,0,.18); }
.lite .card__media { will-change: auto; }

/* phones: smooth scrolling first — no live blur or animated grain over the moving page */
@media (max-width: 900px) {
  .grain { animation: none; }
  .m-cta { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20,20,20,.96); }
}

/* =========================================================
   GLASS — the top bar and the phone's bottom bar are frosted glass:
   the page shows through blurred, with a bright rim like a lens edge.
   Real blur everywhere except in-app browsers (html.weak), which get the
   same look without the live blur.
   ========================================================= */
.nav::before {
  inset: .625rem calc(var(--gutter) - 1rem);
  border-radius: 100px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02) 55%, rgba(255,255,255,0)),
    rgba(16,16,16,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),          /* light catching the top edge */
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.25),
    0 12px 40px -12px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  transform: translateY(-.5rem) scale(.98); opacity: 0;
  transition: opacity .5s var(--ease), transform .7s var(--ease), background-color .5s;
}
.nav.is-scrolled::before { opacity: 1; transform: none; }
/* over the light panels the glass turns milky */
.nav.is-light.is-scrolled::before {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.35)),
    rgba(242,242,238,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 0 0 1px rgba(10,10,10,.06),
    0 12px 36px -14px rgba(10,10,10,.28);
}
.menu-open .nav::before { opacity: 0; }

@media (max-width: 900px) {
  .nav::before { inset: calc(env(safe-area-inset-top) + .375rem) calc(var(--gutter) - .625rem) .375rem; -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }
  .m-cta {
    background:
      linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02) 60%),
      rgba(16,16,16,.55);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.2),
      inset 0 0 0 1px rgba(255,255,255,.08),
      0 14px 40px -10px rgba(0,0,0,.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  }
}
.lite .m-cta { -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); }

/* in-app browsers: the same glass, minus the live blur (too heavy for them) */
.weak .nav::before, .weak .m-cta { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.weak .nav::before { background: linear-gradient(180deg, rgba(40,40,40,.96), rgba(22,22,22,.96)); }
.weak .nav.is-light.is-scrolled::before { background: linear-gradient(180deg, #ffffff, #f4f4f0); }
.weak .m-cta { background: linear-gradient(180deg, rgba(40,40,40,.97), rgba(20,20,20,.97)); }

/* phones: a one-page site needs no bar following you around — the top bar stays at the top of the page
   and scrolls away with it. (While the menu is open it is pinned in place, so the close button stays put.) */
@media (max-width: 900px) {
  .nav { position: absolute; }
  .nav::before { display: none; }
  .menu-open .nav { position: fixed; }
  .menu { overscroll-behavior: contain; }
}
.menu-open { overflow: hidden; }

/* phones: no scroll-progress line; the floating bar stays — it points to the price calculator */
@media (max-width: 900px) {
  .progress { display: none !important; }
}

/* phones: the project in view is full size, the others sit back a touch (one short transition per change) */
@media (max-width: 900px) {
  .work__track .card__link {
    transform: scale(.88); transform-origin: 50% 0;
    background: #e4e4df;
    transition: transform .7s var(--ease), box-shadow .7s var(--ease), background-color .7s var(--ease);
    will-change: transform; backface-visibility: hidden;
  }
  .work__track .card.is-focus .card__link {
    transform: none; background: #fff;
    box-shadow: 0 24px 60px -24px rgba(10,10,10,.45), 0 0 0 1px rgba(10,10,10,.06);
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .work__track .card__link { transform: none; }
}

/* phones: the "your project next?" card keeps its lime, focused or not */
@media (max-width: 900px) {
  .work__track .card--cta .card__link, .work__track .card--cta.is-focus .card__link { background: var(--accent); }
}

/* =========================================================
   PRICING — glass cards
   Two soft light sources (lime + deep blue) glow behind the cards; the cards are
   tinted glass over them, with a bright rim and a gloss streak. The glow is already
   soft, so phones get the same look without a live blur (no scroll cost).
   ========================================================= */
.pricing { position: relative; isolation: isolate; overflow: hidden; }
.pricing::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -10%; right: -10%; top: 32%; bottom: 4%;
  background:
    radial-gradient(38% 46% at 50% 52%, rgba(204,255,0,.34), rgba(204,255,0,0) 70%),
    radial-gradient(34% 50% at 16% 62%, rgba(40,90,255,.42), rgba(40,90,255,0) 72%),
    radial-gradient(30% 44% at 86% 40%, rgba(64,120,255,.32), rgba(64,120,255,0) 72%);
}

.plan {
  background:
    linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.04) 38%, rgba(255,255,255,.02) 100%),
    rgba(18,18,22,.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),           /* light on the top edge */
    inset 1px 0 0 rgba(255,255,255,.06), inset -1px 0 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 40px 80px -36px rgba(0,0,0,.85);
}
/* gloss: a diagonal streak of light across the top-left of the glass */
.plan::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 22%, rgba(255,255,255,0) 40%);
}
.plan__price { border-bottom-color: rgba(255,255,255,.12); }

/* the featured card: lime glass, lit from within */
.plan--featured {
  background:
    linear-gradient(160deg, rgba(236,255,140,.96) 0%, rgba(204,255,0,.9) 45%, rgba(176,230,0,.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 0 0 1px rgba(255,255,255,.25),
    inset 0 -14px 30px -18px rgba(60,90,0,.45),
    0 40px 100px -28px rgba(204,255,0,.6),
    0 0 0 1px rgba(204,255,0,.4);
}
.plan--featured::after { background: linear-gradient(118deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 26%, rgba(255,255,255,0) 44%); }
.plan--featured .plan__price { border-bottom-color: rgba(10,10,10,.14); }

/* desktop: real frosted glass on top (the glow behind is blurred through the card) */
@media (hover: hover) and (pointer: fine) {
  .plan { -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); }
  .plan:hover {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(204,255,0,.4),
      0 50px 90px -36px rgba(0,0,0,.9), 0 0 60px -20px rgba(204,255,0,.35);
  }
  .plan--featured:hover {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(255,255,255,.3),
      0 50px 110px -26px rgba(204,255,0,.75), 0 0 0 1px rgba(204,255,0,.5);
  }
}
@media (max-width: 900px) {
  .pricing::before { top: 38%; bottom: 8%;
    background:
      radial-gradient(60% 34% at 50% 50%, rgba(204,255,0,.32), rgba(204,255,0,0) 70%),
      radial-gradient(60% 40% at 0% 60%, rgba(40,90,255,.45), rgba(40,90,255,0) 72%),
      radial-gradient(60% 40% at 100% 45%, rgba(64,120,255,.4), rgba(64,120,255,0) 72%); }
  .plan--featured { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 0 0 1px rgba(255,255,255,.25), inset 0 -14px 30px -18px rgba(60,90,0,.45), 0 24px 60px -24px rgba(204,255,0,.55); }
}

/* floating price-calculator pill — desktop version of the phone CTA bar */
@media (min-width: 901px) {
  .m-cta {
    display: flex; align-items: center; gap: 1rem; position: fixed; z-index: 96;
    right: var(--gutter); bottom: 1.5rem; height: 3.75rem; padding: 0 .4375rem 0 1.375rem; border-radius: 100px;
    background: rgba(20,20,20,.78); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 40px rgba(0,0,0,.5);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    transform: translateY(calc(100% + 2.5rem)); transition: transform .7s var(--ease);
  }
  .m-cta.is-on { transform: none; }
  .m-cta__status { display: inline-flex; align-items: center; gap: .625rem; font-size: .875rem; color: var(--fg); }
  .m-cta__btn {
    display: inline-flex; align-items: center; gap: .5rem; height: 2.875rem; padding: 0 1.375rem; border-radius: 100px;
    background: var(--accent); color: var(--ink); white-space: nowrap;
    font-family: var(--f-display); font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; line-height: 1; text-transform: none;
    transition: background-color .3s;
  }
  .m-cta:hover .m-cta__btn { background: var(--fg); }
}

/* service cards link to their own pages (the whole card is clickable) */
.svc { position: relative; }
.svc__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.svc__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* links to the service pages, above the footer (written by tools/build.mjs) */
.seo-links { padding: 2.5rem var(--gutter) 2rem; border-top: 1px solid var(--line); }
.seo-links__t { font-size: .6875rem; color: var(--muted); }
.seo-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .875rem 0 0; padding: 0; }
.seo-links a { font-size: .875rem; color: var(--fg-2); transition: color .25s; }
.seo-links a:hover { color: var(--accent); }

/* phone + Viber under the email in the contact section */
.contact__phone { display: flex; flex-wrap: wrap; gap: .625rem; }
.contact__pill { display: inline-flex; align-items: center; gap: .625rem; padding: .75rem 1.25rem; border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg); font-family: var(--f-mono); font-size: 1rem; letter-spacing: .02em; transition: color .3s, box-shadow .3s; }
.contact__pill svg { width: 1.125rem; height: 1.125rem; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.contact__pill:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
