/* ============================================================
   SSJ-Pulse Enterprise - site stylesheet
   Theme 03 "Editorial": light palette, Sora + JetBrains Mono.
   Shared by the static site (Nginx) and Django pages (/apps, /privacy).
   Self-hosted fonts only (CSP: font-src 'self').
   ============================================================ */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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;
}
[data-theme="editorial"] {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --ink: #05070c;
  --ink-2: #2a2f3a;
  --muted: #5c6473;
  --hair: rgba(5, 7, 12, 0.14);
  --hair-strong: rgba(5, 7, 12, 0.28);
  --surface: transparent;
  --surface-solid: #ffffff;
  --surface-2: transparent;
  --accent-1: #0e7490;
  --accent-2: #1d4ed8;
  --accent-3: #312e81;
  --on-accent: #ffffff;
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: none;
  --shadow-sm: none;
  --glass: none;
  --sheen: transparent;
  --display: clamp(1.95rem, 7vw, 5.6rem);
  --display-weight: 600;
  --display-track: -0.045em;
  --display-leading: 0.96;
  --section-pad: clamp(84px, 11vw, 152px);
  --header-bg: rgba(255, 255, 255, 0.9);
  --btn-radius: 3px;
  --section-alt: transparent;
}
*, *::before, *::after { box-sizing: border-box;
}
html { scroll-behavior: smooth; scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  
  transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3 {
  margin: 0;
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-weight: var(--display-weight);
  line-height: var(--display-leading);
  letter-spacing: var(--display-track);
  text-wrap: balance;
}
h1 { font-size: var(--display);
}
h2 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); letter-spacing: -0.032em; line-height: 1.08;
}
h3 { font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.35; font-weight: 600;
}
p { margin: 0;
}
ul { margin: 0; padding: 0; list-style: none;
}
a { color: inherit; text-decoration: none;
}
img, svg { display: block; max-width: 100%;
}
button { font: inherit; color: inherit;
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px;
}
::selection { background: color-mix(in srgb, var(--accent-1) 28%, transparent);
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.shell {
  width: min(1200px, 100% - clamp(40px, 8vw, 80px));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--hair);
  transition: background-color 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 11px;
}
.brand svg { width: 36px; height: 36px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1;
}
.brand-text strong {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-text small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 5px;
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px);
}
.nav a {
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--ink);
}
.nav a.nav-link--quiet { color: var(--muted);
}
.nav a.btn, .nav a.btn:hover { color: var(--on-accent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 17px; height: 17px;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, var(--accent-1), var(--accent-2));
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 26px -14px color-mix(in srgb, var(--accent-2) 70%, transparent);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.42) 50%, transparent 60%);
  transform: translateX(-80%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover { transform: translateY(-1px);
}
.btn-primary:hover::after { transform: translateX(80%);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--hair-strong);
  color: var(--ink);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
}
.btn-ghost:hover { border-color: var(--ink-2);
}
.btn-block { width: 100%;
}
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 104px) var(--section-pad);
  overflow: clip;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}
.hero h1 { margin-top: 20px;
}
.grad {
  background: linear-gradient(96deg, var(--accent-1), var(--accent-2) 62%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rotator {
  display: inline-grid;
  vertical-align: top;
  overflow: hidden;
  padding: 0.04em 0.06em 0.32em;
  margin: -0.04em -0.06em -0.32em;
  text-align: center;
}
.rotator-word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;
  opacity: 0;
  transform: translateY(70%);
  filter: blur(6px);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  background: linear-gradient(96deg, var(--accent-1), var(--accent-2) 62%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rotator-word.is-on { opacity: 1; transform: none; filter: none; }
.rotator-word.is-out { opacity: 0; transform: translateY(-70%); filter: blur(6px); }
.lead {
  margin-top: 22px;
  font-size: 1.0625rem;
  line-height: 1.66;
  color: var(--ink-2);
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-points svg { width: 15px; height: 15px; color: var(--accent-1);
}
.aurora {
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -12%;
  width: min(760px, 70%);
  aspect-ratio: 1;
  pointer-events: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-1) 26%, transparent), transparent 72%),
    radial-gradient(closest-side at 68% 34%, color-mix(in srgb, var(--accent-3) 22%, transparent), transparent 72%);
  filter: blur(48px);
  opacity: 0.55;
  animation: drift 22s ease-in-out infinite alternate;
}
[data-theme="editorial"] .aurora { display: none;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-5%, 6%, 0) scale(1.12); }
}
.pulse-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
}
[data-theme="editorial"] .pulse-card {
  border: 0;
  border-top: 1px solid var(--hair-strong);
  border-bottom: 1px solid var(--hair-strong);
  border-radius: 0;
  padding: 30px 0;
  background: transparent;
  box-shadow: none;
}
.pulse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pulse-card h2 {
  margin-top: 18px;
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.pulse-bar {
  height: 4px;
  margin-top: 22px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  overflow: hidden;
}
.pulse-bar span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}
.pulse-card > p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.pulse-card .btn { margin-top: 22px;
}
.pulse-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
}
.purpose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.purpose-chip {
  border: 1px solid var(--hair-strong);
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.purpose-chip:hover { transform: translateY(-1px);
}
.purpose-chip.is-on {
  background: linear-gradient(96deg, var(--accent-1), var(--accent-2));
  color: var(--on-accent);
  border-color: transparent;
}
.intake-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.intake-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--hair-strong);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.intake-input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-1) 18%, transparent);
}
.intake-row .btn { flex: 0 0 auto;
}
.section { padding-block: var(--section-pad); background: var(--section-alt);
}
.section + .section { border-top: 1px solid var(--hair);
}
[data-theme="editorial"] .section { border-top: 1px solid var(--hair);
}
.section-head { max-width: 640px;
}
.section-head h2 { margin-top: 16px;
}
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 56ch;
}
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 4.5vw, 52px);
}
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: var(--surface);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease, background-color 0.25s ease;
}
[data-theme="editorial"] .card {
  border: 0;
  border-top: 1px solid var(--hair-strong);
  border-radius: 0;
  background: transparent;
  padding: 24px 0 0;
}
.card::after {
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: linear-gradient(105deg, transparent 40%, var(--sheen) 50%, transparent 60%);
  transform: translateX(-85%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
.card:hover { transform: translateY(-3px); border-color: var(--hair-strong);
}
.card:hover::after { transform: translateX(85%); opacity: 1;
}
[data-theme="editorial"] .card:hover { transform: none;
}
}
.card h3 { margin-top: 18px;
}
.card > p { margin-top: 9px; color: var(--muted); font-size: 0.925rem; line-height: 1.6;
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}
.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--hair);
  border-radius: 999px;
}
[data-theme="editorial"] .tag { border: 0; padding: 4px 0; margin-right: 12px;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--accent-1);
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--accent-1) 9%, transparent);
}
.icon-tile svg { width: 21px; height: 21px;
}
.apps-head-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hair-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.apps-head-link:hover { color: var(--ink); border-color: var(--ink);
}
.app-card {
  padding: 0;
  gap: 0;
}
.app-shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9.4;
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 62%),
    linear-gradient(150deg, color-mix(in srgb, var(--tint) 14%, var(--paper)), color-mix(in srgb, var(--tint) 5%, var(--paper)));
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.app-ui {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 7px;
  pointer-events: none;
}
.app-ui i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tint) 30%, transparent);
}
.app-ui i:nth-child(1) { width: 68%; background: color-mix(in srgb, var(--tint) 58%, transparent);
}
.app-ui i:nth-child(2) { width: 48%;
}
.app-ui i:nth-child(3) { width: 60%;
}
@keyframes appDrift {
  from { transform: translate3d(-6%, -5%, 0) scale(0.92); }
  to { transform: translate3d(8%, 10%, 0) scale(1.14); }
}
[data-theme="editorial"] .app-shot { background: #f4f6f9;
}
.glyph {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-sm);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .glyph { transform: translateY(-3px) scale(1.03);
}
.app-body { padding: 22px 24px 24px;
}
.app-body h3 { margin-top: 0;
}
.app-body > p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; line-height: 1.6;
}
.app-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
[data-theme="editorial"] .app-card {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--hair-strong);
  padding: 22px 0;
}
[data-theme="editorial"] .app-card + .app-card { border-left: 0;
}
[data-theme="editorial"] .app-shot { aspect-ratio: 4 / 3; border-bottom: 0;
}
[data-theme="editorial"] .app-body { padding: 0;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
[data-theme="editorial"] .scroll-progress { opacity: 1;
}
.scroll-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
}
[data-theme="editorial"] .scroll-progress span { background: var(--ink);
}
.hero-spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--mx, 72%) var(--my, 34%),
    color-mix(in srgb, var(--accent-1) 16%, transparent),
    transparent 68%
  );
  transition: opacity 0.4s ease;
}
@keyframes floatOrb {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 16px, 0); }
}
[data-theme="editorial"] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}
[data-theme="editorial"] .line-inner {
  display: block;
  animation: lineUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-theme="editorial"] .line:nth-child(1) .line-inner { animation-delay: 0.04s;
}
[data-theme="editorial"] .line:nth-child(2) .line-inner { animation-delay: 0.13s;
}
[data-theme="editorial"] .line:nth-child(3) .line-inner { animation-delay: 0.22s;
}
@keyframes lineUp {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.marquee { display: none;
}
[data-theme="editorial"] .marquee {
  display: block;
  overflow: hidden;
  padding: 15px 0;
  background: #fff;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
[data-theme="editorial"] .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
[data-theme="editorial"] .marquee:hover .marquee-track { animation-play-state: paused;
}
.marquee-group { display: flex; gap: 46px; padding-right: 46px;
}
.marquee-group span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }
[data-theme="editorial"] .index {
  display: block;
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--hair-strong);
}
[data-theme="editorial"] .reveal .app-shot {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}
[data-theme="editorial"] .reveal.is-in .app-shot { clip-path: inset(0 0 0 0);
}
.cards .reveal:nth-child(2) { transition-delay: 0.07s;
}
.cards .reveal:nth-child(3) { transition-delay: 0.14s;
}
.hero-halo {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: min(1100px, 96%);
  aspect-ratio: 1;
  translate: -50% -54%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 72%),
    radial-gradient(closest-side at 62% 38%, color-mix(in srgb, var(--accent-1) 28%, transparent), transparent 74%);
  filter: blur(64px);
  transition: opacity 0.7s ease;
}
[data-theme="editorial"] .hero-halo {
  animation: haloSpin 28s ease-in-out infinite alternate;
}
[data-theme="editorial"] .hero-halo { opacity: 0.46;
}
@keyframes haloSpin {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(16deg) scale(1.12); }
}
.hero-cue {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 20px;
  translate: -50% 0;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
}
[data-theme="editorial"] .hero-cue { display: inline-flex;
}
.hero-cue .mono {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hair-strong), transparent);
}
.hero-cue i::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 14px;
  background: linear-gradient(180deg, var(--accent-1), transparent);
  animation: cueFall 1.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes cueFall {
  from { transform: translateY(-16px); opacity: 0; }
  55% { opacity: 1; }
  to { transform: translateY(38px); opacity: 0; }
}
@property --ringAngle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes ringSpin { to { --ringAngle: 360deg; } }
.story-statement { display: none;
}
[data-theme="editorial"] .story-statement {
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-block: clamp(64px, 12vw, 160px);
}
.statement {
  margin: 18px auto 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-align: left;
}
.statement .w {
  opacity: 0.15;
  transition: opacity 0.45s ease;
}
.statement .w.on { opacity: 1;
}
.story-apps { display: none;
}
[data-theme="editorial"] .story-apps {
  display: block;
  position: relative;
  height: 320vh;
}
[data-theme="editorial"] .apps-standard { display: none;
}
.story-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}
.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.story-intro h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.4vw, 3rem);
}
.story-nav {
  display: grid;
  gap: 0;
  margin-top: 26px;
  max-width: 320px;
}
.story-nav button {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.story-nav button .mono {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  color: var(--hair-strong);
  transition: color 0.2s ease;
}
.story-nav button:hover { color: var(--ink);
}
.story-nav button.is-on { color: var(--ink);
}
.story-nav button.is-on .mono { color: var(--accent-2);
}
.story-nav button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}
.story-progress {
  position: relative;
  margin-top: 30px;
  width: min(240px, 100%);
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--hair);
}
.story-progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--ink);
}
.story-stage {
  position: relative;
  height: min(66vh, 560px);
}
.story-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.6s;
}
.story-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.story-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 26px;
  border: 1px solid var(--hair);
  background:
    radial-gradient(circle at 30% 18%, color-mix(in srgb, var(--tint) 26%, #fff), transparent 62%),
    linear-gradient(160deg, #ffffff, #eef2f8);
  box-shadow: 0 30px 60px -34px rgba(15, 23, 42, 0.35);
}
.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.9) 48%, transparent 58%);
  translate: -70% 0;
  transition: translate 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-slide.is-active .story-visual::after { translate: 70% 0;
}
.story-visual .glyph {
  position: relative;
  z-index: 0;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.5vw, 6.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--tint) 70%, #0f172a);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-slide.is-active .story-visual .glyph { transform: scale(1.035);
}
.story-slide.is-active .story-visual { animation: storyFloat 6.5s ease-in-out infinite alternate;
}
@keyframes storyFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}
.story-ui {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 8px;
}
.story-ui i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
}
.story-ui i:nth-child(1) { width: 78%; background: color-mix(in srgb, var(--tint) 52%, transparent);
}
.story-ui i:nth-child(2) { width: 54%;
}
.story-ui i:nth-child(3) { width: 66%; background: color-mix(in srgb, var(--tint) 26%, transparent);
}
.story-caption .mono {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.story-caption > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-slide.is-active .story-caption > * { opacity: 1; transform: none;
}
.story-slide.is-active .story-caption > *:nth-child(1) { transition-delay: 0.06s;
}
.story-slide.is-active .story-caption > *:nth-child(2) { transition-delay: 0.12s;
}
.story-slide.is-active .story-caption > *:nth-child(3) { transition-delay: 0.18s;
}
.story-slide.is-active .story-caption > *:nth-child(4) { transition-delay: 0.24s;
}
.story-caption h3 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
}
.story-caption p {
  margin-top: 14px;
  max-width: 34ch;
  line-height: 1.65;
  color: var(--ink-2);
}
.story-caption .app-meta { margin-top: 20px;
}
@media (max-width: 1080px) {
[data-theme="editorial"] .story-apps { height: auto;
}
.story-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding-block: 64px 48px;
}
.story-layout { grid-template-columns: 1fr;
}
.story-nav { display: none;
}
.story-progress { display: none;
}
.story-stage { height: auto;
}
.story-slide {
    position: relative;
    grid-template-columns: 1fr;
    margin-top: 30px;
    opacity: 1;
    visibility: visible;
    transform: none;
}
.story-slide + .story-slide { margin-top: 44px;
}
.story-caption > * { opacity: 1; transform: none;
}
.story-visual { height: auto; aspect-ratio: 16 / 10;
}
.statement { max-width: 24ch;
}
}
@media (max-width: 700px) {
.story-visual { aspect-ratio: 4 / 3;
}
.statement { max-width: 100%;
}
}
[data-theme="editorial"] .card { position: relative; overflow: hidden;
}
[data-theme="editorial"] .card .index { transition: color 0.3s ease;
}
[data-theme="editorial"] .card:hover .index { color: var(--accent-1);
}
[data-theme="editorial"] .card::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 26px;
  width: 0;
  height: 1px;
  background: var(--accent-1);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="editorial"] .card:hover::after { width: 44px;
}
[data-theme="editorial"] .card:hover { transform: translateY(-2px);
}
[data-theme="editorial"] .card h3 { transition: color 0.3s ease;
}
[data-theme="editorial"] .card:hover h3 { color: var(--accent-2);
}
.quote-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--glass);
  backdrop-filter: var(--glass);
}
.quote-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  min-height: 3.6em;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.quote-text.is-swapping { opacity: 0; transform: translateY(6px);
}
.quote-author { margin-top: 18px; color: var(--muted);
}
.quote-actions { margin-top: 22px;
}
.site-footer {
  border-top: 1px solid var(--hair);
  padding-block: 48px 34px;
  background: var(--paper-2);
}
[data-theme="editorial"] .site-footer { background: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-note { margin-top: 16px; color: var(--muted); font-size: 0.9rem; max-width: 38ch;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.footer-col li + li { margin-top: 8px;
}
.footer-col a { font-size: 0.9rem; color: var(--ink-2);
}
.footer-col a:hover { color: var(--ink);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}
.footer-bottom .mono { font-size: 0.625rem; letter-spacing: 0.1em;
}
[data-theme="editorial"] .nav a { font-size: 0.875rem; letter-spacing: 0.01em;
}
[data-theme="editorial"] .header-inner { min-height: 84px;
}
[data-theme="editorial"] .hero { padding-block: clamp(36px, 5vw, 64px) var(--section-pad);
}
[data-theme="editorial"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  gap: 0;
}
[data-theme="editorial"] .hero-copy { max-width: 940px; margin-inline: auto;
}
[data-theme="editorial"] .eyebrow { justify-content: center;
}
[data-theme="editorial"] .eyebrow::before { display: none;
}
[data-theme="editorial"] .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  order: -1;
}
[data-theme="editorial"] .lead { margin-inline: auto; font-size: 1.2rem; max-width: 62ch;
}
[data-theme="editorial"] .hero-actions { justify-content: center;
}
[data-theme="editorial"] .hero-points { justify-content: center; border-top: 0; margin-top: 26px;
}
[data-theme="editorial"] .hero-aside { width: 100%; max-width: 720px; margin: 64px auto 0;
}
[data-theme="editorial"] .pulse-head { justify-content: center; gap: 24px;
}
[data-theme="editorial"] .pulse-card h2 { font-size: 1.5rem;
}
[data-theme="editorial"] .pulse-card > p { max-width: 46ch; margin-inline: auto;
}
[data-theme="editorial"] .pulse-card .btn { max-width: 280px; margin-inline: auto;
}
[data-theme="editorial"] .section-head { max-width: 760px;
}
[data-theme="editorial"] .section-sub { font-size: 1.0625rem;
}
[data-theme="editorial"] .cards { gap: 0; border-bottom: 1px solid var(--hair);
}
[data-theme="editorial"] .card { border-radius: 0; padding: 26px 28px 30px;
}
[data-theme="editorial"] .card + .card { border-left: 1px solid var(--hair);
}
[data-theme="editorial"] .card h3 { margin-top: 16px;
}
[data-theme="editorial"] .icon-tile {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  width: 24px;
  height: 24px;
  color: var(--ink);
}
[data-theme="editorial"] .icon-tile svg { width: 24px; height: 24px;
}
[data-theme="editorial"] .btn-primary { background: var(--ink); box-shadow: none;
}
[data-theme="editorial"] .btn-primary::after { display: none;
}
[data-theme="editorial"] .btn-ghost { background: transparent; border-color: var(--hair-strong);
}
[data-theme="editorial"] .site-header { border-bottom-color: var(--hair);
}
.js .reveal { opacity: 0; transform: translateY(14px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto;
}
.aurora { animation: none;
}
.js .reveal { opacity: 1; transform: none;
}
[data-theme="editorial"] .line-inner { animation: none;
}
[data-theme="editorial"] .marquee-track, .hero-halo, .hero-cue i::after { animation: none;
}
.scroll-progress { display: none;
}
[data-theme="editorial"] .reveal .app-shot { clip-path: none;
}
.statement .w { opacity: 1;
}
.story-slide.is-active .story-visual { animation: none;
}
.hero-copy { transform: none !important;
}
* { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important;
}
}
@media (max-width: 980px) {
.hero-grid { grid-template-columns: 1fr;
}
.hero-aside { max-width: 560px;
}
.aurora { opacity: 0.35; width: 90%; top: -10%;
}
.cards { grid-template-columns: repeat(2, minmax(0, 1fr));
}
[data-theme="editorial"] .card + .card { border-left: 0;
}
[data-theme="editorial"] .cards { grid-template-columns: 1fr;
}
[data-theme="editorial"] .card { border-top: 1px solid var(--hair);
}
.footer-grid { grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 700px) {
.nav { display: none;
}
.cards { grid-template-columns: 1fr;
}
.section-head--row { flex-direction: column; align-items: flex-start; gap: 16px;
}
.footer-grid { grid-template-columns: 1fr; gap: 26px;
}
[data-theme="editorial"] .app-card { grid-template-columns: 1fr; gap: 0;
}
[data-theme="editorial"] .app-shot { aspect-ratio: 16 / 9;
}
[data-theme="editorial"] .app-body { padding-top: 18px;
}
}

/* ============================================================
   Production additions (not in the lab)
   ============================================================ */

.container { width: min(1200px, 100% - clamp(40px, 8vw, 80px)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 12px; top: -64px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff;
  border-radius: 3px; font-weight: 600; font-size: 0.875rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.brand img { width: 36px; height: 36px; }

/* ---------- Mobile navigation ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hair-strong);
  border-radius: 3px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px clamp(20px, 5vw, 40px) 22px;
    background: #fff; border-bottom: 1px solid var(--hair);
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .nav.is-open { display: flex; animation: navIn 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--hair); font-size: 1rem; }
  .nav a.btn { margin-top: 18px; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.contact-aside .section-head { margin-bottom: 28px; }
.contact-points { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.contact-points li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 0.95rem;
}
.contact-points a { color: var(--accent-2); font-weight: 600; overflow-wrap: anywhere; }
.contact-points a:hover { text-decoration: underline; }

.contact-form { display: grid; gap: 22px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--hair-strong); border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b91c1c; }
.field-error { min-height: 0; font-size: 0.85rem; color: #b91c1c; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.consent.has-error { color: #b91c1c; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.prefill-note {
  padding: 12px 14px; font-size: 0.9rem; color: var(--ink-2);
  border-left: 2px solid var(--accent-1); background: color-mix(in srgb, var(--accent-1) 7%, #fff);
}
.prefill-note[hidden] { display: none; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success, .form-error {
  display: none; gap: 12px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--hair-strong); border-radius: var(--radius-sm); font-size: 0.95rem;
}
.form-success.is-visible, .form-error.is-visible { display: flex; animation: navIn 0.3s ease; }
.form-success { border-color: #15803d; background: #f0fdf4; }
.form-error { border-color: #b91c1c; background: #fef2f2; }
.form-success svg, .form-error svg { width: 22px; height: 22px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success svg { stroke: #15803d; }
.form-error svg { stroke: #b91c1c; }
.form-success strong, .form-error strong { display: block; }
.form-success span, .form-error span { color: var(--ink-2); }
.form-error a { text-decoration: underline; }
.btn.is-loading { pointer-events: none; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .intake-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Footer extras ---------- */
.footer-bottom { flex-wrap: wrap; gap: 8px 24px; }
.footer-plain { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding-block: 28px; }
.footer-plain ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-plain p, .footer-plain a { font-size: 0.875rem; color: var(--muted); }
.footer-plain a:hover { color: var(--ink); }

/* ---------- Legal, policy and error pages ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px); }
.legal-inner { max-width: 780px; }
.legal-card { border-top: 1px solid var(--hair-strong); padding-top: 32px; }
.legal .eyebrow { justify-content: flex-start; }
.legal .eyebrow::after { display: none; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 10px 0 14px; }
.legal h2 { font-size: 1.2rem; margin: 34px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 8px; }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.legal .btn { text-decoration: none; }
.legal .btn-primary { color: var(--on-accent); }

.policy-banner { background: #fffbeb; border: 1px solid #f0d58a; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 20px; font-size: 0.9rem; }
.policy-list { list-style: none !important; padding-left: 0 !important; }
.policy-list li { padding: 16px 0; border-bottom: 1px solid var(--hair); margin: 0; }
.policy-list a { text-decoration: none; }
.policy-list a:hover strong { color: var(--accent-2); }

.error-page { min-height: 62vh; display: flex; align-items: center; }
.error-page .eyebrow { justify-content: flex-start; }
.error-page .eyebrow::after { display: none; }
.error-page h1 { margin: 12px 0 16px; }
.error-page p { color: var(--ink-2); max-width: 46ch; }
.error-page .hero-actions { justify-content: flex-start; margin-top: 28px; }

/* ---------- Policy pages (Django) ---------- */
.policy-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 24px; font-size: 0.95rem; }
.policy-facts dt { font-weight: 600; color: var(--ink); }
.policy-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.policy-table-wrap { overflow-x: auto; margin: 10px 0 16px; -webkit-overflow-scrolling: touch; }
.policy-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hair); }
.policy-table th { font-weight: 600; white-space: nowrap; color: var(--ink); }
.legal ol { list-style: decimal; padding-left: 22px; margin: 8px 0 12px; }
.legal ol li { margin-bottom: 6px; }
.app-screenshot { max-width: 100%; height: auto; border: 1px solid var(--hair); border-radius: var(--radius-sm); }
.legal figure { margin: 16px 0; }
.legal figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) { .policy-facts { grid-template-columns: 1fr; gap: 2px; } .policy-facts dd { margin-bottom: 10px; } }



/* ============================================================
   Services: centred cards, staggered entrance, pointer spotlight
   ============================================================ */
[data-theme="editorial"] #services .section-head,
[data-theme="editorial"] #quotes .section-head { margin-inline: auto; text-align: center; }
[data-theme="editorial"] #services .section-sub,
[data-theme="editorial"] #quotes .section-sub { margin-inline: auto; }
[data-theme="editorial"] #services .section-head .eyebrow,
[data-theme="editorial"] #quotes .section-head .eyebrow { justify-content: center; }

[data-theme="editorial"] #services .cards {
  --gap: clamp(14px, 1.8vw, 22px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
  gap: var(--gap); border: 0; margin-top: clamp(38px, 5vw, 64px);
}
[data-theme="editorial"] #services .card {
  --rx: 0deg; --ry: 0deg; --ty: 0px; --d: 0ms;
  flex: 0 1 calc((100% - 2 * var(--gap)) / 3);
  max-width: calc((100% - 2 * var(--gap)) / 3);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 26px 26px;
  border: 1px solid var(--hair); border-left: 1px solid var(--hair); border-top: 1px solid var(--hair);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
  box-shadow: 0 1px 2px rgba(5, 7, 12, 0.04), 0 18px 36px -26px rgba(5, 7, 12, 0.28);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--ty));
  transition: transform 0.22s ease-out, border-color 0.35s ease, box-shadow 0.4s ease;
  will-change: transform;
}
[data-theme="editorial"] #services .card:nth-child(3n + 2) { --d: 90ms; }
[data-theme="editorial"] #services .card:nth-child(3n) { --d: 180ms; }

/* spotlight that follows the pointer */
[data-theme="editorial"] #services .card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent-1) 15%, transparent), transparent 70%);
  transition: opacity 0.4s ease;
}
/* gradient bar that draws across the top */
[data-theme="editorial"] #services .card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: auto;
  width: auto; height: 3px; opacity: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-theme="editorial"] #services .card .index {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--muted);
}
[data-theme="editorial"] #services .card .index::before,
[data-theme="editorial"] #services .card .index::after {
  content: ""; width: 18px; height: 1px; background: var(--hair-strong);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}
[data-theme="editorial"] #services .icon-tile {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  color: var(--accent-1);
  border: 1px solid color-mix(in srgb, var(--accent-1) 22%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-1) 12%, #fff), color-mix(in srgb, var(--accent-3) 8%, #fff));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease, color 0.35s ease, box-shadow 0.4s ease;
}
[data-theme="editorial"] #services .icon-tile svg { width: 27px; height: 27px; }
[data-theme="editorial"] #services .card h3 { margin-top: 24px; font-size: 1.28rem; letter-spacing: -0.02em; }
[data-theme="editorial"] #services .card > p {
  margin: 12px auto 0; max-width: 34ch; flex: 1 1 auto;
  color: var(--muted); font-size: 0.95rem; line-height: 1.65;
}
[data-theme="editorial"] #services .card-foot {
  width: 100%; justify-content: center; gap: 6px; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--hair);
}
[data-theme="editorial"] #services .tag {
  margin: 0; padding: 5px 11px; border: 1px solid var(--hair); border-radius: 999px;
  background: #fff; transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  [data-theme="editorial"] #services .card:hover {
    --ty: -8px; border-color: color-mix(in srgb, var(--accent-2) 32%, transparent);
    box-shadow: 0 2px 4px rgba(5, 7, 12, 0.04), 0 30px 54px -26px rgba(29, 78, 216, 0.4);
  }
  [data-theme="editorial"] #services .card:hover::before { opacity: 1; }
  [data-theme="editorial"] #services .card:hover::after { transform: scaleX(1); }
  [data-theme="editorial"] #services .card:hover .index { color: var(--accent-2); }
  [data-theme="editorial"] #services .card:hover .index::before,
  [data-theme="editorial"] #services .card:hover .index::after { width: 30px; background: var(--accent-2); }
  [data-theme="editorial"] #services .card:hover .icon-tile {
    transform: translateY(-3px) rotate(-6deg) scale(1.08); color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2) 60%, var(--accent-3));
    box-shadow: 0 14px 26px -10px rgba(29, 78, 216, 0.55);
  }
  [data-theme="editorial"] #services .card:hover h3 { color: var(--accent-2); }
  [data-theme="editorial"] #services .card:hover .tag { border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); color: var(--ink-2); }
}
[data-theme="editorial"] #services .card:focus-within { border-color: var(--accent-2); }

/* entrance: card rises in, then its contents follow one by one */
html.js #services .card.reveal { opacity: 0; translate: 0 40px; scale: 0.94; }
html.js #services .card.reveal.is-in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity 0.7s ease var(--d), translate 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d),
    scale 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d), transform 0.22s ease-out,
    border-color 0.35s ease, box-shadow 0.4s ease;
}
html.js #services .card.reveal > * { opacity: 0; translate: 0 14px; }
html.js #services .card.reveal.is-in > * {
  opacity: 1; translate: 0 0;
  transition: opacity 0.6s ease, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease, color 0.35s ease,
    box-shadow 0.4s ease, border-color 0.3s ease;
}
html.js #services .card.reveal.is-in > :nth-child(1) { transition-delay: calc(var(--d) + 150ms); }
html.js #services .card.reveal.is-in > :nth-child(2) { transition-delay: calc(var(--d) + 230ms); }
html.js #services .card.reveal.is-in > :nth-child(3) { transition-delay: calc(var(--d) + 310ms); }
html.js #services .card.reveal.is-in > :nth-child(4) { transition-delay: calc(var(--d) + 390ms); }
html.js #services .card.reveal.is-in > :nth-child(5) { transition-delay: calc(var(--d) + 470ms); }
/* hover transitions on the icon must not wait for the entrance delay */
html.js #services .card.reveal.is-in:hover > .icon-tile { transition-delay: 0ms; }

@media (max-width: 980px) {
  [data-theme="editorial"] #services .card,
  [data-theme="editorial"] #services .cards .card {
    flex-basis: calc((100% - var(--gap)) / 2); max-width: calc((100% - var(--gap)) / 2);
  }
  [data-theme="editorial"] #services .card:nth-child(n) { --d: 0ms; }
  [data-theme="editorial"] #services .card:nth-child(even) { --d: 90ms; }
}
@media (max-width: 640px) {
  [data-theme="editorial"] #services .card,
  [data-theme="editorial"] #services .cards .card { flex-basis: 100%; max-width: 100%; padding: 30px 22px 24px; }
  [data-theme="editorial"] #services .card:nth-child(n) { --d: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  html.js #services .card.reveal, html.js #services .card.reveal > * { opacity: 1; translate: none; scale: none; }
  [data-theme="editorial"] #services .card { transform: none; }
  .rotator-word { transition: none; filter: none; }
}

/* headline lines clip for the entrance mask: leave room for descenders */
[data-theme="editorial"] .line { padding-bottom: 0.34em; margin-bottom: -0.34em; }

/* intake row: input and button share one height and baseline */
.intake-row { align-items: stretch; flex-wrap: nowrap; }
.intake-row .btn, .pulse-card .intake-row .btn { margin-top: 0; min-height: 48px; padding-block: 0; white-space: nowrap; }
.intake-input { min-height: 48px; }
#top { display: block; height: 0; }
@media (max-width: 560px) {
  .intake-row { flex-direction: column; }
  .intake-row .intake-input, .intake-row .btn { flex: none; width: 100%; }
}
@media (max-width: 560px) {
  .pulse-card .intake-row .btn { margin: 0; width: 100%; align-self: stretch; }
  .purpose-chips, .purpose { justify-content: center; }
}
[data-theme="editorial"] .pulse-card .intake-row .btn { max-width: none; margin: 0; }
[data-theme="editorial"] .pulse-card .purpose-row { justify-content: center; }

/* ============================================================
   Apps showcase fed from Django (/apps/featured.json)
   ============================================================ */
.apps-section[hidden] { display: none !important; }
html:not(.has-work) [data-needs-work] { display: none; }
@media (min-width: 1081px) {
  [data-theme="editorial"] .story-apps { height: calc(var(--n, 3) * 100vh + 20vh); }
}
.story-intro .apps-head-link { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; }
.story-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-weight: 600; font-size: 0.95rem; color: var(--accent-2);
  transition: gap 0.25s ease;
}
.story-link:hover { gap: 12px; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Project screenshots: phone and browser frames ---------- */
.story-visual.has-shot { display: block; }
.story-visual.has-shot .glyph, .story-visual.has-shot .story-ui { display: none; }
a.story-visual { cursor: pointer; }
.story-shot {
  position: absolute; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
a.story-visual:hover .story-shot { transform: scale(1.025); }

/* mobile: dark bezel with the screenshot inset */
.story-visual.is-mobile.has-shot { background: #0f172a; border-color: #0f172a; }
.story-visual.is-mobile.has-shot .story-shot {
  inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 18px;
}

/* web: browser bar with three dots */
.story-visual.is-web.has-shot { background: #eef2f8; }
.story-visual.is-web.has-shot .story-bar {
  position: absolute; inset: 0 0 auto 0; height: 30px; z-index: 2;
  background: #f4f6fa; border-bottom: 1px solid var(--hair);
}
.story-visual.is-web.has-shot .story-bar::before {
  content: ""; position: absolute; left: 14px; top: 11px; width: 8px; height: 8px; border-radius: 50%;
  background: #ff5f57; box-shadow: 14px 0 #febc2e, 28px 0 #28c840;
}
.story-visual.is-web.has-shot .story-shot { top: 30px; height: calc(100% - 30px); }

.story-slide.is-active .story-caption > *:nth-child(5) { transition-delay: 0.30s; }
.story-caption .story-link { margin-top: 20px; }

@media (min-width: 1081px) {
  /* a landscape screenshot gets the wide slot, caption underneath */
  .story-slide.is-web {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch; gap: 22px;
  }
  .story-slide.is-web .story-caption .story-link { margin-top: 14px; }
}
@media (max-width: 1080px) {
  .story-visual.is-mobile.has-shot { aspect-ratio: 9 / 16; max-width: 300px; margin-inline: auto; width: 100%; }
  .story-visual.is-web.has-shot { aspect-ratio: 16 / 10; }
}

/* project button: a real button, not a text link */
.story-caption .story-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 13px 22px; border-radius: var(--btn-radius, 3px);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1;
  text-decoration: none; transition: gap 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.story-caption .story-link:hover {
  gap: 14px; transform: translateY(-2px); text-decoration: none;
  box-shadow: 0 14px 26px -14px rgba(5, 7, 12, 0.55);
}
.story-caption .story-link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
@media (min-width: 1081px) { .story-slide.is-web .story-caption .story-link { margin-top: 16px; } }
