/* =========================================================
   Crystal Kingdom Publishing
   Designed around the emblem: a night-blue sky that softens to lavender
   and dawn-pink clouds, rose-gold filigree and crystal details.
   Scrolling down moves through the sky: pearl clouds for the catalogue,
   then below the clouds into a starry night for contact.
   ========================================================= */

:root {
  /* sky, sampled from the emblem */
  --night: #16244a;
  --night-2: #0d1631;
  --sky: #2f5085;
  --peri: #6f78ac;
  --lilac: #918eb8;
  --mauve: #b9a7c3;
  --blush: #e8c9d6;
  --pearl: #f8eef2;
  --pearl-2: #f3eaf3;
  --lavender: #d9cde7;

  /* type */
  --ink: #2a2744;
  --ink-dim: #5f5878;
  --on-night: #f4f1fb;
  --on-night-dim: rgba(232, 228, 248, .74);

  /* rose gold */
  --gold: #b07c5c;
  --gold-light: #f1d3bb;
  --gold-line: rgba(176, 124, 92, .38);
  --gold-grad: linear-gradient(100deg, #a8714d 0%, #e6bf9f 28%, #fff1e2 50%, #d4a07c 72%, #9c6a49 100%);

  --display: "Marcellus", "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #e8c9d6; color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--night); color: #fff; border-radius: 4px;
}
.skip:focus { top: 12px; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--on-night);
  transition: background .5s ease, height .5s ease, box-shadow .5s ease;
}
.site-header.scrolled {
  --header-h: 66px;
  background: rgba(22, 36, 74, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(241, 211, 187, .22);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* the vector castle traced from the hero emblem (assets/castle-mark.svg) */
.brand-mark { width: 38px; height: 36px; margin-top: -4px; filter: drop-shadow(0 0 6px rgba(225, 215, 255, .5)); transition: width .5s ease, height .5s ease; }
.site-header.scrolled .brand-mark { width: 32px; height: 30px; }
.brand-word { font-family: var(--display); font-size: 15px; letter-spacing: .26em; text-transform: uppercase; }

.site-nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.site-nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 241, 251, .82);
  transition: color .3s ease;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px;
  background: var(--on-night);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: linear-gradient(180deg, var(--night-2), var(--night) 60%, #2f3f74);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a { font-family: var(--display); font-size: 30px; color: var(--on-night); text-decoration: none; letter-spacing: .04em; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .35s var(--ease), box-shadow .35s ease, background-position .8s ease, color .3s ease, border-color .3s ease;
}
.btn-gold {
  color: #3a2630;
  background: var(--gold-grad);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 8px 26px -10px rgba(156, 106, 73, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(156, 106, 73, .8), 0 0 24px rgba(255, 220, 200, .45); }
.btn-line {
  color: var(--ink);
  border: 1px solid rgba(176, 124, 92, .55);
  background: rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-line:hover { border-color: var(--gold); background: rgba(255, 255, 255, .6); transform: translateY(-2px); }

/* ---------- hero: the emblem's sky ----------
   The sky is graded to match the emblem row by row, so the emblem melts
   into it. --lt / --lh (the emblem's top and height) are set in main.js. */

.hero {
  --lt: 96px;
  --lh: 56vh;
  --mx: 0; --my: 0; --sy: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: 96px var(--gutter) 72px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg,
    #142247 0,
    #2f5085 var(--lt),
    #406196 calc(var(--lt) + var(--lh) * .22),
    #6f78ac calc(var(--lt) + var(--lh) * .37),
    #918eb8 calc(var(--lt) + var(--lh) * .52),
    #b9a7c3 calc(var(--lt) + var(--lh) * .66),
    #d6b9cc calc(var(--lt) + var(--lh) * .81),
    #e8c9d6 calc(var(--lt) + var(--lh)),
    #f5e3ea calc(var(--lt) + var(--lh) + 150px),
    var(--pearl) 100%);
}
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.moon, .moon-star {
  position: absolute;
  transition: transform 1.2s var(--ease);
}
.moon {
  top: calc(var(--header-h) + 5%);
  right: 11%;
  width: 84px; height: 84px;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 240, 248, .75)) drop-shadow(0 0 22px rgba(205, 190, 255, .45));
  transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px + var(--sy) * 60px), 0) rotate(-18deg);
  animation: fadein 3s ease .4s both, moonglow 7s ease-in-out 3.4s infinite;
}
/* the faintly lit rest of the moon */
.moon-ghost { fill: #e9e2ff; opacity: .05; }
.moon-star {
  top: calc(var(--header-h) + 5% + 6px);
  right: calc(11% + 92px);
  width: 13px; height: 13px;
  fill: #fff6fa;
  filter: drop-shadow(0 0 5px rgba(255, 236, 246, .9));
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--my) * -14px + var(--sy) * 70px), 0);
  animation: fadein 3s ease .8s both, twinkle 3.2s ease-in-out 4s infinite;
}
@keyframes moonglow {
  0%, 100% { opacity: 1; }
  50% { opacity: .82; }
}

/* clouds: soft overlapping puffs, moved by the pointer and scroll */
.clouds {
  position: absolute;
  left: -8%; right: -8%;
  transition: transform 1.4s var(--ease);
}
.clouds::before {
  content: "";
  position: absolute; inset: 0;
  animation: drift 46s ease-in-out infinite alternate;
}
.clouds-back {
  top: calc(var(--lt) + var(--lh) * .5);
  height: 46%;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--sy) * -40px), 0);
}
.clouds-back::before {
  background:
    radial-gradient(closest-side, rgba(244, 218, 233, .92), rgba(244, 218, 233, 0)) 4% 30% / 30% 52% no-repeat,
    radial-gradient(closest-side, rgba(240, 214, 232, .9), rgba(240, 214, 232, 0)) 16% 62% / 38% 56% no-repeat,
    radial-gradient(closest-side, rgba(222, 206, 238, .85), rgba(222, 206, 238, 0)) 10% 8% / 22% 34% no-repeat,
    radial-gradient(closest-side, rgba(244, 218, 233, .92), rgba(244, 218, 233, 0)) 96% 28% / 30% 52% no-repeat,
    radial-gradient(closest-side, rgba(240, 214, 232, .9), rgba(240, 214, 232, 0)) 84% 64% / 38% 56% no-repeat,
    radial-gradient(closest-side, rgba(222, 206, 238, .85), rgba(222, 206, 238, 0)) 90% 6% / 22% 34% no-repeat;
}
.clouds-front {
  bottom: -6%;
  height: 38%;
  transform: translate3d(calc(var(--mx) * -22px), calc(var(--sy) * -90px), 0);
}
.clouds-front::before {
  animation-duration: 34s;
  animation-direction: alternate-reverse;
  background:
    radial-gradient(closest-side, rgba(255, 246, 250, .96), rgba(255, 246, 250, 0)) 0% 60% / 40% 80% no-repeat,
    radial-gradient(closest-side, rgba(255, 244, 249, .95), rgba(255, 244, 249, 0)) 26% 88% / 42% 70% no-repeat,
    radial-gradient(closest-side, rgba(255, 248, 251, .95), rgba(255, 248, 251, 0)) 50% 100% / 56% 64% no-repeat,
    radial-gradient(closest-side, rgba(255, 244, 249, .95), rgba(255, 244, 249, 0)) 74% 88% / 42% 70% no-repeat,
    radial-gradient(closest-side, rgba(255, 246, 250, .96), rgba(255, 246, 250, 0)) 100% 60% / 40% 80% no-repeat;
}
@keyframes drift {
  from { transform: translateX(-2.5%); }
  to { transform: translateX(2.5%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  margin: 0;
  animation: float 9s ease-in-out infinite;
}
.logo-tilt {
  position: relative;
  display: block;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--ease);
  animation: bloom 1.8s var(--ease) both;
}
/* the emblem's edges are feathered so its sky becomes the page's sky */
/* two soft shapes: the frame and castle, and a wide band for the lettering */
.logo-tilt img,
.logo-sheen {
  --feather:
    radial-gradient(ellipse 50% 48% at 50% 46%, #000 68%, transparent 100%),
    radial-gradient(ellipse 50% 13% at 50% 81%, #000 70%, transparent 100%);
  -webkit-mask-image: var(--feather);
  mask-image: var(--feather);
}
.logo-tilt img {
  /* the emblem itself is about 76% of this width; the rest is soft sky */
  width: min(calc(100vw + 40px), 67vh, 620px);
  max-width: none;
  height: auto;
}
.logo-sheen {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx, 35%) var(--gy, 25%), rgba(255, 255, 255, .34), transparent 42%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bloom {
  from { opacity: 0; filter: blur(8px) brightness(1.3); transform: scale(.96); }
  to { opacity: 1; filter: none; }
}

.hero-lede {
  max-width: 540px;
  margin: -18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: #4d4669;
  animation: rise 1.4s var(--ease) .5s both;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 28px;
  animation: rise 1.4s var(--ease) .65s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

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

.status { background: var(--pearl); padding: 0 var(--gutter); }
.status-list {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.status-list::before, .status-list::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 124, 92, .55) 20%, rgba(176, 124, 92, .55) 80%, transparent);
}
.status-list::before { top: 0; }
.status-list::after { bottom: 0; }
.status-list li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
}
.status-list li + li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid var(--gold-line);
}
.status-list .k { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.status-list .v { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 26px; line-height: 1.2; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-dim); }
.dot-live {
  border: 0;
  background: #7d8ff0;
  box-shadow: 0 0 0 0 rgba(125, 143, 240, .5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 143, 240, .55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(125, 143, 240, 0); }
}

/* ---------- sections ---------- */

.section { position: relative; padding: clamp(84px, 11vw, 132px) var(--gutter); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--ink);
}
.section-lede { margin: 0; font-size: 17px; color: var(--ink-dim); }

/* filigree line with a crystal pendant in the middle */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 22px auto 20px;
}
.ornament::before, .ornament::after {
  content: "";
  width: min(110px, 22vw); height: 1px;
}
.ornament::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 14px; height: 22px; filter: drop-shadow(0 2px 6px rgba(150, 140, 220, .45)); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- publications ---------- */

.pubs {
  background:
    radial-gradient(ellipse 50% 40% at 0% 20%, rgba(217, 205, 231, .55), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 70%, rgba(232, 201, 214, .45), transparent 70%),
    var(--pearl);
}
.filters { display: flex; justify-content: center; gap: 10px; margin: -24px 0 56px; flex-wrap: wrap; }
.filter {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .35s ease;
}
.filter:hover { border-color: var(--gold); color: var(--ink); }
.filter.is-active { background: var(--gold-grad); border-color: transparent; color: #3a2630; }

.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 96px);
  max-width: 1020px;
  margin: 0 auto;
}
.title-card { text-align: center; }
.title-card.is-hidden { display: none; }

/* an arched window, like the emblem's frame, with a dawn sky inside */
.arch {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 5 / 7;
  margin: 0 auto;
  border-radius: 50% 50% 10px 10px / 35.7% 35.7% 10px 10px;
  background:
    radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255, 246, 250, .95), transparent 70%),
    linear-gradient(180deg, #8b93c6 0%, #b4a9cf 40%, #e5cada 75%, #f6e4ec 100%);
  border: 1px solid rgba(176, 124, 92, .55);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, .45),
    0 0 0 8px var(--gold-line),
    0 30px 60px -30px rgba(70, 60, 110, .45);
  perspective: 900px;
}
.arch::before {
  /* a little star at the top of the arch */
  content: "";
  position: absolute; left: 50%; top: -22px;
  width: 22px; height: 22px;
  transform: translateX(-50%);
  background: var(--gold-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.7 7.4 16.6 11.3 24 12 16.6 12.7 12.7 16.6 12 24 11.3 16.6 7.4 12.7 0 12 7.4 11.3 11.3 7.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.7 7.4 16.6 11.3 24 12 16.6 12.7 12.7 16.6 12 24 11.3 16.6 7.4 12.7 0 12 7.4 11.3 11.3 7.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arch::after {
  /* soft shadow where the book stands */
  content: "";
  position: absolute; left: 22%; right: 22%; bottom: 9%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 50, 100, .35), transparent);
}

.cover {
  position: absolute;
  left: 50%; bottom: 11%;
  z-index: 1;
  width: 56%;
  aspect-ratio: 2 / 3;
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
  transform: translateX(-50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease), box-shadow .5s ease;
  box-shadow:
    inset 3px 0 0 rgba(255, 255, 255, .25),
    inset 5px 0 6px -3px rgba(0, 0, 0, .25),
    0 18px 30px -14px rgba(40, 30, 80, .6);
}
.cover.is-tilting { transition: transform .15s linear; }
.title-card:hover .cover { box-shadow: inset 3px 0 0 rgba(255, 255, 255, .25), inset 5px 0 6px -3px rgba(0, 0, 0, .25), 0 24px 36px -14px rgba(40, 30, 80, .6), 0 0 30px rgba(255, 220, 235, .5); }
.cover::before {
  /* gold frame printed on the cover */
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(241, 211, 187, .7);
  border-radius: 2px;
}
.cover-glare {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .45), transparent 50%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.cover-content {
  position: relative; z-index: 1;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 14px;
  text-align: center;
}
.cover-kicker { font-size: 8px; letter-spacing: .26em; text-transform: uppercase; }
.cover-title { font-family: var(--display); font-size: clamp(17px, 2vw, 21px); line-height: 1.15; }
.cover-rule { width: 30px; height: 1px; background: var(--gold-grad); }
.cover-foot { font-size: 8px; letter-spacing: .24em; text-transform: uppercase; }
.cover-star { width: 18px; height: 18px; fill: url(#gold); }

.cover-science {
  color: #fbe9d8;
  background:
    radial-gradient(1px 1px at 22% 18%, #fff, transparent),
    radial-gradient(1px 1px at 72% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 82% 34%, #fff, transparent),
    radial-gradient(1px 1px at 14% 46%, #fff, transparent),
    radial-gradient(1px 1px at 60% 26%, #ffe9f2, transparent),
    radial-gradient(ellipse 90% 40% at 50% 105%, rgba(232, 201, 214, .7), transparent 70%),
    linear-gradient(175deg, #142247 0%, #2f5085 50%, #6f78ac 100%);
}
.cover-science .cover-kicker { color: var(--gold-light); }
.cover-planner {
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(175deg, #f8e6ee 0%, #ecd3e2 55%, #d8cbe8 100%);
}
.cover-planner::before { border-color: rgba(176, 124, 92, .6); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), inset 0 0 0 4px rgba(176, 124, 92, .35); }
.cover-planner .cover-kicker, .cover-planner .cover-foot { color: var(--gold); }

.title-body { margin-top: 38px; }
.title-meta {
  display: flex; justify-content: center; gap: 14px;
  margin: 0 0 10px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.title-meta span + span::before { content: "✦"; margin-right: 14px; font-size: 8px; vertical-align: 2px; }
.title-name { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.15; }
.title-desc { max-width: 380px; margin: 0 auto 20px; color: var(--ink-dim); }
.title-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px; }
.title-link {
  display: inline-flex; gap: 10px;
  padding-bottom: 5px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  transition: border-color .3s ease, gap .3s ease;
}
.title-link:hover { border-color: var(--gold); gap: 16px; }
.title-link[aria-disabled="true"] { opacity: .55; cursor: default; }
.title-link[aria-disabled="true"]:hover { gap: 10px; border-color: var(--gold-line); }

/* ---------- brands ---------- */

.brands { background: linear-gradient(180deg, var(--pearl), var(--pearl-2)); }
.brand-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.brand-tile {
  position: relative;
  padding: 64px 36px 40px;
  text-align: center;
  border-radius: 170px 170px 10px 10px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35));
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .35), 0 24px 50px -30px rgba(70, 60, 110, .35);
  transition: transform .6s var(--ease), box-shadow .6s ease;
}
.brand-tile:hover { transform: translateY(-6px); box-shadow: 0 0 0 6px rgba(255, 255, 255, .5), 0 30px 60px -30px rgba(70, 60, 110, .45), 0 0 40px rgba(232, 201, 214, .6); }
.brand-tile-star { width: 28px; height: 28px; fill: url(#gold); margin-bottom: 18px; filter: drop-shadow(0 0 8px rgba(255, 220, 200, .8)); }
.brand-tile h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 28px; }
.brand-tile p { margin: 0 auto 24px; max-width: 280px; color: var(--ink-dim); }
.brand-tile-foot { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.brand-tile-empty { background: transparent; border-style: dashed; box-shadow: none; }
.brand-tile-empty:hover { box-shadow: none; }
.plus { display: block; font-family: var(--display); font-size: 40px; line-height: 28px; color: var(--gold); margin-bottom: 18px; }

/* ---------- about + rights ---------- */

.about { background: linear-gradient(180deg, var(--pearl-2), var(--lavender) 85%, #cbbfe0); }
.about-panel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 76px) clamp(22px, 6vw, 80px);
  text-align: center;
  border-radius: 6px;
  border: 1px solid rgba(176, 124, 92, .4);
  background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .3), 0 30px 70px -40px rgba(60, 50, 110, .5);
}
.about-panel .section-title { margin-bottom: 24px; }
.about-panel > p { max-width: 680px; margin: 0 auto 16px; color: var(--ink-dim); }
.about-panel > .about-lead { font-family: var(--display); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.55; color: var(--ink); }
.about-panel .ornament { margin: 40px auto 34px; }
.about-heading { margin: 0 0 30px; font-family: var(--display); font-weight: 400; font-size: 28px; scroll-margin-top: 100px; }
.rights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0;
  text-align: left;
}
.rights div { padding-top: 18px; border-top: 1px solid var(--gold-line); }
.rights dt { margin-bottom: 8px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.rights dd { margin: 0; font-size: 15px; color: var(--ink-dim); }

/* ---------- contact: below the clouds, at night ---------- */

.contact {
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(200px, 22vw, 260px);
  color: var(--on-night);
  background: linear-gradient(180deg, #cbbfe0 0, #8f8ec2 70px, #4d5d98 180px, #273a6e 320px, var(--night) 70%);
}
.contact::before {
  /* the underside of the cloud layer we just came through */
  content: "";
  position: absolute; left: -10%; right: -10%; top: 0;
  height: 200px;
  z-index: -1;
  background:
    radial-gradient(closest-side, #cbbfe0, rgba(203, 191, 224, 0)) 0% 0% / 34% 100% no-repeat,
    radial-gradient(closest-side, #cfc2e2, rgba(207, 194, 226, 0)) 26% 10% / 34% 90% no-repeat,
    radial-gradient(closest-side, #cbbfe0, rgba(203, 191, 224, 0)) 52% 0% / 36% 110% no-repeat,
    radial-gradient(closest-side, #d1c4e3, rgba(209, 196, 227, 0)) 76% 8% / 34% 90% no-repeat,
    radial-gradient(closest-side, #cbbfe0, rgba(203, 191, 224, 0)) 100% 0% / 34% 100% no-repeat;
  animation: drift 50s ease-in-out infinite alternate;
}
.contact .stars { z-index: -2; }
.contact .kicker { color: var(--gold-light); }
.contact .section-title { color: #fff; }
.contact .section-lede { color: var(--on-night-dim); }
.contact .ornament::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.contact .ornament::after { background: linear-gradient(90deg, var(--gold-light), transparent); }

.contact-form {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 6px;
  border: 1px solid rgba(241, 211, 187, .3);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 30px 70px -40px rgba(0, 0, 0, .6);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span {
  display: block; margin-bottom: 8px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(241, 211, 187, .15);
}
.field.invalid input, .field.invalid textarea { border-color: #ffa9c2; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.form-direct { margin: 0; font-size: 14px; color: var(--on-night-dim); }
.form-direct a { color: var(--gold-light); }
.form-note { margin: 14px 0 0; min-height: 1.4em; font-size: 14px; color: var(--gold-light); }

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

.site-footer {
  padding: 64px var(--gutter) 44px;
  text-align: center;
  color: var(--on-night-dim);
  background: linear-gradient(180deg, var(--night), var(--night-2));
  border-top: 1px solid rgba(241, 211, 187, .14);
}
/* the circle emblem's medallion, matching the social profile image */
.footer-mark { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 22px rgba(205, 195, 255, .4); }
.footer-word { margin: 12px 0 22px; font-family: var(--display); font-size: 18px; letter-spacing: .22em; text-transform: uppercase; color: var(--on-night); }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 26px; }
.footer-nav a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: color .3s ease; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-legal { margin: 0; font-size: 13px; opacity: .7; }

/* ---------- glints ----------
   A tiny glint that glides along an edge, with specks of glitter blinking
   beside it. main.js positions them. */

.glint {
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  fill: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(214, 160, 120, .95));
}
.glint.is-on { opacity: 1; }
/* it only flickers and turns; it never grows */
.glint use { transform-origin: 12px 12px; animation: twinkle 1.3s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(.85) rotate(0deg); opacity: .55; }
  30% { opacity: 1; }
  50% { transform: scale(1) rotate(30deg); opacity: .8; }
  70% { opacity: 1; }
}
.glint-dust {
  position: absolute;
  z-index: 3;
  width: 2px; height: 2px;
  margin: -1px 0 0 -1px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(214, 160, 120, .95);
  pointer-events: none;
  animation: dust 520ms ease-out forwards;
}
@keyframes dust {
  0% { opacity: 0; transform: scale(.4); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.6); }
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .brand-word { font-size: 13px; letter-spacing: .22em; }
  .moon { width: 52px; height: 52px; right: 7%; }
  .moon-star { right: calc(7% + 58px); width: 10px; height: 10px; }
  .status-list { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .status-list li:nth-child(3)::before { display: none; }
  .shelf, .brand-row { grid-template-columns: 1fr; }
  .rights { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
