/* =========================================================
   HARMONY · VARIANT 1 — “Ink & Breath”
   Unique editorial layout · same ocean palette · motion-first
   ========================================================= */

:root,
[data-theme="ocean"] {
  --navy: #1e3a5f;
  --navy-soft: #2c4a6e;
  --blue: #3d6b9a;
  --blue-mid: #5b8ab8;
  --teal: #6b9bb8;
  --teal-btn: #5a9ab8;
  --teal-btn-hover: #4a8aa8;
  --cream: #faf8f4;
  --cream-2: #f5f1ea;
  --sand: #e8e0d4;
  --gold: #b8a070;
  --gold-soft: #c9b896;
  --text: #2a3a4a;
  --muted: #6b7c8a;
  --white: #ffffff;
  --ink: #142536;
  --shadow: 0 20px 50px rgba(30, 58, 95, 0.1);
  --font: "Outfit", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --rail: 4.25rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --swatch-1: #1e3a5f;
  --swatch-2: #5a9ab8;
  --swatch-3: #faf8f4;
}

[data-theme="sage"] {
  --navy: #2f4a3c; --navy-soft: #3d5c4b; --blue: #4a7c59; --blue-mid: #5f9a72;
  --teal: #6a9e7c; --teal-btn: #4f8a63; --teal-btn-hover: #3f7352;
  --cream: #f7f8f4; --cream-2: #eef2ea; --sand: #dde5d6; --gold: #9a8b5c; --gold-soft: #b5a875;
  --text: #2a3a32; --muted: #5f7266; --ink: #1a2e24;
  --swatch-1: #2f4a3c; --swatch-2: #5f9a72; --swatch-3: #f7f8f4;
}
[data-theme="rose"] {
  --navy: #5c3d4a; --navy-soft: #6e4d5a; --blue: #9a6b7a; --blue-mid: #b88494;
  --teal: #c48b9a; --teal-btn: #b07084; --teal-btn-hover: #965f71;
  --cream: #fdf8f7; --cream-2: #f8efed; --sand: #eddcd8; --gold: #c4a06e; --gold-soft: #d4b88a;
  --text: #3d2e34; --muted: #7a656c; --ink: #3a2430;
  --swatch-1: #5c3d4a; --swatch-2: #b88494; --swatch-3: #fdf8f7;
}
[data-theme="sand"] {
  --navy: #4a3b2f; --navy-soft: #5c4b3c; --blue: #8a6b4a; --blue-mid: #a8845c;
  --teal: #b8956a; --teal-btn: #a07a4f; --teal-btn-hover: #88653f;
  --cream: #faf6f0; --cream-2: #f3ebe0; --sand: #e8dccb; --gold: #b8955c; --gold-soft: #c9a96e;
  --text: #3a3028; --muted: #75685a; --ink: #2e251c;
  --swatch-1: #4a3b2f; --swatch-2: #a8845c; --swatch-3: #faf6f0;
}
[data-theme="dusk"] {
  --navy: #3d3558; --navy-soft: #4d4568; --blue: #6b5b8f; --blue-mid: #8574a8;
  --teal: #8f7eb0; --teal-btn: #7a68a0; --teal-btn-hover: #66568a;
  --cream: #f8f6fb; --cream-2: #f0ecf6; --sand: #e0d8ec; --gold: #b89a6e; --gold-soft: #cbb08a;
  --text: #322e3d; --muted: #6a6478; --ink: #241f33;
  --swatch-1: #3d3558; --swatch-2: #8574a8; --swatch-3: #f8f6fb;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
  /* Larger base type across the site (was browser 16px) */
  font-size: 17px;
}
@media (min-width: 900px) {
  html { font-size: 18px; }
}
@media (max-width: 380px) {
  html { font-size: 16px; }
}
body.v1-body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-transitioning { overflow: hidden; cursor: wait; }
body.is-first-paint .page-main,
body.is-first-paint main {
  animation: pageFadeIn 0.85s var(--ease-out) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.mag-btn {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease;
  will-change: transform;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Film grain */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10000;
  background: linear-gradient(90deg, var(--gold), var(--teal-btn));
  transition: width 0.1s linear;
}

/* Page transition curtain */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  visibility: hidden;
}
.page-transition.is-active,
.page-transition.is-cover {
  visibility: visible;
  pointer-events: all;
}
.page-transition__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-soft) 55%, #1a3048 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.72s var(--ease);
}
.page-transition.is-active .page-transition__panel,
.page-transition.is-cover .page-transition__panel {
  transform: scaleY(1);
}
.page-transition.is-cover .page-transition__panel {
  transition: none;
}
.page-transition.is-exit .page-transition__panel {
  transform-origin: top;
}
.page-transition.is-exit:not(.is-active):not(.is-cover) .page-transition__panel {
  transform: scaleY(0);
}
.page-transition__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  transform: scale(0.92);
}
.page-transition.is-active .page-transition__mark,
.page-transition.is-cover .page-transition__mark {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}
.page-transition.is-exit:not(.is-active):not(.is-cover) .page-transition__mark {
  opacity: 0;
  transition-delay: 0s;
  transform: scale(1.05);
}

/* Shell / container */
.shell,
.container {
  width: min(100% - 2rem, var(--max));
  max-width: var(--max);
  margin-inline: auto;
  box-sizing: border-box;
}
@media (min-width: 1100px) {
  .shell,
  .container {
    width: min(100% - 3rem - var(--rail), var(--max));
    margin-left: calc(var(--rail) + 1.25rem);
    margin-right: auto;
  }
}
@media (max-width: 480px) {
  .shell,
  .container { width: min(100% - 1.5rem, var(--max)); }
}

/* Side rail — PC vertical menu with icons */
.side-rail {
  display: none;
}
@media (min-width: 1100px) {
  .side-rail {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--rail);
    z-index: 300;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 1.1rem 0 1.15rem;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 55%, #1a3048 100%);
    color: var(--cream);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 4px 0 24px rgba(20, 37, 54, 0.12);
  }
  .side-rail__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
    color: var(--cream);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s var(--ease);
  }
  .side-rail__brand:hover {
    color: var(--gold-soft);
    transform: translateY(-1px);
  }
  .side-rail__mark {
    color: var(--gold-soft);
    display: grid;
    place-items: center;
  }
  .side-rail__icon.flame-mark,
  .side-rail .flame-mark.side-rail__icon {
    width: 2.15rem;
    height: 2.15rem;
    color: var(--gold-soft) !important;
    filter: drop-shadow(0 0 10px rgba(201, 184, 150, 0.65));
  }
  .side-rail__icon .flame-mark__svg,
  .side-rail .side-rail__icon.flame-mark .flame-mark__svg {
    width: 2.15rem;
    height: 2.15rem;
  }
  .side-rail__brand:hover .side-rail__icon {
    color: #e8d5a8 !important;
    filter: drop-shadow(0 0 14px rgba(232, 213, 168, 0.75));
  }
  .side-rail__word {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    font-weight: 650;
    opacity: 0.88;
  }

  .side-rail__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    justify-content: center;
    min-height: 0;
    width: 100%;
    padding: 0.25rem 0;
  }

  .side-rail__link,
  .side-rail__book {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.9rem;
    color: rgba(250, 248, 244, 0.72);
    text-decoration: none;
    transition:
      color 0.22s ease,
      background 0.22s ease,
      transform 0.22s var(--ease),
      box-shadow 0.22s ease;
  }
  .side-rail__link:hover,
  .side-rail__book:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(1px);
  }
  .side-rail__link.is-active {
    color: var(--navy);
    background: linear-gradient(145deg, var(--gold-soft), var(--gold));
    box-shadow: 0 6px 16px rgba(184, 160, 112, 0.35);
  }
  .side-rail__link.is-active:hover {
    color: var(--navy);
    background: linear-gradient(145deg, #d4c49a, var(--gold-soft));
  }

  .side-rail__ico,
  .side-rail__book-ico {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
  }
  .side-rail__ico svg,
  .side-rail__book-ico svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Hover label tooltip to the right */
  .side-rail__tip {
    position: absolute;
    left: calc(100% + 0.65rem);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    white-space: nowrap;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    background: var(--ink);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 8px 22px rgba(20, 37, 54, 0.28);
    transition: opacity 0.2s ease, transform 0.2s var(--ease), visibility 0.2s;
    z-index: 5;
  }
  .side-rail__tip::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--ink);
    transform: translateY(-50%) rotate(45deg);
  }
  .side-rail__link:hover .side-rail__tip,
  .side-rail__link:focus-visible .side-rail__tip,
  .side-rail__book:hover .side-rail__tip,
  .side-rail__book:focus-visible .side-rail__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }

  .side-rail__book {
    flex-shrink: 0;
    color: var(--cream);
    background: rgba(90, 154, 184, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .side-rail__book:hover {
    background: var(--teal-btn);
    color: #fff;
    box-shadow: 0 8px 20px rgba(90, 154, 184, 0.4);
  }
}

/* Tall screens: slightly larger rail hits */
@media (min-width: 1100px) and (min-height: 820px) {
  .side-rail__link,
  .side-rail__book {
    width: 2.7rem;
    height: 2.7rem;
  }
  .side-rail__nav { gap: 0.45rem; }
}

/* Short desktop height: compact icons */
@media (min-width: 1100px) and (max-height: 700px) {
  .side-rail {
    padding: 0.65rem 0 0.75rem;
    gap: 0.35rem;
  }
  .side-rail__word { font-size: 0.6rem; letter-spacing: 0.22em; }
  .side-rail__link,
  .side-rail__book {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
  }
  .side-rail__ico,
  .side-rail__book-ico {
    width: 1.15rem;
    height: 1.15rem;
  }
  .side-rail__nav { gap: 0.2rem; }
}

/* Demo bar */
.demo-bar {
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  position: relative;
  z-index: 400;
}
.demo-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  padding: 0.5rem 0;
}
.demo-bar__badge {
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(90, 154, 184, 0.35);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.demo-bar__text { margin: 0; flex: 1 1 12rem; opacity: 0.9; }
.demo-bar__variants {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.demo-bar__var {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
a.demo-bar__var:hover {
  background: rgba(90, 154, 184, 0.45);
  border-color: rgba(90, 154, 184, 0.7);
  color: #fff;
}
.demo-bar__var.is-current {
  background: rgba(90, 154, 184, 0.55);
  border-color: transparent;
  color: #fff;
  cursor: default;
}
.demo-bar__link { color: var(--gold-soft); font-weight: 700; text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 350;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30, 58, 95, 0.07);
  transition: box-shadow 0.35s var(--ease), background 0.35s ease, transform 0.4s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
  background: rgba(250, 248, 244, 0.94);
}
@media (min-width: 1024px) {
  .site-header.is-hidden {
    transform: translateY(-110%);
  }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding-block: 0.45rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  color: var(--navy);
}
/* Brand / animated candle flame */
.flame-mark {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold);
  line-height: 0;
}
.brand-mark,
.flame-mark__svg {
  width: 2.55rem;
  height: 2.55rem;
  color: inherit;
  display: block;
  overflow: visible;
}
.brand-mark--flame,
.flame-mark {
  color: var(--gold);
  filter: drop-shadow(0 0 7px rgba(184, 160, 112, 0.5));
}
.brand:hover .flame-mark,
.brand:hover .brand-mark--flame {
  color: var(--gold-soft);
  filter: drop-shadow(0 0 12px rgba(201, 184, 150, 0.65));
}

/* Candle flicker + sway */
.flame-mark__svg {
  transform-origin: 50% 88%;
  animation: flame-sway 2.8s ease-in-out infinite;
}
.flame-mark__outer {
  transform-origin: 50% 90%;
  animation: flame-outer 1.9s ease-in-out infinite;
}
.flame-mark__mid {
  transform-origin: 50% 88%;
  animation: flame-mid 1.45s ease-in-out infinite;
}
.flame-mark__core {
  transform-origin: 50% 85%;
  animation: flame-core 1.1s ease-in-out infinite;
}
.flame-mark__tip {
  transform-origin: 50% 80%;
  animation: flame-tip 0.85s ease-in-out infinite;
}
.flame-mark__glow {
  transform-origin: 50% 70%;
  animation: flame-glow 2.2s ease-in-out infinite;
}
@keyframes flame-sway {
  0%, 100% { transform: rotate(-3deg) scale(1, 1); }
  25% { transform: rotate(2.5deg) scale(1.02, 0.97); }
  50% { transform: rotate(-1.5deg) scale(0.98, 1.04); }
  75% { transform: rotate(3deg) scale(1.01, 0.99); }
}
@keyframes flame-outer {
  0%, 100% { transform: translateX(0) scale(1, 1); opacity: 1; }
  33% { transform: translateX(0.6px) scale(1.03, 0.96); opacity: 0.92; }
  66% { transform: translateX(-0.7px) scale(0.97, 1.05); opacity: 1; }
}
@keyframes flame-mid {
  0%, 100% { transform: translate(0, 0) scale(1, 1); }
  40% { transform: translate(0.5px, -0.6px) scale(1.05, 0.94); }
  70% { transform: translate(-0.6px, 0.3px) scale(0.96, 1.06); }
}
@keyframes flame-core {
  0%, 100% { transform: scale(1, 1); opacity: 0.95; }
  50% { transform: scale(1.08, 0.9) translateY(-0.5px); opacity: 1; }
}
@keyframes flame-tip {
  0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
  50% { transform: scale(1.15, 0.85) translateY(-1px); opacity: 0.85; }
}
@keyframes flame-glow {
  0%, 100% { opacity: 0.1; transform: scale(0.95); }
  50% { opacity: 0.22; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .flame-mark__svg,
  .flame-mark__outer,
  .flame-mark__mid,
  .flame-mark__core,
  .flame-mark__tip,
  .flame-mark__glow {
    animation: none !important;
  }
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  justify-content: center;
}
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}
.nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  color: var(--navy-soft);
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
}
.nav-link__i {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.75;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 0;
  height: 1.5px;
  background: var(--teal-btn);
  transition: width 0.35s var(--ease), left 0.35s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 70%;
  left: 15%;
}
.nav-link.is-active { color: var(--navy); font-weight: 600; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.btn-header { display: none; }
@media (min-width: 1024px) {
  .btn-header { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Lang */
.lang-dropdown { position: relative; z-index: 40; }
.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 58, 95, 0.12);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-dropdown__code {
  min-width: 1.6rem;
  padding: 0.12rem 0.3rem;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}
.lang-dropdown__name { max-width: 5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .lang-dropdown__name { display: none; } }
.lang-dropdown__chev { opacity: 0.7; transition: transform 0.2s; }
.lang-dropdown.is-open .lang-dropdown__chev { transform: rotate(180deg); }
.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.1);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
}
.lang-dropdown__menu[hidden] { display: none !important; }
.lang-dropdown__option {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  font-size: 0.85rem;
  color: var(--navy);
}
.lang-dropdown__option:hover,
.lang-dropdown__option.is-active { background: rgba(90, 154, 184, 0.14); font-weight: 650; }

/* Menu button */
.menu-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid rgba(30, 58, 95, 0.14);
  background: var(--white);
  color: var(--navy);
}
.menu-btn__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 1.1rem;
}
.menu-btn__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid rgba(30, 58, 95, 0.08);
}
.nav-mobile.is-open { display: block; }
.nav-mobile__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 0.15rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.07);
  color: var(--navy);
  font-size: 1.3rem;
  font-family: var(--font-serif);
  font-weight: 500;
}
.nav-mobile__link span {
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav-mobile__link.is-active { color: var(--teal-btn); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
  text-decoration: none;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--teal-btn);
  box-shadow: 0 10px 28px rgba(90, 154, 184, 0.32);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shine 3.5s var(--ease) infinite;
}
@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}
.btn-primary:hover { background: var(--teal-btn-hover); transform: translateY(-2px); }
.btn-ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(30, 58, 95, 0.14);
}
.btn-ghost:hover { border-color: var(--teal-btn); background: var(--white); }
.btn-outline {
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid rgba(30, 58, 95, 0.16);
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
}
.btn-arrow {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(2.25rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary::after { display: none; }
  .page-transition__panel { transition: none; }
  .footer-marquee__track { animation: none !important; }
  body.is-first-paint .page-main,
  body.is-first-paint main { animation: none; }
  .site-header { transition: none; }
  .site-header.is-hidden { transform: none; }
  .mag-btn { transition: none; }
}

/* Eyebrow / section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-btn);
}
.eyebrow__n {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.section { padding: 4rem 0; }
.section-head { max-width: 36rem; margin-bottom: 2rem; }
.section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.8vw, 3.25rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
}
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Hero */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding-bottom: 2.25rem;
}
@media (min-width: 900px) {
  .hero {
    min-height: min(92vh, 52rem);
    padding-bottom: 3rem;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hero-img) center / cover no-repeat;
  transform: scale(1.06);
  animation: hero-ken 18s ease-in-out infinite alternate;
}
@keyframes hero-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(250, 248, 244, 0.96) 0%, rgba(250, 248, 244, 0.88) 48%, rgba(30, 58, 95, 0.22) 100%),
    linear-gradient(to top, rgba(250, 248, 244, 0.85) 0%, transparent 42%);
}
@media (min-width: 900px) {
  .hero__veil {
    background:
      linear-gradient(115deg, rgba(250, 248, 244, 0.94) 0%, rgba(250, 248, 244, 0.78) 42%, rgba(30, 58, 95, 0.18) 100%),
      linear-gradient(to top, rgba(250, 248, 244, 0.75) 0%, transparent 45%);
  }
}
.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 1.75rem;
  padding-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .hero__layout {
    gap: 2rem;
    padding-top: 2.5rem;
  }
}
@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    min-height: min(88vh, 48rem);
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
}
.hero__copy {
  min-width: 0;
  max-width: 100%;
}
.hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 8.8vw, 4.75rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--navy);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.hero__line { display: block; }
.hero__line--soft {
  font-style: italic;
  color: var(--blue-mid);
  font-weight: 400;
}
.hero__lead {
  margin: 0 0 0.7rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  color: var(--text);
  line-height: 1.65;
}
.hero__sub {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.28rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
.hero__panel {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
@media (min-width: 640px) {
  .hero__panel { max-width: 26rem; margin-inline: auto; }
}
@media (min-width: 900px) {
  .hero__panel {
    max-width: none;
    margin-inline: 0;
  }
}
.hero__panel-frame {
  position: relative;
  border-radius: 1.35rem 1.35rem 0.45rem 1.35rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: min(52vw, 22rem);
  width: 100%;
  box-shadow: 0 30px 60px rgba(30, 58, 95, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transform: rotate(-1deg);
}
@media (min-width: 640px) {
  .hero__panel-frame {
    max-height: 28rem;
    border-radius: 1.75rem 1.75rem 0.5rem 1.75rem;
    transform: rotate(-1.5deg);
  }
}
@media (min-width: 900px) {
  .hero__panel-frame {
    max-height: 34rem;
    transform: rotate(-2deg) translateY(0.5rem);
  }
}
.hero__panel-photo {
  width: 100%;
  height: 100%;
  background: center 30% / cover no-repeat;
  filter: saturate(0.95) contrast(1.05);
}
.hero__panel-meta {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(10px);
  color: var(--navy);
  line-height: 1.25;
}
.hero__panel-meta span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-btn);
  font-weight: 700;
}
.hero__panel-meta strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  transform: rotate(-1deg);
}
.hero__chips span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 58, 95, 0.1);
  color: var(--navy-soft);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.4rem;
  border: 1.5px solid rgba(30, 58, 95, 0.25);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 0.4rem;
  z-index: 2;
}
.hero__scroll span {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--navy);
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0.9rem); opacity: 0; }
}

/* ---- Ambient motes (floating dust / light) ---- */
.hero-motes {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-motes__dot {
  position: absolute;
  left: calc(8% + (var(--i) * 7.2%));
  bottom: -4%;
  width: calc(2px + (var(--i) % 3) * 1.5px);
  height: calc(2px + (var(--i) % 3) * 1.5px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 230, 0.95) 0%, rgba(184, 160, 112, 0.35) 60%, transparent 70%);
  box-shadow: 0 0 8px rgba(255, 240, 200, 0.45);
  opacity: 0;
  animation: mote-rise calc(11s + var(--i) * 0.9s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.1s);
}
@keyframes mote-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  12% { opacity: 0.75; }
  50% {
    opacity: 0.45;
    transform: translate3d(calc(var(--i) * 4px - 18px), -48vh, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--i) * -6px + 10px), -92vh, 0) scale(0.4);
  }
}

/* Instructor card */
.instructor {
  padding: 1rem 0 2rem;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(90, 154, 184, 0.12), transparent 55%),
    var(--cream);
}
.instructor-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 2rem;
  background: linear-gradient(145deg, #fff 0%, var(--cream-2) 100%);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: var(--shadow);
  min-width: 0;
}
@media (min-width: 900px) {
  .instructor-card { grid-template-columns: 0.95fr 1.15fr; min-height: 28rem; }
}
.instructor-card__glow {
  position: absolute;
  width: 50%;
  height: 60%;
  left: -10%;
  top: -20%;
  background: radial-gradient(circle, rgba(90, 154, 184, 0.2), transparent 70%);
  pointer-events: none;
}
.instructor-card__orbit {
  position: absolute;
  right: -5rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px dashed rgba(184, 160, 112, 0.35);
  pointer-events: none;
}
.instructor-card__media,
.instructor-card__body { position: relative; z-index: 1; min-width: 0; }
.instructor-card__media {
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 900px) {
  .instructor-card__media { padding: 1.5rem 0 1.5rem 1.5rem; }
}
.instructor-card__frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 16rem;
  flex: 1;
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.14);
}
.instructor-card__photo {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  background:
    linear-gradient(180deg, transparent 45%, rgba(20, 37, 54, 0.35)),
    var(--instructor-img) 55% 25% / cover no-repeat;
}
@media (min-width: 900px) {
  .instructor-card__photo,
  .instructor-card__frame { min-height: 100%; }
}
.instructor-card__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 248, 244, 0.94);
  color: var(--navy);
  border: 1px solid rgba(184, 160, 112, 0.4);
}
.instructor-card__badge svg { width: 1.9rem; height: 1.9rem; }
.instructor-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding-bottom: 0.25rem;
}
.instructor-stat {
  text-align: center;
  padding: 0.7rem 0.3rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(30, 58, 95, 0.07);
  min-width: 0;
}
.instructor-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
}
.instructor-stat strong { font-size: 1.25rem; }
.instructor-stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.instructor-card__body {
  padding: 1.5rem 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 900px) {
  .instructor-card__body { padding: 2.25rem 2.4rem; }
}
.instructor-card__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-btn);
}
.instructor-card__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.2vw, 3.15rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.05;
}
.instructor-card__role {
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.22rem;
}
.instructor-card__quote {
  position: relative;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(30, 58, 95, 0.05);
  border-left: 3px solid var(--gold-soft);
}
.instructor-card__quote-mark {
  position: absolute;
  top: 0;
  left: 0.55rem;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold-soft);
  opacity: 0.5;
}
.instructor-card__quote p {
  margin: 0;
  padding-left: 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
}
.instructor-card__text {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.instructor-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
}
.instructor-card__tags li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(30, 58, 95, 0.06);
  color: var(--navy-soft);
}
.instructor-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}
.instructor-card__link {
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid transparent;
}
.instructor-card__link:hover {
  color: var(--teal-btn);
  border-bottom-color: var(--teal-btn);
}

/* Atlas — editorial site index (replaces boring explore cards) */
.atlas {
  position: relative;
  padding: 3.5rem 0 4rem;
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 40%, var(--cream) 100%);
  overflow: hidden;
}
.atlas::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(28rem, 55vw);
  height: min(28rem, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 154, 184, 0.1), transparent 68%);
  pointer-events: none;
}
.atlas__intro {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: start;
}
@media (min-width: 800px) {
  .atlas__intro {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 2.25rem;
    align-items: end;
  }
}
.atlas__intro-mark {
  display: none;
}
@media (min-width: 800px) {
  .atlas__intro-mark {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    border: 1px solid rgba(30, 58, 95, 0.14);
    background: var(--white);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.06);
  }
}
.atlas__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-btn);
}
.atlas__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  max-width: 16ch;
}
.atlas__lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}
.atlas__list {
  position: relative;
  border-top: 1px solid rgba(30, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 0 1.25rem 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.05);
}
.atlas-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem 0.9rem;
  padding: 1.05rem 1rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.09);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  transition: background 0.28s ease, padding 0.28s var(--ease);
}
.atlas-row:last-child { border-bottom: 0; }
@media (min-width: 700px) {
  .atlas-row {
    gap: 1.15rem 1.35rem;
    padding: 1.2rem 1.4rem;
  }
}
.atlas-row:hover,
.atlas-row:focus-visible {
  background: rgba(90, 154, 184, 0.08);
  outline: none;
}
@media (min-width: 700px) {
  .atlas-row:hover,
  .atlas-row:focus-visible {
    padding-left: 1.75rem;
  }
}
.atlas-row__n {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  min-width: 2.25rem;
  line-height: 1;
}
.atlas-row__ico {
  display: grid;
  place-items: center;
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 0.85rem;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.1);
  color: var(--navy-soft);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.atlas-row__ico svg {
  width: 1.55rem;
  height: 1.55rem;
}
.atlas-row:hover .atlas-row__ico {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  transform: rotate(-4deg);
}
.atlas-row__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.atlas-row__title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}
.atlas-row__blurb {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 700px) {
  .atlas-row__blurb {
    -webkit-line-clamp: 1;
    font-size: 1.05rem;
  }
}
.atlas-row__go {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  color: var(--navy);
  border: 1px solid rgba(30, 58, 95, 0.14);
  background: var(--white);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.atlas-row:hover .atlas-row__go {
  background: var(--teal-btn);
  border-color: var(--teal-btn);
  color: #fff;
  transform: translateX(3px);
}
@media (max-width: 480px) {
  .atlas { padding: 2.5rem 0 3rem; }
  .atlas-row {
    grid-template-columns: auto auto 1fr auto;
    gap: 0.55rem 0.65rem;
    padding: 1rem 0.85rem;
  }
  .atlas-row__ico {
    width: 2.45rem;
    height: 2.45rem;
  }
  .atlas-row__ico svg {
    width: 1.3rem;
    height: 1.3rem;
  }
  .atlas-row__blurb { font-size: 0.9rem; }
}

/* Services — staggered diagonal cards */
.services-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .service-card:nth-child(2) { margin-top: 2rem; }
  .service-card:nth-child(3) { margin-top: 0.75rem; }
}
.service-card {
  padding: 1.5rem 1.25rem;
  border-radius: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: var(--shadow);
  min-width: 0;
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-5px); }
.service-icon {
  width: 3.85rem;
  height: 3.85rem;
  margin-bottom: 1rem;
  color: var(--teal-btn);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  font-weight: 500;
}
.service-divider {
  width: 2.5rem;
  height: 2px;
  background: var(--gold-soft);
  margin-bottom: 0.75rem;
}
.service-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.service-link {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.service-link:hover { color: var(--teal-btn); }

/* Trust */
.trust {
  padding: 2.5rem 0;
  background: var(--navy);
  color: var(--cream);
}
.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}
.trust-item svg {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--gold-soft);
  margin-bottom: 0.55rem;
}
.trust-item strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}
.trust-item span {
  font-size: 0.92rem;
  opacity: 0.78;
  line-height: 1.4;
}
.tagline {
  text-align: center;
  margin: 0;
  padding: 1.5rem 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
  background: var(--cream-2);
}
.tagline span { color: var(--gold); }

/* CTA */
.cta-band {
  padding: 4.5rem 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, #2a4a6a 100%);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  right: -5rem;
  top: -6rem;
  background: radial-gradient(circle, rgba(90, 154, 184, 0.35), transparent 70%);
}
.cta-band .shell,
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 500;
}
.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}
.cta-band .btn-primary {
  background: var(--cream);
  color: var(--navy);
  box-shadow: none;
}
.cta-band .btn-primary::after { display: none; }
.cta-band .btn-primary:hover { background: var(--white); color: var(--navy); }

/* Page hero (inner) */
.page-hero {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, var(--cream-2), var(--cream));
  border-bottom: 1px solid rgba(30, 58, 95, 0.06);
}
.page-hero__inner { max-width: 40rem; }
.page-hero__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-btn);
}
.page-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.2vw, 3.45rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1;
}
.page-hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}
.section-ornament { display: none; }
.content-page { padding: 2.5rem 0 4rem; }
.content-layout {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 860px) {
  .content-layout { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; }
}
.content-prose p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.content-visual,
.about-visual {
  border-radius: 1.5rem;
  min-height: 16rem;
  background:
    linear-gradient(160deg, rgba(91, 138, 184, 0.22), rgba(250, 248, 244, 0.3)),
    url("../img/hero.jpg") 60% center / cover no-repeat;
  box-shadow: var(--shadow);
}
.about-list { padding-left: 0; list-style: none; }
.about-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: var(--text);
}
.about-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.info-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info-card {
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 10px 28px rgba(30, 58, 95, 0.05);
  min-width: 0;
}
.info-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 500;
}
.info-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* Schedule */
.schedule-wrap {
  overflow-x: auto;
  border-radius: 1.25rem;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: var(--shadow);
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
}
.schedule-table th,
.schedule-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(30, 58, 95, 0.07);
}
.schedule-table th {
  background: rgba(30, 58, 95, 0.05);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.schedule-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
@media (max-width: 640px) {
  .schedule-table { min-width: 0; }
  .schedule-table thead { display: none; }
  .schedule-table tr { display: block; padding: 0.85rem 1rem; border-bottom: 1px solid rgba(30, 58, 95, 0.08); }
  .schedule-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: 0.25rem 0;
  }
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--navy);
    font-size: 0.75rem;
    text-transform: uppercase;
  }
}

/* Photos + lightbox (keep functional styles) */
.gallery-empty-note {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(90, 154, 184, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
}
.gallery-empty-note a { color: var(--teal-btn); font-weight: 700; }
.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.4s var(--ease);
}
.photo-card:hover { transform: translateY(-4px); }
.photo-card__img {
  display: block;
  aspect-ratio: 4/3;
  background: center / cover no-repeat var(--sand);
  transition: transform 0.6s var(--ease);
}
.photo-card:hover .photo-card__img { transform: scale(1.05); }
.photo-card__zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(250, 248, 244, 0.92);
  color: var(--navy);
}
.photo-card__cap {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
  border: 0;
  cursor: zoom-out;
}
.lightbox__stage {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}
.lightbox__frame {
  width: 100%;
  max-height: min(72vh, 700px);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}
.lightbox__img {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: min(72vh, 700px);
  background: center / cover no-repeat #1e293b;
  transition: opacity 0.22s;
}
.lightbox.is-animating .lightbox__img { opacity: 0.55; }
.lightbox__caption { margin: 0; color: #f8fafc; font-weight: 600; }
.lightbox__counter { margin: 0; color: rgba(248, 250, 252, 0.7); font-size: 0.82rem; }
.lightbox__close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 5;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
}
.lightbox__close-x { position: relative; width: 1.05rem; height: 1.05rem; }
.lightbox__close-x::before,
.lightbox__close-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.lightbox__close-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}
.lightbox__nav svg { width: 2.2rem; height: 2.2rem; }
.lightbox__nav--prev { left: 0.65rem; }
.lightbox__nav--next { right: 0.65rem; }
.lightbox__nav:hover { background: rgba(90, 154, 184, 0.4); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.88);
  padding-bottom: 2rem;
  overflow: hidden;
}
.footer-marquee {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 0.95rem 0;
  margin-bottom: 2rem;
  width: 100%;
  /* Start from left of content — not mid-screen under the PC rail */
  margin-left: 0;
  box-sizing: border-box;
}
@media (min-width: 1100px) {
  .footer-marquee {
    margin-left: var(--rail);
    width: calc(100% - var(--rail));
  }
}
.footer-marquee__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee 48s linear infinite;
  will-change: transform;
}
.footer-marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.1rem;
  padding-right: 1.1rem;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  opacity: 0.6;
}
.footer-marquee__word {
  letter-spacing: 0.02em;
}
.footer-marquee__dot {
  opacity: 0.45;
  font-weight: 400;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: #fff;
}
.footer-brand__icon.flame-mark,
.footer-brand .flame-mark.footer-brand__icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--gold-soft) !important;
  filter: drop-shadow(0 0 10px rgba(201, 184, 150, 0.5));
}
.footer-brand__icon .flame-mark__svg {
  width: 2.75rem;
  height: 2.75rem;
}
.footer-brand p { color: rgba(255, 255, 255, 0.65); font-size: 1.02rem; line-height: 1.6; max-width: 22rem; }
.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-col a {
  display: block;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
}
.footer-col a:hover { color: #fff; }
.theme-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 1.25rem;
}
@media (min-width: 720px) {
  .theme-picker {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.theme-picker__text strong { display: block; color: #fff; font-size: 0.9rem; }
.theme-picker__text span { color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; }
.theme-picker__swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.theme-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  cursor: pointer;
}
.theme-swatch.is-active { border-color: var(--gold-soft); background: rgba(255, 255, 255, 0.08); }
.theme-swatch__dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, var(--swatch-1) 50%, var(--swatch-2) 50%);
}
.theme-swatch--ocean { --swatch-1: #1e3a5f; --swatch-2: #5a9ab8; }
.theme-swatch--sage { --swatch-1: #2f4a3c; --swatch-2: #5f9a72; }
.theme-swatch--rose { --swatch-1: #5c3d4a; --swatch-2: #b88494; }
.theme-swatch--sand { --swatch-1: #4a3b2f; --swatch-2: #a8845c; }
.theme-swatch--dusk { --swatch-1: #3d3558; --swatch-2: #8574a8; }
@media (max-width: 420px) { .theme-swatch__name { display: none; } }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: #fff; }

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.85rem;
  pointer-events: none;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner__panel {
  pointer-events: auto;
  max-width: min(48rem, 100%);
  margin: 0 auto;
  background: var(--white);
  color: var(--text);
  border-radius: 1.15rem;
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.22);
  border: 1px solid rgba(30, 58, 95, 0.1);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .cookie-banner__panel { grid-template-columns: 1fr auto; align-items: center; }
}
.cookie-banner__title { margin: 0 0 0.3rem; font-weight: 700; color: var(--navy); }
.cookie-banner__text { margin: 0; font-size: 0.85rem; color: var(--muted); }
.cookie-banner__links { margin: 0.4rem 0 0; display: flex; gap: 0.85rem; font-size: 0.8rem; }
.cookie-banner__links a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions .btn { flex: 1 1 auto; min-width: 7rem; }

/* Contact form bits */
.contact-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 0.95fr 1.15fr; gap: 2rem; }
}
.contact-meta {
  display: grid;
  gap: 0.75rem;
}
.contact-meta__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  min-width: 0;
}
.contact-meta__item svg { width: 1.55rem; height: 1.55rem; color: var(--teal-btn); flex-shrink: 0; }
.contact-meta strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.contact-meta span,
.contact-meta__link { color: var(--muted); overflow-wrap: anywhere; }
.contact-form {
  background: var(--white);
  border-radius: 1.35rem;
  padding: 1.25rem;
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: var(--shadow);
  min-width: 0;
}
.contact-form__title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  font-weight: 500;
}
.form-row { display: grid; gap: 0.85rem; margin-bottom: 0.85rem; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: 0.7rem;
  font: inherit;
  font-size: 16px;
  background: var(--cream);
  color: var(--text);
}
.form-field textarea { min-height: 7rem; resize: vertical; }
.btn-block { width: 100%; }
.form-note { margin: 0.75rem 0 0; font-size: 0.78rem; color: var(--muted); }
.form-status { display: none; margin-top: 0.85rem; padding: 0.75rem 1rem; border-radius: 0.65rem; font-size: 0.9rem; }
.form-status.is-ok { display: block; background: rgba(90, 154, 184, 0.12); color: var(--navy); }
.form-status.is-err { display: block; background: rgba(180, 80, 80, 0.1); color: #8a3030; }

/* Map */
.map-block { margin-top: 2.25rem; }
.map-frame-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
  height: min(55vw, 22rem);
  min-height: 14rem;
  position: relative;
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: var(--shadow);
}
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.map-btn { display: inline-flex; align-items: center; gap: 0.45rem; }

/* Icon picker (minimal support) */
.icon-preview-bar,
.icon-set { margin-bottom: 1.5rem; }
.icon-set__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 800px) {
  .icon-set__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.icon-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.6rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(30, 58, 95, 0.1);
  background: var(--white);
  cursor: pointer;
  font: inherit;
}
.icon-pick.is-selected { border-color: var(--teal-btn); box-shadow: 0 0 0 3px rgba(90, 154, 184, 0.2); }
.icon-pick__svg { width: 3rem; height: 3rem; color: var(--navy); }
.icon-pick__svg svg { width: 100%; height: 100%; }
.icon-pick__id { font-size: 0.72rem; font-weight: 800; color: var(--teal-btn); }
.icon-pick__label { font-size: 0.75rem; color: var(--muted); text-align: center; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 13000;
}
.skip-link:focus { left: 0.5rem; }

/* Entry animation for page content */
.page-main {
  animation: page-in 0.85s var(--ease-out) both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-main,
  .hero__bg,
  .hero-motes__dot { animation: none !important; }
}

/* =========================================================
   RESPONSIVE — phone / tablet / desktop polish
   ========================================================= */

/* Safe areas (notch / home indicator) */
@supports (padding: max(0px)) {
  body.v1-body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .cookie-banner {
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
  .site-footer {
    padding-bottom: max(2rem, calc(1.25rem + env(safe-area-inset-bottom)));
  }
}

/* Phone (≤640) */
@media (max-width: 640px) {
  .demo-bar { font-size: 0.68rem; }
  .demo-bar__inner {
    gap: 0.35rem 0.55rem;
    padding: 0.45rem 0;
  }
  .demo-bar__text {
    flex: 1 1 100%;
    line-height: 1.35;
  }

  .header-inner {
    min-height: 3.65rem;
    gap: 0.4rem;
    padding-block: 0.3rem;
  }
  .brand-mark,
  .flame-mark__svg { width: 2.2rem; height: 2.2rem; }
  .brand-name { font-size: 1.28rem; }
  .header-actions { gap: 0.3rem; }
  .lang-dropdown__toggle {
    min-height: 2.35rem;
    padding: 0.25rem 0.45rem;
  }
  .menu-btn {
    width: 2.45rem;
    height: 2.45rem;
  }

  .nav-mobile__link {
    padding: 0.95rem 0.1rem;
    font-size: 1.22rem;
  }

  .btn {
    padding: 0.9rem 1.3rem;
    font-size: 0.98rem;
    min-height: 2.9rem;
  }

  .hero__lead { font-size: 1.05rem; }
  .hero__sub { font-size: 1.15rem; margin-bottom: 1.15rem; }
  .hero__chips {
    gap: 0.3rem;
    margin-top: 0.85rem;
  }
  .hero__chips span {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
  }
  .hero__panel-meta {
    left: 0.65rem;
    bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
  }
  .hero__panel-meta strong { font-size: 1.15rem; }
  .hero__scroll {
    bottom: 0.65rem;
    width: 1.35rem;
    height: 2.1rem;
  }

  /* Fewer motes on small screens */
  .hero-motes__dot:nth-child(n+7) { display: none; }

  .section { padding: 2.75rem 0; }
  .section-head { margin-bottom: 1.35rem; }
  .section-title { font-size: clamp(1.75rem, 7vw, 2.35rem); }

  .instructor-card__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .instructor-card__actions .btn { width: 100%; }
  .instructor-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .instructor-stat {
    padding: 0.55rem 0.2rem;
  }
  .instructor-stat strong { font-size: 1.05rem; }
  .instructor-stat span { font-size: 0.7rem; }

  .atlas__title { max-width: none; }

  .services-grid { gap: 0.85rem; }
  .service-card { padding: 1.15rem; }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .trust-item {
    padding: 0.85rem 0.7rem;
  }
  .trust-item strong { font-size: 0.98rem; }
  .trust-item span { font-size: 0.85rem; }

  .cta-band { padding: 2.5rem 0; text-align: center; }
  .cta-band h2 { font-size: clamp(1.65rem, 6.5vw, 2.2rem); }
  .cta-band .btn { width: 100%; max-width: 22rem; }

  .page-hero { padding: 2rem 0 1.5rem; }
  .page-hero h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .content-page { padding: 1.75rem 0 3rem; }
  .content-visual,
  .about-visual { min-height: 12.5rem; }

  .schedule-wrap {
    margin-inline: -0.25rem;
    padding-bottom: 0.25rem;
  }

  .photo-grid { gap: 0.65rem; }

  .footer-grid { gap: 1.35rem; }
  .theme-picker { padding: 0.85rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .contact-form { padding: 1.05rem; }
  .lightbox__nav {
    width: 2.65rem;
    height: 2.65rem;
  }
  .lightbox__nav--prev { left: 0.35rem; }
  .lightbox__nav--next { right: 0.35rem; }

  .tagline {
    font-size: 0.95rem;
    padding: 0 1rem 1.5rem;
    text-align: center;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .shell,
  .container { width: min(100% - 1.25rem, var(--max)); }
  .hero__title { font-size: clamp(1.85rem, 9vw, 2.2rem); }
  .trust-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.05rem; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 899px) {
  .hero__layout {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }
  .hero__panel { max-width: 24rem; }
  .instructor-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  @media (min-width: 720px) {
    .services-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .services-grid .service-card:last-child {
      grid-column: 1 / -1;
      max-width: 50%;
      justify-self: center;
      width: 100%;
    }
  }
}

/* Desktop nav density */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-link { padding: 0.4rem 0.45rem; font-size: 0.8rem; }
  .nav-link__t { max-width: 6rem; text-align: center; line-height: 1.2; }
}

/* Prevent accidental horizontal scroll from transforms */
.hero__panel-frame,
.service-card,
.instructor-card {
  max-width: 100%;
}

/* Touch: disable hover-lift jank */
@media (hover: none) {
  .service-card:hover { transform: none; }
  .mag-btn { transform: none !important; }
  .atlas-row:hover { padding-left: 1rem; }
}

/* Landscape phones — shorter hero */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding-bottom: 1.25rem; }
  .hero__layout { padding-top: 1rem; gap: 1rem; }
  .hero__panel-frame { max-height: 12rem; aspect-ratio: 16/10; }
  .hero-motes { display: none; }
  .hero__scroll { display: none; }
}

/* Body lock when mobile menu open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}
