/*
Theme Name: Bavan Club
Theme URI: https://bavanclub.com
Author: Bavan Club
Author URI: https://bavanclub.com
Description: A minimal, modern WordPress theme for a private art members club. Editable Experiences & Services (custom post types) and a Customizer-driven hero & contact. Self-hosted fonts and images — works fast even where Google Fonts is blocked.
Version: 1.7.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bavan
*/

/* =========================================================================
   AVA GALLERY — Private Members Club
   Redesign: minimal / modern / monochrome — "white-cube architecture".
   Type: Space Grotesk (display) × Inter (text). Colour comes from the art.
   ========================================================================= */

:root {
  --bg:     #F7F6F1;   /* warm near-white */
  --bg-2:   #FFFFFF;
  --ink:    #14130F;   /* near-black */
  --ink-2:  #46443D;   /* secondary text */
  --muted:  #706B5E;   /* tertiary — meets AA (4.5:1) on the cream bg */
  --line:   #E2DFD5;   /* hairlines */
  --line-2: #CFCBBE;
  --dark:   #0F0E0B;   /* dark sections */
  --dark-2: #1C1B16;
  --d-text: #F2F0E8;
  --d-muted:#9C988C;

  --accent:   #845E22;   /* brass — the single accent colour */
  --accent-2: #B3874A;   /* brass tuned for dark surfaces */

  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 80px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.15, 1);
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
/* overflow-x guard on html too: body alone doesn't stop sideways scroll on iOS Safari */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--text);
  background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; /* fallback for browsers without overflow: clip */
  overflow-x: clip;   /* unlike hidden, clip doesn't turn body into a scroll container */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------ Typography */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.display { font-family: var(--display); font-weight: 500; line-height: 0.96; letter-spacing: -0.03em; font-size: clamp(2.7rem, 8.2vw, 7.5rem); }
.eyebrow { font-family: var(--display); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }
.eyebrow--muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.55; color: var(--ink-2); font-weight: 400; }

/* --------------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vw, 160px); }
.rule { height: 1px; background: var(--line); border: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); }
.section-head__index { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--muted); }

/* --------------------------------------------------------------- Buttons */
.btn {
  --pad-y: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: var(--pad-y) 1.5rem; border: 1px solid var(--ink); color: var(--bg); background: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn .ico { width: 15px; height: 15px; transition: transform 0.45s var(--ease); }
.btn:hover .ico { transform: translateX(5px); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--on-dark { background: var(--d-text); color: var(--dark); border-color: var(--d-text); }
.btn--on-dark:hover { background: transparent; color: var(--d-text); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.alink {
  display: inline-flex; align-items: center; gap: 0.5rem; position: relative;
  font-family: var(--display); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 4px;
}
.alink .ico { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.alink::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0.2); transform-origin: left; transition: transform 0.45s var(--ease); }
.alink:hover::after { transform: scaleX(1); }
.alink:hover .ico { transform: translateX(4px); }

/* ----------------------------------------------------------------- Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--gutter); transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.5s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(247, 246, 241, 0.8); backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%); border-bottom-color: var(--line); padding-block: 0.8rem; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.5rem; }
.brand .dot { width: 6px; height: 6px; border: 1px solid var(--ink); border-radius: 50%; display: inline-block; }
.brand__logo { height: 20px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-family: var(--display); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); position: relative; padding: 4px 0; transition: color 0.35s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width 0.4s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
.nav-toggle { display: none; width: 30px; height: 30px; color: var(--ink); }

/* Sections targeted by in-page nav links (#experiences, #services, etc.)
   need scroll-margin-top, otherwise the fixed .nav bar covers the top of
   the section (or the browser's native anchor jump lands the heading
   underneath it). This is why clicking a menu item didn't "land" on the
   section correctly. */
#experiences,
#services,
#membership,
#contact { scroll-margin-top: 96px; }

/* --------------------------------------------------------------- Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(110px, 16vh, 160px); padding-bottom: clamp(28px, 5vw, 52px); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: clamp(24px, 5vw, 48px); }
.hero__headline { margin-bottom: clamp(28px, 5vw, 56px); }
.line { display: block; overflow: hidden; }
.line__inner { display: block; transform: translateY(112%); transition: transform 1s var(--ease); }
.is-loaded .line:nth-child(1) .line__inner { transition-delay: 0.05s; }
.is-loaded .line:nth-child(2) .line__inner { transition-delay: 0.16s; }
.is-loaded .line:nth-child(3) .line__inner { transition-delay: 0.27s; }
.is-loaded .line__inner { transform: none; }
.hero__headline .accent { -webkit-text-stroke: 1px var(--ink); color: transparent; }
.hero__bottom { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; }
.hero__sub { max-width: 42ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-start; align-items: center; }
.fade-load { opacity: 0; transform: translateY(16px); }
.is-loaded .fade-load { animation: fadeIn 0.9s var(--ease) 0.5s forwards; }
@keyframes fadeIn { to { opacity: 1; transform: none; } }

/* hero without a headline (title left empty in the Customizer):
   a centered, frontispiece-style composition. */
.hero--compact { min-height: auto; padding-top: clamp(140px, 20vh, 210px); padding-bottom: clamp(56px, 8vw, 104px); text-align: center; }
.hero--compact .hero__meta { justify-content: center; padding-bottom: clamp(32px, 5vw, 56px); }
.hero--compact .hero__meta .eyebrow { display: inline-flex; align-items: center; gap: 1.1rem; }
.hero--compact .hero__meta .eyebrow::before,
.hero--compact .hero__meta .eyebrow::after { content: ""; width: clamp(28px, 4vw, 56px); height: 1px; background: var(--line-2); }
/* with no headline, the intro paragraph carries the hero as a statement */
.hero--compact .hero__bottom { display: block; }
.hero--compact .hero__sub { margin-inline: auto; max-width: 34ch; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.42; color: var(--ink); letter-spacing: -0.018em; text-wrap: balance; }
/* a thin brass leader guiding the eye down to the image */
.hero--compact .hero__bottom::after { content: ""; display: block; width: 1px; height: clamp(40px, 6vh, 64px); background: var(--accent); margin: clamp(32px, 5vw, 52px) auto 0; }

/* hero image band */
.hero-band { height: clamp(46vh, 64vh, 760px); overflow: hidden; position: relative; }
.hero-band img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.hero-band figcaption { position: absolute; left: var(--gutter); bottom: 1.4rem; color: #fff; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; mix-blend-mode: difference; }

/* --------------------------------------------------------------- Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 2.4rem; padding-block: 1.05rem; animation: marquee 36s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); display: inline-flex; align-items: center; gap: 2.4rem; text-transform: uppercase; }
.marquee__track span::after { content: "✺"; color: var(--muted); font-size: 0.7rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- Statement */
.statement__grid { display: grid; grid-template-columns: 0.32fr 1fr; gap: clamp(24px, 5vw, 72px); }
.statement__big { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
.statement__big .muted { color: var(--muted); }
.statement__col { display: flex; flex-direction: column; gap: 1.5rem; max-width: 60ch; }
.statement__col p { color: var(--ink-2); }
.statement__aside { display: flex; flex-direction: column; gap: 1.6rem; }
.statement__img { position: relative; overflow: hidden; border-radius: 5px; background: var(--line); aspect-ratio: 3/4; }
.statement__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.05s var(--ease); }
.statement__img:hover img { transform: scale(1.04); }
.statement__img figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 1rem 1.1rem; color: #fff; font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; background: linear-gradient(transparent, rgba(15,14,11,0.7)); }

/* stats row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 88px); }
.stat { padding: clamp(26px, 3vw, 38px) 1.2rem 0 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.stat:last-child { border-right: 0; }
.stat__icon { width: 26px; height: 26px; color: var(--ink); margin-bottom: clamp(14px, 2vw, 22px); }
.stat__icon svg { width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.stat:hover .stat__icon svg { transform: translateY(-3px) rotate(-4deg); }
.stat__num { font-family: var(--display); font-weight: 500; font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat__label { margin-top: 0.6rem; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: var(--display); }

/* --------------------------------------------------------------- On View (image grid) */
.ov-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 30px); }
.ov-card { grid-column: span 4; display: flex; flex-direction: column; }
.ov-card--feature { grid-column: span 12; }
.ov-card__media { position: relative; overflow: hidden; border-radius: 5px; background: var(--line); aspect-ratio: 4/5; }
.ov-card--feature .ov-card__media { aspect-ratio: 16/7; }
.ov-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.05s var(--ease); }
.ov-card:hover .ov-card__media img { transform: scale(1.045); }
.ov-card__arrow { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--bg); color: var(--ink); border-radius: 50%; opacity: 0; transform: translateY(-8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.ov-card__arrow svg { width: 18px; height: 18px; }
.ov-card:hover .ov-card__arrow { opacity: 1; transform: none; }
.ov-overlay { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.2rem; padding: clamp(22px, 3vw, 44px); background: linear-gradient(transparent, rgba(15,14,11,0.06) 30%, rgba(15,14,11,0.86)); }
.ov-tag { display: inline-block; font-family: var(--display); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 0.7rem; }
.ov-overlay h3 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.6rem); letter-spacing: -0.025em; }
.ov-card__meta { display: block; font-size: 0.86rem; color: var(--ink-2); margin-top: 0.35rem; }
.ov-card__meta--light { color: rgba(255,255,255,0.74); margin-top: 0.6rem; }
.ov-card__cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-top: 1rem; margin-top: 1.1rem; border-top: 1px solid var(--line); }
.ov-card__cap h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -0.015em; }
.ov-card__date { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ov-overlay .ov-card__date { color: rgba(255,255,255,0.86); }
@media (max-width: 1024px) { .ov-card { grid-column: span 6; } }
@media (max-width: 600px) {
  .ov-card, .ov-card--feature { grid-column: span 12; }
  .ov-card--feature .ov-card__media { aspect-ratio: 4/3; }
  .ov-card__media { aspect-ratio: 4/3; }
  .ov-card__arrow { display: none; }
}

/* --------------------------------------------------------------- Benefits */
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(26px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 1rem; min-height: clamp(260px, 26vw, 340px); transition: background 0.5s var(--ease); }
.benefit:hover { background: var(--bg-2); }
.benefit__num { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--muted); }
.benefit__icon { width: 42px; height: 42px; color: var(--ink); margin-bottom: auto; }
.benefit__icon svg { width: 100%; height: 100%; overflow: visible; }
.benefit__icon path, .benefit__icon circle, .benefit__icon line, .benefit__icon rect, .benefit__icon polyline {
  stroke: currentColor; stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); transition: stroke-dashoffset 1.2s var(--ease); }
.benefit.in-view .benefit__icon path, .benefit.in-view .benefit__icon circle, .benefit.in-view .benefit__icon line,
.benefit.in-view .benefit__icon rect, .benefit.in-view .benefit__icon polyline { stroke-dashoffset: 0; }
.benefit h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
.benefit p { font-size: 0.94rem; color: var(--ink-2); }

/* --------------------------------------------------------------- Tiers */
.tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tier { padding: clamp(28px, 3vw, 48px) clamp(22px, 2.4vw, 40px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.3rem; transition: background 0.5s var(--ease); }
.tier:last-child { border-right: 0; }
.tier:hover { background: var(--bg-2); }
.tier--feature { background: var(--dark); color: var(--d-text); border-right-color: var(--dark); }
.tier--feature:hover { background: var(--dark); }
.tier__tag { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tier--feature .tier__tag { color: var(--d-muted); }
.tier__name { font-size: 1.9rem; letter-spacing: -0.02em; }
.tier__price { font-size: 0.9rem; color: var(--muted); }
.tier--feature .tier__price { color: var(--d-muted); }
.tier__list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.2rem; }
.tier__list li { display: flex; gap: 0.7rem; font-size: 0.93rem; color: var(--ink-2); }
.tier--feature .tier__list li { color: var(--d-muted); }
.tier__list .check { flex: 0 0 auto; margin-top: 4px; color: var(--ink); }
.tier--feature .tier__list .check { color: var(--d-text); }
.tier .btn { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------- CTA (dark) */
.cta { background: var(--dark); color: var(--d-text); text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 6rem); letter-spacing: -0.03em; line-height: 0.98; max-width: 16ch; margin: 1.4rem auto; }
.cta h2 .accent { -webkit-text-stroke: 1px var(--d-text); color: transparent; }
.cta .eyebrow { color: var(--d-muted); }
.cta p { max-width: 46ch; margin: 0 auto 2.6rem; color: var(--d-muted); }

/* --------------------------------------------------------------- Footer (dark) */
.footer { background: var(--dark); color: var(--d-text); border-top: 1px solid var(--dark-2); padding-block: clamp(48px, 6vw, 80px) 2rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; }
.footer__col h5 { font-family: var(--display); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { font-size: 0.92rem; color: var(--d-muted); transition: color 0.35s var(--ease); }
.footer__col a:hover { color: var(--d-text); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(36px, 5vw, 64px); padding-top: 1.6rem; border-top: 1px solid var(--dark-2); }
.footer__bottom small { color: var(--d-muted); font-size: 0.76rem; }

/* --------------------------------------------------------------- Contact */
.subhero { padding-top: clamp(130px, 17vw, 190px); padding-bottom: clamp(36px, 5vw, 56px); }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__details { display: flex; flex-direction: column; }
.contact__block { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact__block:last-child { border-bottom: 1px solid var(--line); }
.contact__block h4 { font-family: var(--display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.contact__block p { color: var(--ink); font-size: 1.05rem; }
.contact__block .pending { color: var(--muted); font-style: normal; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.field label { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.field label .req { color: var(--ink); }
.field input, .field select, .field textarea { font-family: var(--text); font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 0.7rem 0; transition: border-color 0.35s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form__note { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }

/* --------------------------------------------------------------- Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .statement__grid { grid-template-columns: 1fr; }
  .statement__aside { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .statement__img { aspect-ratio: 16/10; width: 55%; max-width: 380px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* While the menu is open, the scrolled-state backdrop-filter must be off:
     a filtered ancestor becomes the containing block for position:fixed,
     which would pin the overlay to the nav bar instead of the viewport. */
  .nav.open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 1.6rem; position: fixed; inset: 0; z-index: 99; background: var(--bg); align-items: center; justify-content: center; }
  .nav.open .nav-links a { font-size: 1.3rem; }
  /* Keep the brand and the toggle above the full-screen menu overlay,
     otherwise the open menu can't be closed. */
  .nav.open .brand, .nav.open .nav-cta { position: relative; z-index: 100; }
  .tiers__grid { grid-template-columns: 1fr; }
  .tier { border-right: 0; border-bottom: 1px solid var(--line); }
  .tier:last-child { border-bottom: 0; }
  .tier--feature { border-right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .benefits__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .statement__aside { flex-direction: column; align-items: stretch; }
  .statement__img { width: 100%; max-width: none; aspect-ratio: 16/10; }
  body { font-size: 16px; }
}

/* --------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-load { opacity: 1 !important; transform: none !important; }
  .line__inner { transform: none !important; }
  .benefit__icon path, .benefit__icon circle, .benefit__icon line, .benefit__icon rect, .benefit__icon polyline { stroke-dashoffset: 0 !important; }
}

/* =========================================================================
   BAVAN CLUB — additional sections (Experiences / Services / Contact)
   ========================================================================= */
.svc-intro { max-width: 64ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.55; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 60px); }
.svc-item { padding: clamp(24px, 2.6vw, 38px); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.6rem; transition: background 0.5s var(--ease); }
.svc-item:nth-child(2n) { border-right: 0; }
.svc-item:hover { background: var(--bg-2); }
.svc-item__no { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--accent); }
.svc-item h3 { font-size: 1.32rem; letter-spacing: -0.01em; }
.svc-item p { font-size: 0.94rem; color: var(--ink-2); }

/* Contact */
.contact2 { display: grid; grid-template-columns: 1fr; max-width: 620px; gap: clamp(32px, 5vw, 76px); align-items: start; }
.contact2__details { display: flex; flex-direction: column; }
.cblock { padding: 1.3rem 0; border-top: 1px solid var(--line); display: flex; gap: 1.1rem; align-items: flex-start; }
.cblock:last-of-type { border-bottom: 1px solid var(--line); }
.cblock__ico { width: 22px; height: 22px; color: var(--ink); flex: 0 0 auto; margin-top: 3px; }
.cblock__ico svg { width: 100%; height: 100%; }
.cblock__label { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.cblock a, .cblock p { color: var(--ink); font-size: 1.05rem; }
.cblock a:hover { color: var(--accent, #845E22); }
.socials { display: flex; gap: 0.7rem; margin-top: 1.6rem; }
.socials a { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.socials a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.map-embed { width: 100%; aspect-ratio: 4/3.2; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.04); }
.map-embed.map-embed--logo { display: flex; align-items: center; justify-content: center; border: none; background: none; padding: 0; }
.map-embed--logo img { width: 100%; height: auto; max-width: 280px; object-fit: contain; }

@media (max-width: 820px) {
  .contact2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-item, .svc-item:nth-child(2n) { border-right: 0; }
}

/* =========================================================================
   v1.3 — membership request form (dark section)
   ========================================================================= */
.mem-form { max-width: 620px; margin: 2.4rem auto 0; text-align: left; }
.mem-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.mfield { margin-bottom: 1.5rem; }
.mfield label { display: block; font-family: var(--display); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 0.45rem; }
.mfield label span { color: var(--accent-2); }
.mfield input, .mfield textarea {
  width: 100%; font-family: var(--text); font-size: 1rem; color: var(--d-text);
  background: transparent; border: 0; border-bottom: 1px solid rgba(242, 240, 232, 0.28); border-radius: 0;
  padding: 0.65rem 0; transition: border-color 0.35s var(--ease);
}
.mfield textarea { resize: vertical; min-height: 96px; }
.mfield input:focus, .mfield textarea:focus { outline: none; border-bottom-color: var(--accent-2); }
.mfield input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--dark) inset; -webkit-text-fill-color: var(--d-text); }
.mem-form__actions { display: flex; justify-content: center; margin-top: 0.6rem; }
.mem-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mem-form__note { margin-top: 1.4rem; text-align: center; font-size: 0.95rem; color: var(--d-muted); }
.cta .mem-form__note:only-child, .cta > .wrap > .mem-form__note { margin: 2rem auto 0; }
@media (max-width: 560px) {
  .mem-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================================
   v1.1 — per-item images, footer widgets, block-page spacing
   ========================================================================= */
.svc-item--img { gap: 0.85rem; }
.svc-item__img { aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; margin-bottom: 0.5rem; background: var(--bg-2); }
.svc-item__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.05) sepia(0.08); transition: transform 1s var(--ease), filter 0.8s var(--ease); display: block; }
.svc-item--img:hover .svc-item__img img { transform: scale(1.05); }

.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--dark-2); }
.footer-widget h5 { font-family: var(--display); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 1rem; }
.footer-widget a { color: var(--d-muted); }
.footer-widget a:hover { color: var(--d-text); }

/* When the homepage is built from blocks/patterns, give core blocks room. */
.bavan-blockpage > .wp-block-group,
.bavan-blockpage > p,
.bavan-blockpage > h2,
.bavan-blockpage > h3 { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* =========================================================================
   v1.2 — Experiences artwork gallery + autoplay video band
   ========================================================================= */
.art-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 18px); margin-top: clamp(28px, 4vw, 48px); }
.art-gallery__item { overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; background: var(--bg-2); }
.art-gallery__item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.05) sepia(0.08); transition: transform 1s var(--ease), filter 0.8s var(--ease); display: block; }
.art-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 980px) { .art-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .art-gallery { grid-template-columns: repeat(2, 1fr); } }

.video-band { width: 100%; height: clamp(46vh, 62vh, 700px); overflow: hidden; background: var(--dark); }
.video-band__v { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================================
   v1.3 — Experiences: image BESIDE text (cycling artworks)
   ========================================================================= */
.exp-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
.exp-row { display: flex; gap: clamp(14px, 1.4vw, 22px); align-items: flex-start; padding: clamp(20px, 2.2vw, 32px); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background 0.5s var(--ease); }
.exp-row:nth-child(2n) { border-right: 0; }
.exp-row:hover { background: var(--bg-2); }
.exp-row__media { flex: 0 0 40%; max-width: 260px; aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.exp-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.75) contrast(1.05) sepia(0.08); transition: transform 1s var(--ease), filter 0.8s var(--ease); }
.exp-row:hover .exp-row__media img { transform: scale(1.05); filter: saturate(0.95) contrast(1.03) sepia(0.03); }
.exp-row__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.exp-row__body h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -0.01em; }
.exp-row__body p { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 980px) {
  .exp-list { grid-template-columns: 1fr; }
  .exp-row, .exp-row:nth-child(2n) { border-right: 0; }
  .exp-row__media { flex-basis: 36%; max-width: 320px; }
}
@media (max-width: 480px) {
  .exp-row { gap: 14px; }
  .exp-row__media { flex-basis: 40%; }
  .exp-row__body h3 { font-size: 1.15rem; }
}
