/* TwistmarkStudio AB — site styles (v2, motion edition)
   Palette from the logo: deep navy, brand navy, steel blue, gold.
   All motion respects prefers-reduced-motion and only runs when JS is present. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  /* tiny subset: only the letters of "Studio" in the wordmark */
  font-family: "Wordmark Studio";
  src: url("../fonts/sofia-sans-condensed-studio.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --ink-night: #040f24;
  --navy-950: #061733;
  --navy-900: #0a2149;
  --navy-700: #113262;
  --steel: #4e78b0;
  --steel-light: #8fb4e8;
  --gold: #f4b31a;
  --gold-light: #fac63f;
  --paper: #ffffff;
  --mist: #f1f4f9;
  --line: #d9e0ea;
  --ink: #16233a;
  --muted: #55627a;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 11vw, 140px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--steel); }

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

::selection { background: var(--gold); color: var(--navy-950); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 12px; color: #fff; }

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

/* ---------- Page transitions between documents (supported browsers) ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .35s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Intro: the mark assembles (when arriving from outside the site) ---------- */

.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center; align-content: center; gap: 22px;
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  clip-path: inset(0 0 0 0);
  animation: intro-lift .9s var(--ease-in-out) 1.75s forwards;
}
.intro svg { width: 112px; height: auto; overflow: visible; }
.intro .rb {
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: rb-in .9s var(--ease-out) forwards;
}
.intro .rb-1 { --from: translate(-46px, 0) skewX(-12deg); animation-delay: .15s; }
.intro .rb-2 { --from: translate(44px, -26px) rotate(8deg); animation-delay: .32s; }
.intro .rb-3 { --from: translate(26px, 40px) rotate(-10deg); animation-delay: .5s; }
.intro .rb-f { --from: translate(10px, 10px); animation-delay: .62s; }
.intro .rb-4 { --from: translate(-10px, 46px) rotate(10deg); animation-delay: .68s; }
@keyframes rb-in {
  from { opacity: 0; transform: var(--from); }
  to   { opacity: 1; transform: none; }
}
.intro-word {
  font-size: 24px; color: var(--navy-900);
  opacity: 0; transform: translateY(8px);
  animation: word-in .7s var(--ease-out) 1s forwards;
}
@keyframes word-in { to { opacity: 1; transform: none; } }
@keyframes intro-lift { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease-out);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.brand-mark { position: relative; width: 34px; height: 31px; perspective: 200px; }
.brand-mark img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: opacity .4s, transform .8s var(--ease-out);
}
.brand-mark .on-dark { opacity: 0; }
.brand:hover .brand-mark img { transform: rotateY(360deg); }
.brand .wordmark { font-size: 20px; color: var(--navy-900); transition: color .4s; }

/* Wordmark: Twistmark · Studio (logo only) */
.wordmark { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; }
.wm-a { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; }
.wm-dot {
  width: .26em; height: .26em; border-radius: 50%; background: var(--gold);
  margin: 0 .2em 0 .17em; align-self: center; transform: translateY(-.02em); flex: none;
}
.wm-b { font-family: "Wordmark Studio", "Arial Narrow", var(--sans); font-weight: 400; font-size: 1.08em; letter-spacing: .01em; }

/* The name in running text: Twistmark·Studio with the gold dot */
.tm { white-space: nowrap; }
.tm-dot {
  display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--gold);
  margin: 0 .1em 0 .09em; vertical-align: .2em;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .4s;
}
.nav .nav-section::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav .nav-section:hover::after, .nav .nav-section.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover { color: var(--navy-700); }

.lang {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .3s, color .4s, background-color .3s;
}
.nav .lang { font-size: 14px; }
.lang:hover { border-color: var(--navy-700); }

/* Header over the dark hero (JS only) */
.js .site-header.over-dark { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.js .site-header.over-dark.scrolled {
  background: rgba(4, 15, 36, .72); border-bottom-color: rgba(255,255,255,.08);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.js .site-header.over-dark .brand .wordmark, .js .site-header.over-dark .nav a { color: #fff; }
.js .site-header.over-dark .lang { border-color: rgba(255,255,255,.28); }
.js .site-header.over-dark .lang:hover { border-color: var(--gold); background: rgba(255,255,255,.06); }
.js .site-header.over-dark .brand-mark .on-dark { opacity: 1; }
.js .site-header.over-dark .brand-mark .on-light { opacity: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(640px, min(100vh, 940px));
  min-height: max(640px, min(100svh, 940px));
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  background:
    radial-gradient(120% 90% at 78% 40%, #0e2c5e 0%, rgba(14,44,94,0) 60%),
    radial-gradient(80% 70% at 10% 100%, #0a2149 0%, rgba(10,33,73,0) 70%),
    var(--ink-night);
  color: #dfe6f1;
}
/* engineering grid, fading out from the braid */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(143,180,232,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,180,232,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 72% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 72% 45%, #000 0%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(4,15,36,0), var(--ink-night));
}
/* soft light that follows the pointer */
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 45%), rgba(244,179,26,.10), transparent 60%);
  transition: opacity .6s;
}
.hero-canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 160px);
}

.hero-content { position: relative; max-width: 640px; }

.status {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; color: #b9c6da; margin: 0 0 30px;
  padding: 7px 14px 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot::after { animation: ping 2.4s var(--ease-out) infinite; }
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

.hero h1 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(42px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.025em;
  color: #fff; margin: 0 0 30px; max-width: 14ch; text-wrap: balance;
}
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: #b9c6da; max-width: 35em; margin: 0 0 44px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: color .35s, border-color .35s, transform .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold::before { background: #fff; }
.btn-gold:hover { color: var(--navy-950); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost::before { background: rgba(255,255,255,.1); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.6); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px;
  background: rgba(255,255,255,.16); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: cue 2.2s var(--ease-in-out) infinite; }
}
@keyframes cue { to { top: 100%; } }

/* Split-word headline reveal (JS adds the spans) */
.js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split-words .w > span { display: inline-block; transform: translateY(105%); }
.js .split-words.is-in .w > span { transform: none; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }

.js .hero-fade { opacity: 0; transform: translateY(14px); }
.js .hero-in .hero-fade { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }

/* ---------- Scroll thread ---------- */

main { position: relative; }
.thread { display: none; }
@media (min-width: 1180px) {
  .js .thread {
    display: block; position: absolute; z-index: 3; pointer-events: none;
    left: max(18px, calc((100vw - var(--wrap)) / 2 + var(--gutter) / 2 - 14px));
    width: 2px; top: 0; bottom: 0;
  }
  .thread-track { position: absolute; inset: 0; left: 0; width: 1px; background: rgba(17,50,98,.12); }
  .thread-fill {
    position: absolute; left: -0.5px; top: 0; width: 2px; height: 100%;
    background: linear-gradient(var(--gold), var(--gold-light));
    transform-origin: top; transform: scaleY(var(--p, 0));
  }
  .thread-node {
    position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--paper); border: 2px solid rgba(17,50,98,.25);
    transition: border-color .4s, background-color .4s, box-shadow .6s;
  }
  .thread-node.on { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px rgba(244,179,26,.16); }
}

@media (min-width: 1180px) {
  .thread-node { background: transparent; }
  .on-dark-zone .thread-track { background: rgba(255,255,255,.08); }
}

/* ---------- Sections ---------- */

.section { position: relative; padding: var(--section) 0; }
.section-light { background: var(--paper); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink-night); color: #dfe6f1; }

.sec-title {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.022em;
  color: var(--navy-900); margin: 0;
}
.sec-title::before {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px;
  background: var(--gold); margin-bottom: 24px; transform-origin: left;
}
.section-dark .sec-title { color: #fff; }
.js .reveal-head .sec-title::before { transform: scaleX(0); }
.js .reveal-head.is-in .sec-title::before { transform: none; transition: transform .9s var(--ease-out) .1s; }
.sec-intro { margin: 18px 0 0; font-size: 18px; color: var(--muted); max-width: 34em; }
.section-dark .sec-intro { color: #9fb0ca; }

/* generic reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }

/* ---------- About: continues the hero ---------- */

.about {
  background:
    radial-gradient(60% 50% at 85% 100%, rgba(126,26,26,.18) 0%, rgba(126,26,26,0) 70%),
    linear-gradient(var(--ink-night), var(--navy-950));
  padding-top: clamp(64px, 9vw, 120px);
}
.about-lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 980px; }
.lit {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(28px, 3.5vw, 48px); line-height: 1.18; letter-spacing: -0.028em;
  color: #fff; margin: 0; text-wrap: pretty;
}
.js .lit .lw { color: rgba(223,230,241,.16); transition: color .5s var(--ease-out); }
.js .lit .lw.on { color: #fff; }
.js .lit .lw.gold.on { color: var(--gold); }
.about-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(28px, 4vw, 56px); max-width: 860px; }
.about-text p { margin: 0; color: #b9c6da; font-size: 17.5px; }

/* Products and ventures: compact portfolio grid */
.products { margin-top: clamp(72px, 9vw, 120px); }
.products-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.products-head h2 { margin: 0; font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.015em; color: #fff; }
.products-head p { margin: 0; color: #9fb0ca; font-size: 16px; }

.portfolio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pf-card { min-width: 0; }
.pf-link {
  display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: box-shadow .4s, background-color .4s, transform .6s var(--ease-out);
}
.pf-link:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(244,179,26,.5); transform: translateY(-4px); color: inherit; }
.pf-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.pf-thumb-nexumora { background: radial-gradient(90% 90% at 50% 40%, #241815 0%, #150f0d 70%); }
.pip-swap nexumora-pip { position: absolute; inset: 0; width: 100%; height: 100%; }
.pip-swap .pip-rest { transition: opacity .4s var(--ease-out); }
.pip-swap .pip-live { opacity: 0; transition: opacity .4s var(--ease-out); }
.pip-swap.is-live .pip-live { opacity: 1; transition: none; }
.pip-swap.is-live .pip-rest { opacity: 0; transition: none; }
.pf-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pf-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pf-title h3, .pf-cta h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; color: #fff; }
.pf-ext { width: 16px; height: 16px; fill: none; stroke: #9fb0ca; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, transform .4s var(--ease-out); }
.pf-link:hover .pf-ext { stroke: var(--gold); transform: translate(2px, -2px); }
.pf-slogan { margin: 6px 0 8px; font-family: var(--serif); font-size: 18px; color: #ddd4ce; }
.pf-desc { margin: 0 0 16px; color: #9fb0ca; font-size: 15px; line-height: 1.55; }
.pf-tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tags li { font-size: 13px; color: #b9c6da; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.pf-cta .pf-link { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.pf-cta .pf-link { background-image: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0)); outline: 1px dashed rgba(255,255,255,.18); outline-offset: -1px; box-shadow: none; }
.pf-cta .pf-link:hover { outline-color: rgba(244,179,26,.6); background: rgba(255,255,255,.03); }
.pf-cta .pf-body { justify-content: center; padding: 28px; }
.pf-plus { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background-color .3s, box-shadow .3s; }
.pf-plus svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.pf-cta .pf-link:hover .pf-plus { background: var(--gold); box-shadow: none; }
.pf-cta .pf-link:hover .pf-plus svg { stroke: var(--navy-950); }
.pf-cta h3 { margin-bottom: 8px; }
.pf-more { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--gold); }

/* ---------- What we do: pinned stage + scrolling steps ---------- */

.services { background: var(--mist); overflow: clip; }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(17,50,98,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,50,98,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}
.svc-header { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.svc-header .sec-intro { margin: 0; }

.svc-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }

.svc-grid { --stage-h: min(540px, calc(100vh - var(--header-h) - 96px)); }
.svc-stage {
  position: sticky; top: calc(50vh + var(--header-h) / 2 - var(--stage-h) / 2);
  height: var(--stage-h);
  border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(80% 80% at 70% 20%, #143a78 0%, rgba(20,58,120,0) 70%),
    var(--navy-950);
  box-shadow: 0 50px 100px -50px rgba(6,23,51,.7), inset 0 0 0 1px rgba(255,255,255,.06);
}
.svc-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(143,180,232,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,180,232,.07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.svc-scene {
  position: absolute; inset: 8% 6% 18%; z-index: 1;
  opacity: 0; transform: scale(.96); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.svc-scene.active { opacity: 1; transform: none; }
.svc-scene svg { width: 100%; height: 100%; }
.svc-meta {
  position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: #dfe6f1; font-size: 15px; font-weight: 500;
}
.svc-bars { display: flex; gap: 6px; }
.svc-bars span { position: relative; width: 36px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.16); overflow: hidden; }
.svc-bars span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.svc-bars span.on::after { transform: none; }

.svc-steps { list-style: none; margin: 0; padding: 0; }
.svc-step {
  min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0; transition: opacity .6s var(--ease-out);
}
.js .svc-step { opacity: .28; }
.js .svc-step.active { opacity: 1; }
.svc-step h3 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--navy-900); margin: 0 0 16px;
}
.svc-step p { margin: 0 0 22px; max-width: 30em; font-size: 18px; color: #34425a; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 7px 14px; border-radius: 999px; font-size: 14.5px; color: var(--navy-700);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.svc-step .viz { display: none; }

/* small dark visual panels (mobile copies) */
.viz {
  position: relative; width: 100%; aspect-ratio: 22 / 15;
  border-radius: 18px; overflow: hidden; margin-bottom: 24px;
  background: radial-gradient(90% 90% at 70% 20%, #12336a 0%, rgba(18,51,106,0) 70%), var(--navy-950);
}
.viz svg { width: 100%; height: 100%; }

/* Platform visual: layers stack (pure CSS) */
.plate { transform-box: fill-box; transform-origin: center; }
.js .viz-platform .plate { opacity: 0; transform: translateY(-26px); }
.js .viz-platform.is-in .plate { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.js .viz-platform.is-in .plate-2 { transition-delay: .25s; }
.js .viz-platform.is-in .plate-3 { transition-delay: .5s; }
.app { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .viz-platform.is-in .top-group { animation: float 5s ease-in-out 1.4s infinite; }
  .viz-platform.is-in .app { animation: app-pop 3.6s var(--ease-out) infinite; }
  .viz-platform.is-in .app-2 { animation-delay: .6s; }
  .viz-platform.is-in .app-3 { animation-delay: 1.2s; }
}
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes app-pop {
  0%, 12% { opacity: .35; transform: translateY(-8px); }
  30%, 80% { opacity: 1; transform: none; }
  100% { opacity: .35; transform: none; }
}

/* ---------- How we work ---------- */

.principles-head { margin-bottom: clamp(40px, 5vw, 64px); }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.principle { position: relative; padding: 28px 0 0; border-top: 1px solid var(--line); }
.principle::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--navy-900); transform: scaleX(0); transform-origin: left;
}
.js .principle[data-reveal].is-in::before { transform: scaleX(1); transition: transform 1.2s var(--ease-out) calc(var(--d, 0s) + .1s); }
.p-icon { width: 34px; height: 34px; margin-bottom: 22px; fill: none; stroke: var(--navy-700); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.p-icon :last-child { stroke: var(--gold-deep); }
.js .principle[data-reveal] .p-icon * { stroke-dasharray: 100; stroke-dashoffset: 100; }
.js .principle[data-reveal].is-in .p-icon * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out) calc(var(--d, 0s) + .2s); }
.principle h3 { font-size: 19px; font-weight: 650; color: var(--navy-900); margin: 0 0 8px; letter-spacing: -0.01em; }
.principle p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Contact ---------- */

.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.contact-intro .sec-intro { margin-bottom: 32px; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy::before { background: var(--navy-700); }
.btn-navy:hover { color: #fff; }

.contact-list { margin: 0; }
.contact-list > div {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.contact-list > div:first-child { border-top: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: 15px; }
.contact-list dd { margin: 0; font-size: 17px; color: var(--ink); }
.contact-list a { color: var(--navy-900); text-decoration: none; }
.contact-list dd > a:hover { text-decoration: underline; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 500 13px/1 var(--sans); color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px;
  transition: border-color .3s, color .3s;
}
.copy-btn:hover { border-color: var(--navy-700); color: var(--navy-900); }
.copy-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn.copied { color: #1d7a4a; border-color: #1d7a4a; }

.socials { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--navy-900); border: 1px solid var(--line);
  transition: color .3s, background-color .3s, border-color .3s;
}
.socials a:hover { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-night); color: #8395b2; font-size: 14px; padding: 0 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.footer-brand img { width: 30px; height: auto; }
.footer-brand .wordmark { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #dfe6f1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 0; }
.doc-footer { padding-top: 48px; }

/* ---------- Simple document pages (404) ---------- */

.doc { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 var(--section); }
.doc-inner { max-width: 720px; }
.doc h1 {
  font-family: var(--serif); font-optical-sizing: auto; font-weight: 400;
  font-size: clamp(40px, 4.8vw, 60px); line-height: 1.06; letter-spacing: -0.022em;
  color: var(--navy-900); margin: 0 0 16px;
}
.doc .updated { color: var(--muted); margin: 0 0 48px; }
.doc h2 { font-size: 21px; font-weight: 650; color: var(--navy-900); margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); }
}

@media (max-width: 960px) {
  .nav .nav-section { display: none; }
  .svc-header { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-stage { display: none; }
  .svc-step { min-height: 0 !important; padding: 0 0 56px; }
  .js .svc-step { opacity: 1; }
  .svc-step .viz { display: block; max-width: 520px; }
  .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hero { align-items: flex-end; padding-bottom: 88px; }
  .hero-glow { background: linear-gradient(to top, rgba(4,15,36,.92) 0%, rgba(4,15,36,.75) 55%, rgba(4,15,36,0) 85%); }
  .hero-content { max-width: none; }
  .about-text { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .brand .wordmark { font-size: 18px; }
  .scroll-cue { display: none; }
  .portfolio { grid-template-columns: minmax(0, 1fr); }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero-fade, .js .split-words .w > span, .js .viz-platform .plate { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .reveal-head .sec-title::before { transform: none !important; }
  .js .principle[data-reveal] .p-icon * { stroke-dashoffset: 0 !important; }
  .js .lit .lw { color: #fff !important; }
  .js .lit .lw.gold { color: var(--gold) !important; }
  .js .svc-step { opacity: 1; }
  .intro-on .intro { display: none; }
  .brand:hover .brand-mark img { transform: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .skip, .actions, .lang, .hero-canvas, .hero-glow, .scroll-cue, .thread, .intro, .viz, .svc-stage, .pf-thumb, .copy-btn, .socials { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero, .about, .services, .contact, .site-footer, .pf-link { min-height: 0; background: none !important; color: #000; box-shadow: none; }
  .hero { padding: 0 0 24pt; }
  .hero::before, .services::before { display: none; }
  .hero h1, .lit, .lit .lw, .pf-title h3, .pf-slogan, .products-head h2 { color: #000 !important; }
  .js .split-words .w > span, .js .hero-fade, .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .svc-step { opacity: 1; min-height: 0; }
  .section { padding: 18pt 0; break-inside: avoid; }
  .svc-grid, .portfolio, .contact-grid { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: none; }
}
