/* ==========================================================================
   PHP Brilliance — Vanqard Press
   Design concept: "brilliant cut". The book's own cover is built on a single
   idea — a faceted diamond, sharp navy type, a spring-green-to-cyan gradient
   edge. This site is that idea extended into a full system: every section
   boundary is cut on an angle like a facet, pull-quotes get a faceted
   background, and the accent gradient always reads left(green)->right(cyan),
   the same direction it runs on the cover.
   ========================================================================== */

/* ---------- local fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-italic-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-italic-variable.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e033f;
  --ink-soft: #3a3170;
  --ink-faint: #6b63a0;
  --grad-a: #00ff9b;
  --grad-b: #00bdff;
  --blue-light: #c4f5ff;
  --blue-mid: #4fc8ef;
  --blue-deep: #0069b2;
  --paper: #ffffff;
  --bg: #fbfcff;
  --bg-tint: #eef7fb;
  --night: #0a0730;
  --night-soft: #150b4f;
  --night-text: #dfe4ff;
  --night-text-dim: #9b92cf;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --display: "Anton", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wordmark: "Space Grotesk", var(--sans);

  --edge: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--edge);
}

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  color: var(--blue-deep);
}
.on-dark .eyebrow { color: var(--blue-light); }

.gradient-text {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: calc(0.9em + 2px) calc(1.7em + 2px);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0, 189, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(0, 189, 255, 0.65); }
.btn-ghost {
  padding: 0.9em 1.7em;
  border: 2px solid rgba(14, 3, 63, 0.18);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue-deep); background: rgba(0, 189, 255, 0.08); }
.on-dark .btn-ghost { border-color: rgba(223, 228, 255, 0.3); color: var(--night-text); }
.on-dark .btn-ghost:hover { border-color: var(--blue-light); background: rgba(196, 245, 255, 0.08); }

/* ---------- facet divider (the recurring "cut" motif) ---------- */
.facet-divider { display: block; width: 100%; height: clamp(28px, 6vw, 64px); }
.facet-divider--flip { transform: scaleY(-1); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--edge);
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  padding: 0.65rem var(--edge);
  background: rgba(251, 252, 255, 0.85);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(14, 3, 63, 0.08), 0 10px 30px -20px rgba(14, 3, 63, 0.25);
}

.wordmark {
  font-family: var(--wordmark);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.wordmark small {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.3em;
  font-size: 0.55em;
  color: var(--ink-faint);
  margin-top: 0.2em;
}

.main-nav ul { display: flex; gap: clamp(1.2rem, 2vw, 2.4rem); align-items: center; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 0.2em;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 32px;
  position: relative;
  z-index: 110;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute; left: 4px; right: 4px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    background: var(--paper);
    padding: 6.5rem var(--edge) 3rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    box-shadow: 0 20px 40px -20px rgba(14,3,63,0.3);
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .main-nav a { font-size: 1.3rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(8.5rem, 16vw, 11rem) 0 4rem;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 60% at 30% 0%, rgba(0,255,155,0.14), transparent 70%),
              radial-gradient(50% 60% at 90% 10%, rgba(0,189,255,0.16), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy .eyebrow { display: inline-block; margin-bottom: 1.1rem; }
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  font-size: clamp(3rem, 8.2vw, 5.6rem);
  color: var(--ink);
  letter-spacing: 0.005em;
}
.hero-title .line2 { display: block; }
.hero-series {
  margin-top: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  flex-wrap: wrap;
}
.hero-series .tag {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.hero-series .vol {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink-soft);
}
.hero-lede {
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 34em;
}
.status-pill {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 0.95em 0.45em 0.7em;
  border-radius: 999px;
  background: rgba(0, 189, 255, 0.1);
  border: 1px solid rgba(0, 105, 178, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
}
.status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 0 0 3px rgba(0, 189, 255, 0.18);
  flex: none;
}

.hero-ctas {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  flex-wrap: wrap;
}
.hero-meta div { font-size: 0.86rem; color: var(--ink-faint); }
.hero-meta strong { display: block; color: var(--ink); font-size: 0.98rem; }

.hero-gem {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-gem svg { width: min(100%, 460px); height: auto; filter: drop-shadow(0 30px 45px rgba(0, 105, 178, 0.28)); }
.gem-rotor { transform-origin: 200px 230px; animation: gem-sway 7s ease-in-out infinite; }
@keyframes gem-sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}
.gem-sparkle { opacity: 0; animation: sparkle 3.4s ease-in-out infinite; }
.gem-sparkle.s2 { animation-delay: 1.1s; }
.gem-sparkle.s3 { animation-delay: 2.1s; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .gem-rotor { animation: none !important; }
  .gem-sparkle { animation: none !important; opacity: 0.85; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-gem { order: 1; }
  .hero-series, .hero-ctas, .hero-meta { justify-content: center; }
  .hero-lede { margin-inline: auto; }
}

/* ---------- reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- section: the problem (dark) ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-dark {
  background: var(--night);
  color: var(--night-text);
  position: relative;
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 85% 20%, rgba(0,189,255,0.16), transparent 70%),
    radial-gradient(35% 45% at 10% 85%, rgba(0,255,155,0.10), transparent 70%);
}

.problem-head { max-width: 44em; margin-bottom: 2.6rem; }
.problem-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-top: 0.6rem;
  line-height: 1.15;
}
.problem-columns {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.problem-columns p { color: var(--night-text-dim); font-size: 1.02rem; margin-bottom: 1.1rem; max-width: 40em; }
.problem-columns p strong { color: var(--night-text); }

.pull-card {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(196,245,255,0.08), rgba(0,189,255,0.03));
  border: 1px solid rgba(196, 245, 255, 0.16);
}
.pull-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  border-radius: var(--radius) var(--radius) 0 0;
}
.pull-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  line-height: 1.3;
  color: var(--night-text);
}
.pull-card cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* ---------- section: the book ---------- */
.section-book { background: var(--bg); }
.book-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: center;
}
.book-cover-wrap { position: relative; display: flex; justify-content: center; }
.book-cover-frame {
  position: relative;
  max-width: 340px;
  border-radius: 6px;
  box-shadow: 0 40px 70px -25px rgba(14, 3, 63, 0.35), 0 4px 14px rgba(14,3,63,0.12);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.book-cover-frame:hover { transform: rotate(0deg) scale(1.015); }
.book-cover-frame img { border-radius: 6px; }
.book-cover-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px -8px rgba(14,3,63,0.5);
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: var(--ink);
}

.book-copy .eyebrow { margin-bottom: 0.8rem; display: block; }
.book-copy h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  margin-bottom: 1.2rem;
}
.book-copy p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 42em; }
.book-copy p.lede { font-size: 1.12rem; color: var(--ink); }

.feature-list {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.6rem;
}
.feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.feature-list .facet-bullet {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 0.15em;
}
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-cover-wrap { order: -1; margin-bottom: 1rem; }
  .feature-list { grid-template-columns: 1fr; }
}

/* ---------- section: author ---------- */
.section-author { background: var(--bg-tint); }
.author-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: start;
}
.author-portrait {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.author-portrait .clip {
  clip-path: polygon(50% 0%, 95% 22%, 100% 72%, 62% 100%, 8% 88%, 0% 32%);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 30px 60px -20px rgba(14,3,63,0.35);
}
.author-portrait .clip img { width: 100%; height: 100%; object-fit: cover; }
.author-portrait .ring {
  position: absolute;
  inset: -14px;
  clip-path: polygon(50% 0%, 95% 22%, 100% 72%, 62% 100%, 8% 88%, 0% 32%);
  background: linear-gradient(140deg, var(--grad-a), var(--grad-b));
  z-index: -1;
}
.author-copy h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  margin-bottom: 0.3rem;
}
.author-copy .role {
  font-family: var(--serif);
  font-style: italic;
  color: var(--blue-deep);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}
.author-copy p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 46em; }

.chip-row { margin-top: 1.4rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45em 0.95em;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(14,3,63,0.12);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

@media (max-width: 900px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-portrait { margin: 0 auto; }
}

/* ---------- CTA / notify ---------- */
.section-cta {
  position: relative;
  background: linear-gradient(115deg, var(--grad-a) 0%, var(--blue-mid) 45%, var(--grad-b) 100%);
  color: var(--ink);
  overflow: hidden;
}
.section-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0.16) 0 2px,
    transparent 2px 90px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
.cta-inner h2 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.02;
}
.cta-inner p { margin-top: 1rem; max-width: 32em; font-size: 1.05rem; color: rgba(14,3,63,0.8); }

.retailer-card {
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -25px rgba(14,3,63,0.4);
}
.retailer-card p.label {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.retailer-list { display: flex; flex-direction: column; gap: 0.65rem; }
.retailer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85em 1.1em;
  border-radius: 12px;
  border: 1.5px solid rgba(14,3,63,0.14);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
a.retailer-btn {
  cursor: pointer;
}
a.retailer-btn:hover {
  transform: translateX(3px);
  border-color: var(--blue-deep);
  background: linear-gradient(90deg, rgba(0,255,155,0.08), rgba(0,189,255,0.08));
  box-shadow: 0 10px 22px -14px rgba(0,105,178,0.5);
}
.retailer-name { font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.retailer-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
}
.retailer-arrow { display: inline-block; transition: transform 0.2s ease; }
a.retailer-btn:hover .retailer-arrow { transform: translate(2px, -2px); }

.retailer-btn.is-soon {
  background: rgba(14,3,63,0.03);
  border-style: dashed;
}
.retailer-btn.is-soon .retailer-name { color: var(--ink-faint); }
.retailer-btn.is-soon .retailer-status { color: var(--ink-faint); font-style: italic; font-weight: 500; }

.retailer-card .fine { margin-top: 1.1rem; font-size: 0.78rem; color: var(--ink-faint); }

@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .retailer-btn { text-align: left; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-text-dim); padding: 3.2rem 0 2rem; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(223,228,255,0.12);
}
.footer-grid .wordmark { color: var(--night-text); }
.footer-grid .wordmark small { color: var(--night-text-dim); }
.footer-tagline { margin-top: 0.8rem; max-width: 26em; font-size: 0.92rem; }
.footer-nav ul { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; font-weight: 600; color: var(--night-text-dim); }
.footer-nav a:hover { color: var(--night-text); }
.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
  box-shadow: 0 10px 24px -8px rgba(14,3,63,0.5);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- misc ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
