/* KZ Studio — motion preview of the first screen (deep navy, cold blue and amber light) */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest/Onest-wght.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050A1C;
  --bg-raise: #0A1430;
  --line: rgba(190, 208, 240, 0.16);
  --ink: #EEF2FA;
  --ink-muted: #A9B4CB;
  --amber: #F3A84B;
  --amber-hover: #FFBC66;
  --on-amber: #1A1206;
  --cyan: #7CC4FF;
  --focus: #9FD2FF;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --header-h: 84px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl { margin: 0; }

a { color: inherit; }

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.site-nav a:hover { background: rgba(238, 242, 250, 0.08); }

.menu-toggle { display: none; }

/* Hero: text on the left, scene in its own area on the right */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 40%;
  z-index: -1;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 14%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 14%, #000 38%);
}

.hero-visual picture,
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.is-playing .hero-video { opacity: 1; }

/* Soft shade under the navigation */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 28, 0.75) 0, rgba(5, 10, 28, 0) 130px),
    linear-gradient(0deg, rgba(5, 10, 28, 0.6) 0, rgba(5, 10, 28, 0) 90px);
}

.hero-content {
  position: relative;
  padding-block: calc(var(--header-h) + 40px) 88px;
}

.hero-text { max-width: min(34rem, calc(41vw - var(--gutter))); }

.eyebrow {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--cyan);
  margin-bottom: 22px;
}

h1 {
  font-weight: 500;
  font-size: clamp(2.25rem, 1.1rem + 3.3vw, 3.625rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: manual;
}

.lead {
  margin-top: 22px;
  max-width: 28em;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
  hyphens: manual;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  min-height: 50px;
  padding: 0 24px 0 26px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.button:hover { background: var(--amber-hover); }
.button-arrow { width: 18px; height: 18px; transition: transform 0.2s ease; }
.button:hover .button-arrow { transform: translateX(3px); }

.motion-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px 0 14px;
  background: rgba(10, 20, 48, 0.85);
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 0.8125rem/1 var(--font);
  cursor: pointer;
}
.motion-toggle:hover { color: var(--ink); }
.motion-toggle[hidden] { display: none; }
.motion-toggle-icon {
  width: 10px;
  height: 12px;
  border-inline: 3px solid currentColor;
}
.motion-toggle[aria-pressed="true"] .motion-toggle-icon {
  border: 0;
  width: 0;
  height: 0;
  border-left: 10px solid currentColor;
  border-block: 6px solid transparent;
}

/* Current page in the navigation */
.site-nav a[aria-current="page"] {
  background: rgba(124, 196, 255, 0.12);
  color: var(--ink);
}

/* Home: compact entry to the sections */

.entry {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 72px);
}
.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.entry-title {
  font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  letter-spacing: -0.02em;
}
.entry-note { color: var(--ink-muted); font-size: 0.8125rem; }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}
.entry-link {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 6px;
  height: 100%;
  min-height: 168px;
  padding: 20px 20px 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raise);
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.entry-link:hover { border-color: rgba(124, 196, 255, 0.5); background: #0D1938; }
.entry-num { color: var(--cyan); font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.entry-name { font-weight: 500; font-size: 1.25rem; letter-spacing: -0.015em; }
.entry-text { color: var(--ink-muted); font-size: 0.875rem; line-height: 1.5; }
.entry-arrow {
  position: absolute;
  left: 20px;
  bottom: 18px;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
.entry-link:hover .entry-arrow { transform: translateX(4px); }
.entry-link-accent { border-color: rgba(243, 168, 75, 0.45); }
.entry-link-accent .entry-num,
.entry-link-accent .entry-arrow { color: var(--amber); }
.entry-link-accent:hover { border-color: var(--amber); }

/* Inner pages */

.inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.inner .site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.page { flex: 1; padding-bottom: clamp(48px, 6vw, 88px); }

.page-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 20px 0;
}
.back-button,
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink-muted);
  font: 500 0.875rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.back-button:hover,
.home-link:hover { color: var(--ink); border-color: var(--ink-muted); }
.back-button[hidden] { display: none; }

.page-head {
  max-width: 52rem;
  padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-index span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.section-index span::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.page-title {
  font-weight: 500;
  font-size: clamp(2.25rem, 1.3rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.page-intro {
  max-width: 36em;
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  text-wrap: pretty;
}

h2, h3 { font-weight: 500; }

/* Long words wrap instead of widening the page with enlarged text */
.page,
.entry,
.site-footer { overflow-wrap: anywhere; }

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.pager-link:hover { border-color: rgba(124, 196, 255, 0.5); }
.pager-next { grid-column: 2; text-align: right; }
.pager-dir { color: var(--ink-muted); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pager-name { font-weight: 500; font-size: 1.0625rem; }

/* Panel switching of the tabs: short and only on a user action */
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.is-entering { animation: panel-in 0.24s ease-out; }

/* Services: list of directions and the detail panel */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 48px;
  align-items: start;
}
.svc-nav {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.svc-nav li { border-bottom: 1px solid var(--line); }
.svc-tab {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 2px 12px;
  width: 100%;
  padding: 18px 16px 18px 20px;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.svc-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 0.22s ease;
}
.svc-tab:hover { background: rgba(124, 196, 255, 0.04); }
.svc-tab[aria-selected="true"] { background: rgba(124, 196, 255, 0.07); }
.svc-tab[aria-selected="true"]::before { transform: scaleY(1); }
.svc-tab-num { grid-row: span 2; padding-top: 4px; color: var(--cyan); font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.svc-tab-name { font-weight: 500; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); letter-spacing: -0.015em; }
.svc-tab-short { color: var(--ink-muted); font-size: 0.875rem; }

.svc-panels { display: grid; gap: 16px; }
.svc-panel {
  padding: clamp(24px, 3.5vw, 44px);
  background:
    radial-gradient(ellipse at 100% 0, rgba(124, 196, 255, 0.1), transparent 55%),
    var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.svc-panel:focus-visible { outline-offset: 4px; border-radius: 20px; }
.svc-panel-num { color: var(--cyan); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.svc-panel h2 {
  margin-top: 10px;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.svc-panel-short { margin-top: 8px; color: var(--ink-muted); }
.svc-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.svc-col-wide { grid-column: 1 / -1; max-width: 36em; }
.svc-col h3 { margin-bottom: 10px; color: var(--cyan); font-size: 0.8125rem; }
.svc-col p,
.svc-col li { color: var(--ink-muted); font-size: 0.9375rem; }
.svc-col ul { list-style: none; padding: 0; }
.svc-col li { position: relative; padding-left: 20px; }
.svc-col li + li { margin-top: 6px; }
.svc-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--cyan);
}

.ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px 56px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.ai-label { margin-bottom: 12px; color: var(--amber); font-weight: 500; font-size: 0.8125rem; }
.ai-head h2 {
  font-size: clamp(1.375rem, 1rem + 1.1vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ai-head p:last-child { margin-top: 14px; color: var(--ink-muted); }
.ai-uses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  align-content: start;
  list-style: none;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
.ai-uses li { padding-top: 14px; border-top: 1px solid var(--line); }
.ai-uses strong { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; font-size: 1rem; }

/* Projects: one product */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.product-mark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: clamp(300px, 30vw, 440px);
  padding: clamp(28px, 4.5vw, 64px);
  background:
    radial-gradient(circle at 85% 15%, rgba(124, 196, 255, 0.16), transparent 50%),
    radial-gradient(circle at 0 100%, rgba(243, 168, 75, 0.1), transparent 45%),
    repeating-linear-gradient(0deg, rgba(190, 208, 240, 0.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(190, 208, 240, 0.05) 0 1px, transparent 1px 56px),
    var(--bg-raise);
}
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 7px 14px;
  border: 1px solid rgba(243, 168, 75, 0.45);
  border-radius: 999px;
  color: var(--amber);
  font-weight: 500;
  font-size: 0.8125rem;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.product-name {
  font-weight: 600;
  font-size: clamp(3.5rem, 1.8rem + 6vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.product-topic { margin-top: 16px; color: var(--ink-muted); font-size: 1.125rem; }
.product-text { padding: clamp(28px, 4.5vw, 64px); color: var(--ink-muted); }
.product-lead {
  color: var(--ink);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.product-text > p + p { margin-top: 16px; }
.product-facts { margin: 32px 0 0; }
.product-facts div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.product-facts dt { font-size: 0.8125rem; padding-top: 2px; }
.product-facts dd { margin: 0; color: var(--ink); font-size: 0.9375rem; }
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  text-underline-offset: 3px;
}
.ext-link svg { width: 14px; height: 14px; }
.ext-note { margin-left: 10px; color: var(--ink-muted); font-size: 0.8125rem; }
.projects-note { margin-top: 20px; color: var(--ink-muted); font-size: 0.875rem; }

/* Process: interactive map of four stages */

.flow-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
}
/* Base line and the passed path between the first and the last node */
.flow.is-enhanced .flow-nav::before,
.flow.is-enhanced .flow-nav::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.flow.is-enhanced .flow-nav::after {
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  transition: transform 0.3s ease;
}
.flow-nav li { position: relative; z-index: 1; display: flex; justify-content: center; }
.flow-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  padding: 4px 6px 8px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: var(--ink-muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.flow-node {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.flow-label { font-weight: 500; font-size: 0.875rem; transition: color 0.25s ease; }
.flow-tab:hover .flow-node { border-color: var(--ink-muted); color: var(--ink); }
.flow-tab.is-done .flow-node {
  border-color: var(--cyan);
  background: #0E2140;
  color: var(--cyan);
}
.flow-tab[aria-selected="true"] { color: var(--ink); }
.flow-tab[aria-selected="true"] .flow-node {
  border-color: var(--amber);
  background: #2A2216;
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(243, 168, 75, 0.12);
}

.flow-panels { display: grid; gap: 16px; }
.flow-panel {
  padding: clamp(24px, 3.5vw, 48px);
  background:
    radial-gradient(ellipse at 0 0, rgba(124, 196, 255, 0.09), transparent 55%),
    var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.flow-panel:focus-visible { outline-offset: 4px; border-radius: 20px; }
.flow-count { color: var(--cyan); font-size: 0.8125rem; font-weight: 500; }
.flow-panel h2 {
  margin-top: 8px;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.flow-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 28px;
}
.flow-col { padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-muted); }
.flow-col-result { border-top-color: rgba(243, 168, 75, 0.5); }
.flow-col h3 {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.flow-col-result h3 { color: var(--amber); }
.flow-col p { font-size: 1rem; }

.flow-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.flow-controls[hidden] { display: none; }
.flow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 500 0.9375rem/1.2 var(--font);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.flow-btn:hover { border-color: var(--ink-muted); }
.flow-btn-next { border-color: rgba(124, 196, 255, 0.5); }
.flow-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.flow-btn[aria-disabled="true"]:hover { border-color: var(--line); }
.flow-cta { margin-top: 28px; color: var(--ink-muted); }
.flow-cta a { color: var(--cyan); text-underline-offset: 3px; }

/* Approach and questions */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
}
.principles li { padding-top: 18px; border-top: 1px solid var(--line); }
.principle-num { color: var(--cyan); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.principles h3 { margin: 12px 0 10px; font-size: 1.1875rem; letter-spacing: -0.01em; }
.principles p { color: var(--ink-muted); font-size: 0.9375rem; }

.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 20px 56px;
  margin-top: clamp(48px, 6vw, 88px);
}
.faq-title { font-size: clamp(1.375rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.02em; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--ink);
}
.faq-icon::after { transform: rotate(90deg); transition: transform 0.2s ease; }
.faq-item[open] .faq-icon { border-color: rgba(243, 168, 75, 0.7); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item summary:hover .faq-icon { border-color: var(--ink-muted); }
.faq-item p { max-width: 40em; padding: 0 60px 22px 0; color: var(--ink-muted); }

/* Contacts */

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 40px 64px;
  padding: clamp(28px, 4.5vw, 64px);
  background:
    radial-gradient(ellipse at 0 100%, rgba(243, 168, 75, 0.12), transparent 55%),
    var(--bg-raise);
  border: 1px solid rgba(243, 168, 75, 0.28);
  border-radius: 28px;
}
.channel-label {
  color: var(--cyan);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-number {
  margin-top: 10px;
  font-weight: 500;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.contact-button { margin-top: 24px; }
.contact-hint {
  max-width: 32em;
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.contact-prep {
  padding-left: 48px;
  border-left: 1px solid var(--line);
  color: var(--ink-muted);
}
.contact-prep h2 { margin-bottom: 12px; color: var(--ink); font-size: 1.125rem; }
.contact-prep ol { list-style: none; padding: 0; counter-reset: prep; }
.contact-prep li {
  display: flex;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  counter-increment: prep;
}
.contact-prep li::before {
  content: "0" counter(prep);
  flex: none;
  padding-top: 2px;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.contact-prep p { margin-top: 16px; font-size: 0.875rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px 40px;
}
.footer-brand { color: var(--ink); font-weight: 600; font-size: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { padding-block: 4px; text-decoration: none; transition: color 0.2s ease; }
.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Quiz */

.quiz-ready .quiz-fallback { display: none; }
.quiz-fallback p { max-width: 32em; margin-bottom: 20px; color: var(--ink-muted); }

.quiz {
  max-width: 48rem;
  padding: clamp(24px, 3.5vw, 44px);
  background:
    radial-gradient(ellipse at 100% 0, rgba(124, 196, 255, 0.1), transparent 55%),
    var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.quiz[hidden] { display: none; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.quiz-count { color: var(--cyan); font-size: 0.8125rem; font-weight: 500; }
.quiz-bar { display: flex; gap: 6px; list-style: none; padding: 0; }
.quiz-bar li {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 0.25s ease;
}
.quiz-bar li.is-done { background: var(--cyan); }
.quiz-bar li.is-current { background: var(--amber); }

.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step[hidden] { display: none; }
.quiz-step legend { padding: 0; }
.quiz-step h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.quiz-step h2:focus { outline: none; }
.quiz-step h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.quiz-hint { margin-top: 10px; color: var(--ink-muted); }
.quiz-note {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 2px solid var(--amber);
  background: rgba(243, 168, 75, 0.08);
  color: var(--ink);
  font-size: 0.875rem;
}
.quiz-note[hidden] { display: none; }

.quiz-options { display: grid; gap: 8px; margin-top: 20px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.quiz-option:hover { border-color: var(--ink-muted); }
.quiz-option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--amber);
}
.quiz-option:has(input:checked) { border-color: var(--amber); background: rgba(243, 168, 75, 0.08); color: var(--ink); }
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.quiz-comment {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  resize: vertical;
}
.quiz-comment:focus-visible { border-color: var(--focus); }
.quiz-counter { margin-top: 8px; color: var(--ink-muted); font-size: 0.8125rem; text-align: right; font-variant-numeric: tabular-nums; }

.quiz-answers { margin: 20px 0 0; }
.quiz-answers div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 4px 16px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.quiz-answers dt { color: var(--ink-muted); font-size: 0.875rem; padding-top: 2px; }
.quiz-answers dd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; }
.quiz-answer { white-space: pre-line; }
.quiz-edit {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--cyan);
  font: 500 0.8125rem/1 var(--font);
  cursor: pointer;
}
.quiz-edit:hover { border-color: var(--cyan); }
.quiz-message {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px dashed rgba(190, 208, 240, 0.35);
  border-radius: 14px;
}
.quiz-message-label { color: var(--cyan); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.quiz-message-text { margin-top: 8px; white-space: pre-line; color: var(--ink); font-size: 0.9375rem; }
.quiz-send { margin-top: 24px; }
.quiz-send-hint { margin-top: 12px; color: var(--ink-muted); font-size: 0.875rem; }

.quiz-error { min-height: 0; margin-top: 12px; color: var(--amber); font-size: 0.9375rem; }
.quiz-error:empty { display: none; }
.quiz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.quiz-nav [hidden] { display: none; }
.quiz-nav .flow-btn-next { margin-left: auto; }
.quiz-restart {
  order: 5;
  flex-basis: 100%;
  justify-self: start;
  width: max-content;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: 500 0.875rem/1 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quiz-restart:hover { color: var(--ink); }

@media (max-width: 720px) {
  .quiz { border-radius: 20px; }
  .quiz-bar li { width: 18px; }
  .quiz-answers div { grid-template-columns: minmax(0, 1fr); }
  .quiz-nav .flow-btn { flex: 1; justify-content: center; }
  .quiz-nav .flow-btn-next { margin-left: 0; }
}

/* Privacy page (draft document) */

.doc { max-width: 46rem; }
.doc-draft {
  margin-bottom: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(243, 168, 75, 0.45);
  border-radius: 14px;
  background: rgba(243, 168, 75, 0.06);
}
.doc-draft strong { color: var(--amber); font-weight: 500; }
.doc-draft p + p { margin-top: 8px; }
.doc-draft ul { margin-top: 8px; padding-left: 1.2em; color: var(--ink-muted); }
.doc h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.doc p,
.doc li { color: var(--ink-muted); }
.doc p + p { margin-top: 12px; }
.doc li + li { margin-top: 6px; }
.doc-gap { color: var(--ink); border-bottom: 1px dashed rgba(190, 208, 240, 0.5); }

@media (max-width: 1100px) {
  .entry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .svc,
  .ai-panel,
  .product,
  .faq,
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .product-mark { min-height: 0; }
  .product-text { border-top: 1px solid var(--line); }
  .contact-prep { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .entry-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .entry-link {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 12px;
    min-height: 0;
    padding: 14px 16px;
  }
  .entry-num { grid-row: span 2; }
  .entry-name { font-size: 1.125rem; }
  .entry-text { grid-column: 2; }
  .entry-arrow { position: static; grid-column: 3; grid-row: 1 / span 2; }

  .svc-tab { padding: 14px 12px 14px 16px; }
  .svc-tab-short { display: none; }
  .svc-cols,
  .flow-cols,
  .ai-uses,
  .principles { grid-template-columns: minmax(0, 1fr); }

  .flow.is-enhanced .flow-nav::before,
  .flow.is-enhanced .flow-nav::after { top: 23px; }
  .flow-node { width: 40px; height: 40px; font-size: 0.875rem; }
  .flow-label { font-size: 0.75rem; }
  .flow-controls .flow-btn { flex: 1; justify-content: center; padding: 0 12px; font-size: 0.875rem; }

  .faq-item p { padding-right: 0; }
  .product,
  .contact-panel { border-radius: 20px; }
  .product-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ext-note { display: block; margin: 2px 0 0; }
  .pager-name { font-size: 1rem; }
  .contact-number { white-space: normal; }
}

/* Tablet and phone: scene as its own block above the text */

@media (max-width: 960px) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-visual {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    height: clamp(300px, 52svh, 520px);
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .hero-visual::after {
    background: linear-gradient(180deg, rgba(5, 10, 28, 0.75) 0, rgba(5, 10, 28, 0) 110px);
  }
  .hero-content { padding-block: 4px 40px; }
  .hero-text { max-width: 34rem; }
  .motion-toggle {
    top: calc(clamp(300px, 52svh, 520px) - 56px);
    bottom: auto;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    background: rgba(10, 20, 48, 0.85);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 500 0.9375rem/1 var(--font);
    cursor: pointer;
  }
  .menu-toggle-icon,
  .menu-toggle-icon::before {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    position: relative;
    transition: transform 0.2s ease;
  }
  .menu-toggle-icon::before { content: ""; position: absolute; top: 5px; }
  .menu-toggle-icon { transform: translateY(-2.5px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(-5px) rotate(-90deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(8, 16, 40);
    border-block: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .site-nav a {
    padding: 14px 0;
    font-size: 1.0625rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:hover { background: none; }
  .site-nav li:last-child a { border-bottom: 0; }

  .hero-visual { height: clamp(260px, 44svh, 400px); }
  .motion-toggle { top: calc(clamp(260px, 44svh, 400px) - 52px); min-height: 36px; }

  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.5rem); letter-spacing: -0.025em; }
  .lead { margin-top: 14px; font-size: 1rem; }
  .button { margin-top: 24px; width: 100%; justify-content: center; }
}

/* Without JavaScript the menu cannot open, so the links are shown as a plain row */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; row-gap: 0; }
@media (max-width: 720px) {
  html:not(.js) .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
  }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 0 16px; padding: 0 0 8px; }
  html:not(.js) .site-nav a { padding: 6px 0; font-size: 0.9375rem; border: 0; }
}

/* Phone in landscape (low window): text on the left, scene on the right,
   heading and CTA first; the lead follows the button */
@media (orientation: landscape) and (max-width: 960px) and (max-height: 500px) {
  :root { --header-h: 3.5rem; }

  /* The header sits above the first screen and may wrap with enlarged text */
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .site-nav ul { flex-wrap: wrap; }

  .container {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }

  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .hero-visual {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 46%;
    right: 0;
    width: auto;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 14%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.35) 14%, #000 38%);
  }
  .hero-visual::after { background: none; }
  .hero-content { padding-block: 4px max(16px, env(safe-area-inset-bottom)); }
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: min(26rem, calc(48vw - var(--gutter)));
  }
  .eyebrow { font-size: 0.75rem; margin-bottom: 8px; }
  h1 { font-size: clamp(1.625rem, 0.9rem + 2.4vw, 2.125rem); }
  .button { order: 1; width: auto; margin-top: 16px; min-height: 44px; }
  .lead { order: 2; margin-top: 16px; font-size: 1rem; }

  /* Kept inside the first visible window even when the hero is taller than it */
  .motion-toggle {
    top: calc(100vh - var(--header-h) - 36px - max(12px, env(safe-area-inset-bottom)));
    top: calc(100svh - var(--header-h) - 36px - max(12px, env(safe-area-inset-bottom)));
    bottom: auto;
    right: max(var(--gutter), env(safe-area-inset-right));
    min-height: 36px;
  }
}

/* Dropdown menu of a low landscape phone stays scrollable within the window */
@media (orientation: landscape) and (max-width: 720px) and (max-height: 500px) {
  .site-nav {
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
}

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