/* ---------- Novius • marketing site ---------- */

:root {
  --bg-dark: #1A1E26;
  --bg-dark-2: #222631;
  --bg-light: #F7F6F2;
  --bg-light-2: #EFEDE6;
  --ink-on-dark: #F0EFEA;
  --ink-on-dark-muted: #9A9A9F;
  --ink-on-dark-faint: #5A5A60;
  --ink-on-light: #15171B;
  --ink-on-light-muted: #5F6066;
  --ink-on-light-faint: #9CA0A6;
  --accent: #5EEAD4;
  --accent-soft: #99F6E4;
  --accent-deep: #14B8A6;
  --accent-faint: rgba(94, 234, 212, 0.18);
  --accent-glow: rgba(94, 234, 212, 0.28);
  --cool: #7DA6B8;
  --rule-dark: rgba(240, 239, 234, 0.10);
  --rule-light: rgba(21, 23, 27, 0.10);
  --bubble-them-dark: #30353F;
  --bubble-them-light: #E6E3DA;
  --shell-radius: 18px;
  --shell-radius-sm: 12px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  /* Respect device safe-area insets (notch, gesture bar, home indicator)
   * when the page renders edge-to-edge from the `viewport-fit=cover`
   * meta. Desktop and non-notched devices see 0px from env() so layout
   * is unchanged. */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.serif {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  letter-spacing: -0.01em;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Layout primitives ---------- */

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

.section {
  position: relative;
  padding: 120px 0;
}

.section.dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  position: relative;
  isolation: isolate;
}
.section.dark::before {
  /* ambient corner glows — replaces the dot grid for a cleaner, more futuristic feel */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(40% 60% at 15% 0%,  rgba(94, 234, 212, 0.07) 0%, transparent 60%),
    radial-gradient(35% 55% at 85% 100%, rgba(94, 234, 212, 0.06) 0%, transparent 60%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.section.dark::after {
  /* faint horizontal scan-line texture, just visible enough to feel mechanical */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 4px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.section.light { background: var(--bg-light); color: var(--ink-on-light); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}
.section-eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.section h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 36px;
  max-width: 22ch;
  text-wrap: pretty;
}

.section .lede {
  font-size: 19px;
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink-on-light-muted);
  margin: 0;
}
.section.dark .lede { color: var(--ink-on-dark-muted); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 15, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 19px;
}
.wordmark .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 9px;
  align-self: center;
  display: inline-block;
  box-shadow: 0 0 0 3px var(--accent-faint), 0 0 10px var(--accent-glow);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-on-dark-muted);
}
.nav-links a:hover { color: var(--ink-on-dark); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #04161B;
  box-shadow: 0 0 0 0 transparent;
  transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px var(--accent-faint), 0 0 24px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-on-dark);
  border-color: var(--rule-dark);
}
.btn-ghost:hover { border-color: rgba(240, 239, 234, 0.3); }

.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

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

.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* aurora glow behind hero — broader, more dramatic */
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 900px;
  background:
    radial-gradient(50% 60% at 50% 40%, rgba(94, 234, 212,0.28) 0%, transparent 60%),
    radial-gradient(35% 45% at 30% 70%, rgba(125,166,184,0.10) 0%, transparent 60%),
    radial-gradient(30% 40% at 70% 70%, rgba(94, 234, 212,0.10) 0%, transparent 60%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-scan {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Centered statement hero */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(54px, 8.4vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 28px;
  max-width: 16ch;
}
.hero-title .accent { color: var(--accent); }
.hero-title .serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-on-dark);
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-on-dark-muted);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-center .hero-cta { justify-content: center; }

.hero-visual {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-visual .phone { margin-left: 0; }
.hero-visual::before,
.hero-visual::after {
  /* faint side rule lines flanking the phone, system-diagram feel */
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(40px, 16vw, 220px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-dark) 30%, var(--accent) 100%);
  opacity: 0.6;
}
.hero-visual::before { right: calc(50% + 180px); transform: scaleX(-1); }
.hero-visual::after  { left:  calc(50% + 180px); }
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-on-dark-muted);
  text-transform: uppercase;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hero-meta > span { white-space: nowrap; }
.hero-meta .sep { color: var(--ink-on-dark-faint); }
.hero-meta .val { color: var(--ink-on-dark); }
.hero-meta .pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-faint), 0 0 10px var(--accent-glow);
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-faint), 0 0 10px var(--accent-glow); }
  50%      { box-shadow: 0 0 0 7px transparent, 0 0 14px var(--accent-glow); }
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-cta .hint {
  color: var(--ink-on-dark-faint);
  font-size: 13px;
}

/* Editorial horizontal list under the hero — replaces the old stats row */
.hero-handles {
  margin-top: 88px;
  padding-top: 36px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-on-dark-muted);
  letter-spacing: -0.01em;
}
.hero-handles .lead {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-right: 10px;
  align-self: center;
}
.hero-handles .item {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}
.hero-handles .dot { color: var(--accent); font-style: normal; opacity: 0.7; }
.hero-handles .word { color: var(--ink-on-dark); }

/* hairline rule near hero footer (legacy stats row — kept in case of fallback use) */
.hero-rule {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.hero-rule .cell {
  font-size: 13px;
  color: var(--ink-on-dark-muted);
  padding: 24px 24px;
  border-right: 1px solid var(--rule-dark);
}
.hero-rule .cell:last-child { border-right: 0; }
.hero-rule .cell .k {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.hero-rule .cell .v {
  color: var(--ink-on-dark);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* ---------- Architecture grid ---------- */

.arch-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.arch-card {
  position: relative;
  border: 1px solid var(--rule-dark);
  border-radius: 16px;
  padding: 28px 26px 26px;
  background:
    linear-gradient(180deg, rgba(94, 234, 212,0.025), transparent 50%),
    var(--bg-dark-2);
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.arch-card:hover {
  border-color: rgba(94, 234, 212,0.42);
  transform: translateY(-2px);
}
.arch-card::before {
  /* internal corner brackets, top-left */
  content: "";
  position: absolute;
  top: 10px; left: 10px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: 0.45;
  border-radius: 2px 0 0 0;
}
.arch-card::after {
  content: "";
  position: absolute;
  bottom: 10px; right: 10px;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.45;
  border-radius: 0 0 2px 0;
}
.arch-card .arch-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 22px;
  text-transform: uppercase;
}
.arch-card h3 {
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.1;
}
.arch-card .sub {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: var(--accent-soft);
  font-size: 17px;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.arch-card p {
  font-size: 14.5px;
  color: var(--ink-on-dark-muted);
  line-height: 1.55;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.arch-card .tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.arch-card .tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  color: var(--ink-on-dark-muted);
  background: rgba(255,255,255,0.015);
}

@media (max-width: 960px) {
  .arch-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .arch-grid { grid-template-columns: 1fr; }
}

/* ---------- SMS mockup ---------- */

.phone {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  background: var(--bg-dark-2);
  border: 1px solid var(--rule-dark);
  border-radius: 36px;
  padding: 18px;
  position: relative;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 60px -20px var(--accent-glow);
}
.phone::after {
  /* faint scanline overlay */
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
  pointer-events: none;
  mix-blend-mode: screen;
}
.phone-screen {
  background: #1E222B;
  border-radius: 22px;
  padding: 18px 16px 22px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.phone-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-dark);
  margin-bottom: 16px;
}
.phone-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1A1C21, #0F1115);
  border: 1px solid var(--rule-dark);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}
.phone-name { font-size: 14px; font-weight: 500; }
.phone-num { font-size: 11px; color: var(--ink-on-dark-faint); letter-spacing: 0.04em; }

.thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.bubble.them {
  background: var(--bubble-them-dark);
  color: var(--ink-on-dark);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.bubble.you {
  background: var(--accent);
  color: #04161B;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.bubble .who {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 2px;
}
.bubble.you .who { color: rgba(20,17,10,0.65); }

.phone-input {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #252934;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  color: var(--ink-on-dark-faint);
  font-size: 13px;
}
.phone-input .send {
  margin-left: auto;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #04161B;
  display: grid; place-items: center; font-size: 14px;
}

/* on light bg variant for examples section */
.phone.on-light {
  background: #FFFFFF;
  border-color: rgba(21,23,27,0.08);
  box-shadow: 0 24px 50px -28px rgba(21,23,27,0.18);
}
.phone.on-light .phone-screen { background: #FAF8F2; }
.phone.on-light .phone-header { border-bottom-color: rgba(21,23,27,0.08); }
.phone.on-light .phone-avatar {
  background: linear-gradient(180deg, #FFFFFF, #F1EEE5);
  border-color: rgba(21,23,27,0.08);
  color: var(--accent-deep);
}
.phone.on-light .phone-name { color: var(--ink-on-light); }
.phone.on-light .phone-num { color: var(--ink-on-light-faint); }
.phone.on-light .bubble.them {
  background: var(--bubble-them-light);
  color: var(--ink-on-light);
}
.phone.on-light .phone-input {
  background: #FFFFFF;
  border-color: rgba(21,23,27,0.08);
  color: var(--ink-on-light-faint);
}

/* ---------- How it works (steps) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--rule-light);
}
.step {
  padding: 40px 36px 40px 0;
  border-right: 1px solid var(--rule-light);
  position: relative;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:nth-child(n+2) { padding-left: 36px; }
.step .num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step .num .dash { width: 18px; height: 1px; background: var(--accent); }
.step h3 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 500;
}
.step p {
  margin: 0;
  color: var(--ink-on-light-muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 36ch;
}
.step .icon {
  margin-bottom: 28px;
  color: var(--ink-on-light);
}

/* ---------- Team summary (portrait + departments) ---------- */

.team-hero {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

/* Dossier card — image displays near native (191x266) inside a larger card,
   so it doesn't get upscaled and blurry. */
.portrait-card {
  width: 300px;
  padding: 18px 18px 20px;
  border: 1px solid var(--rule-dark);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(94, 234, 212,0.04), transparent 40%),
    var(--bg-dark-2);
  position: relative;
  box-shadow:
    0 30px 60px -30px rgba(0,0,0,0.6),
    0 0 60px -20px var(--accent-glow),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
.portrait-card .dossier-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-on-dark-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.portrait-card .dossier-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
}
.portrait-card .dossier-head .live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), 0 0 8px var(--accent-glow);
  animation: pulse 2.8s ease-in-out infinite;
}
.portrait-card .photo {
  position: relative;
  width: 200px;            /* image is 191px native, ~1.05x — stays crisp */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #1A1E26;
  border: 1px solid var(--rule-dark);
}
.portrait-card .photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.03) saturate(0.9);
}
.portrait-card .photo::after {
  /* scanline overlay — masks any softness and adds a system feel */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, transparent 50%, rgba(7,8,11,0.4) 100%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.portrait-card .photo::before {
  /* corner brackets */
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1px 12px no-repeat;
  opacity: 0.7;
}
.portrait-card .dossier-divider {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-on-dark-faint);
  margin: 18px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portrait-card .dossier-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-dark);
}
.portrait-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-on-dark-faint);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-transform: uppercase;
}
.portrait-meta .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.portrait-meta .row .v { color: var(--ink-on-dark); }
.portrait-meta .row .k::before { content: "›  "; color: var(--accent); }

.team-summary { padding-top: 4px; }
.team-summary .quote {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ink-on-dark);
  margin: 0 0 32px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--rule-dark);
  max-width: 36ch;
}
.dept-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: stretch;
}
.dept-card {
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  padding: 20px 22px 22px;
  background: rgba(255,255,255,0.012);
  transition: border-color 0.18s ease, background 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 128px;
}
.dept-card:hover {
  border-color: rgba(94, 234, 212,0.35);
  background: rgba(94, 234, 212,0.04);
}
.dept-card .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}
.dept-card .num .count { color: var(--ink-on-dark-faint); margin-left: auto; }
.dept-card h4 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--ink-on-dark);
  line-height: 1.25;
}
.dept-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-on-dark-muted);
  line-height: 1.55;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .team-hero { grid-template-columns: 1fr; gap: 36px; justify-items: start; }
  .portrait-card { width: 100%; max-width: 320px; }
  .dept-cards { grid-template-columns: 1fr; }
}

/* ---------- Staff wall — the 18 portraits ---------- */

.staff-wall {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--rule-dark);
}
.staff-wall-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.staff-wall-head .caption-label { color: var(--accent); }
.staff-wall-meta {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
}
.staff-wall-meta b { color: var(--ink-on-dark); font-variant-numeric: tabular-nums; font-weight: 500; }

.dept-row + .dept-row { margin-top: 32px; }
.dept-row-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-dark);
}
.dept-row-head .dn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-on-dark-faint);
  font-variant-numeric: tabular-nums;
}
.dept-row-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-on-dark);
}
.dept-row-head .dc {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
}

.portrait-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.portrait-chip {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-dark-2);
  border: 1px solid var(--rule-dark);
  transition: border-color .2s, transform .2s;
}
.portrait-chip:hover {
  border-color: rgba(94, 234, 212, 0.45);
  transform: translateY(-2px);
}
.portrait-chip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.portrait-chip figcaption {
  display: none;
}
/* DEMO-04: ".status-badge" surfaces a persona-level draft flag (e.g.
   Adelaide, whose Nevada disclosure module is being rewritten). Pulled
   out of the otherwise-hidden figcaption so visitors see the caveat
   inline on the chip, not on hover-only. */
.portrait-chip .status-badge {
  display: inline-block;
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--bg-dark-2);
  background: var(--accent);
  border-radius: 999px;
  text-transform: uppercase;
}

/* ---------- (legacy) Org chart, kept for reference ---------- */

.org {
  margin-top: 64px;
  position: relative;
}
.org-head {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
  position: relative;
}
.org-head::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -56px;
  height: 56px;
  width: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.novius-card {
  width: 340px;
  border: 1px solid var(--rule-dark);
  background: linear-gradient(180deg, rgba(94, 234, 212,0.10), rgba(94, 234, 212,0.02));
  border-radius: 16px;
  padding: 24px 26px;
  text-align: center;
  position: relative;
}
.novius-card .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.novius-card .name {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.novius-card .role {
  font-size: 14px;
  color: var(--ink-on-dark-muted);
}

.org-depts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.org-depts::before {
  /* trunk line */
  content: "";
  position: absolute;
  top: -28px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.dept {
  border-top: 1px solid var(--rule-dark);
  padding-top: 24px;
  position: relative;
}
.dept::before {
  /* drop from trunk to dept */
  content: "";
  position: absolute;
  top: -28px;
  left: 50%;
  height: 28px;
  width: 1px;
  background: var(--accent);
  opacity: 0.4;
}
.dept .dept-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dept .dept-label .count {
  color: var(--ink-on-dark-faint);
  letter-spacing: 0.04em;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spec {
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.012);
  transition: border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.spec:hover, .spec.open {
  border-color: rgba(94, 234, 212,0.4);
  background: rgba(94, 234, 212,0.04);
}
.spec-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spec-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(94, 234, 212,0.10);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.spec-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.spec-role {
  font-size: 12.5px;
  color: var(--ink-on-dark-muted);
  margin-top: 1px;
}
.spec-detail {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-on-dark-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-dark);
  display: none;
}
.spec.open .spec-detail { display: block; }
.spec .toggle {
  margin-left: auto;
  color: var(--ink-on-dark-faint);
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.spec.open .toggle { transform: rotate(45deg); color: var(--accent); }

/* ---------- Examples carousel/grid ---------- */

.examples-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.example-card {
  border: 1px solid var(--rule-light);
  border-radius: 18px;
  padding: 28px;
  background: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.example-card.featured {
  grid-column: span 2;
}
.example-card .caption-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.example-card h4 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.2;
}
.example-card .who-handles {
  font-size: 13.5px;
  color: var(--ink-on-light-muted);
  margin-bottom: 16px;
}
.example-card .who-handles b { color: var(--ink-on-light); font-weight: 500; }
.example-card p.sum {
  font-size: 14.5px;
  color: var(--ink-on-light-muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Privacy section ---------- */

.privacy {
  position: relative;
  overflow: hidden;
}
.privacy-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.privacy-lead {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--ink-on-dark);
  margin: 0 0 24px;
}
.guarantees {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}
.guarantee {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}
.guarantee .gnum {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.guarantee b {
  display: block;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  color: var(--ink-on-dark);
}
.guarantee span {
  color: var(--ink-on-dark-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.privacy-coda {
  margin-top: 56px;
  padding: 28px 32px;
  border-left: 2px solid var(--accent);
  background: rgba(94, 234, 212,0.04);
  color: var(--ink-on-dark-muted);
  font-size: 15.5px;
  line-height: 1.6;
  border-radius: 0 12px 12px 0;
}
.privacy-coda b { color: var(--ink-on-dark); font-weight: 500; }

/* ---------- Tech section ---------- */

.tech-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.tech-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-on-dark);
}
.tech-body p { margin: 0 0 18px; }
.tech-body p:last-child { margin: 0; color: var(--ink-on-dark-muted); font-size: 14.5px; }

.tech-stack {
  border: 1px solid var(--rule-dark);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255,255,255,0.01);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-on-dark-muted);
  line-height: 1.8;
}
.tech-stack .row { display: flex; justify-content: space-between; gap: 16px; }
.tech-stack .row .k { color: var(--ink-on-dark-faint); }
.tech-stack .row .v { color: var(--ink-on-dark); }
.tech-stack .group { border-top: 1px dashed var(--rule-dark); margin-top: 10px; padding-top: 10px; }
.tech-stack .group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---------- FAQ ---------- */

.faq {
  margin-top: 56px;
  border-top: 1px solid var(--rule-light);
}
.faq-item {
  border-bottom: 1px solid var(--rule-light);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-on-light);
}
.faq-q .plus {
  margin-left: auto;
  color: var(--accent-deep);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-on-light-muted);
  max-width: 70ch;
}
.faq-item.open .faq-a { display: block; }

/* ---------- Waitlist ---------- */

.waitlist {
  padding: 140px 0;
}
.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.waitlist h2 { max-width: 16ch; }
.waitlist-aside {
  border-left: 1px solid var(--rule-light);
  padding-left: 32px;
  font-size: 15px;
  color: var(--ink-on-light-muted);
  line-height: 1.6;
}
.waitlist-aside .item { margin-bottom: 18px; }
.waitlist-aside .item b {
  display: block;
  color: var(--ink-on-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-on-light-muted);
  font-weight: 500;
}
.field label .opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-on-light-faint);
  margin-left: 6px;
  font-size: 11px;
}
.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--rule-light);
  background: #FFFFFF;
  color: var(--ink-on-light);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-faint);
}
.field .hint {
  font-size: 13px;
  color: var(--ink-on-light-faint);
}
.field.error input, .field.error textarea {
  border-color: #B5482D;
}
.field .err {
  font-size: 12.5px;
  color: #B5482D;
}

.form .submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.form .smallprint {
  font-size: 12.5px;
  color: var(--ink-on-light-faint);
  line-height: 1.5;
}

.confirm {
  margin-top: 24px;
  padding: 28px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--rule-light);
  border-left: 3px solid var(--accent);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-on-light);
}
.confirm .from {
  margin-top: 14px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  color: var(--ink-on-light-muted);
}

/* ---------- Waitlist counter ---------- */

.counter-card {
  position: relative;
  border: 1px solid var(--rule-light);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #FFFFFF, #FBF9F2);
  padding: 56px 48px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  box-shadow:
    0 24px 60px -30px rgba(21,23,27,0.14),
    0 0 0 1px rgba(255,255,255,0.5) inset;
  overflow: hidden;
}
.counter-card::before {
  /* dot grid behind the counter */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(21,23,27,0.06) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 65% 80% at 75% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 75% 50%, #000 0%, transparent 70%);
  pointer-events: none;
}
.counter-card::after {
  /* faint brass corner accent */
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--accent-faint) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.counter-head {
  position: absolute;
  top: 24px;
  left: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-on-light-muted);
  text-transform: uppercase;
  z-index: 1;
}
.counter-head .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), 0 0 10px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.counter-main { position: relative; z-index: 1; }
.counter-num {
  font-family: "Inter Tight", sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1;
  font-weight: 500;
  font-size: clamp(72px, 10vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink-on-light);
  display: block;
}
.counter-label {
  font-size: 15px;
  color: var(--ink-on-light-muted);
  margin-top: 12px;
  letter-spacing: -0.005em;
}
.counter-foot {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
  padding-bottom: 6px;
}
.counter-foot .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px dashed var(--rule-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.counter-foot .row:first-child { border-top: 0; padding-top: 0; }
.counter-foot .k { color: var(--ink-on-light-muted); }
.counter-foot .v { color: var(--accent-deep); font-weight: 500; }

@media (max-width: 760px) {
  .counter-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 28px 24px;
  }
  .counter-head { left: 28px; top: 22px; }
  .counter-foot .row { padding: 12px 0; }
}

/* ---------- Auth pages (signin.html) ---------- */

.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  position: relative;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  color: var(--ink-on-dark);
}
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-aurora {
  position: absolute;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 900px;
  background:
    radial-gradient(46% 60% at 50% 35%, rgba(94, 234, 212, 0.28) 0%, transparent 60%),
    radial-gradient(40% 50% at 25% 80%, rgba(125, 166, 184, 0.12) 0%, transparent 60%),
    radial-gradient(35% 45% at 78% 75%, rgba(94, 234, 212, 0.10) 0%, transparent 60%);
  filter: blur(80px);
}

.auth-nav {
  position: relative;
  z-index: 2;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.auth-nav .nav-inner { height: 72px; }
.auth-back {
  font-size: 13px;
  color: var(--ink-on-dark-muted);
  transition: color 0.15s ease;
}
.auth-back:hover { color: var(--accent); }

.auth-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px 80px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 40px 40px 36px;
  border: 1px solid var(--rule-dark);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.045), transparent 35%),
    var(--bg-dark-2);
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.5),
    0 0 100px -40px var(--accent-glow),
    0 0 0 1px rgba(255,255,255,0.025) inset;
  position: relative;
}
.auth-card::before {
  /* corner brackets */
  content: "";
  position: absolute;
  top: 12px; left: 12px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.auth-card::after {
  content: "";
  position: absolute;
  bottom: 12px; right: 12px;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.auth-eyebrow .auth-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), 0 0 8px var(--accent-glow);
  animation: pulse 2.6s ease-in-out infinite;
}
.auth-title {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink-on-dark);
}
.auth-title .serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-on-dark);
}
.auth-lead {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-on-dark-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid var(--rule-dark);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.auth-tabs button {
  background: transparent;
  border: 0;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--ink-on-dark-muted);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  transition: color 0.18s ease;
}
.auth-tabs button.active { color: var(--ink-on-dark); }
.auth-tabs button:hover:not(.active) { color: var(--ink-on-dark); }
.auth-tabs-indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  transition: transform 0.22s ease;
  z-index: 0;
}
.auth-tabs-indicator.right { transform: translateX(calc(100% + 0px)); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-substep {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-on-dark);
  letter-spacing: -0.01em;
  margin: -4px 0 0;
}
.auth-help {
  margin: -6px 0 4px;
  font-size: 13.5px;
  color: var(--ink-on-dark-muted);
  line-height: 1.55;
}
.auth-help .mono {
  color: var(--ink-on-dark);
  background: rgba(94, 234, 212, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Dark form field variant */
.dark-field label {
  color: var(--ink-on-dark-muted);
}
.dark-field input, .dark-field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rule-dark);
  color: var(--ink-on-dark);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.dark-field input::placeholder, .dark-field textarea::placeholder {
  color: var(--ink-on-dark-faint);
}
.dark-field input:focus, .dark-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-faint);
  background: rgba(255,255,255,0.045);
  outline: none;
}
.dark-field .hint { color: var(--ink-on-dark-faint); font-size: 12.5px; }
.dark-field .err  { color: #FFAB97; font-size: 12.5px; }
.dark-field label .opt {
  color: var(--ink-on-dark-faint);
  margin-left: 6px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.dark-field.error input { border-color: rgba(255, 138, 119, 0.5); }

.auth-error {
  padding: 10px 14px;
  border: 1px solid rgba(255, 138, 119, 0.35);
  background: rgba(255, 138, 119, 0.08);
  color: #FFC0B3;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.auth-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.auth-actions .btn-ghost { flex-shrink: 0; }
.auth-actions .btn-primary { flex: 1; justify-content: center; }

.auth-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-on-dark-muted);
}
.auth-meta.center { justify-content: center; }
.auth-meta .link,
.auth-meta button.link {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.auth-meta .link:hover { color: var(--accent-soft); }
.auth-meta .link:disabled { color: var(--ink-on-dark-faint); cursor: default; }
.auth-meta .muted { color: var(--ink-on-dark-muted); }

.auth-divider {
  position: relative;
  text-align: center;
  margin: 8px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-on-dark-faint);
}
.auth-divider::before, .auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 28px);
  height: 1px;
  background: var(--rule-dark);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { padding: 0 12px; }

.step-dots {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.step-dots .dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--rule-dark);
  transition: all 0.2s ease;
}
.step-dot.done {
  background: var(--accent);
  border-color: var(--accent);
}
.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), 0 0 10px var(--accent-glow);
}
.step-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-faint);
}

.auth-result { text-align: left; }
.auth-result-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.auth-result-meta .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), 0 0 8px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.auth-result h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 14px;
  line-height: 1.18;
}
.auth-result p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-on-dark-muted);
}
.auth-result p .mono {
  background: rgba(94, 234, 212, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink-on-dark);
}
.auth-result p.muted { color: var(--ink-on-dark-faint); font-size: 14px; }
.auth-result .btn { margin-top: 18px; width: 100%; justify-content: center; }

.loader {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 18px;
}
.loader::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loader-slide 1.4s ease-in-out infinite;
}
@keyframes loader-slide {
  0%   { left: -30%; }
  100% { left: 100%; }
}

.auth-foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-on-dark-faint);
  text-align: center;
}
.auth-foot a {
  color: var(--ink-on-dark-muted);
}
.auth-foot a:hover { color: var(--accent); }

@media (max-width: 520px) {
  .auth-card { padding: 32px 24px 28px; }
  .auth-row-2 { grid-template-columns: 1fr; }
  .auth-title { font-size: 30px; }
}

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

.footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark-muted);
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule-dark);
}
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
}
.footer .legal { max-width: 56ch; }
.footer .links { display: flex; gap: 24px; }
.footer .links a:hover { color: var(--ink-on-dark); }

/* ---------- Misc bits ---------- */

.kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  color: var(--ink-on-dark-muted);
}

.ascii-org {
  font-family: "JetBrains Mono", monospace;
  white-space: pre;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-on-dark-muted);
  border: 1px solid var(--rule-dark);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  background: rgba(255,255,255,0.012);
}

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

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero-visual::before, .hero-visual::after { display: none; }
  .phone { margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rule-light); padding: 28px 0; }
  .step:nth-child(n+2) { padding-left: 0; }
  .step:last-child { border-bottom: 0; }
  .org-depts { grid-template-columns: 1fr; }
  .org-depts::before { display: none; }
  .dept::before { display: none; }
  .examples-grid { grid-template-columns: 1fr; }
  .example-card, .example-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .privacy-grid, .tech-grid, .waitlist-inner { grid-template-columns: 1fr; gap: 40px; }
  .waitlist-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-light); padding-top: 32px; }
  .nav-links { display: none; }
  .hero-rule { grid-template-columns: 1fr 1fr; }
  .hero-rule .cell:nth-child(2) { border-right: 0; }
  .hero-rule .cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule-dark); }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero h1 { font-size: 44px; }
  .privacy-lead { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- The App · interactive demo section ---------- */

.app-section h2 { margin-bottom: 18px; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-dark-2);
  border: 1px solid var(--rule-dark);
  border-radius: var(--shell-radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.app-card:hover {
  border-color: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -28px var(--accent-glow);
}

.app-card-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(94,234,212,0.06) 0%, transparent 70%),
    var(--bg-dark);
  border-bottom: 1px solid var(--rule-dark);
  overflow: hidden;
  pointer-events: none;
}

.app-card-frame iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 900px;
  border: 0;
  transform: translate(-50%, -50%) scale(0.42);
  transform-origin: center center;
  pointer-events: none;
}

/* iOS / Android cards: portrait aspect, scale phone canvas tighter */
.app-card:nth-child(1) .app-card-frame iframe,
.app-card:nth-child(2) .app-card-frame iframe {
  width: 480px;
  height: 900px;
  transform: translate(-50%, -50%) scale(0.60);
}

.app-card-meta {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-card-meta h4 {
  font-family: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-on-dark);
}

.app-card-meta p {
  margin: 0;
  color: var(--ink-on-dark-muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.app-open {
  margin-top: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.app-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--rule-dark);
}

.app-foot-item p {
  margin: 8px 0 0;
  color: var(--ink-on-dark-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.app-foot-item a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-faint);
}

.app-launcher-link {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 960px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-foot { grid-template-columns: 1fr; gap: 24px; }
  .app-card:nth-child(1) .app-card-frame iframe,
  .app-card:nth-child(2) .app-card-frame iframe {
    transform: translate(-50%, -50%) scale(0.55);
  }
}
