/* =====================================================================
   World Meditation League — new website design
   Visual language: All Here charter (May 2026), as used by the QM3
   World Meditation Challenge standings. Cinematic navy, championship gold,
   glass panels, wide display capitals.
   ===================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "CY Grotesk Wide"; src: url("../fonts/cy-grotesk-wide-demi.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Light.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 300; font-style: italic; font-display: swap; src: url("../fonts/Montserrat-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/Montserrat-Italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Montserrat-Bold.woff2") format("woff2"); }
@font-face { font-family: "Grotzec Cond"; font-weight: 400; font-display: swap; src: url("../fonts/GrotzecCond-Regular3.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* All Here graphic charter (May 2026): primary "All Here Blue" (digital) + the seven logo colours */
  --bg: #00102E;
  --bg-2: #021a42;
  --bg-3: #072656;
  --glass: rgba(255, 255, 255, .05);
  --glass-2: rgba(255, 255, 255, .08);
  --input: #12203b;
  --line: rgba(255, 255, 255, .14);
  --line-2: rgba(255, 255, 255, .28);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .80);
  --dim: #b4b4b4;
  --red: #F70000;
  --orange: #F58F0A;
  --yellow: #FFD400;
  --green: #398200;
  --blue: #4075D6;
  --blue-deep: #1B498C;
  --purple: #9E3694;
  --gold: #F4B400;                /* accent colour = WML gold (slightly darker than charter yellow) */
  --gold-soft: rgba(244, 180, 0, .27);
  --spectrum: linear-gradient(90deg, var(--red) 0 14.28%, var(--orange) 0 28.57%, var(--yellow) 0 42.85%, var(--green) 0 57.14%, var(--blue) 0 71.42%, var(--blue-deep) 0 85.71%, var(--purple) 0);

  --f-body: "Montserrat", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --f-display: "CY Grotesk Wide", "Montserrat", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-cond: "Grotzec Cond", "Montserrat", sans-serif;

  --r-card: 20px;
  --r-pill: 50px;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(130% 70% at 50% -10%, var(--bg-3) 0%, rgba(7,38,86,0) 55%), linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 40%) fixed;
  background-color: var(--bg);
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; }
.skip:focus { left: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.08;
  font-size: clamp(26px, 3.4vw, 44px); text-wrap: balance;
}
:lang(ja) .display, .lang-ja .display { letter-spacing: .02em; line-height: 1.3; text-transform: none; }
.eyebrow {
  font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.lang-ja .eyebrow { letter-spacing: .12em; }
.hairline { display: none; }
.sec-head { margin-bottom: 40px; }
.sec-head .eyebrow { margin-bottom: 14px; }

/* Rich text captured from the live site */
.rich { color: var(--muted); }
.rich p, .rich li { font-size: 16px; line-height: 1.75; }
.rich p + p { margin-top: .2em; }
.rich h1, .rich h2, .rich h3, .rich h4, .rich h5, .rich h6 { font-family: var(--f-display); font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .04em; line-height: 1.2; }
.lang-ja .rich h1, .lang-ja .rich h2, .lang-ja .rich h3, .lang-ja .rich h4, .lang-ja .rich h5, .lang-ja .rich h6 { text-transform: none; letter-spacing: .02em; }
.rich ul, .rich ol { padding-left: 1.2em; }
.rich li::marker { color: var(--gold); }
.rich a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.rich .gold { color: var(--gold); }
.rich .i { font-style: italic; }
.rich .b, .rich strong, .rich b { font-weight: 600; color: var(--text); }
.rich .u { text-decoration: underline; }
.t-xl h1, .t-xl h2, .t-xl h3, .t-xl p { font-size: clamp(24px, 3vw, 38px); }
.t-lg h1, .t-lg h2, .t-lg h3, .t-lg h4, .t-lg h5, .t-lg p { font-size: clamp(20px, 2.4vw, 30px); }
.t-md h1, .t-md h2, .t-md h3, .t-md h4, .t-md h5, .t-md h6 { font-size: clamp(16px, 1.6vw, 20px); }
.t-md p { font-size: 18px; color: var(--text); }
.t-sm h1, .t-sm h2, .t-sm h3, .t-sm h4, .t-sm h5, .t-sm h6 { font-size: 14px; letter-spacing: .12em; color: var(--gold); }
.t-body h4, .t-body h5, .t-body h6 { font-size: 14px; letter-spacing: .12em; color: var(--gold); margin-bottom: .4em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 28px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-2); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.lang-ja .btn { letter-spacing: .08em; font-size: 12px; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: translateY(101%); transition: transform .35s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--bg); border-color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn-gold::before { background: #fff; }
.btn-gold:hover { border-color: #fff; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 10.5px; }
.btn:disabled { opacity: .5; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled, .site-header.is-open { background: rgba(0, 16, 46, .82); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
/* Mobile menu open: no blur on the header. A blur (backdrop-filter) makes the header the frame of the fixed
   menu panel, which then gets squeezed into the header's 72px — the menu items were cut off on phones. */
.site-header.is-open { background: #00102E; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar { display: flex; align-items: center; gap: 20px; max-width: 1440px; margin: 0 auto; padding: 14px var(--pad); }
.brand img { height: 40px; width: auto; }
.brand-home { display: inline-flex; align-items: center; padding: 10px 0; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); transition: color .2s; white-space: nowrap; }
.brand-home:hover, .brand-home[aria-current] { color: var(--gold); }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; cursor: pointer; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s;
}
.lang-ja .nav-link { font-family: var(--f-body); letter-spacing: .04em; font-size: 13px; }
.nav-link:hover, .is-active > .nav-link { color: var(--gold); }
.chev { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.has-sub { position: relative; }
.has-sub.open .chev { transform: rotate(-135deg) translateY(-1px); }
.sub {
  position: absolute; left: 50%; top: calc(100% + 10px); min-width: 250px; padding: 10px; list-style: none; margin: 0;
  transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  background: rgba(8, 20, 49, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.sub a:hover, .sub a[aria-current] { background: var(--glass-2); color: var(--gold); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.lang a { padding: 5px 11px; border-radius: var(--r-pill); font-family: var(--f-display); font-weight: 600; font-size: 10px; letter-spacing: .14em; text-decoration: none; color: var(--dim); }
.lang a[aria-current] { background: var(--glass-2); color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .hero-bg video, .hero-img { width: 100%; height: 100%; object-fit: cover; }
/* Heroes with a photo: the whole photo is shown (never cropped), full width, title below it */
.hero.has-img { margin-top: 0; }
.hero.has-img .hero-bg { position: relative; inset: auto; z-index: 0; display: flex; justify-content: center; overflow: hidden; background: var(--bg-2); }
.hero.has-img .hero-bg .hero-img { position: relative; z-index: 1; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 72px); object-fit: contain; }
.hero.has-img.hero-page { padding-top: 0; }
.hero.has-img .hero-inner { padding-top: clamp(40px, 6vw, 72px); }
.hero.has-img.hero-post { padding-top: 0; }
.hero.has-img::before { content: none; background: linear-gradient(180deg, rgba(0,16,46,.55) 0%, rgba(0,16,46,.45) 40%, var(--bg) 100%), radial-gradient(80% 60% at 50% 40%, rgba(0,16,46,0), rgba(0,16,46,.5)); }
.hero.has-texture::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,16,46,.55) 0%, rgba(0,16,46,.45) 40%, var(--bg) 100%), radial-gradient(80% 60% at 50% 40%, rgba(0,16,46,0), rgba(0,16,46,.5)); }
.hero-page { padding: clamp(110px, 16vw, 200px) 0 clamp(70px, 9vw, 120px); text-align: center; margin-top: -72px; }
.hero-page:not(.has-img)::after { content: ""; position: absolute; left: 50%; top: 30%; width: 60vw; height: 40vw; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(closest-side, rgba(244,180,0,.13), transparent); filter: blur(10px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; transform: translate(-50%, -50%) scale(1.08); } }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-inner .hairline { margin: 0 0 6px; width: 64px; }
.hero-title { font-size: clamp(30px, 5.2vw, 68px); max-width: 15ch; }
.lang-ja .hero-title { max-width: 22ch; }
.hero-sub { max-width: 760px; color: var(--muted); }
.hero-sub h1, .hero-sub h2, .hero-sub h3, .hero-sub h4, .hero-sub h5, .hero-sub h6, .hero-sub p { font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: clamp(16px, 1.8vw, 22px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.hero-post { padding: clamp(120px, 15vw, 180px) 0 clamp(50px, 7vw, 80px); margin-top: -72px; }
.hero-post .hero-inner { align-items: flex-start; text-align: left; }
.hero-post .hero-title { max-width: 26ch; font-size: clamp(26px, 4vw, 48px); }
.back { font-size: 13px; color: var(--dim); text-decoration: none; letter-spacing: .06em; }
.back:hover { color: var(--gold); }
.narrow { max-width: 880px; }

/* ---------- Sections ---------- */
.band { position: relative; padding: var(--sec) 0; border-top: 1px solid var(--line); }
.band-alt { background: linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,0)); }
.flow > * + * { margin-top: 28px; }
.center-flow { max-width: 980px; }
.center-flow > .rich { max-width: 820px; margin-left: auto; margin-right: auto; }
.center-flow > .rich.t-xl, .center-flow > .rich.t-lg { text-align: center; }
.center-flow > .btn { display: flex; width: max-content; margin-left: auto; margin-right: auto; }
.split-grid { display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head .display { font-size: clamp(22px, 2.4vw, 32px); }
.split-head .eyebrow { margin-top: 16px; }
.split-head .rich { margin-top: 12px; }
.split-body > .btn { margin-top: 32px; }

/* media */
.media, .post-fig { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--glass); }
.media img, .post-fig img { width: 100%; }
.media-link { display: block; transition: transform .4s var(--ease), border-color .3s; }
.media-link:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
[data-zoom] { cursor: zoom-in; }
.post-fig figcaption { padding: 12px 16px; font-size: 13px; color: var(--dim); }

/* grids produced from side-by-side content */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); align-items: start; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { display: flex; flex-direction: column; gap: 14px; }
.cell .media img { height: auto; }
.cell .rich p { font-size: 15px; }

/* gallery */
.gallery { position: relative; }
/* track: one whole (uncropped) photo per view; swipe / scroll with snap */
.gallery:not(.carousel), .car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--bg-2); }
.gallery:not(.carousel)::-webkit-scrollbar, .car-track::-webkit-scrollbar { display: none; }
.gallery figure { position: relative; flex: 0 0 100%; scroll-snap-align: center; height: clamp(300px, 74vh, 780px); display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0; }
.gallery figure img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.car-stage { position: relative; }
.car-btn { position: absolute; top: 50%; z-index: 3; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,16,46,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.car-btn:hover { border-color: var(--gold); color: var(--gold); }
.car-prev { left: 16px; } .car-next { right: 16px; }
.car-count { position: absolute; z-index: 3; right: 16px; bottom: 14px; padding: 5px 12px; border-radius: var(--r-pill); background: rgba(0,16,46,.7); font-family: var(--f-display); font-size: 11px; letter-spacing: .14em; }
.car-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.car-thumbs button { flex: 0 0 auto; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-3); cursor: pointer; opacity: .55; transition: opacity .25s, border-color .25s; }
.car-thumbs button:hover { opacity: .9; }
.car-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.car-thumbs img { height: 100%; width: auto; max-width: none; }
.post-gallery { margin-top: 48px; }

/* glass cards */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cards { display: grid; gap: 24px; }
.cards.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden; background: var(--glass); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.card:hover { transform: translateY(-6px); border-color: var(--gold-soft); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.card-media { overflow: hidden; background: var(--bg-3); }
.card-img { width: 100%; height: auto; transition: opacity .4s var(--ease); }
.card:hover .card-img { opacity: .9; }
.card-img.ph { display: block; aspect-ratio: 16 / 10; background: radial-gradient(circle at 30% 30%, var(--blue-deep), var(--bg)); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .05em; line-height: 1.35; text-transform: uppercase; }
.lang-ja .card-body h3 { text-transform: none; font-family: var(--f-body); font-size: 16px; letter-spacing: .02em; }
.card-body .muted { font-size: 14px; line-height: 1.6; }
.feature-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }

/* video (click to load) */
.yt { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #000; }
.yt iframe, .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { cursor: pointer; padding: 0; background: radial-gradient(circle at 50% 40%, var(--bg-3), #000) center / cover no-repeat; }
.yt-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,16,46,.1), rgba(0,16,46,.55)); transition: opacity .3s; }
.yt-play:hover::after { opacity: .4; }
.yt-title { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; text-align: left; font-size: 14px; font-weight: 600; }
/* play button scales with the video: small on small video cards, at most 68px */
.yt { container-type: inline-size; }
.yt-icon { --s: clamp(38px, 11cqi, 68px); position: absolute; z-index: 1; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: rgba(244,180,0,.92); box-shadow: 0 0 0 calc(var(--s) * .1) rgba(244,180,0,.18); transition: transform .3s var(--ease), box-shadow .3s; }
.yt-icon::after { content: ""; position: absolute; left: 39%; top: 31%; width: 30%; height: 38%; background: var(--bg); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.yt-play:hover .yt-icon { transform: scale(1.08); }

/* logo tiles */
.logo-tile { display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 120px; border-radius: 16px; background: #fff; }
.logo-tile svg, .logo-tile img { max-height: 70px; width: auto; }

/* long letter */
.longtext .letter { white-space: pre-line; color: var(--muted); line-height: 1.8; max-height: 22em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); transition: max-height .6s var(--ease); }
.longtext.is-open .letter { max-height: 400em; -webkit-mask-image: none; mask-image: none; }
.longtext .btn { margin-top: 18px; }
.longtext.is-open .btn { display: none; }

/* prose (articles, policies) */
.prose { max-width: 780px; color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { font-size: 17px; line-height: 1.8; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; margin-top: 1.8em; }
.lang-ja .prose h1, .lang-ja .prose h2, .lang-ja .prose h3, .lang-ja .prose h4 { text-transform: none; letter-spacing: .02em; }
.prose h1 { font-size: 26px; } .prose h2 { font-size: 22px; } .prose h3, .prose h4 { font-size: 17px; }
.prose a { color: var(--gold); word-break: break-word; }
.prose, .rich { overflow-wrap: anywhere; }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { border-left: 2px solid var(--gold); padding: 6px 0 6px 22px; font-style: italic; color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
/* Tables (privacy / cookie policies): readable first column, no words broken mid-word */
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.65; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prose td, .prose th { padding: 14px 18px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: rgba(255,255,255,.06); color: var(--text); font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.prose td:first-child, .prose th:first-child { width: 30%; min-width: 170px; color: var(--text); font-weight: 600; border-right: 1px solid var(--line); }
.prose tbody tr:nth-child(even) td { background: rgba(255,255,255,.025); }
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose td { border-bottom: 0; padding: 4px 16px; }
  .prose td:first-child { width: 100%; min-width: 0; border-right: 0; padding-top: 14px; }
  .prose tr { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .prose tr:last-child { border-bottom: 0; }
  .prose tbody tr:nth-child(even) td { background: none; }
  .prose tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
}
.prose .post-fig, .prose .yt { margin-top: 2em; margin-bottom: 2em; }
.policy .prose { max-width: 860px; }

/* ---------- "Inspire to Meditate" band ---------- */
.inspire { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(110px, 14vw, 200px) 0; border-top: 1px solid var(--line); }
.inspire-bg { position: absolute; inset: 0; z-index: -1; background: url("../images/earth-banner.webp") center 70% / cover no-repeat; opacity: .55; }
.inspire::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(0,16,46,.2) 45%, var(--bg) 100%); }
.inspire .wrap { display: flex; flex-direction: column; align-items: center; }
.inspire-h { font-size: clamp(30px, 5vw, 64px); }
.inspire-sub { margin-top: 14px; font-family: var(--f-display); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(12px, 1.4vw, 15px); color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: linear-gradient(180deg, var(--bg), #030a19); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: stretch; }
.newsletter { padding: 32px; }
.foot-h { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.lang-ja .foot-h { text-transform: none; font-family: var(--f-body); font-size: 16px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.nl-form input[type=email] { flex: 1 1 260px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--input); color: #fff; font: 15px var(--f-body); }
.nl-form input::placeholder { color: var(--dim); }
.nl-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.nl-form .btn { min-height: 48px; }
.nl-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-msg { flex-basis: 100%; min-height: 1.4em; font-size: 14px; color: var(--gold); }
.nl-msg.err { color: #ff9b8f; }
.follow { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); }
.follow .muted { font-size: 14px; margin-top: 6px; }
.social { display: flex; gap: 12px; list-style: none; padding: 0; margin: 22px 0 0; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; transition: border-color .25s, background .25s, transform .25s; }
.social a:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: #fff; stroke: none; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.foot-brand img { height: 56px; width: auto; }
.foot-brand address { margin-top: 18px; font-style: normal; color: var(--dim); font-size: 14px; line-height: 1.7; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col .eyebrow { margin-bottom: 6px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 14px; width: max-content; }
.foot-col a:hover { color: var(--gold); }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: var(--dim); text-decoration: none; }
.legal-links a:hover { color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; background: rgba(3, 8, 20, .94); backdrop-filter: blur(8px); }
.lightbox figure { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 92vh; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 12px; }
.lightbox figcaption { color: var(--dim); font-size: 14px; }
.lightbox button { background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; opacity: .75; }
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lb-close { position: absolute; top: 14px; right: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 10px 8px; font-size: 10.5px; letter-spacing: .1em; }
  .cta { display: none; }
}
@media (max-width: 980px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 72px 0 0 0; height: calc(100dvh - 72px); display: block; padding: 24px var(--pad) 40px; overflow-y: auto; background: #00102E;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 2px; font-size: 13px; }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; display: none; min-width: 0; padding: 0 0 12px; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .has-sub.open .sub { display: block; }
  .has-sub .sub, .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { transform: none; }  /* desktop centring off on phones */
  .sub a { font-size: 13px; padding: 12px 14px; }
  .bar-end { margin-left: auto; }
  .split-grid { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .g-3, .g-4, .cards.g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-top { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand img { height: 32px; }
  .bar { padding: 12px 16px; gap: 10px; }
  .lang a { padding: 5px 9px; }
  .g-2, .g-3, .g-4, .cards.g-2, .cards.g-3 { grid-template-columns: 1fr; }
  .gallery figure { height: clamp(260px, 62vh, 560px); }
  .car-btn { width: 40px; height: 40px; margin-top: -20px; font-size: 20px; }
  .car-prev { left: 8px; } .car-next { right: 8px; }
  .car-thumbs button { height: 56px; }
  .rich p, .rich li, .prose p, .prose li { font-size: 16px; }
  .newsletter, .follow { padding: 24px; }
  .foot-legal { flex-direction: column; }
  .lightbox { grid-template-columns: 40px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Home page
   ===================================================================== */
.hero-home { position: relative; height: min(100svh, 920px); min-height: 560px; margin-top: -72px; overflow: hidden; isolation: isolate; background: #000; }
.hero-home .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.hero-home .slide.is-active { opacity: 1; visibility: visible; }
.hero-home .slide-media { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.hero-home .slide::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,16,46,.72) 0%, rgba(0,16,46,.25) 45%, rgba(0,16,46,0) 70%), linear-gradient(180deg, rgba(0,16,46,0) 70%, rgba(0,16,46,.75) 100%); }
.slide-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 72px; }
.slide-title { font-size: clamp(30px, 5vw, 66px); max-width: 15ch; }
.slide-lead { margin-top: 26px; font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: .02em; max-width: 30ch; line-height: 1.25; }
.slide-sub { margin-top: 8px; color: var(--gold); font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.hero-home .hero-actions { justify-content: flex-start; margin-top: 34px; }
.slide.is-active .slide-content > * { animation: rise 1s var(--ease) both; }
.slide.is-active .slide-content > *:nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide-content > *:nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide-content > *:nth-child(4) { animation-delay: .24s; }
.slide.is-active .slide-content > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slider-ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; display: flex; justify-content: space-between; align-items: center; }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button { position: relative; width: 44px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.25); cursor: pointer; overflow: hidden; }
.slider-dots button::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.slider-dots button[aria-current="true"]::after { animation: progress var(--progress-dur, 7s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.slider-arrows { display: flex; gap: 10px; }
.slider-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,16,46,.35); font-size: 24px; line-height: 1; cursor: pointer; transition: border-color .25s, color .25s; }
.slider-arrows button:hover { border-color: var(--gold); color: var(--gold); }

/* QM3 standings */
.standings-home { padding: var(--sec) 0 calc(var(--sec) * .6); border-top: 1px solid var(--line); }
.standings-frame { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.standings-frame .ahl { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.45), 0 0 0 1px rgba(244,180,0,.06); }
.standings-frame .ahl__wrap { height: min(88vh, 860px); min-height: 620px; }
.standings-cta { display: flex; justify-content: center; margin-top: 32px; }
.standings-full .ahl__wrap { height: calc(100svh - 72px); min-height: 640px; }
/* The site header and footer replace the widget's own */
.ahl .ahl__nav, .ahl .ahl__foot { display: none !important; }

/* Feature (video + text) */
.feature-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature-grid.reverse .feature-media { order: 2; }
.feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.feature-text .display { font-size: clamp(24px, 2.8vw, 38px); }
.lead { font-family: var(--f-body); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; }
.lead-sm { font-weight: 600; font-size: 17px; }
.feature-text .btn { margin-top: 8px; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.card-more { margin-top: auto; padding-top: 8px; font-family: var(--f-display); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card-more::after { content: " →"; transition: margin .3s var(--ease); }
.card:hover .card-more::after { margin-left: 6px; }
.card-body { flex: 1; }
.card-lg .card-body h3 { font-size: 20px; }
.card-media.tall { background: #fff; }

/* What is WML */
.tagline { margin-top: 18px; font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 2vw, 22px); letter-spacing: .18em; color: var(--gold); font-style: italic; }
.pillars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.pillar { grid-column: span 2; }
.pillar-wide ~ .pillar { grid-column: span 3; }
.pillar { padding: 30px 28px; transition: border-color .3s, transform .4s var(--ease); }
.pillar:hover { border-color: var(--gold-soft); transform: translateY(-4px); }
.pillar h3 { font-style: italic; font-weight: 500; font-size: 17px; color: var(--gold); margin-bottom: 12px; line-height: 1.35; }
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.pillar.pillar-wide { grid-column: 1 / -1; padding: 40px clamp(28px, 5vw, 64px); background: linear-gradient(135deg, rgba(244,180,0,.10), rgba(255,255,255,.03)); }
.pillar-wide h3 { font-size: 22px; }
.pillar-wide p { font-size: 17px; }
.dots { display: flex; justify-content: center; gap: clamp(14px, 3vw, 34px); list-style: none; padding: 0; margin: 56px 0 0; }
.dots li { width: 14px; height: 14px; border-radius: 50%; }
.dots li:nth-child(1) { background: var(--red); } .dots li:nth-child(2) { background: var(--orange); } .dots li:nth-child(3) { background: var(--yellow); } .dots li:nth-child(4) { background: var(--green); }
.dots li:nth-child(5) { background: var(--blue); } .dots li:nth-child(6) { background: var(--blue-deep); } .dots li:nth-child(7) { background: var(--purple); }
.allhere-logo { width: 210px; }
.big { font-size: 19px; line-height: 1.6; color: var(--text); }

/* Founder */
.founder-card { margin-top: 32px; overflow: hidden; max-width: 320px; }
.founder-photo { width: 100%; height: auto; }
.founder-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 24px; }
.founder-card strong { font-family: var(--f-display); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.founder-card span:last-child { color: var(--muted); font-size: 14px; }
.founder .letter { font-size: 17px; }

/* Milestones */
.milestones { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); }
.milestones .display { font-size: clamp(20px, 2.2vw, 28px); }
.milestones .sec-head { margin-bottom: 26px; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.partner { padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.partner .logo-tile { min-height: 110px; }
.partner .logo-tile img, .partner .logo-tile svg { max-height: 64px; width: auto; }
.partner p { font-size: 14px; line-height: 1.65; padding: 0 6px 6px; }

@media (max-width: 1100px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .feature-grid, .milestones { grid-template-columns: 1fr; }
  .feature-grid.reverse .feature-media { order: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar-wide ~ .pillar { grid-column: auto; }
  .partners { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-home { min-height: 600px; height: 92svh; }
  .slide-content { justify-content: flex-end; padding-bottom: 120px; }
  .hero-home .slide::after { background: linear-gradient(180deg, rgba(0,16,46,.3) 0%, rgba(0,16,46,.55) 45%, rgba(0,16,46,.95) 100%); }
  .slider-arrows button { width: 40px; height: 40px; }
  .pillars, .partners { grid-template-columns: 1fr; }
  .standings-frame { padding: 0; }
  .standings-frame .ahl { border-radius: 0; border-left: 0; border-right: 0; }
  .standings-frame .ahl__wrap, .standings-full .ahl__wrap { height: auto; min-height: 0; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* News announcement cards */
.news-card .card-media-free > * { border-radius: 0; border: 0; margin: 0; }
.news-card .card-media-free .media img { height: auto; }
.news-card .card-body .rich p, .news-card .card-body .rich h2, .news-card .card-body .rich h3 { font-size: 15px; }
.news-card .card-body .btn { margin-top: auto; align-self: flex-start; }
.hv video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-card); border: 1px solid var(--line); background: #000; object-fit: contain; }

/* ---------- Uncropped photos ----------
   Photos keep their full frame. Where a photo sits in a box of another shape (hero, slider, carousel),
   the empty space is filled with a soft blurred copy of the same photo (set by site.js as --bd). */
.has-bd { isolation: isolate; }
.has-bd::before { content: ""; position: absolute; inset: -40px; z-index: 0; background: var(--bd) center / cover no-repeat; filter: blur(34px) brightness(.45) saturate(1.2); transform: scale(1.1); pointer-events: none; }
.has-bd > img, .has-bd > video { position: relative; z-index: 1; }
.hero-home .has-bd > .slide-media { position: absolute; }

/* ---------- All Here charter colour accents ---------- */
.band-alt { background: linear-gradient(180deg, rgba(27,73,140,.16), rgba(27,73,140,0)); }
/* QM3 standings widget: same charter colours as the site */
body .ahl { --ahl-bg: #00102E; --ahl-accent: #F4B400; --ahl-accent-soft: rgba(244, 180, 0, .27); --ahl-gold: #F4B400; }
/* Gallery carousels use the full content width, even inside narrower text columns */
.center-flow > .gallery { width: min(1104px, calc(100vw - 2 * var(--pad) - 16px)); margin-left: 50%; translate: -50% 0; }
@media (max-width: 640px) {
  .center-flow > .gallery { width: 100%; margin-left: 0; translate: none; }
  .gallery figure { height: clamp(240px, 100vw, 480px); }
}

/* Photo cells of one section share the same size (ratio set by site.js from the section's photos).
   The whole photo stays visible; any small gap is filled with a blurred copy of the photo. */
.media.same, .card-media.same { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-3); }
.cell .media.same { border-radius: 14px; }
.media.same > img, .card-media.same > img, .news-card .card-media-free .media.same img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Team page ----------
   Like the live site: every team photo in the same frame (260 × 282), black & white. */
.team-grid .media { aspect-ratio: 260 / 282; border-radius: 14px; overflow: hidden; }
.team-grid .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.08); }
/* Our Collaborators: one row per organisation — logo on white, then its description */
.collabs { display: grid; gap: 22px; }
.collab { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 32px; align-items: center; }
.collab .logo-tile { min-height: 124px; padding: 18px 22px; transition: transform .3s var(--ease); }
.collab .logo-tile:hover { transform: translateY(-3px); }
.collab .logo-tile img, .collab .logo-tile svg { max-height: 84px; max-width: 100%; width: auto; height: auto; }
@media (max-width: 640px) {
  .collab { grid-template-columns: 1fr; gap: 14px; }
  .collab .logo-tile { min-height: 104px; }
}

/* ---------- Bengaluru QM page ---------- */
.blr-date { margin-top: 6px; }
.hero-page .lead + .blr-date, .hero-page .eyebrow + .hero-title { margin-top: 14px; }
.blr-rounds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.blr-round { padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.blr-round .display { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; margin-bottom: 4px; }
.blr-round p, .blr-measure p { color: var(--text-2, rgba(255,255,255,.8)); line-height: 1.75; }
.blr-people { margin-top: 40px; }
.blr-name { margin-top: 18px; font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; }
.blr-role { color: var(--gold); font-weight: 600; font-size: 14px; margin: 4px 0 10px; }
.blr-people .cell p:last-child { line-height: 1.7; color: rgba(255,255,255,.8); }
.blr-measures { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0; }
.blr-measure { padding: 26px; }
.blr-measure h3 { font-family: var(--f-display); font-size: 16px; line-height: 1.35; margin-bottom: 10px; color: var(--gold); }
.blr-close { text-align: center; align-items: center; }
.blr-close .sec-head { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 860px) { .blr-rounds, .blr-measures { grid-template-columns: 1fr; } }
.blr-paras p + p { margin-top: 1em; }
/* Home: photo used as a feature's media (Geneva Polo Club) */
.feature-photo { display: block; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.feature-photo img { width: 100%; height: auto; transition: opacity .3s; }
.feature-photo:hover img { opacity: .9; }
/* WML launch 2024 milestone card: text in normal (white) colour */
.card-white .card-body p { color: var(--text); }
/* Policy pages: the policy text sits inside an <article>, so give it the same spacing as other text */
.prose > article > * + * { margin-top: 1.1em; }
.prose > article > h2, .prose > article > h3, .prose > article > h4 { margin-top: 2.2em; }
.prose > article > h2 + *, .prose > article > h3 + *, .prose > article > h4 + * { margin-top: .8em; }
.prose > article > h1 { margin-top: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.prose > article > h2 { padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose > article > h1 + h2 { border-top: 0; padding-top: 0; }
.policy { padding-top: clamp(64px, 7vw, 100px); }
/* News cards that are a video only: click opens the video large on the page */
.card-video { cursor: pointer; }
.card-video:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vlight { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); background: rgba(0,10,30,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vlight[hidden] { display: none; }
.vlight-box { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 100%; border-radius: var(--r-card); overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.vlight-box iframe, .vlight-box video { width: 100%; height: 100%; border: 0; display: block; }
.vlight-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,16,46,.7); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.vlight-close:hover { border-color: var(--gold); color: var(--gold); }
html.no-scroll { overflow: hidden; }

/* ---------- Full-screen header photos (20 Nov 2026) ----------
   Homepage slider and the main event pages (Tokyo QM, Geneva QM, Bengaluru QM, Attention Capital):
   the top photo fills the whole screen; the title and text follow below it. */
.hero-home { height: 100svh; min-height: 520px; }
.hero-home .slide-media { object-fit: cover; }
.hero.has-img.hero-full .hero-bg { height: 100svh; min-height: 480px; }
.hero.has-img.hero-full .hero-bg .hero-img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.hero.has-img.hero-full .hero-bg::before { display: none; }

/* ---------- Colour accents from the All Here brochure (20 Nov 2026) ----------
   Words and small details take the seven All Here colours, one per section / card,
   as on the Attention Capital page. Text itself is unchanged; buttons stay gold. */
main > section:nth-of-type(5n+1) { --acc: var(--orange); }
main > section:nth-of-type(5n+2) { --acc: var(--blue); }
main > section:nth-of-type(5n+3) { --acc: var(--green); }
main > section:nth-of-type(5n+4) { --acc: var(--purple); }
main > section:nth-of-type(5n+5) { --acc: var(--red); }
main .eyebrow { color: var(--acc, var(--gold)); }
main .split-head .display::after { content: ""; display: block; width: 64px; margin-top: 18px; border-top: 2px dotted var(--acc, var(--gold)); }
main .sec-head .display::after { content: ""; display: block; width: 64px; margin: 16px 0 0; border-top: 2px dotted var(--acc, var(--gold)); }
main .sec-head.center .display::after, main .center-flow .sec-head .display::after { margin-left: auto; margin-right: auto; }
main .rich ul li::marker { color: var(--acc, var(--gold)); }

/* cards, pillars, partner boxes: one colour each, in turn */
main :is(.card, .pillar, .partner, .blr-round, .blr-measure, .cell) { --c: var(--orange); }
main :is(.card, .pillar, .partner, .blr-round, .blr-measure, .cell):nth-child(5n+2) { --c: var(--blue); }
main :is(.card, .pillar, .partner, .blr-round, .blr-measure, .cell):nth-child(5n+3) { --c: var(--green); }
main :is(.card, .pillar, .partner, .blr-round, .blr-measure, .cell):nth-child(5n+4) { --c: var(--purple); }
main :is(.card, .pillar, .partner, .blr-round, .blr-measure, .cell):nth-child(5n+5) { --c: var(--red); }
main :is(.card, .pillar, .partner, .blr-round, .blr-measure) { border-top: 3px solid var(--c); }
main .card:hover, main .pillar:hover { border-color: var(--line); border-top-color: var(--c); }
main .pillar h3, main .blr-measure h3, main .blr-role, main .card-more { color: var(--c); }
main .pillar.pillar-wide { background: linear-gradient(135deg, rgba(64,117,214,.14), rgba(158,54,148,.08) 60%, rgba(255,255,255,.03)); }
