/* Turiq website */

:root {
  --bg: #F5F3EE;
  --sand: #E8E4DA;
  --white: #FFFFFF;
  --ink: #171615;
  --body: #4F4A42;
  --mute: #6D6E70;
  --line: rgba(23, 22, 21, 0.12);
  --accent: #4A5E86;
  --accent-deep: #27324B;
  --ice: #D6DDEA;
  --blue: #748BB8;

  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --ui: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --track: -0.025em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 24px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: var(--track); }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: var(--nav-h); }

/* ---------- Logo (mask of the brand lockup, tinted by currentColor) ---------- */
.lockup {
  display: block;
  aspect-ratio: 898 / 347.2;
  background: currentColor;
  -webkit-mask: url(/assets/brand/lockup.svg) center / contain no-repeat;
          mask: url(/assets/brand/lockup.svg) center / contain no-repeat;
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 5px 0 15px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font: 500 14px/1 var(--ui);
  white-space: nowrap;
  transition: background 0.25s var(--ease);
}
.pill:hover { background: var(--accent-deep); }
.pill-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
}
.pill-dot svg, .car-arrow svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.pill:hover .pill-dot svg { transform: translateX(1px); transition: transform 0.25s var(--ease); }
.pill-soft { background: rgba(23, 22, 21, 0.07); color: var(--ink); }
.pill-soft:hover { background: rgba(23, 22, 21, 0.12); }
.pill-soft .pill-dot { background: var(--white); color: var(--ink); }
.pill-dark { background: var(--ink); padding: 0 18px; }
.pill-dark:hover { background: #000; }

.more { display: inline-flex; gap: 6px; align-items: baseline; font-size: 15px; color: var(--ink); }
.more:hover { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  color: var(--white);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  z-index: -1;
  background: linear-gradient(rgba(10, 10, 12, 0.32), rgba(10, 10, 12, 0));
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.nav.solid {
  color: var(--ink);
  background: rgba(245, 243, 238, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav.solid::before { opacity: 0; }
.nav-left { display: flex; gap: 30px; font-size: 15px; }
.nav-left a, .nav-plain { opacity: 0.92; transition: opacity 0.2s; }
.nav-left a:hover, .nav-plain:hover { opacity: 0.6; }
.nav-logo .lockup { height: 44px; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 30px; font-size: 15px; }
.nav-toggle { display: none; width: 36px; height: 36px; position: relative; }
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 21px; }
.nav.open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  background: var(--bg);
  padding: 24px var(--gutter);
  display: flex;
  flex-direction: column;
}
.sheet[hidden] { display: none; }
.sheet a {
  font: 500 28px/1.2 var(--display);
  letter-spacing: var(--track);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Hero ---------- */
.hero-live {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 11px; border-radius: 999px;
  background: rgba(10, 12, 16, 0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13.5px; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.95);
}
.hero-live i { width: 7px; height: 7px; border-radius: 50%; background: #5ED08B; box-shadow: 0 0 0 3px rgba(94, 208, 139, 0.25); }
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  /* a tiny blurred first frame, inline, so the hero is never blank while the poster loads */
  background: #B9C3CC url("data:image/jpeg;base64,/9j//gAQTGF2YzYwLjMxLjEwMgD/2wBDAAgQEBMQExYWFhYWFhoYGhsbGxoaGhobGxsdHR0iIiIdHR0bGx0dICAiIiUmJSMjIiMmJigoKDAwLi44ODpFRVP/xABkAAEBAQEAAAAAAAAAAAAAAAAGBQQDAQEBAQEAAAAAAAAAAAAAAAACAQADEAABAwMEAwEAAAAAAAAAAAABAAIDBDIzIRESMRNCUSIRAAMBAQEBAAAAAAAAAAAAAAABAhIxQkH/wAARCAASACADASIAAhEAAxEA/9oADAMBAAIRAxEAPwBA54+LH5WC5q5S1EbBog9TXcnbDQJKqZKiENjVQD1UmaoO/wCWojDI6fcDsKnzA77S0zYk4zE8iiclxSua4onJcVZ4C+lGhyre/IVPocq3vyFT6dPJ/9k=") center / cover no-repeat;
  color: var(--white);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the full loop sits over the intro, hidden until it has taken over */
.hero-full { opacity: 0; transition: opacity 0.2s linear; }
.hero-full.on { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.25) 0%, rgba(8, 8, 10, 0) 22%),
    linear-gradient(0deg, rgba(8, 8, 10, 0.62) 0%, rgba(8, 8, 10, 0.18) 38%, rgba(8, 8, 10, 0) 60%);
}
.hero-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 var(--gutter) 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1, .hero-sub p { text-wrap: balance; }
.hero-sub {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 18px;
}

/* ---------- Fact strip ---------- */
.strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--mute);
  overflow: hidden;
}
.strip-label { flex: none; }
.strip-track {
  display: flex;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip-row {
  flex: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  animation: marquee 48s linear infinite;
  font: 500 15px/1 var(--display);
  letter-spacing: 0.01em;
  color: #8c8a84;
  white-space: nowrap;
}
.strip-row i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .strip-row { animation: none; } }

/* ---------- Intro ---------- */
.intro { padding: 170px var(--gutter) 72px; text-align: center; }
.intro h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.08; }
.intro p { margin-top: 22px; font-size: 18px; color: var(--body); }

/* ---------- Layer stack ---------- */
.os { position: relative; height: calc((var(--layers) + 1.4) * 58vh); }
.os-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, #E6E5E1 0%, #ECEBE7 55%, var(--bg) 100%);
}
.os-list {
  position: absolute;
  z-index: 2;
  top: calc(var(--nav-h) + 72px);
  left: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: min(480px, calc(100% - 2 * var(--gutter)));
}
.os-list button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 8px 0 15px;
  border-radius: 999px;
  background: rgba(52, 54, 60, 0.62);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  transition: background 0.25s;
}
.os-list button:hover { background: rgba(52, 54, 60, 0.78); }
.os-plus {
  position: relative;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.os-plus::before, .os-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 1.2px; background: currentColor; transform: translate(-50%, -50%);
}
.os-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.os-card {
  display: none;
  padding: 20px 24px 22px;
  border-radius: 22px;
  background: rgba(52, 54, 60, 0.66);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--white);
}
.os-card span { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.66); }
.os-card p { margin-top: 10px; font-size: 18px; line-height: 1.38; }
.os-list li.active button { display: none; }
.os-group { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px 4px; font: 400 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.os-group:first-child { margin-top: 0; }
.os-group b { font-weight: 500; color: var(--accent-deep); }
.os-list li.active .os-card { display: block; animation: cardIn 0.45s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(4px) scale(0.98); } }

.os-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 2200px;
  --size: min(400px, 30vw);
}
.os-stack {
  position: relative;
  width: var(--size);
  height: var(--size);
  margin-top: 18vh;
  margin-left: var(--shift, 0px);
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(calc(-45deg + var(--turn, 0) * 1deg));
}
.os-floor {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--size) * 1.9);
  height: calc(var(--size) * 0.9);
  transform: translate(-50%, -12%) scale(calc(1 + var(--grow, 0) * 0.12));
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 22, 21, calc(0.13 + var(--grow, 0) * 0.07)), rgba(23, 22, 21, 0));
  filter: blur(14px);
}
.plate {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  display: grid;
  place-items: center;
  /* Clear, frosted glass: the layers below show through, a soft sheen across the top,
     and a dark chrome edge along the two front sides, as glass seen edge-on. */
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(246, 247, 249, 0.6) 0%, rgba(214, 217, 223, 0.42) 52%, rgba(176, 181, 190, 0.5) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
          backdrop-filter: blur(7px) saturate(1.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 40px rgba(255, 255, 255, 0.4),
    inset 14px -14px 36px rgba(120, 125, 136, 0.16),
    -1px 1px 0 0 rgba(255, 255, 255, 0.95),
    -4px 4px 0 -1px rgba(120, 124, 133, 0.85),
    -7px 7px 0 -1px rgba(36, 38, 44, 0.92),
    -9px 9px 0 -1px rgba(8, 9, 11, 0.95),
    -10px 10px 0 -1px rgba(255, 255, 255, 0.75),
    -30px 30px 44px rgba(23, 22, 21, 0.14);
  opacity: 0;
  will-change: transform, opacity;
}
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.5) 44%, rgba(255, 255, 255, 0) 56%);
  pointer-events: none;
}
.plate-core {
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, rgba(240, 244, 250, 0.62) 0%, rgba(200, 211, 229, 0.45) 52%, rgba(160, 175, 202, 0.52) 100%);
}
.plate span {
  position: relative;
  font: 500 clamp(13px, 1.25vw, 18px)/1.2 var(--display);
  letter-spacing: 0;
  color: rgba(23, 22, 21, 0.72);
  text-align: center;
  padding: 0 12%;
}
.plate.on {
  border-color: rgba(116, 139, 184, 0.95);
  box-shadow:
    -6px 6px 0 -1px rgba(160, 164, 172, 0.95),
    -9px 9px 0 -1px rgba(40, 42, 48, 0.82),
    -22px 22px 34px rgba(23, 22, 21, 0.14),
    0 0 0 4px rgba(116, 139, 184, 0.16),
    0 0 36px rgba(116, 139, 184, 0.35);
}
.plate.on span { color: var(--accent-deep); }

/* The glass box that closes around the layers at the end */
.os-box {
  position: absolute;
  inset: calc(var(--size) * -0.045);
}
.box-core { inset: calc(var(--size) * -0.03); }
.box-all { inset: calc(var(--size) * -0.075); }
.os-box {
  transform-style: preserve-3d;
  pointer-events: none;
}
.wall {
  position: absolute;
  opacity: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(196, 203, 216, 0.42) 0%, rgba(236, 239, 245, 0.3) 70%, rgba(255, 255, 255, 0.4) 100%);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
.wall i {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.55) 42%, transparent 58%);
}
.wall-fy, .wall-by { left: 0; width: 100%; height: var(--h, 0px); transform-origin: top; }
.wall-fy { top: 100%; transform: rotateX(90deg) scaleY(var(--grow, 0)); }
.wall-by { top: 0; transform: rotateX(90deg) scaleY(var(--grow, 0)); }
.wall-fx, .wall-bx { top: 0; height: 100%; width: var(--h, 0px); transform-origin: left; }
.wall-fx { left: 0; transform: rotateY(-90deg) scaleX(var(--grow, 0)); }
.wall-bx { left: 100%; transform: rotateY(-90deg) scaleX(var(--grow, 0)); }
.wall-by, .wall-bx { background: rgba(214, 219, 228, 0.22); box-shadow: none; }
.lid {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  place-items: center;
  border-radius: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(232, 235, 241, 0.55) 55%, rgba(214, 220, 231, 0.6) 100%);
  box-shadow: inset 0 0 0 1px rgba(23, 22, 21, 0.05), inset 0 0 40px rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  will-change: transform, opacity;
}
.lid-grid {
  position: absolute;
  inset: 13%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 7%;
  opacity: calc(0.35 + var(--final, 0) * 0.45);
}
.lid-grid i {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(225, 229, 237, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), -3px 3px 8px rgba(23, 22, 21, 0.06);
}
.lid-a {
  position: absolute;
  font: 500 clamp(12px, 1.15vw, 16px)/1.2 var(--display);
  color: rgba(23, 22, 21, 0.62);
  opacity: calc(1 - var(--final, 0) * 1.4);
}
.lid-b {
  position: absolute;
  font: 600 clamp(32px, 3.6vw, 58px)/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--accent-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 22px rgba(255, 255, 255, 0.85);
  opacity: var(--final, 0);
  transform: scale(calc(0.9 + var(--final, 0) * 0.1));
}
.os-progress {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  width: 110px;
  height: 30px;
  border-radius: 999px;
  background: rgba(52, 54, 60, 0.5);
  display: grid;
  align-items: center;
  padding: 0 14px;
}
.os-progress::before {
  content: "";
  grid-area: 1 / 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.os-progress span {
  grid-area: 1 / 1;
  height: 3px;
  border-radius: 3px;
  background: var(--white);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.os-explain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  padding: 40px var(--gutter) 0;
}
.ex { padding-top: 18px; border-top: 1px solid var(--line); }
.ex-n { font: 400 12px/1.4 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.ex h3 { margin-top: 14px; font-size: 22px; }
.ex p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--body); max-width: 340px; }
/* the three columns share one top line; the button sits on its own row beneath */
.os-explain .pill { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.plate-core {
  background: linear-gradient(135deg, #E9EDF5 0%, #C9D2E3 55%, #AEBBD3 100%);
}
.plate-core span { color: var(--accent-deep); font-weight: 600; }
/* Keycaps: thick glass blocks that float above the layer below, each landing on its own */
.plate-keys {
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  opacity: 1;
  transform-style: preserve-3d;
  display: grid;
}
.plate-keys::before { display: none; }
.keys-site { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 5%; padding: 3%; }
.keys-mods { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8%; padding: 10%; }
.key {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 6%;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 20% 10%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(250, 251, 252, 0.7) 0%, rgba(222, 225, 231, 0.5) 55%, rgba(196, 200, 208, 0.58) 100%);
  border: 2px solid rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.3),
    inset 0 0 18px rgba(255, 255, 255, 0.75),
    -1px 1px 0 rgba(255, 255, 255, 0.95),
    -4px 4px 0 -1px rgba(206, 210, 217, 1),
    -6px 6px 0 -1px rgba(150, 155, 164, 0.9),
    -7px 7px 0 -1px rgba(60, 63, 70, 0.6),
    -8px 8px 0 -1px rgba(255, 255, 255, 0.8),
    -18px 18px 26px rgba(23, 22, 21, 0.12);
  opacity: 0;
  transform: translateZ(var(--kz, 0px));
  will-change: transform, opacity;
}
.key::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0) 55%);
}
.key span {
  position: relative;
  font: 500 clamp(9px, 0.9vw, 13px)/1.15 var(--display);
  color: rgba(23, 22, 21, 0.76);
}
.keys-mods .key {
  border-radius: 22px;
  background:
    radial-gradient(120% 100% at 20% 10%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, rgba(240, 244, 250, 0.72) 0%, rgba(205, 215, 232, 0.5) 55%, rgba(170, 184, 208, 0.58) 100%);
}
.keys-mods .key span { font-size: clamp(10px, 1vw, 14px); color: var(--accent-deep); }
.plate-keys.on .key { border-color: rgba(176, 195, 228, 0.98); }
/* ---------- Product ---------- */
.product { padding: 170px var(--gutter) 150px; }
.product-head h2 { font-size: clamp(34px, 3.4vw, 50px); }
.product-head p { margin-top: 26px; max-width: 480px; font-size: 18px; line-height: 1.45; color: var(--ink); }
.cards {
  margin-top: 88px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  row-gap: 72px;
}
.card h3 { margin-top: 26px; font-size: 21px; }
.card p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--body); }
.card .more { margin-top: 16px; }
.card-art {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #F7F7F6 0%, #DADBDD 100%);
}
.art-research { background: linear-gradient(160deg, #EEF1F6, #CDD5E3); }
.art-draft { background: linear-gradient(200deg, #F2F2F0 10%, #D9D8D3 100%); }
.art-draft::after {
  content: ""; position: absolute; width: 60%; aspect-ratio: 1; left: -18%; bottom: -22%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(116, 139, 184, 0.55), transparent);
  filter: blur(10px);
}
.art-review { background: linear-gradient(160deg, #EDEBE6, #D3CFC5); }
.card-art .tone-svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.ui {
  position: relative;
  z-index: 1;
  width: 74%;
  padding: 16px 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -18px rgba(23, 22, 21, 0.35);
  font-size: 12px;
  color: var(--ink);
}
.ui-top { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--mute); margin-bottom: 12px; }
.ui .dot { width: 8px; height: 8px; border-radius: 50%; background: #D7B24A; }
.ui .dot.blue { background: var(--blue); }
.ui-title { font: 500 17px/1.2 var(--display); letter-spacing: -0.01em; }
.ui-tag {
  display: inline-block; margin: 8px 0 14px; padding: 3px 8px; border-radius: 99px;
  background: var(--ice); color: var(--accent-deep); font: 500 10.5px/1.4 var(--mono);
}
.ui-line { height: 7px; border-radius: 4px; background: #E4E2DC; margin-top: 8px; }
.w45 { width: 45%; } .w60 { width: 60%; } .w75 { width: 75%; } .w80 { width: 80%; }
.w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; }
.ui-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 0;
  border-top: 1px solid rgba(23, 22, 21, 0.07);
}
.ui-row b { margin-left: auto; font: 500 11px var(--mono); color: var(--mute); }
.ui .sq { width: 10px; height: 10px; border-radius: 3px; border: 1.2px solid var(--accent); }
.ui .ck { width: 14px; height: 14px; border-radius: 50%; background: #4F9D69; position: relative; flex: none; }
.ui .ck::after {
  content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px;
  border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.ui-row.wait .ck { background: none; border: 1.5px dashed #B0926D; }
.ui-row.wait .ck::after { display: none; }
.ui-row.wait { color: var(--mute); }
.ui-chips { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.ui-chips span { padding: 3px 8px; border-radius: 99px; background: #EFEDE8; font-size: 10.5px; color: var(--body); }

.art-present { background: linear-gradient(160deg, #2B3651, #171B26); }
.art-pub { background: linear-gradient(160deg, #F1EEE7, #DAD3C4); }
.ui-top b { margin-left: auto; font-weight: 500; color: #B0926D; }
.ui-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 12px; }
.ui-meta span { padding: 2px 7px; border-radius: 99px; background: var(--ice); color: var(--accent-deep); font: 500 10px/1.5 var(--mono); }
.ui-foot { margin-top: 12px; font-size: 10.5px; color: var(--mute); }
.ui-q {
  margin-left: auto; width: fit-content; max-width: 85%; padding: 8px 11px; border-radius: 12px 12px 3px 12px;
  background: var(--accent); color: #fff; font-size: 11.5px; line-height: 1.35;
}
.ui-a { margin-top: 10px; }
.ui-bar { height: 5px; border-radius: 5px; background: #ECEAE4; margin: -2px 0 8px; overflow: hidden; }
.ui-bar i { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.ui-slide { background: rgba(255, 255, 255, 0.96); }
.ui-chart { width: 100%; height: 64px; margin-bottom: 10px; }
.ui-chart path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ui-third { display: flex; align-items: baseline; gap: 8px; padding-top: 9px; border-top: 1px solid rgba(23, 22, 21, 0.08); }
.ui-third b { font: 500 15px var(--display); }
.ui-third span { font-size: 11px; color: var(--mute); }

/* "And much more": a few more jobs, each with one plain sentence */
.more-wall {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}
.more-head h3 { font-size: clamp(26px, 2.2vw, 34px); }
.more-head p { margin-top: 14px; max-width: 380px; font-size: 15px; line-height: 1.5; color: var(--body); }
.more-head .pill { margin-top: 24px; }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.more-grid li { padding: 16px 0 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.more-grid li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.more-grid b { font-weight: 500; font-size: 15.5px; color: var(--ink); }
.more-grid span { font-size: 14.5px; line-height: 1.45; color: var(--body); }

/* ---------- Firms carousel ---------- */
.firms { padding: 110px 0 150px; }
.firms-head { text-align: center; padding: 0 var(--gutter); }
.firms-head h2 { font-size: clamp(34px, 3.4vw, 50px); line-height: 1.06; }
.firms-head p { margin: 30px auto 0; max-width: 500px; font-size: 18px; line-height: 1.4; }
.carousel {
  --sw: 220px;      /* resting slide width */
  --aw: 400px;      /* active slide width */
  --sgap: 56px;
  margin-top: 60px;
}
.car-controls {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--gutter); margin-bottom: 56px;
}
.car-arrow {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(23, 22, 21, 0.08); transition: background 0.2s;
}
.car-arrow:hover { background: rgba(23, 22, 21, 0.16); }
.car-dots {
  display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 99px;
  background: rgba(23, 22, 21, 0.06);
}
.car-dots button {
  width: 5px; height: 5px; border-radius: 99px; background: rgba(23, 22, 21, 0.3);
  transition: width 0.4s var(--ease), background 0.4s;
}
.car-dots button[aria-selected="true"] { width: 22px; background: var(--ink); }
.car-viewport { overflow: hidden; }
.car-track {
  display: flex;
  align-items: flex-start;
  gap: var(--sgap);
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.slide {
  flex: none;
  width: var(--sw);
  cursor: pointer;
  transition: width 0.7s var(--ease);
}
.slide.active { width: var(--aw); cursor: default; }
.slide-img {
  position: relative;
  height: calc(var(--sw) * 1.42);
  overflow: hidden;
  background: var(--bg, #ddd);
  transition: height 0.7s var(--ease);
}
.slide.active .slide-img { height: calc(var(--aw) * 0.95); }
.slide-img img, .slide-img .tone-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.slide-img img { transition: transform 1.2s var(--ease); }
.slide:hover .slide-img img { transform: scale(1.03); }
.slide-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.38), rgba(10, 10, 12, 0) 38%);
}
.tone-img::after { background: none; }
.slide-img:not(:has(img))::after { background: none; }
.slide-img:not(:has(img)) span {
  left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.78); color: var(--ink);
}
.slide-img span {
  position: absolute; z-index: 1; top: 14px; left: 0; right: 0; text-align: center;
  color: var(--white); font-size: 16px;
}
.tone-img span {
  left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.78); color: var(--ink);
}
.slide-copy {
  width: var(--aw);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s var(--ease);
}
.slide.active .slide-copy { opacity: 1; max-height: 300px; transition-delay: 0.25s; }
.slide-copy h3 { margin-top: 26px; font: 400 18px/1.3 var(--ui); letter-spacing: 0; }
.slide-copy p { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--body); }

/* ---------- Vision + team ---------- */
.vision { background: var(--sand); padding: 50px var(--gutter) 64px; }
.vision-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.vision h2 { font-size: clamp(30px, 2.6vw, 40px); }
.vision-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vision-cols p { font-size: 15px; line-height: 1.5; color: var(--ink); }
.vision-cols p + p { margin-top: 16px; }
.team { margin-top: 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; color: var(--body); }
.person-img { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px; background: #d8cfbf; }
.person-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s var(--ease); }
.person:hover .person-img img { transform: scale(1.025); }
.person b { font-weight: 500; color: var(--ink); }
.team-more { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { padding-top: 16px; border-top: 1px solid rgba(23, 22, 21, 0.16); font-size: 15px; line-height: 1.4; color: var(--body); }
.member b { display: block; font-weight: 500; color: var(--ink); }
.person:hover b, .member:hover b { color: var(--accent); }

/* ---------- Press ---------- */
.press { padding: 130px var(--gutter) 140px; }
.press-head { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.press-head h2 { font-size: clamp(34px, 3.4vw, 50px); }
.press-band {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.press-run {
  flex: none; display: flex; align-items: center; gap: 72px; padding-right: 72px;
  animation: press-run 32s linear infinite;
}
.press-band:hover .press-run { animation-play-state: paused; }
@keyframes press-run { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .press-run { animation: none; } }
.press-run a { flex: none; display: flex; align-items: center; height: 44px; }
/* Each logo keeps its own width from its width/height attributes: Safari otherwise sizes an
   SVG in a flex row by its default box, and the end of one run slid over the next. */
.press-run img { flex: none; }
.press-run img, .press-logo img {
  display: block; height: 100%; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(1) contrast(1.1); opacity: 0.62; transition: filter 0.3s, opacity 0.3s;
}
.press-run a:hover img, .press-card:hover .press-logo img { filter: none; opacity: 1; }
.press-run .logo-bilanz, .press-run .logo-moneycab { height: 34px; }
.press-run .logo-blick { height: 36px; }
.press-run .logo-startupticker { height: 56px; }

.press-feature {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.press-photo { margin: 0; }
.press-photo img { width: 100%; height: auto; aspect-ratio: 646 / 388; object-fit: cover; background: #d8cfbf; }
.press-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--mute); }
.press-quote { margin: 0; }
.press-quote p { font: 500 clamp(24px, 2.3vw, 34px)/1.22 var(--display); letter-spacing: -0.02em; }
.press-quote footer { margin-top: 26px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--body); }
.press-quote footer b { font-weight: 500; color: var(--ink); }

.press-cards > .clone { display: none; }
.press-cards { margin-top: 80px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.press-card {
  display: flex; flex-direction: column;
  padding: 18px 18px 20px;
  background: var(--white);
  border: 1px solid rgba(23, 22, 21, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.press-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(23, 22, 21, 0.3); }
.press-logo { height: 72px; display: flex; align-items: center; justify-content: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.press-logo img { height: 30px; max-width: 150px; }
.press-logo.logo-startupticker img { height: 54px; }
.press-logo.logo-blick img { height: 30px; }
.press-date { margin-top: 16px; font: 400 11.5px/1.4 var(--mono); color: var(--mute); }
.press-title { margin-top: 8px; font-size: 15.5px; line-height: 1.42; flex: 1; }
.press-read { margin-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); }
.press-read svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.press-card:hover .press-read { color: var(--accent); }

/* ---------- Security ---------- */
.security { background: #121316; color: var(--white); padding: 50px var(--gutter) 32px; }
.security h2 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.14; }
.security-head p { margin-top: 64px; max-width: 460px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); }
.sec-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.sec {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.sec:first-child { border-left: 0; }
.sec h3 { font: 400 16px/1.3 var(--ui); letter-spacing: 0; }
.sec p { margin-top: 8px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); max-width: 230px; }
.badge {
  margin-top: auto;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.04em;
}

/* ---------- Careers ---------- */
.careers { padding: 150px var(--gutter) 140px; }
.careers-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.careers-head h2 { font-size: clamp(34px, 3.4vw, 50px); }
.careers-head p { font-size: 18px; line-height: 1.45; max-width: 560px; }
.roles {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 32px;
  align-items: start;
}
.role { display: block; padding-top: 18px; border-top: 1px solid var(--line); }
.role-n { font: 400 12px/1.4 var(--mono); color: var(--mute); }
.role h3 { margin-top: 18px; font-size: 26px; }
.role p { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--body); }
.role .more { margin-top: 18px; }
.role:hover h3 { color: var(--accent); }

.faq { margin-top: 130px; display: grid; grid-template-columns: 1fr 2fr; column-gap: 48px; }
.faq-title { grid-row: span 20; font-size: clamp(30px, 2.6vw, 40px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(23, 22, 21, 0.07); font: 400 17px/1 var(--ui); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; max-width: 680px; color: var(--body); line-height: 1.55; }

.faq-wrap { padding: 0 var(--gutter) 130px; }
.faq-wrap .faq { margin-top: 0; }
.careers-page { padding-top: calc(var(--nav-h) + 110px); }

/* ---------- Forms ---------- */
.form { background: var(--white); border-radius: 18px; padding: 26px; }
.form-kicker { font: 500 22px/1.2 var(--display); letter-spacing: var(--track); margin-bottom: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 15px/1.4 var(--ui);
  color: var(--ink);
  background: #F4F3F0;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 12px;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
          appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236D6E70' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C0563D; }
.form button[type=submit] { margin-top: 6px; height: 40px; font-size: 15px; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form-note { margin: -8px 0 16px; font-size: 13px; color: var(--mute); }
.field > span em { font-style: normal; color: rgba(109, 110, 112, 0.7); margin-left: 4px; }
.file-drop {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; padding: 12px; text-align: center;
  font-size: 14px; color: var(--mute);
  background: #F4F3F0; border: 1px dashed rgba(23, 22, 21, 0.2); border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop u { color: var(--accent); text-decoration: none; }
.file-drop:hover, .file-drop.over { border-color: var(--accent); background: var(--white); }
.file-drop.has-file { border-style: solid; color: var(--ink); }
.field.invalid .file-drop { border-color: #C0563D; }
.file-clear { margin-top: 6px; font-size: 13px; color: var(--mute); text-decoration: underline; }
.file-clear:hover { color: var(--ink); }
.form-status { margin-top: 10px; font-size: 13px; color: #C0563D; min-height: 1em; }
.form-thanks { font-size: 16px; line-height: 1.5; padding: 24px 0; }
.form.sent .form-fields { display: none; }

/* ---------- CTA ---------- */
/* The FAQ used to sit between the security band and this box; now it needs its own air above. */
.cta-wrap { padding: 120px var(--gutter) 110px; }
.cta {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 16px;
  border-radius: 22px;
  background: var(--accent-deep);
  color: var(--white);
}
.cta-copy { padding: 22px 16px 22px 14px; display: flex; flex-direction: column; }
.cta h2 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; }
.cta-copy p { margin-top: 36px; max-width: 360px; font-size: 18px; line-height: 1.4; color: rgba(255, 255, 255, 0.92); }
.cta-people { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.cta-people a {
  padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-size: 13px;
  transition: background 0.2s;
}
.cta-people a:hover { background: rgba(255, 255, 255, 0.2); }
.cta-form { border-radius: 8px; color: var(--ink); }

/* ---------- Footer ---------- */
.foot { padding: 40px var(--gutter) 40px; color: var(--accent-deep); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot h4 { font: 400 15px/1.4 var(--ui); letter-spacing: 0; margin-bottom: 18px; color: var(--accent); }
.foot-cols a { display: block; font-size: 15px; line-height: 1.65; }
.foot-cols a:hover { color: var(--accent); }
.sph img { width: 150px; height: auto; opacity: 0.85; }
.foot-mark { display: grid; place-items: center; padding: 110px 0 120px; color: var(--accent-deep); }
.foot-mark .lockup { width: min(620px, 78vw); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }

/* ---------- Reveal ---------- */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .press-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .sec-grid { grid-template-columns: repeat(3, 1fr); }
  .sec:nth-child(4) { border-left: 0; }
  .sec:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .roles { grid-template-columns: 1fr 1fr; }
  .role-form { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .nav-left, .nav-plain { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-logo { justify-self: start; }
  .nav-logo .lockup { height: 38px; }
  .nav-right { gap: 8px; }
  .nav-toggle { display: block; }
  .nav.open { color: var(--ink); background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .nav.open::before { opacity: 0; }

  .hero-copy { padding-bottom: 40px; }
  .hero-sub { flex-direction: column; gap: 18px; font-size: 16px; }

  .intro { padding: 110px var(--gutter) 48px; }
  .intro p { font-size: 16px; }

  .os { height: calc((var(--layers) + 1.4) * 58vh); }
  .os-list { top: calc(var(--nav-h) + 20px); gap: 0; }
  .os-list li { display: none; }
  .os-list li.active { display: block; }
  .os-card { padding: 16px 18px 18px; border-radius: 18px; }
  .os-card p { font-size: 16px; }
  .os-stage { --size: min(230px, 54vw); }
  .os-group { display: none; }
  .os-stack { margin-top: 30vh; }
  .os-explain { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }

  .product { padding: 110px var(--gutter) 100px; }
  .product-head p { font-size: 16px; }
  .cards { margin-top: 48px; gap: 20px; row-gap: 48px; }
  .more-wall { grid-template-columns: 1fr; gap: 22px; margin-top: 64px; }
  .more-grid { grid-template-columns: 1fr; }
  .more-grid li:nth-child(2) { border-top: 1px solid var(--line); padding-top: 16px; }

  .firms { padding: 70px 0 100px; }
  .firms-head p { font-size: 16px; }
  .carousel { --sw: 110px; --aw: min(300px, 74vw); --sgap: 20px; margin-top: 40px; }
  .car-controls { margin-bottom: 32px; }
  .slide-img span { font-size: 13px; }
  .slide.active .slide-img span { font-size: 15px; }


  .vision-top, .vision-cols, .careers-head, .faq { grid-template-columns: 1fr; gap: 20px; }
  .team { margin-top: 56px; grid-template-columns: 1fr 1fr; gap: 16px; }
  .team .person:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
  .team-more { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }

  .press { padding: 90px var(--gutter) 100px; }
  .press-head, .press-feature { grid-template-columns: 1fr; gap: 28px; }
  .press-run { gap: 44px; padding-right: 44px; animation-duration: 24s; }
  .press-run a { height: 30px; }
  .press-run .logo-bilanz, .press-run .logo-moneycab, .press-run .logo-blick { height: 26px; }
  .press-run .logo-startupticker { height: 40px; }
  .press-feature { margin-top: 44px; }
  .press-cards {
    margin: 44px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .press-cards::-webkit-scrollbar { display: none; }
  .press-card { scroll-snap-align: center; }
  .press-cards > .clone { display: flex; }
  .press-logo { height: 56px; }
  .cta-wrap { padding-top: 64px; padding-bottom: 72px; }
  .security-head p { margin-top: 24px; }
  .sec-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .sec {
    min-height: 0; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; align-items: start;
    padding: 22px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .sec:first-child { border-top: 0; }
  .sec h3, .sec p { grid-column: 2; }
  .sec p { max-width: none; }
  .badge { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; width: 44px; height: 44px; }

  .careers { padding: 100px var(--gutter) 100px; }
  .careers-head p { font-size: 16px; }
  .roles { grid-template-columns: 1fr; margin-top: 48px; }
  .faq { margin-top: 90px; }
  .faq-wrap { padding-bottom: 90px; }
  .careers-page { padding-top: calc(var(--nav-h) + 56px); }
  .faq-title { grid-row: auto; margin-bottom: 8px; }
  .faq summary { font-size: 16px; }
  .faq details p { padding-right: 0; }

  .cta { grid-template-columns: 1fr; padding: 10px; }
  .cta-copy { padding: 22px 14px 6px; }
  .cta-copy p { margin-top: 18px; font-size: 16px; }
  .cta-people { padding-top: 22px; }
  .form { padding: 20px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }

  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .foot-mark { padding: 70px 0 80px; }
  .foot-base { flex-direction: column; gap: 6px; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .card-art { aspect-ratio: 5 / 4; }
  .ui { width: min(74%, 280px); }
}

@media (max-width: 420px) {
  .nav-right .pill { display: none; }
}

/* The keycap layer has no plate of its own to highlight. */
.plate-keys.on { border-color: transparent; box-shadow: none; }

/* The core's own box: a smaller label, no tile pattern, and it stays visible inside the outer box */
.box-core .lid { border-radius: 30px; }
.box-core .lid-b {
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(22px, 2.3vw, 36px);
  opacity: var(--final, 0);
}
.lid-b small {
  display: block;
  font: 500 clamp(10px, 0.9vw, 13px)/1.3 var(--ui);
  letter-spacing: 0.02em;
  color: rgba(23, 22, 21, 0.55);
  text-shadow: none;
}
.box-core .lid-b small { margin-top: 6px; }
.box-all .lid-b { display: flex; flex-direction: column; align-items: center; }
.box-all .lid-b small { margin-bottom: 6px; }

/* WebGL version of the stack: the canvas fills the pinned stage, the CSS stack steps aside */
.os-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.os.is-3d .os-stage { display: none; }

/* ---------- Privacy ---------- */
.legal-body { margin-top: 56px; max-width: 760px; }
.legal-body h3 { margin: 40px 0 12px; font-size: 22px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.55; color: var(--body); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.legal-body a { color: var(--accent); }
.legal-optout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.legal-optout .pill { font-size: 14px; }

/* The carousel's jump from a copy back to the real card is never animated */
.carousel.jump .car-track, .carousel.jump .slide, .carousel.jump .slide-img,
.carousel.jump .slide-copy { transition: none !important; }

/* "Operating system" makes the left nav wider: below 1120 px it would run into the logo, so the
   menu collapses into the toggle there already, as on phones. */
@media (max-width: 1120px) {
  .nav-left, .nav-plain { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-logo { justify-self: start; }
  .nav-right { gap: 8px; }
  .nav-toggle { display: block; }
  .nav.open { color: var(--ink); background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .nav.open::before { opacity: 0; }
}
