/* ==========================================================================
   PolyMetric Suite: Industrial Dark Mode stylesheet
   Same tokens as polymetricfab.com (colors, fonts, radii), with one spacing
   scale: slim sticky nav, centered hero with one big screenshot, tabbed product
   showcase, gallery grid, pricing cards, FAQ, licensing and legal pages.
   ========================================================================== */

/* Self-hosted (assets/fonts, SIL Open Font License: see OFL.txt there). No font CDN. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #0D1015;
  --bg-alt: #121417;
  --surface: #181C23;
  --surface-2: #1E232C;
  --line: #2A313D;
  --line-strong: #3A4352;
  --text: #E7EBF0;
  --text-soft: #C3CAD5;
  --muted: #9AA3B2;
  --dim: #6B7483;
  --dim-text: #8A93A3;       /* --dim lifted to pass AA on these backgrounds, for small text */

  --cyan: #00A8E8;
  --cyan-deep: #0284C7;
  --cyan-tint: rgba(0, 168, 232, 0.12);
  --amber: #F59E0B;
  --amber-tint: rgba(245, 158, 11, 0.12);
  --green: #22C55E;
  --green-tint: rgba(34, 197, 94, 0.12);
  --red: #F87171;
  --red-tint: rgba(248, 113, 113, 0.12);

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-xs: 4px;

  /* The spacing scale: every gap and padding below comes from here. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --section-y: clamp(var(--space-8), 10vw, var(--space-10));

  --container: 1200px;
  --gutter: var(--space-5);
  --header-h: 64px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #38BDF8; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
figure { margin: 0; min-width: 0; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: rgba(0, 168, 232, 0.35); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4); top: -60px;
  z-index: 200;
  padding: 10px var(--space-4);
  background: var(--cyan);
  color: #04131c;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); color: #04131c; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }

.placeholder {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--amber);
  background: var(--amber-tint);
  border: 1px dashed rgba(245, 158, 11, 0.55);
  border-radius: var(--radius-xs);
  padding: 1px 6px;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 46px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--cyan); color: #03121B; }
.btn-primary:hover { background: #22B8F0; color: #03121B; box-shadow: 0 8px 28px rgba(0, 168, 232, 0.32); }
.btn-primary:active { background: var(--cyan-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--cyan); color: var(--text); }
.btn-lg { min-height: 54px; padding: 0 var(--space-6); font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header: one slim sticky bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 21, 0.86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.navbar { position: relative; }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}
.brand:hover { color: var(--text); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; mix-blend-mode: lighten; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-display); font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-3);
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.925rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav-links .nav-cta { margin-left: var(--space-3); }
.nav-links .nav-cta a {
  background: var(--cyan);
  color: #03121B;
  font-weight: 600;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
}
.nav-links .nav-cta a:hover { background: #22B8F0; color: #03121B; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.notice-bar {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%);
  z-index: 150;
  width: min(560px, calc(100vw - var(--space-6)));
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Window frame: most screenshots sit in one of these
   ========================================================================== */
.window {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 var(--space-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.window-bar i:first-child { background: rgba(0, 168, 232, 0.65); }
.window-title {
  margin-left: var(--space-2);
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window img { width: 100%; }
.window-link { display: block; cursor: zoom-in; }
.window-link:focus-visible { outline-offset: -3px; }

figcaption { margin-top: var(--space-3); color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-9) 0 var(--space-8);
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(42, 49, 61, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 49, 61, 0.45) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 12%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 12%, #000 15%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.hero h1 {
  max-width: 14em;
  margin: 0 auto;
  font-size: clamp(2.4rem, 6.4vw, 4.75rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 46ch;
  margin: var(--space-5) auto 0;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-soft);
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-facts li::before { content: ""; width: 7px; height: 7px; background: var(--cyan); border-radius: 1px; flex: none; }

.hero-shot { position: relative; margin-top: var(--space-8); }
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 4% 8% 16%;
  background: radial-gradient(closest-side, rgba(0, 168, 232, 0.28), transparent);
  filter: blur(36px);
  pointer-events: none;
}
.hero-shot .window { position: relative; }
.hero-shot figcaption { position: relative; margin-top: var(--space-4); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto var(--space-7); text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-head p { margin-top: var(--space-4); color: var(--text-soft); font-size: 1.1rem; text-wrap: pretty; }

/* ---------- Product showcase: segmented tabs ---------- */
.tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-6);
  padding: var(--space-1);
  gap: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tab {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0 var(--space-6);
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--cyan); color: #03121B; }

.tab-panel + .tab-panel { margin-top: var(--space-8); }   /* no JavaScript: all three, stacked */
.panel-head { max-width: 680px; margin: 0 auto var(--space-5); text-align: center; }
.app-tag {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.panel-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
  list-style: none;
}
.benefits li { padding-top: var(--space-3); border-top: 2px solid var(--line-strong); color: var(--muted); font-size: 0.925rem; line-height: 1.5; }
.benefits strong { display: block; margin-bottom: var(--space-1); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.panel-note { margin-top: var(--space-5); padding-left: var(--space-3); border-left: 3px solid var(--amber); color: var(--muted); font-size: 0.875rem; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  list-style: none;
  counter-reset: step;
}
.step {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  counter-increment: step;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}
.step h3 { font-size: 1.3rem; font-weight: 600; }
.step p { margin-top: var(--space-2); color: var(--text-soft); font-size: 0.95rem; }
.step:hover { border-color: var(--line-strong); }

/* ---------- Demo videos (self-hosted MP4, assets/video/) ---------- */
.demo-section { padding-top: var(--space-7); }
.demo-video { max-width: 1040px; margin: 0 auto; }
.demo-video-inspect { max-width: 860px; margin-bottom: var(--space-7); }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.demo-video figcaption { text-align: center; }
.hero-watch { margin-top: var(--space-4); font-size: 0.95rem; text-align: center; }
.hero-watch a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.hero-watch a:hover { text-decoration: underline; }
/* Older JS-driven slot (config.js demoVideoUrl), no longer used on index.html */
.video-slot { max-width: 860px; margin: 0 auto var(--space-7); }
.video-slot video { display: block; width: 100%; aspect-ratio: 16 / 10; background: #000; }

/* ---------- Gallery grid ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  list-style: none;
}
.thumb {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
  transition: border-color 0.15s var(--ease), transform 0.2s var(--ease);
}
.thumb:hover { border-color: var(--cyan); color: inherit; }
.thumb:focus-visible { outline-offset: -2px; }
.thumb-frame { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.thumb-frame.is-paper { background: #fff; }
.thumb-frame img { width: 100%; }
.thumb-label {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.price-card:hover { border-color: var(--line-strong); }
.price-card.is-featured {
  border-color: var(--cyan);
  background: linear-gradient(180deg, var(--cyan-tint), transparent 55%), var(--surface);
  box-shadow: 0 0 60px rgba(0, 168, 232, 0.14);
}
.price-card h3 { font-size: 1.15rem; font-weight: 600; }
.price {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.is-featured .price { color: var(--amber); }
.price-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-top: var(--space-1); color: var(--muted); font-size: 0.875rem; }
.price-save {
  padding: 1px var(--space-2);
  border-radius: var(--radius-xs);
  background: var(--green-tint);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.price-for { margin-top: var(--space-4); color: var(--text-soft); font-size: 0.925rem; line-height: 1.5; }
.price-actions { margin-top: auto; padding-top: var(--space-5); }

.pricing-line {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
  list-style: none;
  color: var(--muted);
  font-size: 0.925rem;
}
.pricing-line li { padding-top: var(--space-3); border-top: 2px solid var(--line-strong); }
.pricing-line strong { display: block; margin-bottom: var(--space-1); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.pricing-foot { margin-top: var(--space-5); text-align: center; color: var(--muted); font-size: 0.925rem; }
.pricing-foot strong { color: var(--text-soft); font-weight: 600; }
.more-link { font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--space-2); max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.025rem;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s var(--ease);
  flex: none;
}
.faq-item summary:hover { color: var(--cyan); }
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item .faq-body { padding: 0 var(--space-5) var(--space-5); color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-7);
  background: linear-gradient(120deg, var(--cyan-tint), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.contact-card h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.contact-card > div > p:not(.contact-line) { margin-top: var(--space-3); color: var(--text-soft); }
.contact-line { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-3); font-size: 0.975rem; color: var(--text-soft); }
.contact-line:first-child { margin-top: 0; }
.contact-line svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.contact-line a { color: var(--text); text-decoration: none; word-break: break-word; }
.contact-line a:hover { color: var(--cyan); }
.contact-label { color: var(--muted); font-size: 0.9rem; min-width: 72px; }

/* ---------- Licensing & fees page ---------- */
.page-head { padding: var(--space-8) 0 var(--space-2); text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
.page-head p { max-width: 62ch; margin: var(--space-4) auto 0; color: var(--text-soft); font-size: 1.1rem; text-wrap: pretty; }
.fee-section { padding: var(--space-7) 0 0; }
.fee-section:last-of-type { padding-bottom: var(--space-9); }
.fee-section h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; }
.fee-section > .container > p { max-width: 74ch; margin-top: var(--space-3); color: var(--text-soft); }
.fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-5); align-items: start; }
.fee-panel { padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.fee-panel h3 { font-size: 1.1rem; font-weight: 600; }
.fee-panel > p { margin-top: var(--space-2); color: var(--muted); font-size: 0.925rem; }
.fee-panel > p strong { color: var(--text); font-weight: 600; }
.rate-table { margin: var(--space-3) 0 0; display: grid; }
.rate-table > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}
.rate-table dt { color: var(--text-soft); font-size: 0.925rem; line-height: 1.4; }
.rate-table dd { margin: 0; font-family: var(--font-mono); font-weight: 600; color: var(--text); white-space: nowrap; }
.terms { display: grid; gap: var(--space-3); margin-top: var(--space-4); padding-left: var(--space-5); color: var(--text-soft); font-size: 0.95rem; }
.terms strong { color: var(--text); font-weight: 600; }

/* Shop pack quote form (shop-pack-quote.html) */
.quote-form { max-width: 760px; margin-top: var(--space-5); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: var(--space-5); }
.quote-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.quote-form label { display: grid; gap: var(--space-2); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.quote-form .lbl { display: block; }
.quote-form .req, .quote-form .opt { margin-left: var(--space-1); font-weight: 400; font-size: 0.82rem; color: var(--dim-text); }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; min-height: 44px; padding: var(--space-2) var(--space-3); font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.quote-form textarea { min-height: 88px; resize: vertical; }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.quote-form [aria-invalid="true"] { border-color: var(--red); background: var(--red-tint); }
.quote-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.quote-form legend { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: var(--space-2); }
.quote-form .code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.quote-form .code-field input { font-family: var(--font-mono); font-size: 0.85rem; }
.quote-form .hint, .fee-section .hint { color: var(--muted); font-size: 0.9rem; max-width: 74ch; }
.quote-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.quote-form .form-privacy { color: var(--muted); font-size: 0.88rem; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--cyan); background: var(--cyan-tint); border-radius: var(--radius-xs); }
.quote-form .turnstile-box:empty { display: none; }
.form-result { padding: var(--space-4) var(--space-5); border-radius: var(--radius); border: 1px solid var(--line-strong); }
.form-result.is-ok { border-color: var(--green); background: var(--green-tint); }
.form-result.is-error { border-color: var(--red); background: var(--red-tint); }
.form-result ul { padding-left: var(--space-5); margin-top: var(--space-2); }
.form-result-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
@media (max-width: 640px) { .quote-form { padding: var(--space-4); } .quote-form .form-grid { grid-template-columns: 1fr; } }
.terms .mono { overflow-wrap: anywhere; }   /* the long data folder path must not push a phone screen sideways */
.shot-pair { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-5); margin-top: var(--space-5); align-items: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: var(--space-8) 0 var(--space-6); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
}
.footer-brand p { margin-top: var(--space-4); color: var(--muted); font-size: 0.925rem; max-width: 42ch; }
.footer-col h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: var(--space-3); }
.footer-col ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-col a { color: var(--text-soft); text-decoration: none; font-size: 0.925rem; }
.footer-col a:hover { color: var(--cyan); }
.legal-notice { margin-top: var(--space-6); color: var(--dim-text); font-size: 0.8rem; line-height: 1.6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--dim-text);
  font-size: 0.825rem;
}
.footer-bottom a { color: var(--text-soft); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(1320px, calc(100vw - var(--space-6)));
  max-width: none;
  max-height: calc(100vh - var(--space-6));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(5, 7, 10, 0.88); }
.lightbox-inner { display: flex; flex-direction: column; max-height: calc(100vh - 34px); }
.lightbox-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.lightbox-caption { flex: 1; min-width: 0; font-size: 0.9rem; color: var(--text-soft); line-height: 1.35; }
.lightbox-count { flex: none; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.icon-btn {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; }
.lightbox-stage { overflow: auto; background: var(--bg); min-height: 0; flex: 1; }
.lightbox-img { width: 100%; margin: 0 auto; }

/* ---------- Legal and 404 pages ---------- */
.draft-banner {
  background: #2A2110;
  border-bottom: 1px solid rgba(245, 158, 11, 0.45);
  color: #FCD38A;
  font-weight: 600;
  font-size: 0.9rem;
}
.draft-banner .container { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.legal-page { padding: var(--space-8) 0 var(--space-9); }
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; }
.legal-body h2 { margin-top: var(--space-6); font-size: 1.3rem; font-weight: 600; }
.legal-body p { margin-top: var(--space-3); color: var(--text-soft); }
.legal-body ul { margin-top: var(--space-3); padding-left: var(--space-5); display: grid; gap: var(--space-2); color: var(--text-soft); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body code { font-family: var(--font-mono); font-size: 0.875em; color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: var(--radius-xs); word-break: break-word; }
.legal-body hr { margin: var(--space-6) 0 0; border: 0; border-top: 1px solid var(--line); }

.notfound { padding: var(--space-9) 0 var(--space-10); text-align: center; }
.notfound .code { font-family: var(--font-mono); color: var(--amber); font-weight: 600; font-size: 1rem; }
.notfound h1 { margin-top: var(--space-3); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
.notfound p { margin: var(--space-4) auto 0; color: var(--text-soft); max-width: 56ch; }
.notfound .hero-actions { margin-top: var(--space-6); }

/* ==========================================================================
   Motion: subtle, and only for people who haven't asked for less.
   .js-reveal is added by site.js, so without JavaScript nothing starts hidden.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js-reveal .reveal.is-visible { opacity: 1; transform: none; }
  .btn-primary:hover { transform: translateY(-1px); }
  .thumb:hover, .step:hover, .price-card:hover { transform: translateY(-3px); }
  .js-reveal .step.reveal.is-visible:hover, .js-reveal .price-card.reveal.is-visible:hover { transform: translateY(-3px); transition-delay: 0s; transition-duration: 0.2s; }
  .tab-panel:not([hidden]) { animation: panel-in 0.35s var(--ease); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-card.is-featured { order: -1; grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--space-3) var(--gutter) var(--space-4);
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 48px; font-size: 1rem; }
  .nav-links a[aria-current] { box-shadow: inset 3px 0 0 var(--cyan); }
  .nav-links .nav-cta { margin: var(--space-2) 0 0; }
  .nav-links .nav-cta a { justify-content: center; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .pricing-grid, .steps, .pricing-line, .fee-grid, .shot-pair, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { padding: var(--space-6); gap: var(--space-5); }
}

@media (max-width: 560px) {
  :root { --gutter: var(--space-4); }
  .hero { padding: var(--space-7) 0 var(--space-7); }
  .hero-sub { font-size: 1.05rem; }
  .hero-shot { margin-top: var(--space-6); }
  .hero-actions .btn { flex: 1 1 100%; }
  .notfound .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .tab { padding: 0 var(--space-2); font-size: 0.95rem; }
  .tabs { width: 100%; }
  .benefits { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .section-head { margin-bottom: var(--space-6); }
  .gallery { gap: var(--space-3); }
  .thumb-label { padding: var(--space-2) var(--space-3); font-size: 0.8125rem; }
  .step { padding: var(--space-5); }
  .contact-card { padding: var(--space-5); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .brand-sub { display: none; }
  .lightbox-count { display: none; }
  .lightbox-img { width: 760px; max-width: none; }   /* readable on a phone: pan around in the stage */
  .fee-section { padding-top: var(--space-6); }
}

/* ---------- Hero: the Suite demo video sits where the hero screenshot was ---------- */
.hero-video { max-width: 1040px; margin-left: auto; margin-right: auto; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.hero-video figcaption { text-align: center; text-wrap: pretty; }

/* ---------- Tour carousel: one screen from each app (assets/js/carousel.js) ----------
   Without JavaScript it is a plain sideways-scrolling strip with snap points.
   With JavaScript (.is-ready) it becomes a coverflow: the active card in front, its neighbours
   smaller, dimmed and tucked behind on each side. Sized from the viewport height as well as its
   width, so the heading, the active card and the controls fit on one screen. */
.tour-section {
  --card-w: min(700px, 86vw, calc((100vh - 370px) * 1.6));
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.tour-section .section-head { margin-bottom: var(--space-5); }
.tour-section .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.tour-section .section-head p { margin-top: var(--space-2); font-size: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.carousel { max-width: 1040px; margin: 0 auto; position: relative; }
.carousel-track {
  position: relative;
  display: flex;
  gap: var(--space-5);
  margin: 0;
  padding: 0 0 var(--space-2);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel-track:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.carousel-slide { flex: 0 0 var(--card-w); min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.carousel-slide figure { margin: 0; }
.carousel-title {
  margin: 0 0 var(--space-2);
  text-align: center;
  color: var(--cyan);
  font: 600 1.25rem/1.2 var(--font-display);
  letter-spacing: 0.01em;
}
.carousel .window { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.carousel-slide .window img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--surface-2); }
.carousel-slide figcaption { text-align: center; text-wrap: pretty; min-height: 3em; margin-top: var(--space-2); font-size: 0.9rem; }

/* Coverflow mode */
.carousel.is-ready { overflow-x: clip; overflow-y: visible; padding: 4px 0 0; }
.carousel.is-ready .carousel-track {
  display: grid;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
  touch-action: pan-y;
  perspective: 1400px;
}
.carousel.is-ready .carousel-slide {
  grid-area: 1 / 1;
  width: var(--card-w);
  transform: translateX(var(--x, 0)) scale(var(--s, 1));
  transform-origin: 50% 40%;
  z-index: var(--z, 1);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.8s ease, opacity 0.8s ease;
  will-change: transform;
}
.carousel.is-ready .carousel-slide[data-pos="0"] { --x: 0; --s: 1; --z: 3; }
.carousel.is-ready .carousel-slide[data-pos="-1"] { --x: -36%; --s: 0.72; --z: 2; filter: brightness(0.45) saturate(0.7); cursor: pointer; }
.carousel.is-ready .carousel-slide[data-pos="1"] { --x: 36%; --s: 0.72; --z: 2; filter: brightness(0.45) saturate(0.7); cursor: pointer; }
.carousel.is-ready .carousel-slide[data-pos="0"] .window { box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-strong); }
.carousel.is-ready .carousel-slide:not([data-pos="0"]) .window { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.carousel.is-ready .carousel-slide:not([data-pos="0"]) figcaption,
.carousel.is-ready .carousel-slide:not([data-pos="0"]) .carousel-title { opacity: 0; }
.carousel.is-ready .carousel-slide:not([data-pos="0"]):hover { filter: brightness(0.65) saturate(0.85); }
.carousel-slide figcaption, .carousel-title { transition: opacity 0.5s ease; }

/* Small side arrows: fade in on hover or keyboard focus; faintly visible on touch screens. */
.carousel-arrow {
  position: absolute; top: calc(50% - 24px); z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0 0 3px;
  background: rgba(13, 16, 21, 0.78); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 50%;
  font: 400 1.6rem/1 var(--font-body); cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}
.carousel-arrow[hidden] { display: none; }
.carousel-prev { left: calc(50% - var(--card-w) / 2 - 52px); }
.carousel-next { right: calc(50% - var(--card-w) / 2 - 52px); }
.carousel:hover .carousel-arrow, .carousel:focus-within .carousel-arrow { opacity: 1; pointer-events: auto; }
.carousel-arrow:hover { border-color: var(--cyan); color: var(--cyan); }
.carousel-arrow:focus-visible { opacity: 1; outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (hover: none) and (pointer: coarse) { .carousel-arrow { opacity: 0.55; pointer-events: auto; } }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.carousel-controls[hidden] { display: none; }
.carousel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.carousel-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.carousel-btn[hidden] { display: none; }
.carousel-dots { display: flex; gap: var(--space-2); }
.carousel-dot {
  min-height: 34px; padding: 0 var(--space-3);
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: 600 0.8rem/1 var(--font-mono); letter-spacing: 0.02em; cursor: pointer;
}
.carousel-dot:hover { color: var(--text); border-color: var(--muted); }
.carousel-dot[aria-current="true"] { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-tint); }
.carousel-toggle-icon { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.carousel-toggle.is-paused .carousel-toggle-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
@media (prefers-reduced-motion: no-preference) { .carousel-track { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .carousel.is-ready .carousel-slide, .carousel-slide figcaption, .carousel-title { transition: none; } }
@media (max-width: 760px) {
  .tour-section { --card-w: min(560px, 76vw); }
  .carousel.is-ready { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .carousel.is-ready .carousel-slide[data-pos="-1"] { --x: -44%; --s: 0.82; }
  .carousel.is-ready .carousel-slide[data-pos="1"] { --x: 44%; --s: 0.82; }
}
@media (max-width: 560px) {
  .carousel-controls { gap: var(--space-2); }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
  .carousel-dot { padding: 0 var(--space-2); min-height: 44px; font-size: 0.75rem; }
  .carousel-slide figcaption { min-height: 4.5em; }
  .carousel-title { font-size: 1.1rem; }
}

@media print {
  .site-header, .hero::before, .nav-toggle, .notice-bar, .tabs { display: none !important; }
  [role="tabpanel"][hidden] { display: block !important; }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .legal-body p, .legal-body ul, .legal-body strong { color: #000; }
  .legal-body h1, .legal-body h2 { color: #000; }
}

/* ---- PolyMetric Fabrication section ---- */
/* Fabrication cross-promo: split layout with sample-kit CAD renders (mirrors the fab site's software ad) */
.fx { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(60% 70% at 85% 45%, rgba(245,158,11,0.10) 0%, rgba(245,158,11,0) 70%), radial-gradient(45% 55% at 0% 100%, rgba(0,168,232,0.12) 0%, rgba(0,168,232,0) 70%), linear-gradient(180deg, #0F1319 0%, #0B0E13 100%); }
.fx::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 50%, #000 0%, transparent 80%); mask-image: radial-gradient(70% 80% at 70% 50%, #000 0%, transparent 80%); }
.fx-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-8); align-items: center; }
.fx-chip { display: inline-block; margin: 0 0 var(--space-4); padding: 5px 12px; border: 1px solid rgba(245,158,11,0.4); border-radius: 999px; background: var(--amber-tint); color: #FCD34D; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.fx-title { margin: 0 0 var(--space-4); font-size: clamp(1.9rem, 3.3vw, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.fx-hl { background: linear-gradient(90deg, #FBBF24, #F59E0B 50%, #FCD34D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-lead { margin: 0 0 var(--space-5); color: var(--text-soft); font-size: 1.08rem; max-width: 56ch; }
.fx-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); }
.fx-list li { display: grid; grid-template-columns: 78px 1fr; gap: var(--space-3); align-items: start; color: var(--muted); }
.fx-badge { display: inline-block; text-align: center; padding: 3px 0; border-radius: var(--radius-sm); background: var(--amber-tint); border: 1px solid rgba(245,158,11,0.4); color: #FCD34D; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; }
.fx-terms { margin: 0 0 var(--space-5); padding: 12px 14px; border-left: 3px solid var(--cyan); background: var(--cyan-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-soft); font-size: 0.95rem; }
.fx-terms strong { color: var(--text); }
.fx-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.fx-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.fx-tile { position: relative; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #26303d 0%, #161b22 62%, #10141a 100%); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.8); transition: transform .25s ease, border-color .25s ease; }
.fx-tile:hover { transform: translateY(-3px); border-color: rgba(245,158,11,0.45); }
.fx-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.fx-tile figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(13,16,21,0.6); font-size: 0.88rem; color: var(--text); }
.fx-tile figcaption em { font-style: normal; font-family: var(--font-mono); font-size: 0.74rem; color: #7DD3FC; }
.fx-tile-2, .fx-tile-4 { transform: translateY(var(--space-6)); }
.fx-tile-2:hover, .fx-tile-4:hover { transform: translateY(calc(var(--space-6) - 3px)); }
.fx-note { grid-column: 1 / -1; margin: var(--space-6) 0 0; color: var(--muted); font-size: 0.85rem; text-align: center; }
@media (max-width: 960px) {
  .fx-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .fx-tile-2, .fx-tile-4, .fx-tile-2:hover, .fx-tile-4:hover { transform: none; }
  .fx-note { margin-top: 0; }
}
@media (max-width: 420px) { .fx-mosaic { gap: var(--space-3); } .fx-tile figcaption { padding: 8px 10px; font-size: 0.8rem; } }
