/* =====================================================
   Maz Ghodsian, D.O. — Shared design system
   ===================================================== */

:root {
  --cream: #ECE8DD;
  --paper: #F5F1E6;
  --bone:  #DBD5C5;
  --ink:   #121A14;
  --ink-2: #3D4A41;
  --ink-3: #818A80;
  --clay:  #284A38;       /* deep forest — primary accent */
  --clay-deep: #143025;   /* deeper forest — hover */
  --sage:  #7C8C72;
  --gold:  #A88649;       /* warm brass — secondary accent */
  --rule:  rgba(18,26,20,0.12);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --measure: 68ch;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

/* Subtle paper grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--clay); color: var(--paper); }

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

/* ====== Typography ====== */
.display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--clay);
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
}
.lede {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 100;
  font-weight: 350;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 52ch;
}
.num {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 300;
  color: var(--clay);
}

/* ====== Layout helpers ====== */
.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.hairline { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ====== Top ribbon ====== */
.ribbon {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.ribbon .wrap {
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  padding-top: 10px; padding-bottom: 10px;
}
.ribbon-left { display: flex; gap: 22px; align-items: center; }
.ribbon-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(248,244,235,0.7);
}
.ribbon-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:0.4 } 50% { opacity:1 } }
.ribbon a { border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .2s; }
.ribbon a:hover { border-color: var(--gold); }
@media (max-width: 720px) {
  .ribbon-left .ribbon-tag:nth-child(2) { display: none; }
  .ribbon { font-size: 11px; }
}

/* ====== Navigation ====== */
nav.primary {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,232,221,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
nav.primary .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}
.brand .dot { color: var(--clay); font-style: italic; margin: 0 2px 0 0; }
.brand > span:not(.dot) {
  font-size: 15px;
  letter-spacing: 0.01em;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .brand { font-size: 20px; }
  .brand > span:not(.dot) { font-size: 13px; }
  .brand small { font-size: 9.5px; letter-spacing: 0.13em; }
}
@media (max-width: 720px) {
  .brand { font-size: 18px; white-space: normal; }
  .brand > span:not(.dot) { font-size: 12px; }
}
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links > a, .nav-links .nav-item > button {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  transition: color .2s;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0;
}
.nav-links a:hover, .nav-links .nav-item > button:hover { color: var(--clay); }
.nav-links a[aria-current="page"] { color: var(--clay); }

/* Dropdown for "Conditions" */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px); left: -20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 0;
  min-width: 280px;
  box-shadow: 0 22px 50px -22px rgba(18,26,20,0.20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s;
  z-index: 60;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--ink);
  transition: padding .2s, color .2s;
}
.nav-dropdown a:hover { padding-left: 30px; color: var(--clay); }

.nav-cta {
  font-size: 13px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--clay-deep); transform: translateY(-1px); }
@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ====== Inner-page hero ====== */
.page-hero {
  padding-top: clamp(60px, 7vw, 110px);
  padding-bottom: clamp(60px, 7vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content:"";
  position: absolute;
  top: -10%; right: -15%;
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(closest-side, rgba(40,74,56,0.14), rgba(40,74,56,0) 70%);
  z-index: 0;
  pointer-events: none;
}
.page-hero .wrap, .page-hero .wrap-narrow { position: relative; z-index: 1; }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
}
.page-hero-eyebrow span.divider { width: 28px; height: 1px; background: var(--ink-2); }
.page-hero h1 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(46px, 6vw, 96px);
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin-bottom: 28px;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--clay);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.page-hero .lede { margin-bottom: 36px; }
.page-hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* Breadcrumb */
.crumbs {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--ink-3); transition: color .2s; }
.crumbs a:hover { color: var(--clay); }
.crumbs .sep { color: var(--ink-3); opacity: 0.5; }
.crumbs .here { color: var(--ink); }

/* ====== Section scaffold ====== */
section.block {
  padding-top: clamp(72px, 9vw, 130px);
  padding-bottom: clamp(72px, 9vw, 130px);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 88px);
  align-items: start;
}
.section-head .num {
  font-size: 38px;
  line-height: 1;
  padding-top: 8px;
}
.section-head h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--clay);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.section-head p {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 100;
  font-weight: 350;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head .num { font-size: 28px; }
}

/* ====== Editorial prose ====== */
.prose {
  max-width: 64ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.prose h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 56px 0 20px;
}
.prose h2 em { font-style: italic; color: var(--clay); }
.prose h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 14px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol {
  margin: 14px 0 22px;
  padding-left: 22px;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .drop {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  float: left;
  font-size: 64px;
  line-height: 0.85;
  padding: 6px 12px 0 0;
  color: var(--clay);
  font-weight: 400;
}
.prose blockquote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 100;
  font-weight: 350;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--clay);
  padding-left: 22px;
  margin: 32px 0;
  max-width: 50ch;
}

/* Two-col content layout used on inner pages */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

/* Side card — "at a glance" pattern */
.aside-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px 28px 24px;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(245,241,230,0.55) 100%);
  position: relative;
  position: sticky;
  top: 100px;
}
.aside-card .badge {
  position: absolute; top: -14px; left: 24px;
  background: var(--cream);
  padding: 4px 12px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clay);
  font-weight: 500;
}
.aside-list { list-style: none; }
.aside-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  align-items: baseline;
}
.aside-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-list .k {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--clay);
  font-variation-settings: "opsz" 14;
}
.aside-list .v {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.aside-list .v small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 2px;
}
.aside-card .actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aside-card .actions a {
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  transition: color .2s;
}
.aside-card .actions a:hover { color: var(--clay); }

/* ====== Cross-link tiles ====== */
.related-block { background: var(--paper); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }
.related {
  display: block;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 28px 26px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.related:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -28px rgba(18,26,20,0.30);
}
.related .num-mini {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--clay);
  margin-bottom: 16px;
  display: block;
}
.related h4 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.related p {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.55;
}
.related .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  transition: gap .2s;
}
.related:hover .more { gap: 10px; color: var(--clay); }

/* ====== CTA ribbon (used at bottom of inner pages) ====== */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 7vw, 110px) 0;
}
.cta-band-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) { .cta-band-grid { grid-template-columns: 1fr; gap: 32px; } }
.cta-band h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 22px;
}
.cta-band h2 em { font-style: italic; color: var(--gold); }
.cta-band p {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 100;
  font-weight: 350;
  font-size: 18px;
  color: rgba(245,241,230,0.78);
  max-width: 46ch;
  line-height: 1.5;
}
.cta-band-actions {
  display: flex; flex-direction: column; gap: 12px;
  align-items: stretch;
}
.cta-band-actions .btn-primary {
  background: var(--gold);
  color: var(--ink);
  justify-content: center;
}
.cta-band-actions .btn-primary:hover { background: var(--paper); }
.cta-band-actions .btn-secondary {
  border-color: rgba(245,241,230,0.4);
  color: var(--paper);
  justify-content: center;
}
.cta-band-actions .btn-secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ====== Footer ====== */
footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 80px; padding-bottom: 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(248,244,235,0.15);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.foot-brand .dot { color: var(--gold); font-style: italic; }
.foot-tag {
  color: rgba(248,244,235,0.6);
  font-size: 14px;
  line-height: 1.55;
  max-width: 36ch;
}
.foot-col h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a {
  color: rgba(248,244,235,0.78);
  font-size: 14px;
  transition: color .2s;
}
.foot-col a:hover { color: var(--gold); }

.foot-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(248,244,235,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-base em { color: var(--gold); font-style: italic; font-family: var(--serif); }
.foot-base a { color: rgba(248,244,235,0.75); border-bottom: 1px solid rgba(248,244,235,0.25); transition: color .2s, border-color .2s; }
.foot-base a:hover { color: var(--gold); border-color: var(--gold); }

/* ====== Two-column descriptive list (used on Financing) ====== */
.ins-list { list-style: none; border-top: 1px solid var(--rule); }
.ins-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.ins-list .name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ins-list .desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .ins-list li { grid-template-columns: 1fr; gap: 6px; }
}

/* ====== Credentials strip — editorial trust band ====== */
.creds-strip {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0 28px;
}
.creds-strip .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.creds-strip .eyebrow {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.creds-strip .creds-row {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
}
.creds-strip .creds-row > img.row {
  flex: 1 1 auto;
  max-width: 880px;
  height: auto;
  max-height: 72px;
  opacity: 0.92;
  transition: opacity .25s ease;
}
.creds-strip .creds-row > img.badge {
  flex: 0 0 auto;
  width: 58px;
  height: auto;
  opacity: 0.95;
  transition: opacity .25s ease;
}
.creds-strip .creds-row > img:hover { opacity: 1; }
@media (max-width: 720px) {
  .creds-strip { padding: 22px 0 18px; }
  .creds-strip .creds-row { flex-direction: column; gap: 14px; }
  .creds-strip .creds-row > img.row { max-height: 44px; }
  .creds-strip .creds-row > img.badge { width: 44px; }
}

/* ====== Trust strip — credentials & press (same composite artwork as home) ====== */
.trust-strip {
  background: var(--cream);
  padding: 64px 0 56px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-strip__group + .trust-strip__group {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.trust-strip__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.trust-strip__label::before,
.trust-strip__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.trust-strip__label::before { max-width: 48px; }
.trust-strip__viewport {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.trust-strip__viewport::-webkit-scrollbar { display: none; }
.trust-strip__media {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.02) saturate(0.95);
}
.trust-strip__group--credentials .trust-strip__media { max-width: 980px; }
.trust-strip__group--press .trust-strip__media { max-width: 880px; }
@media (max-width: 720px) {
  .trust-strip { padding: 44px 0 36px; }
  .trust-strip__group + .trust-strip__group {
    margin-top: 36px;
    padding-top: 36px;
  }
  .trust-strip__label { font-size: 10px; letter-spacing: 0.16em; }
  .trust-strip__media {
    max-width: none;
    width: auto;
    height: 64px;
  }
}

/* ====== Reveal ====== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ====== Before & After gallery ====== */
/* Default: full-screen gate above everything (other uses) */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: rgba(18, 26, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* Before & after page: dim content only; ribbon + nav stay usable on top (like live WP gallery) */
body.before-after-page .ribbon {
  position: relative;
  z-index: 200;
}
body.before-after-page nav.primary {
  z-index: 190;
}
body.before-after-page .age-gate {
  z-index: 120;
  background: rgba(18, 26, 20, 0.68);
}
.age-gate--dismissed {
  display: none !important;
}
.age-gate__card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(32px, 5vw, 48px);
  max-width: 560px;
  width: 100%;
  box-shadow: 0 30px 80px -40px rgba(18, 26, 20, 0.45);
  text-align: center;
}
.age-gate__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}
.age-gate__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.age-gate__actions .btn {
  justify-content: center;
}

.gallery-section { padding-top: clamp(48px, 6vw, 88px); }
.gallery-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .gallery-categories { grid-template-columns: 1fr; }
}
.gallery-cat {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: box-shadow .3s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.gallery-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -24px rgba(18, 26, 20, 0.28);
}
.gallery-cat__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.gallery-cat__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--clay);
  cursor: pointer;
  transition: gap .2s, color .2s;
}
.gallery-cat__cta .arrow {
  transition: transform .25s;
}
.gallery-cat__cta:hover {
  gap: 12px;
  color: var(--clay-deep);
}
.gallery-cat__cta:hover .arrow {
  transform: translateX(4px);
}

.gallery-dialog {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  max-width: min(920px, 100vw - 32px);
  width: 100%;
  background: var(--paper);
  box-shadow: 0 40px 100px -40px rgba(18, 26, 20, 0.5);
}
.gallery-dialog::backdrop {
  background: rgba(18, 26, 20, 0.55);
}
.gallery-dialog__inner {
  padding: clamp(20px, 4vw, 32px);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.gallery-dialog__title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.gallery-dialog__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--cream);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gallery-dialog__close:hover {
  background: var(--ink);
  color: var(--paper);
}
.gallery-dialog__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gallery-dialog__counter {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.gallery-dialog__nav {
  display: flex;
  gap: 10px;
}
.btn--compact {
  padding: 10px 18px;
  font-size: 13px;
}
.gallery-dialog__body {
  overflow: auto;
  flex: 1;
  min-height: 120px;
}
.gallery-empty {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  padding: 24px 0;
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 720px) {
  .ba-pair { grid-template-columns: 1fr; }
}
.ba-figure {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.ba-figure figcaption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 10px 14px 0;
}
.ba-figure img {
  width: 100%;
  height: auto;
  display: block;
  padding: 10px 14px 14px;
}
.ba-caption {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-2);
  margin: 4px 0 0;
  line-height: 1.5;
}
