:root {
  --ink: #171411;
  --muted: #6f665f;
  --paper: #fbf7f1;
  --cream: #fffdf8;
  --clay: #b36b4b;
  --clay-dark: #79442f;
  --sage: #8c9b83;
  --line: rgba(23, 20, 17, 0.12);
  --shadow: 0 24px 70px rgba(59, 42, 31, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(179, 107, 75, 0.16), transparent 34rem),
    linear-gradient(180deg, #fffaf3 0%, var(--paper) 46%, #f7efe5 100%);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(255, 250, 243, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.brand strong { display: block; font-size: clamp(21px, 2vw, 28px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }

.site-nav { justify-self: center; display: flex; gap: 8px; }
.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--ink); background: rgba(23, 20, 17, 0.06); }

.nav-toggle { display: none; }
.header-cta,
.button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-cta,
.button.primary {
  color: white;
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(23, 20, 17, 0.18);
}
.button.secondary { background: white; border: 1px solid var(--line); color: var(--ink); }
.button:hover, .header-cta:hover { transform: translateY(-2px); }
.button.full { width: 100%; font-size: 16px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .72fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding: clamp(46px, 8vw, 104px) clamp(20px, 4vw, 64px) 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--clay-dark);
  font-size: 12px;
  font-weight: 850;
}

h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -0.055em; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; }
h1 { font-size: clamp(48px, 8vw, 104px); max-width: 900px; }
h2 { font-size: clamp(34px, 5vw, 64px); }
h3 { font-size: 20px; letter-spacing: -0.035em; }

.hero-text {
  max-width: 670px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; margin: 34px 0; flex-wrap: wrap; }
.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0;
}
.quick-facts div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.48);
}
dt { color: var(--muted); font-size: 13px; }
dd { margin: 3px 0 0; font-weight: 800; }

.hero-card {
  background: rgba(255, 253, 248, .72);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 38px;
  padding: 16px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.image-wrap { position: relative; overflow: hidden; border-radius: 28px; background: #ead9c9; }
.image-wrap img { width: 100%; aspect-ratio: 4 / 4.35; object-fit: cover; }
.badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 13px;
}
.product-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 18px 8px 4px;
}
.product-summary p { margin: 7px 0 0; color: var(--muted); }
.product-summary strong { font-size: 30px; }

.trust-strip {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.trust-strip div {
  background: rgba(255,255,255,.5);
  border: 1px solid var(--line);
  padding: 20px;
}
.trust-strip div:first-child { border-radius: 24px 0 0 24px; }
.trust-strip div:last-child { border-radius: 0 24px 24px 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { color: var(--muted); margin-top: 4px; font-size: 14px; }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 4vw, 64px);
}
.split-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(28px, 5vw, 72px);
}
.feature-grid, .step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article, .step-grid article, details, .order-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.58);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-grid p, .step-grid p, .shop-copy p, .size-section p, details p { color: var(--muted); }

.shop-panel {
  display: grid;
  grid-template-columns: .9fr minmax(320px, .55fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  background: var(--ink);
  color: white;
  border-radius: 42px;
  margin-top: 42px;
}
.shop-panel .eyebrow { color: #ffc8a8; }
.shop-copy p { color: rgba(255,255,255,.68); }
.order-card { background: #fffaf3; color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.order-card .fine-print { color: var(--muted); }
.order-card label { display: block; font-weight: 750; margin-bottom: 14px; }
.order-card select, .order-card input {
  width: 100%; margin-top: 7px; padding: 14px 13px;
  border: 1px solid var(--line); border-radius: 16px;
  background: white; color: var(--ink); font: inherit;
}
.form-section-title {
  margin: 8px 0 -2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--clay-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.order-card button:disabled { opacity: .72; cursor: wait; }
.optional { color: var(--muted); font-weight: 650; font-size: 13px; }
.field-tip { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
.order-status {
  display: none;
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(179,107,75,.12);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.order-status.show { display: block; }
.order-status.error { background: rgba(142,40,40,.12); color: #7b1f1f; }
.order-total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  margin: 18px 0; padding-top: 18px;
}
.order-total span { color: var(--muted); }
.order-total small { display: block; margin-top: 5px; font-size: 13px; }
.order-total strong { font-size: 34px; }
.fine-print { font-size: 13px; margin: 14px 0 0; }

.steps > h2 { max-width: 780px; margin-bottom: 24px; }
.step-grid article span {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(179,107,75,.15);
  color: var(--clay-dark);
  font-weight: 850;
  margin-bottom: 18px;
}

.size-section {
  display: grid;
  grid-template-columns: .75fr 1fr;
  align-items: center;
  gap: 36px;
}
.size-note { margin: 22px 0 0; font-size: 13px; }
.size-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.size-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 13px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  font-weight: 800;
  text-align: center;
  transition: border-radius .18s ease, padding .18s ease;
}
.size-pill small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.faq-section { max-width: 920px; }
.faq-section h2 { margin-bottom: 22px; }
details { margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 850; font-size: 18px; }
summary::marker { color: var(--clay); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 40px clamp(20px, 4vw, 64px) 24px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 5px 0 0; }
.site-footer a { color: var(--clay-dark); font-weight: 800; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.payment-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(28,24,20,.62);
  z-index: 50;
}
.payment-modal.open { display: grid; }
.payment-modal__panel {
  position: relative;
  width: min(980px, 100%);
  height: min(760px, 92vh);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fffaf3;
  color: var(--ink);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.payment-modal__panel h2 { margin: 0; }
.payment-modal__panel p { margin: 0; color: var(--muted); }
.payment-modal__panel iframe {
  flex: 1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}
.payment-modal__close {
  position: absolute;
  right: 16px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 10px 13px;
    font-weight: 800;
  }
  .site-nav, .header-cta { display: none; }
  .site-nav.open {
    display: flex;
    position: absolute;
    left: 20px; right: 20px; top: 78px;
    padding: 14px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .hero, .split-section, .shop-panel, .size-section { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip div, .trust-strip div:first-child, .trust-strip div:last-child { border-radius: 20px; }
}

@media (max-width: 620px) {
  .hero { padding-top: 32px; }
  .quick-facts, .feature-grid, .step-grid, .trust-strip { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; text-align: center; }
  .shop-panel { border-radius: 28px; margin-left: 12px; margin-right: 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* Gurdjieff Norfolk editorial pages */
.site-nav a[aria-current="page"] { color: var(--ink); background: rgba(23, 20, 17, .07); }
.story-hero {
  position: relative; isolation: isolate;
  min-height: min(760px, calc(100vh - 81px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .46fr);
  align-items: end; gap: clamp(32px, 8vw, 110px);
  padding: clamp(72px, 11vw, 150px) max(clamp(20px, 6vw, 92px), calc((100vw - 1320px) / 2));
  color: white; background-position: center; background-size: cover; overflow: hidden;
}
.story-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17,14,12,.84), rgba(17,14,12,.5) 52%, rgba(17,14,12,.18)), linear-gradient(0deg, rgba(17,14,12,.52), transparent 55%);
}
.story-hero--home { background-image: url('/assets/legacy/home.jpg'); }
.story-hero--group { background-image: url('/assets/legacy/group.jpg'); }
.story-hero--movements { background-image: url('/assets/legacy/movements.jpg'); }
.story-hero__content { max-width: 850px; }
.story-hero .eyebrow { color: #f2bea1; }
.story-hero h1 { max-width: 820px; }
.story-hero__content > p:not(.eyebrow) { max-width: 690px; margin: 24px 0 0; color: rgba(255,255,255,.84); font-size: clamp(18px,2vw,23px); }
.button.glass { color: white; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.story-hero blockquote { margin: 0; padding: 24px 0 4px 24px; border-left: 2px solid rgba(255,255,255,.45); color: rgba(255,255,255,.92); font-family: "Playfair Display", Georgia, serif; font-size: clamp(20px,2.2vw,30px); line-height: 1.35; }
.story-hero cite, .quote-panel cite { display: block; margin-top: 18px; font-family: Inter, sans-serif; font-size: 13px; font-style: normal; font-weight: 700; letter-spacing: .06em; }
.prose-intro { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(32px,7vw,100px); align-items: start; }
.prose-copy { font-size: clamp(17px,1.6vw,20px); }
.prose-copy p { margin: 0 0 1.35em; color: var(--muted); }
.pathway-section > h2 { max-width: 800px; margin-bottom: 30px; }
.pathway-grid, .reading-grid, .feature-band { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.pathway-card, .reading-grid article, .feature-band article { padding: clamp(24px,3vw,36px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.58); }
.pathway-card { transition: transform .2s ease, box-shadow .2s ease; }
.pathway-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(59,42,31,.1); }
.pathway-card > span, .feature-band article > span { color: var(--clay-dark); font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.pathway-card h3, .feature-band h3 { margin-top: 22px; font-size: clamp(22px,2.4vw,30px); }
.pathway-card p, .feature-band p { color: var(--muted); }
.pathway-card strong { color: var(--clay-dark); font-size: 14px; }
.reading-section { display: block; max-width: 1400px; }
.reading-section > div:first-child { max-width: 720px; margin-bottom: 34px; }
.reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.reading-grid article { padding: clamp(28px, 4vw, 42px); }
.reading-grid h3 { font-size: clamp(22px, 2.4vw, 30px); }
.reading-grid ul { margin: 24px 0 0; padding-left: 22px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.reading-grid li { padding-left: 6px; }
.reading-grid li + li { margin-top: 14px; }
.quote-panel { margin-top: 40px; margin-bottom: 70px; max-width: 1080px; border-radius: 40px; background: var(--ink); color: white; }
.quote-panel .eyebrow { color: #f2bea1; }
.quote-panel blockquote { max-width: 850px; margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(30px,5vw,58px); line-height: 1.16; letter-spacing: -.035em; }
.quote-panel cite { color: rgba(255,255,255,.62); }
.quote-panel.movements-quote { max-width: 1200px; }
.feature-band { padding-top: 16px; }
.shop-link-panel { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 64px; padding-top: 54px; padding-bottom: 54px; border: 1px solid var(--line); border-radius: 36px; background: rgba(255,255,255,.52); }
.shop-link-panel > div { max-width: 760px; }
.shop-link-panel p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.shop-link-panel .button { flex: 0 0 auto; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.contact-dialog {
  width: min(620px, calc(100% - 32px));
  padding: clamp(28px, 5vw, 48px);
  border: 0;
  border-radius: 32px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.contact-dialog::backdrop { background: rgba(23,20,17,.66); backdrop-filter: blur(5px); }
.contact-dialog h2 { max-width: 520px; font-size: clamp(32px, 5vw, 50px); }
.contact-dialog > p:not(.eyebrow) { margin: 22px 0; color: var(--muted); font-size: 17px; }
.contact-dialog__close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(23,20,17,.08); color: var(--ink); font-size: 25px; cursor: pointer;
}
.contact-email { display: inline-block; color: var(--clay-dark); font-size: clamp(17px, 3vw, 22px); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

@media (orientation: portrait) {
  .story-hero--home { background-image: url('/assets/legacy/home-portrait.jpg'); }
  .story-hero--group { background-image: url('/assets/legacy/group-portrait.jpg'); }
  .story-hero--movements { background-image: url('/assets/legacy/movements-portrait.jpg'); }
}
@media (max-width: 900px) {
  .story-hero { min-height: 700px; grid-template-columns: 1fr; align-content: end; }
  .story-hero blockquote { max-width: 600px; }
  .prose-intro { grid-template-columns: 1fr; }
  .pathway-grid, .reading-grid, .feature-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .story-hero { min-height: 650px; padding-top: 90px; }
  .story-hero::before { background: linear-gradient(0deg,rgba(17,14,12,.9),rgba(17,14,12,.22)); }
  .story-hero blockquote { display: none; }
  .shop-link-panel { margin-left: 12px; margin-right: 12px; align-items: flex-start; flex-direction: column; border-radius: 28px; }
  .footer-links { align-items: flex-start; text-align: left; }
}
