* { 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__name {
  overflow: hidden;
  font-size: 17px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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; }
