/* ================= Strai. — chic minimal ================= */

:root {
  color-scheme: light;

  --paper: #f7f6f2;
  --ink: #101014;
  --ink-soft: #4c4c55;
  --violet: #5b2eff;
  --violet-deep: #3d1cc4;
  --on-violet: #fff;
  --hairline: rgba(16, 16, 20, 0.14);
  --surface-muted: #ecebe6;
  --halftone: rgba(16, 16, 20, 0.9);
  --ru-surface: #ebe6ff;
  --ru-surface-deep: #d9cfff;
  --ru-grid: rgba(61, 28, 196, 0.13);
  --ru-glow: rgba(91, 46, 255, 0.24);
  --ru-card-bg: #f8f7fb;
  --ru-card-border: rgba(16, 16, 20, 0.16);
  --ru-card-shadow: rgba(61, 28, 196, 0.28);
  --ru-card-gradient: linear-gradient(
    transparent,
    rgba(248, 247, 251, 0.82) 52%,
    rgba(248, 247, 251, 0.98)
  );
  --ru-card-ink: #101014;
  --ru-card-ink-soft: rgba(16, 16, 20, 0.62);
  --ru-badge-bg: rgba(248, 247, 251, 0.72);
  --ru-badge-border: rgba(16, 16, 20, 0.2);
  --ru-badge-ink: rgba(16, 16, 20, 0.84);

  --pan-surface: #f0eeea;
  --pan-surface-deep: #dad8d1;
  --pan-grid: rgba(16, 16, 20, 0.1);
  --pan-glow: rgba(74, 88, 112, 0.2);
  --pan-bezel: #e9eaed;
  --pan-bezel-deep: #c9cbd1;
  --pan-bezel-edge: rgba(16, 16, 20, 0.16);
  --pan-bezel-highlight: rgba(255, 255, 255, 0.8);
  --pan-shadow: rgba(16, 16, 20, 0.24);
  --pan-screen-glow: #fff;
  --pan-screen-deep: #e4e6eb;
  --pan-screen-base: #f5f6f8;
  --pan-zone-surface: rgba(255, 255, 255, 0.72);
  --pan-zone-surface-deep: rgba(255, 255, 255, 0.34);
  --pan-accent: #356da8;
  --pan-accent-clear: rgba(53, 109, 168, 0);
  --pan-accent-glow: rgba(53, 109, 168, 0.45);
  --pan-chrome: rgba(16, 16, 20, 0.48);
  --pan-chrome-strong: rgba(16, 16, 20, 0.86);
  --pan-zone-edge: rgba(16, 16, 20, 0.13);
  --pan-menu-divider: rgba(16, 16, 20, 0.1);
  --pan-tab-divider: rgba(16, 16, 20, 0.09);
  --pan-drag-divider: rgba(16, 16, 20, 0.11);
  --pan-ui-line: rgba(16, 16, 20, 0.1);
  --pan-ui-head: rgba(16, 16, 20, 0.28);
  --pan-tab: rgba(16, 16, 20, 0.07);
  --pan-tab-active: rgba(16, 16, 20, 0.16);
  --pan-tab-active-edge: rgba(16, 16, 20, 0.22);
  --pan-drop-key-bg: rgba(255, 255, 255, 0.72);
  --pan-drag-edge: rgba(16, 16, 20, 0.18);
  --pan-drag-surface: rgba(255, 255, 255, 0.98);
  --pan-drag-surface-deep: rgba(226, 228, 234, 0.98);
  --pan-drag-shadow: rgba(16, 16, 20, 0.3);
  --pan-drag-dot: rgba(16, 16, 20, 0.28);

  --journal-surface: #eee9ff;
  --journal-surface-deep: #dcd2ff;
  --journal-grid: rgba(91, 46, 255, 0.11);
  --journal-window: rgba(247, 246, 252, 0.9);
  --journal-window-edge: rgba(61, 28, 196, 0.2);
  --journal-entry: rgba(255, 255, 255, 0.74);
  --journal-line: rgba(61, 28, 196, 0.17);
  --journal-shadow: rgba(61, 28, 196, 0.24);

  /* Focus Tab follows the page scheme, as the extension itself does. */
  --focus-surface: #f7ece9;
  --focus-surface-deep: #efdbd6;
  --focus-glow: rgba(210, 80, 63, 0.16);
  --focus-ink: #101014;
  --focus-ink-soft: #4c4c55;
  --focus-chrome: rgba(16, 16, 20, 0.42);
  --focus-hairline: rgba(16, 16, 20, 0.14);
  --focus-accent: #d2503f;
  --focus-on-accent: #fdf6f4;
  --focus-screen-edge: rgba(16, 16, 20, 0.16);

  /* MyTaste: monochrome, with the hue its mark turns through (as on mytaste.cc). */
  --mytaste-hue-start: 355;
  --mytaste-surface: #fff;
  --mytaste-surface-deep: #ececec;
  --mytaste-ink: #111;
  --mytaste-ink-soft: #4f4f4f;
  --mytaste-hairline: rgba(0, 0, 0, 0.13);
  --mytaste-band: #000;
  --mytaste-band-opacity: 0.06;
  --mytaste-glow: 0.2;
  --mytaste-mark-glow: 0.35;
  --mytaste-window: rgba(255, 255, 255, 0.86);
  --mytaste-shadow: rgba(0, 0, 0, 0.3);
  --mytaste-accent-l: 0.52;
  --mytaste-on-accent: #fff;

  /* Waves: the card is a mounted configuration, so its palette is the one that
     configuration carries — see the `waves:v1:` strings in index.html. */
  --waves-canvas-bg: #e4f0f1;
  --waves-ink: #101014;
  --waves-ink-soft: #4c4c55;
  --waves-hairline: rgba(16, 16, 20, 0.14);
  --waves-accent: #2c7883;
  --waves-on-accent: #f7f6f2;
  --waves-scrim: rgba(238, 247, 248, 0.95);
  --waves-scrim-soft: rgba(238, 247, 248, 0.72);
  --waves-spec-bg: rgba(255, 255, 255, 0.74);
  --waves-spec-edge: rgba(16, 16, 20, 0.16);
  --waves-shadow: rgba(16, 16, 20, 0.24);

  --inverse-bg: #101014;
  --inverse-bg-hover: #17171d;
  --inverse-ink: #f7f6f2;
  --inverse-ink-soft: rgba(247, 246, 242, 0.6);
  --inverse-ink-faint: rgba(247, 246, 242, 0.45);
  --inverse-hairline: rgba(247, 246, 242, 0.12);
  --inverse-halftone: rgba(247, 246, 242, 0.85);

  --footer-bg-center: #f7f6f2;
  --footer-bg-mid: #f0ece9;
  --footer-bg-edge: #e7e0f7;
  --footer-ink: #101014;
  --footer-ink-soft: rgba(16, 16, 20, 0.6);
  --footer-ink-faint: rgba(16, 16, 20, 0.5);
  --footer-hairline: rgba(16, 16, 20, 0.13);
  --footer-halftone: rgba(91, 46, 255, 0.5);
  --footer-accent: #5b2eff;
  --footer-pattern-blend: multiply;
  --footer-button-bg: #101014;
  --footer-button-ink: #f7f6f2;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;

  --ease-calm: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --nav-height: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --paper: #101014;
    --ink: #f7f6f2;
    --ink-soft: #b7b5be;
    --violet: #9b7bff;
    --violet-deep: #8260ff;
    --on-violet: #101014;
    --hairline: rgba(247, 246, 242, 0.16);
    --surface-muted: #1b1b22;
    --halftone: rgba(247, 246, 242, 0.82);
    --ru-surface: #171525;
    --ru-surface-deep: #221d3b;
    --ru-grid: rgba(155, 123, 255, 0.15);
    --ru-glow: rgba(130, 96, 255, 0.32);
    --ru-card-bg: #131315;
    --ru-card-border: rgba(255, 255, 255, 0.22);
    --ru-card-shadow: rgba(10, 6, 24, 0.7);
    --ru-card-gradient: linear-gradient(
      transparent,
      rgba(12, 12, 14, 0.8) 52%,
      rgba(12, 12, 14, 0.96)
    );
    --ru-card-ink: #f7f6f2;
    --ru-card-ink-soft: rgba(247, 246, 242, 0.62);
    --ru-badge-bg: rgba(12, 12, 14, 0.55);
    --ru-badge-border: rgba(255, 255, 255, 0.28);
    --ru-badge-ink: rgba(255, 255, 255, 0.9);

    --pan-surface: #191a20;
    --pan-surface-deep: #23262e;
    --pan-grid: rgba(247, 246, 242, 0.07);
    --pan-glow: rgba(140, 165, 200, 0.16);
    --pan-bezel: #2a2d34;
    --pan-bezel-deep: #17191e;
    --pan-bezel-edge: rgba(255, 255, 255, 0.12);
    --pan-bezel-highlight: rgba(255, 255, 255, 0.14);
    --pan-shadow: rgba(0, 0, 0, 0.7);
    --pan-screen-glow: #1b1e26;
    --pan-screen-deep: #07080b;
    --pan-screen-base: #0e1014;
    --pan-zone-surface: rgba(255, 255, 255, 0.055);
    --pan-zone-surface-deep: rgba(255, 255, 255, 0.015);
    --pan-accent: #8fbcff;
    --pan-accent-clear: rgba(143, 188, 255, 0);
    --pan-accent-glow: rgba(143, 188, 255, 0.6);
    --pan-chrome: rgba(255, 255, 255, 0.42);
    --pan-chrome-strong: rgba(255, 255, 255, 0.86);
    --pan-zone-edge: rgba(255, 255, 255, 0.09);
    --pan-menu-divider: rgba(255, 255, 255, 0.08);
    --pan-tab-divider: rgba(255, 255, 255, 0.07);
    --pan-drag-divider: rgba(255, 255, 255, 0.1);
    --pan-ui-line: rgba(255, 255, 255, 0.085);
    --pan-ui-head: rgba(255, 255, 255, 0.3);
    --pan-tab: rgba(255, 255, 255, 0.07);
    --pan-tab-active: rgba(255, 255, 255, 0.2);
    --pan-tab-active-edge: rgba(255, 255, 255, 0.28);
    --pan-drop-key-bg: rgba(8, 10, 14, 0.65);
    --pan-drag-edge: rgba(255, 255, 255, 0.22);
    --pan-drag-surface: rgba(32, 36, 45, 0.97);
    --pan-drag-surface-deep: rgba(14, 16, 21, 0.97);
    --pan-drag-shadow: rgba(0, 0, 0, 0.75);
    --pan-drag-dot: rgba(255, 255, 255, 0.28);

    --journal-surface: #171323;
    --journal-surface-deep: #251d3e;
    --journal-grid: rgba(155, 123, 255, 0.12);
    --journal-window: rgba(20, 18, 28, 0.92);
    --journal-window-edge: rgba(155, 123, 255, 0.25);
    --journal-entry: rgba(255, 255, 255, 0.045);
    --journal-line: rgba(155, 123, 255, 0.2);
    --journal-shadow: rgba(0, 0, 0, 0.58);

    --focus-surface: #17171d;
    --focus-surface-deep: #0a0a0e;
    --focus-glow: rgba(240, 120, 111, 0.15);
    --focus-ink: #f2f1ec;
    --focus-ink-soft: rgba(242, 241, 236, 0.62);
    --focus-chrome: rgba(242, 241, 236, 0.38);
    --focus-hairline: rgba(242, 241, 236, 0.16);
    --focus-accent: #f0786f;
    --focus-on-accent: #1b1010;
    --focus-screen-edge: rgba(242, 241, 236, 0.14);

    --mytaste-hue-start: 295;
    --mytaste-surface: #0a0a0a;
    --mytaste-surface-deep: #000;
    --mytaste-ink: #fff;
    --mytaste-ink-soft: #c9c9c9;
    --mytaste-hairline: rgba(255, 255, 255, 0.15);
    --mytaste-band: #fff;
    --mytaste-band-opacity: 0.07;
    --mytaste-glow: 0.24;
    --mytaste-mark-glow: 0.55;
    --mytaste-window: rgba(18, 18, 18, 0.88);
    --mytaste-shadow: rgba(0, 0, 0, 0.7);
    --mytaste-accent-l: 0.77;
    --mytaste-on-accent: #000;

    --waves-canvas-bg: #173b44;
    --waves-ink: #edf5f5;
    --waves-ink-soft: rgba(237, 245, 245, 0.78);
    --waves-hairline: rgba(237, 245, 245, 0.18);
    --waves-accent: #7fcdd6;
    --waves-on-accent: #0b1f26;
    --waves-scrim: rgba(17, 46, 54, 0.95);
    --waves-scrim-soft: rgba(17, 46, 54, 0.74);
    --waves-spec-bg: rgba(8, 26, 32, 0.72);
    --waves-spec-edge: rgba(237, 245, 245, 0.2);
    --waves-shadow: rgba(0, 0, 0, 0.66);

    --inverse-bg: #17171d;
    --inverse-bg-hover: #202028;

    --footer-bg-center: #000;
    --footer-bg-mid: #0d0b15;
    --footer-bg-edge: #211638;
    --footer-ink: #f7f6f2;
    --footer-ink-soft: rgba(247, 246, 242, 0.6);
    --footer-ink-faint: rgba(247, 246, 242, 0.45);
    --footer-hairline: rgba(247, 246, 242, 0.12);
    --footer-halftone: rgba(174, 151, 255, 0.7);
    --footer-accent: #bda8ff;
    --footer-pattern-blend: screen;
    --footer-button-bg: #f7f6f2;
    --footer-button-ink: #17171d;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  scroll-snap-type: y mandatory;
}

html.is-snap-suspended {
  scroll-snap-type: none;
}

html.detail-document {
  scroll-snap-type: none;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: var(--on-violet); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease-calm), transform 1s var(--ease-calm);
}
.reveal.in { opacity: 1; transform: none; }
.product.reveal { transform: none; }
.d-1 { transition-delay: 0.12s; }
.d-2 { transition-delay: 0.24s; }
.d-3 { transition-delay: 0.36s; }
.d-4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .line-inner { transform: none !important; opacity: 1 !important; animation: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.8rem 1.9rem;
  transition: background 0.35s var(--ease-calm), color 0.35s var(--ease-calm),
              border-color 0.35s var(--ease-calm), transform 0.35s var(--ease-calm);
}
.btn:active { transform: scale(0.97); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--violet); color: var(--on-violet); }

.btn-ghost { border: 1px solid var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-invert { background: var(--inverse-ink); color: var(--inverse-bg); }
.btn-invert:hover { background: var(--violet); color: var(--on-violet); }

.btn-text { padding: 0.8rem 0.25rem; color: var(--ink); font-weight: 500; }
.chevron {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.3em;
  font-weight: 400;
  line-height: 0.8;
  transition: transform 0.35s var(--ease-calm);
}
.chevron-down { line-height: 0.55; }
.chevron-back { font-size: 1.5em; }
.btn-text:hover { color: var(--violet); }
.btn-text:hover .chevron { transform: translateX(4px); }
.btn-text:hover .chevron-down { transform: translateY(4px); }

/* live repository stars, hung off a GitHub link until the count arrives */
.star-count {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-left: 0.12rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.star-count[hidden] { display: none; }

.star-count svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: calc(1.1rem + env(safe-area-inset-top)) max(var(--pad-x), env(safe-area-inset-right)) 1.1rem max(var(--pad-x), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 1;
}
.logo-image {
  display: block;
  width: clamp(6rem, 8vw, 7.5rem);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 1rem;
  height: 0.2rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateX(-50%) scaleX(0.35);
  transform-origin: center;
  transition: opacity 0.35s var(--ease-calm), transform 0.35s var(--ease-calm);
}
.nav-link:hover::after,
.nav-link[aria-current="location"]::after {
  opacity: 0.5;
  transform: translateX(-50%) scaleX(1);
}

/* ---------- product carousel, folded into the nav indicator slot ---------- */
.nav-item {
  position: relative;
  display: inline-flex;
}

.product-carousel {
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  visibility: hidden;
  translate: -50% 0.2rem;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-calm), translate 0.3s var(--ease-calm), visibility 0.3s;
}

/* Reaching for Products previews the set, the same way being inside it shows
   your place in it. */
.product-carousel.is-visible,
.nav-item:hover .product-carousel,
.nav-item:focus-within .product-carousel {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
  pointer-events: auto;
}

/* While the dots stand in for it, the link's own indicator steps aside. */
.nav-item:has(.product-carousel.is-visible) > .nav-link::after,
.nav-item:hover > .nav-link::after,
.nav-item:focus-within > .nav-link::after {
  opacity: 0;
  transform: translateX(-50%) scaleX(0.35);
}

.product-carousel a {
  display: grid;
  place-items: center;
  height: 0.2rem;
}

.product-carousel a::before {
  content: "";
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  transition: width 0.35s var(--ease-calm), background 0.35s var(--ease-calm), opacity 0.35s var(--ease-calm);
}

/* the mark stays hairline-thin, so the hit area is widened on its own layer */
.product-carousel a::after {
  content: "";
  position: absolute;
  inset: -0.5rem -0.2rem;
}

.product-carousel a:hover::before { opacity: 0.75; }

/* the active mark is the nav indicator itself — same ink, same weight */
.product-carousel a[aria-current="true"]::before {
  width: 1rem;
  opacity: 0.5;
}

.nav-cta { margin-left: auto; padding: 0.55rem 1.4rem; font-size: 0.85rem; }
.nav-mobile-contact {
  display: none;
  margin-left: auto;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem;
}

.nav-mobile-contact.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  place-items: center;
  padding: 4rem var(--pad-x) 6rem;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 56rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.eyebrow-light { color: var(--inverse-ink-soft); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero-title em { color: var(--violet); }

.line { display: block; overflow: hidden; }
.line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-calm) forwards;
}
.line:nth-child(2) .line-inner { animation-delay: 0.15s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* halftone canvases */
.halftone {
  position: absolute;
  pointer-events: none;
  color: var(--halftone);
}
.halftone-left {
  left: 0; top: 0;
  width: clamp(180px, 24vw, 380px);
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 0% 50%, #000 0 30%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 60% at 0% 50%, #000 0 30%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
}
.halftone-right {
  right: 0; top: 0;
  width: clamp(180px, 24vw, 380px);
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 100% 50%, #000 0 30%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 60% at 100% 50%, #000 0 30%, rgba(0, 0, 0, 0.72) 48%, transparent 100%);
}

/* ---------- section heads ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
}
.section-head .index { color: var(--violet); }
.section-note { color: var(--ink-soft); margin-left: auto; }
.section-head-light h2 { color: var(--inverse-ink); }
.section-head-light .section-note { color: var(--inverse-ink-soft); }

/* ---------- products ---------- */
.products {
  max-width: 90rem;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) clamp(5rem, 9vw, 8rem);
}


.product {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}
.product + .product { border-top: 1px solid var(--hairline); }
.product-flip .product-media { order: 2; }

.product-permalink {
  position: absolute;
  top: clamp(0.7rem, 1.25vw, 1rem);
  right: clamp(0.7rem, 1.25vw, 1rem);
  z-index: 60;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 7%, transparent);
  color: inherit;
  opacity: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    opacity 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.product-permalink svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-permalink:focus-visible,
.product-permalink.has-status {
  opacity: 0.56;
}

.product-permalink:hover,
.product-permalink:focus-visible,
.product-permalink.has-status {
  border-color: color-mix(in srgb, currentColor 30%, transparent);
  background: color-mix(in srgb, currentColor 12%, transparent);
  opacity: 0.9;
  transform: translateY(-1px);
}

.product-permalink:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.product-permalink::after {
  content: attr(data-status);
  position: absolute;
  top: 50%;
  right: calc(100% + 0.55rem);
  padding: 0.3rem 0.48rem;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(0.2rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.product-permalink.has-status::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.product-media {
  position: relative;
  background: var(--surface-muted);
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transition: transform 0.6s var(--ease-calm);
}
.product-media:hover { transform: translateY(-4px); }
.halftone-card { inset: 0; width: 100%; height: 100%; }

.product-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.3rem 0.85rem;
  color: var(--ink-soft);
}

.product-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.4rem;
}
.product-desc {
  max-width: 34rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
}

/* ---------- RUverse detail page ---------- */
.detail-page .nav { position: fixed; width: 100%; }

.detail-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-height) + clamp(2.5rem, 6vh, 4.5rem)) var(--pad-x) clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, var(--ru-glow), transparent 31%),
    linear-gradient(145deg, var(--paper) 24%, var(--ru-surface));
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    linear-gradient(var(--ru-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ru-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000);
  mask-image: linear-gradient(90deg, transparent 18%, #000);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 84rem;
  margin: 0 auto;
  text-align: center;
}

.detail-title {
  font-family: var(--font-sans);
  font-size: clamp(4.5rem, 14vw, 10rem);
  font-weight: 850;
  line-height: 0.78;
  letter-spacing: -0.09em;
}

.detail-title > .line > .line-inner { color: var(--ink); }
.detail-title .line-inner > span { color: var(--violet); }

.detail-title-wordmark {
  width: min(100%, 32rem);
  margin-inline: auto;
  line-height: 0;
  color: var(--ink);
}

.detail-title-wordmark .ruverse-wordmark {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
}

.detail-intro {
  max-width: none;
  margin-top: clamp(2rem, 4vh, 3rem);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.18;
  text-wrap: balance;
}

.detail-hero-copy {
  max-width: 56rem;
  margin: 1.25rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.detail-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.detail-scroll { color: var(--ink-soft); }

.detail-section {
  padding: clamp(4.5rem, 8vw, 8rem) var(--pad-x);
}

.detail-section-inner {
  max-width: 76rem;
  margin: 0 auto;
}

.detail-section-head {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.detail-label { color: var(--violet); }

.detail-statement {
  max-width: 58rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.detail-copy-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: 2.5rem;
}

.detail-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 58rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.ru-feature-section {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
}

.ru-feature-section .detail-label { filter: brightness(1.35); }

.feature-heading {
  max-width: 48rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.1;
}

.ru-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--inverse-hairline);
  border-left: 1px solid var(--inverse-hairline);
}

.ru-feature {
  position: relative;
  min-height: 21rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  overflow: hidden;
  border-right: 1px solid var(--inverse-hairline);
  border-bottom: 1px solid var(--inverse-hairline);
  transition: background 0.4s var(--ease-calm);
}

.ru-feature:hover { background: var(--inverse-bg-hover); }

.ru-feature-num {
  display: block;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  color: var(--violet);
  filter: brightness(1.25);
}

.ru-feature h3 {
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}

.ru-feature p {
  color: var(--inverse-ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.ru-feature-glyph {
  position: absolute;
  right: -0.15em;
  bottom: -0.3em;
  color: rgba(155, 123, 255, 0.055);
  font-family: var(--font-sans);
  font-size: 9rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.worlds-section { overflow: hidden; }

.worlds-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(28rem, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.worlds-copy .detail-label { display: block; margin-bottom: 1.5rem; }

.worlds-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
}

.worlds-copy > p:not(.detail-label) {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.world-build-list {
  list-style: none;
  max-width: 34rem;
  margin-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.world-build-list li {
  display: flex;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}

.world-build-list span {
  color: var(--violet);
}

.world-map {
  position: relative;
  min-height: clamp(29rem, 48vw, 38rem);
  border: 1px solid var(--hairline);
  border-radius: clamp(10px, 1.5vw, 16px);
  background:
    radial-gradient(circle at 50% 50%, var(--ru-glow), transparent 40%),
    var(--ru-surface);
  overflow: hidden;
}

.world-map::before,
.world-map::after {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border: 1px solid var(--ru-grid);
  border-radius: 50%;
}

.world-map::after { width: 40%; }

.world-node {
  position: absolute;
  z-index: 2;
  padding: 0.65rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  color: var(--ink);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -18px var(--ink);
}

.world-node::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--violet);
}

.world-node-one { left: 10%; top: 20%; }
.world-node-two { right: 8%; top: 34%; }
.world-node-three { left: 17%; bottom: 17%; }
.world-node-four { right: 19%; bottom: 11%; }

.world-avatar {
  position: absolute;
  z-index: 1;
  width: clamp(8rem, 14vw, 11rem);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--ru-card-border);
  border-radius: 7px;
  background: var(--ru-card-bg);
  box-shadow: 0 26px 50px -22px var(--ru-card-shadow);
}

.world-avatar img { width: 100%; height: 100%; object-fit: cover; }
.world-avatar-milo { left: 29%; top: 24%; rotate: -7deg; }
.world-avatar-jessie { right: 28%; top: 16%; rotate: 6deg; }

.ru-actions-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(var(--ru-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ru-grid) 1px, transparent 1px),
    var(--ru-surface);
  background-size: 64px 64px;
}

.actions-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.actions-copy {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.actions-copy h2,
.economy-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

.actions-copy > p:not(.detail-label) {
  grid-column: 2;
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.action-system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(0.65rem, 2vw, 1.5rem);
  padding: clamp(0.8rem, 2vw, 1.25rem);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
}

.action-system > div {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--paper);
}

.action-system .action-system-core {
  border-color: transparent;
  background: var(--violet);
  color: var(--on-violet);
}

.action-system-kicker {
  color: var(--ink-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.action-system-core .action-system-kicker {
  color: color-mix(in srgb, var(--on-violet) 70%, transparent);
}

.action-system strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
}

.action-system-arrow {
  align-self: center;
  color: var(--violet);
  font-family: var(--font-mono);
  font-size: 1.5rem;
}

.action-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.action-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--paper) 40%, transparent);
}

.action-card span {
  color: var(--violet);
}

.action-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}

.economy-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 48%, var(--ru-glow), transparent 34%),
    linear-gradient(145deg, var(--paper) 20%, var(--ru-surface));
}

.economy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.economy-copy .detail-label {
  display: block;
  margin-bottom: 1.5rem;
}

.economy-copy > p:not(.detail-label) {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.economy-orbit {
  position: relative;
  min-height: clamp(29rem, 45vw, 36rem);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 58%, transparent);
}

.economy-orbit::before,
.economy-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid var(--ru-grid);
  border-radius: 50%;
}

.economy-orbit::after {
  inset: 31%;
}

.economy-token {
  position: absolute;
  z-index: 2;
  display: grid;
  place-content: center;
  width: clamp(8rem, 14vw, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 26px 50px -26px var(--ru-card-shadow);
}

.economy-token span {
  font-family: var(--font-sans);
  font-size: clamp(3.6rem, 7vw, 5.5rem);
  font-weight: 850;
  line-height: 0.8;
}

.economy-token small {
  margin-top: 0.9rem;
  font-size: 0.7rem;
}

.economy-token-attention {
  top: 15%;
  left: 20%;
  background: var(--violet);
  color: var(--on-violet);
}

.economy-token-merit {
  right: 18%;
  bottom: 14%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
}

.economy-node {
  position: absolute;
  z-index: 3;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  color: var(--ink);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -20px var(--ink);
}

.economy-node-price { top: 12%; right: 9%; }
.economy-node-contribute { left: 8%; bottom: 16%; }
.economy-node-earn { top: 48%; left: 47%; }

.detail-cta {
  position: relative;
  margin: 0 clamp(0.6rem, 1.5vw, 1.25rem) clamp(0.6rem, 1.5vw, 1.25rem);
  padding: clamp(5rem, 10vw, 9rem) var(--pad-x);
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 75% 25%, var(--ru-glow), transparent 33%),
    linear-gradient(135deg, var(--ru-surface), var(--ru-surface-deep));
  text-align: center;
}

.detail-cta .detail-label {
  display: block;
  margin-bottom: 1.5rem;
}

.detail-cta h2 {
  max-width: 55rem;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.detail-cta p {
  max-width: 36rem;
  margin: 1.5rem auto 2.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.detail-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--pad-x);
  color: var(--ink-soft);
}

.detail-footer a { color: inherit; text-decoration: none; }
.detail-footer a:hover { color: var(--violet); }

/* ---------- services ---------- */
.services {
  max-width: 90rem;
  background: transparent;
  color: var(--ink);
  margin-inline: auto;
  padding: 0 var(--pad-x) clamp(3rem, 6vw, 5rem);
}
.services-inner {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  margin: 0 auto;
}

.service-card {
  height: clamp(32rem, 50vw, 40rem);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.25rem, 4vw, 4rem);
  border: 1px solid var(--hairline);
  border-radius: clamp(12px, 1.5vw, 18px);
  background: transparent;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

.service-card.reveal { transform: none; }

.service-card-process {
  grid-template-columns: 1fr;
  align-content: center;
  gap: clamp(2rem, 3vw, 3rem);
}

.service-card-process h2 {
  font-size: clamp(2.7rem, 4.5vw, 4.8rem);
}

.service-card-process .steps {
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.service-card-process .step {
  min-height: clamp(10rem, 13vw, 11rem);
  padding: clamp(1.5rem, 2vw, 2rem) clamp(1rem, 2vw, 2rem);
  border-top: 0;
  border-right: 1px solid var(--hairline);
}

.service-card-process .step:last-child {
  border-right: 0;
  border-bottom: 0;
}


.service-card h2 {
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.4vw, 5.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.service-card h2 em {
  color: var(--violet);
}

/* the forced break only earns its place while the first line still fits */
@media (max-width: 700px) {
  .service-card h2 .br-wide { display: none; }
}

@media (min-width: 861px) and (max-height: 850px) {
  .detail-hero {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 2rem;
  }
  .detail-title-wordmark { width: min(100%, 27rem); }
  .detail-intro {
    margin-top: 1.6rem;
    font-size: clamp(2rem, 3vw, 2.55rem);
  }
  .detail-hero-copy {
    max-width: 54rem;
    margin-top: 1rem;
    line-height: 1.55;
  }
  .detail-hero-actions { margin-top: 1.5rem; }

  .service-card {
    height: calc(100svh - var(--nav-height) - 3.5rem);
    padding-block: clamp(2.25rem, 6vh, 3rem);
  }
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  background: transparent;
  border: 0;
}
.step {
  min-height: 14rem;
  padding: clamp(1.75rem, 3vw, 2.75rem) 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
}
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step-num { color: var(--violet); display: block; margin-bottom: 1.75rem; }
.step h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.step p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- footer ---------- */
.footer {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  background: radial-gradient(
    ellipse 80% 92% at 50% 43%,
    var(--footer-bg-center) 0%,
    var(--footer-bg-mid) 36%,
    var(--footer-bg-edge) 100%
  );
  color: var(--footer-ink);
  margin-top: 0;
  padding: 0 max(var(--pad-x), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--pad-x), env(safe-area-inset-left));
  text-align: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.halftone-footer {
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.22;
  color: var(--footer-halftone);
  mix-blend-mode: var(--footer-pattern-blend);
  -webkit-mask-image: radial-gradient(ellipse 55% 52% at 50% 43%, transparent 12%, rgba(0, 0, 0, 0.42) 58%, #000 100%);
  mask-image: radial-gradient(ellipse 55% 52% at 50% 43%, transparent 12%, rgba(0, 0, 0, 0.42) 58%, #000 100%);
}
.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
}
.footer-cta { grid-area: 1 / 1; }
.footer .eyebrow-light { color: var(--footer-ink-soft); }
.footer .btn-invert { background: var(--footer-button-bg); color: var(--footer-button-ink); }
.footer .btn-invert:hover { background: var(--violet); color: var(--on-violet); }

.footer-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2.5rem;
}
.footer-title em { color: var(--footer-accent); }

.footer-meta {
  position: absolute;
  inset: auto 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--footer-hairline);
  color: var(--footer-ink-faint);
}

/* ---------- responsive ---------- */
@media (min-width: 1120px) {
  .detail-intro {
    white-space: nowrap;
    text-wrap: nowrap;
  }
}

@media (max-width: 1100px) {
  .ru-features,
  .action-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-mobile-contact { display: inline-flex; }
  .halftone-left { display: none; }
  .halftone-right { opacity: 0.25; top: 0; }

  .product,
  .product-flip { grid-template-columns: 1fr; gap: 1.8rem; }
  .product-permalink { display: none; }
  .product-flip .product-media { order: 0; }

  .service-card {
    height: auto;
    grid-template-columns: 1fr;
    align-content: center;
  }
  .service-card-process .steps { grid-template-columns: 1fr 1fr; }
  .service-card-process .step { min-height: 14rem; }
  .service-card-process .step:nth-child(2n) { border-right: 0; }
  .service-card-process .step:nth-child(-n + 2) { border-bottom: 1px solid var(--hairline); }
  .section-note { margin-left: 0; width: 100%; }

  .detail-section-head,
  .detail-copy-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .detail-copy { grid-template-columns: 1fr; gap: 1.2rem; }
  .ru-features { grid-template-columns: 1fr 1fr; }
  .worlds-layout { grid-template-columns: 1fr; }
  .actions-copy { grid-template-columns: 1fr; }
  .actions-copy > p:not(.detail-label) { grid-column: 1; }
  .action-cards { grid-template-columns: 1fr 1fr; }
  .economy-layout { grid-template-columns: 1fr; }
  .economy-orbit {
    width: min(100%, 36rem);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .product {
    scroll-margin-top: 0.75rem;
    scroll-snap-align: start;
  }
  .services { padding: 0 0.7rem clamp(3rem, 6vw, 5rem); }
  .services-inner { gap: clamp(3rem, 6vw, 5rem); }
  .service-card {
    height: calc(100svh - var(--nav-height) - env(safe-area-inset-bottom) - 1.5rem);
    min-height: 0;
    gap: 2rem;
    padding: 2rem 1.4rem;
    border-radius: 12px;
  }
  .service-card h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .service-card-process {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 0.75rem;
    padding: 1.1rem 1rem;
    overflow: hidden;
  }
  .service-card-process h2 { font-size: clamp(2.15rem, 9.8vw, 2.65rem); }
  .service-card-process .steps {
    height: 100%;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .step { min-height: auto; padding: 1.5rem 0; }
  .service-card-process .step {
    min-width: 0;
    min-height: 0;
    padding: 0.65rem 0.6rem;
  }
  .service-card-process .step-num { margin-bottom: 0.35rem; }
  .service-card-process .step h4 { font-size: 1.15rem; margin-bottom: 0.3rem; }
  .service-card-process .step p { font-size: clamp(0.68rem, 3vw, 0.76rem); line-height: 1.42; }
  .step-num { margin-bottom: 0.8rem; }

  .products { padding-left: 0.7rem; padding-right: 0.7rem; }
  .detail-hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 3rem) var(--pad-x) 4rem;
  }
  .detail-title { font-size: clamp(3.8rem, 20vw, 5rem); }
  .detail-intro { font-size: 1.75rem; }
  .detail-hero-copy { font-size: 0.98rem; line-height: 1.65; }
  .ru-features { grid-template-columns: 1fr; }
  .ru-feature { min-height: 17rem; }
  .world-map { min-height: 27rem; }
  .world-avatar { width: 8.5rem; }
  .world-avatar-milo { left: 16%; top: 25%; }
  .world-avatar-jessie { right: 14%; top: 19%; }
  .world-node-one { left: 5%; top: 12%; }
  .world-node-two { right: 3%; top: 45%; }
  .world-node-three { left: 5%; bottom: 10%; }
  .world-node-four { display: none; }
  .action-system { grid-template-columns: 1fr; }
  .action-system > div { min-height: 7.5rem; }
  .action-system-arrow {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    justify-self: center;
    rotate: 90deg;
  }
  .action-cards { grid-template-columns: 1fr; }
  .action-card { min-height: 10rem; }
  .economy-orbit { min-height: 23rem; }
  .economy-token { width: 7.5rem; }
  .economy-token span { font-size: 3.5rem; }
  .economy-token-attention { top: 14%; left: 12%; }
  .economy-token-merit { right: 10%; bottom: 12%; }
  .economy-node-price { top: 6%; right: 5%; }
  .economy-node-contribute { left: 3%; bottom: 8%; }
  .economy-node-earn { top: 46%; left: 43%; }
}
