/* Self-hosted fonts (latin + latin-ext for Czech; no Google round-trip) */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-600-normal.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  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: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-latin-ext-300-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/inter-latin-300-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-latin-500-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  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;
}

:root {
  --bg: #050506;
  --bg-2: #0a0b0d;
  --surface: #0f1013;
  --line: rgba(214, 220, 230, 0.1);
  --line-strong: rgba(214, 220, 230, 0.22);
  --silver: #b8bec8;
  --bright: #eceff3;
  --grey: #8a909b;
  --muted: #5f6570;
  --ink: #f7f8fa;
  --header-h: 4rem;
  --pad-x: clamp(1.15rem, 4.5vw, 4.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  color-scheme: dark;
  height: 100%;
  height: -webkit-fill-available;
}

html.deck-mode,
html.deck-mode body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  min-height: -webkit-fill-available;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.085rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--silver);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgba(236, 239, 243, 0.18);
  color: var(--ink);
}

.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;
}

/* Boot: hide stage until first deck layout (avoids FOUC outside the box) */
html.js:not(.is-ready) .scene-stage-root,
html.js:not(.is-ready) .scene-dots,
html.js:not(.is-ready) .scene-chrome,
html.js:not(.is-ready) .progress {
  opacity: 0 !important;
  pointer-events: none !important;
}

html.js.is-ready .scene-stage-root,
html.js.is-ready .scene-dots,
html.js.is-ready .scene-chrome,
html.js.is-ready .progress {
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

/* Atmosphere */

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 1.5px;
  width: 0%;
  background: linear-gradient(90deg, #9aa3b0, #eceff3);
  transform-origin: left;
  pointer-events: none;
}

/* Header */

html.deck-mode .site-header {
  background: rgba(5, 5, 6, 0.92);
  border-bottom-color: var(--line);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.logo-mark {
  width: 1.35rem;
  height: 1.35rem;
  color: #b8b8c2;
  flex-shrink: 0;
}

.logo-word {
  font-weight: 600;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 1.85rem);
}

.nav a {
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--grey);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav a.is-active {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(236, 239, 243, 0.55);
}

.nav a.nav-cta.is-active {
  box-shadow: none;
  border-color: rgba(236, 239, 243, 0.45);
  background: rgba(236, 239, 243, 0.06);
}

.mobile-nav a.is-active {
  color: var(--ink);
}

.nav-cta {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line-strong);
  color: var(--bright) !important;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: var(--silver);
  background: rgba(236, 239, 243, 0.05);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.lang-switch a {
  padding: 0.35rem 0.45rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.lang-switch a.is-active,
.lang-switch a:hover {
  color: var(--bright);
}

.lang-switch a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--bright);
  transition: transform 0.35s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15rem;
  padding: var(--header-h) var(--pad-x) 2.5rem;
  background: rgba(5, 5, 6, 0.96);
  backdrop-filter: blur(20px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  transform: translateY(8px);
  opacity: 0;
  animation: menu-in 0.45s var(--ease) forwards;
}

.mobile-nav a:nth-child(1) {
  animation-delay: 0.04s;
}
.mobile-nav a:nth-child(2) {
  animation-delay: 0.08s;
}
.mobile-nav a:nth-child(3) {
  animation-delay: 0.12s;
}
.mobile-nav a:nth-child(4) {
  animation-delay: 0.16s;
}
.mobile-nav a:nth-child(5) {
  animation-delay: 0.2s;
}

@keyframes menu-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 920px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Triangle deck: main left, two stacked peeks right; GSAP owns transform */

.scene-stage-root {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  min-height: -webkit-fill-available;
  overflow: hidden;
  /* Deck owns vertical swipe; pan-y let mobile browsers steal the gesture */
  touch-action: none;
  -webkit-touch-callout: none;
  background:
    radial-gradient(
      ellipse 70% 50% at 78% 18%,
      rgba(170, 178, 190, 0.09),
      transparent 58%
    ),
    radial-gradient(
      ellipse 50% 40% at 12% 78%,
      rgba(90, 98, 112, 0.12),
      transparent 55%
    ),
    var(--bg);
}

.scene-stage-root::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 220, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 220, 230, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  pointer-events: none;
  opacity: 0.75;
}

.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  touch-action: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: linear-gradient(
    165deg,
    rgba(14, 15, 18, 0.98),
    rgba(7, 8, 10, 0.99)
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transform-origin: 0 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Soften chrome only  -  never transition transform (GSAP owns it) */
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.deck-card.is-ready {
  /* marker only — GSAP owns opacity after first render */
}

.deck-card.is-active {
  border-color: rgba(214, 220, 230, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.deck-card.is-preview {
  cursor: pointer;
}

.deck-card.is-preview:hover {
  border-color: rgba(214, 220, 230, 0.45);
}

.deck-card .scene-veil,
.deck-card .scene-hint {
  display: none !important;
}

.deck-card .scene-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(0.75rem, 1.6vw, 1.35rem);
  overflow: hidden; /* fit the slot  -  never scroll inside a card */
  overscroll-behavior: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scrollbar-width: none;
}
.deck-card .scene-content::-webkit-scrollbar {
  display: none;
}

/* Previews: same clip, no interaction */
.deck-card.is-preview .scene-content {
  pointer-events: none;
}

.deck-card .hero-plane,
.deck-card .scene-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.deck-card .section-inner,
.deck-card .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
}

/* Same grid always  -  scale handles “miniature”, not reflow */
.deck-card.scene--about .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .deck-card.scene--about .section-inner {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.deck-card.scene--hero {
  background:
    radial-gradient(
      ellipse 70% 50% at 78% 18%,
      rgba(170, 178, 190, 0.12),
      transparent 58%
    ),
    linear-gradient(165deg, #0c0d10 0%, var(--bg) 50%, #08090b 100%);
}

.deck-card.scene--hero .scene-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.deck-card.scene--hero .marquee {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-top: 1rem;
}

.scene-dots {
  position: fixed;
  right: clamp(0.35rem, 1.5vw, 0.85rem);
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scene-dots a {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.scene-dots a.is-active {
  background: var(--bright);
  border-color: var(--bright);
  transform: scale(1.2);
}

.scene-chrome {
  position: fixed;
  left: var(--pad-x);
  bottom: 0.65rem;
  z-index: 48;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

html.deck-mode .site-footer {
  display: none;
}

.scene--hero {
  justify-content: flex-end;
  border-top: 0;
  padding: calc(var(--header-h) + 2rem) var(--pad-x) 0;
  background: transparent;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 50% at 78% 18%,
      rgba(170, 178, 190, 0.11),
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 40% at 12% 78%,
      rgba(90, 98, 112, 0.14),
      transparent 55%
    ),
    linear-gradient(165deg, #0c0d10 0%, var(--bg) 48%, #08090b 100%);
}

.hero-grid {
  position: absolute;
  inset: -10% 0 0;
  background-image:
    linear-gradient(rgba(214, 220, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 220, 230, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 88%);
  will-change: transform;
}

.hero-sheen {
  position: absolute;
  inset: -30% -20%;
  background: linear-gradient(
    118deg,
    transparent 40%,
    rgba(236, 239, 243, 0.055) 50%,
    transparent 60%
  );
  animation: sheen 14s var(--ease-out) infinite;
}

.hero-content {
  align-self: stretch;
}

.float-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-block {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: linear-gradient(
    155deg,
    rgba(236, 239, 243, 0.045),
    rgba(236, 239, 243, 0.01) 45%,
    transparent
  );
  will-change: transform;
  backface-visibility: hidden;
}

.float-block--glass {
  backdrop-filter: blur(2px);
}

.float-block--a {
  width: min(28vw, 220px);
  height: min(36vw, 280px);
  top: 18%;
  right: 8%;
}

.float-block--b {
  width: min(22vw, 170px);
  height: min(22vw, 170px);
  top: 42%;
  right: 26%;
  border-color: rgba(214, 220, 230, 0.16);
}

.float-block--c {
  width: min(18vw, 140px);
  height: min(26vw, 200px);
  bottom: 16%;
  right: 14%;
  opacity: 0.7;
}

.float-block--d {
  width: min(24vw, 190px);
  height: min(14vw, 110px);
  top: 28%;
  left: 6%;
  opacity: 0.55;
}

.float-block--thin {
  border-width: 1px;
  background: transparent;
}

.float-block--line {
  width: min(40vw, 320px);
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-strong),
    transparent
  );
}

.float-chip {
  position: absolute;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 13, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  will-change: transform;
}

.float-chip--1 {
  top: 22%;
  right: 18%;
}

.float-chip--2 {
  bottom: 28%;
  right: 10%;
}

.float-chip--3 {
  top: 55%;
  left: 8%;
}

@media (max-width: 760px) {
  .float-block--d,
  .float-chip--3 {
    display: none;
  }

  .float-block--a {
    right: 4%;
    top: 14%;
  }
}

/* Marquee ribbon */

.marquee {
  position: relative;
  z-index: 2;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.55);
  overflow: hidden;
  padding: 0.9rem 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Drift stage between content sections */

.drift-stage {
  position: relative;
  min-height: clamp(7rem, 18vh, 11rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 50% 80% at 70% 50%,
      rgba(160, 168, 180, 0.06),
      transparent 60%
    ),
    var(--bg);
}

.drift-panel {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: linear-gradient(
    160deg,
    rgba(236, 239, 243, 0.05),
    rgba(5, 5, 6, 0.2)
  );
  will-change: transform;
}

.drift-panel--1 {
  width: min(42vw, 280px);
  height: min(18vw, 120px);
  top: 18%;
  left: 8%;
}

.drift-panel--2 {
  width: min(28vw, 180px);
  height: min(28vw, 180px);
  top: 10%;
  right: 18%;
}

.drift-panel--3 {
  width: min(34vw, 220px);
  height: min(12vw, 80px);
  bottom: 16%;
  right: 8%;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 14vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
  color: var(--ink);
  margin-bottom: clamp(1.1rem, 3vh, 1.75rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--bright);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.lede {
  color: var(--grey);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  max-width: 38ch;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--bright);
  color: #08090b;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--silver);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--silver);
  color: var(--ink);
}

/* Section content (inside scenes) */

.section-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-head {
  max-width: 38rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.scene h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 0.95rem;
}

.section-lede {
  color: var(--grey);
  max-width: 44ch;
}

.answer {
  color: var(--bright);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 0.85rem;
}

/* Services  -  large interactive rows */

.service-list {
  display: grid;
}

.service-item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

.service-item:hover {
  background: linear-gradient(
    90deg,
    rgba(236, 239, 243, 0.03),
    transparent 70%
  );
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 0.35rem;
}

.service-item h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  color: var(--bright);
  margin-bottom: 0.45rem;
  transition: transform 0.35s var(--ease);
}

.service-item:hover h3 {
  transform: translateX(4px);
}

.service-item p {
  color: var(--grey);
  max-width: 52ch;
}

.capability-line {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 1.3vw, 0.88rem);
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
  text-transform: lowercase;
}

@media (min-width: 760px) {
  .service-item {
    grid-template-columns: 4.5rem 1fr;
    gap: 1.5rem 2rem;
  }
}

/* Products status */

.status-block {
  max-width: 36rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.status-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.status-note {
  color: var(--grey);
  max-width: 40ch;
  margin-bottom: 1.4rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    gap 0.25s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
  gap: 0.55rem;
}

/* Approach */

.steps {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
  color: var(--bright);
  margin-bottom: 0.55rem;
}

.step p {
  color: var(--grey);
  font-size: 0.98rem;
}

/* About */

.scene--about .section-inner {
  display: grid;
  gap: 2.75rem;
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
}

@media (min-width: 960px) {
  .scene--about .section-inner {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.founder {
  display: grid;
  gap: 1.75rem;
}

.founder-block {
  display: grid;
  gap: 0.85rem;
}

.founder-block + .founder-block {
  margin-top: 1.25rem;
}

.founder-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: center;
  max-width: 28rem;
}

.founder-mark {
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(145deg, rgba(236, 239, 243, 0.08), transparent 55%),
    rgba(15, 16, 19, 0.8);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.founder-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-story {
  margin: 0;
  color: var(--grey);
  max-width: 48ch;
}

.founder-block .timeline {
  margin-top: 0;
}

.about-copy .answer + p,
.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p:not(.eyebrow):not(.answer):not(.founder-role) {
  color: var(--grey);
  max-width: 48ch;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 0.5rem;
  max-width: 40rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 0.2rem;
}

.timeline-what {
  color: var(--silver);
  font-size: 0.98rem;
}

.timeline-what strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--bright);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.about-aside {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.facts {
  display: grid;
  gap: 1.4rem;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--bright);
}

@media (max-width: 520px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* FAQ — premium studio accordion */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 44rem;
  margin-top: 0.35rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(18, 19, 23, 0.92),
    rgba(12, 13, 16, 0.78)
  );
  overflow: clip;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item.is-open {
  border-color: var(--line-strong);
  background: linear-gradient(
    180deg,
    rgba(24, 25, 30, 0.96),
    rgba(14, 15, 18, 0.9)
  );
  box-shadow:
    0 0 0 1px rgba(236, 239, 243, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.faq-q {
  width: 100%;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 1.2rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--bright);
  transition: color 0.25s var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 3.5rem;
}

.faq-num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1;
  min-width: 1.6rem;
}

.faq-q > span:not(.faq-num) {
  min-width: 0;
}

.faq-q::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--muted);
  transition:
    transform 0.28s var(--ease),
    color 0.25s var(--ease);
  justify-self: end;
}

.faq-q[aria-expanded="true"] {
  color: var(--ink);
}

.faq-q[aria-expanded="true"] .faq-num {
  color: var(--silver);
}

.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
  color: var(--bright);
}

.faq-q:hover {
  color: var(--ink);
}

.faq-q:hover .faq-num,
.faq-q:hover::after {
  color: var(--silver);
}

.faq-q:focus-visible {
  outline: 2px solid rgba(236, 239, 243, 0.45);
  outline-offset: -2px;
}

.faq-a {
  padding: 0 1.25rem 1.35rem 3.7rem;
}

.faq-a p {
  margin: 0;
  color: var(--grey);
  max-width: 48ch;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.55;
}

@media (max-width: 699px) {
  .faq-a {
    padding-left: 1.25rem;
  }
}

/* Phone: full-vw cards; peeks visible only while morphing */
html.deck-one .scene-stage-root {
  overflow: hidden;
}

html.deck-one .deck-card {
  border-radius: 18px;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

html.deck-one:not(.deck-morphing) .deck-card.is-active {
  border-radius: 0;
  box-shadow: none;
}

html.deck-one:not(.deck-morphing) .deck-card.is-preview {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.deck-one.deck-morphing .deck-card.is-preview {
  filter: brightness(0.82);
}

html.deck-one .scene-chrome {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

html.deck-one .scene-dots {
  gap: 0.45rem;
  bottom: 10px;
}

html.deck-one .scene-dots a {
  width: 7px;
  height: 7px;
}

/* Phone FAQ: list → full-card detail, no swipe fights */
html.deck-one #faq .scene-content,
html.deck-one .deck-card#faq .scene-content {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  justify-content: flex-start;
}

html.deck-one #faq .section-lede,
html.deck-one #faq .section-head .answer {
  display: none;
}

html.deck-one #faq.faq-detail .section-head {
  display: none;
}

html.deck-one #faq .section-head {
  margin-bottom: 0.85rem;
}

html.deck-one #faq .section-head h2 {
  font-size: clamp(1.55rem, 7vw, 1.95rem);
  letter-spacing: -0.04em;
}

html.deck-one #faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: none;
  margin: 0;
  flex: 1;
  min-height: 0;
}

html.deck-one #faq .faq-item {
  border-radius: 12px;
  background: rgba(16, 17, 21, 0.82);
}

html.deck-one #faq .faq-q {
  min-height: 3.35rem;
  padding: 1rem 1rem;
  font-size: clamp(1.05rem, 4.2vw, 1.18rem);
  gap: 0.7rem 0.85rem;
}

html.deck-one #faq .faq-num {
  font-size: 0.68rem;
}

html.deck-one #faq .faq-a {
  padding: 0 1rem 1.1rem;
}

html.deck-one #faq .faq-a p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: none;
  color: var(--silver);
}

/* Detail mode: one open item fills the card */
html.deck-one #faq .faq-list.is-detail {
  gap: 0;
}

html.deck-one #faq .faq-list.is-detail .faq-item:not(.is-open) {
  display: none;
}

html.deck-one #faq .faq-list.is-detail .faq-item.is-open {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-color: rgba(214, 220, 230, 0.32);
  background: linear-gradient(
    165deg,
    rgba(28, 30, 36, 0.95),
    rgba(12, 13, 16, 0.92)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.deck-one #faq .faq-list.is-detail .faq-q {
  align-items: flex-start;
  padding-top: 1.15rem;
  font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  line-height: 1.2;
  min-height: auto;
}

html.deck-one #faq .faq-list.is-detail .faq-q::after {
  content: "×";
  transform: none;
  font-size: 1.45rem;
  color: var(--bright);
  margin-top: 0.1rem;
}

html.deck-one #faq .faq-list.is-detail .faq-a {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.35rem 1.1rem 1.35rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

html.deck-one #faq .faq-list.is-detail .faq-a p {
  font-size: clamp(1.08rem, 4.2vw, 1.22rem);
  line-height: 1.55;
  color: var(--bright);
  max-width: 34ch;
}

/* Desktop / wide deck: keep FAQ cards airy */
html.deck-mode:not(.deck-one) .deck-card .faq-list {
  gap: 0.55rem;
}

html.deck-mode:not(.deck-one) .deck-card .faq-item {
  padding: 0;
}

html.deck-mode:not(.deck-one) .deck-card .faq-q {
  padding: 1rem 1.1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

html.deck-mode .deck-card .faq-item {
  padding: 0;
}

/* Product list → detail */
.product-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  max-width: 40rem;
}

.product-item {
  border-top: 1px solid var(--line);
}

.product-item:last-child {
  border-bottom: 1px solid var(--line);
}

.product-row {
  width: 100%;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

.product-row.is-static {
  cursor: default;
  opacity: 0.72;
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.product-tagline {
  font-size: clamp(0.88rem, 1.4vw, 0.98rem);
  line-height: 1.35;
  color: var(--grey);
  font-weight: 450;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
  color: var(--bright);
}

.product-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  white-space: nowrap;
}

.product-detail {
  padding: 0 0 1.15rem;
}

.product-detail p {
  margin: 0;
  max-width: 42ch;
  color: var(--grey);
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.45;
}

.product-row[aria-expanded="true"] .product-name {
  color: var(--ink);
}

/* Contact */

.contact-panel {
  max-width: 40rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.contact-meta {
  display: grid;
  gap: 0.25rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-meta span:first-child {
  color: var(--silver);
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--pad-x) 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.26s;
}

@keyframes sheen {
  0%,
  100% {
    transform: translateX(-10%) rotate(0deg);
    opacity: 0.45;
  }
  50% {
    transform: translateX(10%) rotate(1deg);
    opacity: 1;
  }
}

/* ---- Deck: tighten type so each scene fits its slot ---- */
html.deck-mode .deck-card .section-inner,
html.deck-mode .deck-card .hero-content {
  max-height: 100%;
}

html.deck-mode .deck-card .eyebrow {
  font-size: 0.62rem;
  margin-bottom: 0.35rem;
}

html.deck-mode .deck-card h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

html.deck-mode .deck-card h3 {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0 0 0.25rem;
}

html.deck-mode .deck-card p,
html.deck-mode .deck-card li,
html.deck-mode .deck-card dd,
html.deck-mode .deck-card summary {
  font-size: clamp(0.78rem, 1.05vw, 0.92rem);
  line-height: 1.35;
}

html.deck-mode .deck-card .section-lede,
html.deck-mode .deck-card .answer {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  margin-bottom: 0.55rem;
}

html.deck-mode .deck-card .section-head {
  margin-bottom: 0.75rem;
}

html.deck-mode .deck-card .section-inner {
  gap: 0.75rem;
}

html.deck-mode .deck-card .service-list,
html.deck-mode .deck-card .service-index,
html.deck-mode .deck-card .steps,
html.deck-mode .deck-card .product-list {
  gap: 0.45rem;
}

html.deck-mode .deck-card .service-item,
html.deck-mode .deck-card .step,
html.deck-mode .deck-card .product-item {
  padding: 0.55rem 0.7rem;
}

html.deck-mode .deck-card.scene--about .scene-content {
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  padding-top: clamp(0.85rem, 2vw, 1.35rem);
  padding-bottom: clamp(0.85rem, 2vw, 1.25rem);
}

html.deck-mode .deck-card.scene--about .section-inner {
  grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 0.75fr);
  gap: 0.75rem 1.15rem;
  align-content: start;
  align-items: start;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

html.deck-mode .deck-card.scene--about .about-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  min-width: 0;
  overflow: visible;
}

html.deck-mode .deck-card .founder-block {
  gap: 0.35rem;
}

html.deck-mode .deck-card .founder-block + .founder-block {
  margin-top: 0.85rem;
}

html.deck-mode .deck-card.scene--about .about-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0;
}

html.deck-mode .deck-card.scene--about .about-copy .answer {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  margin: 0;
  max-width: 48ch;
}

html.deck-mode .deck-card.scene--about .about-story {
  display: none;
}

html.deck-mode .deck-card .timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem 0.45rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
  flex-shrink: 0;
  max-width: none;
  width: 100%;
}

html.deck-mode .deck-card .timeline-item {
  display: flex !important;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 1px solid var(--line);
  background: rgba(14, 15, 18, 0.55);
  min-width: 0;
}

html.deck-mode .deck-card .timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

html.deck-mode .deck-card .timeline-when {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  padding-top: 0;
}

html.deck-mode .deck-card .timeline-what {
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 0;
}

html.deck-mode .deck-card .timeline-what strong {
  font-size: 0.82rem;
  margin-bottom: 0.1rem;
}

html.deck-mode .deck-card .founder-card {
  margin: 0.15rem 0 0.1rem;
  padding: 0;
  gap: 0.65rem;
  max-width: none;
}

html.deck-mode .deck-card .founder-mark {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.05rem;
}

html.deck-mode .deck-card .founder-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.1rem;
}

html.deck-mode .deck-card .founder-role {
  font-size: 0.62rem;
}

html.deck-mode .deck-card .about-aside {
  padding: 0.35rem 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
}

html.deck-mode .deck-card .facts {
  gap: 0.55rem;
}

html.deck-mode .deck-card .facts div {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

html.deck-mode .deck-card .facts div:first-child {
  border-top: 0;
  padding-top: 0;
}

html.deck-mode .deck-card .facts dt {
  font-size: 0.6rem;
  margin-bottom: 0.2rem;
}

html.deck-mode .deck-card .facts dd {
  font-size: 0.95rem;
}

html.deck-mode .deck-card.scene--hero h1,
html.deck-mode .deck-card.scene--hero .hero-grid h1 {
  font-size: clamp(2rem, 6.5vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 0.45rem;
}

html.deck-mode .deck-card.scene--hero .marquee {
  margin-top: 0.55rem;
}

html.deck-mode .deck-card.scene--hero .scene-content {
  justify-content: flex-end;
  padding-bottom: clamp(0.85rem, 2vw, 1.5rem);
}

/* Short viewports: keep all 5 timeline chips; drop only story copy */
@media (max-height: 820px) {
  html.deck-mode .deck-card .section-lede {
    display: none;
  }
}

@media (max-height: 720px) {
  html.deck-mode .deck-card .founder-mark {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.95rem;
  }
  html.deck-mode .deck-card .founder-card h3 {
    font-size: 1rem;
  }
  html.deck-mode .deck-card .timeline-item {
    padding: 0.35rem 0.3rem 0.4rem;
  }
  html.deck-mode .deck-card .timeline-what {
    font-size: 0.65rem;
  }
  html.deck-mode .deck-card .timeline-what strong {
    font-size: 0.74rem;
  }
}

@media (max-height: 640px) {
  html.deck-mode .deck-card.scene--about .about-copy .answer {
    display: none;
  }
  html.deck-mode .deck-card .founder-mark {
    display: none;
  }
  html.deck-mode .deck-card .founder-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  html.deck-mode .deck-card .timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
  }
  html.deck-mode .deck-card .timeline-when {
    font-size: 0.52rem;
  }
  html.deck-mode .deck-card .timeline-what {
    font-size: 0.6rem;
  }
}

/* One-card mode (<700px): full bleed card, no peek chrome */
html.deck-one .deck-card.is-preview {
  pointer-events: none;
}

html.deck-one .deck-card .scene-content {
  padding: clamp(0.85rem, 4vw, 1.25rem);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

html.deck-one .deck-card.scene--about .section-inner {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  height: auto;
  max-height: 100%;
}

html.deck-one .deck-card.scene--about .about-aside {
  display: none;
}

html.deck-one .deck-card .timeline {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
}

html.deck-one .deck-card .timeline-item:nth-child(5) {
  grid-column: 1 / -1;
}

html.deck-one .deck-card .timeline-item {
  display: flex;
}

@media (max-width: 700px) {
  html.deck-mode .scene-dots {
    right: 0.4rem;
    gap: 0.35rem;
  }
}

/* ---- Morph perf: freeze heavy hero chrome while cards move ---- */
html.deck-mode .deck-card {
  contain: layout paint;
  isolation: isolate;
}

html.deck-mode .deck-card .float-block,
html.deck-mode .deck-card .float-chip,
html.deck-mode .deck-card .drift-panel,
html.deck-mode .deck-card .hero-grid {
  will-change: auto;
}

/* Marquee fights parent transforms  -  only run on the active hero */
html.deck-mode .deck-card .marquee-track {
  animation-play-state: paused;
}
html.deck-mode .deck-card.is-active .marquee-track {
  animation-play-state: running;
}
html.deck-morphing .deck-card .marquee-track {
  animation-play-state: paused !important;
}

/* During morph, hide decorative float layers (biggest hitch on hero→services) */
html.deck-morphing .deck-card .float-field,
html.deck-morphing .deck-card .scene-stage,
html.deck-morphing .deck-card .hero-sheen {
  visibility: hidden;
}

html.deck-mode .deck-card.is-preview .float-field,
html.deck-mode .deck-card.is-preview .marquee {
  visibility: hidden;
}

/* Park settle: never let :target scroll/paint fight the deck */
html.deck-mode .deck-card:target {
  outline: none;
}
html.deck-mode {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-sheen,
  .mobile-nav a,
  .marquee-track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .scene-content {
    opacity: 1 !important;
    transform: none !important;
  }

  .progress {
    display: none;
  }

  .float-block,
  .float-chip,
  .drift-panel {
    transform: none !important;
  }
}

:focus-visible {
  outline: 1px solid var(--silver);
  outline-offset: 3px;
}

/* Small phones */
@media (max-width: 380px) {
  .cta-row .btn {
    width: 100%;
  }
}

.footer-legal {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted, #8a8a96);
  opacity: 0.85;
}

.contact-actions a.is-copied {
  pointer-events: none;
  opacity: 0.85;
}

/* Public tech stack (services scene) */
.stack-block {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stack-block h3 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.stack-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
}
.stack-chips li {
  margin: 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 220, 230, 0.18);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(230, 234, 240, 0.92);
}
html.deck-one .stack-chips li {
  font-size: 0.72rem;
  padding: 0.28rem 0.58rem;
}

/* Keep stack visible inside clipped deck cards */
html.deck-mode .deck-card#services .stack-block {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
}
html.deck-mode .deck-card#services .stack-block .answer {
  display: none; /* chips only on deck — copy is in schema/llms */
}
html.deck-mode .deck-card#services .stack-chips {
  margin-top: 0.35rem;
}
html.deck-mode .deck-card#services .service-list {
  margin-top: 0.7rem;
}
