/* =========================================================
   GINZA — Japanese Medical Consulting • Beauty Center
   Brand tokens follow the Ginza brandbook (color code, fonts)
   ========================================================= */

:root {
  /* GINZA Brand Guidelines v3.0 (2026.10)
     60% Dark base · 25% White · 15% accents. Lime leads the website;
     Ember (promotions, membership) and Blossom (beauty) stay in small details. */
  --lime: #96D13F;
  --ember: #FF6D29;
  --blossom: #EF5FA5;
  --dark: #2B2621;
  --forest: #24400F;  --moss: #5E8A25;     /* lime family */
  --copper: #9A3C16;  --clay: #2B2621;     /* ember family */
  --plum: #5A1235;    --rose: #F9BFDB;     /* blossom family */

  /* Surfaces (backgrounds) */
  --bg: var(--dark);
  --surface: #18181B;
  --surface-2: #1E1E22;
  --surface-hi: #26262B;
  /* Ink (text on dark) */
  --fg: #FFFFFF;
  --fg-soft: #E9E9E6;
  --fg-muted: #BABABA;     /* brandbook secondary text */
  --on-accent: var(--dark);

  /* Legacy token names, mapped onto the new brand */
  --olive: var(--lime);          /* primary accent */
  --olive-deep: var(--moss);
  --olive-soft: var(--forest);
  --olive-ink: var(--dark);
  --cream: #F2F2F0;
  --sand: var(--lime);           /* numbers, rules, small marks */
  --paper: #FFFFFF;
  --paper-2: var(--surface);
  --ink: var(--dark);
  --muted: var(--fg-muted);
  --white: #FFFFFF;
  --line: rgba(255, 255, 255, 0.1);

  /* Type: Poppins for headlines, labels and numbers (Latin);
     Montserrat for body copy and all Mongolian Cyrillic (Poppins has none).
     Playfair Display italic marks a single accent word. */
  --f-body: "Montserrat", sans-serif;
  --f-latin: "Poppins", "Montserrat", sans-serif;
  --f-accent: "Playfair Display", "Montserrat", serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-synthesis: none; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Shared typography ---------- */

.eyebrow {
  font-family: var(--f-latin);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.on-dark .eyebrow { color: var(--fg-soft); }

.h-display {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.08;
}
.h-section {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
}
.on-dark .h-section { color: var(--fg); }
.h-section em, .h-display em {
  font-style: italic;
  color: var(--olive);
}
.on-dark .h-section em, .on-dark .h-display em { color: var(--fg-soft); }

/* English accent line — brand fonts only (Lao MN, Montserrat italic fallback) */
.script {
  font-family: var(--f-latin);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--olive);
  line-height: 1.3;
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--fg-muted);
  max-width: 60ch;
}
.on-dark .lead { color: rgba(251, 247, 240, .82); }

.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-latin);
  font-size: 13.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--olive); color: var(--fg); }
.btn-primary:hover { background: var(--olive-deep); }
.btn-light { background: var(--surface-hi); color: var(--fg); }
.btn-light:hover { background: var(--bg); }
.btn-ghost { border-color: currentColor; color: var(--fg); }
.btn-ghost:hover { background: var(--olive); border-color: var(--olive); color: var(--fg); }
.on-dark .btn-ghost { color: var(--fg); border-color: rgba(251, 247, 240, .5); }
.on-dark .btn-ghost:hover { background: var(--bg); color: var(--fg); border-color: var(--paper); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--fg);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 22px;
}
.site-header.is-scrolled {
  background: rgba(251, 247, 240, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--olive);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; color: inherit; }
.brand .mark { width: 46px; height: 39px; flex: none; }
.brand .word { width: 190px; height: 22px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a:not(.btn) {
  font-size: 15px;
  position: relative;
  padding-block: 4px;
  opacity: .9;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-header .btn { padding: 11px 22px; font-size: 12.5px; }
.site-header:not(.is-scrolled) .btn-primary { background: var(--surface-hi); color: var(--fg); }
.site-header:not(.is-scrolled) .btn-primary:hover { background: var(--bg); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 8px; margin-right: -8px;
}
.menu-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .35s var(--ease), opacity .35s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--olive);
  color: var(--fg);
  overflow: hidden;
  display: flex; align-items: center;
  padding-block: 130px 90px;
}
.hero-mark {
  position: absolute;
  width: min(68vw, 880px);
  aspect-ratio: 330 / 281;
  left: -12vw; top: 50%;
  transform: translateY(-50%);
  color: var(--fg-soft);
  opacity: .12;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.hero-copy { display: grid; gap: 28px; }
.hero-copy .h-display { color: var(--fg); }
.hero-copy .h-display .script {
  display: block;
  font-size: 15px;
  color: var(--fg-soft);
  margin-bottom: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 18px 40px;
  margin-top: 26px; padding-top: 26px;
  border-top: 1px solid rgba(242, 232, 217, .28);
}
.hero-facts strong { display: block; font-weight: 700; font-size: 15px; color: var(--fg); }
.hero-facts span { font-size: 14px; color: rgba(251, 247, 240, .72); }

.hero-visual { position: relative; justify-self: end; width: min(100%, 470px); }
.arch {
  border-radius: 999px 999px 22px 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5.6;
  background: var(--olive-soft);
  box-shadow: 0 40px 80px -30px rgba(35, 31, 27, .45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -54px; bottom: 46px;
  width: 132px; height: 132px;
  color: var(--fg);
  background: var(--surface-hi);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 20px 40px -18px rgba(35, 31, 27, .5);
}
.hero-badge svg.ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 38s linear infinite; }
.hero-badge svg.mark { width: 46px; height: 40px; color: var(--olive); }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--f-latin); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(251, 247, 240, .7);
  display: grid; justify-items: center; gap: 10px;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(rgba(251, 247, 240,.7), transparent); }

/* ---------- About / Philosophy ---------- */

.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.about-visual { position: relative; }
.about-visual .frame {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  position: relative;
}
.about-visual .frame::before {
  content: ""; position: absolute; inset: 7%;
  border-radius: 50%; border: 1px solid var(--line);
}
.about-visual .frame svg { width: 64%; height: auto; aspect-ratio: 330 / 281; color: var(--olive); }
.about-visual .kana {
  position: absolute; right: 2%; top: 4%;
  writing-mode: vertical-rl;
  font-size: 15px; letter-spacing: .5em;
  color: var(--olive);
}
.about-copy { display: grid; gap: 24px; }
.about-copy p + p { margin-top: -8px; }

.symbols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  margin-top: 16px;
}
.symbol { background: var(--bg); padding: 26px 22px; display: grid; gap: 10px; align-content: start; }
.symbol .ico { width: 38px; height: 38px; color: var(--olive); }
.symbol h3 { font-size: 18px; font-weight: 700; color: var(--fg); }
.symbol p { font-size: 15px; color: var(--fg-muted); line-height: 1.6; }

/* ---------- Principles ---------- */

.principles { background: var(--surface); }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 34px 28px 32px;
  display: grid; gap: 14px; align-content: start;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.principle:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(61, 55, 49, .4); }
.principle .jp { font-size: 13px; letter-spacing: .3em; color: var(--sand); }
.principle h3 { font-size: 21px; font-weight: 700; color: var(--fg); }
.principle p { font-size: 15.5px; color: var(--fg-muted); line-height: 1.65; }
.principle .num { font-family: var(--f-latin); font-size: 13px; color: var(--olive); letter-spacing: .2em; }

/* ---------- Services ---------- */

.services { background: var(--bg); }
.service-list { display: grid; gap: clamp(28px, 4vw, 44px); }
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: 520px;
  box-shadow: 0 1px 0 var(--line);
}
.service:nth-child(even) .service-media { order: 2; }
.service-media { position: relative; overflow: hidden; background: var(--surface); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service:hover .service-media img { --s: 1.2; }
.service-body { padding: clamp(32px, 5vw, 64px); display: grid; gap: 20px; align-content: center; }
.service-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.service-top .script { font-size: 13.5px; }
.service-top .num { font-family: var(--f-latin); color: var(--sand); font-size: 14px; letter-spacing: .2em; }
.service h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--fg); letter-spacing: .01em; }
.service p { color: var(--fg-muted); }
.checklist { display: grid; gap: 11px; margin-top: 4px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; }
.checklist li::before {
  content: ""; width: 7px; height: 7px; margin-top: 8px; margin-left: 4px;
  border-radius: 50%; background: var(--olive);
}

/* Japan card (typographic, no photo) */
.japan-art {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--surface-hi), var(--sand));
  display: grid; place-items: center;
  overflow: hidden;
}
.japan-art .sun {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 26px rgba(107, 127, 107,.12), 0 0 0 60px rgba(107, 127, 107,.07);
}
.japan-art .waves {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 34%;
  color: var(--fg);
  opacity: .8;
}
.japan-art .vert {
  position: absolute; right: 9%; top: 10%;
  writing-mode: vertical-rl;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .4em;
  color: var(--fg);
}
.japan-art .vert-sm {
  position: absolute; left: 9%; top: 10%;
  writing-mode: vertical-rl;
  font-family: var(--f-latin);
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  color: var(--fg); opacity: .7;
}

/* ---------- Journey (Japan medical support process) ---------- */

.journey { background: var(--olive); color: var(--fg); overflow: hidden; }
.journey .bg-mark {
  position: absolute; right: -10vw; bottom: -14vw;
  width: min(60vw, 760px); aspect-ratio: 330 / 281;
  color: var(--fg-soft); opacity: .08; pointer-events: none;
}
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px;
  background: rgba(242, 232, 217, .35);
}
.step { position: relative; padding-right: 26px; display: grid; gap: 14px; align-content: start; }
.step .dot {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(242, 232, 217, .5);
  background: var(--olive);
  display: grid; place-items: center;
  font-family: var(--f-latin); font-size: 15px; color: var(--fg-soft);
  position: relative;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.step:hover .dot { background: var(--surface-hi); color: var(--fg); }
.step h3 { font-size: 19px; font-weight: 700; color: var(--fg); margin-top: 8px; }
.step p { font-size: 15px; color: rgba(251, 247, 240, .75); line-height: 1.6; }
.journey-foot {
  margin-top: clamp(50px, 6vw, 80px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 36px; border-top: 1px solid rgba(242, 232, 217, .25);
}
.journey-foot p { max-width: 56ch; color: rgba(251, 247, 240, .82); }

/* ---------- Products ---------- */

.products { background: var(--bg); padding-bottom: clamp(48px, 6vw, 80px); }
.brand-block + .brand-block { margin-top: clamp(90px, 11vw, 150px); }

.brand-intro {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.brand-intro.reverse { grid-template-columns: .85fr 1.15fr; }
.brand-intro.reverse .brand-media { order: 2; }
.brand-media {
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--surface);
  position: relative;
}
.brand-media video, .brand-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.brand-copy { display: grid; gap: 18px; }
.brand-name {
  font-family: var(--f-latin);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: .08em;
  color: var(--fg);
  line-height: 1;
}
.brand-name small {
  display: block; margin-top: 12px;
  font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--olive);
}
.brand-copy p { color: var(--fg-muted); }
.brand-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.brand-facts span {
  font-size: 13.5px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); color: var(--fg);
}

.ritual {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.ritual div { padding: 20px 18px; display: grid; gap: 4px; }
.ritual div + div { border-left: 1px solid var(--line); }
.ritual b { font-family: var(--f-latin); font-weight: 400; font-size: 12px; letter-spacing: .24em; color: var(--sand); }
.ritual span { font-size: 16.5px; color: var(--fg); font-weight: 700; }
.ritual em { font-style: normal; font-size: 14px; color: var(--fg-muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip {
  border: 1px solid var(--line); background: transparent;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14.5px; color: var(--fg);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--olive); }
.chip[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--fg); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.product-grid[data-grid="infact"] { grid-template-columns: repeat(4, 1fr); }
.product {
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  text-align: left;
  border: 0; padding: 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(61, 55, 49, .45); }
.product:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.product[hidden] { display: none; }
.product-img {
  aspect-ratio: 4 / 5; background: var(--surface-2);
  position: relative; overflow: hidden;
}
.product-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.product:hover .product-img img { transform: scale(1.05); }
.product-img.contain img {
  inset: 26px 22px 8px;
  width: calc(100% - 44px); height: calc(100% - 34px);
  object-fit: contain;
}
.product-info { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.product-cat { font-family: var(--f-latin); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.product-name { font-family: var(--f-latin); font-size: 17.5px; color: var(--fg); line-height: 1.3; }
.product-desc { font-size: 14.5px; color: var(--fg-muted); line-height: 1.55; }
.product-more {
  margin-top: 8px; font-size: 13px; letter-spacing: .1em; color: var(--olive);
  display: inline-flex; align-items: center; gap: 8px;
}
.product-more svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.product:hover .product-more svg { transform: translateX(4px); }

.infact-banner {
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  margin-bottom: clamp(36px, 5vw, 56px);
  position: relative;
}
.infact-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
  margin-top: clamp(50px, 6vw, 80px);
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure:hover img { --s: 1.2; }

.note {
  margin-top: 34px; font-size: 14px; color: var(--fg-muted);
  padding: 18px 22px; border-left: 2px solid var(--sand); background: var(--surface);
  border-radius: 0 12px 12px 0;
}

/* Modal */
.modal {
  border: 0; padding: 0; margin: auto;
  width: min(920px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.modal::backdrop { background: rgba(47, 42, 37, .55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-inner { display: grid; grid-template-columns: 1fr 1.1fr; max-height: calc(100svh - 40px); }
.modal-media { background: var(--surface-2); display: grid; place-items: center; min-height: 100%; }
.modal-media img { width: 100%; height: 100%; max-height: calc(100svh - 40px); object-fit: cover; }
.modal-media.contain img { object-fit: contain; padding: 40px; }
.modal-body { padding: clamp(28px, 4vw, 48px); display: grid; gap: 16px; align-content: start; overflow-y: auto; }
.modal-body .product-name { font-size: clamp(24px, 2.6vw, 32px); }
.modal-body .jp { color: var(--sand); font-size: 14px; letter-spacing: .1em; }
.modal-body h4 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-family: var(--f-latin); color: var(--olive); margin-top: 8px; }
.modal-body p { color: var(--fg-muted); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--fg);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.3);
}
.modal-close svg { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--fg); }

/* ---------- Membership ---------- */

.membership { background: var(--surface-hi); }
.membership-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.membership-media { border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(61, 55, 49, .55); }
.membership-media img { width: 100%; aspect-ratio: 1600 / 810; object-fit: cover; }
.membership-copy { display: grid; gap: 22px; }
.benefits { display: grid; gap: 0; margin-top: 6px; border-top: 1px solid rgba(61, 55, 49, .18); }
.benefits li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(61, 55, 49, .18); }
.benefits li b { font-family: var(--f-latin); font-weight: 400; color: var(--olive); font-size: 14px; letter-spacing: .14em; padding-top: 2px; }
.benefits li span { color: var(--fg); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0;
  font-size: 18.5px; color: var(--fg); font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, border-color .3s; }
.faq-list summary .pm::before, .faq-list summary .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--olive);
  transform: translate(-50%, -50%); transition: transform .35s var(--ease);
}
.faq-list summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-list details[open] summary .pm { background: var(--olive); border-color: var(--olive); }
.faq-list details[open] summary .pm::before, .faq-list details[open] summary .pm::after { background: var(--bg); }
.faq-list details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list details p { padding: 0 50px 26px 0; color: var(--fg-muted); }

/* ---------- Contact ---------- */

.contact { background: var(--olive-deep); color: var(--fg); overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact-info { display: grid; gap: 30px; }
.info-list { display: grid; gap: 0; border-top: 1px solid rgba(242, 232, 217, .22); }
.info-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(242, 232, 217, .22); }
.info-list b { font-family: var(--f-latin); font-weight: 400; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--fg-soft); padding-top: 4px; }
.info-list a:hover { color: var(--fg-soft); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(242, 232, 217, .4);
  display: grid; place-items: center;
  transition: background .3s, color .3s;
}
.socials a:hover { background: var(--surface-hi); color: var(--fg); }
.socials svg { width: 18px; height: 18px; }

.booking {
  background: var(--bg); color: var(--fg);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 48px);
  display: grid; gap: 18px;
}
.booking h3 { font-size: 26px; font-weight: 400; color: var(--fg); }
.booking .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; letter-spacing: .08em; color: var(--olive); font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--fg);
  background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(107, 127, 107, .18);
}
.booking .small { font-size: 13.5px; color: var(--fg-muted); }
.form-status { font-size: 15px; color: var(--olive-deep); min-height: 1.5em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--olive-ink); color: rgba(251, 247, 240, .78); padding-block: 70px 34px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(242, 232, 217, .16); }
.footer-brand { display: grid; gap: 22px; align-content: start; color: var(--fg-soft); }
.footer-brand .word { width: 230px; height: 26px; }
.footer-brand p { color: rgba(251, 247, 240, .65); max-width: 34ch; font-size: 15px; }
.footer-col h4 { font-family: var(--f-latin); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 15px; transition: color .3s; }
.footer-col a:hover { color: var(--fg-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13.5px; color: rgba(251, 247, 240, .5); }
.footer-bottom .kana { letter-spacing: .3em; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge svg.ring { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { grid-template-columns: 54px 1fr; column-gap: 22px; padding-right: 0; }
  .step .dot { grid-row: span 2; }
  .step h3 { margin-top: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .product-grid, .product-grid[data-grid="infact"] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--olive); color: var(--fg);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a:not(.btn) { font-size: 24px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--fg); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: block; }
  .site-header .nav .btn-primary { background: var(--surface-hi); color: var(--fg); }

  .hero-grid, .about-grid, .brand-intro, .brand-intro.reverse, .membership-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand-intro.reverse .brand-media { order: 0; }
  .hero-visual { justify-self: center; width: min(80%, 400px); }
  .hero-badge { left: -30px; width: 108px; height: 108px; }
  .about-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media { aspect-ratio: 16 / 11; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .gallery figure:first-child { grid-row: span 1; grid-column: span 2; }
  .modal-inner { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-media { max-height: 44svh; }
  .modal-media img { max-height: 44svh; }
  .modal-body { overflow: visible; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand .word { width: 140px; height: 16px; }
  .brand .mark { width: 38px; height: 32px; }
  .hero { padding-top: 110px; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .symbols { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .ritual { grid-template-columns: 1fr 1fr; }
  .ritual div:nth-child(3) { border-left: 0; }
  .ritual div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-grid, .product-grid[data-grid="infact"] { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-info { padding: 14px 14px 16px; }
  .product-name { font-size: 15.5px; }
  .product-desc { display: none; }
  .product-img.contain img { inset: 16px 12px 6px; width: calc(100% - 24px); height: calc(100% - 22px); }
  .infact-banner img { aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .gallery figure:first-child { grid-column: auto; }
  .booking .row { grid-template-columns: 1fr; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .faq-list details p { padding-right: 0; }
}

/* =========================================================
   VISUAL STRENGTH & CARD MOTION — v3
   Brand fonts only: Lao MN (English), Montserrat (Монгол)
   ========================================================= */

/* ---------- Progress line ---------- */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60;
  height: 2px; width: 100%;
  background: var(--sand);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.nav a.is-active:not(.btn)::after { transform: scaleX(1); }
.nav a.is-active:not(.btn) { opacity: 1; }

/* Menu jump: no transition animation */
.no-anim, .no-anim * { transition: none !important; }

/* ---------- Staggered lists ---------- */
[data-stagger] > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}
.is-in[data-stagger] > *, .is-in [data-stagger] > * { opacity: 1; transform: none; }
.steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.steps.is-in::before { transform: scaleX(1); }
.eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
.is-in.eyebrow::before, .is-in .eyebrow::before { transform: scaleX(1); }

/* ---------- Photos: color depth, frame, color block ---------- */
@property --py { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --s { syntax: "<number>"; inherits: true; initial-value: 1.12; }

.fx { position: relative; overflow: hidden; isolation: isolate; }
.fx img, .fx video {
  filter: saturate(1.3) contrast(1.12) brightness(1.02);
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--s, 1.12));
  transition: transform 1.4s var(--ease);
  will-change: transform;
}
.fx:hover img, .fx:hover video { --s: 1.18; }

/* depth: olive-toned vignette at the base */
.fx::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(61, 55, 49, .38), rgba(61, 55, 49, 0) 42%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(47, 42, 37, .22) 100%);
}
/* fine inner frame line */
.fx::after {
  content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(251, 247, 240, .55);
  border-radius: calc(var(--radius) - 8px);
}
.arch.fx::after { border-radius: 999px 999px 12px 12px; }
.japan-art { z-index: 0; }

/* offset color blocks behind key photos */
.arch { position: relative; box-shadow: 22px 22px 0 0 var(--sand), 0 50px 90px -30px rgba(30, 27, 24, .55); }
.brand-media { box-shadow: -20px 20px 0 0 var(--cream); }
.brand-intro.reverse .brand-media { box-shadow: 20px 20px 0 0 var(--cream); }
.membership-media { box-shadow: 22px 22px 0 0 var(--olive), 0 40px 80px -40px rgba(61, 55, 49, .55); }
.infact-banner { box-shadow: 0 50px 90px -50px rgba(61, 55, 49, .6); }

/* mask-wipe reveal */
.fx-wipe { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.3s cubic-bezier(.76, 0, .24, 1); }
.is-in.fx-wipe, .is-in .fx-wipe { clip-path: inset(0 0 0 0 round var(--radius)); }
.arch.fx-wipe { clip-path: none; }
.brand-media.fx-wipe, .membership-media.fx-wipe,
.is-in .brand-media.fx-wipe, .is-in .membership-media.fx-wipe { clip-path: none; }

/* hero photo breathing */
.arch img { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { --s: 1.12; } to { --s: 1.22; } }

/* ---------- Hero: rising-sun rays ---------- */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; right: -18vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(241, 226, 196, .3), rgba(241, 226, 196, 0) 62%);
}
.hero-visual { z-index: 1; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 42%; width: 190%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(241, 226, 196, .14) 0deg 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%);
  mask: radial-gradient(circle, #000 18%, transparent 62%);
  animation: rays 80s linear infinite;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-badge { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee photo band ---------- */
.marquee {
  background: var(--olive-ink);
  padding-block: 26px;
  overflow: hidden;
}
.marquee-track {
  display: flex; gap: 18px; width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.mq-card {
  margin: 0; width: 240px; height: 300px; flex: none;
  border-radius: 16px; overflow: hidden;
  background: var(--olive-deep);
  transition: transform .6s var(--ease);
}
.mq-card:nth-child(even) { height: 300px; margin-top: 0; width: 300px; }
.mq-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.3) contrast(1.12); transition: transform 1s var(--ease); }
.mq-card:hover img { transform: scale(1.08); }

/* ---------- About collage ---------- */
.about-collage { position: relative; aspect-ratio: 1 / 1.08; }
.about-collage figure { margin: 0; position: absolute; border-radius: 22px; }
.ac-main { left: 0; top: 0; width: 72%; height: 88%; box-shadow: 22px 22px 0 0 var(--cream); }
.ac-small { right: 0; bottom: 0; width: 46%; height: 50%; border: 8px solid var(--paper); box-shadow: 0 40px 70px -30px rgba(61, 55, 49, .6); z-index: 2; }
.about-collage figure img { width: 100%; height: 100%; object-fit: cover; }
.ac-mark {
  position: absolute; z-index: 3; right: 8%; top: 6%;
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--olive); color: var(--fg-soft);
  display: grid; place-items: center;
  box-shadow: 0 20px 40px -16px rgba(47, 42, 37, .6);
  animation: float 7s ease-in-out infinite;
}
.ac-mark svg { width: 56px; height: 48px; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.about-card {
  background: var(--surface-2); border-radius: var(--radius);
  padding: 22px 20px; display: grid; gap: 22px; align-content: space-between; min-height: 140px;
  box-shadow: 0 1px 0 var(--line);
}
.about-card b { font-family: var(--f-latin); font-weight: 400; color: var(--sand); letter-spacing: .2em; font-size: 13px; }
.about-card span { font-weight: 700; color: var(--fg); line-height: 1.35; }
.about-card:hover { background: var(--olive); }
.about-card:hover span, .about-card:hover b { color: var(--fg); }

/* ---------- Card entrance animations ---------- */
.product.reveal, .principle.reveal, .gallery figure.reveal {
  opacity: 0;
  transform: perspective(900px) translateY(50px) rotateX(14deg) scale(.96);
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease), transform 1s var(--ease), box-shadow .5s var(--ease), background .4s;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.product.reveal.is-in, .principle.reveal.is-in, .gallery figure.reveal.is-in { opacity: 1; transform: none; }

[data-cards] > * {
  opacity: 0; transform: translateY(30px) scale(.95);
  transition: opacity .8s var(--ease), transform .8s cubic-bezier(.3, 1.4, .5, 1), background .4s, box-shadow .5s;
  transition-delay: calc(var(--i, 0) * 110ms + 200ms);
}
.is-in[data-cards] > * { opacity: 1; transform: none; }

.service.reveal { transform: translateY(60px); }
.service.reveal.is-in { transform: none; }
.service .num { transition: transform .6s var(--ease), color .4s; display: inline-block; }
.service:hover .num { transform: translateX(-6px); color: var(--olive); }

/* ---------- Card hover: pointer tilt + lift ---------- */
.product, .principle, .gallery figure, .about-card, .step, .mq-card, .membership-media { will-change: transform; }
.is-in.is-tilting, .is-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-8px) !important;
  transition: transform .15s linear, box-shadow .4s var(--ease), background .4s !important;
}
.product.is-tilting, .principle.is-tilting, .about-card.is-tilting { box-shadow: 0 40px 70px -34px rgba(61, 55, 49, .55); }
.product-img img { filter: saturate(1.15) contrast(1.06); }
.product-img.contain { background: radial-gradient(circle at 50% 45%, #ffffff 40%, var(--bg) 100%); }
.product-img.contain img { mix-blend-mode: multiply; }
.product .product-name { transition: color .3s; }
.product:hover .product-name { color: var(--olive); }

.principle { position: relative; overflow: hidden; }
.principle .num { transition: transform .5s var(--ease), color .4s; display: inline-block; }
.principle:hover .num { transform: translateY(-3px); color: var(--fg); }
.principle::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px;
  background: var(--olive); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.principle:hover::after { transform: scaleX(1); }

.step { transition: transform .5s var(--ease); }

.benefits li { transition: padding .4s var(--ease), background .4s; }
.benefits li:hover { padding-left: 10px; }
.info-list li { transition: padding .4s var(--ease); }
.info-list li:hover { padding-left: 8px; }

.faq-list details[open] p { animation: faq-in .5s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 920px) {
  .about-collage { max-width: 520px; width: 100%; margin-inline: auto; }
  .about-cards { grid-template-columns: 1fr; }
  .about-card { min-height: 0; grid-template-columns: 40px 1fr; align-items: center; }
  .mq-card { width: 180px; height: 230px; }
  .mq-card:nth-child(even) { width: 220px; height: 230px; }
  .arch { box-shadow: 14px 14px 0 0 var(--sand), 0 40px 70px -30px rgba(30, 27, 24, .55); }
}

@media (prefers-reduced-motion: reduce) {
  .arch img, .hero-visual::before, .hero-badge, .ac-mark, .marquee-track { animation: none !important; }
  .fx-wipe, .arch.fx-wipe { clip-path: none !important; }
  [data-stagger] > *, [data-cards] > * { opacity: 1; transform: none; }
}
.about-collage figure.fx-wipe { clip-path: inset(0 0 100% 0 round 22px); }
.about-collage.is-in figure.fx-wipe { clip-path: none; }
.about-collage.is-in .ac-small { transition-delay: .35s; }

/* Hero portrait: keep natural skin tones */
.arch img { filter: saturate(1.04) contrast(1.04); object-position: 50% 20%; }
.arch.fx::before { background: linear-gradient(to top, rgba(61, 55, 49, .18), rgba(61, 55, 49, 0) 35%); }
.arch img { animation-name: kenburns-soft; object-position: 50% 0%; }
@keyframes kenburns-soft { from { --s: 1.02; } to { --s: 1.08; } }

/* =========================================================
   HERO — full-bleed poster figure (v4)
   ========================================================= */
.hero--poster { background: var(--olive); }
.hero--poster::before, .hero--poster .hero-visual::before { display: none; }
.hero--poster .hero-mark { opacity: .07; z-index: 1; }

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  position: absolute; right: 0; top: 0;
  width: 72%; height: 100%;
  object-fit: cover; object-position: 60% 18%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%);
  animation: poster-in 2.2s var(--ease) both, poster-breathe 22s ease-in-out 2.2s infinite alternate;
  transform-origin: 70% 30%;
}
@keyframes poster-in { from { opacity: 0; transform: scale(1.08); } }
@keyframes poster-breathe { from { transform: scale(1); } to { transform: scale(1.05); } }

/* olive tone at base + left so copy stays readable */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--olive) 0%, rgba(107, 127, 107, .85) 28%, rgba(107, 127, 107, 0) 55%),
    linear-gradient(to top, rgba(61, 55, 49, .55), rgba(61, 55, 49, 0) 35%),
    linear-gradient(to bottom, rgba(47, 42, 37, .5), rgba(47, 42, 37, 0) 20%);
}

.hero--poster .wrap { position: relative; z-index: 2; }
.hero--poster .hero-grid { grid-template-columns: minmax(0, 640px) 1fr; }
.hero--poster .hero-copy { text-shadow: 0 2px 24px rgba(47, 42, 37, .25); }
.hero-visual--poster {
  width: auto; justify-self: end; align-self: end;
  min-height: 132px;
}
.hero-visual--poster .hero-badge { position: relative; left: auto; bottom: auto; }

@media (max-width: 920px) {
  .hero--poster { align-items: flex-end; padding-top: 0; }
  .hero-bg img {
    width: 100%; height: 68%;
    object-position: 60% 10%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero-bg img { height: 62%; }
  .hero-bg::after { background: linear-gradient(to top, var(--olive) 46%, rgba(107, 127, 107, 0) 66%), linear-gradient(to bottom, rgba(47, 42, 37, .45), rgba(47, 42, 37, 0) 16%); }
  .hero--poster .hero-grid { grid-template-columns: 1fr; padding-top: 50vh; }
  .hero-visual--poster { display: none; }
  .hero--poster .hero-copy > .eyebrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
}

/* =========================================================
   HERO — original illustrated figure (v5)
   ========================================================= */
.hero-bg::after { display: none; }
.hero-figure {
  position: absolute; right: -2%; bottom: 0;
  width: 64%; height: 100%;
  overflow: visible;
}
.hero-figure .fg-all {
  transform-origin: 64% 100%;
  animation: fig-in 1.8s var(--ease) both;
}
@keyframes fig-in { from { opacity: 0; transform: translateY(40px); } }
.hero-figure .fg-sun {
  transform-box: fill-box; transform-origin: center;
  animation: sun-breathe 9s ease-in-out infinite alternate;
}
@keyframes sun-breathe { from { transform: scale(.96); } to { transform: scale(1.04); } }
.hero-figure .fg-ring {
  stroke-dasharray: 2 14;
  transform-box: fill-box; transform-origin: center;
  animation: rays 90s linear infinite;
}
.hero-figure .fg-crane { animation: crane-fly 9s ease-in-out infinite alternate; opacity: .9; }
@keyframes crane-fly { from { transform: translate(0, 0); } to { transform: translate(-26px, -22px); } }

@media (max-width: 920px) {
  .hero-figure { right: -18%; width: 120%; height: 58%; top: 0; bottom: auto; }
  .hero-bg::after {
    display: block; content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, var(--olive) 44%, rgba(107, 127, 107, 0) 60%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-figure .fg-all, .hero-figure .fg-sun, .hero-figure .fg-ring, .hero-figure .fg-crane { animation: none; }
}
.hero--poster .hero-visual--poster { display: none; }
@media (max-width: 920px) {
  .hero-figure { top: 64px; right: -6%; width: 112%; height: 50svh; }
  .hero-bg::after { background: linear-gradient(to top, var(--olive) 40%, rgba(107, 127, 107, 0) 52%); }
  .hero--poster .hero-grid { padding-top: calc(50svh + 40px); }
}

/* =========================================================
   HERO — full-bleed photo (v6)
   ========================================================= */
.hero-bg .hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: none; mask-image: none;
  object-fit: cover; object-position: 100% 30%;
  animation: photo-in 2s var(--ease) both, photo-breathe 24s ease-in-out 2s infinite alternate;
  transform-origin: 75% 35%;
}
@keyframes photo-in { from { opacity: 0; transform: scale(1.06); } }
.hero--poster .hero-bg::after {
  display: block; content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(107, 127, 107, .92) 0%, rgba(107, 127, 107, .7) 30%, rgba(107, 127, 107, 0) 58%),
    linear-gradient(to bottom, rgba(47, 42, 37, .35), rgba(47, 42, 37, 0) 18%),
    linear-gradient(to top, rgba(61, 55, 49, .35), rgba(61, 55, 49, 0) 25%);
}
.hero--poster .hero-mark { opacity: .06; }

@media (max-width: 920px) {
  .hero-bg .hero-photo { height: 62svh; object-position: 72% 20%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
  .hero--poster .hero-bg::after {
    background:
      linear-gradient(to top, var(--olive) 38%, rgba(107, 127, 107, 0) 60%),
      linear-gradient(to bottom, rgba(47, 42, 37, .35), rgba(47, 42, 37, 0) 14%);
  }
  .hero--poster .hero-grid { padding-top: calc(50svh + 20px); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg .hero-photo { animation: none; } }

@keyframes photo-breathe { from { transform: scale(1); } to { transform: scale(1.025); } }

/* =========================================================
   UPPERCASE — navigation & headings
   ========================================================= */
.nav a:not(.btn),
h1, h2, h3, h4,
.h-display, .h-section,
.brand-name, .product-name,
.about-card span {
  text-transform: uppercase;
}
.nav a:not(.btn) { font-size: 13.5px; letter-spacing: .12em; }
.h-display { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: .02em; line-height: 1.1; }
.h-section { font-size: clamp(26px, 3vw, 40px); letter-spacing: .03em; line-height: 1.2; }
.service h3, .principle h3, .step h3, .booking h3,
.product-name, .about-card span { letter-spacing: .06em; }
.principle h3 { font-size: 18px; }
.service h3 { font-size: clamp(20px, 1.9vw, 24px); }
.step h3 { font-size: 16.5px; }
.product-name { font-size: 15.5px; }
.modal-body .product-name { font-size: clamp(20px, 2.2vw, 26px); }
@media (max-width: 920px) {
  .nav a:not(.btn) { font-size: 20px; letter-spacing: .14em; }
}
@media (max-width: 640px) {
  .product-name { font-size: 13.5px; }
}
.nav { gap: clamp(16px, 1.8vw, 28px); }
.nav a:not(.btn) { font-size: 12.5px; letter-spacing: .1em; white-space: nowrap; }

/* collapse menu earlier now that labels are uppercase */
@media (max-width: 1200px) {
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--olive); color: var(--fg);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a:not(.btn) { font-size: 20px; letter-spacing: .14em; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { color: var(--fg); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: block; }
  .site-header .nav .btn-primary { background: var(--surface-hi); color: var(--fg); }
}

/* =========================================================
   PRODUCT STAGE — studio packshot (v10)
   arch backdrop in the product's own tint, key light,
   floor with reflection, contact shadow, sheen on hover
   ========================================================= */
.product-img.stage,
.modal-media.stage {
  --tint: #E2E8E0;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, #fbf9f4) 0%, var(--tint) 100%);
}
/* arch window behind the product */
.stage-arch {
  position: absolute; left: 50%; bottom: 20%;
  width: 62%; height: 66%;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 75%),
    linear-gradient(180deg, rgba(255, 255, 255, .55), color-mix(in srgb, var(--tint) 70%, #fff) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 30px 60px -40px rgba(47, 42, 37, .35);
  transition: transform .9s var(--ease), height .9s var(--ease);
  z-index: -1;
}
/* floor plane */
.stage-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 80%, #7D8F7C) 0%, var(--tint) 18%, color-mix(in srgb, var(--tint) 75%, #fff) 100%);
  border-top: 1px solid rgba(255, 255, 255, .6);
  z-index: -1;
}
.stage-shadow {
  position: absolute; left: 50%; bottom: calc(20% - 7px);
  width: 46%; height: 14px;
  background: radial-gradient(closest-side, rgba(47, 42, 37, .38), rgba(47, 42, 37, 0));
  transform: translateX(-50%);
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.stage-no {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--f-latin); font-size: 12px; letter-spacing: .18em;
  color: var(--olive-deep);
}
.stage-no i { font-style: normal; opacity: .45; }
/* light sweep */
.stage-sheen {
  position: absolute; inset: -20% -60%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 58%);
  transform: translateX(-60%);
  pointer-events: none; z-index: 2;
}
.product-img.stage img,
.modal-media.stage img {
  position: absolute; left: 14%; right: 14%; top: 6%; bottom: 20%;
  width: 72%; height: 74%;
  object-fit: contain; object-position: 50% 100%;
  mix-blend-mode: normal;
  filter: drop-shadow(0 14px 18px rgba(47, 42, 37, .14)) drop-shadow(0 2px 3px rgba(47, 42, 37, .12));
  -webkit-box-reflect: below 1px linear-gradient(transparent 78%, rgba(255, 255, 255, .22));
  transform: none;
  transition: transform .8s var(--ease);
  z-index: 1;
}
.product-img.stage.is-wide img { left: 10%; right: 10%; width: 80%; top: 30%; height: 50%; }
.product-img.stage.is-wide .stage-shadow { width: 70%; }

.product:hover .product-img.stage img { transform: translateY(-10px) scale(1.02); }
.product:hover .stage-shadow { transform: translateX(-50%) scale(.85); opacity: .6; }
.product:hover .stage-arch { transform: translateX(-50%) scale(1.04); }
.product:hover .stage-sheen { transform: translateX(60%); transition: transform 1.1s var(--ease); }

/* modal stage fills the media column */
.modal-media.stage { aspect-ratio: auto; min-height: 520px; }
.modal-media.stage .stage-arch { width: 56%; height: 70%; bottom: 18%; }
.modal-media.stage .stage-floor { height: 18%; }
.modal-media.stage .stage-shadow { bottom: calc(18% - 7px); }
.modal-media.stage img { left: 22%; right: 22%; top: 8%; bottom: 18%; width: 56%; height: 74%; max-height: none; padding: 0; }
.modal-media.stage.is-wide img { left: 12%; right: 12%; width: 76%; top: 34%; height: 48%; }
.modal-media.stage .stage-no { top: 22px; left: 24px; }
@media (max-width: 920px) { .modal-media.stage { min-height: 46svh; } }

/* =========================================================
   LINEUP — the whole collection on one stage (v10)
   ========================================================= */
.lineup {
  --tint: #E2E8E0;
  --stage-h: clamp(220px, 28vw, 380px);
  --lx: 50%; --ly: 30%;
  position: relative; overflow: hidden; isolation: isolate;
  margin-bottom: clamp(36px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px) 0;
  background:
    radial-gradient(40% 55% at var(--lx) var(--ly), rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F6EFE3 0%, color-mix(in srgb, var(--tint) 60%, #EFE7DA) 100%);
  transition: background-color .6s var(--ease);
}
/* big soft arch behind the line */
.lineup::before {
  content: ""; position: absolute; left: 50%; bottom: 22%;
  width: min(70%, 760px); aspect-ratio: 1.3;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .15));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  z-index: -1;
}
/* floor */
.lineup::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 70%, #7D8F7C) 0%, color-mix(in srgb, var(--tint) 85%, #fff) 10%, #FBF7F0 100%);
  z-index: -1;
  transition: background .6s var(--ease);
}
.lineup-stage {
  display: flex; align-items: flex-end; justify-content: center;
  height: var(--stage-h);
  padding-inline: 4%;
}
.lineup-item {
  position: relative; flex: 0 0 auto;
  height: calc(var(--stage-h) * var(--h) * var(--fit, 1));
  margin-inline: 0;
  padding: 0; border: 0; background: none; cursor: pointer;
  transform: translateY(40px); opacity: 0;
  transition: transform 1s var(--ease) calc(var(--n) * 70ms), opacity 1s var(--ease) calc(var(--n) * 70ms), filter .5s var(--ease);
}
.lineup.is-in .lineup-item { transform: none; opacity: 1; }
.lineup-item img {
  display: block; height: 100%; width: auto;
  filter: drop-shadow(0 18px 18px rgba(47, 42, 37, .16)) drop-shadow(0 2px 3px rgba(47, 42, 37, .14));
  -webkit-box-reflect: below 1px linear-gradient(transparent 82%, rgba(255, 255, 255, .25));
  transition: transform .6s var(--ease);
}
.lineup-item::after {             /* contact shadow */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -6px; height: 12px;
  background: radial-gradient(closest-side, rgba(47, 42, 37, .32), rgba(47, 42, 37, 0));
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  z-index: -1;
}
.lineup-stage:hover .lineup-item:not(:hover),
.lineup-stage:focus-within .lineup-item:not(:focus-visible):not(:hover) { filter: saturate(.5) opacity(.55); }
.lineup-item:hover img, .lineup-item:focus-visible img { transform: translateY(-16px); }
.lineup-item:hover::after, .lineup-item:focus-visible::after { transform: scaleX(.75); opacity: .55; }
.lineup-item:focus-visible { outline: none; }
.lineup-item:focus-visible img { outline: 1px solid var(--olive); outline-offset: 6px; }
.lineup-caption {
  display: grid; justify-items: center; gap: 4px;
  padding: clamp(40px, 5vw, 64px) 0 clamp(26px, 3vw, 36px);
  text-align: center; min-height: 92px;
}
.lineup-cat { font-family: var(--f-latin); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); }
.lineup-name { font-family: var(--f-latin); font-weight: 400; font-size: clamp(18px, 2vw, 24px); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }

@media (max-width: 720px) {
  .lineup { --stage-h: 230px; padding-inline: 0; }
  .lineup-stage { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px 24px 0; height: calc(var(--stage-h) + 30px); scrollbar-width: none; }
  .lineup-stage::-webkit-scrollbar { display: none; }
  .lineup-item { scroll-snap-align: center; margin-inline: 4px; }
  .lineup::before { width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .lineup-item { transform: none; opacity: 1; transition: none; }
  .stage-sheen { display: none; }
}

/* =========================================================
   PRODUCT CARD — coloured info panel (v8)
   ========================================================= */
.product[data-brand="mdear"] .product-info { background: var(--olive); }
.product[data-brand="mdear"] .product-cat { color: var(--fg-soft); opacity: .85; }
.product[data-brand="mdear"] .product-name { color: var(--fg); }
.product[data-brand="mdear"] .product-desc { color: rgba(251, 247, 240, .78); }
.product[data-brand="mdear"] .product-more { color: var(--fg-soft); }
.product[data-brand="mdear"]:hover .product-name { color: var(--fg-soft); }

.product[data-brand="infact"] .product-info { background: var(--surface-hi); }
.product[data-brand="infact"] .product-cat { color: var(--olive-deep); }
.product[data-brand="infact"] .product-name { color: var(--fg); }
.product[data-brand="infact"] .product-desc { color: #6F665D; }
.product[data-brand="infact"] .product-more { color: var(--olive-deep); }
.product[data-brand="infact"]:hover .product-name { color: var(--olive-deep); }

.product .product-info { transition: background .4s var(--ease); }
.product[data-brand="mdear"]:hover .product-info { background: var(--olive-deep); }
.product[data-brand="infact"]:hover .product-info { background: #E8DAC4; }

/* =========================================================
   WHITE PACKSHOTS — coloured light on the white background (v9)
   multiply: the white backdrop takes the light colour,
   the product keeps its form and shading
   ========================================================= */
.product-img.contain,
.modal-media.contain {
  background:
    radial-gradient(55% 45% at 22% 18%, rgba(214, 190, 160, .55), rgba(214, 190, 160, 0) 70%),   /* warm sand light, top-left */
    radial-gradient(60% 55% at 85% 85%, rgba(107, 127, 107, .35), rgba(107, 127, 107, 0) 70%),     /* olive light, bottom-right */
    radial-gradient(70% 60% at 50% 45%, #fdfcf8 0%, #EEF0E9 55%, #E0E5DD 100%);
}
.product-img.contain img,
.modal-media.contain img { mix-blend-mode: multiply; }

/* modal: show the whole packshot */
.modal-media.contain { position: relative; min-height: 480px; }
.modal-media.contain img {
  position: absolute; inset: 7% 10%;
  width: 80%; height: 86%;
  max-height: none; padding: 0;
  object-fit: contain; object-position: 50% 50%;
}
@media (max-width: 920px) { .modal-media.contain { min-height: 44svh; } }

/* =========================================================
   MEMBERSHIP CARD — built in code, not a cropped photo (v11)
   front + back always whole; pointer tilt, flips by itself
   ========================================================= */
.mcard-scene {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  position: relative;
  display: grid; justify-items: center;
  padding: clamp(30px, 5vw, 70px) 0 0;
  perspective: 1400px;
}
.mcard-tilt {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 85.6 / 54;               /* ISO ID-1 card */
  transform-style: flat;                 /* cards are separate layers: they never cut through each other */
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
  animation: mcard-float 7s ease-in-out infinite;
}
@keyframes mcard-float { 50% { translate: 0 -10px; } }

.mcard {
  position: absolute; inset: 0;
  padding: 0; border: 0; background: none; color: inherit; text-align: left;
  border-radius: 4.2% / 6.6%;
  transform-style: preserve-3d;
}
.mcard--main { transform: perspective(1400px) rotateY(0deg); transition: transform 1.2s var(--ease); }
.mcard-scene.is-flipped .mcard--main { transform: perspective(1400px) rotateY(180deg); }
/* the second card peeks out behind, showing its back */
.mcard--under {
  transform: translate(14%, -18%) rotate(7deg) scale(.86);
}
.mcard--under .mcard-face { filter: brightness(.88); }
/* opposite side to the main card: back by default, front once the main card is flipped */
.mcard-flip {
  position: absolute; inset: 0; border-radius: inherit;
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateY(180deg);
  transition: transform 1s var(--ease) .08s;
}
.mcard-scene.is-flipped .mcard-flip { transform: perspective(1400px) rotateY(0deg); }

.mcard-face {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  color: #F2E8D9;
  font-family: var(--f-latin);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 2px 4px rgba(47, 42, 37, .18),
    0 30px 60px -24px rgba(47, 42, 37, .55);
}
.mcard-front {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #7F927E 0%, #6B7F6B 45%, #5A6C5A 100%);
}
.mcard-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #4D4640 0%, #3D3731 55%, #312C27 100%);
}

/* brand marks are SVG masks, so they take the foil colour */
.mcard-wordmark, .mcard-crane, .mcard-symbol {
  position: absolute; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
}
.mcard-wordmark { --m: url("../brand/wordmark.svg"); left: 9%; top: 15%; width: 46%; aspect-ratio: 316.5 / 35.8; }
.mcard-crane {
  --m: url("../brand/symbol.svg");
  left: -16%; bottom: -34%; width: 78%; aspect-ratio: 330 / 281;
  color: #586A58; opacity: .55;
}
.mcard-title {
  position: absolute; right: 9%; bottom: 12%;
  font-size: clamp(14px, 2.7vw, 26px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase;
  text-align: center;
}
.mcard-label { position: absolute; left: 8%; top: 13%; font-size: clamp(7px, 1.25vw, 11px); letter-spacing: .18em; text-transform: uppercase; }
.mcard-symbol { --m: url("../brand/symbol.svg"); right: 7%; top: 9%; width: 9%; aspect-ratio: 330 / 281; }
.mcard-contact {
  position: absolute; left: 0; right: 0; top: 34%;
  display: grid; justify-items: center; gap: .35em;
  font-size: clamp(6px, 1.1vw, 10px); letter-spacing: .02em;
}
.mcard-contact i { font-style: normal; opacity: .7; }
.mcard-id {
  position: absolute; left: 8%; right: 8%; bottom: 11%; height: 21%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
  border: 1px solid rgba(242, 232, 217, .55); border-radius: 12px;
}
.mcard-id b { font-weight: 400; font-size: clamp(6px, 1.05vw, 10px); line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; }
.mcard-barcode {
  width: 42%; height: 62%;
  background: repeating-linear-gradient(90deg,
    #F2E8D9 0 2px, transparent 2px 4px, #F2E8D9 4px 5px, transparent 5px 8px,
    #F2E8D9 8px 11px, transparent 11px 12px, #F2E8D9 12px 13px, transparent 13px 16px);
}
/* foil glare follows the pointer */
.mcard-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at var(--gx) var(--gy), rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: soft-light;
}
.mcard-floor {
  width: min(80%, 460px); height: 26px; margin-top: 34px;
  background: radial-gradient(closest-side, rgba(61, 55, 49, .28), rgba(61, 55, 49, 0));
  animation: mcard-shadow 7s ease-in-out infinite;
}
@keyframes mcard-shadow { 50% { transform: scaleX(.9); opacity: .75; } }

@media (max-width: 920px) {
  .mcard-scene { padding-top: 60px; }
  .mcard-tilt { width: min(82%, 480px); }
  .mcard--under { transform: translate(8%, -16%) rotate(6deg) scale(.88); }
}
@media (prefers-reduced-motion: reduce) {
  .mcard-tilt, .mcard-floor { animation: none; }
  .mcard--main, .mcard-flip { transition: none; }
}
