/* ==========================================================================
   DYVR — Shared Design System
   Warm minimalist "ink on washi paper" aesthetic. No gradients, no shadows,
   no rounded corners. Thin 1px rules, generous whitespace, voxel accents.
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Theme Tokens ─────────────────────────────────────────────────────── */
:root,
html[data-theme="light"] {
  --bg: #f6f3ee;             /* soft warm washi cream */
  --bg-surface: #eae0d5;     /* muted wheat */
  --bg-raised: #efeae2;      /* subtle raised cream for hover fills */
  --text: #1b1918;           /* deep charcoal ink */
  --text-muted: #5e5650;     /* slate stone grey */
  --text-faint: #8a817a;     /* faint pencil grey */
  --border: #1b1918;         /* strong ink strokes */
  --border-light: #c2bbb0;   /* delicate graphite pencil */
  --divider: #e2ded8;        /* thin sand divider */
  --accent: #705746;         /* clay terracotta */

  --voxel-top: #eae0d5;
  --voxel-front: #705746;
  --voxel-side: #5e5650;
  --voxel-stroke: #1b1918;

  --header-bg: rgba(246, 243, 238, 0.82);
  --selection: rgba(112, 87, 70, 0.16);
}

html[data-theme="dark"] {
  --bg: #111012;             /* soft charcoal coal */
  --bg-surface: #242226;     /* soft soot black */
  --bg-raised: #1b191b;
  --text: #eae4de;           /* raw silk off-white */
  --text-muted: #968e86;     /* stone warm grey */
  --text-faint: #6d655f;
  --border: #eae4de;         /* white ink strokes */
  --border-light: #524b44;   /* soft charcoal lines */
  --divider: #242226;
  --accent: #ac9480;         /* sandstone */

  --voxel-top: #eae4de;
  --voxel-front: #ac9480;
  --voxel-side: #524b44;
  --voxel-stroke: #eae4de;

  --header-bg: rgba(17, 16, 18, 0.82);
  --selection: rgba(172, 148, 128, 0.22);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection {
  background: var(--selection);
}

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

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

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--border);
  color: var(--bg);
  padding: 10px 18px;
  z-index: 999;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ── Layout primitives ────────────────────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
  width: 100%;
}

main {
  flex: 1;
  width: 100%;
}

.section {
  padding: clamp(56px, 9vw, 96px) 0;
  border-top: 1px solid var(--divider);
}

.section--first {
  border-top: none;
}

/* ── Typography ───────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--border);
}

.h1 {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: clamp(3rem, 9vw, 6.5rem);
}

.h2 {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
}

.h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 1.3rem;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 60ch;
}

.prose {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.prose strong { color: var(--text); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--border);
  border: 1.5px solid var(--border);
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.18s ease, color 0.18s ease, letter-spacing 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn .arrow {
  transition: transform 0.18s ease;
}
.btn:hover {
  background: var(--bg);
  color: var(--border);
  letter-spacing: 0.12em;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn-secondary:hover {
  background: var(--bg-raised);
  border-color: var(--border);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s ease, border-color 0.18s ease, letter-spacing 0.18s ease;
}
.btn-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  letter-spacing: 0.1em;
}
.btn-link .arrow { transition: transform 0.18s ease; }
.btn-link:hover .arrow { transform: translateX(4px); }

/* ── Header / Nav ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav-logo a { display: inline-block; }
.nav-logo a:hover { opacity: 0.7; }

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
  position: relative;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-radius: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-light); }

.nav-toggle {
  display: flex;
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}
.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav a small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mobile-nav .mobile-nav-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 7vw, 80px);
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-tagline {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.voxel-stage {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.voxel-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(40px, 6vw, 72px);
  }
}

/* ── Live status strip ────────────────────────────────────────────────── */
.live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

/* ── Section headers ──────────────────────────────────────────────────── */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.section-head .sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Product / ecosystem cards ────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px 30px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--divider);
  overflow: hidden;
  transition: background-color 0.25s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--pc-accent, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover {
  background: var(--bg-raised);
}
.product-card:hover::before { transform: scaleX(1); }

.product-visual {
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
}
.product-visual svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-visual svg { transform: translateY(-4px); }

.product-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-kicker .status {
  color: var(--pc-accent, var(--accent));
}
.product-kicker .status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--pc-accent, var(--accent));
  margin-right: 6px;
  vertical-align: middle;
}

.product-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.product-cta {
  margin-top: 4px;
}

/* ── Feature / split layout ───────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 992px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  border-left: 1px solid var(--border-light);
  padding-left: 24px;
}
.bullet-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.bullet-list li strong { color: var(--text); }

/* ── Utility items ($DEEP etc.) ───────────────────────────────────────── */
.utility-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.utility-item {
  display: flex;
  gap: 14px;
}
.utility-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.utility-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.utility-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
/* Tablet keeps 2 columns; 5-up only when there is room. */
@media (min-width: 992px) {
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
}

.stat-card {
  padding: 22px 20px 24px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 128px;
}
.stat-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-value.loading { opacity: 0.35; }
.stat-badge {
  align-self: flex-start;
  padding: 2px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
  color: var(--text-muted);
  text-transform: uppercase;
  border: 1px solid var(--border-light);
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-list {
  border-top: 1px solid var(--border);
  max-width: 860px;
}
.faq-item {
  border-bottom: 1px solid var(--divider);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .faq-body {
  padding: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 70ch;
}

/* Big screens: the FAQ flows into balanced columns instead of one
   narrow strip. Items stay intact; opening one reflows the columns. */
@media (min-width: 1100px) {
  .faq-list {
    max-width: none;
    column-count: 2;
    column-gap: clamp(48px, 6vw, 96px);
  }
}
/* TV / ultrawide: three columns */
@media (min-width: 2560px) {
  .faq-list { column-count: 3; }
}

/* ── Community / CTA ──────────────────────────────────────────────────── */
.community {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.community .lead { margin: 0 auto; }
.community-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .wordmark { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.04em; color: var(--text); text-transform: none; }
.footer-brand p { max-width: 34ch; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; text-align: left; }
}

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal-sheet {
  background: var(--bg);
  border: 1.5px solid var(--border);
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 0;
}
.modal-backdrop.open .modal-sheet { transform: translateY(0); }
.modal-sheet h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-sheet p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.modal-handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-surface);
  padding: 14px 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: all;
  text-decoration: none;
  display: block;
}
.modal-handle:hover { background: var(--border); color: var(--bg); }
.modal-close {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  padding: 9px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-close:hover { border-color: var(--border); color: var(--text); }

@media (min-width: 768px) {
  .modal-backdrop { align-items: center; }
  .modal-sheet {
    transform: translateY(30px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .modal-backdrop.open .modal-sheet { transform: translateY(0) scale(1); }
}

/* ── About / sub-page hero ────────────────────────────────────────────── */
.sub-hero {
  padding-top: clamp(40px, 7vw, 72px);
  padding-bottom: clamp(28px, 5vw, 48px);
  border-top: 1px solid var(--divider);
}
.sub-hero .h1 { margin: 14px 0 0; }
.sub-hero .lead { margin-top: 18px; }

.crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.crumb a:hover { color: var(--text); }

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}
.data-table th, .data-table td {
  padding: 14px 18px 14px 0;
  text-align: left;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.data-table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
}
.data-table tr:last-child td { border-bottom: 1px solid var(--border); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Spec cards */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}
@media (min-width: 720px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}
.spec-card {
  border: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 0;
}
.spec-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.spec-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ── Incubated projects (Quill) ─────────────────────────────────────── */
/* Distinct from the four core products: serif wordmark, feather mark,
   framed band instead of a voxel card. */

.quill-serif {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.incubated-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--border-light);
  padding: clamp(26px, 4vw, 44px);
}
@media (min-width: 768px) {
  .incubated-band {
    grid-template-columns: minmax(240px, 0.85fr) 1.15fr;
    gap: clamp(32px, 5vw, 64px);
  }
}

.quill-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.quill-feather {
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  color: var(--text);
  flex-shrink: 0;
}
.quill-brand .quill-word {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
}
.quill-brand .quill-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

.incubated-kicker {
  color: var(--accent);
}

/* ── Grid edge cleanup — no stray right border at container edges ────── */
@media (max-width: 719px) {
  .product-card { border-right: none; }
}
@media (min-width: 720px) and (max-width: 991px) {
  .products-grid .product-card:nth-child(2n) { border-right: none; }
}
@media (min-width: 992px) {
  .products-grid .product-card:nth-child(4n) { border-right: none; }
}
@media (max-width: 991px) {
  .stats-grid .stat-card:nth-child(2n) { border-right: none; }
}
@media (min-width: 992px) {
  .stats-grid .stat-card:nth-child(5n) { border-right: none; }
}

/* ── Reveal-on-scroll (subtle, respects reduced motion) ──────────────── */
/* Scoped to html.js so content is never hidden from no-JS users/crawlers. */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Large screens: bigger gutters, wider canvas ─────────────────────── */
@media (min-width: 1600px) {
  .wrap { max-width: 1400px; }
}
/* TV / 1440p+: scale type up a touch and widen the canvas */
@media (min-width: 2560px) {
  html { font-size: 19px; }
  .wrap { max-width: 1600px; }
}
/* 4K TVs & ultrawide (3000px+) */
@media (min-width: 3840px) {
  html { font-size: 20px; }
  .wrap { max-width: 1800px; }
}

/* ── Touch devices: larger hit targets ───────────────────────────────── */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
}
