/* The Infinite Heart — built from Brand and Voice Guide v5
   Cardo sets every title, heading, paragraph and pull line.
   Inter Medium 500 for eyebrows and footer caps only.
   Scale carries hierarchy. Not weight. */

/* Cardo and Inter are loaded from the document head, before this sheet. */

:root {
  /* twelve tokens */
  --coral: #DA795A;
  --coral-deep: #B0563B;
  --pink: #E5B5C7;
  --pink-deep: #B27A8E;
  --periwinkle: #8D7CA9;
  --periwinkle-deep: #5F5482;
  --dusk: #3A2F52;
  --dusk-mid: #4A3D68;
  --cream: #F6F1E9;
  --cream-deep: #EFE7DA;
  --ink: #1F1B1A;
  --ink-soft: #4A413E;

  --serif: 'Cardo', 'Iowan Old Style', Georgia, serif;
  --caps: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.1875rem, 1.6vw, 1.375rem);
  --text-xl: clamp(1.5rem, 2.6vw, 2rem);
  --text-2xl: clamp(1.875rem, 4vw, 2.75rem);
  --text-hero: clamp(2.5rem, 7vw, 4.75rem);

  --measure: 34rem;
  --measure-wide: 46rem;
  --shell: 74rem;

  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3rem;
  --s8: 4rem;
  --s12: 6rem;
  --section: clamp(4.5rem, 9vw, 8.5rem);

  --rule: 1px solid rgba(31, 27, 26, 0.14);
  --rule-light: 1px solid rgba(246, 241, 233, 0.18);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.16; letter-spacing: -0.008em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

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

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cream); color: var(--ink);
  padding: var(--s2) var(--s3); z-index: 100;
}
.skip:focus { left: var(--s2); top: var(--s2); }

/* ─── shell ─── */

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3.5rem); }
.measure { max-width: var(--measure); }
.measure-wide { max-width: var(--measure-wide); }
.center { margin-left: auto; margin-right: auto; }

section { position: relative; }
.band { padding: var(--section) 0; position: relative; overflow: hidden; }
.band--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.on-dusk { background: var(--dusk); color: var(--cream); }
.on-dusk-mid { background: var(--dusk-mid); color: var(--cream); }
.on-cream { background: var(--cream); color: var(--ink); }
.on-cream-deep { background: var(--cream-deep); color: var(--ink); }

.on-dusk a:hover, .on-dusk-mid a:hover { color: var(--pink); }

/* ─── eyebrow ─── */

.eyebrow {
  font-family: var(--caps);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin: 0 0 var(--s3);
  line-height: 1.4;
}
.on-dusk .eyebrow, .on-dusk-mid .eyebrow { color: var(--pink); }

/* ─── type roles ─── */

.display { font-size: var(--text-hero); line-height: 1.04; letter-spacing: -0.02em; }
.title { font-size: var(--text-2xl); line-height: 1.12; }
.subtitle { font-size: var(--text-xl); line-height: 1.2; }
.lede { font-size: var(--text-lg); line-height: 1.55; }
.small { font-size: var(--text-sm); }
.quiet { color: var(--ink-soft); }
.on-dusk .quiet, .on-dusk-mid .quiet { color: rgba(246, 241, 233, 0.68); }

.prose { max-width: var(--measure-wide); }
.prose p + p { margin-top: 0; }
.prose h3 { font-size: var(--text-xl); margin: var(--s8) 0 var(--s2); }
.prose h4 { font-size: var(--text-lg); margin: var(--s6) 0 var(--s1); }

/* ─── hairline flourish ─── */

.flourish { width: 68px; height: 1px; background: var(--coral); border: 0; margin: var(--s4) 0; }
.flourish--center { margin-left: auto; margin-right: auto; }

/* ─── bloom, the atmosphere ─── */
/* a diffuse rising light, borrowed from the reflection cards */

.bloom { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bloom::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -34%;
  width: min(160%, 1500px);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(58% 66% at 46% 100%, rgba(218, 121, 90, 0.50), rgba(218, 121, 90, 0) 70%),
    radial-gradient(46% 58% at 64% 100%, rgba(229, 181, 199, 0.42), rgba(229, 181, 199, 0) 70%),
    radial-gradient(52% 62% at 30% 98%, rgba(141, 124, 169, 0.40), rgba(141, 124, 169, 0) 72%);
  filter: blur(30px);
  opacity: 0.95;
}
.bloom--top::after { bottom: auto; top: -40%; transform: translateX(-50%) rotate(180deg); opacity: 0.55; }
.bloom--soft::after { opacity: 0.5; }
.bloom--wide::after { width: min(200%, 2000px); }

.on-cream .bloom::after, .on-cream-deep .bloom::after {
  background:
    radial-gradient(58% 66% at 48% 100%, rgba(218, 121, 90, 0.26), rgba(218, 121, 90, 0) 70%),
    radial-gradient(46% 58% at 66% 100%, rgba(229, 181, 199, 0.30), rgba(229, 181, 199, 0) 70%),
    radial-gradient(52% 62% at 30% 98%, rgba(141, 124, 169, 0.24), rgba(141, 124, 169, 0) 72%);
  filter: blur(36px);
}

.band > .shell { position: relative; z-index: 1; }

/* the fade, a little */
.fade-edge-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.25) 100%);
  mask-image: linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.25) 100%);
}

/* ─── the left rail, an editorial frame ─── */

.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: 64px; z-index: 60;
  background: var(--cream);
  border-right: var(--rule);
  display: flex; flex-direction: column; align-items: center;
  padding: 1.15rem 0 1.4rem;
}
.rail__burger {
  background: none; border: 0; padding: 0.4rem; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.rail__burger svg { width: 22px; height: 22px; }
.rail__spine {
  margin-top: auto; margin-bottom: auto;
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  font-family: var(--caps); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft);
}
/* the spine is marked, the way you would mark the line you meant to keep */
.rail__spine span {
  background-image: linear-gradient(rgba(229, 181, 199, 0.62), rgba(229, 181, 199, 0.62));
  background-repeat: no-repeat;
  background-position: 0.06em 0;
  background-size: 1.05em 100%;
  padding: 0.1em 0.06em;
}
.rail__mark { width: 30px; height: auto; opacity: 0.9; }

body { padding-left: 64px; }

/* ─── the top row ─── */

.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--s3);
  padding: 1.5rem clamp(1.25rem, 5vw, 3.5rem) 1.5rem;
  background: var(--cream); border-bottom: var(--rule);
  position: relative; z-index: 40;
}
.topbar__left { font-family: var(--caps); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.topbar__left a { border-bottom: 1px solid rgba(31,27,26,0.3); padding-bottom: 2px; }
.topbar__left a:hover { color: var(--coral-deep); border-bottom-color: var(--coral); }
.topbar__right { justify-self: end; }
.brand--start { justify-self: start; }
.brand { display: flex; align-items: center; gap: 0.65rem; justify-self: center; }
.brand__mark { width: 40px; height: auto; flex: none; }
.brand__name { white-space: nowrap; font-size: 1.1rem; letter-spacing: 0.005em; line-height: 1; }

/* ─── the drawer ─── */

.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(31, 27, 26, 0.42);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.scrim[data-open='true'] { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 80;
  width: min(92vw, max(50vw, 460px));
  background: var(--dusk); color: var(--cream);
  transform: translateX(-102%);
  transition: transform 0.52s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
  padding: 1.15rem clamp(1.75rem, 4vw, 3rem) 2.5rem;
  overflow-y: auto;
}
.drawer[data-open='true'] { transform: none; }
.drawer__close {
  align-self: flex-start; margin-left: -0.4rem;
  background: none; border: 0; padding: 0.4rem; cursor: pointer; color: var(--cream);
}
.drawer__close svg { width: 22px; height: 22px; }
.drawer__nav { margin-top: 2.5rem; display: flex; flex-direction: column; }
.drawer__nav a {
  font-size: clamp(1.35rem, 3.4vw, 1.75rem); line-height: 1.2;
  padding: 0.95rem 0; border-bottom: var(--rule-light);
  display: block;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-position: 0 88%;
  background-size: 0 2px;
  transition: background-size 0.42s cubic-bezier(.22,.61,.36,1), color 0.3s ease;
}
.drawer__nav a:hover { background-size: 100% 2px; color: var(--cream); }
.drawer__nav a[aria-current='page'] {
  background-size: 100% 2px;
  color: var(--cream);
  background-image: linear-gradient(var(--pink), var(--pink));
}
.drawer__foot { margin-top: auto; padding-top: 2.5rem; }
.drawer__foot p { font-family: var(--caps); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,241,233,0.5); margin-bottom: 0.9rem; }
.drawer__foot a { display: inline-block; font-size: var(--text-sm); margin-right: 1.25rem; border-bottom: 1px solid rgba(246,241,233,0.3); padding-bottom: 2px; }
.drawer__foot a:hover { border-bottom-color: var(--coral); }
.drawer__mark { width: 54px; margin-top: 2rem; opacity: 0.85; }

@media (max-width: 720px) {
  body { padding-left: 0; }
  .rail {
    left: 0; right: 0; bottom: auto; top: 0; width: auto; height: 56px;
    flex-direction: row; justify-content: space-between; align-items: center;
    padding: 0 1rem; border-right: 0; border-bottom: var(--rule);
  }
  .rail__spine { display: none; }
  .rail__mark { width: 34px; margin: 0; }
  .topbar { padding: 4.75rem 1.25rem 1.25rem; grid-template-columns: 1fr; justify-items: center; }
  .topbar__left { display: none; }
}

/* ─── the infinity, drawn in light ─── */

.infinity {
  display: block;
  width: min(760px, 88vw);
  height: min(360px, 44vw);
  margin: 0 auto var(--s3);
}
@media (max-width: 640px) { .infinity { height: 58vw; } }

/* ─── the mark, breathing, with a light travelling through it ─── */

.markwrap { position: relative; width: min(300px, 66vw); margin: 0 auto var(--s4); }
.markwrap__img { width: 100%; height: auto; }
.markwrap__sweep {
  position: absolute; inset: 0;
  -webkit-mask-image: var(--mark-mask); mask-image: var(--mark-mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(100deg, rgba(246,241,233,0) 38%, rgba(246,241,233,0.85) 50%, rgba(246,241,233,0) 62%);
  background-size: 260% 100%;
  animation: sweep 9s linear infinite;
  pointer-events: none;
}
@keyframes sweep {
  0% { background-position: 160% 0; }
  55%, 100% { background-position: -110% 0; }
}
.markwrap--breathing { animation: breathe 11s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); }
}
.markrule { width: 58px; height: auto; margin: var(--s4) auto 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .markwrap--breathing, .markwrap__sweep { animation: none; }
  .markwrap__sweep { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── the fade in ─── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal[data-shown='true'] { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.22s; }
.reveal--d3 { transition-delay: 0.34s; }

/* ─── hero ─── */

.hero { padding: clamp(4rem, 10vh, 7.5rem) 0 clamp(5rem, 12vh, 9rem); text-align: center; }
.hero__wordmark { font-size: var(--text-hero); line-height: 1; letter-spacing: -0.018em; }
.hero__sub { font-style: italic; color: var(--pink); font-size: var(--text-lg); margin-top: var(--s2); }
.hero__lede { margin: var(--s6) auto 0; max-width: 40rem; font-size: var(--text-lg); line-height: 1.6; }

.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head .display { max-width: 30ch; }
.page-head .lede { margin-top: var(--s4); max-width: var(--measure); }

/* ─── actions, editorial not cartoony ─── */
/* no pills. a word and a rule under it, the way a page does it. */

.acts { display: flex; flex-wrap: wrap; gap: 0.9rem 2.25rem; align-items: baseline; }
.acts--center { justify-content: center; }

.act {
  display: inline-block;
  font-family: var(--caps); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  line-height: 1.5;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(31, 27, 26, 0.3);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.act:hover { border-bottom-color: var(--coral); color: var(--coral-deep); }
.act--lead { border-bottom: 2px solid var(--coral); color: var(--ink); }
.act--lead:hover { border-bottom-color: var(--coral-deep); color: var(--coral-deep); }

.on-dusk .act, .on-dusk-mid .act { border-bottom-color: rgba(246, 241, 233, 0.4); color: var(--cream); }
.on-dusk .act:hover, .on-dusk-mid .act:hover { border-bottom-color: var(--coral); color: var(--pink); }
.on-dusk .act--lead, .on-dusk-mid .act--lead { border-bottom: 2px solid var(--coral); color: var(--cream); }
.on-dusk .act--lead:hover, .on-dusk-mid .act--lead:hover { color: var(--pink); }

.plate .act { border-bottom-color: rgba(31, 27, 26, 0.3); color: var(--ink); }
.plate .act:hover { border-bottom-color: var(--coral); color: var(--coral-deep); }
.plate .act--lead { border-bottom: 2px solid var(--coral); }

/* ─── accents that stay on ─── */
/* a highlight the way you would mark a page you meant to come back to */

.hl {
  background-image: linear-gradient(rgba(229, 181, 199, 0.55), rgba(229, 181, 199, 0.55));
  background-repeat: no-repeat;
  background-position: 0 0.12em;
  background-size: 100% 0.92em;
  padding: 0 0.12em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hl--coral { background-image: linear-gradient(rgba(218, 121, 90, 0.34), rgba(218, 121, 90, 0.34)); }
.hl--peri { background-image: linear-gradient(rgba(141, 124, 169, 0.34), rgba(141, 124, 169, 0.34)); }
.on-dusk .hl, .on-dusk-mid .hl { background-image: linear-gradient(rgba(229, 181, 199, 0.3), rgba(229, 181, 199, 0.3)); }
.on-dusk .hl--coral, .on-dusk-mid .hl--coral { background-image: linear-gradient(rgba(218, 121, 90, 0.42), rgba(218, 121, 90, 0.42)); }
.on-dusk .hl--peri, .on-dusk-mid .hl--peri { background-image: linear-gradient(rgba(141, 124, 169, 0.55), rgba(141, 124, 169, 0.55)); }
.plate .hl { background-image: linear-gradient(rgba(229, 181, 199, 0.55), rgba(229, 181, 199, 0.55)); }
.plate .hl--coral { background-image: linear-gradient(rgba(218, 121, 90, 0.34), rgba(218, 121, 90, 0.34)); }
/* at display scale a band reads as a slab; a drawn line carries it instead */
.display .hl, h1.display .hl {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-size: 100% 2px;
  background-position: 0 96%;
  padding: 0;
}
.on-dusk .display .hl, .on-dusk-mid .display .hl {
  background-image: linear-gradient(var(--pink), var(--pink));
}

/* a word underlined for pop */
.uw {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 1px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.uw--peri { background-image: linear-gradient(var(--periwinkle), var(--periwinkle)); }
.on-dusk .uw, .on-dusk-mid .uw { background-image: linear-gradient(var(--coral), var(--coral)); }

/* an inline link inside running text, underlined the editorial way */
.prose a, .u, .inline {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: background-size 0.3s ease, color 0.3s ease;
}
.prose a:hover, .u:hover, .inline:hover { background-image: linear-gradient(var(--coral), var(--coral)); background-size: 100% 2px; }

.link-arrow {
  font-family: var(--caps); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-bottom: 1px solid currentColor; padding-bottom: 0.28rem;
  transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.link-arrow:hover { gap: 0.85rem; color: var(--coral-deep); border-bottom-color: var(--coral); }
.on-dusk .link-arrow:hover, .on-dusk-mid .link-arrow:hover { color: var(--pink); }

/* ─── the devotion, a plate on cream ─── */

.plate {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(218, 121, 90, 0.28);
  padding: clamp(2.25rem, 5vw, 4rem);
  position: relative;
  text-align: center;
}
.plate .title { max-width: 26ch; margin: 0 auto; }

/* a cream plate can sit on any ground, so it resets its own inks */
.on-dusk .plate .quiet, .on-dusk-mid .plate .quiet { color: var(--ink-soft); }
.on-dusk .plate .eyebrow, .on-dusk-mid .plate .eyebrow { color: var(--coral-deep); }
.on-dusk .plate a:hover, .on-dusk-mid .plate a:hover { color: var(--coral-deep); }
.plate__mark { width: 58px; margin: var(--s4) auto 0; }

.pull {
  font-size: var(--text-xl);
  line-height: 1.34;
  max-width: 30ch;
}
.pull--center { text-align: center; margin-left: auto; margin-right: auto; }

blockquote { margin: 0; }

/* ─── stanza list, the devotion lines ─── */

.stanza { max-width: 40rem; }
.stanza p { font-size: var(--text-lg); line-height: 1.55; margin-bottom: 1em; }

/* ─── editorial grids ─── */

.grid { display: grid; gap: var(--s6) var(--s4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s6) clamp(2rem, 6vw, 5rem); }
.grid--sidebar { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: var(--s4) clamp(2rem, 6vw, 4.5rem); }
.grid--tight { gap: var(--s4); }
@media (max-width: 860px) {
  .grid--2, .grid--3, .grid--split, .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
}

.sticky { position: sticky; top: 110px; }
@media (max-width: 860px) { .sticky { position: static; } }

/* ─── ways in ─── */

.ways { border-top: var(--rule-light); }
.on-cream .ways, .on-cream-deep .ways { border-top: var(--rule); }
.way {
  display: block;
  padding: var(--s4) 0;
  border-bottom: var(--rule-light);
  transition: padding-left 0.3s ease;
}
.on-cream .way, .on-cream-deep .way { border-bottom: var(--rule); }
.way:hover { padding-left: 0.7rem; }
.way__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.way__name { font-size: var(--text-xl); line-height: 1.15; }
.way:hover .way__name { color: var(--coral); }
.on-dusk .way:hover .way__name, .on-dusk-mid .way:hover .way__name { color: var(--pink); }
.way__note { margin-top: 0.55rem; max-width: 44ch; }
.way__arrow { font-family: var(--caps); font-size: 1rem; opacity: 0.55; flex: none; }

/* ─── letters ─── */

.letter {
  display: block;
  padding: var(--s4) 0;
  border-bottom: var(--rule);
}
.on-dusk .letter, .on-dusk-mid .letter { border-bottom: var(--rule-light); }
.letter__meta {
  font-family: var(--caps); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.6rem;
}
.on-dusk .letter__meta { color: rgba(246,241,233,0.6); }
.letter__title { font-size: var(--text-lg); line-height: 1.24; }
.letter:hover .letter__title { color: var(--coral-deep); }
.on-dusk .letter:hover .letter__title { color: var(--pink); }

/* ─── numbered movements ─── */

.movement { padding: var(--s6) 0; border-top: var(--rule); }
.on-dusk .movement, .on-dusk-mid .movement { border-top: var(--rule-light); }
.movement:first-of-type { border-top: 0; padding-top: 0; }
.movement__num {
  font-family: var(--caps); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.14em; color: var(--coral-deep);
}
.on-dusk .movement__num { color: var(--pink); }
.movement__name { font-size: var(--text-xl); margin: 0.5rem 0 var(--s2); }

/* ─── definition rows ─── */

.rows { border-top: var(--rule); }
.on-dusk .rows, .on-dusk-mid .rows { border-top: var(--rule-light); }
.row {
  display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.5rem clamp(1.5rem, 4vw, 3.5rem);
  padding: var(--s3) 0; border-bottom: var(--rule);
}
.on-dusk .row, .on-dusk-mid .row { border-bottom: var(--rule-light); }
.row__term { font-size: var(--text-lg); line-height: 1.3; }
@media (max-width: 700px) { .row { grid-template-columns: minmax(0, 1fr); } }

/* ─── keynote cards ─── */

.keynote { border-top: 1px solid rgba(218, 121, 90, 0.4); padding: var(--s6) 0 var(--s4); }
.keynote__title { font-size: var(--text-2xl); line-height: 1.1; }
.keynote__sub { font-style: italic; font-size: var(--text-lg); color: var(--coral-deep); margin: 0.6rem 0 var(--s3); }
.on-dusk .keynote__sub, .on-dusk-mid .keynote__sub { color: var(--pink); }

/* ─── the subscribe strip, quiet and horizontal ─── */

.subscribe { padding: clamp(3rem, 6vw, 4.75rem) 0; }
.subscribe__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s3) clamp(2rem, 6vw, 5rem); align-items: end;
}
.subscribe__title { font-size: var(--text-xl); line-height: 1.2; max-width: 20ch; }
.subscribe__note { max-width: 42ch; }
@media (max-width: 860px) { .subscribe__inner { grid-template-columns: minmax(0, 1fr); align-items: start; } }

/* ─── the mosaic ─── */
/* every piece a different size and tint, and together one field */

.on-dusk .mosaic, .on-dusk-mid .mosaic { background: rgba(246, 241, 233, 0.16); border-color: rgba(246, 241, 233, 0.16); }
.on-dusk .tile, .on-dusk-mid .tile { background: var(--dusk-mid); color: var(--cream); }
.on-dusk .tile--deep, .on-dusk-mid .tile--deep { background: var(--dusk); }
.on-dusk .tile__meta, .on-dusk-mid .tile__meta { color: rgba(246, 241, 233, 0.6); }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: rgba(31, 27, 26, 0.12); border: 1px solid rgba(31, 27, 26, 0.12); }
.tile {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 15rem;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  background: var(--cream);
  position: relative; overflow: hidden;
  transition: background 0.4s ease;
}
.tile > * { position: relative; z-index: 1; }
.tile::after {
  content: ''; position: absolute; left: -20%; right: -20%; bottom: -70%; height: 130%;
  background: radial-gradient(70% 72% at 50% 100%, var(--tile-bloom, rgba(218,121,90,0.62)), rgba(0,0,0,0) 74%);
  filter: blur(16px); opacity: 1; z-index: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.tile:hover::after { opacity: 1; transform: translateY(-8%); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; min-height: 11rem; }
.tile--deep { background: var(--cream-deep); }
.tile--dusk { background: var(--dusk); color: var(--cream); --tile-bloom: rgba(229,181,199,0.4); }
.tile--dusk .tile__meta { color: rgba(246,241,233,0.6); }
.tile--peri { --tile-bloom: rgba(141,124,169,0.58); }
.tile--pink { --tile-bloom: rgba(229,181,199,0.72); }
.tile__meta {
  font-family: var(--caps); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 var(--s3);
}
.tile__title { font-size: var(--text-lg); line-height: 1.24; margin: 0; transition: color 0.3s ease; }
.span-3 .tile__title, .span-4 .tile__title, .span-6 .tile__title { font-size: var(--text-xl); }
.tile:hover .tile__title { color: var(--coral-deep); }
.tile--dusk:hover .tile__title { color: var(--pink); }
.tile--flat { justify-content: flex-start; min-height: 12.5rem; }
.tile__term { font-size: var(--text-md); line-height: 1.2; margin: 0 0 0.85rem; }
.tile__note { font-size: var(--text-sm); line-height: 1.62; margin: 0; opacity: 0.78; }
.tile--dusk .tile__note { opacity: 0.72; }
a.tile:hover .tile__term { color: var(--coral-deep); }
a.tile--dusk:hover .tile__term { color: var(--pink); }
.tile__link { margin-top: auto; padding-top: var(--s3); font-family: var(--caps); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 0.25rem; }
.tile__foot { margin-top: var(--s4); font-family: var(--caps); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 1 !important; min-height: 13rem; }
}
@media (max-width: 560px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .tile { grid-column: span 1 !important; }
}

/* ─── the portrait ─── */

.portrait { position: relative; max-width: 330px; isolation: isolate; }
.portrait img { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.portrait::after {
  content: ''; position: absolute; left: -14%; right: -14%; bottom: -22%; height: 62%;
  background: radial-gradient(58% 62% at 50% 100%, rgba(218,121,90,0.5), rgba(229,181,199,0.28) 45%, rgba(0,0,0,0) 72%);
  filter: blur(26px); z-index: 0;
}
.portrait__cap { position: relative; z-index: 1;
  font-family: var(--caps); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: var(--s2); opacity: 0.6;
}

/* ─── footer ─── */

.footer { background: var(--ink); color: rgba(246, 241, 233, 0.78); padding: var(--s8) 0 var(--s6); }
.footer a { color: rgba(246, 241, 233, 0.78); }
.footer a:hover { color: var(--coral); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__caps {
  font-family: var(--caps); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(246, 241, 233, 0.5); margin-bottom: var(--s2);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.6rem; font-size: var(--text-sm); }
.footer .quiet { color: rgba(246, 241, 233, 0.58); }
.footer__bottom {
  margin-top: var(--s8); padding-top: var(--s3);
  border-top: 1px solid rgba(246, 241, 233, 0.12);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between;
  font-family: var(--caps); font-size: var(--text-xs); letter-spacing: 0.08em;
  color: rgba(246, 241, 233, 0.45);
}

/* ─── the signup, plain and unhurried ─── */

.signup { margin-top: 1.75rem; }
.signup__fields {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.25rem;
}
@media (max-width: 560px) { .signup__fields { grid-template-columns: 1fr; } }

.field { display: block; }
.field__label {
  display: block;
  font-family: var(--caps);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.6rem;
}
.field__input {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 26%, transparent);
  padding: 0.4rem 0 0.55rem;
  border-radius: 0;
  transition: border-color 0.28s ease;
}
.field__input::placeholder { color: inherit; opacity: 0.32; }
.field__input:focus {
  outline: none;
  border-color: var(--coral);
}
.on-dusk .field__input:focus, .on-dusk-mid .field__input:focus { border-color: var(--pink); }

.signup__submit {
  margin-top: 1.75rem;
  font-family: var(--caps);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--coral);
  padding: 0 0 0.35rem;
  cursor: pointer;
  transition: border-color 0.28s ease, opacity 0.28s ease;
}
.signup__submit:hover { border-color: currentColor; }
.signup__submit[disabled] { opacity: 0.45; cursor: default; }
.on-dusk .signup__submit, .on-dusk-mid .signup__submit { border-bottom-color: var(--pink); }

.signup__msg {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  min-height: 1.4em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.signup__msg[data-state] { opacity: 0.85; }
.signup__msg[data-state="error"] { color: var(--coral-deep); opacity: 1; }
.on-dusk .signup__msg[data-state="error"], .on-dusk-mid .signup__msg[data-state="error"] { color: var(--pink); }

.signup--done .signup__fields, .signup--done .signup__submit { display: none; }
.signup--done .signup__msg { font-size: 1.12rem; opacity: 1; }

/* ─────────────────────────────────────────────
   The bloom — the home entrance
   The mark opens outward from the crossing, the
   wordmark rises into the foreground behind it,
   and the language drifts in afterward. The feeling
   is emergence, not arrival.
   ───────────────────────────────────────────── */

.bloomer { position: relative; }

.hero .infinity {
  transform-origin: 50% 50%;
  animation: markBloom 4160ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
  will-change: transform, opacity, filter;
}
@keyframes markBloom {
  0%   { opacity: 0; transform: scale(0.34); filter: blur(14px); }
  22%  { opacity: 0.55; filter: blur(7px); }
  62%  { opacity: 1; filter: blur(0.4px); }
  78%  { transform: scale(1.035); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* the wordmark comes forward, the way a true self does */
.bloom-in {
  opacity: 0;
  animation: wordBloom 2800ms cubic-bezier(0.18, 0.82, 0.22, 1) both;
  will-change: transform, opacity, filter;
}
.bloom-in--a { animation-delay: 600ms; }
.bloom-in--b { animation-delay: 1000ms; }
@keyframes wordBloom {
  0%   { opacity: 0; transform: translateY(1.35rem) scale(0.955); filter: blur(9px); letter-spacing: 0.06em; }
  55%  { opacity: 0.9; filter: blur(1.6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); letter-spacing: inherit; }
}

/* the language arrives after, from the side, unhurried */
.drift-in {
  opacity: 0;
  animation: driftIn 2400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.drift-in--c { animation-delay: 1400ms; }
.drift-in--d { animation-delay: 1750ms; }
@keyframes driftIn {
  0%   { opacity: 0; transform: translateX(-1.9rem); }
  100% { opacity: 1; transform: translateX(0); }
}

/* a light that widens behind the mark as it opens */
.hero .bloom--wide {
  animation: groundBloom 4800ms cubic-bezier(0.16, 0.84, 0.24, 1) both;
}
@keyframes groundBloom {
  0%   { opacity: 0; transform: scale(0.45); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .infinity, .bloom-in, .drift-in, .hero .bloom--wide {
    animation: none !important; opacity: 1 !important;
    transform: none !important; filter: none !important;
  }
}

/* a visitor who has already seen the bloom is not asked to wait for it again */
.no-bloom .bloom-in,
.no-bloom .drift-in {
  animation-delay: 0s;
  animation-duration: 350ms;
}

/* the mark in the rail is a way home */
.rail__home {
  display: block; line-height: 0;
  transition: opacity 180ms ease, transform 220ms ease;
}
.rail__home:hover, .rail__home:focus-visible { opacity: 1; transform: translateY(-2px); }
.rail__home .rail__mark { transition: opacity 180ms ease; }
.rail__home:hover .rail__mark { opacity: 1; }

/* ─────────────────────────────────────────────
   The cross-link between the hub and the person.
   Existing eyebrow and inline link tokens, laid out.
   ───────────────────────────────────────────── */

/* The cross-link band is a hairline, not a section. It sits tight under the
   page head, and the section beneath it tucks up rather than opening a canyon. */
.band--hair { padding: var(--s3) 0 0; }
.band--hair + .band { padding-top: var(--s4); }

.alsoin {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--s2) var(--s4);
  border-top: var(--rule);
  padding-top: var(--s3);
}
.alsoin__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.alsoin__links a[aria-current="page"] { color: var(--ink-soft); }
