/* Statsmatics — shared styles */
:root {
  --bg: #f7f5f0;
  --bg-2: #efece4;
  --ink: #14140f;
  --ink-2: #2a2a22;
  --muted: #4f4e44;
  --line: #d9d5c8;
  --accent: oklch(0.62 0.13 175);
  --accent-ink: oklch(0.32 0.08 175);
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(20,20,15,0.04), 0 8px 24px rgba(20,20,15,0.06);
  --shadow-2: 0 4px 12px rgba(20,20,15,0.08), 0 24px 64px rgba(20,20,15,0.14);
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", monospace;
}

[data-theme="dark"] {
  --bg: #0f0f0c;
  --bg-2: #1a1a14;
  --ink: #f1ede2;
  --ink-2: #d6d2c4;
  --muted: #8a8676;
  --line: #2a2a22;
  --accent: oklch(0.72 0.13 175);
  --accent-ink: oklch(0.82 0.10 175);
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.5);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.5), 0 24px 64px rgba(0,0,0,0.7);
}

html { color-scheme: light; transition: background-color 240ms ease; }
[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 520px at 88% -10%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%),
    radial-gradient(700px 460px at -10% 30%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }

html { scroll-behavior: smooth; }

/* Disable all transitions during a theme swap so var()-bound properties snap
   to the new palette instead of sticking mid-transition. */
.theme-switching, .theme-switching * { transition: none !important; }

/* Keyboard focus ring — accent, only for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Scroll-reveal (classes added by JS; no-JS leaves content visible) ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms cubic-bezier(0.2, 0.7, 0.1, 1),
              transform 720ms cubic-bezier(0.2, 0.7, 0.1, 1);
  /* Note: deliberately no `will-change: transform` — it creates a containing
     block for position:fixed descendants and would break the video modal's
     viewport-cover backdrop, leaving the modal positioned inside the section. */
}
.reveal.reveal-in { opacity: 1; transform: none; }
.reveal .reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(0.2, 0.7, 0.1, 1),
              transform 620ms cubic-bezier(0.2, 0.7, 0.1, 1);
  transition-delay: var(--rd, 0ms);
}
.reveal.reveal-in .reveal-child { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal .reveal-child { opacity: 1; transform: none; transition: none; }
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  background: var(--bg);
}
.brand-mark::before { left: 5px; top: 11px; width: 3px; height: 6px; }
.brand-mark::after  { left: 10px; top: 7px; width: 3px; height: 10px; }
.brand-mark span { position: absolute; left: 15px; top: 9px; width: 3px; height: 8px; background: var(--accent); display: block; }
.brand-name em { font-style: normal; color: var(--accent-ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto 0 12px;
  padding: 0;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-link:hover { background: var(--bg-2); }
.nav-link.active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ink) 35%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Mobile nav: two-row editorial layout */
@media (max-width: 720px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 0;
    padding: 12px 18px;
  }
  .brand { order: 1; }
  .nav-actions { order: 2; margin-left: auto; }
  .nav-links {
    order: 3;
    width: 100%;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    justify-content: center;
    gap: 6px;
  }
  .contact-pop {
    max-width: calc(100vw - 36px);
  }
}

.nav-cta {
  font-size: 14px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.nav-cta { transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Theme toggle button */
.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 220ms ease;
}
.theme-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.theme-btn:active { transform: scale(0.94); }
.theme-btn svg { display: block; }

/* ---- Page shell ---- */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

.hero {
  padding: 92px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* Homepage hero: single column of copy over a revolving scatter cloud */
.hero--home {
  display: block;
  position: relative;
  overflow: hidden;
}
.hero-scatter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }

/* Single page-wide revolving scatter background (fixed, behind all content) */
.page-fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
/* (legacy per-section background — no longer used) */
.page > section { position: relative; }
.section-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-lede {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .hero-lede { grid-template-columns: 1fr; gap: 18px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 22px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 8px;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.stat-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.stat-card .value {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1;
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.stat-card .delta {
  font-size: 12.5px;
  color: var(--accent-ink);
  margin-top: 6px;
}

/* ---- Section header ---- */
.section-head {
  display: block;
  padding-top: 36px;
  margin-top: 64px;
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}
.section-head h2 em,
.hero h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent-ink), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Tight line-height clips the gradient box; vertical padding lets the
     fill cover italic descenders/glyph ink so nothing looks cut off. */
  padding-block: 0.16em;
  padding-inline: 0.04em;
  margin-inline: -0.04em;
}
.section-head .lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 15.5px;
  text-wrap: pretty;
  margin: 14px 0 0;
}

/* ---- Product grid ---- */
.product-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .product-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---- Video card (thumbnail) ---- */
.vcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 360ms ease;
  transform-origin: center;
  aspect-ratio: 16 / 10;
  will-change: transform;
}
.vcard.hovered {
  transform: scale(1.025);
  box-shadow: var(--shadow-2);
}
.vcard video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.vcard .vcard-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.vcard .vcard-corner {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 8px;
}
.vcard .vcard-corner::before { display: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.vcard .vcard-play {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: grid; place-items: center;
  transition: transform 200ms ease, background 200ms ease;
}
.vcard.hovered .vcard-play { transform: scale(1.08); background: #fff; }
.vcard .vcard-corner.no-dot::before { display: none; }
.vcard.datalens-card {
  background:
    radial-gradient(120% 80% at 80% 10%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%),
    radial-gradient(80% 70% at 10% 90%, color-mix(in srgb, var(--accent-ink) 50%, transparent), transparent 65%),
    linear-gradient(135deg, #14140f 0%, #2a2a22 100%);
}
.vcard.datalens-card::after {
  content: "DataLens";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f3f0e6;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 56px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 22px color-mix(in srgb, var(--accent) 35%, transparent);
}

.vcard .vcard-play svg { width: 16px; height: 16px; fill: #14140f; transform: translateX(1px); }

.vcaption {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.vcaption h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  transition: color 200ms ease;
}
.vcaption.hovered h3 { color: var(--accent-ink); }
.vcaption p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
}
.vcaption .arrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: transform 240ms ease, color 200ms ease;
}
.vcaption.hovered .arrow { transform: translateX(4px); color: var(--accent-ink); }

.vcaption-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.live-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.live-link:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14.5px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}
.hero-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--bg);
}
.hero-cta:active { transform: translateY(0) scale(0.98); }
.nav-cta:active, .live-link:active { transform: scale(0.97); }

/* ---- Modal player ---- */
.vmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, 0.82);
  z-index: 100;
  display: grid;
  place-items: center;
  justify-items: center;
  padding: 28px;
  animation: fade-in 200ms ease forwards;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.vmodal {
  width: min(1200px, 100%);
  margin: auto;
  background: #0b0b09;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: rise 260ms cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
}
@keyframes rise {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.vmodal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.vmodal-stage video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}

/* Fullscreen: modal fills the viewport, video letterboxes, controls pin to bottom */
.vmodal:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  animation: none;
  justify-content: center;
}
.vmodal:fullscreen .vmodal-stage {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}
.vmodal:fullscreen .vmodal-stage video {
  object-fit: contain;
}
.vmodal-stage video::cue {
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.3;
}

.vmodal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  z-index: 4;
  transition: background 160ms ease;
}
.vmodal-close:hover { background: rgba(255,255,255,0.22); }

/* Controls bar */
.vctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #0b0b09;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #efece4;
}
.vctrl-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #efece4;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 160ms ease, border-color 160ms ease;
}
.vctrl-btn:hover { background: rgba(255,255,255,0.16); }
.vctrl-btn.active {
  background: var(--accent);
  color: #0b0b09;
  border-color: transparent;
}
.vctrl-btn svg { width: 14px; height: 14px; }
.vctrl-icon-btn {
  width: 38px; height: 38px;
  padding: 0;
  display: grid; place-items: center;
}

.vctrl-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}
.vctrl-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(239,236,228,0.75);
  white-space: nowrap;
}
.vctrl-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.vctrl-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  border-radius: 999px;
}
.vctrl-bar-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

.vctrl-volume {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vctrl-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--vol-pct, 100%),
    rgba(255,255,255,0.14) var(--vol-pct, 100%),
    rgba(255,255,255,0.14) 100%
  );
  outline: none;
  cursor: pointer;
}
.vctrl-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
  cursor: pointer;
}
.vctrl-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
  cursor: pointer;
}

.vctrl-speed {
  position: relative;
}
.vctrl-speed-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: #181814;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}
.vctrl-speed-menu button {
  text-align: left;
  background: transparent;
  border: none;
  color: #efece4;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.vctrl-speed-menu button:hover { background: rgba(255,255,255,0.08); }
.vctrl-speed-menu button.active {
  background: var(--accent);
  color: #0b0b09;
}

/* Mobile: stack the controls so they don't overflow a narrow screen */
@media (max-width: 640px) {
  .vctrl {
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 10px;
    justify-content: space-between;
  }
  /* Scrub bar takes its own full-width row on top; buttons wrap below */
  .vctrl-progress {
    order: -1;
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  /* Never let buttons crush below their natural size */
  .vctrl-btn { flex: 0 0 auto; }
  /* Volume slider is hidden on touch (use the mute toggle); saves ~90px */
  .vctrl-volume-slider { display: none; }
}

/* ---- Sub-pages: tennis & datalens content ---- */
.lede-block {
  max-width: 720px;
  font-size: 17.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.lede-block + .lede-block { margin-top: 18px; }

.about-grid .lede-block {
  font-size: 15px;
  line-height: 1.65;
}
.about-grid .lede-block + .lede-block { margin-top: 14px; }

.how-grid .lede-block {
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 60ch;
  color: var(--muted);
}
.how-grid .lede-block + .lede-block { margin-top: 14px; }

.subgrid {
  display: block;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.subgrid .meta {
  display: block;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 960px) { .feature-list { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr !important; } }
.feature-list li {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 92%, var(--bg-2));
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 300ms ease, border-color 300ms ease;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 35%);
  opacity: 0;
  transition: opacity 300ms ease;
}
.feature-list li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--shadow-2);
}
.feature-list li:hover::before { opacity: 1; }
.feature-list li h4, .feature-list li p { position: relative; }
.feature-list h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
}
.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* footer */
.footer {
  margin-top: 72px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.footer-contact-name {
  color: var(--ink);
  font-weight: 500;
}
.footer-contact a {
  color: var(--ink-2);
  transition: color 160ms ease;
}
.footer-contact a:hover { color: var(--accent-ink); }
.footer-contact-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: baseline;
  margin-top: 2px;
}
.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-address-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-address {
  text-align: right;
  line-height: 1.55;
  max-width: 460px;
}
@media (max-width: 720px) {
  .footer { flex-direction: column; }
  .footer-address-block { align-items: flex-start; }
  .footer-address { text-align: left; max-width: none; }
}

/* ---- Contact popover (Navbar) ---- */
.contact-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 240px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: pop-in 180ms cubic-bezier(0.2, 0.7, 0.1, 1);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.contact-pop-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-pop-name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.contact-pop-line {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 160ms ease;
}
.contact-pop-line:hover { color: var(--accent-ink); }
.contact-pop-address {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.contact-pop-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: baseline;
  margin-top: 4px;
}
.contact-pop-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
