/* ===================================================================
   TOP HYPNOTHERAPIST IN MUMBAI — VIBHA JAIN
   "Sanctuary of Stillness" — bespoke design system
   Author: Creaa Designs
   =================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Palette */
  --ivory:        #F8F5EF;
  --paper:        #F1EADC;
  --paper-warm:   #EAE0CE;
  --champagne:    #E5D6B8;
  --champagne-dp: #D5BF94;
  --gold:         #AC8B4F;
  --gold-soft:    #C6A973;
  /* Accessible gold variants — see contrast notes below */
  --gold-ink:     #74561F;  /* small text on ivory/paper/warm  → ≥4.5:1 */
  --gold-mid:     #96793E;  /* large decorative numerals       → ≥3:1  */
  --gold-dp:      #8A6A2E;  /* solid fills carrying white text → ≥4.5:1 */
  --sage:         #9DAB90;
  --sage-dp:      #5F6E56;
  --forest:       #2C3A2E;
  --forest-dp:    #1A231B;
  --charcoal:     #221F19;
  --ink:          #2A2620;
  --muted:        #625B4F;
  --line:         rgba(42,38,32,0.14);
  --line-soft:    rgba(42,38,32,0.08);

  /* Semantic */
  --bg:           var(--ivory);
  --bg-alt:       var(--paper);
  --text:         var(--ink);
  --text-soft:    var(--muted);
  --accent:       var(--gold);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans:    "Manrope", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --container:    1320px;
  --gutter:       clamp(1.25rem, 4vw, 4rem);
  --section-y:    clamp(5rem, 11vw, 11rem);
  --radius:       22px;
  --radius-lg:    34px;

  /* Motion */
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm:    0 10px 30px -18px rgba(26,35,27,0.35);
  --shadow-md:    0 28px 60px -34px rgba(26,35,27,0.45);
  --shadow-lg:    0 50px 110px -50px rgba(26,35,27,0.55);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--forest); color: var(--champagne); }

/* ---------- 3. TYPOGRAPHY ---------- */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 380; line-height: 1.04; letter-spacing: -0.015em; font-optical-sizing: auto; color: var(--forest-dp); }
.display { font-size: clamp(3rem, 1.4rem + 7.4vw, 8.5rem); font-weight: 340; line-height: 0.96; letter-spacing: -0.03em; }
.h1 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.4rem); }
.h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 4rem); }
.h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.h4 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); }
.serif-it { font-style: italic; font-weight: 340; }
em, .ital { font-style: italic; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.no-line::before { display: none; }
.eyebrow .num { font-variant-numeric: tabular-nums; }

.lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.55; color: var(--text); font-weight: 350; }
.muted { color: var(--text-soft); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1600px; }
.container-narrow { max-width: 920px; }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.bg-paper { background: var(--bg-alt); }
.bg-warm  { background: var(--paper-warm); }
.bg-forest { background: var(--forest-dp); color: var(--paper); }
.bg-forest h1,.bg-forest h2,.bg-forest h3,.bg-forest h4 { color: var(--ivory); }
.bg-forest .muted { color: rgba(241,234,220,0.66); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .cols-3,.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 680px){ .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .h2 { margin-top: 1.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- 5. ATMOSPHERE: grain + orbs ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; z-index: 0; will-change: transform; }
.orb-sage    { background: radial-gradient(circle at 30% 30%, rgba(157,171,144,0.85), transparent 70%); }
.orb-gold    { background: radial-gradient(circle at 30% 30%, rgba(198,169,115,0.7), transparent 70%); }
.orb-champ   { background: radial-gradient(circle at 30% 30%, rgba(229,214,184,0.9), transparent 70%); }
@keyframes drift { 0%{transform:translate(0,0) scale(1);} 50%{transform:translate(4%, -6%) scale(1.08);} 100%{transform:translate(0,0) scale(1);} }
.orb-anim { animation: drift 18s ease-in-out infinite; }

/* ---------- 6. BUTTONS ---------- */
.btn {
  --bg-btn: var(--forest); --fg-btn: var(--ivory);
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.02rem 1.9rem; border-radius: 100px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.04em;
  background: var(--bg-btn); color: var(--fg-btn);
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--gold-dp); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateY(0); }
.btn .arrow { transition: transform .45s var(--ease); }
.btn:hover .arrow { transform: translate(4px,-4px); }
.btn-ghost { --bg-btn: transparent; --fg-btn: var(--forest); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost::after { background: var(--forest); }
.btn-ghost:hover { color: var(--ivory); }
.btn-gold { --bg-btn: var(--gold-dp); --fg-btn: #fff; }
.btn-gold::after { background: var(--forest); }
.btn-light { --bg-btn: var(--ivory); --fg-btn: var(--forest); }
.btn-light::after { background: var(--gold-dp); }
.btn-light:hover { color: #fff; }
.btn-lg { padding: 1.18rem 2.3rem; font-size: 0.92rem; }

.link-underline { position: relative; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--forest); }
/* keep inline text links a comfortable tap size on touch screens */
@media (max-width: 1080px){
  .link-underline { min-height: 44px; }
}
.link-underline::after { content:""; position:absolute; left:0; bottom:-3px; width:100%; height:1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }
.link-underline .arrow { transition: transform .4s var(--ease); }
.link-underline:hover .arrow { transform: translateX(4px); }

/* ---------- 7. NAVIGATION ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
  padding-block: 1.5rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav.scrolled {
  background: rgba(248,245,239,0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; z-index: 1002; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--forest);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em;
  transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease);
}
.brand:hover .brand-mark { background: var(--forest); color: var(--champagne); transform: rotate(-8deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: 0.01em; color: var(--forest-dp); }
.brand-text span { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
  position: relative; padding: 0.55rem 0.95rem; font-size: 0.84rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink); border-radius: 100px; transition: color .35s var(--ease);
}
.nav-links a::after { content:""; position:absolute; left:50%; bottom:0.35rem; width:4px; height:4px; border-radius:50%; background: var(--gold); transform: translate(-50%,6px) scale(0); transition: transform .4s var(--ease); }
.nav-links a:hover { color: var(--forest); }
.nav-links a:hover::after, .nav-links a.active::after { transform: translate(-50%,0) scale(1); }
.nav-links a.active { color: var(--forest); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn { padding: 0.78rem 1.45rem; font-size: 0.8rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); position: relative; z-index: 1002; }
.nav-toggle span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--forest); transform: translate(-50%,-50%); transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:first-child { transform: translate(-50%,-5px); }
.nav-toggle span:last-child { transform: translate(-50%,5px); }
body.menu-open .nav-toggle span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }

/* Mobile overlay menu
   Scrolls when the list is taller than the viewport (short landscape phones,
   1024x768 tablets), and always clears the fixed header. */
.nav-overlay {
  position: fixed; inset: 0; z-index: 1001; background: var(--forest-dp);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h, 88px) + 1rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease); pointer-events: none;
  visibility: hidden;
}
body.menu-open .nav-overlay { clip-path: circle(150% at calc(100% - 44px) 44px); pointer-events: auto; visibility: visible; }
.nav-overlay-inner { margin-block: auto; width: 100%; }
.nav-overlay ol { counter-reset: m; display: flex; flex-direction: column; gap: 0.2rem; }
.nav-overlay ol a {
  counter-increment: m;
  font-family: var(--font-display);
  /* the vh term keeps all eight items on screen on short/landscape viewports */
  font-size: min(clamp(1.5rem, 6.4vw, 3rem), 5.2vh);
  line-height: 1.14;
  color: var(--ivory); font-weight: 350; display: flex; align-items: baseline; gap: 1rem;
  padding-block: 0.28em;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.nav-overlay ol a::before {
  content: counter(m, decimal-leading-zero);
  font-family: var(--font-sans); font-size: 0.72rem; color: var(--gold-soft);
  letter-spacing: 0.1em; flex: none;
}
.nav-overlay ol a:hover, .nav-overlay ol a:focus-visible { color: var(--gold-soft); }
.nav-overlay ol a[aria-current="page"] { color: var(--champagne); }
body.menu-open .nav-overlay ol a { opacity: 1; transform: translateY(0); }
body.menu-open .nav-overlay li:nth-child(1) a{transition-delay:.18s}
body.menu-open .nav-overlay li:nth-child(2) a{transition-delay:.23s}
body.menu-open .nav-overlay li:nth-child(3) a{transition-delay:.28s}
body.menu-open .nav-overlay li:nth-child(4) a{transition-delay:.33s}
body.menu-open .nav-overlay li:nth-child(5) a{transition-delay:.38s}
body.menu-open .nav-overlay li:nth-child(6) a{transition-delay:.43s}
body.menu-open .nav-overlay li:nth-child(7) a{transition-delay:.48s}
body.menu-open .nav-overlay li:nth-child(8) a{transition-delay:.53s}
.nav-overlay-foot {
  margin-top: clamp(1.4rem,4vw,2.6rem); padding-top: clamp(1.2rem,3vw,1.8rem);
  border-top: 1px solid rgba(241,234,220,0.16);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  color: rgba(241,234,220,0.78); font-size: 0.85rem;
}
.nav-overlay-foot a {
  font-size: 0.95rem; color: var(--champagne);
  display: inline-flex; align-items: center; min-height: 40px;
}
.nav-overlay-foot a:hover { color: var(--gold-soft); }
/* very short viewports (landscape phones): tighten so nothing is cut off */
@media (max-height: 560px){
  .nav-overlay { justify-content: flex-start; padding-top: 4.5rem; }
  .nav-overlay-inner { margin-block: 0; }
  .nav-overlay ol { gap: 0; }
  .nav-overlay ol a { font-size: clamp(1.15rem, 5.2vh, 1.8rem); padding-block: 0.16em; }
  .nav-overlay-foot { margin-top: 1rem; padding-top: 0.9rem; }
  .nav-overlay-foot a { min-height: 32px; }
}

/* While the overlay is open the brand sits on dark green — recolour it */
body.menu-open .brand-mark { border-color: var(--gold-soft); color: var(--champagne); }
body.menu-open .brand-text b { color: var(--ivory); }
body.menu-open .brand-text span { color: var(--gold-soft); }
body.menu-open .nav-toggle { border-color: rgba(241,234,220,0.42); }
body.menu-open .nav-toggle span { background: var(--ivory); }
body.menu-open { overflow: hidden; }

@media (max-width: 1080px){
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-cta:empty { display: none; }
}

/* ---------- 8. FOOTER ---------- */
.footer { background: var(--forest-dp); color: var(--paper); padding-top: clamp(4rem,8vw,7rem); position: relative; overflow: hidden; }
.footer h2,.footer h3 { color: var(--ivory); }
.footer-cta { text-align: center; max-width: 820px; margin: 0 auto clamp(3.5rem,7vw,6rem); position: relative; z-index: 2; }
.footer-cta .display { color: var(--ivory); }
.footer-cta .display em { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(2rem,4vw,3.5rem); padding-bottom: 3.5rem; border-top: 1px solid rgba(241,234,220,0.14); padding-top: clamp(3rem,5vw,4rem); position: relative; z-index: 2; }
@media (max-width: 900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.4rem; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-col a, .footer-col p { color: rgba(241,234,220,0.82); font-size: 0.92rem; transition: color .3s var(--ease); }
.footer-col li > a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-col a:hover { color: var(--gold-soft); }
/* .muted is tuned for light backgrounds — on the dark footer it disappears */
.footer .muted, .bg-forest .muted { color: rgba(241,234,220,0.72); }
.footer-brand .brand-mark { border-color: var(--gold-soft); color: var(--champagne); }
.footer-brand .brand-text b { color: var(--ivory); }
.footer-brand p { margin-top: 1.4rem; max-width: 34ch; }
.footer-contact b { color: var(--ivory); font-weight: 600; display:block; font-family: var(--font-sans); font-size: 0.92rem; }
.socials { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(241,234,220,0.2); display: grid; place-items: center; color: var(--paper); transition: all .45s var(--ease); }
.socials a:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--forest-dp); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(241,234,220,0.14); padding-block: 1.8rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.footer-bottom p { font-size: 0.82rem; color: rgba(241,234,220,0.6); }
.footer-bottom a { color: var(--gold-soft); font-weight: 600; }
.footer-watermark { position: absolute; bottom: -3%; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 22vw; color: rgba(241,234,220,0.03); white-space: nowrap; z-index: 1; pointer-events: none; line-height: 1; }

/* ---------- 9. REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; } .reveal-d5 { transition-delay: .5s; }
.reveal-scale { opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: none; }
.reveal-mask { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.reveal-mask.is-visible { clip-path: inset(0 0 0 0); }

/* line reveal for big headings */
.line-reveal { display: block; overflow: hidden; }
.line-reveal > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.is-visible .line-reveal > span, .line-reveal.is-visible > span { transform: translateY(0); }

/* ---------- 10. CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9500; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%,-50%); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.6); transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease); }
body.cursor-active .cursor-ring { width: 62px; height: 62px; background: rgba(255,255,255,0.08); }
@media (hover: none), (max-width: 1080px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- 11. BREATHING ORB (signature) ---------- */
.breath { position: relative; width: clamp(180px, 26vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-soft); opacity: 0.5; animation: breathe 8s var(--ease-soft) infinite; }
.breath-ring:nth-child(2){ animation-delay: .9s; opacity: 0.32; }
.breath-ring:nth-child(3){ animation-delay: 1.8s; opacity: 0.2; }
.breath-core { width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--champagne), var(--gold-soft)); box-shadow: 0 0 60px -10px var(--gold-soft); animation: breathe-core 8s var(--ease-soft) infinite; }
.breath-label { position: absolute; bottom: -2.4rem; left: 50%; transform: translateX(-50%); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-ink); }
@keyframes breathe { 0%,100%{ transform: scale(0.82); opacity: .2;} 50%{ transform: scale(1.12); opacity: .55;} }
@keyframes breathe-core { 0%,100%{ transform: scale(0.86);} 50%{ transform: scale(1.1);} }

/* ---------- 12. CARDS & COMMON COMPONENTS ---------- */
.card { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.4rem); transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(172,139,79,0.4); }
.card-num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-mid); line-height: 1; }

.glass { background: rgba(248,245,239,0.82); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border: 1px solid rgba(255,255,255,0.5); border-radius: var(--radius); box-shadow: var(--shadow-md); }
/* Glass panels that carry LIGHT text need a dark pane — the light default
   rendered cream text on a pale panel (unreadable). Opt in with .glass-dark. */
.glass-dark {
  background: rgba(18,26,19,0.72);
  border-color: rgba(241,234,220,0.22);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 100px; border: 1px solid var(--line); font-size: 0.78rem; font-weight: 500; color: var(--forest); letter-spacing: 0.02em; background: rgba(255,255,255,0.4); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

.icon-badge { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--paper-warm); color: var(--forest); border: 1px solid var(--line-soft); transition: all .5s var(--ease); }
.card:hover .icon-badge { background: var(--forest); color: var(--champagne); }
.icon-badge svg { width: 26px; height: 26px; stroke-width: 1.4; }

/* stat */
.stat .num { font-family: var(--font-display); font-size: clamp(2.6rem,5vw,4.2rem); line-height: 1; color: var(--forest); font-weight: 360; }
.stat .num .plus { color: var(--gold-mid); }
.stat p { margin-top: 0.6rem; font-size: 0.86rem; letter-spacing: 0.04em; color: var(--text-soft); }

/* media frame
   NOTE: every frame wraps its <img> in a <picture>. <picture> is inline with
   auto height, so `height:100%` on the img used to resolve against it and
   collapse to `auto` — the image then rendered at its natural ratio and was
   simply clipped by the frame instead of being cover-cropped. Stretching the
   <picture> to fill the frame is what makes object-fit / object-position work. */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.media-frame > picture { position: absolute; inset: 0; display: block; }
.media-frame picture > img,
.media-frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
.media-frame.tall { aspect-ratio: 3/4; }
.media-frame.square { aspect-ratio: 1; }
.media-frame.wide { aspect-ratio: 16/10; }
.media-tint::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(26,35,27,0.55)); z-index: 1; }

/* Focal-point helpers — keep heads and faces inside the crop.
   Portrait sources here are very tall (≈9:19), so a centred crop cuts the
   top of the head off. These anchor the crop near the subject instead. */
.focal-face   { --focal: 50% 14%; }   /* head near the top of the frame  */
.focal-upper  { --focal: 50% 28%; }   /* subject in the upper third      */
.focal-top    { --focal: 50% 0%; }
.focal-center { --focal: 50% 50%; }
.focal-lower  { --focal: 50% 68%; }

/* breadcrumb */
.crumbs { display: flex; gap: 0.6rem; align-items: center; font-size: 0.78rem; color: var(--text-soft); letter-spacing: 0.02em; }
.crumbs a:hover { color: var(--gold-ink); }
.crumbs span { opacity: 0.5; }

/* page hero (interior) */
.page-hero { position: relative; padding-top: clamp(9rem,15vw,13rem); padding-bottom: clamp(3rem,6vw,5rem); overflow: hidden; }
.page-hero .display, .page-hero .h1 { margin-top: 1.4rem; }
.page-hero .lead { margin-top: 1.6rem; }

/* divider marquee */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: 1.4rem; }
.marquee-track { display: inline-flex; gap: 3.5rem; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,2.4rem); color: var(--forest); font-style: italic; font-weight: 340; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee span::after { content: "✦"; font-size: 0.7em; color: var(--gold); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* accordion */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 0; text-align: left; }
.acc-head .q { font-family: var(--font-display); font-size: clamp(1.15rem,2vw,1.5rem); color: var(--forest-dp); font-weight: 380; }
.acc-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: all .4s var(--ease); }
.acc-icon::before, .acc-icon::after { content:""; position:absolute; background: var(--forest); transition: transform .4s var(--ease); }
.acc-icon::before { width: 12px; height: 1.5px; }
.acc-icon::after { width: 1.5px; height: 12px; }
.acc-item.open .acc-icon { background: var(--forest); border-color: var(--forest); }
.acc-item.open .acc-icon::before, .acc-item.open .acc-icon::after { background: var(--champagne); }
.acc-item.open .acc-icon::after { transform: scaleY(0); }
.acc-body { overflow: hidden; height: 0; transition: height .5s var(--ease); }
.acc-body-inner { padding-bottom: 1.7rem; max-width: 70ch; color: var(--text-soft); }

/* tags row */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* form */
.field { position: relative; margin-bottom: 1.5rem; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 0.6rem; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,0.6); transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(172,139,79,0.12); }

/* utility */
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}.mt-5{margin-top:3.2rem}
.mb-3{margin-bottom:1.6rem}
.flex { display: flex; } .items-center { align-items: center; } .gap-1{gap:.6rem}.gap-2{gap:1rem}.gap-3{gap:1.6rem}
.wrap { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.relative { position: relative; } .zi { position: relative; z-index: 2; }
.divider-soft { height: 1px; background: var(--line); border: 0; }

/* skip link — moved off-screen with a transform so it can never widen the page */
.skip { position: fixed; left: 0; top: 0; z-index: 9999; background: var(--forest); color: var(--ivory); padding: 0.8rem 1.2rem; border-radius: 0 0 10px 0; transform: translateY(-120%); transition: transform .25s var(--ease); }
.skip:focus { transform: translateY(0); }

/* page load fade — the fallback animation guarantees the page becomes visible
   even if main.js fails to load, so the site can never render blank. */
body { opacity: 0; animation: page-in .7s var(--ease) .35s forwards; transition: opacity .7s var(--ease); }
body.loaded { opacity: 1; animation: none; }
body.is-leaving { opacity: 0; animation: none; }
@keyframes page-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { opacity: 1; animation: none; } }

/* focus visibility for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }


/* ---------- QA: star ratings ---------- */
/* gold reads too pale for a 14px glyph — deepen on light, lighten on dark */
.stars { color: var(--gold-ink); }
.bg-forest .stars,
.story-card.featured .stars,
.qf-card .stars,
.footer .stars { color: var(--gold-soft); }

/* the brand lockup also appears on the dark footer and the mobile overlay */
.footer .brand-text span { color: var(--gold-soft); }

/* ---------- QA: very small phones (320px) ---------- */
@media (max-width: 400px){
  /* display type needs a smaller floor or long words break the container */
  .display { font-size: clamp(2.35rem, 11vw, 8.5rem); }
  .h1 { font-size: clamp(2.1rem, 10vw, 5.4rem); }
  .h2 { font-size: clamp(1.8rem, 8.6vw, 4rem); }
  .crumbs { flex-wrap: wrap; }
  .eyebrow { letter-spacing: 0.22em; }
}
/* grid utilities: zero-min tracks so content can never widen the row */
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ---------- QA: touch targets ---------- */
/* standalone links that read as buttons need a real tap area on touch screens */
@media (max-width: 1080px){
  .crumbs a,
  .footer-bottom a,
  .cta-info a,
  .nav-overlay-foot a,
  .socials a { display: inline-flex; align-items: center; min-height: 40px; }
  .cta-info li { padding-block: 0.5rem; }
}
