/* noots.hr, "Liquid Chrome"
   Monochrome graphite ground, cool off-white type. The only colour on the site comes
   from the WebGL chrome reflecting its studio lights. Display: Unbounded. Text: Onest.
   Motion: transform / opacity / filter / clip-path only, strong ease-out, every hover
   gated to fine pointers, all of it reduced to plain fades under reduced motion. */

/* ---------- fonts (self-hosted, latin + latin-ext for č ć đ š ž) ---------- */
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("/assets/fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("/assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/onest-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/assets/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --bg: #0b0b0d;
  --bg-2: #121215;
  --bg-3: #19191d;
  --fg: #ededea;
  --fg-2: rgba(237, 237, 234, 0.7);
  --fg-3: rgba(237, 237, 234, 0.52);
  --line: rgba(237, 237, 234, 0.1);
  --line-2: rgba(237, 237, 234, 0.2);
  --acc: #ff6a2b;
  --acc-hi: #ff8a55;
  --acc-ink: #160a05;
  /* molten orange: glossy top highlight over a warm sideways gradient, with a lit rim and glow */
  --acc-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(100deg, #ff5310 0%, #ff7d44 44%, #ff6a2b 62%, #f5500f 100%);
  --acc-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(110, 28, 0, 0.45), 0 10px 28px -10px rgba(255, 98, 30, 0.75);
  --acc-shadow-hi: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(110, 28, 0, 0.45), 0 14px 36px -10px rgba(255, 98, 30, 0.95);
  --acc-dot: radial-gradient(circle at 35% 30%, #ffe0cc 0%, #ff8a55 30%, #ff5a17 55%, #6e1d00 100%);
  /* chrome text picks up a faint warm band, as if lit by the same orange strip light as the 3D chrome */
  --chrome: linear-gradient(180deg, #fdfdfd 0%, #c9ccd3 30%, #60646d 50%, #f2c3a6 60%, #e2e5ea 68%, #8f939c 100%);
  --chrome-dot: radial-gradient(circle at 35% 30%, #ffffff 0%, #a7acb6 40%, #2a2c31 72%, #d3d7de 100%);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gut: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r: 28px;
  --head: 86px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--head) + 16px);
}
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, a, summary, [role="button"] { touch-action: manipulation; }
.btn, .filter, .menu-btn, summary, .lang { user-select: none; -webkit-user-select: none; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2 * var(--gut)); }
.section { padding: clamp(88px, 14vh, 168px) 0; }
.muted { color: var(--fg-3); }
.num { font-variant-numeric: tabular-nums; }

/* the liquid chrome lives behind everything, on the root stacking context, so headings
   with mix-blend-mode: difference invert where they cross it */
.chrome-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.chrome-canvas.is-on { opacity: 1; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.display--page { font-size: clamp(2.1rem, 5vw, 5.2rem); max-width: 15ch; text-wrap: balance; }
.section-h {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.2vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 0.45em;
  text-wrap: balance;
}
.section-h--sm { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -0.03em; }
.section-lede { color: var(--fg-2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 44ch; }
.lede { color: var(--fg-2); font-size: clamp(1.02rem, 1.25vw, 1.18rem); max-width: 46ch; margin: 0; }
h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.15; }

/* words that rise out of a clipping mask; the padding/margin pair keeps accents and
   descenders inside the clip without changing the line box */
.wm {
  display: inline-block;
  overflow: hidden;
  overflow: clip;
  vertical-align: bottom;
  padding: 0.14em 0.05em 0.16em;
  margin: -0.14em -0.05em -0.16em;
}
.wd { display: inline-block; transform-origin: 0 100%; }
.hero-title .ln { display: block; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 0.98rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--acc);
  background-image: var(--acc-fill);
  color: var(--acc-ink);
  box-shadow: var(--acc-shadow);
}
/* a band of light that sweeps across on hover, like a reflection sliding over metal */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.55) 48%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn--ghost { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.btn--xl { height: 66px; padding: 0 30px; font-size: 1.1rem; }
.btn > .ic { width: 1.05em; height: 1.05em; }
.btn-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -14px;
  border-radius: 50%;
  background: var(--acc-ink);
  color: var(--acc-hi);
  overflow: hidden;
}
.btn--xl .btn-ic { width: 40px; height: 40px; margin-right: -18px; }
.btn-ic .ic { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }

/* label that rolls up to a copy of itself; the copy is a text-shadow, so no duplicate text */
.roll { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; overflow: clip; overflow-clip-margin: 0.1em; vertical-align: middle; }
.roll > span { display: block; text-shadow: 0 1.3em 0 currentColor; transition: transform 240ms var(--ease-out); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; text-decoration: none; }
.link-arrow .ic { transition: transform 260ms var(--ease-out); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font-size: 0.8rem; line-height: 1; padding: 7px 11px; border-radius: 999px; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--fg); outline-offset: -3px; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: var(--acc-shadow-hi); }
  .btn--primary:hover::after { transform: translateX(130%); transition: transform 700ms var(--ease-out); }
  .btn--ghost:hover { background: rgba(237, 237, 234, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
  .btn:hover .btn-ic .ic { transform: rotate(45deg); }
  a:hover .roll > span, .btn:hover .roll > span { transform: translateY(-1.3em); }
  .link-arrow:hover .ic { transform: translateX(4px); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: max(12px, env(safe-area-inset-top)) var(--gut) 0;
}
.bar {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: rgba(20, 20, 23, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 400ms ease;
}
.site-header.is-scrolled .bar::before { opacity: 1; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
/* logo: mark + NOOTS lockup, sized by height so it never distorts */
.logo { display: block; width: auto; height: var(--h, 36px); }
@media (max-width: 520px) {
  .site-header .logo { height: 30px; }
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--fg-2); font-size: 0.93rem; text-decoration: none; transition: color 200ms ease; }
.nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] .roll > span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--acc-dot); box-shadow: 0 0 8px rgba(255, 98, 30, 0.7); vertical-align: middle; }
.nav .nav-lang { display: none; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.lang {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color 200ms ease;
}
.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.96); }
.menu-lines { position: relative; display: block; width: 18px; height: 8px; }
.menu-lines::before, .menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease-out);
}
.menu-lines::before { top: 0; }
.menu-lines::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(3.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-3.2px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--fg); }
  .lang:hover { background: rgba(237, 237, 234, 0.08); }
}

/* full-screen menu below 1100px: the panel wipes down, links rise in order */
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .bar-end { margin-left: auto; }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: -1;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 96px var(--gut) max(40px, env(safe-area-inset-bottom));
    background: var(--bg);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 280ms var(--ease-out), visibility 0s linear 280ms;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 460ms var(--ease-drawer); }
  .nav a {
    padding: 6px 0;
    font-family: var(--display);
    font-size: clamp(1.9rem, 8vw, 3rem);
    letter-spacing: -0.04em;
    color: var(--fg);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 150ms ease, transform 150ms ease;
  }
  .nav .nav-lang { display: block; margin-top: 24px; font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0; color: var(--fg-2); }
  .nav.is-open a {
    opacity: 1;
    transform: none;
    transition: opacity 400ms var(--ease-out) calc(120ms + var(--i) * 40ms), transform 500ms var(--ease-out) calc(120ms + var(--i) * 40ms);
  }
  html.menu-open .site-header .bar::before { opacity: 0; }
}
@media (max-width: 520px) {
  .bar { padding-left: 16px; gap: 10px; }
  .bar-end .lang { display: none; }
}

/* ---------- reveal on scroll (content stays visible without JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out), filter 900ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .reveal.words { opacity: 1; transform: none; filter: none; }
.js .words.reveal .wd { transform: translateY(118%); transition: transform 1100ms var(--ease-out) calc(var(--i) * 60ms); }
.js .words.reveal.is-in .wd { transform: none; }
.js .hero-title .wd, .js .display--page .wd { animation: rise 1200ms var(--ease-out) both; animation-delay: calc(180ms + var(--i) * 70ms); }
.js .hero-in { animation: fade-up 1000ms var(--ease-out) both; animation-delay: calc(800ms + var(--i) * 110ms); }
@keyframes rise { from { transform: translateY(118%) rotate(5deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- home: hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--head) + 40px) 0 clamp(28px, 5vh, 56px);
}
.hero-wrap { width: min(var(--max), 100% - 2 * var(--gut)); }
.hero-title { mix-blend-mode: difference; color: var(--fg); max-width: 15ch; }
.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  margin-top: clamp(28px, 5vh, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .actions { margin: 0; }

/* ---------- home: marquee (speed and skew follow scroll velocity, see main.js) ---------- */
.marquee { overflow: hidden; padding: clamp(28px, 5vw, 56px) 0; border-block: 1px solid var(--line); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; flex-shrink: 0; }
.mq-item {
  padding: 0 0.32em;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 7.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 237, 234, 0.45);
}
.mq-item:nth-child(4n + 1) {
  -webkit-text-stroke: 0;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
}
.mq-dot { flex-shrink: 0; width: clamp(14px, 1.8vw, 28px); aspect-ratio: 1; border-radius: 50%; background: var(--acc-dot); }

/* ---------- home: services as stacked sticky cards ---------- */
.stack { list-style: none; margin: clamp(24px, 4vw, 48px) 0 0; padding: 0; }
.stack-item { position: sticky; top: calc(var(--head) + 20px + var(--i) * 18px); margin-bottom: 10vh; }
.stack-item:last-child { margin-bottom: 0; }
.card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 32px;
  min-height: min(60vh, 540px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--r);
  background: linear-gradient(170deg, #1a1a1e 0%, #111114 60%, #0e0e10 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -24px 60px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 0;
  overflow: hidden;
}
.card-shade { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }
.card-n {
  align-self: start;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 13rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: transparent;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
}
.card-body { align-self: end; max-width: 52ch; }
.card-h { font-size: clamp(1.7rem, 3.2vw, 2.8rem); letter-spacing: -0.04em; margin-bottom: 0.5em; }
.card-text { color: var(--fg-2); font-size: 1.08rem; margin-bottom: 1.4em; }
.card-go { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1.8em; font-weight: 500; }
.card-go .ic { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-go .ic { transform: translate(3px, -3px); }
}

/* ---------- home: manifesto, words light up with scroll ---------- */
.manifesto { padding: clamp(110px, 24vh, 260px) 0; }
.manifesto-text {
  margin: 0;
  max-width: 24ch;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.4vw, 4rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
}
.js .mw { opacity: 0.14; }

/* ---------- home: process with a rail that draws ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); }
.process-head { position: sticky; top: calc(var(--head) + 40px); align-self: start; }
.steps-wrap { position: relative; padding-left: clamp(36px, 5vw, 72px); }
.steps-rail { position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: var(--line-2); }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--acc-hi), var(--acc) 70%, rgba(255, 106, 43, 0.2)); transform-origin: 50% 0; }
.js .steps-fill { transform: scaleY(0); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 12vh, 132px); }
.step { display: grid; grid-template-columns: clamp(76px, 8.4vw, 132px) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.js .step { opacity: 0.28; transition: opacity 600ms var(--ease-out); }
.js .step.is-on { opacity: 1; }
.step-n {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: transparent;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
}
.step h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0.15em 0 0.45em; }
.step p { color: var(--fg-2); margin: 0; max-width: 44ch; }

/* ---------- home: selected work, pinned horizontal scroll ---------- */
.work-hs { padding-top: clamp(88px, 14vh, 168px); }
.hs-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hs-viewport::-webkit-scrollbar { display: none; }
.hs-track {
  list-style: none;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  width: max-content;
  margin: 0;
  padding: 20px max(var(--gut), calc((100vw - var(--max)) / 2)) 28px;
}
.panel {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: clamp(290px, 40vw, 600px);
  height: min(62vh, 560px);
  min-height: 380px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: var(--r);
  background: linear-gradient(160deg, #1a1a1e 0%, #0f0f12 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  scroll-snap-align: center;
}
.panel-mark {
  position: absolute;
  right: -0.06em;
  top: 0.32em;
  z-index: -1;
  font-family: var(--display);
  font-size: clamp(9rem, 17vw, 16rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 237, 234, 0.13);
  pointer-events: none;
  transition: -webkit-text-stroke-color 500ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .panel:hover .panel-mark { -webkit-text-stroke-color: rgba(237, 237, 234, 0.3); }
}
.panel-top { display: flex; justify-content: space-between; gap: 16px; margin: 0; color: var(--fg-3); font-size: 0.86rem; }
.panel-n { font-variant-numeric: tabular-nums; }
.panel-h { margin: auto 0 0.45em; font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.045em; }
.panel-desc { color: var(--fg-2); max-width: 44ch; margin-bottom: 1.4em; }
.panel--end { width: clamp(260px, 28vw, 420px); background: none; box-shadow: inset 0 0 0 1px var(--line-2); justify-content: center; align-items: center; }
.end-link { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; text-align: center; }
.end-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.end-count {
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.07em;
  color: transparent;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
}
.end-label { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; }
.end-label .ic { transition: transform 260ms var(--ease-out); }
.hs-progress { position: relative; height: 1px; background: var(--line); display: none; }
.hs-bar { position: absolute; inset: 0; background: linear-gradient(90deg, #ff5310, #ff8a55); box-shadow: 0 0 14px rgba(255, 98, 30, 0.7); transform-origin: 0 50%; transform: scaleX(0); }
/* main.js turns the native carousel into a pinned scene where vertical scroll moves the track */
.work-hs.is-pinned .hs-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work-hs.is-pinned .hs-viewport { overflow: visible; scroll-snap-type: none; }
.work-hs.is-pinned .hs-track { will-change: transform; }
.work-hs.is-pinned .hs-progress { display: block; }
.work-hs.is-pinned .section-h { margin-bottom: 0.2em; }
@media (hover: hover) and (pointer: fine) {
  .end-link:hover .end-label .ic { transform: translateX(4px); }
}

/* chrome sheen that follows the pointer across a surface */
.sheen {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.13) 0%, rgba(190, 205, 235, 0.05) 34%, transparent 64%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  [data-sheen]:hover .sheen { opacity: 1; }
}

/* ---------- home: why ---------- */
.why-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 80px); }
.why-head .section-h { margin: 0; }
.why-head .section-lede { margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.why-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  padding: clamp(24px, 3.4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.why-item:nth-child(odd) { border-right: 1px solid var(--line); }
.why-n { font-family: var(--display); font-size: 0.85rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.why-item h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.035em; margin: 2.4em 0 0.5em; }
.why-item p { color: var(--fg-2); margin: 0; max-width: 46ch; }

/* ---------- split sections and FAQ ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 104px); }
.split-h { position: sticky; top: calc(var(--head) + 40px); align-self: start; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  list-style: none;
  cursor: pointer;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { width: 22px; height: 22px; transition: transform 200ms var(--ease-out); }
.qa[open] summary .ic { transform: rotate(45deg); }
.qa-a p { color: var(--fg-2); margin: 0 0 28px; max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height 280ms var(--ease-out), content-visibility 280ms allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* ---------- call to action ---------- */
.cta-band { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head) + 48px) 0 96px; }
.cta-in { position: relative; }
.cta-h {
  max-width: 11ch;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.6vw, 6.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 0.4em;
  mix-blend-mode: difference;
  color: var(--fg);
}
.cta-in > p { color: var(--fg-2); max-width: 44ch; font-size: 1.12rem; margin-bottom: 36px; }
.cta-act { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-direct { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 40px 0 0; padding: 0; color: var(--fg-2); }
.cta-direct li { display: flex; align-items: center; gap: 10px; }
.cta-direct a, .contact-list a, .site-footer ul a, .mega-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 200ms ease;
}
.cta-direct a::after, .contact-list a::after, .site-footer ul a::after, .mega-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 300ms var(--ease-out);
}
.cta-direct a { color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .cta-direct a:hover, .contact-list a:hover, .site-footer ul a:hover { color: var(--fg); }
  .cta-direct a:hover::after, .contact-list a:hover::after, .site-footer ul a:hover::after, .mega-link:hover::after {
    transform: scaleX(1);
    transform-origin: 0 50%;
  }
}

/* ---------- inner pages ---------- */
.page-hero { padding: calc(var(--head) + clamp(48px, 10vh, 120px)) 0 clamp(48px, 8vh, 104px); }
.page-hero .display--page { mix-blend-mode: difference; color: var(--fg); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; font-size: 0.86rem; color: var(--fg-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: var(--fg-2); text-decoration: none; }
.page-intro { max-width: 60ch; margin-top: 28px; }
.page-intro p { color: var(--fg-2); font-size: clamp(1.05rem, 1.3vw, 1.18rem); }
.page-intro a { color: var(--fg); }

.def-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.def-list > div { padding: 26px 0; border-top: 1px solid var(--line); }
.def-list dt { font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.025em; margin-bottom: 0.5em; }
.def-list dd { margin: 0; color: var(--fg-2); }
.def-list--compact dt { font-size: 1rem; }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0; }
.tech-grid > div { padding: 24px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.tech-grid dt { font-size: 0.82rem; color: var(--fg-3); margin-bottom: 10px; }
.tech-grid dd { margin: 0; }

.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.work-head .section-h { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--fg-2);
  font: 500 0.92rem/1 var(--sans);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.filter:active { transform: scale(0.97); }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .filter[aria-pressed="false"]:hover { color: var(--fg); background: rgba(237, 237, 234, 0.06); }
}

.proj-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proj {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--head) + 24px);
}
.proj::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff 50%, transparent);
  transform: scaleX(0);
  transition: transform 400ms var(--ease-out);
}
.proj[hidden] { display: none; }
.proj h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -0.035em; margin-bottom: 0.3em; }
.proj-cat { color: var(--fg-3); font-size: 0.92rem; margin: 0; }
.proj-desc { color: var(--fg-2); margin: 0; }
.proj-fact { font-size: 0.94rem; margin: 0 0 14px; }
.proj:target h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .proj:hover::after { transform: scaleX(1); }
}

.about-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.portrait { position: sticky; top: calc(var(--head) + 24px); margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.portrait img { width: 100%; height: auto; filter: grayscale(1) contrast(1.06); transition: filter 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .portrait:hover img { filter: grayscale(0) contrast(1); }
}
.role { color: var(--fg-2); font-size: 1.1rem; margin: 16px 0 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; }
.facts > div { padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.82rem; color: var(--fg-3); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.02em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.tl-when { color: var(--fg-3); font-size: 0.9rem; margin: 0; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.25rem; }
.tl-org { color: var(--fg-2); margin: 4px 0 10px; }
.timeline li p:last-child { color: var(--fg-2); margin: 0; }

.mega-link {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 4.4vw, 3.6rem);
  letter-spacing: -0.045em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mega-link::after { height: 2px; bottom: 0; }
.contact-list { margin: 0; }
.contact-list > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--fg-3); }
.contact-list dd { margin: 0; }
.help-list { list-style: none; margin: 0; padding: 0; }
.help-list li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); color: var(--fg-2); }
.help-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--acc-dot); }
.prose .section-h--sm { margin-top: 1.8em; }
.prose p { color: var(--fg-2); }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(64px, 10vh, 112px); background: var(--bg); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { color: var(--fg-2); max-width: 32ch; margin-top: 16px; }
.foot-h { font-size: 0.8rem; color: var(--fg-3); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { padding: 4px 0; }
.site-footer ul a { color: var(--fg-2); }
.foot-legal { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; margin: 0; }
.legal dt { font-size: 0.78rem; color: var(--fg-3); }
.legal dd { margin: 4px 0 0; font-size: 0.92rem; color: var(--fg-2); }
.foot-base { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: 40px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 0.86rem; }
.foot-base p { margin: 0; }
.foot-base a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- home: "why" as a light sheet, with counters ---------- */
/* "why" as a dark graphite card with a warm glow, in the same family as the other cards */
.why {
  --ink: var(--fg);
  --ink-2: var(--fg-2);
  --ink-3: var(--fg-3);
  --ink-line: var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: clamp(8px, 1.4vw, 20px);
  border-radius: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(ellipse 55% 45% at 92% 0%, rgba(255, 106, 43, 0.16), transparent 70%),
    linear-gradient(165deg, #1a1a1e 0%, #111114 60%, #0e0e10 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--fg);
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin: 0 0 clamp(48px, 6vw, 96px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 22px; border-top: 1px solid var(--ink-line); }
.stat dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
}
.stat dd .count { color: transparent; background: var(--chrome); -webkit-background-clip: text; background-clip: text; }
.stat-suf { color: var(--acc); text-shadow: 0 0 24px rgba(255, 106, 43, 0.55); }
.stat dt { margin-top: 14px; max-width: 24ch; color: var(--ink-2); }

/* ---------- guides: cards, index, article ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--r);
  background: linear-gradient(160deg, #1a1a1e 0%, #0f0f12 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.guide-meta { margin: 0; color: var(--fg-3); font-size: 0.86rem; }
.guide-h { margin: auto 0 0.6em; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.035em; line-height: 1.15; text-wrap: balance; }
.guide-desc { margin: 0 0 1.4em; color: var(--fg-2); font-size: 0.98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-card .card-go { margin-top: 0; }
@media (hover: hover) and (pointer: fine) {
  .guide-card:hover .card-go .ic { transform: translate(3px, -3px); }
}

.display--article { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 4.4rem); }
.article-meta { margin: 24px 0 0; color: var(--fg-3); font-size: 0.92rem; }
.article { padding-top: clamp(24px, 4vh, 48px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(40px, 6vw, 104px); align-items: start; }
.article-body { max-width: 68ch; }
.article-body h2 { margin: 2em 0 0.6em; font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -0.035em; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { color: var(--fg-2); font-size: 1.08rem; line-height: 1.75; }
.article-list { list-style: none; display: grid; gap: 12px; margin: 0 0 1.4em; padding: 0; }
.article-list li { position: relative; padding-left: 26px; color: var(--fg-2); font-size: 1.05rem; line-height: 1.65; }
.article-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--acc-dot); }
.article-aside {
  position: sticky;
  top: calc(var(--head) + 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.article-aside-h { margin: 0; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.03em; }
.article-aside p { margin: 0; color: var(--fg-2); }

/* ---------- contact: the enquiry form ---------- */
.contact-main { padding-top: clamp(24px, 4vh, 48px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.contact-aside .contact-list { margin-bottom: 56px; }
.qform { display: grid; gap: clamp(40px, 5vw, 56px); }
.qform[hidden] { display: none; }
.qf-step { display: grid; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.qf-step-n { display: flex; align-items: center; gap: 14px; margin: 0; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.03em; }
.qf-step-n span {
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--acc);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 43, 0.45);
}
.qf-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.qf-legend { margin-bottom: 12px; padding: 0; color: var(--fg-2); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.chip span:active { transform: scale(0.97); }
.chip input:checked + span { background-color: var(--acc); background-image: var(--acc-fill); color: var(--acc-ink); box-shadow: var(--acc-shadow); }
/* multi-select chips carry a small box so they read as checkboxes, not radio buttons */
.chip--multi span::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.55;
  transition: opacity 200ms ease;
}
.chip--multi input:checked + span::before { opacity: 1; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23160a05' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat, rgba(22, 10, 5, 0.14); }
.qf-legend small { margin-left: 6px; color: var(--fg-3); font-size: 0.85rem; }
.chip input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 3px; }
.qf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.qf-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.qf-field label { color: var(--fg-2); font-size: 0.95rem; }
.qf-opt { color: var(--fg-3); font-size: 0.85rem; }
.qf-field input, .qf-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  box-shadow: inset 0 0 0 1px var(--line-2);
  appearance: none;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.qf-field textarea { min-height: 150px; resize: vertical; }
.qf-field input:focus, .qf-field textarea:focus { outline: none; background: var(--bg-3); box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px rgba(255, 106, 43, 0.14); }
.qf-field :user-invalid, .qf-field input.is-bad { box-shadow: inset 0 0 0 1.5px #ff7d6b; }
.qf-field input.is-ok { box-shadow: inset 0 0 0 1.5px rgba(122, 222, 166, 0.65); }
.qf-msg { margin: 0; color: #ff9d8c; font-size: 0.88rem; }
.qf-hint { margin: 0; color: var(--fg-3); font-size: 0.88rem; }
.qf-consent { display: flex; align-items: flex-start; gap: 12px; color: var(--fg-2); font-size: 0.95rem; cursor: pointer; }
.qf-consent input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border-radius: 7px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.qf-consent input:active { transform: scale(0.92); }
.qf-consent input:checked { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23160a05' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat, var(--acc-fill); background-color: var(--acc); box-shadow: var(--acc-shadow); }
.qf-consent input:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.qf-consent a { color: var(--fg); }
.qf-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.qf-status { margin: 0; color: var(--fg-2); font-size: 0.95rem; }
.qform.is-sending .qf-submit { opacity: 0.7; pointer-events: none; }
.qf-error { margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(255, 106, 43, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 106, 43, 0.4); }
.qf-error a { color: var(--fg); }
.qf-error:target, .qf-done:target { display: block; }
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qf-done { padding: clamp(28px, 4vw, 48px); border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.qf-done:focus { outline: none; }
.qf-done p { color: var(--fg-2); margin: 0; max-width: 46ch; }
.qf-done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 50%; background-color: var(--acc); background-image: var(--acc-fill); color: var(--acc-ink); box-shadow: var(--acc-shadow); }
.qf-done-mark .ic { width: 26px; height: 26px; }
.qf-done.is-in { animation: done-in 600ms var(--ease-out) both; }
.qf-done.is-in .qf-done-mark { animation: done-mark 700ms cubic-bezier(0.34, 1.4, 0.64, 1) 120ms both; }
@keyframes done-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes done-mark { from { opacity: 0; transform: scale(0.7); } }
@media (hover: hover) and (pointer: fine) {
  .chip:hover input:not(:checked) + span { color: var(--fg); background: rgba(237, 237, 234, 0.06); }
}

/* ---------- optional project screenshots ---------- */
.panel-media, .proj-media { margin: 0; overflow: hidden; border-radius: 16px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); }
.panel-media { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.proj-media { aspect-ratio: 4 / 3; }
.panel-media img, .proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj--media { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); }

/* ---------- pointer ring (fine pointers only, added by main.js) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
.cursor.is-on { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 12px rgba(255, 98, 30, 0.35);
  transition: transform 240ms var(--ease-out), background-color 200ms ease;
}
.cursor.is-link > span { transform: scale(1.55); background: rgba(255, 106, 43, 0.14); }
.cursor.is-down > span { transform: scale(0.8); }
.cursor.is-link.is-down > span { transform: scale(1.3); }

@media (max-width: 960px) {
  .stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stat { flex-direction: row-reverse; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; }
  .stat dt { margin: 0; text-align: right; }
  .stat dd { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .guide-grid, .guide-grid--two { grid-template-columns: minmax(0, 1fr); }
  .guide-card { min-height: 0; }
  .guide-h { margin-top: 2.2em; }
  .article-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .proj--media { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .qf-row { grid-template-columns: minmax(0, 1fr); }
  .why { margin-inline: 8px; }
}

/* ---------- arriving on a page: the content eases in, header and backdrop stay put ---------- */
main, .site-footer { animation: page-in 420ms var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
/* the direction follows the menu: a page further right in the menu slides in from the right, an earlier one from the left */
html[data-dir="r"] :is(main, .site-footer) { animation-name: page-in-r; animation-duration: 480ms; }
html[data-dir="l"] :is(main, .site-footer) { animation-name: page-in-l; animation-duration: 480ms; }
@keyframes page-in-r { from { opacity: 0; transform: translateX(56px); } }
@keyframes page-in-l { from { opacity: 0; transform: translateX(-56px); } }
/* ---------- home: the globe ---------- */
.globe-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.globe-facts { list-style: none; display: grid; gap: 14px; margin: 32px 0 0; padding: 0; }
.globe-facts li { position: relative; padding-left: 28px; color: var(--fg-2); }
.globe-facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 1px; background: var(--acc); box-shadow: 0 0 10px rgba(255, 106, 43, 0.8); }
.globe-wrap { justify-self: center; width: min(100%, 640px); }
.globe { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
@media (max-width: 960px) { .globe-grid { grid-template-columns: minmax(0, 1fr); } .globe-wrap { width: min(100%, 460px); } }

/* ---------- service cards: compact, with an icon instead of a numeral ---------- */
.card { grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; min-height: 0; padding: clamp(22px, 2.6vw, 36px); }
.card-ic {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: var(--acc-hi);
  background: radial-gradient(circle at 30% 25%, rgba(255, 138, 85, 0.22), rgba(255, 106, 43, 0.06) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 43, 0.38), 0 0 24px -6px rgba(255, 106, 43, 0.5);
}
.card-ic .ic { width: 30px; height: 30px; }
.card-body { align-self: start; max-width: 62ch; }
.card-h { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 0.4em; }
.card-text { margin-bottom: 1.1em; }
.card-go { margin-top: 1.2em; }
.stack-item { margin-bottom: 6vh; }
@media (max-width: 960px) { .card { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
@media (max-width: 640px) { .card { min-height: 0; } .card-ic { width: 54px; height: 54px; border-radius: 17px; } }

/* ---------- prices ---------- */
.card-price { margin: 0 0 0.9em; color: var(--fg-3); font-size: 0.95rem; }
.card-price strong { color: var(--acc-hi); font-weight: 600; }
.price-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; }
.price-card {
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r);
  background: linear-gradient(160deg, #1a1a1e 0%, #0f0f12 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.price-from { margin: 0 0 18px; color: var(--fg-3); font-size: 0.9rem; }
.price-from strong { display: block; margin-top: 4px; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; color: var(--fg); }
.price-card h3 { margin: 0 0 0.45em; font-size: 1.15rem; }
.price-card p:last-child { margin: 0; color: var(--fg-2); font-size: 0.96rem; }
.price-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.price-hourly { margin: 0 0 20px; color: var(--fg-2); }
.price-hourly strong { color: var(--fg); }
.price-factors-h { margin: 0 0 10px; color: var(--fg-3); font-size: 0.85rem; }
.price-factors { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; }
.price-factors li { padding: 7px 12px; border-radius: 999px; font-size: 0.85rem; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.price-note { margin: 0; color: var(--fg-3); font-size: 0.85rem; }
@media (max-width: 960px) { .price-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- price list ---------- */
.price-on { display: block; margin-top: 6px; color: var(--fg-3); font-size: 0.8rem; font-weight: 400; letter-spacing: 0; font-family: var(--sans); }
.card-price .price-on, .price-hourly .price-on { display: inline; margin: 0; }
.table-wrap { overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table th, .pl-table td { padding: 18px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pl-table thead th { color: var(--fg-3); font-size: 0.85rem; font-weight: 500; }
.pl-table tbody th { font-weight: 500; }
.pl-table tbody th small { display: block; margin-top: 4px; color: var(--fg-3); font-weight: 400; font-size: 0.86rem; }
.pl-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-down { margin-top: 48px; }
.pl-down p { color: var(--fg-2); }
.pl-files { display: flex; gap: 10px; }
.pl-arch { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--fg-2); }
.pl-arch a { color: var(--fg); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .process-grid, .why-head { grid-template-columns: minmax(0, 1fr); }
  .split-h, .process-head { position: static; }
  .card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card-n { font-size: clamp(4rem, 18vw, 7rem); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: static; max-width: 340px; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .def-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-item:nth-child(odd) { border-right: 0; }
  .why-item { min-height: 0; }
  .why-item h3 { margin-top: 1.4em; }
  .timeline li, .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .panel { width: 84vw; height: min(64svh, 520px); }
  .panel--end { width: 64vw; }
  .stack-item { top: calc(var(--head) + 4px + var(--i) * 12px); }
  .btn--xl { height: 58px; padding: 0 24px; font-size: 1rem; }
  .cta-band { align-items: flex-end; }
}

/* ---------- reduced motion: keep the content, drop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.words { transform: none; filter: none; opacity: 0; transition: opacity 240ms ease; transition-delay: 0ms; }
  .js .reveal.is-in, .js .reveal.words.is-in { opacity: 1; }
  .js .words.reveal .wd { transform: none; transition: none; }
  .js .hero-title .wd, .js .display--page .wd { animation: fade 400ms ease both; animation-delay: 100ms; }
  .js .hero-in { animation: fade 400ms ease both; animation-delay: 250ms; }
  .js .mw, .js .step { opacity: 1; }
  .js .steps-fill { transform: none; }
  @media (max-width: 1100px) {
    .nav { clip-path: none !important; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms !important; }
    .nav.is-open { opacity: 1; transition: opacity 200ms ease !important; }
    .nav a { transform: none !important; transition: none !important; }
    .nav.is-open a { opacity: 1; }
  }
  main, .site-footer, html[data-dir] :is(main, .site-footer) { animation: fade 200ms ease both; }
  .qa::details-content { transition: none; }
  .qf-done.is-in, .qf-done.is-in .qf-done-mark { animation: fade 240ms ease both; }
}
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .bar::before { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- service pages: who it is for, short process ---------- */
.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: 22px 0 22px 44px; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23160a05' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat, var(--acc-fill);
  background-color: var(--acc);
  box-shadow: var(--acc-shadow);
}
.mini-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; }
.mini-steps li { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.mini-steps .step-n { display: block; font-size: clamp(2.2rem, 3.4vw, 3rem); }
.mini-steps h3 { margin: 0.7em 0 0.4em; font-size: 1.25rem; }
.mini-steps p { margin: 0; color: var(--fg-2); font-size: 0.98rem; }
.guide-grid--one { grid-template-columns: minmax(0, 1fr); }
.guide-grid--one .guide-card { min-height: 240px; }
@media (max-width: 960px) {
  .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mini-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- site-wide backdrop: a faint orange grid, fixed behind every page, still ---------- */
body::before, body::after { content: ""; position: fixed; z-index: -2; pointer-events: none; }
body::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 106, 43, 0.13) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 106, 43, 0.13) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 130% 100% at 8% 22%, #000 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.14) 100%);
  mask-image: radial-gradient(ellipse 130% 100% at 8% 22%, #000 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.14) 100%);
}
/* one calm, fixed glow in the upper left; nothing moves on its own */
body::after { inset: 0; background: radial-gradient(ellipse 60% 55% at 12% 18%, rgba(255, 106, 43, 0.09), transparent 70%); }
/* the same grid, brighter, revealed only around the pointer (element added by main.js, fine pointers only) */
.grid-lit {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
  background:
    linear-gradient(rgba(255, 140, 80, 0.55) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 140, 80, 0.55) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  -webkit-mask-size: 520px 520px;
  mask-size: 520px 520px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: -999px -999px;
  mask-position: -999px -999px;
}
.grid-lit.is-on { opacity: 1; }
@media (max-width: 720px) { body::before { opacity: 0.65; } }
/* the footer lets the grid show through softly instead of covering it */
.site-footer { background: rgba(11, 11, 13, 0.8); }

/* ---------- section breaker: an orange line that opens from the centre when it scrolls into view ---------- */
.breaker { position: relative; width: min(var(--max), 100% - 2 * var(--gut)); height: 1px; margin: clamp(48px, 9vh, 104px) auto; background: var(--line); }
.breaker-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, #ff6a2b 50%, transparent 100%);
  box-shadow: 0 0 22px 1px rgba(255, 106, 43, 0.55);
  transform: scaleX(0);
  transition: transform 1500ms var(--ease-out) 200ms;
}
.breaker-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--acc-dot);
  box-shadow: 0 0 0 5px rgba(255, 106, 43, 0.16), 0 0 18px rgba(255, 106, 43, 0.8);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.34, 1.4, 0.64, 1), opacity 400ms ease;
}
.breaker.is-in .breaker-line { transform: scaleX(1); }
.breaker.is-in .breaker-dot { transform: none; opacity: 1; }
.js .breaker.reveal { filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .breaker-line, .breaker-dot { transition: none; } }

/* ---------- numerals: fewer and smaller. Kept only where they carry meaning (steps, stats). ---------- */
.card-n { font-size: clamp(2.2rem, 3.2vw, 3rem); letter-spacing: -0.05em; line-height: 1; align-self: start; }
.step-n { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.04em; line-height: 1.1; }
.step { grid-template-columns: clamp(48px, 5vw, 68px) minmax(0, 1fr); }
.mini-steps .step-n { font-size: 1.5rem; }
.panel-mark, .why-n { display: none; }
.why-item h3 { margin-top: 0; }
.why-item { min-height: 0; }
.stat dd { font-size: clamp(2.8rem, 5.6vw, 4.8rem); }
.end-count { font-size: clamp(3rem, 6vw, 5rem); }

/* ---------- selected work: smaller, quieter panels ---------- */
.panel {
  width: clamp(270px, 28vw, 410px);
  height: min(44vh, 380px);
  min-height: 290px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 26, 30, 0.75), rgba(15, 15, 18, 0.75));
}
.panel-top { font-size: 0.8rem; }
.panel-h { font-size: clamp(1.3rem, 1.9vw, 1.7rem); margin-bottom: 0.35em; }
.panel-desc { font-size: 0.92rem; line-height: 1.55; margin-bottom: 1.1em; max-width: 40ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.panel .tags li { font-size: 0.74rem; padding: 6px 10px; }
.panel--end { width: clamp(200px, 17vw, 260px); }
@media (max-width: 640px) {
  .panel { width: 76vw; height: min(50svh, 360px); min-height: 280px; }
  .panel--end { width: 52vw; }
}
