/* cmsms stylesheet: Gurdjieff Group modified: Saturday, November 14, 2026 8:04:16 PM */
/* ============================================================
   Borders Gurdjieff Group — Design System
   Palette: ivory / forest-green / antique-gold
   Font: Optima LT Std (the live site's font, self-hosted in assets/fonts)
   ============================================================ */

/* The live site's only face (Optima LT Std Medium, weight 500). Normal (400)
   text also uses this face; bold is synthesised, as on the live site. */
@font-face {
  font-family: 'Optima LT Std';
  src: url('../../assets/fonts/optima-lt-std-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ivory:      #F7F3E9;
  --ivory-mid:  #EDE7D6;
  --border:     #E7DFC9;
  --ink:        #26301F;
  --ink-mid:    #3D4D32;
  --ink-light:  #5A6B4E;
  --gold:       #8A6A2F;
  --gold-light: #A07D3C;
  --white:      #FFFFFF;
  --shadow:     0 1px 3px rgba(38,48,31,.08), 0 4px 16px rgba(38,48,31,.06);
  --nav-h:      50px;   /* live site: 50px bar */
  --font:       'Optima LT Std', Optima, Candara, 'Segoe UI', Verdana, sans-serif;
  --max-w:      780px;
  --max-w-wide: 1100px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ivory) url('../../images/d100-6914fadedmore.jpg') center/cover fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .4em; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--ink); }

strong { font-weight: 600; }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(247,243,233,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.nav-logo {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo:hover { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  list-style: none;
}

.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: .25em 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: .2s;
}

/* ── Page body offset ────────────────────────────────────── */
.page-body { padding-top: var(--nav-h); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  background: linear-gradient(160deg, var(--ivory) 60%, var(--ivory-mid) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-family: var(--font);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-style: italic;
  color: var(--ink-mid);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-quote {
  max-width: 520px;
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
  text-align: left;
  font-family: var(--font);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-mid);
}
.hero-quote cite {
  display: block;
  margin-top: .5em;
  font-size: .8rem;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font);
}

/* ── Content wrapper ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ── Section spacing ─────────────────────────────────────── */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

/* ── Card grid (home page) ───────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(38,48,31,.12);
  transform: translateY(-2px);
}

.card-title {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .5rem;
}

.card-body {
  font-size: .88rem;
  color: var(--ink-light);
  line-height: 1.6;
  flex: 1;
}

.card-arrow {
  margin-top: 1rem;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ── Pull-quote blockquote ───────────────────────────────── */
blockquote {
  border-left: 2px solid var(--gold);
  margin: 2.5rem 0;
  padding: .75rem 0 .75rem 1.5rem;
  font-family: var(--font);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.6;
}

blockquote cite {
  display: block;
  margin-top: .6em;
  font-size: .78rem;
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font);
}

/* ── Inner page header ───────────────────────────────────── */
.page-header {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header .section-label { display: none; }
.page-header h1 { margin-bottom: 0.1rem; }

.page-subtitle {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B3030;
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-style: normal;
}

/* ── Prose content ───────────────────────────────────────── */
.prose {
  padding: 0.75rem 0 clamp(2.5rem, 5vw, 4rem);
}

.prose h3 {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B3030;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

/* ── Publications ────────────────────────────────────────── */
.book-featured {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.book-featured-inner {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  min-height: 240px;
}
.book-cover-img {
  flex-shrink: 0;
  width: 165px;
  display: flex;
  align-items: stretch;
}
.book-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
@media (max-width: 500px) {
  .book-featured-inner { flex-direction: column; align-items: flex-start; }
  .book-cover-img { width: 100%; max-width: 140px; }
}
.book-featured .book-title {
  font-family: var(--font);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}
.book-featured .book-meta {
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
  margin-top: .25rem;
}

/* book grid — up to 3 per row */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  margin: 1.5rem 0 0;
  list-style: none;
}
@media (max-width: 540px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
}
.book-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
}
.book-grid .book-cover img {
  width: 100%;
  max-width: 110px;
  height: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.book-grid .book-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.book-grid .book-author {
  font-size: .88rem;
  color: var(--ink-mid);
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #052841;
  border-top: 1px solid rgba(255,255,255,.18);
  padding: clamp(2rem, 4vw, 3rem) 0;
  text-align: center;
  color: rgba(255,255,255,.65);
}

.footer-brand {
  font-family: var(--font);
  font-style: italic;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 1rem;
}

.footer-contact {
  display: inline-block;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  text-decoration: underline;
  margin-bottom: 1.2rem;
}
.footer-contact:hover {
  color: #fff;
}

.footer-photo-credit {
  font-size: .72rem;
  font-style: italic;
  color: rgba(255,255,255,.4);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}
.footer-photo-credit a { color: rgba(255,255,255,.55); }

/* ── Image placeholder ───────────────────────────────────── */
.img-placeholder {
  background: var(--ivory-mid);
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--ink-light);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  /* nav collapse is handled by .nav--compact (see Responsive dropdown nav) */
  .site-nav:not(.nav--ready) .nav-links { display: none; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 500px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ── Page banner (full-width photo strip) ─────────────────────── */
.page-banner {
  width: 100%;
  overflow: hidden;
  height: 675px;   /* per-page, per-width heights: see "Photo heights" at the end */
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Portrait image (floated) ─────────────────────────────────── */
.prose-portrait {
  float: right;
  width: clamp(140px, 22%, 220px);
  margin: 0 0 1.5rem 2rem;
}
.prose-portrait img {
  width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .prose-portrait { float: none; width: 55%; max-width: 200px; margin: 0 auto 1.5rem; }
}


/* ── Book list with thumbnail covers ─────────────────────────── */
.book-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.book-list-cover {
  width: 44px;
  flex-shrink: 0;
}
.book-list-cover img {
  width: 100%;
  display: block;
  border-radius: 2px;
}


/* ── Lineage diagram (inline SVG, styled after the original site's chart) ─ */
/* White framed panel as on the original. The SVG text is real text (readable,
   selectable, zoomable). On narrow screens the panel scrolls sideways rather
   than shrinking the labels below a readable size. */
.lin {
  margin: 2rem 0 .5rem;
  background: #fff;
  border: 1px solid #b9b9b0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(.75rem, 2.5vw, 1.75rem) clamp(.5rem, 2vw, 1.25rem);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.lin svg {
  display: block;
  width: 100%;
  min-width: 620px; /* fits the 633px desktop column; narrower screens scroll */
  height: auto;
}
.lin-hint {
  display: none;
  font-size: .8rem;
  color: var(--ink-light);
  margin: .4rem 0 2.5rem;
}
@media (max-width: 768px) {
  .lin-hint { display: block; }
}

/* ── OVERRIDE: Dark nav to match original site ────────────────────────────── */
.site-nav {
  background: rgb(5, 40, 65);
  backdrop-filter: none;
  border-bottom: 1px solid rgba(0,0,0,.3);
  justify-content: center;
}
.nav-links a {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  border-bottom: none;
  padding: 0;
}
.nav-links a:hover { color: #fff; border-bottom: none; }
.nav-links a.active { color: rgb(145, 194, 118); border-bottom: none; }
.nav-hamburger { margin-left: auto; }
.nav-hamburger span { background: #fff; }

/* ── Strapline: dark navy quote box below page banner ─────────────────────── */
/* Copied from the live site: 15px above, upright green quote (19/23px, 5px
   above and below), white capitals for the author (17/20px), 19px below.
   One line of quote = 87px band, each extra line +23px, as on live. The text
   column has the live width and left edge for each page in each width band
   (--sq-c is the column the text starts in, --sq-w the text width; measured
   with private/tools/strapw2.mjs). */
.strapline {
  --sq-c: 966px;
  --sq-w: 966px;
  background: rgb(5, 40, 65);
  padding: 15px 0 19px;
}
.strapline blockquote {
  font-family: var(--font);
  font-size: 19px;
  line-height: 23px;
  font-weight: 500;
  font-style: normal;
  color: rgb(145, 194, 118);
  border: none;
  margin: 0 0 0 max(0px, calc((100% - var(--sq-c)) / 2));
  padding: 5px 0 0;
  width: var(--sq-w);
  max-width: 100%;
}
.strapline blockquote cite {
  display: block;
  font-family: var(--font);
  font-size: 17px;
  line-height: 20px;
  font-style: normal;
  color: #fff;
  margin-top: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media (min-width: 1201px) {
  .page-gurdjieff .strapline { --sq-c: 966px; --sq-w: 966px; }
  .page-the-teaching .strapline { --sq-c: 966px; --sq-w: 966px; }
  .page-21st-century .strapline { --sq-c: 966px; --sq-w: 966px; }
  .page-the-journey .strapline { --sq-c: 966px; --sq-w: 966px; }
  .page-lineage .strapline { --sq-c: 966px; --sq-w: 966px; }
  .page-publications .strapline { --sq-c: 966px; --sq-w: 966px; }
  .page-contact .strapline { --sq-c: 966px; --sq-w: 966px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .page-gurdjieff .strapline { --sq-c: 800px; --sq-w: 800px; }
  .page-the-teaching .strapline { --sq-c: 800px; --sq-w: 711px; }
  .page-21st-century .strapline { --sq-c: 798px; --sq-w: 668px; }
  .page-the-journey .strapline { --sq-c: 800px; --sq-w: 669px; }
  .page-lineage .strapline { --sq-c: 798px; --sq-w: 675px; }
  .page-publications .strapline { --sq-c: 800px; --sq-w: 675px; }
  .page-contact .strapline { --sq-c: 800px; --sq-w: 675px; }
}
@media (min-width: 961px) and (max-width: 1024px) {
  .page-gurdjieff .strapline { --sq-c: 864px; --sq-w: 864px; }
  .page-the-teaching .strapline { --sq-c: 800px; --sq-w: 675px; }
  .page-21st-century .strapline { --sq-c: 864px; --sq-w: 864px; }
  .page-the-journey .strapline { --sq-c: 864px; --sq-w: 864px; }
  .page-lineage .strapline { --sq-c: 864px; --sq-w: 864px; }
  .page-publications .strapline { --sq-c: 864px; --sq-w: 864px; }
  .page-contact .strapline { --sq-c: 864px; --sq-w: 864px; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .page-gurdjieff .strapline { --sq-c: 720px; --sq-w: 553px; }
  .page-the-teaching .strapline { --sq-c: 720px; --sq-w: 628px; }
  .page-21st-century .strapline { --sq-c: 720px; --sq-w: 629px; }
  .page-the-journey .strapline { --sq-c: 720px; --sq-w: 720px; }
  .page-lineage .strapline { --sq-c: 720px; --sq-w: 720px; }
  .page-publications .strapline { --sq-c: 720px; --sq-w: 720px; }
  .page-contact .strapline { --sq-c: 720px; --sq-w: 720px; }
}
@media (min-width: 668px) and (max-width: 768px) {
  .page-gurdjieff .strapline { --sq-c: 600px; --sq-w: 489px; }
  .page-the-teaching .strapline { --sq-c: 600px; --sq-w: 601px; }
  .page-21st-century .strapline { --sq-c: 602px; --sq-w: 601px; }
  .page-the-journey .strapline { --sq-c: 602px; --sq-w: 601px; }
  .page-lineage .strapline { --sq-c: 602px; --sq-w: 602px; }
  .page-publications .strapline { --sq-c: 602px; --sq-w: 601px; }
  .page-contact .strapline { --sq-c: 602px; --sq-w: 601px; }
}
@media (min-width: 569px) and (max-width: 667px) {
  .page-gurdjieff .strapline { --sq-c: 490px; --sq-w: 490px; }
  .page-the-teaching .strapline { --sq-c: 492px; --sq-w: 490px; }
  .page-21st-century .strapline { --sq-c: 490px; --sq-w: 490px; }
  .page-the-journey .strapline { --sq-c: 490px; --sq-w: 490px; }
  .page-lineage .strapline { --sq-c: 492px; --sq-w: 491px; }
  .page-publications .strapline { --sq-c: 492px; --sq-w: 491px; }
  .page-contact .strapline { --sq-c: 492px; --sq-w: 491px; }
}
@media (min-width: 541px) and (max-width: 568px) {
  .page-gurdjieff .strapline { --sq-c: 488px; --sq-w: 488px; }
  .page-the-teaching .strapline { --sq-c: 490px; --sq-w: 490px; }
  .page-21st-century .strapline { --sq-c: 490px; --sq-w: 490px; }
  .page-the-journey .strapline { --sq-c: 490px; --sq-w: 490px; }
  .page-lineage .strapline { --sq-c: 492px; --sq-w: 491px; }
  .page-publications .strapline { --sq-c: 488px; --sq-w: 488px; }
  .page-contact .strapline { --sq-c: 488px; --sq-w: 488px; }
}
@media (min-width: 459px) and (max-width: 540px) {
  .page-gurdjieff .strapline { --sq-c: 420px; --sq-w: 420px; }
  .page-the-teaching .strapline { --sq-c: 418px; --sq-w: 419px; }
  .page-21st-century .strapline { --sq-c: 420px; --sq-w: 368px; }
  .page-the-journey .strapline { --sq-c: 420px; --sq-w: 344px; }
  .page-lineage .strapline { --sq-c: 420px; --sq-w: 420px; }
  .page-publications .strapline { --sq-c: 420px; --sq-w: 420px; }
  .page-contact .strapline { --sq-c: 420px; --sq-w: 420px; }
}
@media (min-width: 376px) and (max-width: 458px) {
  .page-gurdjieff .strapline { --sq-c: 338px; --sq-w: 320px; }
  .page-the-teaching .strapline { --sq-c: 338px; --sq-w: 338px; }
  .page-21st-century .strapline { --sq-c: 338px; --sq-w: 338px; }
  .page-the-journey .strapline { --sq-c: 338px; --sq-w: 338px; }
  .page-lineage .strapline { --sq-c: 338px; --sq-w: 338px; }
  .page-publications .strapline { --sq-c: 338px; --sq-w: 338px; }
  .page-contact .strapline { --sq-c: 338px; --sq-w: 338px; }
}
@media (min-width: 321px) and (max-width: 375px) {
  .page-gurdjieff .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-the-teaching .strapline { --sq-c: 282px; --sq-w: 280px; }
  .page-21st-century .strapline { --sq-c: 282px; --sq-w: 280px; }
  .page-the-journey .strapline { --sq-c: 282px; --sq-w: 290px; }
  .page-lineage .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-publications .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-contact .strapline { --sq-c: 280px; --sq-w: 280px; }
}
@media (max-width: 320px) {
  .page-gurdjieff .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-the-teaching .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-21st-century .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-the-journey .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-lineage .strapline { --sq-c: 280px; --sq-w: 280px; }
  .page-publications .strapline { --sq-c: 280px; --sq-w: 274px; }
  .page-contact .strapline { --sq-c: 280px; --sq-w: 280px; }
}

/* ── Photo hero (home page) ───────────────────────────────────────────────── */
/* Matches the original site: the photo box keeps the original 1400x650
   proportion (so the same part of the picture shows at every desktop width,
   no extra cropping), no darkening overlay, and the text sits on the left
   edge of the original 960px layout. */
.hero.hero--photo {
  background-image: none; /* overridden by inline style */
  background-color: #1a2d1a;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  /* 1400:650 = 46.43vw; not aspect-ratio + min-height, which forces a ~900px
     min-width on phones */
  --hero-h: 650px; /* per-width heights: see "Photo heights" at the end */
  height: var(--hero-h);
  position: relative;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  border-bottom: none;
  padding: clamp(1.75rem, 2.8vw, 2.5rem) 0 2rem;
}
.hero.hero--photo .container,
.home-about .container {
  width: 100%;
  max-width: calc(960px + 2 * clamp(1.25rem, 4vw, 2rem));
}
.hero.hero--photo h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  max-width: 680px;
  margin-bottom: clamp(1rem, 2.4vw, 2.1rem);
  text-shadow: 0 0 45px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.25);
}
.hero.hero--photo .hero-lead {
  font-family: var(--font);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.75vw, 1.5rem);
  line-height: 1.5;
  color: #fff;
  max-width: 490px;
  margin-bottom: 0;
  text-shadow: 0 0 45px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.35);
}

/* ── Home: "About us" (part of the home page, as on the original site) ───── */
.home-about {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.home-about h2 {
  margin-bottom: .6rem;
}
.home-about p { max-width: 640px; }

/* ── Responsive dropdown nav ──────────────────────────────────────────────── */
/* JS (page template) adds .nav--ready, and .nav--compact when the links no
   longer fit on one line; .nav--open shows the dropdown. Without JS the old
   layout is kept. */
.site-nav.nav--ready .nav-links { flex-wrap: nowrap; }
.site-nav.nav--ready .nav-links a { white-space: nowrap; }

.nav-hamburger {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: -11px;
}
.nav-hamburger span { transition: transform .25s ease, opacity .2s ease; }
.site-nav.nav--open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav.nav--open .nav-hamburger span:nth-child(2) { opacity: 0; }
.site-nav.nav--open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav.nav--compact { justify-content: flex-end; }
.site-nav.nav--compact .nav-hamburger { display: flex; }
.site-nav.nav--compact .nav-links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: .25rem 0 .75rem;
  background: rgb(5, 40, 65);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.site-nav.nav--compact.nav--open .nav-links {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.site-nav.nav--compact .nav-links li + li { border-top: 1px solid rgba(255,255,255,.07); }
.site-nav.nav--compact .nav-links a {
  display: block;
  padding: 15px clamp(1.25rem, 4vw, 2.5rem);
  font-size: 13px;
  letter-spacing: 1.5px;
}
.site-nav.nav--compact .nav-links a:hover { background: rgba(255,255,255,.05); }

.nav-links a:focus-visible,
.nav-hamburger:focus-visible { outline: 2px solid rgb(145, 194, 118); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .site-nav.nav--compact .nav-links,
  .nav-hamburger span { transition: none; }
}

/* ── Photo heights (copied from the live site) ───────────────────────────── */
/* The live (Adobe Muse) site gives each photo a fixed height in each of its
   width bands, the same at any window height. These rules copy those heights
   exactly, so each photo shows the same part of the picture as on the live
   site. Measured with private/tools/bands-live.mjs; body has a page-<alias>
   class (page template). Change the numbers here, not elsewhere. */
@media (min-width: 1201px) {
  .hero.hero--photo { --hero-h: 650px; }
  .page-gurdjieff .page-banner { height: 748px; }
  .page-the-teaching .page-banner { height: 620px; }
  .page-21st-century .page-banner { height: 675px; }
  .page-the-journey .page-banner { height: 667px; }
  .page-lineage .page-banner { height: 675px; }
  .page-publications .page-banner { height: 690px; }
  .page-contact .page-banner { height: 671px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero.hero--photo { --hero-h: 650px; }
  .page-gurdjieff .page-banner { height: 675px; }
  .page-the-teaching .page-banner { height: 620px; }
  .page-21st-century .page-banner { height: 675px; }
  .page-the-journey .page-banner { height: 667px; }
  .page-lineage .page-banner { height: 675px; }
  .page-publications .page-banner { height: 685px; }
  .page-contact .page-banner { height: 671px; }
}
@media (min-width: 961px) and (max-width: 1024px) {
  .hero.hero--photo { --hero-h: 570px; }
  .page-gurdjieff .page-banner { height: 675px; }
  .page-the-teaching .page-banner { height: 620px; }
  .page-21st-century .page-banner { height: 675px; }
  .page-the-journey .page-banner { height: 667px; }
  .page-lineage .page-banner { height: 675px; }
  .page-publications .page-banner { height: 685px; }
  .page-contact .page-banner { height: 671px; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .hero.hero--photo { --hero-h: 600px; }
  .page-gurdjieff .page-banner { height: 535px; }
  .page-the-teaching .page-banner { height: 525px; }
  .page-21st-century .page-banner { height: 570px; }
  .page-the-journey .page-banner { height: 480px; }
  .page-lineage .page-banner { height: 550px; }
  .page-publications .page-banner { height: 550px; }
  .page-contact .page-banner { height: 540px; }
}
@media (min-width: 668px) and (max-width: 768px) {
  .hero.hero--photo { --hero-h: 450px; }
  .page-gurdjieff .page-banner { height: 435px; }
  .page-the-teaching .page-banner { height: 435px; }
  .page-21st-century .page-banner { height: 435px; }
  .page-the-journey .page-banner { height: 435px; }
  .page-lineage .page-banner { height: 450px; }
  .page-publications .page-banner { height: 400px; }
  .page-contact .page-banner { height: 450px; }
}
@media (min-width: 569px) and (max-width: 667px) {
  .hero.hero--photo { --hero-h: 416px; }
  .page-gurdjieff .page-banner { height: 370px; }
  .page-the-teaching .page-banner { height: 350px; }
  .page-21st-century .page-banner { height: 375px; }
  .page-the-journey .page-banner { height: 450px; }
  .page-lineage .page-banner { height: 360px; }
  .page-publications .page-banner { height: 350px; }
  .page-contact .page-banner { height: 375px; }
}
@media (min-width: 541px) and (max-width: 568px) {
  .hero.hero--photo { --hero-h: 370px; }
  .page-gurdjieff .page-banner { height: 370px; }
  .page-the-teaching .page-banner { height: 350px; }
  .page-21st-century .page-banner { height: 375px; }
  .page-the-journey .page-banner { height: 450px; }
  .page-lineage .page-banner { height: 360px; }
  .page-publications .page-banner { height: 350px; }
  .page-contact .page-banner { height: 375px; }
}
@media (min-width: 459px) and (max-width: 540px) {
  .hero.hero--photo { --hero-h: 330px; --hero-band: 413px; }
  .page-gurdjieff .page-banner { height: 290px; }
  .page-the-teaching .page-banner { height: 301px; }
  .page-21st-century .page-banner { height: 300px; }
  .page-the-journey .page-banner { height: 250px; }
  .page-lineage .page-banner { height: 300px; }
  .page-publications .page-banner { height: 310px; }
  .page-contact .page-banner { height: 300px; }
}
@media (min-width: 376px) and (max-width: 458px) {
  .hero.hero--photo { --hero-h: 300px; --hero-band: 396px; }
  .page-gurdjieff .page-banner { height: 276px; }
  .page-the-teaching .page-banner { height: 275px; }
  .page-21st-century .page-banner { height: 300px; }
  .page-the-journey .page-banner { height: 250px; }
  .page-lineage .page-banner { height: 300px; }
  .page-publications .page-banner { height: 250px; }
  .page-contact .page-banner { height: 300px; }
}
@media (min-width: 321px) and (max-width: 375px) {
  .hero.hero--photo { --hero-h: 280px; --hero-band: 324px; }
  .page-gurdjieff .page-banner { height: 220px; }
  .page-the-teaching .page-banner { height: 220px; }
  .page-21st-century .page-banner { height: 220px; }
  .page-the-journey .page-banner { height: 220px; }
  .page-lineage .page-banner { height: 220px; }
  .page-publications .page-banner { height: 220px; }
  .page-contact .page-banner { height: 220px; }
}
@media (max-width: 320px) {
  .hero.hero--photo { --hero-h: 244px; --hero-band: 220px; }
  .page-gurdjieff .page-banner { height: 200px; }
  .page-the-teaching .page-banner { height: 200px; }
  .page-21st-century .page-banner { height: 200px; }
  .page-the-journey .page-banner { height: 200px; }
  .page-lineage .page-banner { height: 200px; }
  .page-publications .page-banner { height: 210px; }
  .page-contact .page-banner { height: 200px; }
}

/* Phones (540px and narrower): as on the live site, only the title sits on
   the photo; the subtext moves to a navy band below it. The photo and the
   band keep the live heights (--hero-h, --hero-band). */
@media (max-width: 540px) {
  .hero.hero--photo {
    /* photo + navy band, both at the live site's heights (--hero-band) */
    height: calc(var(--hero-h) + var(--hero-band));
    padding: 0;
    background-size: auto var(--hero-h);
    background-position: left top;
    background-color: rgb(5, 40, 65);
  }
  .hero.hero--photo h1 {
    min-height: var(--hero-h);
    margin: 0;
    padding-top: 1.5rem;
  }
  .hero.hero--photo .hero-lead {
    padding-top: 1.75rem;
    text-shadow: none;
  }
}

/* ── Inner pages: heading and text column (copied from the live site) ───── */
/* The live site's heading and text start at the same left edge as the quote
   above them: a centred column of --col-c px, with text --col-t px wide.
   Measured with private/tools/col.mjs. Home is not affected. */
:root { --col-c: 966px; --col-t: 675px; }
.page-header .container,
.prose .container {
  max-width: none;
  width: var(--col-t);
  max-width: calc(100% - 2 * max(0px, (100% - var(--col-c)) / 2));
  margin-left: max(0px, calc((100% - var(--col-c)) / 2));
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 1201px) { :root { --col-c: 966px; --col-t: 675px; } }
@media (min-width: 1025px) and (max-width: 1200px) { :root { --col-c: 800px; --col-t: 675px; } }
@media (min-width: 961px) and (max-width: 1024px) { :root { --col-c: 864px; --col-t: 675px; } }
@media (min-width: 769px) and (max-width: 960px) { :root { --col-c: 720px; --col-t: 720px; } }
@media (min-width: 668px) and (max-width: 768px) { :root { --col-c: 602px; --col-t: 602px; } }
@media (min-width: 569px) and (max-width: 667px) { :root { --col-c: 490px; --col-t: 490px; } }
@media (min-width: 541px) and (max-width: 568px) { :root { --col-c: 488px; --col-t: 488px; } }
@media (min-width: 459px) and (max-width: 540px) { :root { --col-c: 420px; --col-t: 420px; } }
@media (min-width: 376px) and (max-width: 458px) { :root { --col-c: 338px; --col-t: 338px; } }
@media (min-width: 321px) and (max-width: 375px) { :root { --col-c: 280px; --col-t: 280px; } }
@media (max-width: 320px) { :root { --col-c: 280px; --col-t: 280px; } }

/* Desktop menu (not collapsed to ☰): as on the live site, the menu starts at
   the text column's left edge, so "Home" lines up with the page text. */
.site-nav.nav--ready:not(.nav--compact) {
  justify-content: flex-start;
  padding-left: max(0px, calc((100% - var(--col-c)) / 2));
  padding-right: 16px;
}
/* Home page: the hero text and "About us" start at the same edge on desktop. */
@media (min-width: 769px) {
  .hero.hero--photo .container,
  .home-about .container {
    --col-l: max(0px, calc((100% - var(--col-c)) / 2));
    max-width: none;
    width: min(960px, calc(100% - var(--col-l) - 2rem));
    margin-left: var(--col-l);
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Contact: Gurdjieff portrait (copied from the live site) ─────────────── */
/* 668px and wider: text column (--ct-t) with the photo in a column to its
   right (--ct-g gap, --ct-pw x --ct-ph), top-aligned with the first
   paragraph. Narrower: the photo is centred below the text. Sizes are the
   live ones for each width band (private/tools/contact-bands.mjs). */
.contact-portrait { margin: 0; }
.contact-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
@media (min-width: 668px) {
  .page-contact .prose .container {
    display: grid;
    grid-template-columns: var(--ct-t) var(--ct-pw);
    column-gap: var(--ct-g);
    align-items: start;
    width: auto;
    max-width: none;
  }
  .page-contact .prose .container > * { grid-column: 1; }
  .page-contact .prose .container > .contact-portrait {
    grid-column: 2;
    grid-row: 1 / span 4;
    height: var(--ct-ph);
    margin-top: -2px;
  }
}
@media (max-width: 667px) {
  .contact-portrait {
    width: var(--ct-pw);
    max-width: 100%;
    height: var(--ct-ph);
    margin: 2rem auto 0;
  }
}
@media (min-width: 1201px) { .page-contact { --ct-t: 561px; --ct-g: 97px; --ct-pw: 225px; --ct-ph: 136px; } }
@media (min-width: 1025px) and (max-width: 1200px) { .page-contact { --ct-t: 479px; --ct-g: 96px; --ct-pw: 225px; --ct-ph: 136px; } }
@media (min-width: 961px) and (max-width: 1024px) { .page-contact { --ct-t: 479px; --ct-g: 79px; --ct-pw: 269px; --ct-ph: 161px; } }
@media (min-width: 769px) and (max-width: 960px) { .page-contact { --ct-t: 457px; --ct-g: 39px; --ct-pw: 224px; --ct-ph: 136px; } }
@media (min-width: 668px) and (max-width: 768px) { .page-contact { --ct-t: 343px; --ct-g: 51px; --ct-pw: 204px; --ct-ph: 136px; } }
@media (min-width: 569px) and (max-width: 667px) { .page-contact { --ct-pw: 223px; --ct-ph: 136px; } }
@media (min-width: 541px) and (max-width: 568px) { .page-contact { --ct-pw: 223px; --ct-ph: 136px; } }
@media (min-width: 459px) and (max-width: 540px) { .page-contact { --ct-pw: 258px; --ct-ph: 171px; } }
@media (min-width: 376px) and (max-width: 458px) { .page-contact { --ct-pw: 310px; --ct-ph: 197px; } }
@media (min-width: 321px) and (max-width: 375px) { .page-contact { --ct-pw: 260px; --ct-ph: 199px; } }
@media (max-width: 320px) { .page-contact { --ct-pw: 280px; --ct-ph: 173px; } }
