.om-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  height: var(--header-h);
  background: var(--warm-white) url("/images/menu/header-bg-flat2.png") no-repeat
    center center;
  background-size: cover;
  border-bottom: 1px solid transparent;
}
.om-header.is-stuck {
  border-bottom-color: rgba(48, 40, 34, 0.08);
}
.om-header__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
/* Header contents stay above the curved dropdown backdrop */
.om-logo,
.om-menu-toggle,
.om-tools {
  position: relative;
  z-index: 3;
}
.om-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.om-logo img {
  width: auto;
  height: 46px;
  display: block;
}
.om-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  /* The curved backdrop and the dropdown columns share one width, so they keep
     their proportions at every viewport. Six columns fill the middle ~63% of
     the curve, where it is thick enough to carry the text. */
  --om-mega-w: min(1320px, 94vw);
  --om-col-w: clamp(120px, calc(var(--om-mega-w) * 0.106), 142px);
  --om-lens-h: 340px;
}
.om-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}
.om-nav a {
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 11px;
  color: var(--text-main);
}
.om-nav a:hover { color: var(--crimson); }
/* The columns are positioned against the menu list, not their own item */
.om-nav > ul { position: relative; }
.om-nav > ul > li { position: static; }
.om-nav > ul > li > a { position: relative; }
/* Hairline dividing the main menu items */
.om-nav > ul > li + li > a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 13px;
  background: rgba(48, 40, 34, 0.16);
}
/* Curved backdrop from johndavidsatsang.international, used as the dropdown
   background. top:50% + the negative margin puts its top edge level with the
   top of the header. */
.om-nav::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: calc(var(--header-h) / -2);
  left: 50%;
  width: var(--om-mega-w);
  height: var(--om-lens-h);
  transform: translateX(-50%) translateY(10px) scale(0.985);
  background: url("/images/menu/dropdown-background.png") no-repeat top center;
  background-size: 100% 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.35s ease, visibility 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.om-nav:has(> ul:hover)::after,
.om-nav:has(> ul:focus-within)::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
/* Each section is a column in a row centred under the menu */
.om-nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: calc(50% + (var(--om-col, 0) - 3) * var(--om-col-w));
  width: var(--om-col-w);
  /* The curved header backdrop is the panel background, as on the live site */
  background: transparent;
  border: 0;
  padding: 10px 0 12px;
  list-style: none;
  margin: 0;
}
/* Opening one section opens them all */
.om-nav > ul:hover .sub,
.om-nav > ul:focus-within .sub { display: block; }
/* Subtle line dividing the sections */
.om-nav .sub:not([data-col="0"])::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 1px;
  height: 178px;
  background: linear-gradient(
    to bottom,
    rgba(48, 40, 34, 0) 0%,
    rgba(48, 40, 34, 0.16) 12%,
    rgba(48, 40, 34, 0.16) 74%,
    rgba(48, 40, 34, 0) 100%
  );
}
.om-nav .sub a {
  display: block;
  position: relative;
  padding: 2px 6px 2px 20px;
  letter-spacing: 0.04em;
  font-size: 13px;
  line-height: 1.4;
  text-transform: none;
  font-weight: 600;
}
/* Red dot marking the hovered submenu item */
.om-nav .sub a::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-red);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.om-nav .sub a:hover::before,
.om-nav .sub a:focus-visible::before,
.om-nav .sub a[aria-current]::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
/* Narrower windows wrap the labels, so the lists are set tighter to stay
   inside the curve instead of the curve growing down over the hero */
@media (max-width: 1400px) {
  .om-nav .sub a {
    font-size: 12px;
    line-height: 1.32;
    padding: 1px 4px 1px 17px;
    letter-spacing: 0.02em;
  }
  .om-nav .sub a::before { left: 3px; width: 5px; height: 5px; }
  .om-nav .sub:not([data-col="0"])::before { height: 150px; }
}
@media (max-width: 1240px) {
  .om-nav { --om-lens-h: 310px; }
}
@media (max-width: 1120px) {
  .om-nav { --om-col-w: 112px; --om-lens-h: 298px; }
  .om-nav .sub a { font-size: 11.5px; line-height: 1.28; padding: 0 3px 0 15px; }
  .om-nav .sub:not([data-col="0"])::before { height: 128px; }
}
.om-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.om-icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.om-lang {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  cursor: pointer;
}
.om-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.om-menu-toggle span,
.om-menu-toggle span::before,
.om-menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-main);
  position: relative;
}
.om-menu-toggle span::before,
.om-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.om-menu-toggle span::before { top: -6px; }
.om-menu-toggle span::after { top: 6px; }

.om-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  /* 16:9 of the viewport width, capped at the max content width (1280 x 720)
     so the band never grows into a full-screen hero. */
  min-height: clamp(540px, 56.25vw, 720px);
  background: var(--warm-white);
  position: relative;
}
.om-hero__slider {
  position: relative;
  overflow: hidden;
  background: var(--sand-light);
}
.om-hero__slides {
  position: absolute;
  inset: 0;
  -webkit-mask-image: url("/images/brushes/hero-mask.svg");
  mask-image: url("/images/brushes/hero-mask.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.om-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 800ms ease;
}
.om-hero__slide.is-active { opacity: 1; }
.om-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
}
.om-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(252, 250, 246, 0.82);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(48, 40, 34, 0.18);
  transition: background 200ms ease;
}
.om-hero__arrow:hover { background: var(--white); }
.om-hero__arrow--prev { left: 18px; }
.om-hero__arrow--next { right: 18px; }
.om-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.om-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(252, 250, 246, 0.62);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(48, 40, 34, 0.45);
  transition: background 200ms ease;
}
.om-hero__dot:hover { background: var(--white); }
.om-hero__dot.is-active { background: var(--yellow); }
.om-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 8% 48px 6%;
}
.om-hero__portrait {
  width: clamp(148px, 13.5vw, 196px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 50%;
}
.om-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  display: block;
}
.om-hero__quote {
  margin: 20px 0 0;
  max-width: 38rem;
}
.om-hero__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-main);
}
.om-hero__quote footer {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
}
.om-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  margin-top: 26px;
}

.om-teach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.om-teach a {
  text-decoration: none;
  display: block;
}
.om-teach .om-media { aspect-ratio: 4 / 5; }
.om-teach .om-media img { border: 1px solid rgba(48, 40, 34, 0.06); }
.om-teach p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 15px;
}

.om-quote {
  text-align: center;
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}
.om-quote__mark {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 46% 54% 48% 52%;
  background: var(--yellow);
  opacity: 0.22;
  left: 12%;
  top: 18%;
  transform: rotate(-8deg);
}
.om-quote blockquote {
  margin: 0 auto;
  max-width: 820px;
  position: relative;
}
.om-quote p {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 54px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}
.om-quote footer {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
}

.om-comm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.om-comm .om-media { aspect-ratio: 16 / 11; }
.om-comm h3 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  margin: 18px 0 6px;
}
.om-place {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}
.om-comm p { color: var(--text-soft); max-width: 28rem; }
.om-comm .om-btn { margin-top: 16px; }

.om-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.om-video a { text-decoration: none; display: block; }
.om-video .om-media { aspect-ratio: 16 / 10; }
.om-video h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 14px 0 6px;
  font-weight: 700;
}
.om-video p { color: var(--text-soft); font-size: 15px; }
.om-video-cta { margin-top: 40px; }

/* The four featured slots from Open Sky Events, as cards */
.om-events {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
  align-items: stretch;
}
.om-event {
  display: flex;
  flex-direction: column;
  background: var(--warm-white);
  border: 1px solid rgba(48, 40, 34, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(80, 50, 30, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.om-event:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(80, 50, 30, 0.11);
}
.om-event__media {
  aspect-ratio: 16 / 10;
  background: var(--sand-light);
}
.om-event:hover .om-event__media img { transform: scale(1.03); }
.om-event__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
  text-align: center;
}
.om-event__kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 10px;
}
.om-event h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.16;
  margin: 0 0 8px;
  text-wrap: balance;
}
.om-event__when,
.om-event__place {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.om-event__desc {
  margin: 12px 0 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.om-event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}
.om-event__more {
  color: var(--crimson);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.om-event__more:hover { color: var(--crimson-dark); text-decoration: underline; }
.om-event--empty { justify-content: center; }
.om-event--empty .om-event__body {
  justify-content: center;
  padding: 44px 22px;
}
.om-event--empty .om-event__desc { margin-bottom: 0; }

.om-masters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}
.om-master { text-decoration: none; display: block; }
.om-master .om-media { aspect-ratio: 3 / 4; }
.om-master--lead .om-media { aspect-ratio: 4 / 5; }
.om-master h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 12px 0 0;
}
.om-master--lead h3 { font-size: 28px; }

.om-books {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  align-items: end;
}
.om-book { text-decoration: none; text-align: center; }
.om-book img {
  margin: 0 auto 16px;
  max-height: 320px;
  width: auto;
  box-shadow: none;
}
.om-book h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0;
}
.om-book p { color: var(--text-soft); font-size: 15px; margin-top: 6px; }

.om-news {
  background: var(--parchment);
  position: relative;
}
.om-news__inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.om-news blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-style: italic;
  line-height: 1.2;
}
.om-news cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  color: var(--text-soft);
  font-family: var(--sans);
}

.om-footer {
  background: var(--warm-white);
  padding: 80px 0 28px;
  border-top: 1px solid rgba(48, 40, 34, 0.08);
}
.om-footer__grid {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px;
}
.om-footer h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.om-footer a {
  display: block;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  padding: 3px 0;
}
.om-footer a:hover { color: var(--crimson); }
.om-social {
  width: min(var(--max), calc(100% - 48px));
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
}
.om-footer .om-social a {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(48, 40, 34, 0.14);
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.om-footer .om-social a:hover {
  color: #fff;
  background: var(--crimson);
  border-color: var(--crimson);
}
.om-social svg { width: 20px; height: 20px; display: block; }
.om-footer__base {
  width: min(var(--max), calc(100% - 48px));
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(48, 40, 34, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 13px;
}
.om-footer__base a {
  display: inline;
  padding: 0 8px 0 0;
  color: var(--text-light);
}

.om-search {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(252, 250, 246, 0.96);
  z-index: 120000;
  padding: 18vh 24px 24px;
}
.om-search.is-open { display: block; }
.om-search form {
  width: min(640px, 100%);
  margin: 0 auto;
  border-bottom: 1px solid var(--text-main);
  display: flex;
}
.om-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 36px;
  padding: 10px 0;
  outline: none;
}
.om-search button {
  border: 0;
  background: transparent;
  color: var(--crimson);
  cursor: pointer;
}
