/* Koinonia Studio
   Layout: a path from night to day and back. Twilight opens and closes the story
   (hero, contact); the reading chapters in between follow the viewer's theme,
   Dawn when light and Twilight when dark. A small figure walks the left rail. */

/* Modern Sans by Pavel Larin, self-hosted. Light for display, Regular for text, Medium for eyebrows and buttons. */
@font-face { font-family: "Modern Sans"; src: url("../fonts/web/ModernSans-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Modern Sans"; src: url("../fonts/web/ModernSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Modern Sans"; src: url("../fonts/web/ModernSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Modern Sans"; src: url("../fonts/web/ModernSans-RegularOblique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Koinonia color tokens, Dawn values */
  --surface: #FBF7FF;
  --surface-raised: #FFFFFF;
  --ink: #2B2A5E;
  --ink-muted: #5E5B8A;
  --twilight: #3D3B8E;
  --on-twilight: #FFFFFF;
  --periwinkle: #A9A3F0;
  --blush: #F5A9C9;
  --apricot: #FBC48A;
  --lagoon: #6BD6CC;
  --sky: #C4ECFA;
  --coral: #E2603F;
  --coral-text: #C24A2C;
  --hairline: #E2DDF5;
  --focus-ring: #C24A2C;
  --band: #F3EEFF;
  --header-glass: rgba(251, 247, 255, 0.86);

  /* Text on any pastel fill stays Dawn ink in both themes */
  --on-pastel: #2B2A5E;

  /* The night sky: the same in both themes */
  --night-top: #1E1D45;
  --night-mid: #3D3B8E;
  --night-glow: #4FC4B9;
  --night-raised: #2A2960;
  --night-ink: #F4F1FF;
  --night-muted: #B9B5E0;
  --night-hairline: #4A4890;
  --night-focus: #F7A58E;
  --night-link: #F7A58E;
  --night-field: rgba(30, 29, 69, 0.55);

  /* Type: Modern Sans carries the whole brand */
  --font-display: "Modern Sans", "Josefin Sans", Futura, "Century Gothic", system-ui, sans-serif;
  --font-sans: "Modern Sans", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 112px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-arch: 999px;

  /* Shadows: tinted indigo, never grey */
  --shadow-soft: 0 12px 32px rgba(61, 59, 142, 0.14);
  --shadow-float: 0 24px 56px rgba(61, 59, 142, 0.22);

  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1160px;
  --header-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1E1D45;
    --surface-raised: #2A2960;
    --ink: #F4F1FF;
    --ink-muted: #B9B5E0;
    --twilight: #4B48A8;
    --periwinkle: #9C96F0;
    --blush: #E98DB5;
    --apricot: #F2B272;
    --lagoon: #4FC4B9;
    --sky: #2E4A7A;
    --coral: #F07A5A;
    --coral-text: #F7A58E;
    --hairline: #3A3970;
    --focus-ring: #F7A58E;
    --band: #24234F;
    --header-glass: rgba(30, 29, 69, 0.86);
    --shadow-soft: 0 12px 32px rgba(10, 9, 36, 0.4);
    --shadow-float: 0 24px 56px rgba(10, 9, 36, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --surface: #1E1D45;
  --surface-raised: #2A2960;
  --ink: #F4F1FF;
  --ink-muted: #B9B5E0;
  --twilight: #4B48A8;
  --periwinkle: #9C96F0;
  --blush: #E98DB5;
  --apricot: #F2B272;
  --lagoon: #4FC4B9;
  --sky: #2E4A7A;
  --coral: #F07A5A;
  --coral-text: #F7A58E;
  --hairline: #3A3970;
  --focus-ring: #F7A58E;
  --band: #24234F;
  --header-glass: rgba(30, 29, 69, 0.86);
  --shadow-soft: 0 12px 32px rgba(10, 9, 36, 0.4);
  --shadow-float: 0 24px 56px rgba(10, 9, 36, 0.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

img, svg { max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--coral-text); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.night :focus-visible { outline-color: var(--night-focus); }

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
}
.skip-link:focus { top: var(--space-3); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---------- Type scale (from the Koinonia tokens) ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow--tiny { font-size: 12px; letter-spacing: .18em; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: .09em;
  margin: 0;
}
/* Wordmark alternates, each applied to its own letter: the curled K is stylistic set 2
   (which would also change the n), the single-story a is stylistic set 1 */
.k-curl { font-feature-settings: "ss02" 1; }
.a-alt { font-feature-settings: "ss01" 1; }
.wordmark--small { font-size: 24px; line-height: 1; text-decoration: none; color: inherit; }
.wordmark--hero { font-size: clamp(56px, 9vw, 112px); line-height: 1; margin-left: -.04em; }
.wordmark--footer { font-size: 32px; line-height: 40px; }

.title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: .02em;
}
.title--sm { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; }
.title--lg { font-size: clamp(40px, 6vw, 64px); line-height: 1.1; letter-spacing: .03em; }

.tagline { font-size: clamp(19px, 2vw, 22px); line-height: 32px; }
.tagline-sm { font-size: 20px; line-height: 30px; }
.heading { font-size: 20px; line-height: 28px; font-weight: 500; }
.lede { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 56ch; }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--ink-muted); }
.muted-night { color: var(--night-muted); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.button--small { min-height: 44px; padding: 0 16px; }
.button--wide { width: 100%; }

/* Apricot lamplight: the warm call to action */
.button--lamp {
  background: #FBC48A;
  color: var(--on-pastel);
  box-shadow: 0 0 0 0 rgba(251, 196, 138, 0);
}
.button--lamp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(251, 196, 138, 0.38);
}

.button--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.button--ghost:hover { transform: translateY(-2px); }

.round-button {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.round-button:hover { transform: scale(1.06); }
.round-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--night-ink);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-glass);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-header.is-night {
  background: rgba(30, 29, 69, 0.86);
  color: var(--night-ink);
  box-shadow: 0 1px 0 var(--night-hairline);
}
.site-header__inner {
  max-width: 1280px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-1); }
.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  line-height: 20px;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after { opacity: 1; transform: translate(-50%, 0); }

.site-header__actions { display: flex; align-items: center; gap: var(--space-2); }


.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  place-items: center;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 20px; height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- The path (chapter rail) ---------- */

.path {
  position: fixed;
  left: 20px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  padding: 18px 10px;
  border-radius: var(--radius-arch);
  background: var(--header-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  display: none;
}
.path__track {
  position: absolute;
  left: 50%; top: 26px; bottom: 26px;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--hairline) 0 4px, transparent 4px 9px);
}
.path__trail {
  width: 100%;
  height: 0;
  background: var(--periwinkle);
  border-radius: 2px;
}
.path__stops { position: relative; display: grid; gap: 22px; }
.path__stops a {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  color: inherit;
  text-decoration: none;
}
.path__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 2px var(--periwinkle);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.path__stops a.is-passed .path__dot { background: var(--periwinkle); }
.path__stops a.is-current .path__dot { background: var(--apricot); box-shadow: inset 0 0 0 2px var(--apricot); transform: scale(1.3); }
.path__label {
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translate(-6px, -50%);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.path__stops a:hover .path__label,
.path__stops a:focus-visible .path__label { opacity: 1; transform: translate(0, -50%); }

.path__walker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 22px;
  height: 40px;
  margin-left: 6px;
  transform: translateY(0);
  pointer-events: none;
  color: var(--ink);
  transition: transform .5s var(--ease);
}
.path__walker .walker__body { fill: #F5A9C9; }
.path__walker .walker__head { fill: #FDE7D0; }
.walker__hat { display: none; fill: #3D3B8E; }
.walker__hat .hat-band { fill: #E98DB5; }
.walker__hat .hat-pom { fill: #C8F0EB; }
.walker__hat .hat-brim { fill: #FBC48A; }
.path[data-hat="beanie"] .walker__hat--beanie,
.path[data-hat="sun"] .walker__hat--sun,
.path[data-hat="top"] .walker__hat--top,
.path[data-hat="bowler"] .walker__hat--bowler,
.path[data-hat="pillbox"] .walker__hat--pillbox { display: inline; }
.path[data-hat="beanie"] .walker__hat--beanie path { fill: #4FC4B9; }
.path[data-hat="beanie"] .walker__hat--beanie .hat-band { fill: #2A8C86; }
.path[data-hat="sun"] .walker__hat--sun path { fill: #F2B272; }
.path[data-hat="bowler"] .walker__hat--bowler path { fill: #8681C7; }
.path[data-hat="bowler"] .walker__hat--bowler .hat-brim { fill: #A9A3F0; }
.path[data-hat="pillbox"] .walker__hat--pillbox rect { fill: #4FC4B9; }
.path[data-hat="pillbox"] .walker__hat--pillbox .hat-brim { fill: #C8F0EB; }
.path__walker.is-stepping { animation: step .5s var(--ease); }

@keyframes step {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@media (min-width: 1240px) {
  .path { display: block; }
}

.progress {
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 49;
  height: 2px;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #A9A3F0, #FBC48A);
}
@media (min-width: 1240px) { .progress { display: none; } }

/* ---------- Night sections (Twilight sky) ---------- */

.night {
  position: relative;
  background: linear-gradient(180deg, var(--night-top) 0%, var(--night-mid) 78%, var(--night-glow) 100%);
  color: var(--night-ink);
  isolation: isolate;
}
.night .eyebrow { color: var(--night-ink); }
/* the hero eyebrow sits over the moon's glow, so a soft shadow keeps it legible */
.hero__words .eyebrow { text-shadow: 0 1px 2px rgba(30, 29, 69, .6), 0 0 10px rgba(30, 29, 69, .5); }
.night a:not(.button) { color: var(--night-link); }

.stars { position: absolute; inset: 0 0 45% 0; pointer-events: none; z-index: -1; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #FFFFFF;
  opacity: .8;
  animation: twinkle var(--t, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: .8; }
  50% { opacity: .25; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  padding-bottom: clamp(72px, 9vw, 112px);
  overflow: hidden;
}
.hero__moon {
  position: absolute;
  left: clamp(-40px, 4vw, 90px);
  top: calc(var(--header-h) + 8px);
  width: clamp(120px, 15vw, 190px);
  z-index: -1;
  will-change: transform;
}
.moon__halo { animation: halo 7s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes halo {
  0%, 100% { transform: scale(1); opacity: .28; }
  50% { transform: scale(1.05); opacity: .2; }
}

.hero__inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.hero__words {
  display: grid;
  gap: 18px;
  padding-left: clamp(0px, 10vw, 150px);
  min-width: 0;
}
.hero__words .tagline { max-width: 26ch; letter-spacing: .02em; }
.hero__lede { color: var(--night-muted); max-width: 44ch; letter-spacing: .02em; font-size: 15px; line-height: 25px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__actions .button--ghost { background: #5E5BC4; color: #FFFFFF; box-shadow: none; }
.hero__actions .button--ghost:hover { background: #6E6BD4; }

.definition {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--night-hairline);
  font-size: 14px;
  line-height: 22px;
  color: var(--night-muted);
}
.definition__word { font-family: var(--font-display); font-size: 18px; color: var(--night-ink); letter-spacing: .06em; }
.definition__pos { font-style: italic; }

.hero__scene { margin: 0; min-width: 0; will-change: transform; }
.scene { display: block; width: 100%; height: auto; overflow: visible; }
.hero__hint {
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  color: var(--night-muted);
  opacity: .9;
}

/* Scene life */
.person, .seat { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; }
.person { transition: transform .35s var(--ease); }
.person.is-hopping { animation: hop .6s var(--ease); }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-9px) scaleY(1.04); }
  65% { transform: translateY(0) scaleY(.94); }
}
.person--arriving { animation: arrive 5.5s var(--ease) infinite; }
/* in the hero, the green-hat figure appears in the middle of the room in the screen and walks out onto the keyboard */
#hero-scene .person--arriving { animation: step-out 8s ease-in-out infinite; }
@keyframes step-out {
  0% { transform: translate(66px, -27px); opacity: 0; }
  10% { transform: translate(66px, -27px); opacity: 1; }
  55%, 88% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes arrive {
  0%, 15% { transform: translate(-6px, -8px); opacity: 0; }
  30% { opacity: 1; }
  60%, 100% { transform: translate(0, 0); opacity: 1; }
}
.scene-pixels rect { animation: pixel 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene-pixels rect:nth-child(2) { animation-delay: .6s; }
.scene-pixels rect:nth-child(3) { animation-delay: 1.2s; }
.scene-pixels rect:nth-child(4) { animation-delay: 1.8s; }
@keyframes pixel {
  0%, 100% { opacity: .2; translate: 0 0; }
  50% { opacity: .95; translate: -2px -4px; }
}
.scene-halo { animation: screenglow 6s ease-in-out infinite; }
@keyframes screenglow { 50% { opacity: .7; } }
.scene-lantern { cursor: pointer; transform-box: fill-box; transform-origin: center; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-2px); } }
.scene-pool { transition: opacity .6s var(--ease); }
/* the lantern's pool of light swells as the lantern rises, on the same 4s beat */
.scene-pool ellipse { transform-box: fill-box; transform-origin: center; animation: pool 4s ease-in-out infinite; }
@keyframes pool { 50% { transform: scale(1.12); } }
.scene.is-lit .scene-pool ellipse { opacity: .8; }
.scene.is-lit .scene-lantern circle:first-child,
.gathering__scene[data-seated="4"] .scene-lantern circle:first-child { opacity: .6; }
.scene-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(1.5deg); } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #D4F6F2 !important;
  text-decoration: none;
}
.scroll-cue span { margin-right: -.3em; text-shadow: 0 1px 3px rgba(30, 29, 69, .45); }
/* a mouse outline whose wheel dot rolls down, like a scroll hint */
.scroll-cue svg { width: 21px; height: 34px; overflow: visible; display: block; fill: none; stroke: #FFFFFF; stroke-width: 1.6; }
.scroll-cue__dot { fill: #FFFFFF; stroke: none; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Chapters ---------- */

.chapter {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}
.band { background: var(--band); }
.chapter__head { display: grid; gap: 14px; margin-bottom: var(--space-5); }
.chapter__head--split {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: var(--space-4);
}
.chapter__head--split > div { display: grid; gap: 14px; min-width: 0; }

/* Arch frames: the brand's doorway shape */
.arch-frame {
  margin: 0;
  border-radius: var(--radius-arch) var(--radius-arch) var(--radius-md) var(--radius-md);
  overflow: hidden;
  display: block;
}
.arch-frame svg { display: block; width: 100%; height: auto; }

/* ---------- About ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.about__portrait { position: relative; display: grid; gap: 12px; border-radius: 0; overflow: visible; }

/* Hobby doodles floating around the portrait. Placeholders for now: swap each
   span for an <img class="doodle doodle--N"> of a hand-drawn illustration. */
.doodle {
  position: absolute;
  z-index: 1;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px dashed var(--periwinkle);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
  rotate: var(--tilt, 0deg);
  animation: doodle-float var(--float, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
button.doodle { padding: 0; font: inherit; color: inherit; cursor: pointer; transition: scale .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease); }
button.doodle:hover, button.doodle[aria-pressed="true"] { scale: 1.12; border-style: solid; border-color: var(--apricot); }
button.doodle:hover, button.doodle:focus-visible { animation-play-state: paused; }
button.doodle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.doodle img { width: 100%; height: 100%; object-fit: contain; }

/* Persona overlays drawn over the photo, one per doodle */
.persona-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 420;
  overflow: visible;
  pointer-events: none;
}
.persona { opacity: 0; transition: opacity .35s var(--ease); }
.persona .pop {
  transform-box: fill-box;
  transform-origin: center;
  scale: .5;
  opacity: 0;
  transition: scale .5s cubic-bezier(.3, 1.5, .5, 1), opacity .3s var(--ease);
}
.about__portrait[data-persona="gamer"] .persona--gamer,
.about__portrait[data-persona="barista"] .persona--barista,
.about__portrait[data-persona="designer"] .persona--designer,
.about__portrait[data-persona="cat"] .persona--cat { opacity: 1; }
.about__portrait[data-persona="gamer"] .persona--gamer .pop,
.about__portrait[data-persona="barista"] .persona--barista .pop,
.about__portrait[data-persona="designer"] .persona--designer .pop,
.about__portrait[data-persona="cat"] .persona--cat .pop { scale: 1; opacity: 1; }
.persona .pop:nth-child(2) { transition-delay: .05s; }
.persona .pop:nth-child(3) { transition-delay: .1s; }
.persona .pop:nth-child(4) { transition-delay: .15s; }
.persona .pop:nth-child(5) { transition-delay: .2s; }
.persona .pop:nth-child(6) { transition-delay: .25s; }
.persona .pop:nth-child(7) { transition-delay: .3s; }
.persona__text { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: .06em; }
.persona-status { text-align: center; min-height: 22px; }
.doodle__label {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.doodle--1 { top: 6%;  left: -38px;  --tilt: -8deg; --float: 6s;   --delay: 0s; }
.doodle--2 { top: -16px; right: 8%;  --tilt: 6deg;  --float: 7s;   --delay: -2s; }
.doodle--3 { top: 48%; right: -44px; --tilt: 8deg;  --float: 5.5s; --delay: -1s; }
.doodle--4 { top: 70%; left: -44px;  --tilt: -6deg; --float: 6.5s; --delay: -3s; }
@keyframes doodle-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.about__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 420;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 160px 160px var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-float);
  background: #C4ECFA;
}
.about__copy { display: grid; gap: 18px; min-width: 0; }
.about__copy > p:not(.eyebrow):not(.tagline-sm) { max-width: 60ch; }
.about__copy .tagline-sm { color: var(--ink); }

.facts { margin: 8px 0 0; display: grid; gap: 14px; }
.facts__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-3);
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.facts dt { font-size: 14px; line-height: 28px; color: var(--ink-muted); }
.facts dd { margin: 0; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip, .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-arch);
  font-size: 14px;
  line-height: 22px;
  color: var(--on-pastel);
}
.chip--blush, .tag--blush { background: #F5A9C9; }
.chip--lagoon, .tag--lagoon { background: #6BD6CC; }
.chip--apricot, .tag--apricot { background: #FBC48A; }
.chip--periwinkle, .tag--periwinkle { background: #A9A3F0; }
.tag { font-size: 13px; line-height: 20px; padding: 2px 10px; justify-self: start; }
.tag--placeholder { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--hairline); }

.pull {
  margin: 10px 0 0;
  padding: 0;
}
.pull p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: .02em;
  color: var(--ink);
  max-width: 30ch;
}

/* ---------- Why ---------- */

/* Why me: one bold statement beside an open list of beliefs. Deliberately no
   cards here, so it reads as a point of view rather than a menu. */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-5) clamp(40px, 6vw, 96px);
  align-items: start;
}
.why__statement {
  display: grid;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.beliefs { list-style: none; margin: 0; padding: 0; }
.belief {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--hairline);
}
.belief:last-child { border-bottom: 1px solid var(--hairline); }
.belief__icon { width: 40px; height: 44px; transition: transform .4s var(--ease); }
.belief__text { display: grid; gap: 6px; min-width: 0; }
.belief__text p { color: var(--ink-muted); font-size: 16px; line-height: 26px; max-width: 52ch; }

@keyframes settle { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Stories (Lagoon) ---------- */

.stories {
  background: linear-gradient(180deg, var(--surface) 0%, var(--sky) 30%, var(--lagoon) 100%);
}
.stories .lede { color: var(--ink); }

.carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  transition: transform .7s var(--ease);
}
.story {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3.5vw, 48px);
  background: var(--surface-raised);
}
.story__art { max-width: 340px; width: 100%; justify-self: center; box-shadow: var(--shadow-soft); }
.story__copy { display: grid; gap: 16px; min-width: 0; }
.story__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
/* the story as a short path: three stops joined by a dotted line, ending on a filled dot */
.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.journey--apricot { --stop: #E8A25F; }
.journey--lagoon { --stop: #4FC4B9; }
.journey--periwinkle { --stop: #8681C7; }
.journey__stop { position: relative; display: grid; gap: 2px; padding-left: 30px; }
.journey__stop::before {
  content: "";
  position: absolute;
  left: 2px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--stop);
}
.journey__stop:last-child::before { background: var(--stop); }
.journey__stop:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px; top: 21px; bottom: -12px;
  border-left: 2px dotted var(--stop);
  opacity: .6;
}
.journey__label { font-size: 13px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.journey__text { font-size: 16px; line-height: 26px; }
.story__quote {
  margin: 4px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--band);
  display: grid;
  gap: 6px;
}
.story__quote p { font-family: var(--font-display); font-weight: 300; font-size: 20px; line-height: 30px; letter-spacing: .01em; }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.carousel__dots { display: flex; gap: 6px; }
.carousel__dot {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
  padding: 0;
}
.carousel__dot span {
  width: 10px; height: 10px;
  border-radius: var(--radius-arch);
  background: rgba(43, 42, 94, 0.35);
  transition: width .4s var(--ease), background-color .4s var(--ease);
}
.carousel__dot[aria-current="true"] span { width: 28px; background: #2B2A5E; }

/* ---------- Notes (blog) ---------- */

.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.filter {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-arch);
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 14px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.filter:hover { box-shadow: inset 0 0 0 1px var(--periwinkle); }
.filter[aria-pressed="true"] { background: #3D3B8E; color: #FFFFFF; box-shadow: none; }

.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}
.post.is-hidden { display: none; }
.post.is-entering { animation: settle .5s var(--ease); }
.post__link {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.post__art { aspect-ratio: 3 / 2; max-width: 100%; margin-bottom: 6px; }
.post__art svg { height: 100%; transition: transform .6s var(--ease); }
.post__title { transition: color .3s var(--ease); }
.post__excerpt { color: var(--ink-muted); font-size: 16px; line-height: 26px; }
.post__more {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--coral-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post__more::after { content: "→"; transition: transform .3s var(--ease); }
.post__link:hover .post__more::after { transform: translateX(4px); }
.posts__empty { margin-top: var(--space-4); }

/* ---------- Social ---------- */

.platforms { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: var(--radius-arch);
  background: var(--surface-raised);
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 15px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease);
}
.platform:hover { transform: translateY(-2px); }
.platform svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.platform svg .fill { fill: currentColor; stroke: none; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.tile:nth-child(2) { transform: translateY(24px); }
.tile:nth-child(5) { transform: translateY(24px); }
.tile__link {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
  color: var(--on-pastel);
  text-decoration: none;
}
.tile__link svg { display: block; width: 100%; height: 100%; transition: transform .7s var(--ease); }
.tile__caption {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  color: #2B2A5E;
  font-size: 15px;
  line-height: 22px;
  transform: translateY(calc(100% + 16px));
  transition: transform .45s var(--ease);
}
.tile__platform { font-family: var(--font-display); font-size: 12px; line-height: 16px; letter-spacing: .18em; text-transform: uppercase; color: #5E5B8A; }
.tile__link:hover .tile__caption,
.tile__link:focus-visible .tile__caption { transform: translateY(0); }
@media (hover: none) {
  .tile__caption { transform: none; }
}

/* ---------- Contact ---------- */

.contact {
  padding-top: clamp(80px, 10vw, 128px);
  padding-bottom: clamp(80px, 10vw, 128px);
  overflow: hidden;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact__intro { display: grid; gap: 18px; min-width: 0; }
.contact__intro .tagline-sm { color: var(--night-muted); max-width: 40ch; }

.gathering { margin: 8px 0 0; max-width: 420px; }
.gathering__scene { display: block; width: 100%; height: auto; overflow: visible; }
.seat {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.seat.is-seated { opacity: 1; transform: none; }
.gathering__scene .scene-pool { opacity: .25; }
.gathering__scene[data-seated="1"] .scene-pool { opacity: .45; }
.gathering__scene[data-seated="2"] .scene-pool { opacity: .65; }
.gathering__scene[data-seated="3"] .scene-pool { opacity: .85; }
.gathering__scene[data-seated="4"] .scene-pool { opacity: 1; }
.gathering__caption { font-size: 15px; line-height: 22px; color: var(--night-muted); }

.email-line { display: grid; gap: 6px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--night-hairline); }
.email-line__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.email-line__address { font-family: var(--font-display); font-size: 22px; line-height: 30px; letter-spacing: .04em; user-select: all; overflow-wrap: anywhere; }
.email-line .button--ghost { color: var(--night-ink); }

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--night-raised);
  box-shadow: 0 24px 56px rgba(10, 9, 36, 0.4);
  min-width: 0;
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--night-ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--night-hairline);
  border-radius: var(--radius-sm);
  background: var(--night-field);
  color: var(--night-ink);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  color-scheme: dark;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: #A9A3F0; box-shadow: 0 0 0 3px rgba(169, 163, 240, 0.3); }
.field input[aria-invalid="true"] { border-color: var(--night-focus); }
.field__error { font-size: 14px; line-height: 20px; color: var(--night-focus); }

.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* ".field input" gives inputs full width; keep the hidden checkboxes from covering the pills */
.field .choice__input { width: 1px; height: 1px; padding: 0; margin: 0; border: 0; pointer-events: none; }
.choice {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-arch);
  box-shadow: inset 0 0 0 1.5px var(--night-hairline);
  color: var(--night-ink);
  font-size: 15px !important;
  font-weight: 400 !important;
  cursor: pointer;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
/* ".field label" resets padding, so the option buttons need the more specific selector */
.field .choice { padding: 0 24px; }
/* the whole pill responds on hover, not just its outline */
.choice:hover { box-shadow: inset 0 0 0 1.5px #A9A3F0; }
.choice__input:checked + .choice { background: #A9A3F0; color: #2B2A5E !important; box-shadow: none; transform: translateY(-1px); }
.choice__input:focus-visible + .choice { outline: 2px solid var(--night-focus); outline-offset: 2px; }

.note-ready {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(79, 196, 185, 0.14);
  box-shadow: inset 0 0 0 1px rgba(79, 196, 185, 0.5);
}
.note-ready[hidden] { display: none; }
.note-ready p { color: var(--night-muted); font-size: 16px; line-height: 26px; }
.note-ready__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.note-ready .button--ghost { color: var(--night-ink); }
.email-inline { color: var(--night-ink); user-select: all; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-top);
  padding-block: var(--space-5);
  border-top: 1px solid var(--night-hairline);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.back-to-moon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--night-ink) !important;
  text-decoration: none;
  font-size: 15px;
}
.back-to-moon svg { width: 26px; height: 26px; fill: #C9C4F7; transition: transform .5s var(--ease); }
.back-to-moon svg .halo { fill: #A9A3F0; opacity: .3; }
.back-to-moon:hover svg { transform: translateY(-4px); }
.site-footer__legal { width: 100%; }

/* ---------- Reveal (content is visible at rest; this only adds a gentle lift) ---------- */

[data-reveal].is-below { transform: translateY(22px); }
[data-reveal] { transition: transform .9s var(--ease), opacity .9s var(--ease); }
.tile[data-reveal].is-below { transform: translateY(46px); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero__words { padding-left: 0; }
  .hero__moon { left: auto; right: 4vw; top: calc(var(--header-h) + 16px); }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0;
    margin: 0;
    padding: 8px 16px 20px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-float);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s var(--ease), opacity .35s var(--ease), visibility 0s .35s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid var(--hairline); }
  .site-nav a::after { display: none; }
  .site-header__actions { margin-left: auto; }
  .menu-toggle { display: grid; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__scene { max-width: 520px; width: 100%; justify-self: center; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__portrait { max-width: 360px; width: 100%; justify-self: center; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__art { max-width: 240px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter__head--split { grid-template-columns: minmax(0, 1fr); }
  .filters, .platforms { justify-content: flex-start; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .scroll-cue { display: none; }
}

@media (max-width: 600px) {
  .site-header__actions .button--lamp { display: none; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile:nth-child(2), .tile:nth-child(5) { transform: none; }
  .tile:nth-child(even) { transform: translateY(16px); }
  .tile__caption { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; font-size: 13px; line-height: 18px; }
  .facts__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero { padding-top: calc(var(--header-h) + 104px); }
  .hero__moon { width: 84px; right: 16px; top: calc(var(--header-h) + 12px); }
  .doodle { width: 60px; height: 60px; }
  .doodle--1 { left: -8px; }
  .doodle--3 { right: -8px; }
  .doodle--4 { left: -8px; }
  .doodle__label { font-size: 9px; letter-spacing: 0; }
}

/* ---------- Services ---------- */

.offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--space-4);
}
.offer {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  padding: var(--space-4);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-md) var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.offer__badge { margin: 0; display: flex; }
.offer__name { font-size: 24px; line-height: 30px; }
.offer__pitch { margin: 0; color: var(--ink); font-size: 17px; line-height: 27px; }
.offer__facts { margin: 0; display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--hairline); }
/* "When to start" and "You get" fold away; both start closed */
.offer__fact summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 0;
  font-size: 13px; line-height: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted);
  cursor: pointer;
  list-style: none;
}
.offer__fact summary::-webkit-details-marker { display: none; }
.offer__fact summary::after {
  content: "";
  width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.offer__fact[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.offer__fact summary:hover { color: var(--ink); }
.offer__fact-body { padding-top: 4px; font-size: 16px; line-height: 25px; color: var(--ink); }
.offer__fact[open] .offer__fact-body { animation: settle .35s var(--ease); }
.offer__list { margin: 0; padding-left: 1.1em; list-style: disc; display: grid; gap: 4px; }
.offer__list li::marker { color: var(--periwinkle); }
.offers__more { margin-top: var(--space-4); }
/* the three project steps, as a small staircase; the steps a service covers are lit */
.track {
  list-style: none;
  margin: 2px 0 4px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
}
.track li { display: grid; gap: 6px; min-width: 0; }
.track__step {
  display: block;
  border-radius: 6px 6px 3px 3px;
  background: var(--hairline);
}
.track li:nth-child(1) .track__step { height: 10px; }
.track li:nth-child(2) .track__step { height: 16px; }
.track li:nth-child(3) .track__step { height: 22px; }
.track__name { font-size: 12px; line-height: 16px; letter-spacing: .04em; color: var(--ink-muted); overflow-wrap: anywhere; }
.track .is-on .track__name { color: var(--ink); font-weight: 500; }
.track--apricot .is-on .track__step { background: #FBC48A; }
.track--lagoon .is-on .track__step { background: #6BD6CC; }
.track--blush .is-on .track__step { background: #F5A9C9; }
.offers__more a { color: var(--coral-text); }

.post__soon {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .why__statement { position: static; }
  .offers { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .posts { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .person--arriving { opacity: 1; transform: none; }
  #hero-scene .person--arriving { animation: none; }
  [data-reveal].is-below { transform: none; opacity: 1; }
}

/* ---------- Article pages (notes/*.html) ---------- */

.article-bar { border-bottom: 1px solid var(--hairline); }
.article-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.article-back { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--coral-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.article-back::before { content: "←"; transition: transform .3s var(--ease); }
.article-back:hover::before { transform: translateX(-4px); }
.article { padding-block: clamp(40px, 7vw, 88px); }
.article__inner { max-width: 760px; display: grid; gap: clamp(28px, 4vw, 40px); }
.article__head { display: grid; gap: 16px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.article__body { display: grid; gap: 20px; font-size: 18px; line-height: 30px; }
.article__body h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; letter-spacing: .02em; margin-top: 12px; }
.article__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.article__body strong { font-weight: 500; }
.article__body .pull { margin: 12px 0; }
.article__figure { margin: 12px 0; display: grid; gap: 10px; }
.article__figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.article__figure figcaption { font-size: 14px; line-height: 22px; color: var(--ink-muted); font-style: italic; }
.article__steps { list-style: decimal; padding-left: 1.4em; display: grid; gap: 10px; }
.article__steps li::marker { color: var(--periwinkle); font-weight: 500; }
.article__note { font-size: 15px; line-height: 24px; font-style: italic; color: var(--ink-muted); padding-top: 20px; border-top: 1px solid var(--hairline); }
.article__sources { display: grid; gap: 12px; }
.article__sources ul { display: grid; gap: 8px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
/* Figure 2: three keys that all have to turn before anything is shared */
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 20px; border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-soft); }
.keys__step { position: relative; display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--hairline); }
.keys__step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); color: var(--ink-muted); font-size: 14px; }
.keys__step--out { background: #C9F1EC; box-shadow: none; color: #2B2A5E; }
.keys__num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--periwinkle); color: #FFFFFF; font-size: 13px; font-weight: 500; }
.keys__name { font-size: 15px; line-height: 20px; font-weight: 500; }
.keys__note { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.keys__step--out .keys__note { color: #3D3B8E; }
@media (max-width: 600px) {
  .keys { grid-template-columns: minmax(0, 1fr); }
  .keys__step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -10px; transform: translate(50%, 50%); }
}
/* Figure 1: the three-phase trust paradox, drawn in the site's palette */
.paradox { display: grid; gap: 24px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-soft); }
.paradox__head { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.paradox__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.4vw, 26px); line-height: 1.25; letter-spacing: .02em; }
.paradox__sub { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.paradox__phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.paradox__phase { display: grid; align-content: start; gap: 6px; }
.paradox__phase--trust { --phase: #4FC4B9; --phase-text: #2A8C86; }
.paradox__phase--reliance { --phase: #E8A25F; --phase-text: #B26A28; }
.paradox__phase--exposure { --phase: #E98DB5; --phase-text: #B4487A; }
.paradox__rail { position: relative; height: 12px; margin-bottom: 10px; }
.paradox__rail::before { content: ""; position: absolute; left: 6px; right: 0; top: 5px; height: 2px; background: var(--phase); }
.paradox__rail::after { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--phase); background: var(--surface-raised); }
.paradox__phase--exposure .paradox__rail { background: radial-gradient(circle at calc(100% - 6px) 6px, var(--phase) 0 5px, transparent 5.5px); }
.paradox__label { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--phase-text); }
.paradox__name { font-family: var(--font-display); font-weight: 300; font-size: 22px; line-height: 28px; }
.paradox__text { font-size: 15px; line-height: 24px; }
.paradox__aside { font-size: 14px; line-height: 22px; font-style: italic; color: var(--ink-muted); margin-top: 6px; }
.paradox__callout { display: grid; gap: 6px; padding: 16px 20px; border-left: 3px solid var(--periwinkle); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(169, 163, 240, .14); font-size: 15px; line-height: 24px; }
.paradox__callout-title { font-weight: 500; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .paradox__phase--trust { --phase-text: #6BD6CC; }
  :root:not([data-theme="light"]) .paradox__phase--reliance { --phase-text: #FBC48A; }
  :root:not([data-theme="light"]) .paradox__phase--exposure { --phase-text: #F5A9C9; }
}
@media (max-width: 700px) {
  .paradox__phases { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* an embedded original document inside an article, like the statement of purpose */
.sop { display: grid; gap: 20px; margin: 8px 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-soft); border-left: 3px solid var(--periwinkle); }
.sop__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.sop__body { display: grid; gap: 18px; font-size: 17px; line-height: 29px; }
.sop__body .pull { margin: 8px 0; }

/* carousel ends: the arrow that would wrap around is dimmed and inactive */
.carousel__controls .round-button:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* the hero and contact illustrations are decorative only: no clicks, no pointer cursor */
#hero-scene, #gathering { pointer-events: none; }
