* { border: 0; box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #F4EEE3;
  --fg: #2A201C;
  --primary: #6B1F2B;
  --idle: #C7A15A;
  --focus: #D9BC7A;
  --trans-dur: .5s;
  --trans-timing: cubic-bezier(.65, 0, .35, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html, body { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  transition:
    background-color 520ms cubic-bezier(.65, 0, .35, 1),
    color 520ms cubic-bezier(.65, 0, .35, 1);
}
body[data-section="faith"] {
  --bg: #F4EEE3;
  --fg: #2A201C;
  --primary: #6B1F2B;
  --idle: #C7A15A;
  --focus: #D9BC7A;
  --search-color: #C7A15A;
}
body[data-section="future"] {
  --bg: #EAF3FF;
  --fg: #0B1530;
  --primary: #1455D9;
  --idle: #41D9FF;
  --focus: #76E5FF;
  --search-color: #1455D9;
}
.site-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: clamp(54px, 10vh, 110px);
  padding: clamp(42px, 9vh, 96px) 0;
}
.identity-switch { width: 256px; height: 128px; }
.switch, .switch__input { -webkit-tap-highlight-color: transparent; }
.switch { position: relative; display: block; width: 256px; height: 128px; }
.switch__input {
  cursor: pointer;
  filter: url(#goo);
  outline: transparent;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.switch__input::before, .switch__input::after {
  background-color: var(--idle);
  content: "";
  display: block;
  position: absolute;
  transition: background-color var(--trans-dur) var(--trans-timing), transform var(--trans-dur) var(--trans-timing);
}
.switch__input::before {
  border-radius: 10.6667px;
  top: calc(50% - 10.6667px);
  width: 100%;
  height: 21.3333px;
}
.switch__input::after {
  border-radius: 50%;
  top: 0;
  left: 0;
  width: 128px;
  height: 128px;
  transform-origin: 0 50%;
}
.switch__input:active::after { transform: translateX(20%) scale(1.2, .8); }
.switch__input:focus-visible::before, .switch__input:focus-visible::after { background-color: var(--focus); }
.switch__input:checked::before, .switch__input:checked::after { background-color: var(--primary); }
.switch__input:checked::after {
  transform: translateX(100%);
  transform-origin: 100% 50%;
}
.switch__input:checked:active::after { transform: translateX(80%) scale(1.2, .8); }

.switch__input.is-animating-on::after {
  animation: switch-on var(--trans-dur) both;
}

.switch__input.is-animating-off::after {
  animation: switch-off var(--trans-dur) both;
}
.switch__input:checked:focus-visible::before, .switch__input:checked:focus-visible::after { background-color: var(--focus); }
.switch__icon {
  position: absolute;
  z-index: 1;
  top: 21.3333px;
  width: 85.3333px;
  height: 85.3333px;
  color: white;
  pointer-events: none;
  transition: opacity var(--trans-dur) var(--trans-timing), transform var(--trans-dur) var(--trans-timing);
}
.switch__icon svg {
  display: block;
  width: 85.3333px;
  height: 85.3333px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.switch__icon--fish { left: 21.3333px; opacity: 1; transform: scale(1); }
.switch__icon--eye { right: 21.3333px; opacity: 0; transform: scale(.84); }
.switch__input:checked ~ .switch__icon--fish { opacity: 0; transform: scale(.84); }
.switch__input:checked ~ .switch__icon--eye { opacity: 1; transform: scale(1); }
.switch__sr { overflow: hidden; position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; }
.switch-filter { position: absolute; }
.page-content { width: min(620px, 100%); text-align: center; align-self: start; }
.eyebrow { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); opacity: .78; }
h1 { font-size: clamp(54px, 12vw, 104px); line-height: .95; letter-spacing: -.06em; }
.intro { max-width: 520px; margin: 26px auto 0; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.55; color: var(--fg); opacity: .72; }
@keyframes switch-on {
  from { animation-timing-function: ease-in; transform: translateX(20%) scale(1.2, .8); transform-origin: 0 50%; }
  50% { animation-timing-function: ease-out; transform: translateX(100%) scale(.9, 1.1); transform-origin: 100% 50%; }
  to { transform: translateX(100%); transform-origin: 100% 50%; }
}
@keyframes switch-off {
  from { animation-timing-function: ease-in; transform: translateX(80%) scale(1.2, .8); transform-origin: 100% 50%; }
  50% { animation-timing-function: ease-out; transform: scale(.9, 1.1); transform-origin: 0 50%; }
  to { transform: scale(1); transform-origin: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .switch__input::after, .switch__icon { animation: none !important; transition-duration: 1ms !important; }
}

.switch__input--syncing::after,
.switch__input--syncing ~ .switch__icon {
  animation: none !important;
  transition: none !important;
}

.switch__input:disabled {
  cursor: default;
}

/* Top controls: exact center switch, search anchored on the right. */
.top-controls {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  min-height: 46px;
  display: grid;
  place-items: center;
}

/* Identity switch reduced exactly 3× again: 256×128 → 85.333×42.667. */
.identity-switch {
  width: 85.3333px;
  height: 42.6667px;
}

.switch {
  width: 85.3333px;
  height: 42.6667px;
}

.switch__input::before {
  border-radius: 3.5556px;
  top: calc(50% - 3.5556px);
  height: 7.1111px;
}

.switch__input::after {
  width: 42.6667px;
  height: 42.6667px;
}

.switch__icon {
  top: 7.1111px;
  width: 28.4444px;
  height: 28.4444px;
}

.switch__icon svg {
  width: 28.4444px;
  height: 28.4444px;
}

.switch__icon--fish { left: 7.1111px; }
.switch__icon--eye { right: 7.1111px; }

/* Codrops/Tympanus Gooey Search geometry adapted to this non-React shell. */
.gooey-search {
  position: absolute;
  right: 0;
  top: 50%;
  width: 230px;
  height: 46px;
  transform: translateY(-50%);
  pointer-events: none;
}

.gooey-search__inner {
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
  height: 46px;
  filter: url(#search-goo-effect);
  transition: width 750ms cubic-bezier(.22, .8, .22, 1);
  pointer-events: auto;
}

.gooey-search.is-open .gooey-search__inner {
  width: 230px;
}

.gooey-search__field,
.gooey-search__submit {
  position: absolute;
  top: 0;
  height: 46px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.gooey-search__field {
  right: 0;
  width: 100px;
  padding: 10px 20px;
  overflow: hidden;
  cursor: pointer;
  transition:
    width 750ms cubic-bezier(.22, .8, .22, 1),
    right 750ms cubic-bezier(.22, .8, .22, 1),
    transform 180ms ease,
    background-color 520ms cubic-bezier(.65, 0, .35, 1);
}

.gooey-search.is-open .gooey-search__field {
  right: 50px;
  width: 180px;
  cursor: text;
}

.gooey-search__field:active {
  transform: scale(.95);
}

.gooey-search__label {
  display: block;
  position: relative;
  left: 4px;
  text-align: center;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -.02em;
  transition: opacity 160ms ease, transform 240ms ease;
  pointer-events: none;
}

.gooey-search.is-open .gooey-search__label {
  opacity: 0;
  transform: translateX(-20px);
}

.gooey-search__input {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 10px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease 260ms;
}

.gooey-search.is-open .gooey-search__input {
  opacity: 1;
  pointer-events: auto;
}

.gooey-search__input::placeholder {
  color: rgba(255, 255, 255, .7);
}

.gooey-search__submit {
  right: 0;
  width: 46px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(-50px) scale(.8);
  pointer-events: none;
  transition:
    opacity 300ms ease 90ms,
    transform 850ms cubic-bezier(.22, .8, .22, 1),
    background-color 520ms cubic-bezier(.65, 0, .35, 1);
}

.gooey-search.is-open .gooey-search__submit {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.gooey-search__submit svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gooey-search__field:focus-visible,
.gooey-search__submit:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .top-controls {
    min-height: 116px;
    align-items: start;
  }

  .gooey-search {
    top: auto;
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gooey-search__inner,
  .gooey-search__field,
  .gooey-search__label,
  .gooey-search__input,
  .gooey-search__submit {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}

/* 2026-07-27: enlarge both permanent controls by exactly 30%. */
.top-controls {
  min-height: 60px;
}

.identity-switch {
  transform: scale(1.3);
  transform-origin: center center;
}

.gooey-search {
  transform: translateY(-50%) scale(1.3);
  transform-origin: right center;
}

@media (max-width: 620px) {
  .top-controls {
    min-height: 140px;
  }

  .gooey-search {
    transform: translateX(50%) scale(1.3);
    transform-origin: center bottom;
  }
}

/* 2026-07-27: thicken only the horizontal switch track. */
.switch__input::before {
  height: 11.4px;
  top: calc(50% - 5.7px);
  border-radius: 5.7px;
}

/* 2026-07-27: halve only the horizontal switch track thickness. */
.switch__input::before {
  height: 5.7px;
  top: calc(50% - 2.85px);
  border-radius: 2.85px;
}

/* Keep the thin connector visible outside the goo filter. */
.switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  top: calc(50% - 2.85px);
  width: 100%;
  height: 5.7px;
  border-radius: 2.85px;
  background: var(--idle);
  transition: background-color var(--trans-dur) var(--trans-timing);
  pointer-events: none;
}

.switch:has(.switch__input:checked)::before {
  background: var(--primary);
}

.switch__input {
  z-index: 1;
}

.switch__input::before {
  opacity: 0;
}

/* 2026-07-27: true shared goo layer for a smooth runner/track junction. */
.switch::before {
  display: none;
}

.switch__input {
  z-index: 4;
  filter: none;
  background: transparent;
}

.switch__input::before,
.switch__input::after {
  display: none;
}

.switch__goo-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  filter: url(#switch-goo-soft);
  pointer-events: none;
}

.switch__track,
.switch__runner {
  position: absolute;
  display: block;
  background: var(--idle);
  transition:
    background-color var(--trans-dur) var(--trans-timing),
    transform var(--trans-dur) var(--trans-timing);
}

.switch__track {
  left: 0;
  top: calc(50% - 2.85px);
  width: 100%;
  height: 5.7px;
  border-radius: 2.85px;
}

.switch__runner {
  top: 0;
  left: 0;
  width: 42.6667px;
  height: 42.6667px;
  border-radius: 50%;
  transform-origin: 0 50%;
}

.switch__input:checked + .switch__goo-layer .switch__track,
.switch__input:checked + .switch__goo-layer .switch__runner {
  background: var(--primary);
}

.switch__input:checked + .switch__goo-layer .switch__runner {
  transform: translateX(100%);
  transform-origin: 100% 50%;
}

.switch__input:active + .switch__goo-layer .switch__runner {
  transform: translateX(20%) scale(1.2, .8);
}

.switch__input:checked:active + .switch__goo-layer .switch__runner {
  transform: translateX(80%) scale(1.2, .8);
}

.switch__input:focus-visible + .switch__goo-layer .switch__track,
.switch__input:focus-visible + .switch__goo-layer .switch__runner {
  background: var(--focus);
}

.switch__input.is-animating-on + .switch__goo-layer .switch__runner {
  animation: switch-on var(--trans-dur) both;
}

.switch__input.is-animating-off + .switch__goo-layer .switch__runner {
  animation: switch-off var(--trans-dur) both;
}

.switch__input--syncing + .switch__goo-layer .switch__runner {
  animation: none !important;
  transition: none !important;
}

.switch__icon {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .switch__runner,
  .switch__track {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}

/* Tabler search icon replaces the closed-state Search label. */
.gooey-search__label {
  left: 0;
  display: grid;
  place-items: center;
  height: 26px;
}

.gooey-search__label svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Match Gooey Search height and icon scale to the identity switch. */
.gooey-search {
  width: 213.3333px;
  height: 42.6667px;
}

.gooey-search__inner {
  width: 92.7536px;
  height: 42.6667px;
}

.gooey-search.is-open .gooey-search__inner {
  width: 213.3333px;
}

.gooey-search__field,
.gooey-search__submit {
  height: 42.6667px;
}

.gooey-search__field {
  width: 92.7536px;
  padding: 9.2754px 18.5507px;
}

.gooey-search.is-open .gooey-search__field {
  right: 46.3768px;
  width: 166.9565px;
}

.gooey-search__input {
  padding: 9.2754px 16.6957px;
}

.gooey-search__submit {
  width: 42.6667px;
  transform: translateX(-46.3768px) scale(.8);
}

.gooey-search__label,
.gooey-search__label svg,
.gooey-search__submit svg {
  width: 28.4444px;
  height: 28.4444px;
}

.gooey-search__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.gooey-search.is-open .gooey-search__label {
  transform: translate(calc(-50% - 20px), -50%);
}

.gooey-search__submit svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 2026-07-27: circular closed search and optical icon sizing. */
.gooey-search__inner {
  width: 42.6667px;
}

.gooey-search__field {
  width: 42.6667px;
  padding: 0;
  border-radius: 50%;
}

.gooey-search.is-open .gooey-search__field {
  right: 46.3768px;
  width: 166.9565px;
  padding: 9.2754px 18.5507px;
  border-radius: 999px;
}

.gooey-search__label,
.gooey-search__label svg,
.gooey-search__submit svg {
  width: 18.5px;
  height: 18.5px;
}

/* 2026-07-27: thicken both search icons without changing optical size. */
.gooey-search__label svg,
.gooey-search__submit svg {
  stroke-width: 2.8;
}

/* 2026-07-27: restore original goo split and scale all search geometry, except icon. */
.top-controls {
  min-height: 84px;
}

.gooey-search {
  width: 300px;
  height: 60px;
}

.gooey-search__inner {
  width: 60px;
  height: 60px;
}

.gooey-search.is-open .gooey-search__inner {
  width: 300px;
}

.gooey-search__field,
.gooey-search__submit {
  height: 60px;
}

.gooey-search__field {
  width: 60px;
  padding: 0;
  border-radius: 50%;
}

.gooey-search.is-open .gooey-search__field {
  right: 65.2174px;
  width: 234.7826px;
  padding: 13.0435px 26.087px;
  border-radius: 999px;
}

.gooey-search__input {
  padding: 13.0435px 23.4783px;
}

.gooey-search__submit {
  width: 60px;
  transform: translateX(-65.2174px) scale(.8);
}

.gooey-search.is-open .gooey-search__submit {
  transform: translateX(0) scale(1);
}

/* Keep both Tabler search glyphs optically matched to fish/eye. */
.gooey-search__label,
.gooey-search__label svg,
.gooey-search__submit svg {
  width: 18.5px;
  height: 18.5px;
}

@media (max-width: 620px) {
  .top-controls {
    min-height: 170px;
  }
}

/* 2026-07-27: align visible Gooey Search height with identity switch. */
.gooey-search {
  width: 277.5px;
  height: 55.5px;
}

.gooey-search__inner {
  width: 55.5px;
  height: 55.5px;
}

.gooey-search.is-open .gooey-search__inner {
  width: 277.5px;
}

.gooey-search__field,
.gooey-search__submit {
  height: 55.5px;
}

.gooey-search__field {
  width: 55.5px;
}

.gooey-search.is-open .gooey-search__field {
  right: 60.3261px;
  width: 217.1739px;
  padding: 12.0652px 24.1304px;
}

.gooey-search__input {
  padding: 12.0652px 21.7174px;
}

.gooey-search__submit {
  width: 55.5px;
  transform: translateX(-60.3261px) scale(.8);
}

.gooey-search.is-open .gooey-search__submit {
  transform: translateX(0) scale(1);
}

/* 2026-07-27: viewport-edge spacing equals the current visible search circle height. */
:root {
  --control-edge: 72.15px; /* 55.5px geometry × 1.3 shared scale */
}

.site-shell {
  width: 100%;
  padding-top: var(--control-edge);
  padding-right: 0;
  padding-left: 0;
}

.top-controls {
  width: calc(100vw - (2 * var(--control-edge)));
  justify-self: center;
  margin: 0;
}

.identity-switch {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.3);
  transform-origin: center center;
}

.gooey-search {
  right: 0;
}

@media (max-width: 620px) {
  :root {
    --control-edge: 32px;
  }

  .site-shell {
    padding-top: var(--control-edge);
  }

  .top-controls {
    width: calc(100vw - (2 * var(--control-edge)));
  }

  .identity-switch {
    top: 0;
    transform: translateX(-50%) scale(1.3);
  }

  .gooey-search {
    right: 0;
    left: auto;
    transform: scale(1.3);
    transform-origin: right bottom;
  }
}

/* 2026-07-28: final integer geometry for top controls. */
:root {
  --control-size: 56px;
  --control-edge: 56px;
}

.site-shell {
  width: 100%;
  padding-top: var(--control-edge);
  padding-right: 0;
  padding-left: 0;
}

.top-controls {
  width: calc(100vw - 112px);
  min-height: 56px;
  justify-self: center;
}

.identity-switch {
  width: 111px;
  height: 56px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.switch {
  width: 111px;
  height: 56px;
}

.switch__track {
  top: 24px;
  height: 8px;
  border-radius: 4px;
}

.switch__runner {
  width: 56px;
  height: 56px;
}

.switch__icon {
  top: 9px;
  width: 38px;
  height: 38px;
}

.switch__icon svg {
  width: 38px;
  height: 38px;
}

.switch__icon--fish { left: 9px; }
.switch__icon--eye { right: 9px; }

.gooey-search {
  right: 0;
  width: 280px;
  height: 56px;
  transform: translateY(-50%);
  transform-origin: right center;
}

.gooey-search__inner {
  width: 56px;
  height: 56px;
}

.gooey-search.is-open .gooey-search__inner {
  width: 280px;
}

.gooey-search__field,
.gooey-search__submit {
  height: 56px;
}

.gooey-search__field {
  width: 56px;
  padding: 0;
}

.gooey-search.is-open .gooey-search__field {
  right: 61px;
  width: 219px;
  padding: 12px 24px;
}

.gooey-search__input {
  padding: 12px 22px;
}

.gooey-search__submit {
  width: 56px;
  transform: translateX(-61px) scale(.8);
}

.gooey-search.is-open .gooey-search__submit {
  transform: translateX(0) scale(1);
}

.gooey-search__label,
.gooey-search__label svg,
.gooey-search__submit svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 620px) {
  :root {
    --control-edge: 24px;
  }

  .site-shell {
    padding-top: 24px;
  }

  .top-controls {
    width: calc(100vw - 48px);
    min-height: 144px;
  }

  .identity-switch {
    top: 0;
    transform: translateX(-50%);
  }

  .gooey-search {
    right: 0;
    left: auto;
    transform: none;
    transform-origin: right bottom;
  }
}


/* 2026-07-28: search follows the visible switch-circle color per route. */
.gooey-search__field,
.gooey-search__submit {
  background: var(--search-color, var(--primary));
}


/* 2026-07-28: exact reverse timeline for Gooey Search closing. */
.gooey-search.is-open.is-closing .gooey-search__inner {
  width: 56px;
  transition-delay: 100ms;
}

.gooey-search.is-open.is-closing .gooey-search__field {
  right: 0;
  width: 56px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition-delay: 100ms, 100ms, 0ms, 0ms;
}

.gooey-search.is-open.is-closing .gooey-search__submit {
  opacity: 0;
  transform: translateX(-61px) scale(.8);
  pointer-events: none;
  transition-delay: 460ms, 0ms, 0ms;
}

.gooey-search.is-open.is-closing .gooey-search__input {
  opacity: 0;
  pointer-events: none;
  transition-delay: 370ms;
}

.gooey-search.is-open.is-closing .gooey-search__label {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition-delay: 690ms, 610ms;
}

.gooey-search.is-closing {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .gooey-search.is-open.is-closing .gooey-search__inner,
  .gooey-search.is-open.is-closing .gooey-search__field,
  .gooey-search.is-open.is-closing .gooey-search__submit,
  .gooey-search.is-open.is-closing .gooey-search__input,
  .gooey-search.is-open.is-closing .gooey-search__label {
    transition-delay: 0ms !important;
  }
}

/* 2026-07-28: search geometry is controlled by one reversible WAAPI timeline. */
.gooey-search__inner,
.gooey-search__field,
.gooey-search__submit,
.gooey-search__input,
.gooey-search__label {
  transition: none !important;
}

.gooey-search.is-open.is-closing {
  pointer-events: auto;
}

/* 2026-07-28: darker cosmic/lab palette for Future. */
body[data-section="future"] {
  --bg: #070B14;
  --fg: #E8EEF8;
  --primary: #5B6CFF;
  --idle: #25345A;
  --focus: #00D9FF;
  --search-color: #5B6CFF;
}

body[data-section="future"] .intro {
  color: #8B98B3;
  opacity: 1;
}

body[data-section="future"] .eyebrow {
  color: #00D9FF;
  opacity: .9;
}

/* 2026-07-28: bilingual Cyrillic/Latin font comparison. */
.site-shell {
  padding-bottom: 96px;
}

.page-content {
  width: min(960px, calc(100% - 48px));
}

.font-lab {
  width: 100%;
  margin-top: 96px;
  text-align: left;
}

.font-lab__header {
  max-width: 680px;
  margin-bottom: 64px;
}

.font-lab__kicker,
.font-group > h3,
.font-sample > span {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.font-lab__kicker {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.font-lab__header h2 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -.04em;
}

.font-lab__header > p:last-child {
  margin-top: 18px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.6;
  opacity: .65;
}

.font-group + .font-group {
  margin-top: 80px;
}

.font-group > h3 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.font-list {
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}

.font-sample {
  padding: 28px 0 32px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
}

.font-sample > span {
  display: block;
  margin-bottom: 14px;
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  opacity: .48;
}

.font-list--display strong {
  display: block;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: inherit;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.font-list--body p {
  max-width: 780px;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.62;
}

.font-cormorant strong { font-family: "Cormorant Garamond", serif; font-weight: 600; }
.font-prata strong { font-family: Prata, serif; font-weight: 400; }
.font-unbounded strong { font-family: Unbounded, sans-serif; font-weight: 500; font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; }
.font-commissioner strong { font-family: Commissioner, sans-serif; font-weight: 600; }
.font-ibm-plex-display strong { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; }

.font-inter p { font-family: Inter, sans-serif; }
.font-manrope p { font-family: Manrope, sans-serif; }
.font-source-sans p { font-family: "Source Sans 3", sans-serif; }
.font-pt-sans p { font-family: "PT Sans", sans-serif; }
.font-noto-sans p { font-family: "Noto Sans", sans-serif; }

body[data-section="future"] .font-lab__kicker,
body[data-section="future"] .font-group > h3 {
  color: #00D9FF;
}

@media (max-width: 620px) {
  .site-shell {
    padding-bottom: 64px;
  }

  .page-content {
    width: min(100% - 32px, 960px);
  }

  .font-lab {
    margin-top: 72px;
  }

  .font-lab__header {
    margin-bottom: 48px;
  }

  .font-group + .font-group {
    margin-top: 64px;
  }

  .font-sample {
    padding: 24px 0 28px;
  }
}


/* 2026-07-28: second display-font shortlist. */
.font-geologica strong { font-family: Geologica, sans-serif; font-weight: 600; }
.font-literata strong { font-family: Literata, serif; font-weight: 600; }
.font-tenor strong { font-family: "Tenor Sans", sans-serif; font-weight: 400; letter-spacing: -.02em; }
.font-brygada strong { font-family: "Brygada 1918", serif; font-weight: 600; }
.font-jost strong { font-family: Jost, sans-serif; font-weight: 600; letter-spacing: -.025em; }


/* 2026-07-28: final typography pair. */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
button,
input,
textarea,
select {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Geologica, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
}

.page-content > h1 {
  font-family: Geologica, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
}

.intro,
.eyebrow,
.gooey-search__input {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.font-lab {
  display: none !important;
}

/* 2026-07-28: Tympanus Animated Menu Icon, left counterpart to search. */
body[data-section="faith"] {
  --menu-color: #C7A15A;
}

body[data-section="future"] {
  --menu-color: #5B6CFF;
}

.menu-control {
  position: absolute;
  left: 0;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--menu-color, var(--primary));
  transition: background-color 520ms cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}

.menu-control__icon {
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
}

.menu-control__icon path {
  fill: transparent;
  stroke: #fff;
  stroke-width: 60px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-control__trigger {
  position: absolute;
  inset: 0;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.menu-control__trigger:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .menu-control {
    top: 0;
    transform: none;
  }
}

/* 2026-07-28: menu trigger reduced to 44px. */
.menu-control,
.menu-control__icon,
.menu-control__trigger {
  width: 44px;
  height: 44px;
}

/* 2026-07-28: enlarge the complete animated menu glyph while keeping its circle 44px. */
.menu-control__icon {
  transform: scale(1.5472);
  transform-origin: 50% 50%;
  overflow: visible;
}

/* 2026-07-28: match animated menu glyph stroke to the 19px Tabler search glyph at stroke-width 2.8. */
.menu-control__icon path {
  stroke-width: 32.57px;
}

/* 2026-07-28: Theodore SVG screen-cover transition only. */
.menu-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  overflow: visible;
}

.menu-screen-overlay__path {
  fill: #000;
}

.menu-control {
  z-index: 1001;
}

body.menu-screen-is-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  .menu-screen-overlay__path {
    transition: none;
  }
}

/* 2026-07-28: name centered directly beneath the identity switch. */
.identity-switch__name {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  pointer-events: none;
  transition: color 520ms cubic-bezier(.65, 0, .35, 1);
}

/* 2026-07-28: enlarge Father Bohdan identity label. */
.identity-switch__name {
  top: calc(100% + 14px);
  font-family: Geologica, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
}

/* 2026-07-28: match Father Bohdan typography to the Faith heading. */
.identity-switch__name {
  font-family: Geologica, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.06em;
}

/* 2026-07-28: match Father Bohdan size to the Faith heading. */
.identity-switch__name {
  font-size: clamp(54px, 12vw, 104px);
}

/* 2026-07-28: content-free page and first-scroll compact header. */
.site-shell {
  width: 100%;
  min-height: 200vh;
  display: block;
  margin: 0;
  padding: 0;
}

.page-content {
  display: none !important;
}

.top-controls {
  position: fixed;
  top: 56px;
  left: 50%;
  width: calc(100vw - 112px);
  min-height: 56px;
  transform: translateX(-50%);
  z-index: 20;
}

.identity-switch {
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1), opacity 450ms ease;
  will-change: transform, opacity;
}

.identity-switch__name {
  position: absolute;
  left: 50%;
  top: calc(50% + 42px);
  transform: translateX(-50%);
  font-size: clamp(54px, 12vw, 104px);
  transition:
    top 700ms cubic-bezier(.22, 1, .36, 1),
    transform 700ms cubic-bezier(.22, 1, .36, 1),
    font-size 700ms cubic-bezier(.22, 1, .36, 1),
    color 520ms cubic-bezier(.65, 0, .35, 1);
  will-change: top, transform, font-size;
}

body.is-header-compact .identity-switch {
  transform: translate(-50%, calc(-100vh - 100%));
  opacity: 0;
}

body.is-header-compact .identity-switch__name {
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 44px;
}

@media (max-width: 620px) {
  .top-controls {
    top: 24px;
    width: calc(100vw - 48px);
    min-height: 56px;
  }

  .identity-switch {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .gooey-search {
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-control {
    top: 50%;
    transform: translateY(-50%);
  }

  body.is-header-compact .identity-switch {
    transform: translate(-50%, calc(-100vh - 100%));
  }

  body.is-header-compact .identity-switch__name {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-switch,
  .identity-switch__name {
    transition-duration: 1ms !important;
  }
}

/* 2026-07-28: make the switch exit visible and gradual; return motion stays unchanged. */
body.is-header-compact .identity-switch {
  transform: translate(-50%, -180px);
  opacity: 0;
  transition:
    transform 1100ms cubic-bezier(.22, 1, .36, 1),
    opacity 260ms ease 760ms;
}

@media (max-width: 620px) {
  body.is-header-compact .identity-switch {
    transform: translate(-50%, -180px);
  }
}

/* 2026-07-28: personal social feed MVP, Bluesky-inspired content model. */
body[data-section="faith"] {
  --feed-border: rgba(42, 32, 28, .18);
  --feed-muted: rgba(42, 32, 28, .62);
  --feed-hover: rgba(107, 31, 43, .045);
  --feed-surface: #F4EEE3;
  --feed-avatar-fg: #F4EEE3;
}

body[data-section="future"] {
  --feed-border: rgba(232, 238, 248, .18);
  --feed-muted: rgba(232, 238, 248, .62);
  --feed-hover: rgba(91, 108, 255, .08);
  --feed-surface: #070B14;
  --feed-avatar-fg: #E8EEF8;
}

.site-shell {
  min-height: 0;
}

.feed-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 250px;
  padding-bottom: 96px;
}

.social-stream {
  border-left: 1px solid var(--feed-border);
  border-right: 1px solid var(--feed-border);
}

.social-post {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 6px;
  padding: 20px 24px 14px 12px;
  transition: background-color 180ms ease;
}

.social-post + .social-post {
  border-top: 1px solid var(--feed-border);
}

.social-post:hover {
  background: var(--feed-hover);
}

.post-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary);
  color: var(--feed-avatar-fg);
  font-family: Geologica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.05em;
}

.social-post__main {
  min-width: 0;
}

.social-post__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 28px;
}

.social-post__author {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  line-height: 1.25;
}

.social-post__author strong,
.quoted-post__header strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-post__author span,
.quoted-post__header small {
  overflow: hidden;
  color: var(--feed-muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-post__text {
  margin: 2px 0 14px;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.post-media,
.post-link-preview,
.quoted-post {
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--feed-border);
  border-radius: 16px;
}

.post-media {
  display: grid;
  max-height: 560px;
  gap: 4px;
  background: var(--feed-border);
}

.post-media--1 {
  grid-template-columns: 1fr;
}

.post-media--2 {
  grid-template-columns: repeat(2, 1fr);
}

.post-media--3,
.post-media--4 {
  grid-template-columns: repeat(2, 1fr);
}

.post-media--3 .post-media__item:first-child {
  grid-row: span 2;
}

.post-media__item {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: var(--feed-surface);
  cursor: zoom-in;
  overflow: hidden;
}

.post-media--1 .post-media__item {
  aspect-ratio: 4 / 3;
  max-height: 560px;
}

.post-media--2 .post-media__item,
.post-media--3 .post-media__item,
.post-media--4 .post-media__item {
  aspect-ratio: 1 / 1;
}

.post-media__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.post-media__item:hover img {
  transform: scale(1.015);
}

.post-link-preview {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.post-link-preview:hover {
  border-color: var(--primary);
  background: var(--feed-hover);
}

.post-link-preview__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-link-preview__meta {
  display: grid;
  gap: 6px;
  padding: 14px 16px 15px;
}

.post-link-preview__meta strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-link-preview__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--feed-muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-link-preview__domain {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--feed-muted);
  font-size: 13px;
}

.post-link-preview__domain svg {
  width: 15px;
  height: 15px;
}

.quoted-post {
  padding: 14px 16px 16px;
  transition: background-color 180ms ease;
}

.social-post:hover .quoted-post {
  background: var(--feed-hover);
}

.quoted-post__header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.quoted-post__header .post-avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.quoted-post__header > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
}

.quoted-post p {
  font-size: 15px;
  line-height: 1.48;
}

.quoted-post .post-media {
  margin-top: 12px;
  margin-bottom: 0;
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-top: 2px;
}

.post-actions__primary,
.post-actions__secondary {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-action {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--feed-muted);
  font: inherit;
  cursor: default;
  transition: color 160ms ease, background-color 160ms ease;
}

.post-action svg {
  width: 20px;
  height: 20px;
}

.post-action span {
  min-width: 1ch;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.post-action--more {
  min-width: 32px;
  width: 32px;
  height: 28px;
  padding: 0;
}

.post-action:hover {
  color: var(--primary);
  background: var(--feed-hover);
}

.post-action--like:hover {
  color: #e5484d;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 72px 24px 24px;
  background: rgba(0, 0, 0, .94);
  opacity: 0;
  transition: opacity 220ms ease;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox.is-open {
  opacity: 1;
}

.image-lightbox__image {
  max-width: min(1400px, 100%);
  max-height: calc(100dvh - 96px);
  object-fit: contain;
  border-radius: 8px;
  transform: scale(.98);
  transition: transform 220ms ease;
}

.image-lightbox.is-open .image-lightbox__image {
  transform: scale(1);
}

.image-lightbox__close {
  position: fixed;
  top: 18px;
  right: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-is-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .feed-shell {
    width: 100%;
    padding-top: 210px;
    padding-bottom: 64px;
  }

  .social-post {
    padding-right: 12px;
  }

  .social-post__author {
    display: block;
  }

  .social-post__author strong,
  .social-post__author span {
    display: block;
  }

  .post-actions {
    gap: 4px;
  }

  .post-actions__primary,
  .post-actions__secondary {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .post-action {
    min-width: 44px;
    padding: 0 4px;
  }
}

/* Direct web port of selected Bluesky feed component geometry. See THIRD_PARTY_NOTICES.md. */
.bsky-feed-shell {
  width: min(600px, calc(100% - 32px));
}

.bsky-feed {
  border-left: 1px solid var(--feed-border);
  border-right: 1px solid var(--feed-border);
}

.bsky-feed-item {
  padding: 0 15px 8px 10px;
  cursor: default;
  transition: background-color 160ms ease;
}

.bsky-feed-item + .bsky-feed-item {
  border-top: 1px solid var(--feed-border);
}

.bsky-feed-item:hover {
  background: var(--feed-hover);
}

.bsky-feed-item__layout {
  display: flex;
  margin-top: 1px;
}

.bsky-feed-item__avatar {
  flex: 0 0 60px;
  padding-left: 8px;
  padding-right: 10px;
  padding-top: 12px;
}

.bsky-feed-item__content {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 12px;
}

.bsky-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--feed-avatar-fg);
  font-family: Geologica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.05em;
}

.bsky-avatar--small {
  width: 16px;
  height: 16px;
  font-size: 0;
}

.bsky-feed-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 24px;
}

.bsky-post-meta {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 4px;
  padding-bottom: 4px;
}

.bsky-post-meta__line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.bsky-post-meta__line strong {
  max-width: 70%;
  overflow: hidden;
  color: var(--fg);
  font-weight: 600;
  text-overflow: ellipsis;
}

.bsky-post-meta__line span,
.bsky-post-meta__line time {
  overflow: hidden;
  color: var(--feed-muted);
  font: inherit;
  text-overflow: ellipsis;
}

.bsky-post-meta__line span::before {
  content: '\00a0';
}

.bsky-post-meta__line time {
  padding-left: 4px;
}

.bsky-post-text,
.bsky-quote__text {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.bsky-post-embed {
  padding-bottom: 4px;
}

.bsky-image-embed,
.bsky-external,
.bsky-quote {
  margin-top: 8px;
}

.bsky-single-image,
.bsky-grid,
.bsky-external,
.bsky-quote,
.bsky-placeholder {
  overflow: hidden;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
}

.bsky-single-image {
  display: block;
  width: 100%;
  max-height: 560px;
  padding: 0;
  background: var(--feed-surface);
  cursor: zoom-in;
}

.bsky-single-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.bsky-grid {
  display: grid;
  gap: 4px;
  border: 0;
  background: transparent;
}

.bsky-grid__item {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--feed-surface);
  cursor: zoom-in;
}

.bsky-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.bsky-grid--2 .bsky-grid__item {
  aspect-ratio: 1;
}

.bsky-grid--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 2 / 1;
}

.bsky-grid--3 .bsky-grid__item--1 {
  grid-row: 1 / 3;
}

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

.bsky-grid--4 .bsky-grid__item {
  aspect-ratio: 1.5;
}

.bsky-external {
  display: flex;
  width: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease;
}

.bsky-external:hover {
  border-color: var(--feed-muted);
}

.bsky-external__media {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
}

.bsky-external__body {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--feed-border);
}

.bsky-external__copy {
  display: grid;
  gap: 3px;
  padding: 10px 12px 8px;
}

.bsky-external__copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bsky-external__description {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bsky-external__footer {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 12px;
  padding: 6px 0 8px;
  border-top: 1px solid var(--feed-border);
  color: var(--feed-muted);
  font-size: 12px;
  line-height: 1.35;
}

.bsky-external__footer svg {
  width: 14px;
  height: 14px;
}

.bsky-quote {
  padding: 10px 12px 12px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.bsky-quote:hover {
  border-color: var(--feed-muted);
  background: var(--feed-hover);
}

.bsky-quote .bsky-post-meta {
  padding-bottom: 8px;
}

.bsky-quote .bsky-image-embed {
  margin-top: 8px;
}

.bsky-placeholder {
  margin-top: 8px;
  padding: 12px;
  color: var(--feed-muted);
  font-size: 14px;
}

.bsky-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.bsky-controls__primary {
  display: flex;
  width: 100%;
  max-width: 320px;
  flex: 1 1 auto;
}

.bsky-controls__primary > span {
  display: flex;
  flex: 1 1 0;
  align-items: flex-start;
}

.bsky-controls__primary > span:first-child {
  margin-left: -6px;
}

.bsky-controls__secondary {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
}

.bsky-control {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--feed-muted);
  font: inherit;
}

.bsky-control svg {
  width: 18px;
  height: 18px;
}

.bsky-control span {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bsky-control:hover {
  color: var(--primary);
  background: var(--feed-hover);
}

.bsky-control--like:hover {
  color: #ec4899;
}

.bsky-control--meta {
  margin-top: -4px;
  margin-right: -5px;
}

@media (max-width: 620px) {
  .bsky-feed-shell {
    width: 100%;
  }

  .bsky-feed-item {
    padding-right: 10px;
  }

  .bsky-feed-item__avatar {
    flex-basis: 58px;
  }

  .bsky-post-meta__line strong {
    max-width: 44vw;
  }

  .bsky-controls {
    gap: 4px;
  }

  .bsky-controls__secondary {
    gap: 0;
  }
}

/* 2026-07-28: isolate header layers and use exact 44px compact viewport edges. */
.top-controls {
  left: 56px;
  right: 56px;
  width: auto;
  transform: none;
  z-index: auto;
  transition:
    top 700ms cubic-bezier(.22, 1, .36, 1),
    left 700ms cubic-bezier(.22, 1, .36, 1),
    right 700ms cubic-bezier(.22, 1, .36, 1);
}

.identity-switch,
.identity-switch__name,
.gooey-search {
  z-index: 90;
}

.menu-control {
  z-index: 1001;
}

body.is-header-compact .top-controls {
  top: 44px;
  left: 44px;
  right: 44px;
}

body.is-header-compact .menu-control,
body.is-header-compact .gooey-search {
  top: 0;
  transform: none;
}

@media (max-width: 620px) {
  .top-controls {
    left: 24px;
    right: 24px;
    width: auto;
    transform: none;
  }

  body.is-header-compact .top-controls {
    top: 44px;
    left: 44px;
    right: 44px;
  }

  body.is-header-compact .menu-control,
  body.is-header-compact .gooey-search {
    top: 0;
    transform: none;
  }
}

/* 2026-07-28: repair header geometry after stacking-layer regression. */
.top-controls {
  position: fixed;
  top: 56px;
  left: 50%;
  right: auto;
  width: calc(100vw - 112px);
  min-height: 56px;
  transform: translateX(-50%);
  z-index: 1001;
  transition:
    top 700ms cubic-bezier(.22, 1, .36, 1),
    width 700ms cubic-bezier(.22, 1, .36, 1);
}

.menu-control {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.identity-switch {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.identity-switch__name {
  left: 50%;
  top: calc(50% + 42px);
  transform: translateX(-50%);
  z-index: 1;
}

.gooey-search {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

body.menu-screen-is-open .identity-switch,
body.menu-screen-is-open .identity-switch__name,
body.menu-screen-is-open .gooey-search {
  visibility: hidden;
  pointer-events: none;
}

body.is-header-compact .top-controls {
  top: 44px;
  left: 50%;
  right: auto;
  width: calc(100vw - 88px);
  transform: translateX(-50%);
}

body.is-header-compact .menu-control,
body.is-header-compact .gooey-search {
  top: 0;
  transform: none;
}

body.is-header-compact .identity-switch__name {
  top: 22px;
  transform: translate(-50%, -50%);
}

@media (max-width: 620px) {
  .top-controls {
    top: 24px;
    left: 50%;
    right: auto;
    width: calc(100vw - 48px);
    transform: translateX(-50%);
  }

  .menu-control {
    top: 50%;
    transform: translateY(-50%);
  }

  .gooey-search {
    top: 50%;
    transform: translateY(-50%);
  }

  body.is-header-compact .top-controls {
    top: 44px;
    left: 50%;
    right: auto;
    width: calc(100vw - 88px);
    transform: translateX(-50%);
  }

  body.is-header-compact .menu-control,
  body.is-header-compact .gooey-search {
    top: 0;
    transform: none;
  }
}

/* 2026-07-28: calibrate compact header to a visible 44px edge at the owner's current browser scale. */
body.is-header-compact .top-controls {
  top: 55px;
  width: calc(100vw - 110px);
}

body.is-header-compact .menu-control {
  left: 0;
  top: 0;
  transform: none;
}

body.is-header-compact .gooey-search {
  right: -6px;
  top: -6px;
  transform: none;
}

body.is-header-compact .identity-switch__name {
  top: 22px;
}

@media (max-width: 620px) {
  body.is-header-compact .top-controls {
    top: 55px;
    width: calc(100vw - 110px);
  }

  body.is-header-compact .gooey-search {
    right: -6px;
    top: -6px;
  }
}

/* 2026-07-28: equalize visible compact top gap with the current side gaps. */
body.is-header-compact .top-controls {
  top: 47px;
}

@media (max-width: 620px) {
  body.is-header-compact .top-controls {
    top: 47px;
  }
}

/* 2026-07-28: literal compact viewport offsets — exactly 44 CSS px on all three edges. */
body.is-header-compact .top-controls {
  top: 44px;
  width: calc(100vw - 88px);
}

body.is-header-compact .menu-control {
  left: 0;
  top: 0;
  transform: none;
}

body.is-header-compact .gooey-search {
  right: 0;
  top: 0;
  transform: none;
}

body.is-header-compact .identity-switch__name {
  top: 22px;
}

@media (max-width: 620px) {
  body.is-header-compact .top-controls {
    top: 44px;
    width: calc(100vw - 88px);
  }

  body.is-header-compact .gooey-search {
    right: 0;
    top: 0;
  }
}

/* 2026-07-28: compact header uses exact 30px viewport offsets. */
body.is-header-compact .top-controls {
  top: 30px;
  width: calc(100vw - 60px);
}

body.is-header-compact .menu-control {
  left: 0;
  top: 0;
  transform: none;
}

body.is-header-compact .gooey-search {
  right: 0;
  top: 0;
  transform: none;
}

body.is-header-compact .identity-switch__name {
  top: 22px;
}

@media (max-width: 620px) {
  body.is-header-compact .top-controls {
    top: 30px;
    width: calc(100vw - 60px);
  }
}

/* 2026-07-28: theme-colored header veil with a smoothly fading backdrop blur. */
.header-feed-veil {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  height: 190px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      to bottom,
      var(--bg) 0,
      var(--bg) 54%,
      color-mix(in srgb, var(--bg) 86%, transparent) 68%,
      color-mix(in srgb, var(--bg) 46%, transparent) 84%,
      transparent 100%
    );
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 58%, rgba(0, 0, 0, .78) 72%, rgba(0, 0, 0, .28) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 58%, rgba(0, 0, 0, .78) 72%, rgba(0, 0, 0, .28) 90%, transparent 100%);
  transition:
    opacity 520ms cubic-bezier(.22, 1, .36, 1),
    background-color 520ms cubic-bezier(.65, 0, .35, 1);
}

body.is-header-compact .header-feed-veil {
  opacity: 1;
}

body.menu-screen-is-open .header-feed-veil {
  opacity: 0;
}

@media (max-width: 620px) {
  .header-feed-veil {
    height: 168px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-feed-veil {
    transition-duration: 1ms;
  }
}

/* 2026-07-28: shorter, higher header blur transition. */
.header-feed-veil {
  height: 138px;
  background:
    linear-gradient(
      to bottom,
      var(--bg) 0,
      var(--bg) 40%,
      color-mix(in srgb, var(--bg) 92%, transparent) 50%,
      color-mix(in srgb, var(--bg) 72%, transparent) 64%,
      color-mix(in srgb, var(--bg) 38%, transparent) 80%,
      color-mix(in srgb, var(--bg) 12%, transparent) 92%,
      transparent 100%
    );
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      #000 0,
      #000 38%,
      rgba(0, 0, 0, .92) 48%,
      rgba(0, 0, 0, .68) 64%,
      rgba(0, 0, 0, .34) 80%,
      rgba(0, 0, 0, .1) 92%,
      transparent 100%
    );
  mask-image:
    linear-gradient(
      to bottom,
      #000 0,
      #000 38%,
      rgba(0, 0, 0, .92) 48%,
      rgba(0, 0, 0, .68) 64%,
      rgba(0, 0, 0, .34) 80%,
      rgba(0, 0, 0, .1) 92%,
      transparent 100%
    );
}

@media (max-width: 620px) {
  .header-feed-veil {
    height: 126px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

/* 2026-07-28: 700px feed plus reserved 300px right column. */
.bsky-feed-shell {
  width: min(1000px, calc(100% - 32px));
}

.bsky-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) 300px;
  width: 100%;
  align-items: stretch;
}

.bsky-feed {
  min-width: 0;
}

.bsky-feed-aside {
  min-height: 100%;
  border-right: 1px solid var(--feed-border);
}

@media (max-width: 1024px) {
  .bsky-feed-shell {
    width: min(700px, calc(100% - 32px));
  }

  .bsky-feed-layout {
    display: block;
  }

  .bsky-feed-aside {
    display: none;
  }
}

@media (max-width: 620px) {
  .bsky-feed-shell {
    width: 100%;
  }
}

/* 2026-07-28: single-image frame follows uploaded media dimensions exactly. */
.bsky-single-image {
  max-height: none;
}

.bsky-single-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

/* 2026-07-28: Bluesky expanded image gallery for 5–10 images. */
.bsky-image-embed--gallery {
  overflow: visible;
}

.bsky-gallery {
  display: flex;
  width: calc(100% + 70px);
  height: 300px;
  margin-left: -60px;
  padding-left: 60px;
  padding-right: 10px;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.bsky-gallery::-webkit-scrollbar {
  display: none;
}

.bsky-gallery__item {
  position: relative;
  flex: 0 0 calc(300px * var(--gallery-ratio));
  height: 300px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--feed-surface);
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 200ms ease;
}

.bsky-gallery__item:active {
  transform: scale(.99);
}

.bsky-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bsky-gallery__position {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--feed-surface) 82%, transparent);
  color: var(--fg);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .bsky-gallery {
    height: 260px;
  }

  .bsky-gallery__item {
    flex-basis: calc(260px * var(--gallery-ratio));
    height: 260px;
  }
}

@media (max-width: 620px) {
  .bsky-gallery {
    width: calc(100% + 58px);
    height: 200px;
    margin-left: -58px;
    padding-left: 58px;
  }

  .bsky-gallery__item {
    flex-basis: calc(200px * var(--gallery-ratio));
    height: 200px;
  }
}

/* 2026-07-28: DOM production media placement port. */
.dom-media-single,
.dom-media-grid {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--feed-border);
  border-radius: 16px;
  background: var(--feed-surface);
}

.dom-media-single {
  display: block;
  padding: 0;
  cursor: zoom-in;
}

.dom-media-single img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dom-media-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.dom-media-grid--2,
.dom-media-grid--3,
.dom-media-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dom-media-grid--5,
.dom-media-grid--6,
.dom-media-grid--7,
.dom-media-grid--8,
.dom-media-grid--9 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dom-media-grid--3 .dom-media-grid__item:first-child {
  grid-row: span 2;
}

.dom-media-grid__item {
  position: relative;
  display: block;
  min-height: 180px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--feed-surface);
  cursor: zoom-in;
}

.dom-media-grid__item:nth-child(odd) {
  border-right: 1px solid color-mix(in srgb, #fff 80%, transparent);
}

.dom-media-grid__item:nth-child(even) {
  border-left: 1px solid color-mix(in srgb, #fff 80%, transparent);
}

.dom-media-grid__item:nth-child(n + 3) {
  border-top: 1px solid color-mix(in srgb, #fff 80%, transparent);
}

.dom-media-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 520px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.dom-media-grid__item:hover img {
  transform: scale(1.02);
}

.dom-media-grid__overflow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

/* Retire the earlier >4-image carousel after adopting DOM production geometry. */
.bsky-gallery {
  display: none !important;
}

/* 2026-07-28: replace broken odd/even tile borders with one uniform grid gap. */
.dom-media-grid {
  gap: 2px;
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}

.dom-media-grid__item,
.dom-media-grid__item:nth-child(odd),
.dom-media-grid__item:nth-child(even),
.dom-media-grid__item:nth-child(n + 3) {
  border: 0;
}

/* 2026-07-28: LibreTranslate language trigger and three-column full-screen menu. */
.language-control {
  position: absolute;
  left: 56px;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
}

.language-control__trigger {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--menu-color, var(--primary));
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform 220ms ease, background-color 520ms cubic-bezier(.65, 0, .35, 1);
}

.language-control__trigger:hover {
  transform: scale(1.04);
}

.language-control__trigger:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.language-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1020;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
}

.language-screen-overlay__path {
  fill: #000;
}

.language-menu {
  position: fixed;
  inset: 0;
  z-index: 1030;
  display: grid;
  place-items: center;
  padding: 110px 32px 48px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
}

body.language-screen-is-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.language-screen-is-open .language-menu {
  pointer-events: auto;
}

body.language-screen-is-open .identity-switch,
body.language-screen-is-open .identity-switch__name,
body.language-screen-is-open .gooey-search,
body.language-screen-is-open .header-feed-veil {
  visibility: hidden;
  pointer-events: none;
}

body.menu-screen-is-open .language-control {
  visibility: hidden;
  pointer-events: none;
}

.language-menu__inner {
  width: min(960px, 100%);
}

.language-menu__eyebrow {
  margin: 0 0 8px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.language-menu h2 {
  margin: 0 0 36px;
  color: #fff;
  font-family: Geologica, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.06em;
}

.language-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 4px;
}

.language-menu__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.72);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.language-menu__item:hover,
.language-menu__item:focus-visible {
  background: rgba(255,255,255,.09);
  color: #fff;
  transform: translateX(4px);
  outline: none;
}

.language-menu__item.is-active {
  background: rgba(255,255,255,.14);
  color: #fff;
}

.language-menu__code {
  color: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.language-menu__item.is-active .language-menu__code {
  color: var(--focus);
}

.language-menu__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.language-menu__name,
.language-menu__translation {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-menu__name {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
}

.language-menu__translation {
  color: rgba(255,255,255,.48);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}

.language-menu__item:hover .language-menu__translation,
.language-menu__item:focus-visible .language-menu__translation,
.language-menu__item.is-active .language-menu__translation {
  color: rgba(255,255,255,.7);
}

body.is-header-compact .language-control {
  top: 0;
  transform: none;
}

.top-controls {
  z-index: 1101;
}

@media (max-width: 760px) {
  .language-menu {
    align-items: start;
    overflow-y: auto;
    padding: 92px 20px 40px;
  }

  .language-menu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}

@media (max-width: 480px) {
  .language-control {
    left: 52px;
  }

  .language-menu__grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-28: Pass avatar support in localized post identity. */
.bsky-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2026-07-28: Solar Linear view count + share are the only post-footer controls. */
.post-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  color: var(--feed-muted);
}

.post-tools__views,
.post-tools__share {
  display: inline-flex;
  min-width: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.post-tools__views {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.post-tools__share {
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.post-tools__share:hover,
.post-tools__share:focus-visible,
.post-tools__share.is-copied {
  background: var(--feed-hover);
  color: var(--primary);
}

.post-tools__share:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.solar-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* 2026-07-28: author stack with handle below and publication date/time on the right. */
.bsky-feed-item__head {
  display: block;
  width: 100%;
}

.bsky-post-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  align-items: center;
  gap: 10px;
}

.bsky-post-meta__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.15;
}

.bsky-post-meta__identity strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsky-post-meta__identity span {
  max-width: 100%;
  overflow: hidden;
  color: var(--feed-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsky-post-meta__time {
  justify-self: end;
  color: var(--feed-muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.bsky-avatar,
.bsky-avatar--small {
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1;
}

.bsky-avatar img,
.bsky-avatar--small img {
  border-radius: 50%;
}

@media (max-width: 620px) {
  .bsky-post-meta {
    gap: 8px;
  }

  .bsky-post-meta__time {
    max-width: 112px;
    white-space: normal;
  }
}

/* 2026-07-28: center identity against avatar and separate content from author row. */
.bsky-post-meta {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 48px;
  align-items: center;
}

.bsky-post-meta__identity {
  align-self: center;
  justify-content: center;
}

.bsky-post-meta__time {
  align-self: center;
}

.bsky-post-content {
  margin-top: 18px;
}

@media (max-width: 620px) {
  .bsky-post-content {
    margin-top: 16px;
  }
}

/* 2026-07-28: language-scoped hashtag links and shared repost count. */
.post-hashtag {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}
.post-hashtag:hover { text-decoration: underline; }
.post-tools__share span { font-size: 13px; font-variant-numeric: tabular-nums; }

/* 2026-07-28: nine most recently mentioned language-scoped hashtags. */
.bsky-feed-aside {
  padding: 28px 24px;
}

.recent-hashtags {
  position: sticky;
  top: 118px;
}

.recent-hashtags h2 {
  margin: 0 0 16px;
  color: var(--feed-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.recent-hashtags__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.recent-hashtags__button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--feed-border);
  border-radius: 999px;
  background: var(--feed-surface);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.recent-hashtags__button:hover,
.recent-hashtags__button:focus-visible {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--feed-surface));
  color: var(--primary);
}

.recent-hashtags__button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* 2026-07-28: dedicated hashtag-page heading in the main column. */
.feed-page-heading {
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--feed-border);
}

.feed-page-heading h1 {
  margin: 0;
  color: var(--fg);
  font-family: Geologica, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

.feed-page-heading p {
  margin: 10px 0 0;
  color: var(--feed-muted);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .feed-page-heading {
    padding: 22px 20px 20px;
  }
}

/* 2026-07-28: remove structural feed and column separators. */
.social-stream,
.bsky-feed {
  border-left: 0;
  border-right: 0;
}

.social-post + .social-post,
.bsky-feed-item + .bsky-feed-item {
  border-top: 0;
}

.bsky-feed-aside {
  border-right: 0;
}

.feed-page-heading {
  border-bottom: 0;
}

/* 2026-07-28: theme-aware page scrollbar. */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb, var(--primary)) var(--bg);
  background: var(--bg);
}

body[data-section="faith"] {
  --scroll-thumb: #C7A15A;
}

body[data-section="future"] {
  --scroll-thumb: #5B6CFF;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--bg);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--scroll-thumb, var(--primary));
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb, var(--primary));
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: var(--bg);
}

/* 2026-07-28: bind scrollbar palette to the root scrolling element. */
html:has(body[data-section="faith"]) {
  --scroll-track: #F4EEE3;
  --scroll-thumb: #C7A15A;
  background: var(--scroll-track);
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

html:has(body[data-section="future"]) {
  --scroll-track: #070B14;
  --scroll-thumb: #5B6CFF;
  background: var(--scroll-track);
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: var(--scroll-track, var(--bg));
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  border-color: var(--scroll-track, var(--bg));
  background: var(--scroll-thumb, var(--primary));
  background-clip: padding-box;
}

/* 2026-07-28: header controls stay rendered beneath the opening menu sheet. */
.top-controls {
  z-index: 90;
}

.menu-control {
  position: fixed;
  left: 56px;
  top: 62px;
  z-index: 1001;
  transform: none;
  transition:
    left 700ms cubic-bezier(.22, 1, .36, 1),
    top 700ms cubic-bezier(.22, 1, .36, 1);
}

body.is-header-compact .menu-control {
  left: 30px;
  top: 30px;
  transform: none;
}

body.menu-screen-is-open {
  overflow: visible;
  overscroll-behavior: auto;
}

body.menu-screen-is-open .identity-switch,
body.menu-screen-is-open .identity-switch__name,
body.menu-screen-is-open .gooey-search,
body.menu-screen-is-open .language-control {
  visibility: visible;
  pointer-events: none;
}

@media (max-width: 620px) {
  .menu-control {
    left: 24px;
    top: 30px;
    transform: none;
  }

  body.is-header-compact .menu-control {
    left: 30px;
    top: 30px;
  }
}

/* 2026-07-28: burger and language controls stay above either opening sheet. */
.menu-control,
.language-control {
  position: fixed;
  top: 62px;
  z-index: 1041;
  transform: none;
  transition:
    left 700ms cubic-bezier(.22, 1, .36, 1),
    top 700ms cubic-bezier(.22, 1, .36, 1);
}

.menu-control {
  left: 56px;
}

.language-control {
  left: 112px;
}

body.is-header-compact .menu-control,
body.is-header-compact .language-control {
  top: 30px;
  transform: none;
}

body.is-header-compact .menu-control {
  left: 30px;
}

body.is-header-compact .language-control {
  left: 86px;
}

body.menu-screen-is-open .language-control,
body.language-screen-is-open .menu-control,
body.language-screen-is-open .language-control {
  visibility: visible;
  pointer-events: auto;
}

body.language-screen-is-open {
  overflow: visible;
  overscroll-behavior: auto;
}

body.language-screen-is-open .identity-switch,
body.language-screen-is-open .identity-switch__name,
body.language-screen-is-open .gooey-search,
body.language-screen-is-open .header-feed-veil {
  visibility: visible;
  pointer-events: none;
}

@media (max-width: 620px) {
  .menu-control,
  .language-control {
    top: 30px;
  }

  .menu-control {
    left: 24px;
  }

  .language-control {
    left: 76px;
  }

  body.is-header-compact .menu-control {
    left: 30px;
  }

  body.is-header-compact .language-control {
    left: 82px;
  }
}

/* 2026-07-28: prevent the raw animated SVG paths flashing before Segment initialization. */
.menu-control__icon {
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease;
}

.menu-control.is-icon-ready .menu-control__icon {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .menu-control__icon {
    transition-duration: 1ms;
  }
}

/* 2026-07-28: burger sheet temporarily rises above an open language sheet during handoff. */
.menu-screen-overlay.is-handoff-top {
  z-index: 1040;
}

/* 2026-07-28: isolated mobile layout rebuild. Desktop geometry is unchanged. */
@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    min-height: 0;
    height: 0;
    padding: 0;
  }

  .top-controls,
  body.is-header-compact .top-controls {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 16px;
    right: 16px;
    width: auto;
    min-height: 178px;
    height: 178px;
    margin: 0;
    transform: none;
  }

  .menu-control,
  .language-control,
  body.is-header-compact .menu-control,
  body.is-header-compact .language-control {
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    transform: none;
  }

  .menu-control,
  body.is-header-compact .menu-control {
    left: 16px;
  }

  .language-control,
  body.is-header-compact .language-control {
    left: 68px;
  }

  .gooey-search,
  body.is-header-compact .gooey-search {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 16px;
    bottom: auto;
    left: auto;
    width: min(280px, calc(100vw - 32px));
    height: 56px;
    transform: none;
    transform-origin: right top;
  }

  .identity-switch {
    position: absolute;
    top: 66px;
    left: 50%;
    transform: translateX(-50%);
  }

  .identity-switch__name {
    top: 132px;
    left: 50%;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
    font-size: clamp(34px, 10vw, 42px);
    line-height: .98;
    text-align: center;
    white-space: normal;
  }

  body.is-header-compact .identity-switch {
    transform: translate(-50%, -180px);
    opacity: 0;
  }

  body.is-header-compact .identity-switch__name {
    top: 28px;
    width: min(36vw, 154px);
    max-width: 154px;
    transform: translate(-50%, -50%);
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1;
    white-space: nowrap;
  }

  .header-feed-veil {
    height: 116px;
  }

  .feed-shell,
  .bsky-feed-shell {
    width: 100%;
    margin: 0;
    padding-top: calc(env(safe-area-inset-top, 0px) + 210px);
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .bsky-feed-layout,
  .bsky-feed {
    width: 100%;
    min-width: 0;
  }

  .bsky-feed-item {
    width: 100%;
    min-width: 0;
    padding: 0 14px 20px;
  }

  .bsky-feed-item__layout {
    width: 100%;
    min-width: 0;
  }

  .bsky-feed-item__avatar {
    flex: 0 0 52px;
    padding: 12px 8px 0 0;
  }

  .bsky-feed-item__content {
    min-width: 0;
    padding-top: 12px;
  }

  .bsky-post-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .bsky-post-meta__identity strong {
    font-size: 14px;
  }

  .bsky-post-meta__identity span {
    font-size: 12px;
  }

  .bsky-post-meta__time {
    max-width: 92px;
    font-size: 10px;
    white-space: normal;
  }

  .bsky-post-text,
  .bsky-quote__text {
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .bsky-post-embed,
  .dom-media-single,
  .dom-media-grid,
  .bsky-external,
  .bsky-quote {
    max-width: 100%;
  }

  .dom-media-grid__item,
  .dom-media-grid__item img {
    min-height: 120px;
  }

  .feed-page-heading {
    padding: 20px 16px 18px;
  }

  .feed-page-heading h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .language-menu {
    padding-top: calc(env(safe-area-inset-top, 0px) + 86px);
  }
}

@media (max-width: 360px) {
  .identity-switch__name {
    font-size: 34px;
  }

  body.is-header-compact .identity-switch__name {
    max-width: 126px;
    font-size: 18px;
  }

  .bsky-feed-item {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* 2026-07-28: final mobile header contract v2. Desktop remains unchanged. */
@media (max-width: 620px) {
  .gooey-search {
    display: none !important;
  }

  .top-controls,
  body.is-header-compact .top-controls {
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 16px;
    right: 16px;
    width: auto;
    height: 184px;
    min-height: 184px;
  }

  .menu-control,
  body.is-header-compact .menu-control {
    left: 16px;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
  }

  .language-control {
    left: auto;
    right: 16px;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 320ms ease,
      transform 420ms cubic-bezier(.22, 1, .36, 1),
      top 700ms cubic-bezier(.22, 1, .36, 1);
  }

  body.is-header-compact .language-control {
    left: auto;
    right: 16px;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
  }

  .identity-switch {
    top: 66px;
    left: 50%;
    width: 85.3333px;
    height: 42.6667px;
    transform: translateX(-50%) scale(1.03125);
    transform-origin: center center;
  }

  body.is-header-compact .identity-switch {
    transform: translate(-50%, -160px) scale(1.03125);
    opacity: 0;
  }

  .identity-switch__name {
    top: 128px;
    left: 16px;
    width: calc(100vw - 32px);
    max-width: none;
    transform: none;
    font-size: clamp(36px, 11.5vw, 48px);
    line-height: .96;
    text-align: center;
    white-space: normal;
  }

  body.is-header-compact .identity-switch__name {
    top: calc(env(safe-area-inset-top, 0px) + 38px);
    left: 68px;
    width: calc(100vw - 84px);
    max-width: none;
    transform: translateY(-50%);
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .feed-shell,
  .bsky-feed-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 216px);
  }
}

@media (max-width: 360px) {
  .identity-switch__name {
    font-size: 36px;
  }

  body.is-header-compact .identity-switch__name {
    left: 68px;
    width: calc(100vw - 84px);
    font-size: 18px;
  }
}

/* 2026-07-28: mobile header v3 — high-specificity correction for legacy desktop rules. */
@media (max-width: 620px) {
  body:not(.is-header-compact) .top-controls {
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 16px;
    right: 16px;
    width: auto;
    height: 164px;
    min-height: 164px;
    transform: none;
  }

  body:not(.is-header-compact) .identity-switch {
    position: absolute;
    top: 62px;
    left: 50%;
    width: 85.3333px;
    height: 42.6667px;
    transform: translateX(-50%) scale(1.03125);
    transform-origin: center center;
  }

  body:not(.is-header-compact) .identity-switch__name {
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
    font-size: clamp(34px, 10.5vw, 44px);
    line-height: .96;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.is-header-compact .top-controls {
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 16px;
    right: 16px;
    width: auto;
    height: 44px;
    min-height: 44px;
    transform: none;
  }

  body.is-header-compact .identity-switch__name {
    position: absolute;
    top: 22px;
    left: 52px;
    right: 0;
    width: auto;
    max-width: none;
    transform: translateY(-50%);
    font-size: clamp(18px, 5vw, 21px);
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.is-header-compact) .feed-shell,
  body:not(.is-header-compact) .bsky-feed-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 184px);
  }

  body.is-header-compact .feed-shell,
  body.is-header-compact .bsky-feed-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 76px);
  }
}

@media (max-width: 360px) {
  body:not(.is-header-compact) .identity-switch__name {
    font-size: 32px;
  }

  body.is-header-compact .identity-switch__name {
    font-size: 18px;
  }
}

/* 2026-07-28: mobile header v4 — one 44px control row and visible name. */
@media (max-width: 620px) {
  body:not(.is-header-compact) .menu-control,
  body:not(.is-header-compact) .language-control,
  body:not(.is-header-compact) .identity-switch {
    top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
  }

  body:not(.is-header-compact) .menu-control {
    left: 16px !important;
  }

  body:not(.is-header-compact) .language-control {
    right: 16px !important;
    left: auto !important;
  }

  body:not(.is-header-compact) .identity-switch {
    position: fixed !important;
    left: 50% !important;
    width: 88px !important;
    height: 44px !important;
    transform: translateX(-50%) !important;
    transform-origin: center center !important;
  }

  body:not(.is-header-compact) .identity-switch .switch {
    width: 88px !important;
    height: 44px !important;
  }

  body:not(.is-header-compact) .identity-switch .switch__track {
    top: 19px !important;
    width: 88px !important;
    height: 6px !important;
    border-radius: 3px !important;
  }

  body:not(.is-header-compact) .identity-switch .switch__runner {
    width: 44px !important;
    height: 44px !important;
  }

  body:not(.is-header-compact) .identity-switch .switch__icon {
    top: 7.3333px !important;
    width: 29.3333px !important;
    height: 29.3333px !important;
  }

  body:not(.is-header-compact) .identity-switch .switch__icon svg {
    width: 29.3333px !important;
    height: 29.3333px !important;
  }

  body:not(.is-header-compact) .identity-switch .switch__icon--fish {
    left: 7.3333px !important;
  }

  body:not(.is-header-compact) .identity-switch .switch__icon--eye {
    right: 7.3333px !important;
  }

  body:not(.is-header-compact) .top-controls {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 124px !important;
    min-height: 124px !important;
    transform: none !important;
  }

  body:not(.is-header-compact) .identity-switch__name {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 76px) !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: var(--fg) !important;
    font-size: clamp(34px, 10vw, 42px) !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 90 !important;
  }

  body:not(.is-header-compact) .feed-shell,
  body:not(.is-header-compact) .bsky-feed-shell {
    padding-top: calc(env(safe-area-inset-top, 0px) + 136px) !important;
  }

  body.is-header-compact .identity-switch__name {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}

/* 2026-07-28: keep compact mobile identity in the exact burger row. */
@media (max-width: 620px) {
  body.is-header-compact .identity-switch__name {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    left: 68px !important;
    right: 16px !important;
    width: auto !important;
    height: 44px !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--fg) !important;
    font-size: clamp(18px, 5vw, 21px) !important;
    line-height: 1 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 90 !important;
  }
}

/* 2026-07-28: direct post permalink on publication time. */
.bsky-post-meta__permalink {
  justify-self: end;
  color: inherit;
  text-decoration: none;
}

.bsky-post-meta__permalink:hover .bsky-post-meta__time,
.bsky-post-meta__permalink:focus-visible .bsky-post-meta__time {
  color: var(--primary);
}

.bsky-post-meta__permalink:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 2026-07-28: photographs remain visually static on pointer hover. */
.dom-media-grid__item img,
.dom-media-grid__item:hover img,
.dom-media-single img,
.bsky-single-image img,
.bsky-grid__item img,
.bsky-grid__item:hover img {
  transform: none !important;
  transition: none !important;
}

/* 2026-07-28: localized identity name is a visually neutral section-home link. */
a.identity-switch__name,
a.identity-switch__name:link,
a.identity-switch__name:visited,
a.identity-switch__name:hover,
a.identity-switch__name:active {
  color: var(--fg);
  text-decoration: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
}

a.identity-switch__name:hover,
a.identity-switch__name:active {
  transform: inherit;
}

a.identity-switch__name:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

/* 2026-07-28: neutral compact text-document pages. */
body.doc-page {
  --bg: #FAFAFA;
  --fg: #050505;
  --primary: #050505;
  --idle: #050505;
  --focus: #555555;
  --search-color: #050505;
  min-height: 100vh;
  background: #FAFAFA;
  color: #050505;
}

html:has(body.doc-page) {
  background: #FAFAFA;
  scrollbar-color: #050505 #FAFAFA;
}

html:has(body.doc-page)::-webkit-scrollbar-track {
  background: #FAFAFA;
}

html:has(body.doc-page)::-webkit-scrollbar-thumb {
  background: #050505;
}

body.doc-page .header-feed-veil {
  background: linear-gradient(to bottom, rgba(250, 250, 250, 1) 0%, rgba(250, 250, 250, .86) 48%, rgba(250, 250, 250, 0) 100%);
}

body.doc-page .menu-control__trigger,
body.doc-page .language-control__trigger,
body.doc-page .gooey-search__field,
body.doc-page .gooey-search__submit {
  background: #050505;
}

body.doc-page .identity-switch__name,
body.doc-page a.identity-switch__name:link,
body.doc-page a.identity-switch__name:visited,
body.doc-page a.identity-switch__name:hover,
body.doc-page a.identity-switch__name:active {
  color: #050505;
}

.document-page {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 150px 40px 96px;
}

.document-article {
  width: min(100%, 820px);
  margin: 0 auto;
}

.document-article > h1 {
  max-width: 760px;
  font-family: Geologica, Inter, sans-serif;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.055em;
  color: #050505;
}

.document-body {
  margin-top: 52px;
  font-family: Inter, sans-serif;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.72;
  color: #111111;
}

.document-body > * + * {
  margin-top: 1.25em;
}

.document-body h2,
.document-body h3,
.document-body h4 {
  margin-top: 1.8em;
  font-family: Geologica, Inter, sans-serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.035em;
  color: #050505;
}

.document-body h2 { font-size: clamp(32px, 4vw, 46px); }
.document-body h3 { font-size: clamp(26px, 3vw, 34px); }
.document-body h4 { font-size: 23px; }

.document-body ul,
.document-body ol {
  padding-left: 1.4em;
}

.document-body li + li {
  margin-top: .45em;
}

.document-body blockquote {
  padding-left: 1.2em;
  border-left: 3px solid #050505;
  font-size: 1.08em;
}

.document-body a {
  color: #050505;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.document-body code {
  padding: .12em .32em;
  border-radius: 4px;
  background: #EEEEEE;
  font-size: .9em;
}

.document-body pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 8px;
  background: #EEEEEE;
  font-size: 15px;
  line-height: 1.55;
}

.document-body pre code {
  padding: 0;
  background: transparent;
}

.document-body hr {
  height: 1px;
  margin: 2.2em 0;
  background: #D8D8D8;
}

@media (max-width: 620px) {
  .document-page {
    padding: calc(env(safe-area-inset-top, 0px) + 104px) 20px calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .document-article > h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .document-body {
    margin-top: 36px;
    font-size: 18px;
    line-height: 1.65;
  }
}

/* 2026-07-28: Contact document and feedback form. */
.contact-form-section {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid #D8D8D8;
}

.contact-form-section > h2 {
  font-family: Geologica, Inter, sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.contact-form-section > p {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #BDBDBD;
  border-radius: 8px;
  background: #FFFFFF;
  color: #050505;
  font: 400 17px/1.45 Inter, sans-serif;
  padding: 14px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 190px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #050505;
  box-shadow: 0 0 0 3px rgba(5, 5, 5, .10);
}

.contact-form button {
  justify-self: start;
  min-width: 170px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #FFFFFF;
  padding: 14px 24px;
  font: 600 16px/1 Inter, sans-serif;
  cursor: pointer;
}

.contact-form button:focus-visible {
  outline: 2px solid #050505;
  outline-offset: 4px;
}

.contact-form__status {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px !important;
}

.contact-form__status--success {
  background: #EAF6ED;
  color: #184F2A;
}

.contact-form__status--error {
  background: #FDECEC;
  color: #7A1F1F;
}

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

@media (max-width: 620px) {
  .contact-form-section {
    margin-top: 52px;
    padding-top: 36px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-form button {
    width: 100%;
  }
}

/* 2026-07-28: restore the animated burger/cross above the neutral doc control surface. */
body.doc-page .menu-control {
  background: #050505;
}

body.doc-page .menu-control__trigger {
  background: transparent;
}

/* 2026-07-28: lighter, smaller editorial typography for document pages. */
body.doc-page .document-article > h1 {
  font-size: clamp(40px, 5.5vw, 62px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
}

body.doc-page .document-body {
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1.68;
}

body.doc-page .document-body h2,
body.doc-page .document-body h3,
body.doc-page .document-body h4,
body.doc-page .contact-form-section > h2 {
  font-weight: 500;
  letter-spacing: -.025em;
}

body.doc-page .document-body h2,
body.doc-page .contact-form-section > h2 {
  font-size: clamp(27px, 3.2vw, 37px);
}

body.doc-page .document-body h3 {
  font-size: clamp(23px, 2.6vw, 30px);
}

body.doc-page .document-body h4 {
  font-size: 20px;
}

body.doc-page .contact-form-section > p {
  font-size: 16px;
  font-weight: 400;
}

body.doc-page .contact-form label {
  font-weight: 500;
}

body.doc-page .contact-form input,
body.doc-page .contact-form select,
body.doc-page .contact-form textarea {
  font-size: 16px;
  font-weight: 400;
}

body.doc-page .contact-form button {
  font-weight: 500;
}

@media (max-width: 620px) {
  body.doc-page .document-article > h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  body.doc-page .document-body {
    font-size: 16px;
    line-height: 1.64;
  }
}

/* 2026-07-28: Contact organization accordions. */
body.doc-page .contact-accordion {
  margin-top: 0;
  border-top: 1px solid #D8D8D8;
}

body.doc-page .contact-accordion:last-of-type {
  border-bottom: 1px solid #D8D8D8;
}

body.doc-page .contact-accordion__summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 48px 18px 0;
  color: #050505;
  font-family: Geologica, Inter, sans-serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.025em;
  cursor: pointer;
  list-style: none;
}

body.doc-page .contact-accordion__summary::-webkit-details-marker {
  display: none;
}

body.doc-page .contact-accordion__summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1.8px solid #050505;
  border-bottom: 1.8px solid #050505;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
}

body.doc-page .contact-accordion[open] > .contact-accordion__summary::after {
  transform: translateY(-35%) rotate(225deg);
}

body.doc-page .contact-accordion__summary:focus-visible {
  outline: 2px solid #050505;
  outline-offset: 4px;
}

body.doc-page .contact-accordion__content {
  padding: 0 48px 30px 0;
}

body.doc-page .contact-accordion__content > * + * {
  margin-top: 1.25em;
}

@media (max-width: 620px) {
  body.doc-page .contact-accordion__summary {
    min-height: 68px;
    padding-right: 38px;
    font-size: 22px;
  }

  body.doc-page .contact-accordion__content {
    padding-right: 12px;
    padding-bottom: 26px;
  }
}

/* 2026-07-28: refined large single-open Contact accordions. */
body.doc-page .contact-accordion__summary {
  min-height: 94px;
  padding: 24px 56px 24px 0;
  font-size: clamp(27px, 3.2vw, 37px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.025em;
}

body.doc-page .contact-accordion__summary::after {
  right: 5px;
  width: 13px;
  height: 13px;
  border-width: 2px;
  transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
}

body.doc-page .contact-accordion__content {
  padding: 0 56px 36px 0;
  will-change: opacity, transform;
}

body.doc-page .contact-accordion.is-animating {
  will-change: height;
}

@media (max-width: 620px) {
  body.doc-page .contact-accordion__summary {
    min-height: 82px;
    padding: 21px 44px 21px 0;
    font-size: 27px;
  }

  body.doc-page .contact-accordion__content {
    padding-right: 12px;
    padding-bottom: 30px;
  }
}

/* 2026-07-28: make Send a Message continue directly after the accordion group. */
body.doc-page .contact-form-section {
  margin-top: 0;
  padding-top: 34px;
  border-top: 0;
}

@media (max-width: 620px) {
  body.doc-page .contact-form-section {
    margin-top: 0;
    padding-top: 28px;
  }
}

/* 2026-07-28: localized interactive metaball 404. */
html:has(body.not-found-page),
body.not-found-page {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #FFFFFF;
  color: #111111;
  overflow: hidden;
}

body.not-found-page {
  min-height: 100svh;
}

.not-found {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: #FFFFFF;
}

.not-found__canvas,
.not-found__fallback-blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.not-found__canvas {
  z-index: 0;
  display: block;
  pointer-events: none;
}

.not-found__fallback-blob {
  z-index: -1;
  display: none;
  background:
    radial-gradient(circle at 62% 42%, rgba(199, 161, 90, .96) 0 14%, transparent 14.5%),
    radial-gradient(circle at 73% 52%, rgba(199, 161, 90, .92) 0 10%, transparent 10.5%),
    radial-gradient(circle at 53% 57%, rgba(199, 161, 90, .88) 0 12%, transparent 12.5%);
  filter: blur(2px);
}

.no-webgl .not-found__fallback-blob {
  z-index: 0;
  display: block;
}

.not-found__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, 760px);
  min-height: 100svh;
  padding: 56px 56px 64px;
  pointer-events: none;
}

.not-found__label {
  margin: 0 0 12px;
  font: 500 13px/1 Inter, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.not-found__number {
  margin: 0;
  color: #C7A15A;
  font: 600 clamp(112px, 18vw, 260px)/.72 Geologica, Inter, sans-serif;
  letter-spacing: -.085em;
}

.not-found__content h1 {
  max-width: 720px;
  margin: 38px 0 0;
  font: 500 clamp(42px, 6vw, 78px)/1.02 Geologica, Inter, sans-serif;
  letter-spacing: -.055em;
}

.not-found__message {
  max-width: 620px;
  margin: 22px 0 0;
  font: 400 clamp(17px, 1.5vw, 20px)/1.58 Inter, sans-serif;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  pointer-events: auto;
}

.not-found__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #111111;
  border-radius: 999px;
  color: #111111;
  background: rgba(255, 255, 255, .88);
  font: 500 15px/1 Inter, sans-serif;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background-color 160ms ease, color 160ms ease;
}

.not-found__action--primary,
.not-found__action:hover {
  background: #111111;
  color: #FFFFFF;
}

.not-found__action:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .not-found__content {
    width: 100%;
    padding: max(28px, env(safe-area-inset-top)) 22px max(30px, calc(env(safe-area-inset-bottom) + 22px));
  }

  .not-found__number {
    font-size: clamp(96px, 34vw, 154px);
  }

  .not-found__content h1 {
    margin-top: 28px;
    font-size: clamp(36px, 11vw, 52px);
  }

  .not-found__message {
    margin-top: 16px;
    font-size: 17px;
  }

  .not-found__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 24px;
  }

  .not-found__action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found__action {
    transition: none;
  }
}

/* 2026-07-28: official Codrops Interactive Droplets runtime integration. */
.not-found__webgl {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  background: #FFFFFF;
}

.not-found__webgl canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100vw !important;
  height: 100svh !important;
}

/* 2026-07-29: compact document header on localized 404 pages. */
body.not-found-page .site-shell,
body.not-found-page .header-feed-veil {
  position: relative;
  z-index: 1041;
}

body.not-found-page .not-found__content {
  padding-top: 112px;
}

body.not-found-page .not-found__webgl {
  z-index: 0;
}

body.not-found-page .not-found__content {
  z-index: 2;
}

@media (max-width: 620px) {
  body.not-found-page .not-found__content {
    padding-top: 92px;
  }
}

/* 2026-07-29: restore canonical header/veil stacking on 404. */
body.not-found-page .site-shell {
  position: static;
  z-index: auto;
}

body.not-found-page .header-feed-veil {
  position: fixed;
  z-index: 80;
}

/* 2026-07-29: document-gray 404 background and transparent header area. */
html:has(body.not-found-page),
body.not-found-page,
body.not-found-page .not-found,
body.not-found-page .not-found__webgl {
  background: #FAFAFA;
}

body.not-found-page .header-feed-veil {
  display: none !important;
  background: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}

/* 2026-07-29: localized Faith/Future links inside the global burger sheet. */
.menu-sections {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 90px 24px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.menu-sections__link {
  display: block;
  color: #FFFFFF;
  font-family: Geologica, Inter, sans-serif;
  font-size: clamp(58px, 10vw, 146px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.065em;
  text-align: center;
  text-decoration: none;
  transform: translateY(34px);
  opacity: 0;
}

body.menu-screen-is-open .menu-sections {
  visibility: visible;
}

.menu-sections__link:hover,
.menu-sections__link:focus-visible {
  color: #C7A15A;
}

.menu-sections__link:focus-visible {
  outline: 2px solid #C7A15A;
  outline-offset: 8px;
}

@media (max-width: 620px) {
  .menu-sections {
    gap: 10px;
    padding-top: 78px;
  }

  .menu-sections__link {
    font-size: clamp(50px, 18vw, 78px);
  }
}

/* 2026-07-29: very subtle blur on the 404 WebGL motion only. */
body.not-found-page .not-found__webgl {
  inset: -4px;
  width: calc(100vw + 8px);
  height: calc(100svh + 8px);
  filter: blur(1.2px);
}

body.not-found-page .not-found__webgl canvas {
  width: calc(100vw + 8px) !important;
  height: calc(100svh + 8px) !important;
}

/* 2026-07-29: slightly stronger blur and restrained glass layer on 404 motion. */
body.not-found-page .not-found__webgl {
  inset: -6px;
  width: calc(100vw + 12px);
  height: calc(100svh + 12px);
  filter: blur(2.4px);
}

body.not-found-page .not-found__webgl canvas {
  width: calc(100vw + 12px) !important;
  height: calc(100svh + 12px) !important;
}

body.not-found-page .not-found::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(250, 250, 250, .07);
  -webkit-backdrop-filter: blur(1px) saturate(112%);
  backdrop-filter: blur(1px) saturate(112%);
}
