/* === START FONTS === */
@font-face {
  font-family: 'Old English Five';
  src: url('fonts/OldEnglishFive.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* === END FONTS === */

/* === START ROOT VARIABLES === */
:root {
  --text: #111;
  --muted: #6b7280;
  --gold: #b08d2c;
  --link: #0e2a66;
  --border: #e5e7eb;
  --blue: #0e2a66;
  --bg: #fff;

  --panel-fg: #f8fafc;
  --panel-fg-muted: #e6efff;

  --hdr-speed: 1520ms;
  --hdr-ease: cubic-bezier(.22, 1, .36, 1);

  --fade-speed: 1400ms;
  --fade-ease: cubic-bezier(.2, .7, .3, 1);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Georgia,
    'Times New Roman',
    serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block
}

/* === END ROOT VARIABLES === */

/* === START HEADER (patched to remove hairline artifact) === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  /* border-bottom removed; use pseudo-element instead for stability */
  transition: transform var(--hdr-speed) var(--hdr-ease), box-shadow 280ms ease;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  isolation: isolate;
  contain: layout paint style;
  overflow: visible;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

.header.is-hidden {
  transform: translateY(calc(-100% - 1px)) translateZ(0);
  pointer-events: none;
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.header .title {
  text-align: center;
  font-family: 'Old English Five', serif;
  font-weight: normal;
  letter-spacing: -0.07em;
  font-size: clamp(42px, 6.6vw, 92px);
  margin: 40px 12px 8px;
}

/* Mobile adjustments */
@media (max-width:760px) {
  .header .title {
    /* Shrink more aggressively on very narrow screens so it never wraps */
    font-size: clamp(30px, 8.2vw, 64px);
    letter-spacing: -0.06em;
  }

  .subtitle {
    /* Slightly bigger than before, but fluidly shrinks if space tight */
    /* Formula: grows until it would risk wrapping, then shrinks */
    font-size: clamp(15px, 3.8vw, 20px);
    white-space: nowrap;
    letter-spacing: -0.01em;
    line-height: 1.15;
  }
}

/* Ultra narrow safeguard (very small phones <=340px width) */
@media (max-width:340px) {
  .header .title {
    font-size: clamp(26px, 9.5vw, 40px);
  }

  .subtitle {
    font-size: clamp(14px, 4.2vw, 18px);
  }
}


.subtitle {
  text-align: center;
  color: var(--gold);
  font-size: clamp(1.18rem, 2.2vw, 1.85rem);
  margin: 2px 12px 18px;
}

/* NAV (auto spread) */
.nav {
  display: flex;
  justify-content: space-evenly;
  padding: 10px 16px 18px;
  flex-wrap: wrap;
  gap: 0;
}

.nav-link {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 4px 2px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--muted);
}

.nav-link[aria-current="page"] {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}

@media (min-width:780px) {
  .nav {
    flex-wrap: nowrap;
  }
}

/* === END HEADER === */

/* === START LAYOUT === */
.main {
  padding: 16px 12px 40px;
}

/* Unified content width and horizontal breathing room */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding-left: clamp(12px, 3vw, 24px);
  padding-right: clamp(12px, 3vw, 24px);
  box-sizing: border-box;
}

/* Ensure main sections relying only on .main also get consistent side padding if not wrapped in .container */
.main:not(.container) {
  padding-left: clamp(12px, 3vw, 24px);
  padding-right: clamp(12px, 3vw, 24px);
  box-sizing: border-box;
}

/* === END LAYOUT === */

/* === START EMBLEM === */
.menu-image {
  display: grid;
  place-items: center;
  margin: 10px auto 20px;
  text-align: center;
  position: relative;
}

.menu-image img {
  width: clamp(140px, 18vw, 240px);
  height: auto;
}

/* === END EMBLEM === */

/* === START PAGE CURTAIN & LAMEN ANIMATION === */
@keyframes revealCurtain {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 900;
  pointer-events: none;
  opacity: 1;
  animation: revealCurtain var(--fade-speed) var(--fade-ease) both;
}

@keyframes lamenFadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes lamenGrowTiny {
  from {
    transform: scale(0.03)
  }

  to {
    transform: scale(1)
  }
}

.menu-image img.lamen-expand {
  position: relative;
  z-index: 950;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.03);
  animation: lamenFadeIn 800ms ease-out, lamenGrowTiny 1800ms cubic-bezier(.22, 1, .36, 1);
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

/* === END PAGE CURTAIN & LAMEN ANIMATION === */

/* === START BLUE DECLARATION PANEL === */
.blue-panel {
  background: var(--blue);
  color: var(--panel-fg);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: clamp(18px, 2.8vw, 32px) clamp(16px, 3.2vw, 40px);
  margin: 16px auto 26px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
}

.blue-panel__title {
  color: var(--panel-fg);
  font-size: clamp(20px, 3vw, 38px);
  white-space: nowrap;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 4px 0 10px;
  text-align: center;
}

.blue-panel p {
  color: var(--panel-fg-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.9;
  max-width: 70ch;
  margin: .6rem auto;
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
  hyphens: auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes fadeInOnly {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.blue-panel .blue-panel__title {
  opacity: 0;
}

.blue-panel p {
  opacity: 0;
  transform: translateY(16px);
}

.blue-panel.is-in .blue-panel__title {
  animation: fadeInOnly 820ms var(--fade-ease) 60ms forwards;
}

.blue-panel.is-in p:nth-of-type(1) {
  animation: fadeUp 700ms var(--fade-ease) 260ms forwards;
}

.blue-panel.is-in p:nth-of-type(2) {
  animation: fadeUp 700ms var(--fade-ease) 420ms forwards;
}

.blue-panel.is-in p:nth-of-type(3) {
  animation: fadeUp 700ms var(--fade-ease) 580ms forwards;
}

.blue-panel--edge {
  padding-inline: clamp(12px, 2.4vw, 28px);
}

.blue-panel--edge p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* === END BLUE DECLARATION PANEL === */

/* === START CONTENT BELOW BLUE PANEL === */
.about-oto {
  padding: 8px 0;
}

.gold-heading {
  color: var(--gold);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  margin: 10px auto 18px;
  max-width: 80ch;
  text-wrap: balance;
}

.gold-heading .line {
  white-space: nowrap;
  display: inline;
}

@media (max-width:760px) {
  .gold-heading .line {
    white-space: normal;
  }
}

.about-oto .gold-heading,
.about-oto p,
.about-oto .cta-wrap {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--fade-ease), transform 600ms var(--fade-ease);
}

.about-oto.is-in .gold-heading,
.about-oto.is-in p,
.about-oto.is-in .cta-wrap {
  opacity: 1;
  transform: none;
}

.about-oto--wide {
  max-width: none;
  padding-left: clamp(8px, 3vw, 24px);
  padding-right: clamp(8px, 3vw, 24px);
}

.about-oto--wide p {
  max-width: none;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.85;
  color: #1f2937;
  text-align: justify;
  text-justify: inter-word;
}

.cta-wrap {
  text-align: center;
  margin: 28px 0 24px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc, #e8edf6);
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  margin: 16px auto 16px;
}

.cta-btn:hover {
  background: linear-gradient(180deg, #ffffff, #eaf0fa);
  border-color: #94a3b8;
}

/* === END CONTENT BELOW BLUE PANEL === */

/* === START GRADIENT PANEL (LOVE IS THE LAW) === */
.gradient-panel {
  margin: 12px auto 28px;
  padding: 18px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #000 0%, #0b1f4a 55%, #0e2a66 100%);
  max-width: 980px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--fade-ease), transform 600ms var(--fade-ease);
}

.gradient-panel.is-in {
  opacity: 1;
  transform: none;
}

.gradient-panel__inner {
  background: transparent;
  padding: 0;
}

.love-law {
  margin: 0;
  text-align: center;
  color: var(--panel-fg);
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-size: 36px;
  line-height: 1.2;
}

/* === END GRADIENT PANEL (LOVE IS THE LAW) === */

/* === START FOOTER NOTE === */
.footer-note {
  text-align: center;
  color: #6b7280;
  font-size: .95rem;
  margin: 42px auto 32px;
}

/* === END FOOTER NOTE === */

/* === START REDUCED MOTION OVERRIDES === */
@media (prefers-reduced-motion:reduce) {
  .header {
    transition: none;
  }

  body::before {
    content: none;
  }

  .menu-image img.lamen-expand {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .blue-panel .blue-panel__title,
  .blue-panel p,
  .about-oto .gold-heading,
  .about-oto p,
  .about-oto .cta-wrap,
  .gradient-panel,
  .reveal,
  .reveal-child {
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}

/* === END REDUCED MOTION OVERRIDES === */

/* === START RESOURCES BUTTONS === */
.downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 12px auto 28px;
  max-width: 460px;
}

@media (min-width:700px) {
  .downloads-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 920px;
  }
}

.dl-btn {
  --ring: rgba(14, 42, 102, .28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  min-height: 54px;
  border-radius: 12px;
  text-decoration: none;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
  line-height: 1;
  font-size: 13.5px;
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 14px rgba(0, 0, 0, .10);
  position: relative;
  overflow: hidden;
  background: #1d2939;
}

.dl-btn__label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-btn__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  opacity: .9;
}

.dl-btn--gold {
  color: #fff;
  background: linear-gradient(180deg, #c7a142 0%, #a17f2d 55%, #876820 100%);
  border-color: #7a5f1b;
}

.dl-btn--blue {
  color: #fff;
  background: linear-gradient(180deg, #132f6d 0%, #0f295f 55%, #0a1f49 100%);
  border-color: #0a1f49;
}

.dl-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 10px 20px rgba(0, 0, 0, .14);
  filter: saturate(1.04);
}

.dl-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset, 0 5px 12px rgba(0, 0, 0, .12);
}

.dl-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 6px var(--ring),
    0 8px 18px rgba(0, 0, 0, .14);
}

@media (min-width:700px) {
  .dl-btn {
    font-size: 14px;
    letter-spacing: .06em;
    padding: 15px 18px;
    min-height: 58px;
  }
}

@media (max-width:360px) {
  .dl-btn {
    font-size: 12.5px;
    letter-spacing: .05em;
    padding: 11px 12px;
    gap: 8px;
  }
}

/* === END RESOURCES BUTTONS === */

/* === START MOBILE FIX (HEADINGS, OVERFLOW, NAV) === */
@media (max-width:760px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  #oto-declaration-title,
  .blue-panel__title,
  .love-law {
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
    line-height: 1.2;
  }

  .blue-panel__title {
    font-size: clamp(20px, 6.2vw, 28px);
    letter-spacing: 0;
  }

  .love-law {
    font-size: clamp(18px, 5.4vw, 24px);
  }

  .container,
  .blue-panel,
  .gradient-panel,
  .gradient-panel__inner,
  .about-oto,
  .menu-image,
  header.header,
  nav.nav,
  footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  svg,
  video {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width:360px) {
  .blue-panel__title {
    font-size: clamp(18px, 7vw, 24px);
  }

  .love-law {
    font-size: clamp(16px, 6.4vw, 22px);
  }
}

/* === END MOBILE FIX (HEADINGS, OVERFLOW, NAV) === */

/* === START MOBILE HEADER & NAV COMPACT === */
/* === START MOBILE HEADER & NAV COMPACT (UPDATED) === */
@media (max-width:760px) {
  .header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    will-change: transform;
    transition: transform var(--hdr-speed) var(--hdr-ease), box-shadow 280ms ease;
  }

  /* Allow hiding on mobile now */
  .header.is-hidden {
    transform: translateY(calc(-100% - 1px)) translateZ(0) !important;
  }

  .subtitle {
    font-size: clamp(10px, 2.8vw, 13px);
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: 0;
    margin: 2px 8px 10px;
  }

  .nav {
    gap: 6px 14px;
    padding: 6px 8px 10px;
  }

  .nav-link {
    font-size: 14px;
    padding: 2px 0;
    letter-spacing: 0;
  }
}

@media (max-width:420px) {
  .nav {
    flex-wrap: nowrap;
    column-gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
  }
}

/* === END MOBILE HEADER & NAV COMPACT === */

/* === START RESOURCES PAGE TITLE (EARLY) === */
.resources-page-title,
h2.resources-page-title {
  text-align: center !important;
  margin: 14px 0 28px;
  font-family: inherit;
  font-size: clamp(1.75rem, 3.2vw, 2.2rem);
  font-weight: 700;
  display: block;
  width: 100%;
}

/* === END RESOURCES PAGE TITLE (EARLY) === */

/* === START MEMBERSHIP PAGE CORE === */
.membership-title {
  text-align: center;
  color: var(--gold);
  font-weight: normal;
  letter-spacing: -0.005em;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
  margin: 20px auto 28px;
  display: block;
}

.degrees-table-wrap {
  overflow-x: auto;
  margin: 20px 0 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.degrees-table {
  border-collapse: collapse;
  width: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.4;
  min-width: 640px;
}

.degrees-table th,
.degrees-table td {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.degrees-table thead th {
  background: #0e2a66;
  color: #fff;
  font-weight: 600;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 1;
}

.degrees-table td.triad {
  background: #f1f5f9;
  font-weight: 600;
  min-width: 150px;
}

.degrees-table td.outside {
  background: #fffbea;
  font-style: italic;
  font-weight: 500;
}

.full-bleed {
  width: 100vw;
  max-width: 100vw;           /* prevent over-expansion on platforms where 100vw > viewport due to scrollbars */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;     /* include padding in the 100vw box */
  overflow-x: hidden;         /* clip any horizontal overflow caused by padding/shadows */
}

.full-bleed-img {
  display: block;
  width: 100%;
  height: auto;
}

.full-bleed--dark {
  background: #000;
  color: #fff;
  padding: 34px 20px;
}

.full-bleed--dark p {
  max-width: 980px;
  margin: 0 auto 20px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.full-bleed--dark a {
  color: #ffd768;
}

.full-bleed--light {
  background: #fff;
  padding: 20px 0 20px;
}

.full-bleed-content {
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width:760px) {
  .membership-title {
    font-size: clamp(38px, 10vw, 54px);
    margin: 16px auto 22px;
  }

  .degrees-table th,
  .degrees-table td {
    padding: 8px 10px;
  }

  .full-bleed--dark {
    padding: 30px 16px;
  }

  .full-bleed--dark p {
    font-size: 15.5px;
    line-height: 1.65;
  }
}

/* === END MEMBERSHIP PAGE CORE === */

/* === START MEMBERSHIP PAGE (EXTRA) === */

/* UPDATED Membership paragraph styling: larger + justification + gold email */
/* === MEMBERSHIP PAGE FINAL OVERRIDES (UNIFY TEXT & GUTTERS) === */
.page-membership .full-bleed--dark {
  /* Keep vertical padding only (desktop 34px, mobile 30px set earlier).
     Remove horizontal so inner wrapper supplies the consistent gutter. */
  padding-left: 0;
  padding-right: 0;
}

.page-membership .full-bleed--dark .full-bleed-content {
  /* Same horizontal gutter as .container */
  padding-left: clamp(12px, 3vw, 24px);
  padding-right: clamp(12px, 3vw, 24px);
  box-sizing: border-box;
}

/* Unify paragraph typography (top white paragraphs + dark sections) */
.page-membership main>p,
.page-membership .full-bleed--dark .full-bleed-content>p {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  word-break: none;
  overflow-wrap: normal;
  margin-left: auto;
  margin-right: auto;
  max-width: 80ch;
  /* optional: keeps line length similar; remove if unwanted */
}

/* If any earlier rule still sets a smaller size on dark paragraphs, this forcibly overrides it. */
.page-membership .full-bleed--dark p {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.9;
}

/* === MEMBERSHIP EMAIL GOLD OVERRIDE === */
.page-membership .membership-email {
  color: var(--gold);
  font-weight: normal;
  text-decoration: none;
}

.page-membership .membership-email:hover,
.page-membership .membership-email:focus-visible {
  text-decoration: underline;
}

.chakras-section {
  background: #fff;
  padding: 28px 0 32px;
}

.chakras-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Desktop/tablet chakras image (unchanged here) */
.chakras-img {
  width: clamp(240px, 48%, 560px);
  max-width: 560px;
  display: block;
  margin: 0 auto;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .12));
}

@media (max-width:760px) {
  .chakras-section {
    padding: 22px 0 26px;
  }

  /* Slightly larger on mobile (was 88% / 480px) */
  .chakras-img {
    width: 92%;
    max-width: 520px;
  }
}

/* === END MEMBERSHIP PAGE (EXTRA) === */

.reveal,
.reveal-child.pre {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.in,
.reveal-child.in {
  opacity: 1;
  transform: none;
  transition: opacity 820ms cubic-bezier(.2, .7, .3, 1),
    transform 820ms cubic-bezier(.2, .7, .3, 1);
}

.full-bleed.reveal {
  transition: opacity 900ms cubic-bezier(.2, .7, .3, 1),
    transform 900ms cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-reduced-motion:reduce) {

  .reveal,
  .reveal-child {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width:760px) {
  .chakras-section {
    padding: 22px 0 26px;
  }

  .chakras-img {
    width: 88%;
  }
}

/* Desktop-only degree diagram visibility */
@media (max-width:760px) {

  .degree-diagram-wrap,
  .degree-diagram {
    display: none !important;
  }
}


/* Optional tighter max width inside dark blocks (uncomment if desired) */
/*
.page-membership .full-bleed--dark p {
  max-width: 900px;
}
*/

/* Layout shift hardening (ensure loaded on every page) */
html {
  scrollbar-gutter: stable;
}

body {
  overflow-y: scroll;
}

/* Optional: prevent any nav wrap jitter if width borderline */
.nav {
  flex-wrap: wrap;
}

@media (min-width: 760px) {
  .nav-link {
    white-space: nowrap;
  }
}

/* Constrain Home About section paragraphs after removing wide class */
.about-oto p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.85;
  text-align: justify;
  text-justify: inter-word;
  color: #1f2937;
}

/* HEADER MOBILE SAFEGUARD (place near end of file) */
@media (max-width:760px) {
  .header {
    will-change: transform;
  }

  .header.is-hidden {
    transform: translateY(calc(-100% - 1px)) translateZ(0) !important;
  }
}

/* === MOBILE HEADER: make it fixed so reveal is immediate === */
@media (max-width:760px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* already has background & transition in base */
    z-index: 1000;
  }
  /* Reserve space so content doesn't jump */
  body {
    padding-top: var(--header-h, 0px);
  }
}

/* === CONTACT PAGE: stop horizontal scroll caused by 100vw hack === */
body.page-contact {
  overflow-x: hidden;
}

.page-contact .contact-gradient {
  right: 50%;
  margin-right: -50vw;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

/* === MEMBERSHIP & EGC: stop horizontal scroll caused by full-bleed sections === */
body.page-membership,
body.page-egc {
  overflow-x: hidden;
}