/* =========================================================
   design tokens

   Two worlds meet on this site: the clean, controlled geometry of a planned city (porcelain,
   charcoal, hairlines, mono readouts) and the warm, living one outside it (blossom pink,
   sunset light, petals, curves). Pink is the signature, never the wallpaper.
   ========================================================= */

:root {
  color-scheme: light;

  /* palette */
  --zt-pink: #e83e78;
  --zt-blossom: #f2a2bb;
  --zt-crimson: #c92743;
  --zt-porcelain: #f7f4f5;
  --zt-rose: #e6dce2;
  --zt-charcoal: #24202a;

  /* roles */
  --bg: var(--zt-porcelain);
  --bg-warm: #f8e9ee;
  --surface: #fffdfe;
  --surface-2: #f2ecef;
  --glass: rgb(255 253 254 / 0.74);
  --text: var(--zt-charcoal);
  --muted: #675f6c;
  --border: rgb(36 32 42 / 0.1);
  --border-strong: rgb(36 32 42 / 0.2);
  --grid-line: rgb(36 32 42 / 0.045);

  /* section light: each band of the home page gets its own tint */
  --tint-plum: rgb(122 44 98 / 0.08);
  --tint-plum-soft: rgb(122 44 98 / 0.035);
  --tint-crimson: rgb(201 39 67 / 0.08);
  --hero-glow: rgb(232 62 120 / 0.2);
  --hero-glow-soft: rgb(242 162 187 / 0.24);
  --numeral: rgb(232 62 120 / 0.28);

  --pink: var(--zt-pink);
  --blossom: var(--zt-blossom);
  --crimson: var(--zt-crimson);
  --blossom-heart: var(--zt-crimson);
  --wood: #5a4450;
  /* --accent is the text-safe ink of the signature pink (4.5:1 on porcelain and white). */
  --accent: #cc2a62;
  --accent-2: var(--zt-crimson);
  --accent-ink: #fff;
  --accent-soft: rgb(232 62 120 / 0.09);
  --accent-glow: rgb(232 62 120 / 0.3);
  --online: #16a34a;

  /* the dark, contrasting elements (primary buttons, dusk panels) */
  --ink: var(--zt-charcoal);
  --ink-text: var(--zt-porcelain);

  --shadow-sm: 0 1px 2px rgb(36 32 42 / 0.05), 0 6px 16px -10px rgb(36 32 42 / 0.18);
  --shadow: 0 1px 2px rgb(36 32 42 / 0.04), 0 28px 56px -34px rgb(120 28 62 / 0.32);
  --shadow-lg: 0 2px 6px rgb(36 32 42 / 0.05), 0 48px 110px -46px rgb(120 28 62 / 0.45);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.8);

  /* type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-2xs: 0.66rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: clamp(1.05rem, 1.6vw, 1.2rem);
  --text-xl: clamp(1.2rem, 2.1vw, 1.55rem);
  --text-2xl: clamp(1.7rem, 3.6vw, 2.5rem);
  --text-3xl: clamp(2.4rem, 5.6vw, 4.1rem);
  --text-display: clamp(3.8rem, 9vw, 7.8rem);
  --tracking-label: 0.16em;

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-section: clamp(84px, 11vw, 140px);

  /* shape */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius: 24px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 68px;

  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
  --dur-fast: 0.2s;
  --dur: 0.35s;
  --dur-slow: 0.9s;
}

/* Night in the city: charcoal surfaces, the same pink, warmer glow. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #150f18;
  --bg-warm: #26121d;
  --surface: #1f1823;
  --surface-2: #2a2130;
  --glass: rgb(34 26 39 / 0.72);
  --text: var(--zt-porcelain);
  --muted: #a99fac;
  --border: rgb(247 244 245 / 0.08);
  --border-strong: rgb(247 244 245 / 0.17);
  --grid-line: rgb(247 244 245 / 0.035);

  --tint-plum: rgb(122 40 100 / 0.3);
  --tint-plum-soft: rgb(90 30 76 / 0.16);
  --tint-crimson: rgb(201 39 67 / 0.2);
  --hero-glow: rgb(232 62 120 / 0.36);
  --hero-glow-soft: rgb(160 50 120 / 0.3);
  --numeral: rgb(242 162 187 / 0.2);

  --blossom-heart: #ff7a9c;
  --wood: #8c6b7a;
  --accent: #f0588c;
  --accent-ink: #16131a;
  --accent-soft: rgb(240 88 140 / 0.12);
  --accent-glow: rgb(240 88 140 / 0.35);
  --online: #4ade80;

  --ink: var(--zt-porcelain);
  --ink-text: var(--zt-charcoal);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 18px -10px rgb(0 0 0 / 0.6);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 30px 60px -32px rgb(0 0 0 / 0.85);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 50px 120px -40px rgb(0 0 0 / 0.9);
  --highlight: inset 0 1px 0 rgb(255 255 255 / 0.05);
}

/* =========================================================
   base
   ========================================================= */

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

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 32px);
  -webkit-text-size-adjust: 100%;
  transition: background-color 0.4s;
}

/* The page warms as you read down it: sterile at the top, sunset by the footer. */
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, transparent 0 40%, var(--bg-warm) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: color 0.4s;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: var(--pink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Hidden until a keyboard user tabs to it. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--ink-text);
  font-weight: 600;
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

main:focus {
  outline: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- page transitions (cross-document, where supported) ---------- */

@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

main {
  view-transition-name: page;
}

::view-transition-old(page) {
  animation: page-out 0.22s var(--ease-soft) both;
}

::view-transition-new(page) {
  animation: page-in 0.5s var(--ease) both;
}

@keyframes page-out {
  to {
    opacity: 0;
    translate: 0 -8px;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    translate: 0 14px;
  }
}

/* =========================================================
   atmosphere: grid, light and petals behind everything
   ========================================================= */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 72%);
}

.atmosphere__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(34% 30% at 82% 22%, rgb(232 62 120 / 0.13), transparent 70%),
    radial-gradient(30% 28% at 12% 70%, rgb(242 162 187 / 0.2), transparent 70%),
    radial-gradient(40% 30% at 60% 100%, rgb(255 176 140 / 0.14), transparent 70%);
  filter: blur(30px);
  animation: drift 40s ease-in-out infinite alternate;
  will-change: transform;
}

:root[data-theme="dark"] .atmosphere__glow {
  background:
    radial-gradient(34% 30% at 82% 22%, rgb(232 62 120 / 0.16), transparent 70%),
    radial-gradient(30% 28% at 12% 70%, rgb(201 39 67 / 0.14), transparent 70%),
    radial-gradient(40% 30% at 60% 100%, rgb(255 140 120 / 0.08), transparent 70%);
}

@keyframes drift {
  to {
    transform: translate3d(3%, 2%, 0) scale(1.05);
  }
}

.petals i {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.82);
  border-radius: 100% 4% 100% 30%;
  background: linear-gradient(135deg, var(--blossom), var(--pink));
  opacity: 0;
  animation: petal-fall var(--duration) linear var(--delay) infinite;
}

.petals i:nth-child(3n) {
  background: linear-gradient(135deg, #fff2f6, var(--blossom));
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  8% {
    opacity: 0.55;
  }
  50% {
    transform: translate3d(-6vw, 52vh, 0) rotate(200deg) rotateX(40deg);
  }
  92% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate3d(4vw, 106vh, 0) rotate(420deg) rotateX(10deg);
  }
}

/* a quiet readout down the left edge of the first screen on wide screens. It scrolls away with
   the page and sits on the backdrop layer, so nothing full-bleed ever runs through it. */
.rail {
  position: absolute;
  top: 50svh;
  left: max(14px, calc((100vw - var(--max)) / 2 - 64px));
  z-index: -1;
  display: none;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  translate: 0 -50%;
  opacity: 0.7;
  pointer-events: none;
}

.rail__line {
  width: 1px;
  height: 120px;
  background: linear-gradient(var(--border-strong), var(--pink), var(--border-strong));
}

@media (min-width: 1380px) {
  .rail {
    display: flex;
  }
}

/* =========================================================
   primitives
   ========================================================= */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* the romantic voice: used sparingly, for a word or two */
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 .serif,
h2 .serif {
  font-size: 1.14em;
  line-height: 0.9;
}

.mono {
  font-family: var(--font-mono);
}

.accent {
  color: var(--accent);
}

/* large display words can carry the brighter signature pink */
h1 .accent,
h2 .accent,
.page-title .serif,
.section-title .serif {
  color: var(--pink);
}

.muted {
  color: var(--muted);
}

/* technical label: an outlined diamond, then mono caps */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--pink);
  rotate: 45deg;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--crimson) 45%, transparent);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--crimson) 8%, transparent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot {
  --dot-color: var(--online);
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-color) 18%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

.dot--online {
  --dot-color: #3ba55d;
}
.dot--idle {
  --dot-color: #e0a800;
}
.dot--dnd {
  --dot-color: #ed4245;
}
.dot--offline {
  --dot-color: #949ba4;
  animation: none;
}

.dot--coffee {
  --dot-color: #a16207;
}
.dot--work {
  --dot-color: #3b82f6;
}
.dot--relax {
  --dot-color: var(--pink);
}
.dot--sleep {
  --dot-color: #6366f1;
  animation: none;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--dot-color) 0%, transparent);
  }
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.badge {
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--pink) 30%, transparent);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition:
    transform var(--dur) var(--ease),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow var(--dur);
}

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

.btn .bi {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .bi-arrow-down {
  transform: translateY(3px);
}
.btn:hover .bi-arrow-right,
.btn:hover .bi-arrow-up-right {
  transform: translate(3px, -1px);
}

/* charcoal by default; a crimson-to-pink wash slides in on hover */
.btn-primary {
  background: var(--ink);
  color: var(--ink-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--crimson), #d8336a);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 16px 34px -14px var(--accent-glow);
}

.btn-primary:hover::before {
  transform: none;
}

.btn-ghost {
  border-color: var(--border-strong);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--highlight);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--pink) 55%, transparent);
  color: var(--accent);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--glass);
  transition:
    transform var(--dur) var(--ease),
    border-color 0.25s,
    color 0.25s;
}

.icon-btn:hover {
  transform: rotate(-12deg);
  border-color: color-mix(in srgb, var(--pink) 50%, transparent);
  color: var(--accent);
}

/* ---------- cards: translucent panels with crop-mark corners (spotlight in main.js) ---------- */

.card {
  --tick: var(--border-strong);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--highlight), var(--shadow);
  transition:
    transform 0.45s var(--ease),
    border-color 0.3s,
    box-shadow 0.45s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-soft),
    transparent 65%
  );
  transition: opacity 0.3s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--tick), var(--tick)) top left / 9px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) top left / 1px 9px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 9px 1px no-repeat,
    linear-gradient(var(--tick), var(--tick)) bottom right / 1px 9px no-repeat;
  transition: opacity 0.3s;
}

.card:hover {
  --tick: var(--pink);
  border-color: color-mix(in srgb, var(--pink) 22%, var(--border));
}

.card:hover::before {
  opacity: 1;
}

/* =========================================================
   chrome: progress, header, footer, palette
   ========================================================= */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--crimson), var(--pink), var(--blossom));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  width: min(100% - 2 * var(--gutter), var(--max));
  height: 100%;
  margin-inline: auto;
}

/* the name wears a small pair of red horns */
.brand {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
  padding-top: 6px;
}

.brand__horns {
  position: absolute;
  top: -1px;
  left: 3px;
  width: 26px;
  height: 13px;
  fill: var(--crimson);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand__horns {
  transform: translateY(-2px) scale(1.08);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand__code {
  padding: 2px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  transition:
    color 0.25s,
    border-color 0.25s;
}

.brand:hover .brand__code {
  border-color: var(--pink);
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--dur-fast);
}

.nav-index {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  transition: color var(--dur-fast);
}

/* a hairline that grows from the centre */
.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 12px 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--text);
}

.nav-links a:hover .nav-index,
.nav-links a[aria-current] .nav-index {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a[aria-current]::after {
  transform: none;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  list-style: none;
  transition:
    color var(--dur-fast),
    border-color var(--dur-fast),
    background var(--dur-fast);
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary:hover,
.nav-menu[open] summary {
  border-color: var(--border);
  background: var(--glass);
  color: var(--text);
}

.nav-menu summary i {
  font-size: 0.7rem;
  transition: transform var(--dur) var(--ease);
}

.nav-menu[open] summary i {
  transform: rotate(180deg);
}

.nav-menu__links {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  width: 230px;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: pop 0.25s var(--ease);
}

.nav-menu__links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.88rem;
  transition:
    color var(--dur-fast),
    background var(--dur-fast),
    padding var(--dur) var(--ease);
}

.nav-menu__links a:hover,
.nav-menu__links a[aria-current] {
  padding-left: 16px;
  background: var(--accent-soft);
  color: var(--text);
}

.nav-menu__links a i {
  width: 16px;
  color: var(--accent);
}

.nav-menu__mobile,
.nav-menu__mobile-primary {
  display: none;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- discord invite ---------- */

.discord-widget {
  padding-block: clamp(40px, 7vw, 84px) 0;
}

.discord-widget__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "icon copy members join";
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  min-height: 190px;
  padding: clamp(24px, 5vw, 44px);
  overflow: hidden;
  border: 1px solid rgb(242 162 187 / 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 140% at 100% 120%, rgb(232 62 120 / 0.36), transparent 65%),
    radial-gradient(50% 90% at 0% 0%, rgb(88 101 242 / 0.22), transparent 70%),
    linear-gradient(120deg, #1d1a22, #24202a 60%, #2c1f2a);
  box-shadow: var(--shadow-lg);
  color: #f7f4f5;
  transition:
    transform var(--dur) var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}

.discord-widget__card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  content: "";
  pointer-events: none;
}

.discord-widget__card:hover {
  transform: translateY(-4px);
  border-color: rgb(242 162 187 / 0.4);
}

.discord-widget__card:focus-visible {
  outline: 3px solid var(--blossom);
  outline-offset: 5px;
}

.discord-widget__watermark {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 19%;
  color: rgb(255 255 255 / 0.035);
  font-size: clamp(10rem, 24vw, 19rem);
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%) rotate(-12deg);
}

.discord-widget__icon {
  grid-area: icon;
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(68px, 8vw, 88px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 28%;
  background: linear-gradient(145deg, #7986ff, #5865f2 68%, #414fc8);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.3);
  color: #fff;
  font-size: 2.4rem;
}

.discord-widget__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discord-widget__copy {
  grid-area: copy;
  display: grid;
  min-width: 0;
  gap: 5px;
}

.discord-widget__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--zt-blossom);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.discord-widget__eyebrow::before {
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--zt-pink);
  rotate: 45deg;
  content: "";
}

.discord-widget__name {
  overflow: hidden;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-widget__description {
  display: -webkit-box;
  max-width: 58ch;
  overflow: hidden;
  margin-top: 2px;
  color: rgb(247 244 245 / 0.7);
  font-size: 0.95rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.discord-widget__members {
  grid-area: members;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  gap: 1px;
  min-width: 104px;
  padding-inline: clamp(12px, 2vw, 24px);
  border-left: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(247 244 245 / 0.75);
  font-family: var(--font-mono);
  text-align: center;
}

.discord-widget__members .bi-people-fill {
  margin-bottom: 4px;
  color: var(--zt-blossom);
  font-size: 1.15rem;
}

.discord-widget__member-count {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.discord-widget__member-label {
  color: rgb(247 244 245 / 0.6);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.discord-widget__join {
  grid-area: join;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 12px 13px 12px 19px;
  border-radius: var(--radius-md);
  background: var(--zt-porcelain);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.25);
  color: var(--zt-charcoal);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}

.discord-widget__join-copy {
  display: grid;
  gap: 1px;
  white-space: nowrap;
}

.discord-widget__join-copy span {
  color: #6b6270;
  font-size: 0.68rem;
  line-height: 1.2;
}

.discord-widget__join-copy strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.discord-widget__join > .bi {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--zt-crimson);
  color: #fff;
  transition: transform 0.25s var(--ease);
}

.discord-widget__card:hover .discord-widget__join {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.32);
}

.discord-widget__card:hover .discord-widget__join > .bi {
  transform: translate(2px, -2px);
}

/* ---------- footer: the sunset at the end of the page ---------- */

.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(72px, 9vw, 112px);
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.site-footer__horizon {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 90% at 50% 120%, rgb(232 62 120 / 0.22), transparent 70%),
    radial-gradient(50% 60% at 50% 110%, rgb(255 176 140 / 0.28), transparent 70%);
  border-top: 1px solid var(--border);
  pointer-events: none;
}

:root[data-theme="dark"] .site-footer__horizon {
  background:
    radial-gradient(80% 90% at 50% 120%, rgb(201 39 67 / 0.3), transparent 70%),
    radial-gradient(50% 60% at 50% 110%, rgb(232 62 120 / 0.2), transparent 70%);
}

/* the branch grows in from the right beside the wordmark, filling the space it leaves */
.site-footer__branch {
  position: absolute;
  right: 0;
  bottom: clamp(64px, 8vw, 104px);
  animation: sway 11s ease-in-out infinite alternate;
  transform-origin: 100% 30%;
  width: min(440px, 32vw);
  height: auto;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(32px, 5vw, 48px);
}

.site-footer__sign {
  display: grid;
  align-content: start;
  gap: 14px;
}

.site-footer__script {
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.site-footer__script .serif {
  font-size: 1.15em;
  color: var(--pink);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-links__title {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.footer-links ul {
  display: grid;
  gap: 8px;
}

.footer-links a {
  display: inline-block;
  transition:
    color var(--dur-fast),
    translate var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
  translate: 3px 0;
}

/* the name, large, as the last thing on every page */
.site-footer__mark {
  overflow: hidden;
  padding-top: clamp(8px, 2vw, 24px);
}

.site-footer__wordmark {
  position: relative;
  display: inline-block;
  padding-top: 0.12em;
  background: linear-gradient(180deg, var(--text) 10%, color-mix(in srgb, var(--text) 15%, transparent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 24vw, 14.5rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.065em;
  user-select: none;
}

.site-footer__wordmark .serif {
  padding-right: 0.06em;
  background: linear-gradient(180deg, var(--pink) 10%, color-mix(in srgb, var(--pink) 25%, transparent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.site-footer__wordmark svg {
  position: absolute;
  top: 0;
  left: 0.06em;
  width: 0.3em;
  height: 0.15em;
  fill: var(--crimson);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--border);
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- blossom branch (shared decoration) ---------- */

.blossom-branch {
  display: block;
  overflow: visible;
  pointer-events: none;
}

.blossom-branch__wood {
  stroke: var(--wood);
  opacity: 0.75;
}

.blossom-branch__flowers use {
  fill: var(--blossom);
  opacity: 0.92;
}

.blossom-branch__flowers .is-deep {
  fill: var(--pink);
  opacity: 0.8;
}

.blossom-branch__buds {
  fill: var(--pink);
}

/* ---------- support ---------- */

.support-button {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 190;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px);
  color: var(--text);
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    transform var(--dur) var(--ease),
    border-color 0.25s;
}

.support-button .bi {
  color: var(--pink);
  font-size: 0.8rem;
  transition: transform var(--dur) var(--ease);
}

.support-button:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
}

.support-button:hover .bi {
  transform: scale(1.2);
}

.support-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: min(640px, calc(100% - 32px));
  margin: auto;
  padding: clamp(22px, 5vw, 32px);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.support-dialog[open] {
  animation: pop 0.28s var(--ease);
}

.support-dialog::backdrop {
  background: rgb(36 32 42 / 0.5);
  backdrop-filter: blur(8px);
}

.support-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.support-dialog__header .label {
  font-size: 0.65rem;
}

.support-dialog__header h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1;
}

.support-dialog__header .icon-btn {
  flex: none;
}

.support-dialog__lede {
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.support-options {
  display: grid;
  gap: 10px;
}

.support-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  transition:
    transform 0.25s var(--ease),
    border-color var(--dur-fast);
}

.support-option:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
}

.support-option__icon {
  display: grid;
  flex: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.support-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
  margin-right: auto;
}

.support-option strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.support-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.support-option__arrow {
  flex: none;
  color: var(--muted);
  transition:
    color var(--dur-fast),
    transform 0.25s var(--ease);
}

.support-option:hover .support-option__arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ---------- search trigger in the header ---------- */

.palette-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--muted);
  font-size: 0.86rem;
  transition:
    border-color 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}

.palette-trigger:hover {
  border-color: color-mix(in srgb, var(--pink) 45%, transparent);
  color: var(--text);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.palette-trigger__label {
  min-width: 4.5em;
  text-align: left;
}

.palette-trigger__keys {
  display: flex;
  gap: 3px;
}

.palette-trigger__keys kbd {
  padding: 1px 6px;
  border-bottom-width: 1px;
  background: var(--surface-2);
  color: var(--muted);
}

/* ---------- the palette itself ---------- */

html:has(dialog[open]) {
  overflow: hidden;
}

.palette {
  width: min(660px, 100% - 32px);
  max-height: min(620px, 100dvh - 24vh);
  margin: 12vh auto auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(24px) saturate(1.5);
  color: var(--text);
  box-shadow: var(--highlight), var(--shadow-lg);
}

.palette[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.28s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    scale: 0.97;
    translate: 0 -8px;
  }
}

.palette::backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgb(232 62 120 / 0.14), transparent 60%),
    rgb(36 32 42 / 0.45);
  backdrop-filter: blur(10px);
  animation: fade 0.28s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.palette-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px 0 22px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.1rem;
}

.palette-input {
  flex: 1;
  min-width: 0;
  padding: 22px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.palette-input::placeholder {
  color: var(--muted);
}

.palette-esc {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}

.palette-list {
  flex: 1;
  min-height: 0;
  padding: 6px 8px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding: 34px 0 8px;
}

.palette-group + .palette-group {
  margin-top: 4px;
}

.palette-group__title {
  position: sticky;
  top: -6px;
  z-index: 1;
  margin: 0;
  padding: 12px 14px 6px;
  background: linear-gradient(var(--surface) 70%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.palette-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  scroll-margin: 8px;
}

.palette-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1rem;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast),
    transform 0.25s var(--ease);
}

.palette-item__text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.palette-item__label {
  font-weight: 600;
  line-height: 1.3;
}

.palette-item__label mark {
  border-radius: 3px;
  background: none;
  color: var(--accent);
  text-decoration: underline 2px color-mix(in srgb, var(--pink) 40%, transparent);
  text-underline-offset: 3px;
}

.palette-item__hint {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.palette-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-left: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.palette-item__here {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  white-space: nowrap;
}

.palette-item__enter {
  opacity: 0;
  transition: opacity 0.15s;
}

.palette-item:focus-visible {
  outline: 0;
}

.palette-item[aria-selected="true"] {
  background: var(--accent-soft);
}

.palette-item[aria-selected="true"]::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 3px;
  background: var(--pink);
}

.palette-item[aria-selected="true"] .palette-item__icon {
  border-color: transparent;
  background: var(--crimson);
  color: #fff;
  transform: rotate(-6deg);
}

.palette-item[aria-selected="true"] .palette-item__enter {
  opacity: 1;
}

.palette-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 20px;
  color: var(--muted);
  text-align: center;
}

.palette-empty .bi {
  font-size: 1.8rem;
  color: var(--pink);
}

.palette-empty strong {
  color: var(--text);
}

.palette-empty a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.palette-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
}

.palette-footer__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.palette-footer__keys span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.palette-footer__count {
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- toast (palette action feedback) ---------- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--ink-text);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  translate: -50% 12px;
  transition:
    opacity 0.25s,
    translate var(--dur) var(--ease);
}

.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

.toast .bi {
  color: var(--pink);
}

/* =========================================================
   page sections
   ========================================================= */

/* home page bands only; sections nested inside a page keep their own spacing */
main > section {
  padding: var(--space-section) 0;
}

/* Sits in normal flow under the fixed header; main is pulled up so pages keep their own spacing. */
.site-banner {
  padding-top: calc(var(--header-h) + 16px);
}

.site-banner + main {
  margin-top: calc(-1 * var(--header-h));
}

.site-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid color-mix(in srgb, var(--pink) 35%, transparent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--text);
  overflow-wrap: anywhere;
  animation: rise var(--dur-slow) var(--ease) both;
}

.site-banner__inner i {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Sections take turns with their own light: plum, crimson, dusk, sunset. */
.band {
  position: relative;
  isolation: isolate;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.band--plum::before {
  background:
    radial-gradient(55% 60% at 0% 35%, var(--tint-plum), transparent 70%),
    linear-gradient(180deg, transparent, var(--tint-plum-soft) 25% 75%, transparent);
}

.band--crimson::before {
  background:
    radial-gradient(50% 55% at 100% 30%, var(--tint-crimson), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, var(--tint-plum), transparent 70%);
}

.section-head {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* a large outlined numeral sits behind each home page section title */
.section-head[data-index]::before {
  content: attr(data-index);
  position: absolute;
  top: -0.5em;
  left: -0.06em;
  z-index: -1;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(6rem, 13vw, 10.5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px var(--numeral);
  pointer-events: none;
}

.section-head--split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px clamp(24px, 5vw, 64px);
  max-width: none;
}

.section-head--split > div {
  display: grid;
  gap: 18px;
}

.section-head--split > p {
  max-width: 38ch;
  padding-bottom: 0.4em;
  font-size: var(--text-lg);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  gap: clamp(48px, 7vw, 80px);
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 72px)) 0 56px;
  /* the dial may bleed past the edges without making the page scroll sideways */
  overflow-x: clip;
}

/* the pink light the whole hero sits in */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(36% 46% at 74% 44%, var(--hero-glow), transparent 70%),
    radial-gradient(28% 34% at 12% 34%, var(--hero-glow-soft), transparent 70%),
    radial-gradient(60% 30% at 50% 100%, var(--tint-plum), transparent 70%);
  pointer-events: none;
  animation: glow 12s ease-in-out infinite alternate;
}

@keyframes glow {
  to {
    opacity: 0.75;
    scale: 1.04;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-copy > * {
  animation: rise var(--dur-slow) var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 28px;
  font-size: var(--text-display);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero-title .serif {
  display: inline-block;
  padding-right: 0.06em;
  font-size: 1.3em;
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--pink);
  text-shadow: 0 0 60px var(--accent-glow);
}

.hero-title .heart {
  display: inline-block;
  margin-left: 0.04em;
  font-size: 0.34em;
  vertical-align: super;
  color: var(--crimson);
  animation: beat 2.2s ease-in-out infinite;
}

@keyframes beat {
  0%,
  60%,
  100% {
    scale: 1;
  }
  30% {
    scale: 1.18;
  }
}

.hero-lede {
  max-width: 42ch;
  margin: 30px 0 38px;
  color: var(--muted);
  font-size: var(--text-xl);
  line-height: 1.55;
}

/* the right half: a dial, orbits, a branch growing over it, and a file card on top */
.hero-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.hero-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(660px, 135%);
  height: auto;
  translate: -50% -50%;
  overflow: visible;
  animation: fade 1.6s var(--ease) both;
}

.hero-emblem g,
.hero-emblem circle {
  transform-origin: 300px 300px;
}

.hero-emblem__lines {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.hero-emblem__lines .is-faint {
  stroke: var(--border);
}

.hero-emblem__scale line {
  stroke: var(--muted);
  stroke-width: 1;
  opacity: 0.35;
}

.hero-emblem__scale .is-major {
  stroke: var(--text);
  stroke-width: 1.5;
  opacity: 0.7;
}

.hero-emblem__degrees {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.hero-emblem__arc-track {
  animation: spin 70s linear infinite;
}

.hero-emblem__arc {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 18 82;
  filter: drop-shadow(0 0 6px var(--pink));
}

.hero-emblem__orbit {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.75;
}

.hero-emblem__marker path {
  stroke: var(--pink);
  stroke-width: 2;
}

.hero-emblem__marker text {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero-emblem__satellite {
  fill: var(--pink);
}

.hero-emblem__satellite--outer {
  animation: spin 48s linear infinite;
}

.hero-emblem__satellite--inner {
  fill: var(--blossom);
  animation: spin 32s linear infinite reverse;
}

.hero-emblem .hero-emblem__halo {
  opacity: 0.22;
  animation: halo 3s ease-in-out infinite;
  transform-origin: 300px 10px;
}

@keyframes halo {
  50% {
    opacity: 0.08;
    scale: 1.5;
  }
}

.hero-emblem__horns {
  fill: var(--crimson);
}

.hero-emblem__code {
  fill: none;
  stroke: var(--pink);
  stroke-width: 0.8;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 200;
  letter-spacing: 0.42em;
  opacity: 0.7;
}

.hero-emblem__sun {
  animation: breathe 9s ease-in-out infinite alternate;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  to {
    scale: 1.08;
  }
}

.hero-branch {
  position: absolute;
  top: -18%;
  right: -12%;
  z-index: 0;
  width: min(420px, 90%);
  height: auto;
  pointer-events: none;
  animation: sway 9s ease-in-out infinite alternate;
  transform-origin: 100% 0;
}

@keyframes sway {
  to {
    rotate: -2.5deg;
  }
}

.hero-note {
  position: relative;
  z-index: 1;
  width: min(100%, 370px);
  padding: clamp(22px, 3vw, 28px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--highlight), var(--shadow-lg);
  animation: rise 1s 0.2s var(--ease) both;
}

/* a short pink edge, like a tab on a file */
.hero-note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--pink));
}

.hero-note__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hero-note__heading .label {
  gap: 9px;
  font-size: 0.62rem;
}

.hero-note__index,
.hero-note__number {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-note__list {
  display: grid;
  padding-top: 4px;
}

.hero-note__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
}

.hero-note__item + .hero-note__item {
  border-top: 1px dashed var(--border);
}

.hero-note__icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  font-size: 1rem;
  transition: rotate var(--dur) var(--ease);
}

.hero-note__item:hover .hero-note__icon {
  rotate: -8deg;
}

.hero-note__copy {
  display: grid;
  gap: 1px;
}

.hero-note__copy strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-note__arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-note__footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* readout cells under the hero */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  animation: rise 1s 0.35s var(--ease) both;
}

.fact {
  position: relative;
  padding: 24px 24px 0 0;
}

.fact::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--pink);
}

.fact + .fact {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.fact + .fact::before {
  left: 24px;
}

.fact-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-index {
  color: var(--muted);
  font-size: 0.62rem;
}

.fact p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- toolbox ticker ---------- */

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track li {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* a single drifting petal between each tool */
.marquee-track li::after {
  content: "";
  width: 9px;
  height: 8px;
  border-radius: 100% 4% 100% 30%;
  background: linear-gradient(135deg, var(--blossom), var(--pink));
  rotate: -20deg;
}

@keyframes marquee {
  to {
    translate: -50% 0;
  }
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.about-aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: clamp(32px, 4vw, 44px);
}

.about-aside .section-head {
  margin-bottom: 0;
}

.about-main {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  padding-top: clamp(0px, 2vw, 24px);
}

/* the about text is set like an editorial page, not another card */
.about-copy {
  position: relative;
  padding-left: clamp(20px, 3vw, 32px);
}

.about-copy::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--pink), var(--crimson) 40%, transparent);
}

.about-copy p + p {
  margin-top: 20px;
}

.about-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.about-copy .muted {
  max-width: 54ch;
  font-size: 1.02rem;
}

.interests {
  border-bottom: 1px solid var(--border);
}

.interests .interest {
  position: relative;
  display: grid;
  grid-template-columns: 36px auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 12px 22px 0;
  border-top: 1px solid var(--border);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.interests .interest::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -16px;
  z-index: -1;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--accent-soft), transparent 80%);
  opacity: 0;
  transition: opacity var(--dur);
}

.interests .interest:hover::before {
  opacity: 1;
}

.interests .interest-number {
  position: static;
  align-self: start;
  padding-top: 4px;
}

.interests .interest-icon {
  margin: 0;
}

.interests .interest:hover .interest-icon {
  rotate: -8deg;
}

.interest-copy h3 {
  font-size: 1.25rem;
  font-weight: 500;
}

.interest-copy p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.93rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento > * {
  grid-column: span 4;
}
.bento > .span-7 {
  grid-column: span 7;
}
.bento > .span-5 {
  grid-column: span 5;
}

/* the clock is an instrument: an analog face next to the time, on one of the dark panels */
.now-card {
  --tick: rgb(242 162 187 / 0.35);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  border-color: rgb(242 162 187 / 0.12);
  background:
    radial-gradient(80% 90% at 0% 50%, rgb(232 62 120 / 0.22), transparent 65%),
    radial-gradient(90% 80% at 100% 120%, rgb(201 39 67 / 0.28), transparent 65%),
    linear-gradient(150deg, #2c2232, #1a1420);
  box-shadow: var(--shadow-lg);
  color: var(--zt-porcelain);
}

.now-card .label,
.now-card .muted,
.now-card .activity {
  color: rgb(247 244 245 / 0.66);
}

.now-card:hover {
  --tick: var(--zt-blossom);
  border-color: rgb(242 162 187 / 0.24);
}

.now-dial {
  width: clamp(112px, 12vw, 148px);
}

.now-dial svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.now-dial g {
  transform-origin: 60px 60px;
}

.now-dial__face {
  fill: rgb(255 255 255 / 0.03);
  stroke: rgb(242 162 187 / 0.16);
  stroke-width: 1;
}

.now-dial__rim {
  fill: none;
  stroke: rgb(247 244 245 / 0.08);
  stroke-width: 0.75;
}

.now-dial__ticks line {
  stroke: rgb(247 244 245 / 0.25);
  stroke-width: 0.75;
}

.now-dial__ticks .is-major {
  stroke: rgb(247 244 245 / 0.75);
  stroke-width: 1.5;
}

.now-dial__numerals {
  fill: rgb(247 244 245 / 0.6);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 300;
  text-anchor: middle;
}

.now-dial__hand line {
  stroke: var(--zt-porcelain);
  stroke-linecap: round;
}

.now-dial__hand--hour {
  rotate: var(--hour, 0deg);
}

.now-dial__hand--hour line {
  stroke-width: 3.5;
}

.now-dial__hand--minute {
  rotate: var(--minute, 0deg);
}

.now-dial__hand--minute line {
  stroke-width: 2.2;
}

.now-dial__hand--second {
  rotate: var(--second, 0deg);
  fill: var(--zt-pink);
  filter: drop-shadow(0 0 3px rgb(232 62 120 / 0.8));
}

.now-dial__hand--second line {
  stroke: var(--zt-pink);
  stroke-width: 1;
}

.now-dial__pin {
  fill: var(--zt-pink);
  stroke: var(--zt-porcelain);
  stroke-width: 1;
}

.now-card__body {
  container-type: inline-size;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.clock {
  margin-top: 14px;
  font-family: var(--font-display);
  /* sized to the card, so "12:33:15 AM" always fits beside the face */
  font-size: clamp(1.6rem, 16.5cqi, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.now-card .date {
  margin-top: 10px;
  font-size: 0.92rem;
}

.now-card .activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgb(247 244 245 / 0.16);
  font-size: 0.92rem;
}

.interest-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.interest-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border: 1px solid color-mix(in srgb, var(--pink) 25%, transparent);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  transition: rotate 0.45s var(--ease);
}

.card:hover .interest-icon {
  rotate: -8deg;
}

.interest h3 {
  font-size: 1.3rem;
  font-weight: 500;
}

.interest p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- projects: one featured, then an index with a face for each ---------- */

.feature {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.feature__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--highlight), var(--shadow);
  transition:
    transform 0.5s var(--ease),
    border-color 0.3s,
    box-shadow 0.5s var(--ease);
}

a.feature__inner:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pink) 35%, var(--border));
  box-shadow: var(--highlight), var(--shadow-lg);
}

.feature__art {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 340px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 56%, rgb(232 62 120 / 0.5), transparent 58%),
    radial-gradient(80% 60% at 50% 120%, rgb(255 170 140 / 0.3), transparent 70%),
    linear-gradient(160deg, #2e1d2e, #19131e);
  color: var(--zt-blossom);
}

.feature__ring {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgb(242 162 187 / 0.28);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.feature__ring::after {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zt-pink);
  box-shadow: 0 0 12px var(--zt-pink);
}

.feature__ring--inner {
  width: 50%;
  border-style: dashed;
  border-color: rgb(242 162 187 / 0.2);
  animation-direction: reverse;
  animation-duration: 28s;
}

.feature__ring--inner::after {
  width: 5px;
  height: 5px;
  top: -3px;
  background: var(--zt-blossom);
  box-shadow: none;
}

.feature__glyph {
  position: relative;
  font-size: clamp(7rem, 13vw, 10.5rem);
  line-height: 1;
  text-shadow: 0 0 50px rgb(232 62 120 / 0.6);
  transition:
    transform 0.6s var(--ease),
    color 0.3s;
}

a.feature__inner:hover .feature__glyph {
  color: #fff;
  transform: scale(1.06) rotate(-5deg);
}

.feature__num {
  position: absolute;
  top: 20px;
  left: 22px;
  color: rgb(247 244 245 / 0.6);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
}

.feature__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(28px, 4.5vw, 56px);
}

.feature__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.feature__desc {
  max-width: 54ch;
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}

.feature__cta .bi {
  transition: transform var(--dur) var(--ease);
}

a.feature__inner:hover .feature__cta {
  background-size: 100% 1px;
}

a.feature__inner:hover .feature__cta .bi {
  transform: translate(3px, -2px);
}

.projects {
  border-bottom: 1px solid var(--border);
}

.project {
  --project-accent: var(--pink);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto 46px;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(24px, 3.2vw, 34px) 0;
  border-top: 1px solid var(--border);
}

/* a wash in the project's own colour sweeps in, and a line draws along the bottom */
.project::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  z-index: -1;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--project-accent) 11%, transparent),
    transparent 75%
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.project::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--project-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}

.project:hover::before,
.project:hover::after {
  transform: none;
}

.project-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-accent) 45%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--project-accent) 10%, transparent);
  color: var(--project-accent);
  font-size: 1.9rem;
  line-height: 1;
  transition:
    rotate 0.5s var(--ease),
    background 0.3s,
    color 0.3s;
}

.project-mark .serif {
  translate: 0 -0.06em;
}

.project:hover .project-mark {
  rotate: -10deg;
  background: var(--project-accent);
  color: #fff;
}

.project-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.project-num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  transition: color 0.3s;
}

.project-num::before {
  content: "№ ";
}

.project:hover .project-num {
  color: var(--accent);
}

.project-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  transition: translate 0.5s var(--ease);
}

.project:hover .project-name {
  translate: 8px 0;
}

.project-desc {
  max-width: 58ch;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.65;
}

.project .tags {
  justify-content: flex-end;
  max-width: 260px;
}

.project-arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    rotate 0.45s var(--ease);
}

a.project:hover .project-arrow {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
  rotate: 45deg;
}

.section-more {
  margin-top: 36px;
}

/* ---------- vr: dusk over the horizon ---------- */

.vr-section {
  padding-block: clamp(56px, 8vw, 104px);
}

.vr-card {
  --tick: rgb(242 162 187 / 0.35);
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 60vw, 680px);
  padding: clamp(28px, 6vw, 80px);
  border-color: rgb(242 162 187 / 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(40% 30% at 50% 104%, rgb(255 196 160 / 0.6), transparent 70%),
    radial-gradient(75% 55% at 50% 118%, rgb(255 150 130 / 0.45), transparent 70%),
    radial-gradient(120% 80% at 50% 128%, rgb(232 62 120 / 0.7), transparent 70%),
    linear-gradient(180deg, #150f19 0%, #221a28 50%, #3d1c2e 100%);
  box-shadow: var(--shadow-lg);
  color: var(--zt-porcelain);
}

.vr-card:hover {
  --tick: var(--zt-blossom);
  border-color: rgb(242 162 187 / 0.2);
}

/* rings of light rising from the sunset */
.vr-card::before {
  opacity: 1;
  background: repeating-radial-gradient(
    circle at 50% 135%,
    transparent 0 54px,
    rgb(242 162 187 / 0.12) 54px 55px
  );
  mask-image: linear-gradient(transparent 10%, #000 90%);
}

/* a sparse, fixed star field in the upper sky */
.vr-stars {
  position: absolute;
  inset: 0 0 45%;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 64%, rgb(255 255 255 / 0.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 18%, #fff, transparent),
    radial-gradient(1px 1px at 58% 46%, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 72% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 86% 38%, rgb(242 162 187 / 0.9), transparent),
    radial-gradient(1px 1px at 92% 70%, rgb(255 255 255 / 0.6), transparent),
    radial-gradient(1px 1px at 6% 58%, rgb(255 255 255 / 0.5), transparent);
  mask-image: linear-gradient(#000, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.5;
  }
}

.vr-wings {
  position: absolute;
  top: clamp(24px, 5vw, 56px);
  right: clamp(12px, 5vw, 64px);
  z-index: -1;
  width: clamp(260px, 44vw, 540px);
  height: auto;
  overflow: visible;
  animation: flutter 7s ease-in-out infinite alternate;
}

.vr-wings__sun {
  fill: rgb(242 162 187 / 0.1);
  filter: blur(14px);
}

.vr-wings__primary {
  stroke-width: 1.3;
}

.vr-wings__coverts {
  fill: var(--zt-blossom);
  opacity: 0.55;
}

@keyframes flutter {
  to {
    translate: 0 -10px;
    scale: 1.03;
  }
}

.vr-content {
  display: grid;
  justify-items: start;
  max-width: 600px;
}

.vr-card .label {
  color: rgb(247 244 245 / 0.72);
}

.vr-title {
  margin: 18px 0 18px -0.04em;
  padding-right: 0.1em;
  background: linear-gradient(180deg, #fff 35%, var(--zt-blossom));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(4.4rem, 13vw, 10.5rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.vr-title .serif {
  color: var(--zt-pink);
  -webkit-text-fill-color: var(--zt-pink);
}

.vr-desc {
  max-width: 40ch;
  margin-bottom: 32px;
  color: rgb(247 244 245 / 0.82);
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.6;
}

.vr-card .btn-ghost {
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.08);
  color: var(--zt-porcelain);
  box-shadow: none;
}

.vr-card .btn-ghost:hover {
  border-color: var(--zt-blossom);
  color: #fff;
}

/* ---------- verse ---------- */

.verse-section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 11vw, 140px);
}

/* soft light behind the words */
.verse-section::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--hero-glow-soft), transparent),
    radial-gradient(60% 40% at 50% 60%, var(--tint-plum), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.verse {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.ornament::before,
.ornament::after {
  content: "";
  width: min(120px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong));
}

.ornament::after {
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.ornament svg {
  width: 26px;
  height: 26px;
  fill: var(--blossom);
  animation: spin 30s linear infinite;
}

.verse blockquote {
  max-width: 30ch;
  margin-inline: auto;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.2vw, 3.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.verse blockquote::before,
.verse blockquote::after {
  color: var(--pink);
}

.verse blockquote::before {
  content: "“";
}
.verse blockquote::after {
  content: "”";
}

.verse figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.verse figcaption::before,
.verse figcaption::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- contact: the last page of the picture book ---------- */

.contact-section {
  position: relative;
  isolation: isolate;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 20% 0 0;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 80%, var(--tint-crimson), transparent 70%);
  pointer-events: none;
}

.contact {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 10vw, 128px) clamp(20px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 55% at 50% 125%, rgb(242 162 187 / 0.32), transparent 70%),
    radial-gradient(45% 40% at 50% 40%, var(--accent-soft), transparent 70%),
    var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--highlight), var(--shadow-lg);
  text-align: center;
}

/* the inner frame */
.contact::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 12px);
  pointer-events: none;
}

.contact-branch {
  position: absolute;
  top: -6px;
  right: -40px;
  z-index: -1;
  width: min(300px, 55%);
  height: auto;
  opacity: 0.85;
}

.contact-branch--low {
  top: auto;
  right: auto;
  bottom: -6px;
  left: -40px;
  width: min(220px, 40%);
  opacity: 0.5;
  rotate: 180deg;
}

/* a few petals that fall only inside the card */
.contact-petals i {
  position: absolute;
  top: -5%;
  z-index: -1;
  width: 9px;
  height: 7px;
  border-radius: 100% 4% 100% 30%;
  background: linear-gradient(135deg, var(--blossom), var(--pink));
  opacity: 0;
  animation: card-fall 14s linear infinite;
}

.contact-petals i:nth-child(1) {
  left: 18%;
}
.contact-petals i:nth-child(2) {
  left: 34%;
  animation-delay: -5s;
  animation-duration: 17s;
}
.contact-petals i:nth-child(3) {
  left: 62%;
  animation-delay: -9s;
}
.contact-petals i:nth-child(4) {
  left: 78%;
  animation-delay: -2s;
  animation-duration: 19s;
}
.contact-petals i:nth-child(5) {
  left: 90%;
  animation-delay: -12s;
  animation-duration: 15s;
}

@keyframes card-fall {
  0% {
    top: -5%;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    top: 102%;
    opacity: 0;
    transform: translateX(-40px) rotate(320deg);
  }
}

.contact .label {
  justify-content: center;
}

.contact-title {
  margin: 24px 0 28px;
  font-size: clamp(3.2rem, 9.6vw, 8.4rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.contact-title__weird {
  position: relative;
  display: inline-block;
}

.contact-title__weird .serif {
  color: var(--pink);
  text-shadow: 0 0 50px var(--accent-glow);
}

/* a hand-drawn underline that draws itself in */
.contact-title__weird svg {
  position: absolute;
  right: 2%;
  bottom: -0.1em;
  left: 4%;
  width: 94%;
  height: 0.18em;
  overflow: visible;
}

.contact-title__weird path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s 0.5s var(--ease);
}

.js .reveal:not(.visible) .contact-title__weird path {
  stroke-dashoffset: 320;
}

.contact > p {
  max-width: 46ch;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: var(--text-lg);
}

/* the email sits on a small slip, like an address on an envelope */
.contact-slip {
  display: inline-grid;
  justify-items: center;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 32px;
  padding: 18px clamp(20px, 4vw, 40px) 20px;
  border: 1px dashed color-mix(in srgb, var(--pink) 40%, var(--border));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.contact-slip__label {
  color: var(--muted);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--crimson), var(--pink)) 0 100% / 0 2px no-repeat;
  transition:
    background-size 0.6s var(--ease),
    color 0.3s;
}

.contact-email:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.contact .actions {
  justify-content: center;
}

/* ---------- error pages ---------- */

/* the shared page frame, with the status code set large in the serif behind the right side */
.error-page .wrap {
  position: relative;
  isolation: isolate;
}

.error-code {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: -1;
  color: var(--pink);
  font-size: clamp(7rem, 22vw, 17rem);
  line-height: 0.85;
  opacity: 0.85;
  pointer-events: none;
}

.error-log {
  max-width: 520px;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--pink);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.error-log b {
  color: var(--accent);
  font-weight: 500;
}

/* =========================================================
   reveal (content is only hidden once JS is confirmed running)
   ========================================================= */

.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity var(--dur-slow) var(--ease),
    translate var(--dur-slow) var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  translate: none;
}

/* =========================================================
   responsive
   ========================================================= */

@media (max-width: 900px) {
  /* the wordmark fills the width here, so the branch hangs from the top edge instead */
  .site-footer {
    padding-top: clamp(130px, 26vw, 180px);
  }

  .site-footer__branch {
    top: -4px;
    bottom: auto;
    width: min(320px, 62vw);
    transform-origin: 100% 0;
  }

  .hero-grid,
  .about-grid,
  .site-footer__inner,
  .section-head--split {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

  /* the dial becomes a backdrop behind the heading instead of a block of its own */
  .hero-visual {
    position: static;
    isolation: auto;
    display: block;
    min-height: 0;
  }

  .hero-emblem {
    top: calc(var(--header-h) - 20px);
    right: -42vw;
    left: auto;
    width: min(720px, 120vw);
    translate: none;
    opacity: 0.6;
  }

  .hero-branch {
    top: calc(var(--header-h) - 6px);
    right: -4vw;
    width: min(320px, 56vw);
  }

  /* the file card turns into a compact row of three */
  .hero-note {
    width: 100%;
  }

  .hero-note__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-block: 18px;
  }

  .hero-note__item,
  .hero-note__item + .hero-note__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border: 0;
  }

  .hero-note__arrow {
    display: none;
  }

  .about-aside {
    position: static;
  }

  .feature__inner {
    grid-template-columns: 1fr;
  }

  .feature__art {
    min-height: 220px;
  }

  .bento > *,
  .bento > .span-7,
  .bento > .span-5 {
    grid-column: span 12;
  }

  .project {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .project .tags {
    grid-column: 2;
    justify-content: flex-start;
    max-width: none;
  }

  .project-arrow {
    display: none;
  }

  .vr-card {
    flex-direction: column;
    justify-content: flex-end;
  }

  /* centred with margins, since the flutter animation owns translate */
  .vr-wings {
    right: 0;
    left: 0;
    width: min(440px, 88%);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-menu__desktop {
    display: none;
  }

  .nav-menu__mobile {
    display: inline;
  }

  .nav-menu__links {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    grid-template-columns: 1fr 1fr;
  }

  .nav-menu__mobile-primary {
    display: list-item;
  }

  .palette-trigger {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .palette-trigger__label,
  .palette-trigger__keys {
    display: none;
  }

  .palette {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    margin-top: 12px;
    border-radius: 20px;
  }

  .palette-footer__keys {
    display: none;
  }

  .palette-item__hint {
    font-size: 0.78rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* the code would sit behind the title here, so it fades right back */
  .error-code {
    top: 72px;
    opacity: 0.16;
  }

  :root {
    --header-h: 60px;
  }

  .site-header__inner {
    gap: 8px;
  }

  .site-header__tools {
    gap: 6px;
  }

  /* room for the floating support button */
  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 84px;
  }

  .site-footer__hint {
    display: none;
  }

  .section-head[data-index]::before {
    top: -0.38em;
    font-size: 5.5rem;
  }

  .hero-note__copy strong {
    font-size: 0.95rem;
  }

  .now-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .now-card__body {
    width: 100%;
  }

  .feature__art {
    min-height: 180px;
  }

  .feature__glyph {
    font-size: 6.5rem;
  }

  .project-mark {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

  .project {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
  }

  .vr-card {
    min-height: 560px;
  }

  .contact-slip {
    display: grid;
    width: 100%;
  }

  .contact .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .footer-links ul {
    gap: 10px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-note {
    padding: 22px;
  }

  .fact,
  .fact + .fact {
    padding: 18px 0;
    border-left: 0;
  }

  .fact + .fact {
    border-top: 1px solid var(--border);
  }

  .fact + .fact::before {
    left: 0;
  }

  .petals i:nth-child(n + 6) {
    display: none;
  }

  .contact {
    border-radius: var(--radius);
  }

  .contact::before {
    border-radius: calc(var(--radius) - 12px);
  }

  .discord-widget__card {
    grid-template-areas:
      "icon copy"
      "members join";
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px 16px;
    padding: 24px;
    border-radius: var(--radius);
  }

  .discord-widget__icon {
    width: 60px;
    border-radius: 18px;
  }

  .discord-widget__members {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-content: center;
    column-gap: 8px;
    min-width: 0;
    padding: 0;
    border-left: 0;
    text-align: left;
  }

  .discord-widget__members .bi-people-fill {
    grid-row: span 2;
    align-self: center;
    margin: 0;
  }

  .discord-widget__member-count {
    font-size: 1.15rem;
  }

  .discord-widget__member-label {
    font-size: 0.58rem;
  }

  .discord-widget__join {
    justify-self: end;
    gap: 10px;
    padding: 10px 11px 10px 13px;
    border-radius: 15px;
  }

  .discord-widget__join-copy strong {
    font-size: 0.8rem;
  }

  .discord-widget__join > .bi {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .discord-widget__watermark {
    right: -8%;
    font-size: 11rem;
  }

  /* icon only on phones; the label stays for screen readers */
  .support-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .support-button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .petals,
  .contact-petals {
    display: none;
  }
}
