/* Sonaurelis site — obsidian system from the v2.0 visual standard.
   Tokens in tokens.css are generated from the kit's tokens.json. */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk%5Bwght%5D.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- base */

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

:root {
  --recessed-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55),
                     inset 0 -1px 0 rgba(255, 255, 255, 0.035);
  --hero-shadow: inset 0 3px 14px rgba(0, 0, 0, 0.6),
                 inset 0 -1px 0 rgba(255, 255, 255, 0.035);
  --container: 1160px;
  --narrow: 720px;
}

html {
  background: var(--obsidian);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* static atmosphere — §5.1 limits: gold ≤4.5%, accent ≤5%, white ≤1.5% */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(110vmax 80vmax at 12% -6%,
      rgba(244, 184, 91, 0.045), transparent 62%),
    radial-gradient(100vmax 80vmax at 92% 104%,
      color-mix(in srgb, var(--accent) 5%, transparent), transparent 60%),
    radial-gradient(80vmax 60vmax at 50% 46%,
      rgba(255, 255, 255, 0.015), transparent 65%);
}

/* grain dither — §5.4: static tile, overlay blend, above all content */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: url("../img/grain.png") repeat;
  background-size: 128px 128px;
  mix-blend-mode: overlay;
  opacity: 0.05;
}

/* ---------------------------------------------------------------- type */

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.55em;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
em { font-style: normal; color: var(--gold); }
strong { font-weight: 620; color: var(--text); }

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1em;
}
.accent-text { color: var(--accent); }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46em;
}
.section-lede { color: var(--muted); max-width: 46em; }

.num, dd.num {
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

.caption {
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.caption.center { text-align: center; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }

::selection { background: rgba(244, 184, 91, 0.25); }

/* ---------------------------------------------------------------- focus */

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1.5px var(--gold),
              0 0 9px rgba(244, 184, 91, 0.4);
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--recess);
  border: 1px solid var(--outline);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--gold);
  font-size: 0.85rem;
  transition: top 120ms var(--ease);
}
.skip:focus-visible { top: 12px; }

/* ---------------------------------------------------------------- layout */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}
.container.narrow { max-width: var(--narrow); }
.container.wide { width: min(1400px, 100% - 2rem); }

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1.05rem max(1rem, calc((100% - 1400px) / 2)) 0.85rem;
  border-bottom: 1px solid var(--outline-soft);
  background: color-mix(in srgb, var(--obsidian) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { display: block; height: 20px; width: auto; }
.brand .brand-mark { height: 31px; }
.brand-rule { width: 1px; height: 22px; background: var(--outline); }

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--recess);
  color: var(--muted);
  font: 500 0.7rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.mobile-menu-icon { position: relative; }
.mobile-menu-icon::before,
.mobile-menu-icon::after { content: ""; position: absolute; left: 0; }
.mobile-menu-icon::before { top: -4px; }
.mobile-menu-icon::after { top: 4px; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after { top: 0; transform: rotate(-45deg); }

/* the quiet menu */
.menu { display: flex; align-items: center; gap: 0.2rem; }

.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 1em;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
  border-radius: 999px;
  transition: color var(--hover-ms) var(--ease);
}
.menu-link:hover { color: var(--text); }
.menu-link .caret { font-size: 0.8em; color: var(--faint); transition: transform 200ms var(--ease); }
.menu-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.menu-link::after {
  content: "";
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 0.28em;
  height: 1.5px;
  border-radius: 1px;
  background: var(--gold);
  box-shadow: 0 0 3px rgba(244, 184, 91, 0.5), 0 0 9px rgba(244, 184, 91, 0.25);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms var(--ease), transform 200ms var(--ease);
}
.menu-link:hover::after,
.menu-link[aria-current="page"]::after,
.menu-link[data-section-current="true"]::after { opacity: 1; transform: scaleX(1); }
.menu-link[aria-current="page"],
.menu-link[data-section-current="true"] { color: var(--text); }

/* instruments panel — the drawer's motion, as a menu */
.menu-group { position: static; }
.menu-panel {
  position: absolute;
  left: max(1rem, calc((100% - 1080px) / 2));
  right: max(1rem, calc((100% - 1080px) / 2));
  top: calc(100% + 0.5rem);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  background: var(--obsidian);
  border: 1px solid var(--outline);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.menu-panel[hidden] { display: none; }
.menu-panel:not(.open) { pointer-events: none; }
.menu-panel.open { opacity: 1; transform: none; }

.panel-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--recess);
  border: 1px solid var(--outline);
  box-shadow: var(--recessed-shadow);
  transition: border-color var(--hover-ms) var(--ease),
              opacity 240ms var(--ease), transform 240ms var(--ease);
  opacity: 0;
  transform: translateY(6px);
  transition-delay: 0ms, calc(40ms + var(--i, 0) * 30ms), calc(40ms + var(--i, 0) * 30ms);
}
.menu-panel.open .panel-card { opacity: 1; transform: none; }
.panel-card:hover,
.panel-card[aria-current="page"] {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.panel-frame { display: block; border-bottom: 1px solid var(--outline-soft); }
.panel-frame img { display: block; width: 100%; height: auto; opacity: 0.9;
  transition: opacity var(--hover-ms) var(--ease); }
.panel-card:hover .panel-frame img { opacity: 1; }
.panel-name {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 0.85em 0.15em;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.panel-name .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent),
              0 0 9px color-mix(in srgb, var(--accent) 25%, transparent); }
.panel-role {
  display: block;
  padding: 0 0.9em 0.8em calc(0.85em + 5px + 0.5em);
  color: var(--faint);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* honest status chip */
.dev-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--recess);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 0.55em 1.1em;
  box-shadow: var(--recessed-shadow);
  white-space: nowrap;
}
.dev-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 3px rgba(244, 184, 91, 0.5), 0 0 9px rgba(244, 184, 91, 0.25);
  animation: breathe 3.2s ease-in-out infinite;
}

/* --------------------------------------------------------- actions/status */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.cta-row.center { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.2rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  font: 500 0.72rem/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color var(--hover-ms) var(--ease),
              color var(--hover-ms) var(--ease),
              background var(--hover-ms) var(--ease),
              transform var(--hover-ms) var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: var(--obsidian);
  background: var(--gold);
  border-color: var(--gold);
}
.button-secondary { color: var(--text); background: var(--recess); }
.button-secondary:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-status li { display: inline-flex; align-items: center; gap: 0.55em; }
.hero-status li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent);
}
.launch-follow {
  text-align: center;
  border-block: 1px solid var(--outline-soft);
  background: color-mix(in srgb, var(--recess) 56%, transparent);
}
.launch-follow .section-lede { margin-inline: auto; }
@keyframes breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------------------------------------------------------------- wells */

.well {
  background: var(--recess);
  border: 1px solid var(--outline);
  border-radius: 9px;
  box-shadow: var(--recessed-shadow);
}

.pill-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.4rem 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 1.05em;
  background: var(--recess);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  box-shadow: var(--recessed-shadow),
              inset 0 0 18px color-mix(in srgb, var(--accent) 6%, transparent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent),
              0 0 9px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* ---------------------------------------------------------------- frames */

.frame { margin-top: clamp(1.8rem, 4vw, 3rem); }

.render {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  border: 1px solid var(--outline);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(0, 0, 0, 0.4);
  background: var(--recess);
}
.render-caption { margin-top: 0.8rem; text-align: right; }

/* -------------------------------------------------------- feature blocks */

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.feature-row.row-flip .feature-copy { order: 2; }
.feature-row.row-flip .feature-media { order: 1; }
.feature-media img { width: 100%; }
.feature-media.media-rail { display: flex; justify-content: center; }
.feature-media.media-rail img { width: min(250px, 64vw); }

.strip { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  border: 1px solid var(--outline);
  box-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.8);
}

.glance {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0.9rem 2.4rem;
  padding: 0;
  margin: clamp(1.8rem, 4vw, 2.8rem) 0 0;
}
.glance li {
  position: relative;
  padding-left: 1.5em;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}
.glance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent),
              0 0 9px color-mix(in srgb, var(--accent) 25%, transparent);
}

kbd {
  font-family: "Inter", monospace;
  font-size: 0.82em;
  font-weight: 600;
  padding: 0.15em 0.55em;
  border-radius: 5px;
  background: var(--recess);
  border: 1px solid var(--outline);
  box-shadow: var(--recessed-shadow);
  color: var(--gold);
}

/* prev/next circulation */
.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding-bottom: 0;
}
.pn-card {
  display: block;
  padding: 1.4rem 1.5rem 0;
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--hover-ms) var(--ease);
}
.pn-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.pn-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5em;
}
.pn-name {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.pn-name .dot {
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent),
              0 0 9px color-mix(in srgb, var(--accent) 25%, transparent);
}
.pn-role { color: var(--faint); font-size: 0.72rem; letter-spacing: 0.22em; }
.pn-frame { display: block; margin-top: 1.1rem; }
.pn-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px 7px 0 0;
  border: 1px solid var(--outline);
  border-bottom: none;
  opacity: 0.92;
  transition: opacity var(--hover-ms) var(--ease);
}
.pn-card:hover .pn-frame img { opacity: 1; }

/* ---------------------------------------------------------------- landing */

.landing-hero {
  padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.landing-hero .lede { margin-inline: auto; }
.landing-hero .eyebrow { margin-bottom: 1.4em; }
.landing-hero .frame { margin-top: clamp(1.4rem, 3vw, 2.2rem); }

.family-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
  padding: 0;
  margin: clamp(1.8rem, 4vw, 2.8rem) auto 0;
}
.family-item { grid-column: span 2; }
.family-item:nth-child(4) { grid-column: 2 / span 2; }
.family-item:nth-child(5) { grid-column: 4 / span 2; }
.family-item a { display: block; text-decoration: none; }
.family-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  border: 1px solid var(--outline);
  box-shadow: 0 22px 60px -24px rgba(0, 0, 0, 0.85);
  transition: border-color var(--hover-ms) var(--ease);
}
.family-item a:hover img,
.family-item a:focus-visible img {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.family-name {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.75rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--hover-ms) var(--ease);
}
.family-item a:hover .family-name { color: var(--accent); }
.family-role { color: var(--faint); }
.family-name .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent),
              0 0 9px color-mix(in srgb, var(--accent) 25%, transparent);
}

.brand-moment { border-block: 1px solid var(--outline-soft); }
.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.brand-icon img {
  display: block;
  width: min(300px, 56vw);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.6));
}

.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding: 0;
  margin: clamp(1.6rem, 4vw, 2.6rem) 0 2.2rem;
}

.product-card { overflow: hidden; transition: border-color var(--hover-ms) var(--ease); }
.product-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.card-frame { display: block; border-bottom: 1px solid var(--outline-soft); }
.card-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity var(--hover-ms) var(--ease);
  opacity: 0.92;
}
.product-card:hover .card-frame img { opacity: 1; }
.card-text { display: block; padding: 1.15rem 1.35rem 1.3rem; }
.card-name {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-name .dot {
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent),
              0 0 9px color-mix(in srgb, var(--accent) 25%, transparent);
}
.card-role {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}
.card-line {
  display: block;
  margin-top: 0.5em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- product */

.product-hero { padding: clamp(2rem, 4.5vw, 3.4rem) 0 clamp(1rem, 3vw, 2rem); }
.product-hero .lede { margin-top: 0.4rem; }

.macro-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: 0;
  margin: clamp(1.6rem, 3.5vw, 2.4rem) 0 0;
}

.macro { padding: 1.3rem 1.4rem 1.35rem; }
.macro-arc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8em;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9em;
}
.arc-sep { color: color-mix(in srgb, var(--accent) 65%, transparent); }
.macro-name {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45em;
}
.macro-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ---------------------------------------------------------------- specs */

.specs {
  margin: 1.8rem 0 1rem;
  padding: 0.4rem 1.6rem;
  box-shadow: var(--hero-shadow);
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--outline-soft);
}
.spec-row:last-child { border-bottom: none; }
.specs dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  align-self: center;
}
.specs dd { margin: 0; font-size: 0.95rem; color: var(--text); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  border-top: 1px solid var(--outline-soft);
  padding: clamp(2.5rem, 5vw, 3.6rem) 0 3rem;
}
.footer-inner {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  text-align: center;
}
.footer-lockup { display: inline-block; height: 27px; width: auto; margin-bottom: 1.4rem; opacity: 0.9; }
.footer-line { font-size: 0.86rem; color: var(--muted); max-width: 46em; margin-inline: auto; }
.footer-quiet { color: var(--faint); font-size: 0.8rem; }
.footer-legal { margin-top: 1.4rem; color: var(--faint); font-size: 0.72rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
  margin-top: 1.6rem;
}
.footer-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  padding: 0.4em 0;
  transition: color var(--hover-ms) var(--ease);
}
.footer-nav a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- motion */

/* Cross-page navigation morphs (View Transitions API, MPA). Renders carry
   view-transition-name per product, so a clicked card morphs into the
   product page hero. Progressive: unsupported browsers navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease);
}

/* Reveal-on-scroll is an enhancement: without the .js gate (set only when a
   working IntersectionObserver exists) every .fx element is fully visible.
   --i staggers siblings (45 ms steps) for cascades. */
html.js .fx {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--reveal-ms) var(--ease),
              transform var(--reveal-ms) var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
html.js .fx.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx { opacity: 1; transform: none; transition: none; }
  .dev-dot { animation: none; }
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- narrow */

@media (max-width: 899px) {
  .brand-grid { grid-template-columns: 1fr; text-align: center; }
  .brand-copy { text-align: left; }
  .family-grid { grid-template-columns: 1fr 1fr; }
  .family-item,
  .family-item:nth-child(4) { grid-column: auto; }
  .family-item:nth-child(5) { grid-column: 1 / -1; }
  .feature-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature-row.row-flip .feature-copy { order: 1; }
  .feature-row.row-flip .feature-media { order: 2; }
  .pn { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- pricing */

.price-band { text-align: center; border-block: 1px solid var(--outline-soft); }
.price-band .lede, .price-band p { margin-inline: auto; }
.price-band h2 .num { color: var(--gold); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
.price-card { padding: 1.8rem 1.9rem 1.9rem; }
.price-card.price-featured {
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  box-shadow: var(--recessed-shadow),
              inset 0 0 32px color-mix(in srgb, var(--gold) 5%, transparent);
}
.price-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6em;
}
.price-featured .price-label { color: var(--gold); }
.price {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  margin: 0 0 0.55em;
}
.price-minus { font-size: 0.36em; color: var(--faint); letter-spacing: 0.04em; }
.price-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-points li {
  position: relative;
  padding: 0.4em 0 0.4em 1.4em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.price-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 3px rgba(244, 184, 91, 0.5), 0 0 9px rgba(244, 184, 91, 0.25);
}

/* ------------------------------------------------------------ new pages */

.faq { margin-top: 1.6rem; }
.faq-item {
  padding: 1.2rem 0 1.3rem;
  border-bottom: 1px solid var(--outline-soft);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 620;
  letter-spacing: 0;
  margin-bottom: 0.4em;
}
.faq-item p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.journal-entry {
  padding: 1.4rem 0 2.4rem;
  border-bottom: 1px solid var(--outline-soft);
}
.journal-entry:last-child { border-bottom: none; }
.journal-date {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}
.journal-entry h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.journal-entry p { color: var(--muted); }

.privacy-card {
  padding: 2rem 2.2rem;
  box-shadow: var(--hero-shadow);
}
.privacy-card p { font-size: 1.05rem; }
.privacy-card .caption { margin-top: 1.4rem; }

.accent-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0;
  margin: 1.8rem 0 0;
}
.accent-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.75em 1.3em;
  background: var(--recess);
  border: 1px solid var(--outline);
  border-radius: 999px;
  box-shadow: var(--recessed-shadow);
  transition: border-color var(--hover-ms) var(--ease),
              box-shadow var(--hover-ms) var(--ease);
}
.accent-chip .dot {
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent),
              0 0 9px color-mix(in srgb, var(--accent) 25%, transparent);
}
.accent-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--recessed-shadow),
              inset 0 0 18px color-mix(in srgb, var(--accent) 7%, transparent);
}
.accent-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.accent-role {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-nav-secondary { margin-top: 0.6rem; }

/* -------------------------------------------------------- micro-details */

/* prose links: gold underline sweeps in */
p a {
  color: var(--gold);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 200ms var(--ease);
}
p a:hover { background-size: 100% 1px; }

html {
  scrollbar-color: #1d2429 var(--obsidian);
}
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb {
  background: #1d2429;
  border-radius: 6px;
  border: 3px solid var(--obsidian);
}
::-webkit-scrollbar-thumb:hover { background: #2a333a; }

/* ---------------------------------------------------------------- narrow */

@media (max-width: 899px) and (min-width: 561px) {
  .menu { order: 3; flex-basis: 100%; justify-content: center; }
  .menu-panel { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header { justify-content: space-between; }
  .menu { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: center; }
  .menu-link { min-height: 44px; }
  .menu-panel { grid-template-columns: 1fr 1fr; }
  .dev-chip { display: none; }
  .family-grid { grid-template-columns: 1fr; }
  .family-item:nth-child(5) { grid-column: auto; }
  .spec-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .pill { white-space: normal; }
}

@media (max-width: 360px) {
  .site-header { gap: 0.5rem; }
  .mobile-menu-toggle { display: inline-flex; }
  html.has-js .menu:not(.mobile-open) { display: none; }
  html.has-js .menu.mobile-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.15rem;
  }
  .menu-group { width: 100%; }
  .menu-link { width: 100%; justify-content: center; }
  .menu-panel { grid-template-columns: 1fr 1fr; }
  .cta-row { align-items: stretch; }
  .cta-row .button { flex: 1 1 100%; }
}
