/* ==========================================================================
   Sovereign Terminal — main.css
   A pale lavender sheet on a dark ground. Bento cards in white, ink and one
   violet accent; glass captions; soft 3D shapes drawn in CSS.
   Manrope (headlines, UI, prose) · JetBrains Mono (labels, figures)
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Ground (outside the sheet) & sheet */
  --ground: #101018;
  --bg: #eceef6;
  --bg-rgb: 236, 238, 246;
  --bg-2: #e1e4ef;
  --surface: #ffffff;
  --surface-2: #f5f6fb;

  /* Ink cards */
  --ink: #17171f;
  --ink-rgb: 23, 23, 31;
  --ink-2: #21212c;
  --line: rgba(var(--ink-rgb), 0.08);
  --line-strong: rgba(var(--ink-rgb), 0.16);
  --line-inv: rgba(255, 255, 255, 0.1);

  /* Text */
  --text: #15151e;
  --text-2: #565a6e;
  --text-3: #9195a8;
  --text-prose: #2a2c3a;
  --text-inv: #f4f4f9;
  --text-inv-2: rgba(244, 244, 249, 0.62);

  /* Accent — violet, with a soft tint for chips and a deep shade for text */
  --acc: #7064f0;
  --acc-rgb: 112, 100, 240;
  --acc-soft: #b9b2ff;
  --acc-deep: #4f43d6;
  --acc-tint: #ebe9ff;
  --on-acc: #ffffff;

  /* Decoration */
  --mint: #74d6ba;
  --peach: #f4c18e;

  /* Market semantics */
  --up: #0e9b71;
  --up-rgb: 14, 155, 113;
  --down: #df4860;
  --down-rgb: 223, 72, 96;
  --up-inv: #63e2ba;
  --down-inv: #ff8a9c;
  --warn: #d3961c;

  /* Type */
  --f-sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1260px;
  --gut: 28px;
  --sheet-gap: 12px;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow: 0 24px 60px -32px rgba(40, 34, 110, 0.32);
  --shadow-lg: 0 50px 90px -40px rgba(40, 34, 110, 0.5);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ── 1b. Colour schemes ────────────────────────────────────────────────── */
/* Picked in Customizer → Colour scheme; printed as <html data-scheme="…">.
   "midnight" (Violet, the :root values above) prints no attribute. */

/* Jade */
:root[data-scheme="emerald"] {
  --acc: #13a07c;
  --acc-rgb: 19, 160, 124;
  --acc-soft: #8fe3ca;
  --acc-deep: #0b7a5e;
  --acc-tint: #dff5ee;
}

/* Coral */
:root[data-scheme="sunset"] {
  --acc: #ef5f4c;
  --acc-rgb: 239, 95, 76;
  --acc-soft: #ffb2a7;
  --acc-deep: #c8412f;
  --acc-tint: #fde8e4;
}

/* Azure */
:root[data-scheme="graphite"] {
  --acc: #3069ff;
  --acc-rgb: 48, 105, 255;
  --acc-soft: #a8c0ff;
  --acc-deep: #1d4ed8;
  --acc-tint: #e5edff;
}

/* ── 2. Reset & base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
  background: var(--ground);
}

body {
  font-family: var(--f-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--f-sans);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

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

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  flex: none;
}

.grecaptcha-badge {
  display: none !important;
}

/* ── 3. Layout primitives ──────────────────────────────────────────────── */

/* The sheet: every page sits on one rounded light panel; the footer
   lives on the dark ground beneath it. overflow: clip (not hidden) keeps
   the sticky masthead working. */
.sheet {
  position: relative;
  isolation: isolate;
  margin: var(--sheet-gap) var(--sheet-gap) 0;
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-radius: 36px;
  background:
    radial-gradient(900px 620px at 85% -6%, rgba(var(--acc-rgb), 0.2), transparent 62%),
    radial-gradient(760px 520px at -6% 8%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(900px 700px at 50% 40%, rgba(255, 255, 255, 0.5), transparent 70%),
    var(--bg);
  overflow: clip;
}

.site-main {
  position: relative;
  isolation: isolate;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.container--narrow {
  max-width: 900px;
}

.sec {
  padding-top: clamp(4.5rem, 8vw, 7rem);
}

/* Media wrappers produced by st_thumb() and friends */
[class*="__media"] {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

[class*="__media"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

article:hover [class*="__media"] img,
li:hover [class*="__media"] img {
  transform: scale(1.05);
}

[class*="__media"][class*="--empty"] {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(var(--acc-rgb), 0.28), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(116, 214, 186, 0.3), transparent 55%),
    var(--bg-2);
}

.media__fallback {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0.75rem;
  text-align: center;
}

/* Hover underline shared by every headline link */
h1 a,
h2 a,
h3 a,
h4 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-position: 0 96%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover {
  background-size: 100% 1.5px;
}

/* Whole-card links: the headline link stretches over its positioned card */
.qcard__title a::after,
.lens__row-title a::after,
.ptile__title a::after,
.tile__title a::after,
.mini__title a::after,
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Line clamps */
.deck__title,
.qcard__title,
.show__brief-title,
.mini__title,
.lens__row-title,
.ptile__title,
.tile__title,
.post-card__title,
.row__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ── 4. Buttons, pills, meta, arrows, section heads ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--sm {
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover {
  background: var(--acc);
  box-shadow: 0 14px 28px -14px rgba(var(--acc-rgb), 0.8);
}

.btn--acc {
  background: var(--acc);
  color: var(--on-acc);
  box-shadow: 0 14px 28px -16px rgba(var(--acc-rgb), 0.9);
}
.btn--acc:hover {
  background: var(--acc-deep);
}

.btn--line {
  border-color: var(--ink);
  color: var(--text);
}
.btn--line:hover {
  background: var(--ink);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--text);
}
.btn--light:hover {
  background: var(--acc);
  color: var(--on-acc);
}

.round-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 1.05rem;
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.round-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.round-btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.round-btn--ink:hover {
  background: var(--acc);
  border-color: var(--acc);
}

.pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--acc-tint);
  color: var(--acc-deep);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s;
}
.pill:hover {
  background: var(--acc);
  color: var(--on-acc);
}

.pill--glass {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.meta__date,
.meta__read {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.meta__read::before {
  content: "·";
  margin-right: 0.75rem;
}

.card-label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Round "open" button with a north-east arrow */
.arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.25s, color 0.25s, transform 0.35s var(--ease), border-color 0.25s;
}

article:hover .arrow,
li:hover > .arrow,
a:hover > .arrow {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--on-acc);
  transform: rotate(45deg);
}

/* Pulsing status dot */
.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--up);
  opacity: 0;
  animation: st-ping 2.2s var(--ease) infinite;
}

@keyframes st-ping {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Section head */
.shead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.shead__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.85rem 0.32rem 0.35rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  box-shadow: 0 8px 20px -14px rgba(40, 34, 110, 0.35);
}

/* Little stacked-squares mark, a nod to the 3D tiles */
.shead__eyebrow::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(145deg, var(--acc-soft), var(--acc) 60%, var(--acc-deep));
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

.shead__title {
  margin-top: 1rem;
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.shead__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.35rem;
}

.shead__kicker {
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-2);
}

.shead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.shead__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.shead__more:hover {
  background: var(--ink);
  color: #fff;
}

.shead--ink .shead__eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-inv);
  color: var(--text-inv-2);
  box-shadow: none;
}
.shead--ink .shead__title {
  color: var(--text-inv);
}
.shead--ink .shead__kicker {
  color: var(--text-inv-2);
}
.shead--ink .shead__more {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text-inv);
}
.shead--ink .shead__more:hover {
  background: #fff;
  color: var(--ink);
}

/* ── 4b. Decorative 3D shapes ──────────────────────────────────────────── */
.shape {
  position: absolute;
  display: block;
  pointer-events: none;
  animation: st-float 9s ease-in-out infinite;
}

.shape--pane {
  width: 150px;
  height: 108px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 30px 50px -26px rgba(40, 34, 110, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  --rot: -14deg;
}

.shape--orb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0, var(--acc-soft) 16%, var(--acc) 56%, var(--acc-deep) 100%);
  box-shadow: 0 30px 40px -22px rgba(var(--acc-rgb), 0.75);
  animation-duration: 11s;
}

.shape--capsule {
  width: 124px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fde6c9 0%, var(--peach) 48%, #d9965a 100%);
  box-shadow: 0 22px 30px -18px rgba(170, 100, 40, 0.6);
  --rot: -26deg;
  animation-duration: 10s;
  animation-delay: -3s;
}

.shape--rod {
  width: 150px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #c3f4e5 0%, var(--mint) 50%, #3aa889 100%);
  box-shadow: 0 22px 30px -18px rgba(30, 140, 110, 0.6);
  --rot: 22deg;
  animation-duration: 12s;
  animation-delay: -5s;
}

.shape--tile {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(150deg, #34344a, #121219 70%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 40px -20px rgba(10, 10, 30, 0.6);
  --rot: 12deg;
  animation-delay: -2s;
}

.shape--tile i {
  position: absolute;
  width: 40%;
  height: 16%;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--acc-soft), var(--acc));
  transform: rotate(-35deg);
}
.shape--tile i:nth-child(1) { left: 18%; top: 26%; }
.shape--tile i:nth-child(2) { left: 36%; top: 44%; }
.shape--tile i:nth-child(3) { left: 24%; top: 62%; width: 30%; }

.shape--chip {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(145deg, rgba(var(--acc-rgb), 0.55), rgba(var(--acc-rgb), 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 24px 34px -20px rgba(var(--acc-rgb), 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  --rot: -10deg;
  animation-duration: 8s;
  animation-delay: -4s;
}

@keyframes st-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .shape,
  .live-dot::after {
    animation: none;
  }
  .shape {
    transform: rotate(var(--rot, 0deg));
  }
}

/* ── 5. Masthead ───────────────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0 10px;
}

.masthead__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.masthead.is-stuck .masthead__bar {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 20px 40px -28px rgba(40, 34, 110, 0.45);
}

.masthead__brand {
  min-width: 0;
}

.masthead__logo img,
.masthead__logo-img {
  height: var(--logo-h, 45px);
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

.site-logo,
.footer-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.masthead__nav .nav-list a {
  display: block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}

.masthead__nav .nav-list a:hover,
.masthead__nav .current-menu-item > a,
.masthead__nav .current-menu-parent > a {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 16px -10px rgba(40, 34, 110, 0.4);
}

.masthead__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
}

.search-panel {
  margin-top: 0.75rem;
}

.search-panel__form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-panel__icon {
  color: var(--text-3);
}

.search-panel__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-size: 1rem;
  outline: none;
}

/* ── 6. Inner-page rate strip ──────────────────────────────────────────── */
.ratebar {
  padding-bottom: 0.25rem;
}

.ratebar__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ratebar__flag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s;
}
.ratebar__flag:hover {
  background: var(--acc);
}

.ratebar__list {
  display: flex;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.ratebar__list::-webkit-scrollbar {
  display: none;
}

.cap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.cap__sym {
  color: var(--text-3);
}

.cap__val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cap__chg.is-up { color: var(--up); }
.cap__chg.is-down { color: var(--down); }
.cap__chg.is-flat { color: var(--text-3); }

/* ── 7. Mobile drawer ──────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 20px));
  padding: 1.25rem;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  transform: translateX(calc(100% + 20px));
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer__logo img,
.drawer__logo-img {
  height: 40px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}

.drawer__close {
  font-size: 1.4rem;
}

.drawer__eyebrow {
  margin-top: 2rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-list--drawer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.nav-list--drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background 0.2s, color 0.2s;
}

.nav-list--drawer a::after {
  content: "→";
  color: var(--text-3);
}

.nav-list--drawer a:hover {
  background: var(--acc-tint);
  color: var(--acc-deep);
}

.drawer__foot {
  margin-top: auto;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--text-inv);
}

.drawer__note {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-inv-2);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(16, 16, 24, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-scrim.is-visible {
  opacity: 1;
}

/* ── 8. Hero — coverflow deck ──────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__decor {
  position: absolute;
  inset: -80px 0 0;
  z-index: 0;
  pointer-events: none;
}

.hero__decor .shape--pane { top: 16%; left: 4%; }
.hero__decor .shape--orb { top: 9%; right: 8%; }
.hero__decor .shape--capsule { top: 48%; left: 2%; }
.hero__decor .shape--rod { top: 44%; right: 1%; }
.hero__decor .shape--tile { bottom: 2%; left: 9%; }
.hero__decor .shape--chip { bottom: 9%; right: 11%; }

.hero__head {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.hero__date {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-2);
  box-shadow: 0 10px 24px -18px rgba(40, 34, 110, 0.5);
}

.hero__date-sep {
  color: var(--text-3);
}

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.7rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero__title span {
  display: inline-block;
  padding-bottom: 0.06em;
  background: linear-gradient(95deg, var(--acc-deep) 0%, var(--acc) 55%, var(--acc-soft) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__dek {
  max-width: 58ch;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-2);
}

.deck {
  --w: min(760px, 64vw);
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
}

.deck__stage {
  position: relative;
  height: calc(var(--w) * 0.6);
  perspective: 1800px;
}

.deck__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--w);
  aspect-ratio: 5 / 3;
  margin-left: calc(var(--w) / -2);
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 60px 90px -50px rgba(30, 24, 100, 0.65);
  transition: transform 0.85s var(--ease), opacity 0.6s, filter 0.6s;
  will-change: transform;
}

.deck__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.deck__card[data-pos="0"] {
  z-index: 5;
  transform: none;
}
.deck__card[data-pos="1"],
.deck__card[data-pos="-1"] {
  z-index: 4;
  opacity: 0.92;
  filter: saturate(0.75) brightness(0.92);
  cursor: pointer;
}
.deck__card[data-pos="1"] { transform: translateX(44%) scale(0.78) rotateY(-26deg); }
.deck__card[data-pos="-1"] { transform: translateX(-44%) scale(0.78) rotateY(26deg); }
.deck__card[data-pos="2"],
.deck__card[data-pos="-2"] {
  z-index: 3;
  opacity: 0.5;
  filter: saturate(0.5) brightness(0.85);
  cursor: pointer;
}
.deck__card[data-pos="2"] { transform: translateX(74%) scale(0.6) rotateY(-32deg); }
.deck__card[data-pos="-2"] { transform: translateX(-74%) scale(0.6) rotateY(32deg); }

.deck__media {
  position: absolute;
  inset: 0;
}

.deck__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 25, 0) 45%, rgba(10, 10, 25, 0.45));
}

.deck__cap {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  width: min(560px, calc(100% - 36px));
  padding: 1rem 1.2rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: opacity 0.45s, transform 0.6s var(--ease);
}

.deck__card:not([data-pos="0"]) .deck__cap {
  opacity: 0;
  transform: translateY(12px);
}

.deck__title {
  margin-top: 0.6rem;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.deck__open {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.deck__card:not([data-pos="0"]) .deck__open {
  opacity: 0;
}

.deck__bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.deck.is-live .deck__bar {
  display: flex;
}

.deck__dots {
  display: flex;
  gap: 0.35rem;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.deck__dot {
  position: relative;
  overflow: hidden;
  min-width: 48px;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  transition: background 0.25s, color 0.25s;
}

.deck__dot:hover {
  color: var(--text);
}

.deck__dot.is-active {
  background: var(--ink);
  color: #fff;
}

.deck__dot i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--acc-soft);
}

.deck__dot.is-running i {
  animation: st-fill var(--deck-delay, 6500ms) linear forwards;
}

@keyframes st-fill {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .deck__card,
  .deck__cap {
    transition: none;
  }
}

/* ── 9. Rates board ────────────────────────────────────────────────────── */
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
}

.board__idle {
  padding: 2rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text-2);
}

.board__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--r-xl);
}

.board__crypto,
.board__breadth {
  grid-column: 1 / span 5;
}

.board__fx {
  display: flex;
  flex-direction: column;
  grid-column: 6 / -1;
  grid-row: 1 / span 2;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.board__label {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.board__live,
.board__asof {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
}

.board__asof {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}

/* Crypto — ink card */
.board__crypto {
  background: var(--ink);
  color: var(--text-inv);
}

.board__crypto::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -90px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--acc-rgb), 0.45), transparent 65%);
}

.board__crypto .board__label {
  color: var(--text-inv-2);
}

.board__live {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inv);
}

.coin {
  padding: 1.05rem 0 0.2rem;
}

.coin + .coin {
  margin-top: 0.9rem;
  border-top: 1px solid var(--line-inv);
}

.coin__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.coin__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(150deg, #fde3c4, var(--peach) 55%, #cf8a4c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ink);
}

.coin:nth-child(2) .coin__badge {
  background: linear-gradient(150deg, #dcd8ff, var(--acc-soft) 45%, var(--acc));
}

.coin__name {
  font-weight: 700;
}

.coin__chg {
  margin-left: auto;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
}

.coin__chg.is-up { color: var(--up-inv); background: rgba(99, 226, 186, 0.12); }
.coin__chg.is-down { color: var(--down-inv); background: rgba(255, 138, 156, 0.12); }

.coin__price {
  display: block;
  margin: 0.6rem 0 0.85rem;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.coin__meter {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.coin__meter::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: -4px;
  bottom: -4px;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
}

.coin__meter i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
}

.coin__meter.is-up i {
  left: 50%;
  width: calc(var(--v) * 50%);
  background: linear-gradient(90deg, rgba(99, 226, 186, 0.4), var(--up-inv));
}

.coin__meter.is-down i {
  right: 50%;
  width: calc(var(--v) * -50%);
  background: linear-gradient(270deg, rgba(255, 138, 156, 0.4), var(--down-inv));
}

.board__foot {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--text-inv-2);
}

/* Breadth — violet card */
.board__breadth {
  background:
    radial-gradient(260px 200px at 100% 0%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(150deg, var(--acc), var(--acc-deep));
  color: var(--on-acc);
}

.board__breadth .board__label {
  color: rgba(255, 255, 255, 0.75);
}

.breadth__fig {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.breadth__fig span {
  opacity: 0.5;
}

.breadth__text {
  max-width: 32ch;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.88;
}

.breadth__bar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  margin-top: 1.25rem;
}

.breadth__bar li {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 52px;
  padding-bottom: 6px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  font-family: var(--f-mono);
  font-size: 0.56rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.breadth__bar li.is-up {
  border: none;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.82));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06);
  color: var(--acc-deep);
}

.breadth__bar li.is-flat {
  border-style: solid;
  background: rgba(255, 255, 255, 0.18);
}

.breadth__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  opacity: 0.85;
}

.breadth__legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.4rem;
  border-radius: 3px;
  vertical-align: -1px;
}
.breadth__legend i.is-up { background: #fff; }
.breadth__legend i.is-down { border: 1px dashed rgba(255, 255, 255, 0.8); }

.breadth__mover {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
}

.breadth__mover b {
  font-family: var(--f-mono);
  font-size: 0.78rem;
}

.breadth__mover span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

/* FX table */
.fx__cols,
.fx__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.2fr) 112px minmax(0, 0.85fr) 78px;
  align-items: center;
  gap: 0.9rem;
}

.fx__cols {
  margin-top: 1.1rem;
  padding: 0 0.7rem 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fx__cols span:first-child {
  grid-column: 1 / span 2;
}

.fx__cols span:nth-child(3),
.fx__cols span:nth-child(4) {
  text-align: right;
}

.fx__cols span:last-child {
  text-align: right;
}

/* Rows share the card's height so the table ends with its neighbours */
.fx {
  display: grid;
  flex: 1;
  grid-auto-rows: 1fr;
  gap: 0.45rem;
}

.fx__note {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: 0.62rem;
  line-height: 1.6;
  color: var(--text-3);
}

.fx__row {
  padding: 0.55rem 0.7rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

.fx__row:hover {
  background: var(--surface);
  border-color: rgba(var(--acc-rgb), 0.35);
  transform: translateX(3px);
}

.fx__badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--acc-deep);
}

.fx__id {
  min-width: 0;
}

.fx__id b {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fx__id small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.76rem;
  color: var(--text-3);
}

.fx__spark .spark {
  width: 112px;
  height: 30px;
}

.spark__line {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.spark__area {
  fill: rgba(var(--ink-rgb), 0.05);
}

.fx__spark.is-up .spark__line { stroke: var(--up); }
.fx__spark.is-up .spark__area { fill: rgba(var(--up-rgb), 0.12); }
.fx__spark.is-down .spark__line { stroke: var(--down); }
.fx__spark.is-down .spark__area { fill: rgba(var(--down-rgb), 0.1); }

.fx__rate {
  justify-self: end;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx__chg {
  justify-self: end;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx__chg.is-up { color: var(--up); }
.fx__chg.is-down { color: var(--down); }
.fx__chg.is-flat { color: var(--text-3); }

/* ── 10. Stock — four cards ────────────────────────────────────────────── */
.quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.qcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  border-radius: var(--r-xl);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.qcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.qcard--light {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.qcard--ink {
  background:
    radial-gradient(240px 180px at 100% 0%, rgba(var(--acc-rgb), 0.35), transparent 70%),
    var(--ink);
  color: var(--text-inv);
}

.qcard__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qcard__n {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--acc-tint);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--acc-deep);
}

.qcard--ink .qcard__n {
  background: rgba(255, 255, 255, 0.09);
  color: var(--acc-soft);
}

.qcard--ink .meta__date {
  color: var(--text-inv-2);
}

.qcard__go {
  margin-left: auto;
  width: 38px;
  height: 38px;
}

.qcard--ink .qcard__go {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: var(--text-inv);
}

.qcard__title {
  min-height: calc(1.25em * 3);
  margin: 1.1rem 0.15rem 1.25rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.qcard__media {
  margin-top: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

/* ── 11. Business — showcase ───────────────────────────────────────────── */
.show {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 1.1rem;
}

.show--solo {
  grid-template-columns: minmax(0, 1fr);
}

.show__lead {
  grid-row: span 2;
  padding: 12px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.show__frame {
  position: relative;
}

.show__media {
  aspect-ratio: 5 / 3;
  border-radius: 22px;
}

.show__tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  pointer-events: none;
}

.show__body {
  padding: 1.2rem 0.9rem 0.9rem;
}

.show__title {
  margin-top: 0.85rem;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.show__dek {
  max-width: 62ch;
  margin-top: 0.75rem;
  line-height: 1.6;
  color: var(--text-2);
}

.show__ink {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(260px 200px at 0% 100%, rgba(var(--acc-rgb), 0.35), transparent 70%),
    var(--ink);
  color: var(--text-inv);
}

.show__ink .card-label {
  color: var(--text-inv-2);
}

.show__briefs {
  align-self: stretch;
  margin: 0.4rem 0 1.25rem;
}

.show__briefs li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-inv);
}

.show__n {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--acc-soft);
  padding-top: 0.15rem;
}

.show__brief-title {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.show__ink .meta__date {
  color: var(--text-inv-2);
}

.show__ink .btn {
  margin-top: auto;
}

.show__list {
  display: grid;
  gap: 0.35rem;
  padding: 8px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.mini {
  position: relative;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 8px;
  border-radius: 20px;
  transition: background 0.2s;
}

.mini:hover {
  background: var(--surface-2);
}

.mini__media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.mini__title {
  margin-top: 0.3rem;
  font-size: 0.98rem;
  line-height: 1.3;
}

/* ── 12. Market clock — 24h dial on an ink panel ───────────────────────── */
.clock {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 3.5vw, 2.75rem);
  border-radius: 34px;
  background:
    radial-gradient(520px 420px at 22% 45%, rgba(var(--acc-rgb), 0.3), transparent 65%),
    radial-gradient(400px 300px at 100% 100%, rgba(116, 214, 186, 0.12), transparent 70%),
    var(--ink);
  color: var(--text-inv);
}

.clock__dial-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 1;
  container-type: inline-size;
}

.dial {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dial__tracks circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 9;
}

.dial__ticks line {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.dial__ticks line.is-major {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.6;
}

.dial__arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 9;
  stroke-linecap: round;
  transition: opacity 0.2s, stroke-width 0.2s;
}

.dial__arc.is-live {
  stroke: var(--acc-soft);
  filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), 0.9));
}

.dial.has-focus .dial__arc {
  opacity: 0.15;
}

.dial.has-focus .dial__arc.is-focus {
  opacity: 1;
  stroke-width: 12;
}

.dial__hand line {
  stroke: var(--peach);
  stroke-width: 2;
  stroke-linecap: round;
}

.dial__hand circle {
  fill: var(--peach);
  stroke: var(--ink);
  stroke-width: 3;
}

.dial__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.dial__label,
.dial__zone {
  font-family: var(--f-mono);
  font-size: max(9px, 2.2cqi);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-inv-2);
}

.dial__time {
  font-size: 7.4cqi;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.dial__zone {
  max-width: 24cqi;
  overflow-wrap: anywhere;
}

.dial__hour {
  position: absolute;
  font-family: var(--f-mono);
  font-size: max(9px, 2.1cqi);
  color: var(--text-inv-2);
}

.dial__hour--top { top: -0.2em; left: 50%; transform: translateX(-50%); }
.dial__hour--bottom { bottom: -0.2em; left: 50%; transform: translateX(-50%); }
.dial__hour--right { right: -0.4em; top: 50%; transform: translateY(-50%); }
.dial__hour--left { left: -0.4em; top: 50%; transform: translateY(-50%); }

.clock__side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.clock__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.clock__fig {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-inv);
}

.clock__fig:first-child {
  background: linear-gradient(150deg, var(--acc), var(--acc-deep));
  border-color: transparent;
}

.clock__label {
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inv-2);
}

.clock__fig:first-child .clock__label {
  color: rgba(255, 255, 255, 0.78);
}

.clock__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.venues {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.venue {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.95rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-inv);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.venue:hover,
.venue:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
}

.venue__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.venue__code {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-inv-2);
}

.venue__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.venue__city {
  margin-top: 0.5rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.venue__hours,
.venue__status {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--text-inv-2);
}

.venue__status {
  margin-top: 0.55rem;
  white-space: pre-line;
}

.venue.is-open {
  border-color: rgba(var(--acc-rgb), 0.7);
  background: rgba(var(--acc-rgb), 0.18);
}

.venue.is-open .venue__dot {
  border-color: var(--up-inv);
  background: var(--up-inv);
  box-shadow: 0 0 0 4px rgba(99, 226, 186, 0.18);
}

.venue.is-open .venue__status {
  color: var(--acc-soft);
}

.venue.is-break .venue__dot {
  border-color: var(--peach);
  background: var(--peach);
}

.clock__note {
  grid-column: 1 / -1;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-inv);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  line-height: 1.6;
  color: var(--text-inv-2);
}

/* ── 13. Tech — panel + stats card ─────────────────────────────────────── */
.lens {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 1.1rem;
}

.lens__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.1rem;
  padding: 12px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.lens__panel--solo {
  grid-template-columns: minmax(0, 1fr);
}

.lens__lead {
  padding-bottom: 0.75rem;
}

.lens__media {
  aspect-ratio: 5 / 3;
  border-radius: 20px;
}

.lens__lead .meta {
  margin-top: 1rem;
  padding-inline: 0.5rem;
}

.lens__title {
  margin-top: 0.7rem;
  padding-inline: 0.5rem;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.lens__dek {
  margin-top: 0.6rem;
  padding-inline: 0.5rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-2);
}

.lens__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lens__row {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 0.9rem;
  flex: 1;
  padding: 8px 12px 8px 8px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
}

.lens__row:hover {
  background: var(--acc-tint);
  border-color: rgba(var(--acc-rgb), 0.3);
}

.lens__media-sm {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.lens__row-meta {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--text-3);
}

.lens__row-meta .meta__date {
  font-size: inherit;
}

.lens__row-title {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.lens__plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 1rem;
  color: var(--text-2);
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease);
}

.lens__row:hover .lens__plus {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
  transform: rotate(90deg);
}

.lens__side {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(300px 240px at 100% 100%, rgba(var(--acc-rgb), 0.4), transparent 70%),
    var(--ink);
  color: var(--text-inv);
}

.lens__side .card-label {
  color: var(--text-inv-2);
}

.lens__stats {
  display: grid;
  gap: 1rem;
  align-self: stretch;
}

.lens__stat {
  padding-top: 1rem;
  border-top: 1px solid var(--line-inv);
}

.lens__stat strong {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.lens__stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-inv-2);
}

.lens__note {
  max-width: 30ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-inv-2);
}

.lens__side .btn {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.lens__cube {
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -18px;
  width: 130px;
  height: 130px;
  border-radius: 32px;
  background: linear-gradient(150deg, #3a3a52, #16161f 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: rotate(14deg);
}

.lens__cube i {
  position: absolute;
  height: 16%;
  border-radius: 7px;
  background: linear-gradient(180deg, var(--acc-soft), var(--acc));
  transform: rotate(-35deg);
}
.lens__cube i:nth-child(1) { left: 18%; top: 24%; width: 40%; }
.lens__cube i:nth-child(2) { left: 36%; top: 42%; width: 40%; }
.lens__cube i:nth-child(3) { left: 22%; top: 60%; width: 28%; }

/* ── 14. Politics — violet lead + tiles ────────────────────────────────── */
.policy__lead {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  padding: 12px;
  border-radius: 34px;
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(255, 255, 255, 0.25), transparent 70%),
    linear-gradient(140deg, var(--acc), var(--acc-deep));
  color: var(--on-acc);
}

.policy__media {
  aspect-ratio: 5 / 3;
  border-radius: 24px;
}

.policy__body {
  padding: 1rem clamp(0.5rem, 2.5vw, 2rem) 1rem 0;
}

.policy__body .meta__date {
  color: rgba(255, 255, 255, 0.75);
}

.policy__title {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.policy__dek {
  margin-top: 0.85rem;
  line-height: 1.6;
  opacity: 0.88;
}

.policy__body .btn {
  margin-top: 1.4rem;
}

.policy__body .btn--ink:hover {
  background: #fff;
  color: var(--ink);
}

.policy__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.ptile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.2rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}

.ptile:hover {
  transform: translateY(-4px);
}

.ptile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ptile__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--acc-soft), var(--acc));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
}

.ptile__title {
  margin: 1.1rem 0 1.2rem;
  font-size: 1.05rem;
  line-height: 1.3;
  -webkit-line-clamp: 4;
}

.ptile__go {
  margin-top: auto;
  align-self: flex-end;
  width: 38px;
  height: 38px;
}

/* ── 15. Digital Assets — ink band ─────────────────────────────────────── */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 36px;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(var(--acc-rgb), 0.38), transparent 65%),
    radial-gradient(500px 360px at 0% 100%, rgba(116, 214, 186, 0.14), transparent 65%),
    var(--ink);
  color: var(--text-inv);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tile {
  position: relative;
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 9px;
  border-radius: 22px;
  border: 1px solid var(--line-inv);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s, border-color 0.25s;
}

.tile:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--acc-rgb), 0.6);
}

.tile__media {
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  background: var(--ink-2);
}

.tile__body {
  padding: 0.2rem 0.4rem 0.2rem 0;
}

.tile__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tile__n {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--acc-soft);
}

.tile .meta__date {
  color: var(--text-inv-2);
}

.tile__title {
  margin-top: 0.45rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.32;
}

/* ── 16. Money habits ──────────────────────────────────────────────────── */
.habits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.habit {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.habit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.habit__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* A small 3D block per tile, in four tones */
.habit__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 14px rgba(0, 0, 0, 0.16),
    0 16px 24px -14px var(--glow, rgba(var(--acc-rgb), 0.8));
  transform: rotate(-6deg);
  transition: transform 0.4s var(--ease);
}

.habit:hover .habit__icon {
  transform: rotate(0deg) translateY(-2px);
}

.habit--t0 .habit__icon { background: linear-gradient(150deg, var(--acc-soft), var(--acc) 55%, var(--acc-deep)); }
.habit--t1 .habit__icon { background: linear-gradient(150deg, #c2f4e4, var(--mint) 50%, #31a483); --glow: rgba(49, 164, 131, 0.7); }
.habit--t2 .habit__icon { background: linear-gradient(150deg, #fde4c6, var(--peach) 50%, #cf8a4c); --glow: rgba(207, 138, 76, 0.7); color: var(--ink); }
.habit--t3 .habit__icon { background: linear-gradient(150deg, #3d3d55, var(--ink) 70%); --glow: rgba(10, 10, 30, 0.6); }

.habit__n {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
}

.habit__title {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.25;
}

.habit__text {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ── 17. Desks ─────────────────────────────────────────────────────────── */
.desks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.desk__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 10px 1.2rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.desk__link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.desk__media {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

.desk__link:hover .desk__media img {
  transform: scale(1.05);
}

.desk__count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 0.64rem;
  font-weight: 600;
}

.desk__name {
  margin: 1rem 0.45rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.desk__link:hover .desk__name {
  color: var(--acc-deep);
}

.desk__eyebrow {
  margin: 0.3rem 0.45rem 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-2);
}

.desk__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ── 18. Newsletter ────────────────────────────────────────────────────── */
.signup__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  border-radius: 36px;
  background:
    radial-gradient(700px 420px at 85% 0%, rgba(var(--acc-rgb), 0.5), transparent 62%),
    radial-gradient(500px 380px at 0% 100%, rgba(116, 214, 186, 0.14), transparent 65%),
    var(--ink);
  color: var(--text-inv);
}

.signup__decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.signup__decor .shape--orb { top: -26px; right: 38%; width: 70px; height: 70px; }
.signup__decor .shape--capsule { bottom: 8%; left: -44px; }
.signup__decor .shape--pane {
  top: 30px;
  right: -40px;
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.signup__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 2.5rem;
}

.signup__eyebrow {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-inv);
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-inv-2);
}

.signup__title {
  max-width: 15ch;
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4.8vw, 3.9rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.signup__sub {
  max-width: 52ch;
  margin-top: 1.1rem;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--text-inv-2);
}

.signup__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.signup__facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 600;
}

.signup__facts li::before {
  content: "✓";
  font-size: 0.75rem;
  color: var(--up-inv);
}

/* Mock briefing card */
.signup__art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.mail {
  padding: 1.2rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6);
  transform: rotate(-4deg);
}

.mail__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mail__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--acc-soft), var(--acc));
  color: #fff;
}

.mail__from b {
  display: block;
  font-size: 0.92rem;
}

.mail__from small {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  color: var(--text-inv-2);
}

.mail__subj {
  margin: 1rem 0 0.6rem;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mail__lines li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.mail__lines b {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--acc-soft);
}

.mail__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-top: 1rem;
}

.mail__bars i {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--acc-soft), rgba(var(--acc-rgb), 0.35));
}
.mail__bars i:nth-child(1) { height: 40%; }
.mail__bars i:nth-child(2) { height: 66%; }
.mail__bars i:nth-child(3) { height: 48%; background: linear-gradient(180deg, var(--mint), rgba(116, 214, 186, 0.3)); }
.mail__bars i:nth-child(4) { height: 88%; }
.mail__bars i:nth-child(5) { height: 72%; background: linear-gradient(180deg, var(--peach), rgba(244, 193, 142, 0.3)); }

.signup__chip {
  position: absolute;
  top: -14px;
  right: -8px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--peach);
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.5);
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink);
  transform: rotate(8deg);
}

.signup__card {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 26px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.55);
}

.signup__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  margin-top: 1.4rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--text-inv-2);
}

.signup__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CF7 — markup is owned by the plugin, so we only restyle it.
   The form becomes three numbered steps side by side:
     01 .form-options   edition checkboxes → stacked tiles
     02 .form-topics    optional topic checkboxes → chips
     03 .form-fields    email + submit, with .form-privacy under it */
.signup .hidden-fields-container,
.signup .screen-reader-response {
  display: none;
}

.signup .wpcf7-form {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas:
    "opt top fld"
    "opt top prv"
    "out out out";
  grid-template-rows: auto 1fr auto;
  counter-reset: st-step;
}

.signup .wpcf7-form p {
  margin: 0;
}

.signup .wpcf7-form br {
  display: none;
}

.signup .wpcf7-list-item {
  display: block;
  margin: 0;
}

.signup .form-options {
  grid-area: opt;
  padding-right: clamp(1rem, 2.5vw, 2rem);
}

.signup .form-topics {
  grid-area: top;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}

.signup .form-fields {
  grid-area: fld;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}

.signup .form-privacy {
  grid-area: prv;
  padding: 1rem 0 0 clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}

/* Step badges: violet, ink, outline */
.signup .form-options::before,
.signup .form-topics::before,
.signup .form-fields::before {
  counter-increment: st-step;
  content: counter(st-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.signup .form-options::before {
  background: linear-gradient(145deg, var(--acc-soft), var(--acc));
  border-color: transparent;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.signup .form-topics::before {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.signup .form-label,
.signup .form-fields p::before {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.signup .form-fields p::before {
  content: "Your inbox";
  flex: 1 0 100%;
  margin-bottom: 0.2rem;
}

/* Edition tiles, stacked */
.signup .form-options .wpcf7-checkbox,
.signup .form-options .wpcf7-radio {
  display: grid;
  gap: 0.5rem;
}

.signup .form-options .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.signup .form-options .wpcf7-list-item label:hover {
  border-color: var(--acc);
}

.signup .form-options .wpcf7-list-item label:has(input:checked) {
  background: var(--acc-tint);
  border-color: var(--acc);
  color: var(--text);
}

.signup .form-options input[type="checkbox"],
.signup .form-options input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.05rem 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface) center / 11px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.signup .form-options input[type="radio"] {
  border-radius: 50%;
}

.signup .form-options input:checked {
  background-color: var(--acc);
  border-color: var(--acc);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Topic chips */
.signup .form-topics .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.signup .form-topics .wpcf7-list-item label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.signup .form-topics .wpcf7-list-item label::before {
  content: "+";
  font-family: var(--f-mono);
  color: var(--text-3);
}

.signup .form-topics .wpcf7-list-item label:hover {
  border-color: var(--ink);
  color: var(--text);
}

.signup .form-topics input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.signup .form-topics .wpcf7-list-item label:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.signup .form-topics .wpcf7-list-item label:has(input:checked)::before {
  content: "✓";
  color: var(--acc-soft);
}

.signup .form-options label:has(input:focus-visible),
.signup .form-topics label:has(input:focus-visible) {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* Email above a full-width submit */
.signup .form-fields p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.signup .form-fields .wpcf7-form-control-wrap {
  display: contents;
}

.signup .wpcf7-email {
  flex: 1 0 100%;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  font-family: var(--f-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239195a8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") 1.1rem center / 18px no-repeat;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 1.2rem 0 3rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup .wpcf7-email::placeholder {
  color: var(--text-3);
}

.signup .wpcf7-email:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 4px rgba(var(--acc-rgb), 0.18);
}

.signup .wpcf7-email.wpcf7-not-valid {
  border-color: var(--down);
}

.signup .wpcf7-submit {
  flex: 1 0 100%;
  order: 2;
  min-height: 54px;
  padding: 0 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.signup .wpcf7-submit:hover {
  background: var(--acc);
  color: var(--on-acc);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -16px rgba(var(--acc-rgb), 0.9);
}

.signup .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Spinner sits inside the right end of the submit button instead of
   taking a row of its own under it. The button is always the last item
   in the row, so pinning to the bottom lines it up. */
.signup .form-fields p {
  position: relative;
}

.signup .wpcf7-spinner {
  position: absolute;
  right: 16px;
  bottom: 15px;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.signup .wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  border-radius: var(--r-sm);
  background: rgba(var(--down-rgb), 0.08);
  border: 1px solid rgba(var(--down-rgb), 0.3);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--down);
  width: fit-content;
  max-width: 100%;
  animation: st-tip-in 0.25s ease-out;
}

.signup .wpcf7-not-valid-tip::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--down);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

@keyframes st-tip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.signup .form-fields .wpcf7-not-valid-tip {
  order: 1;
  flex: 1 0 100%;
  width: auto;
  margin: 0;
}

.signup .wpcf7-checkbox.wpcf7-not-valid .wpcf7-list-item label {
  border-style: dashed;
  border-color: var(--down);
}

/* Acceptance */
.signup .form-privacy .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-2);
}

.signup .form-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 0.2em;
  accent-color: var(--acc);
  cursor: pointer;
}

.signup .wpcf7-list-item-label a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  color: var(--text);
}

.signup .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] {
  outline: 2px solid var(--down);
  outline-offset: 2px;
}

.signup .form-privacy .wpcf7-not-valid-tip {
  margin-left: 1.6rem;
}

/* Form-level response banner */
.signup .wpcf7-response-output {
  --tone: var(--text-2);
  --tone-rgb: var(--ink-rgb);
  --icon: "i";
  grid-area: out;
  position: relative;
  display: none;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: 0.8rem;
  width: 100%;
  margin: 1.4rem 0 0 !important;
  padding: 0.8rem 1rem 0.8rem 0.8rem !important;
  border: 1px solid rgba(var(--tone-rgb), 0.35) !important;
  border-radius: var(--r-md);
  background: rgba(var(--tone-rgb), 0.06);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  animation: st-tip-in 0.3s ease-out;
}

.signup .wpcf7-response-output::before {
  content: var(--icon);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tone);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.signup .wpcf7-form.sent .wpcf7-response-output {
  --tone: var(--up);
  --tone-rgb: var(--up-rgb);
  --icon: "✓";
  display: grid;
}

.signup .wpcf7-form.invalid .wpcf7-response-output,
.signup .wpcf7-form.unaccepted .wpcf7-response-output,
.signup .wpcf7-form.payment-required .wpcf7-response-output {
  --tone: var(--warn);
  --tone-rgb: 211, 150, 28;
  --icon: "!";
  display: grid;
}

.signup .wpcf7-form.spam .wpcf7-response-output,
.signup .wpcf7-form.failed .wpcf7-response-output,
.signup .wpcf7-form.aborted .wpcf7-response-output {
  --tone: var(--down);
  --tone-rgb: var(--down-rgb);
  --icon: "×";
  display: grid;
}

/* ── 19. Archive, search & card grids ──────────────────────────────────── */
.archive-main,
.page-main,
.error-main,
.single-main {
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.archive-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 34px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(var(--acc-rgb), 0.45), transparent 65%),
    var(--ink);
  color: var(--text-inv);
}

.archive-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 6%;
  top: 18%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0, var(--acc-soft) 16%, var(--acc) 56%, var(--acc-deep) 100%);
  box-shadow: 0 30px 40px -22px rgba(var(--acc-rgb), 0.8);
}

.archive-head .shead__eyebrow {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-inv);
  color: var(--text-inv-2);
  box-shadow: none;
}

.archive-head__title {
  margin-top: 1rem;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.archive-head__title--query {
  overflow-wrap: anywhere;
}

.archive-head__count {
  max-width: 40ch;
  font-size: 1.02rem;
  color: var(--text-inv-2);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  margin-top: 1.1rem;
  padding: 12px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.feature__media {
  aspect-ratio: 5 / 3;
  border-radius: 22px;
}

.feature__body {
  padding: 1rem clamp(0.5rem, 2.5vw, 1.75rem) 1rem 0;
}

.feature__flag {
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.feature__title {
  margin-top: 1rem;
  font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.feature__dek {
  margin-top: 0.9rem;
  line-height: 1.6;
  color: var(--text-2);
}

.feature__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.feature__read,
.post-card__read {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card__media {
  aspect-ratio: 5 / 3;
  border-radius: 20px;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 0.6rem 0.6rem;
}

.post-card__title {
  margin-top: 0.8rem;
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.post-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}

.post-card__read {
  margin-top: auto;
  padding-top: 1rem;
}

.pagination {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination a.page-numbers:hover {
  border-color: var(--acc);
  color: var(--acc-deep);
}

.pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

.no-results {
  margin-top: 1.1rem;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  text-align: center;
}

.no-results p {
  margin-bottom: 1.4rem;
  font-size: 1.1rem;
  color: var(--text-2);
}

/* ── 20. Single ────────────────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--acc-soft), var(--acc));
}

.article-head {
  max-width: 980px;
  padding-top: 0.5rem;
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.article-head__date,
.article-head__read {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.article-head__read::before {
  content: "·";
  margin-right: 0.9rem;
}

.article-head__title {
  margin-top: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.article-head__dek {
  max-width: 62ch;
  margin-top: 1.25rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
}

.article-hero {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 10px;
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-hero__img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 26px;
}

.article-hero__caption {
  padding: 0.7rem 0.6rem 0.2rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.single-col {
  min-width: 0;
}

.article-content {
  max-width: 70ch;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-prose);
  overflow-wrap: break-word;
}

.article-content > * + * {
  margin-top: 1.3rem;
}

.single-article .article-content > p:first-child::first-letter {
  float: left;
  padding: 0.06em 0.12em 0 0;
  font-size: 4.2em;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--acc);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text);
}

.article-content h2 {
  margin-top: 2.6rem;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.article-content h3 {
  margin-top: 2.1rem;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.article-content h4 {
  margin-top: 1.8rem;
  font-size: 1.1rem;
}

.article-content strong {
  color: var(--text);
}

.article-content a {
  color: var(--acc-deep);
  text-decoration: underline;
  text-decoration-color: rgba(var(--acc-rgb), 0.4);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-content a:hover {
  text-decoration-color: var(--acc);
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content ul li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  list-style: none;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(145deg, var(--acc-soft), var(--acc));
}

.article-content ol {
  list-style: decimal-leading-zero;
}

.article-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.4rem;
}

.article-content ol li::marker {
  font-family: var(--f-mono);
  font-size: 0.85em;
  color: var(--acc-deep);
}

.article-content blockquote {
  position: relative;
  margin-block: 2.2rem;
  padding: 1.5rem 1.6rem 1.5rem 4rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-content blockquote::before {
  content: "“";
  position: absolute;
  left: 1.2rem;
  top: 0.9rem;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--acc);
}

.article-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.article-content img,
.article-content figure {
  margin-block: 2rem;
}

.article-content img {
  border-radius: var(--r-lg);
}

.article-content figure img {
  margin-block: 0;
}

.article-content .aligncenter {
  margin-inline: auto;
}

.article-content figcaption {
  margin-top: 0.55rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.article-content iframe,
.article-content video {
  max-width: 100%;
}

.article-content .wp-block-table,
.article-content .table-wrap {
  overflow-x: auto;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.85rem 0.65rem 0;
  text-align: left;
}

.article-content th {
  border-bottom: 2px solid var(--acc);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.article-content code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  background: var(--acc-tint);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.article-content pre {
  overflow-x: auto;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--text-inv);
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content hr {
  border: none;
  height: 1px;
  background: var(--line-strong);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.article-tags__label {
  margin-right: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-3);
}

.article-tags a {
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.article-tags a:hover {
  background: var(--acc);
  color: #fff;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.article-nav__side {
  padding: 1.2rem 1.35rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-nav__side:not(:has(a)) {
  background: none;
  box-shadow: none;
}

.article-nav__side--next {
  text-align: right;
}

.article-nav__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text-3);
}

.article-nav__link {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.article-nav__link:hover {
  color: var(--acc-deep);
}

.related {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.single-aside {
  align-self: start;
  position: sticky;
  top: 110px;
}

.aside-panel {
  padding: 1.3rem 1.3rem 0.4rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.aside-panel__heading {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 800;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: none;
}

.row__media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.row__date {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--text-3);
}

.row__title {
  margin-top: 0.3rem;
  font-size: 1rem;
  line-height: 1.3;
}

.row--aside {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.9rem;
}

.row--aside .row__title {
  font-size: 0.92rem;
}

.aside-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: var(--r-xl);
  background:
    radial-gradient(260px 200px at 100% 0%, rgba(var(--acc-rgb), 0.55), transparent 70%),
    var(--ink);
  color: var(--text-inv);
  transition: transform 0.3s var(--ease);
}

.aside-cta:hover {
  transform: translateY(-3px);
}

.aside-cta__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--text-inv-2);
}

.aside-cta__title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.aside-cta__text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-inv-2);
}

.aside-cta__btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--acc);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── 21. Page & 404 ────────────────────────────────────────────────────── */
.static-page {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-head {
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}

.page-head__eyebrow {
  display: inline-flex;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--acc-tint);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--acc-deep);
}

.page-head__title {
  margin-top: 0.9rem;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero {
  margin-bottom: 2rem;
}

.page-hero__img {
  width: 100%;
  border-radius: var(--r-xl);
}

.page-main .article-content {
  max-width: none;
}

.error-page {
  padding: clamp(1rem, 4vw, 3rem) 0;
  text-align: center;
}

.error-page__code {
  font-size: clamp(6rem, 22vw, 13rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.08em;
  background: linear-gradient(180deg, var(--acc-soft), var(--acc) 50%, var(--acc-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page__title {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}

.error-page__desc {
  max-width: 52ch;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-2);
}

.error-page__actions {
  margin-top: 1.75rem;
}

.error-recent {
  margin-top: clamp(3rem, 6vw, 4rem);
  padding: 0.5rem 1.4rem;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.error-recent__heading {
  padding: 1.1rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
}

/* ── 22. Footer — on the dark ground ───────────────────────────────────── */
.site-footer {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text-inv);
}

.footer-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: 32px;
  background:
    radial-gradient(500px 320px at 100% 100%, rgba(var(--acc-rgb), 0.22), transparent 65%),
    var(--bg);
  color: var(--text);
}

.footer-card__orb {
  position: absolute;
  z-index: -1;
  right: -30px;
  bottom: -54px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0, var(--acc-soft) 16%, var(--acc) 56%, var(--acc-deep) 100%);
  opacity: 0.85;
}

.footer-card__pane {
  position: absolute;
  z-index: -1;
  right: 70px;
  bottom: -52px;
  width: 140px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.15));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: rotate(-12deg);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-logo-link img,
.footer-logo-img {
  height: var(--logo-h, 45px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.footer-brand__desc {
  max-width: 42ch;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
}

.footer-brand__cta {
  margin-top: 1.4rem;
}

.footer-col__title {
  margin-bottom: 1rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-col__list li + li {
  margin-top: 0.55rem;
}

.footer-col__list a {
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-col__list a:hover {
  color: var(--acc-deep);
}

.footer-disclaimer {
  max-width: 100ch;
  margin-top: 1.75rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-inv-2);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-inv);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-inv-2);
}

.footer-copy a {
  color: var(--text-inv);
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-inv);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-inv);
  transition: background 0.2s, color 0.2s;
}

.footer-top-link:hover {
  background: #fff;
  color: var(--ink);
}

/* ── 23. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .masthead__nav,
  .masthead__rates {
    display: none;
  }
  .masthead__bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .quad,
  .habits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clock {
    grid-template-columns: minmax(0, 1fr);
  }
  .clock__dial-wrap {
    max-width: 420px;
  }
  .desks {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 31%);
    overflow-x: auto;
    padding: 4px 4px 24px;
    margin: -4px -4px -24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .desks::-webkit-scrollbar {
    display: none;
  }
  .desk {
    scroll-snap-align: start;
  }
}

@media (max-width: 1024px) {
  .board__crypto,
  .board__breadth {
    grid-column: span 6;
    grid-row: 1;
  }
  .board__fx {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .show,
  .lens {
    grid-template-columns: minmax(0, 1fr);
  }
  .show__lead {
    grid-row: auto;
  }
  .policy__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .single-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .single-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --gut: 20px;
  }
  .shead {
    grid-template-columns: minmax(0, 1fr);
  }
  .deck {
    --w: 78vw;
  }
  .hero__decor .shape--pane,
  .hero__decor .shape--rod {
    display: none;
  }
  .lens__panel,
  .policy__lead {
    grid-template-columns: minmax(0, 1fr);
  }
  .policy__body {
    padding: 0.5rem 0.75rem 1rem;
  }
  .signup__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .signup__art {
    justify-self: start;
    max-width: 300px;
    margin-top: 0.5rem;
  }
  .signup .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "opt"
      "top"
      "fld"
      "prv"
      "out";
    grid-template-rows: none;
  }
  .signup .form-options,
  .signup .form-topics,
  .signup .form-fields,
  .signup .form-privacy {
    padding-inline: 0;
    border-left: none;
  }
  .signup .form-topics,
  .signup .form-fields {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature__body {
    padding: 0.5rem 0.75rem 1rem;
  }
}

@media (max-width: 640px) {
  :root {
    --sheet-gap: 6px;
    --gut: 16px;
  }
  .sheet {
    border-radius: 24px;
  }
  .masthead {
    padding-top: 8px;
  }
  .masthead__bar {
    min-height: 56px;
    padding: 6px 6px 6px 14px;
  }
  .masthead__logo img,
  .masthead__logo-img,
  .footer-logo-link img,
  .footer-logo-img {
    height: var(--logo-h-m, 34px);
    max-width: calc(100vw - 150px);
  }
  .masthead__sub {
    display: none;
  }
  .hero__decor .shape--tile,
  .hero__decor .shape--capsule {
    display: none;
  }
  .hero__decor .shape--orb {
    width: 56px;
    height: 56px;
    top: 30%;
    right: 2%;
  }
  .hero__decor .shape--chip {
    width: 44px;
    height: 44px;
    right: 4%;
    bottom: 4%;
  }
  .hero__date-sep,
  .hero__date-sep + * {
    display: none;
  }
  .deck {
    --w: calc(100vw - 2 * var(--gut) - 24px);
  }
  .deck__card {
    border-radius: 22px;
  }
  .deck__card[data-pos="1"] { transform: translateX(9%) scale(0.9) rotateY(-14deg); }
  .deck__card[data-pos="-1"] { transform: translateX(-9%) scale(0.9) rotateY(14deg); }
  .deck__card[data-pos="2"],
  .deck__card[data-pos="-2"] {
    opacity: 0;
    transform: scale(0.8);
  }
  .deck__cap {
    left: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
  }
  .deck__cap .meta {
    display: none;
  }
  .deck__title {
    margin-top: 0;
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
  }
  .deck__open {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  .deck__bar {
    gap: 0.5rem;
  }
  .deck__dot {
    min-width: 0;
    padding: 0 0.6rem;
  }
  .round-btn {
    width: 42px;
    height: 42px;
  }
  .board__crypto,
  .board__breadth,
  .board__fx {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .fx__cols {
    display: none;
  }
  .fx__row {
    grid-template-columns: 38px minmax(0, 1fr) auto auto;
    gap: 0.6rem;
  }
  .fx__badge {
    width: 38px;
    height: 38px;
  }
  .fx__spark {
    display: none;
  }
  .quad,
  .habits,
  .tiles,
  .policy__row,
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .qcard__title {
    min-height: 0;
  }
  .ptile {
    min-height: 0;
  }
  .ptile__go {
    display: none;
  }
  .mini {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .lens__row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .lens__plus {
    display: none;
  }
  .desks {
    grid-auto-columns: 72%;
  }
  .venues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clock__summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-nav__side--next {
    text-align: left;
  }
  .row {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .signup__chip {
    right: 0;
  }
}
