/* ============================================================
   UNIQorn — foundation.css
   Tokens follow uniqorn-design-guide-v4 (2026-09-15).

   Semantics, not decoration:
     deep-blue linework = the path of self-discovery
     mist blue          = what is not yet clear
     rose anchor        = the point in the heart

   Palette is cold throughout. No warm paper, cream, ivory or gold.
   ============================================================ */

:root {
  /* structural blue — the path */
  --indigo: #1E3A5F;
  --ink: #173B68;
  --navy: #274B72;
  --indigo-deep: #142A48;

  /* light field */
  --white: #FFFFFF;
  --paper: #F7F9FB;
  --surface: #FFFFFF;

  /* emotional atmosphere — the mist */
  --mist: #AFC4D3;
  --mist-soft: #CBD8DF;
  --water: #D7E3E7;
  /* the watercolor wash: deeper than mist, used for washes and hover lines */
  --wash: #789ACB;

  /* human anchor — the rose point */
  --rose: #C58B8E;
  --rose-soft: #D2A1A0;
  --coral: #C9877F;
  /* the rose as a translucent tint, for selection, focus halos and soft fills */
  --rose-tint: rgba(197, 139, 142, .16);

  /* The rose point, under its site-wide name. This is an alias, not a second
     value — the hex lives only on --rose above. Graphic only, one per screen,
     never body text: it is 2.65:1 on white, so it can never carry a word.
     Wallance 2026-09-24 replaced the flat red #D1483C with the rose; the
     per-stylesheet re-declarations in entrance.css and space.css went with it. */
  --anchor-red: var(--rose);

  /* Tarot card proportion, 2 / 3 (1024 x 1536) — the exact ratio of the original deck.
     Matching the artwork's native aspect ratio ensures zero cropping on either axis
     with object-fit: cover, preserving the full illustration and borders. */
  --card-ratio: 2 / 3;

  /* spiritual depth */
  --violet: #9D7BC4;
  --lavender: #C9B8DF;
  --violet-deep: #5B477A;
  --midnight: #19213D;

  /* neutrals, cold. --meta is the lightest tone allowed on real text:
     #626C79 measures 5.3:1 on #FFFFFF, so small labels stay WCAG 2.2 AA. */
  --fg: #12161C;
  --fg-2: #333B45;
  --muted: #4E5866;
  --meta: #626C79;
  --line: #E3E7EB;
  --line-soft: #EEF1F4;

  /* aliases kept for existing templates */
  --bg: var(--white);
  --accent: var(--indigo);
  --accent-on: var(--white);
  --accent-light: var(--navy);
  --accent-hover: var(--ink);
  --accent-active: var(--indigo-deep);
  --border: var(--line);
  --border-soft: var(--line-soft);
  --rose-anchor: var(--rose);
  --success: #3F6B4F;
  --warn: #8A6B1F;
  --danger: #8A3A30;
  --danger-soft: #FDF2F2;
  --danger-line: #E5C3C0;

  /* type */
  /* Three families, site-wide. The two brand faces (UNIQorn Tarot Serif,
     UNIQorn Crystal Serif) are glyph subsets, so they stay scoped to the
     pages they were cut for and always fall back to --font-display. */
  --font-display: "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --text-xs: 11px;
  --text-sm: 12px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 46px;
  --text-4xl: 76px;

  --leading-display: 1.14;
  --leading-tight: 1.32;
  --leading-body: 1.72;

  --tracking-display: .2px;
  --tracking-eyebrow: .22em;
  --tracking-label: .06em;

  /* space */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px; --space-6: 24px;  --space-7: 28px;  --space-8: 32px;
  --space-12: 48px; --space-18: 72px; --space-22: 88px; --space-30: 120px;
  --section-y: clamp(56px, calc(8vw * var(--boost, 1) / var(--lock, 1)), 118px);

  /* xs: tags and hairline chips · sm: buttons and fields · md: small cards
     and thumbnails · lg: large cards, panels and framed media · pill: chips
     and capsule buttons · drop: the rose water-drop, never a container. */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --radius-drop: 54% 46% 58% 42%;

  --gutter: clamp(20px, calc(5vw * var(--boost, 1) / var(--lock, 1)), 64px);
  --container-max: 1200px;
  --edge-w: 68px;
  --header-h: 96px;

  --motion-fast: 160ms;
  --motion-base: 320ms;
  --motion-slow: 640ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-flow: cubic-bezier(.33, .02, .2, 1);

  --elev-ring: 0 0 0 1px var(--line);
  /* Elevation is cold and quiet: indigo-tinted, never black or warm.
     Glows and inset rings are drawn per component, not from here. */
  --shadow-sm: 0 4px 16px rgba(30, 58, 95, .06);
  --shadow-md: 0 8px 24px rgba(30, 58, 95, .10);
  --shadow-lg: 0 16px 36px rgba(30, 58, 95, .14);
  --focus-ring: 0 0 0 3px var(--rose-tint);
  --tag-bg-faint: #EEF3F8;
  --tag-bg-soft: #E2EAF2;
  --tag-bg-base: #D4E0EC;
  --tag-bg-strong: #C6D5E4;
}

/* ---------- reset ---------- */

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--text-base)/var(--leading-body) var(--font-body);
  letter-spacing: .01em;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--tag-bg-base); color: var(--fg); }

/* Focus must stay visible on white and on deep blue (checklist B7). */
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: var(--radius-xs); }
.is-entrance :focus-visible,
.on-dark :focus-visible { outline-color: var(--white); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: 12px 16px; background: var(--indigo); color: var(--white);
  font-size: var(--text-sm); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

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

.shell {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* business spaces reserve room for the vertical edge navigation.
   max-width only grows by edge-w; padding-inline must too, otherwise at any
   window where the shell is full-bleed the content sits right under the strip.
   edge-pad is the inside air between the strip's outer edge and the content,
   set to var(--gutter) so the two halves of the page feel like one. */
.in-space .shell {
  max-width: calc(var(--container-max) + 2 * var(--gutter) + 2 * var(--edge-w));
  padding-inline-start: calc(var(--edge-w) + var(--gutter));
  padding-inline-end:   calc(var(--edge-w) + var(--gutter));
}

.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.eyebrow {
  margin: 0;
  color: var(--meta);
  font: 500 var(--text-xs)/1.4 var(--font-mono);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.num {
  font: 500 var(--text-xs)/1 var(--font-mono);
  letter-spacing: var(--tracking-label);
  font-variant-numeric: tabular-nums;
  color: var(--indigo);
}

/* ---------- typography ---------- */

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--tracking-display); }
h1 { font-size: clamp(34px, calc(5.6vw * var(--boost, 1) / var(--lock, 1)), 68px); line-height: var(--leading-display); text-wrap: balance; }
h2 { font-size: clamp(26px, calc(3.6vw * var(--boost, 1) / var(--lock, 1)), 44px); line-height: 1.24; text-wrap: balance; }
h3 { font-size: clamp(19px, calc(2.1vw * var(--boost, 1) / var(--lock, 1)), 27px); line-height: 1.34; }
h4 { font-size: var(--text-lg); line-height: 1.4; }

.lede { color: var(--muted); font-size: clamp(16px, calc(1.5vw * var(--boost, 1) / var(--lock, 1)), 19px); line-height: 1.66; max-width: 62ch; text-wrap: pretty; }
.meta-line { color: var(--meta); font-size: var(--text-sm); }
.en-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--meta); }

/* ---------- header: current-space only ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5) var(--space-8);
  flex-wrap: wrap;
  min-height: var(--header-h);
  padding-block: var(--space-5);
}
.wordmark { font: 500 23px/1 var(--font-display); letter-spacing: .06em; flex-shrink: 0; }
.wordmark-logo { display: block; width: 154px; height: auto; }

.space-title {
  font-size: var(--text-sm);
  color: var(--muted);
  padding-inline-start: var(--space-5);
  border-inline-start: 1px solid var(--line);
}
.desktop-nav, .support-nav { margin-left: auto; }
.site-header-inner > .support-nav { flex-shrink: 0; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--space-5); list-style: none; margin: 0; padding: 0; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; color: var(--fg-2);
  transition: color var(--motion-fast) var(--ease-standard);
}
.menu a:hover { color: var(--indigo); }
.menu .current-menu-item > a, .menu .current_page_item > a {
  color: var(--indigo);
  box-shadow: inset 0 -1px 0 currentColor;
}
.menu .support-link a { color: var(--meta); font-size: 12px; }

.header-cta {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--indigo); border-radius: var(--radius-pill);
  font-size: 12px; letter-spacing: var(--tracking-label); color: var(--indigo);
  transition: background var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard);
}
.header-cta:hover { background: var(--indigo); color: var(--white); }

/* ---------- flat switcher (special provision) ----------

   Wallance 2026-09-30: a reader on any non-entrance page — including
   flat辅助 pages like /about/, /contact/, /privacy/ — should still be
   able to enter any of the three business spaces or return to the
   homepage. The .space-edges ring covers in-space pages; this row
   covers everything else. The two share the same destinations but
   different frames: the ring is a side strip, this is a header line.

   Visual weight sits between .menu (13px) and .support-link (12px):
   12px in the muted tone, hairline-under-word on the current space
   to match .menu's .current_page_item rule. */
.space-quick-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-left: var(--space-7);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: var(--tracking-label);
}

.space-quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--meta);
  transition: color var(--motion-fast) var(--ease-standard);
}

.space-quick-nav a:hover,
.space-quick-nav a:focus-visible {
  color: var(--indigo);
}

.space-quick-nav .is-current {
  color: var(--indigo);
  box-shadow: inset 0 -1px 0 currentColor;
}

.mobile-navigation { display: none; }

/* ---------- cross-business edge navigation ---------- */

.space-edges {
  position: fixed;
  top: 0; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  pointer-events: none;
  z-index: 60;
}
.space-edges a {
  pointer-events: auto;
  /* The strip's padding has to scale with --edge-w. At the second breakpoint
     the variable halves (68 -> 44) but padding stayed at 48+48; the content-
     box width then upgraded itself to 96 to fit the padding, which left the
     shell's pad-extra still 32 short and put the strip right against the
     text. border-box is not enough — the fix is to make the padding itself
     a fraction of --edge-w, so the two move together. */
  box-sizing: border-box;
  width: var(--edge-w);
  padding: 0 calc(var(--edge-w) * 0.36) 8px;
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  writing-mode: vertical-rl;
  font-size: 12px; letter-spacing: .16em; color: var(--muted);
  transition: color var(--motion-base) var(--ease-standard), background var(--motion-base) var(--ease-standard);
}
.space-edges a:hover { color: var(--indigo); background: linear-gradient(var(--mist-soft), transparent 70%); }
.space-edges a .edge-en {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--meta);
}
.space-edges a[data-side="left"] { padding-inline-end: var(--space-2); }
.space-edges a[data-side="right"] { padding-inline-start: var(--space-2); }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  font: 500 var(--text-sm)/1 var(--font-body); letter-spacing: var(--tracking-label);
  transition: background var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard);
}
.btn-primary { background: var(--indigo); color: var(--white); border: 1px solid var(--indigo); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); color: var(--fg-2); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.on-dark .btn-primary { background: var(--white); color: var(--indigo); border-color: var(--white); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  font-size: var(--text-sm); color: var(--indigo);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--motion-base) var(--ease-standard);
}
.text-link:hover { border-color: var(--indigo); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* ---------- sections (editorial rhythm) ---------- */

.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section-head { max-width: 46ch; margin-bottom: var(--space-12); }
.section-head .num { display: block; margin-bottom: var(--space-4); }
.section-title { margin: 0; }
.section-lede { margin: var(--space-4) 0 0; color: var(--muted); font-size: var(--text-md); }

/* ---------- inner pages (pure white) ---------- */

.page-main { min-height: 62vh; padding-block: clamp(56px, calc(8vw * var(--boost, 1) / var(--lock, 1)), 104px); }
.page-heading { max-width: 24ch; margin-bottom: var(--space-12); }
.page-heading .en-label { display: block; margin-bottom: var(--space-4); }
.page-lede { margin-top: var(--space-5); color: var(--muted); font-size: clamp(16px, calc(1.5vw * var(--boost, 1) / var(--lock, 1)), 19px); max-width: 54ch; }

.entry-content { max-width: 68ch; font-size: var(--text-md); }
.entry-content > * + * { margin-top: var(--space-6); }
.entry-content h2 { margin-top: var(--space-18); }
.entry-content h3 { margin-top: var(--space-12); }
.entry-content a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--mist); }
.entry-content a:hover { text-decoration-color: var(--indigo); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.2em; }
.entry-content li + li { margin-top: var(--space-2); }

.editorial-image { margin: 0 0 var(--space-12); }
.editorial-image img { width: 100%; }
.editorial-image figcaption { margin-top: var(--space-3); color: var(--meta); font-size: var(--text-sm); }

.article-entry { padding-block: var(--space-8); border-bottom: 1px solid var(--line); }
.article-entry h3 { margin-bottom: var(--space-3); }
.article-entry h3 a:hover { color: var(--indigo); }

/* ---------- footer (unified across all pages) ---------- */

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--line, rgba(20, 42, 72, 0.12));
  background-color: #ffffff;
  color: #142A48;
  padding-block: clamp(56px, 8vw, 84px) clamp(24px, 3vw, 36px);
}
.site-footer .home-footer-inner {
  max-width: 1320px;
  margin-inline: auto;
  box-sizing: border-box;
}
.site-footer .home-footer-bottom {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 44px;
}
.site-footer .home-footer-brand-link {
  display: inline-block;
  text-decoration: none;
}
.site-footer .home-footer-logo {
  display: block;
  width: clamp(138px, 12vw, 154px);
  height: auto;
}
.site-footer .home-footer-tagline {
  margin-top: 16px;
}
.site-footer .home-footer-tagline-zh {
  margin: 0;
  color: #142A48;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.site-footer .home-footer-tagline-en {
  margin: 4px 0 0;
  color: rgba(20, 42, 72, 0.62);
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.site-footer .home-footer-navigation,
.site-footer .home-footer-connect,
.site-footer .home-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.site-footer .home-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer .home-footer-social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.site-footer .home-footer-social-link:hover .home-footer-social-icon,
.site-footer .home-footer-social-link:focus-visible .home-footer-social-icon {
  opacity: 1;
  color: var(--indigo, #203865);
  transform: translateY(-1px);
}
.site-footer .home-footer-label {
  margin: 0 0 10px;
  color: rgba(20, 42, 72, 0.52);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer .home-footer-bottom a:not(.home-footer-brand-link) {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: #142A48;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-footer .home-footer-bottom a:not(.home-footer-brand-link):hover,
.site-footer .home-footer-bottom a:not(.home-footer-brand-link):focus-visible {
  color: var(--indigo, #203865);
  transform: translateX(2px);
}
.site-footer .home-footer-legal .menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .home-footer-legal .menu li {
  margin: 0;
  padding: 0;
}
.site-footer .home-footer-legal .menu a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: #142A48;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-footer .home-footer-legal .menu a:hover,
.site-footer .home-footer-legal .menu a:focus-visible {
  color: var(--indigo, #203865);
  transform: translateX(2px);
}
.site-footer .home-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 42, 72, 0.12);
  color: rgba(20, 42, 72, 0.6);
  font-size: 12px;
}
.site-footer .home-footer-meta p {
  margin: 0;
}
.site-footer .home-footer-meta a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: rgba(20, 42, 72, 0.72);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .home-footer-meta a:hover,
.site-footer .home-footer-meta a:focus-visible {
  color: #142A48;
}

@media (max-width: 900px) {
  .site-footer .home-footer-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
  .site-footer .home-footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .site-footer .home-footer-bottom {
    gap: 32px 20px;
  }
  .site-footer .home-footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  /* the smaller edge-w takes its own room — keep the formula in lockstep */
  .in-space .shell {
    max-width: calc(var(--container-max) + 2 * var(--gutter) + 2 * var(--edge-w));
    padding-inline-start: calc(var(--edge-w) + var(--gutter));
    padding-inline-end:   calc(var(--edge-w) + var(--gutter));
  }
  :root { --edge-w: 44px; }
  .space-edges a { font-size: 11px; }
}
/*
 * About / Contact stay on the logo's row at every desktop width. Once the
 * longest space menu (Tarot & Akashic) no longer fits beside them (~1125px),
 * the space menu takes its own row underneath instead of pushing About /
 * Contact down — and instead of folding mid-menu, which stranded single links.
 */
@media (max-width: 1140px) {
  .site-header-inner > .desktop-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .site-header .site-header-inner > .desktop-nav + .support-nav { margin-left: auto; }
}
@media (max-width: 1024px) {
  .desktop-nav { flex-basis: 100%; margin-left: 0; }
  .desktop-nav .menu { gap: 0 var(--space-5); }
}
@media (max-width: 860px) {
  :root { --edge-w: 0px; }
  .space-edges {
    position: static;
    gap: var(--space-4);
    padding: var(--space-3) var(--gutter);
    border-bottom: 1px solid var(--line);
  }
  .space-edges a {
    width: auto; writing-mode: horizontal-tb;
    min-height: 44px; padding: 0; font-size: 13px; gap: var(--space-2);
  }
  .space-edges a:hover { background: none; text-decoration: underline; text-underline-offset: 6px; }
  .space-edges a .edge-en { display: none; }
}
@media (max-width: 768px) {
  :root { --header-h: 78px; --text-3xl: 34px; --text-4xl: 44px; }
  .site-header-inner { min-height: var(--header-h); gap: var(--space-3); }
  .wordmark { font-size: 19px; }
  .wordmark-logo { width: 128px; }
  .space-title { margin-left: auto; padding-inline-start: var(--space-4); font-size: 11px; }
  .desktop-nav { display: none; }
  /* The flat switcher's desktop copy hides here — its twin inside
     .mobile-navigation details carries the same four links. */
  .site-header-inner > .space-quick-nav { display: none; }
  /* Same reasoning for the inline support nav (About / Contact). On every
     page that carries a .mobile-navigation, its copy sits inside the
     collapsed menu; leaving the inline row in place printed the two links
     twice as soon as the menu opened. The homepage is the one page with no
     .mobile-navigation, so it keeps the inline row — hence :has() instead
     of a plain descendant rule. */
  .site-header-inner:has(.mobile-navigation) > .support-nav { display: none; }
  .mobile-navigation { display: block; flex-basis: 100%; }
  .mobile-navigation summary {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 44px; cursor: pointer; list-style: none;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation .menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); padding-block: var(--space-3); }
  .mobile-navigation .menu a { min-height: 40px; }
  .mobile-navigation .space-quick-nav {
    margin-left: 0;
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--line);
    flex-basis: 100%;
  }
  .mobile-navigation .space-quick-nav a { min-height: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- global watercolor cursor canvas ---------- */
.uniqorn-watercolor-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: multiply;
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .uniqorn-watercolor-canvas {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- contact ---------- */

.contact-ways { display: grid; gap: var(--space-4); margin: 0; }
.contact-way { display: grid; grid-template-columns: 7em 1fr; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.contact-way dt { color: var(--muted); font-size: var(--text-sm); letter-spacing: var(--tracking-label); }
.contact-way dd { margin: 0; }
.entry-content .contact-cta { margin-top: var(--space-12); }
.entry-content .contact-cta .btn { text-decoration: none; }
.crystal-empty-actions .btn { text-decoration: none; }
