/* ============================================================
   POSEIDON INK MALTA · CARVED IN INK
   Neoclassical cinematic museum piece. Dark, slow, precise.
   ============================================================ */

:root {
  --bg: #060E1A;
  --surface-1: #0B1E36;
  --surface-2: #122A45;
  --hairline: #1E3A5F;
  --teal: #2E9CA9;
  --teal-hi: #5BC6D0;
  --head: #F2ECDC;
  --body: #CBC4B4;
  --muted: #8B9AA8;
  --font-display: 'Cinzel', serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: rgba(46, 156, 169, 0.35); color: var(--head); }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: -60px; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.055;
  animation: grain-shift 7s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 22px); }
  50% { transform: translate(24px, -14px); }
  75% { transform: translate(-12px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ---------- cursor orb ---------- */
.orb {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 240px; height: 240px; margin: -120px 0 0 -120px;
  background: radial-gradient(circle, rgba(91,198,208,0.16) 0%, rgba(46,156,169,0.07) 34%, rgba(6,14,26,0) 68%);
  border-radius: 50%;
  mix-blend-mode: screen;
  transform: scale(0.55);
  transition: transform 0.6s var(--ease-expo), opacity 0.4s;
  opacity: 0;
}
.orb::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: var(--teal-hi); box-shadow: 0 0 14px 2px rgba(91,198,208,0.85);
}
body.orb-on .orb { opacity: 1; }
body.orb-lume .orb { transform: scale(1.05); }
@media (pointer: coarse) { .orb { display: none; } }

/* ---------- fixed chrome ---------- */
.topnav {
  position: fixed; z-index: 80; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(6,14,26,0.82), rgba(6,14,26,0));
}
.topnav__brand { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.topnav__brand img { width: 44px; height: auto; opacity: 0.92; }
.topnav__word {
  font-family: var(--font-display); font-weight: 600; color: var(--head);
  font-size: 15px; letter-spacing: 0.18em; line-height: 1.25; display: inline-flex; flex-direction: column;
}
.topnav__word em {
  font-style: normal; font-family: var(--font-body); font-weight: 500;
  font-size: 9px; letter-spacing: 0.55em; color: var(--muted);
}
.topnav__cta {
  min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 22px; border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--head);
  transition: border-color 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-expo), color 0.5s;
}
.topnav__cta:hover { border-color: var(--teal); color: var(--teal-hi); box-shadow: 0 0 24px rgba(46,156,169,0.25), inset 0 0 12px rgba(46,156,169,0.08); }
.topnav__cta--ghost { margin-top: 34px; }

.chapnav {
  position: fixed; z-index: 80; right: clamp(10px, 2vw, 30px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px;
}
.chapnav a {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  height: 44px; padding: 0 6px;
  color: var(--muted); font-family: var(--font-display); font-weight: 500; font-size: 13px; letter-spacing: 0.12em;
  transition: color 0.5s;
}
.chapnav a i {
  position: absolute; right: 56px; top: 50%; margin-top: -6px; white-space: nowrap;
  font-style: normal; font-family: var(--font-body); font-size: 9px; letter-spacing: 0.34em; text-transform: uppercase;
  opacity: 0; transform: translateX(8px); transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
  color: var(--muted);
}
.chapnav a span {
  width: 36px; text-align: right; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color 0.5s, border-color 0.5s, text-shadow 0.5s;
}
.chapnav a:hover i { opacity: 1; transform: none; }
.chapnav a.is-active { color: var(--head); }
.chapnav a.is-active span { color: var(--teal-hi); border-color: var(--teal); text-shadow: 0 0 18px rgba(91,198,208,0.6); }

.dots { display: none; }

.ritepill {
  position: fixed; z-index: 80; right: clamp(16px, 2.4vw, 34px); bottom: clamp(16px, 3vh, 30px);
  min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 24px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: rgba(11,30,54,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--head); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  transition: border-color 0.5s, box-shadow 0.5s, transform 0.8s var(--ease-expo);
}
.ritepill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-hi); box-shadow: 0 0 10px rgba(91,198,208,0.9); }
.ritepill:hover { border-color: var(--teal); box-shadow: 0 0 26px rgba(46,156,169,0.28); }

/* ---------- shared chapter chrome ---------- */
.ch { position: relative; }
.ch__head { max-width: 880px; }
.ch__num {
  display: block; font-family: var(--font-display); font-weight: 500; font-size: 15px;
  letter-spacing: 0.5em; color: var(--teal); margin-bottom: 18px;
}
.ch__title {
  font-family: var(--font-display); font-weight: 600; color: var(--head);
  font-size: clamp(38px, 6vw, 84px); letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.05;
}
.ch__lede { margin-top: 22px; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); letter-spacing: 0.04em; }

.reveal { opacity: 0; transform: translateY(46px); }
body[data-motion="reduced"] .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- I · hero ---------- */
.ch--myth { height: 100vh; }
.hero { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero__canvas, .hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
}
.hero__video { display: none; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(6,14,26,0) 34%, rgba(6,14,26,0.55) 82%, rgba(6,14,26,0.9) 100%),
    linear-gradient(to bottom, rgba(6,14,26,0.35), rgba(6,14,26,0) 26%, rgba(6,14,26,0) 62%, var(--bg) 98%);
}
.hero__title {
  position: absolute; left: 0; right: 0; top: 49.5vh; text-align: center; padding: 0 var(--pad);
  z-index: 2; pointer-events: none;
}
.hero__title::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  width: min(96vw, 1240px); height: 240%;
  background: radial-gradient(ellipse, rgba(6,14,26,0.68) 0%, rgba(6,14,26,0.38) 46%, rgba(6,14,26,0) 74%);
  pointer-events: none;
}
.hero__over {
  font-size: 10.5px; letter-spacing: 0.5em; color: rgba(242,236,220,0.88); font-weight: 600; margin-bottom: 3vh;
  text-shadow: 0 1px 14px rgba(6,14,26,0.95);
}
.hero__name {
  font-family: var(--font-display); font-weight: 700; color: var(--head);
  font-size: clamp(34px, 6.6vw, 118px); letter-spacing: 0.14em; line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 18px rgba(6,14,26,0.9), 0 0 70px rgba(6,14,26,0.65);
}
.hero__name .lt { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
body[data-motion="reduced"] .hero__name .lt { opacity: 1; transform: none; filter: none; }
.hero__malta {
  margin-top: 2.6vh; font-size: clamp(11px, 1.1vw, 15px); letter-spacing: 0.85em; color: rgba(242,236,220,0.92); font-weight: 500;
  text-shadow: 0 1px 14px rgba(6,14,26,0.95);
}
.hero__thesis {
  position: absolute; left: 0; right: 0; bottom: 7vh;
  display: flex; flex-direction: column; align-items: center; gap: 2.6vh; padding: 0 var(--pad);
  opacity: 0; transform: translateY(30px);
  z-index: 3;
}
.hero__cta { background: rgba(11,30,54,0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__thesis p {
  font-family: var(--font-display); font-weight: 500; text-align: center;
  color: var(--head); font-size: clamp(18px, 2.2vw, 30px); letter-spacing: 0.12em; line-height: 1.7;
}
body[data-motion="reduced"] .hero__thesis { opacity: 1; transform: none; }
.hero__cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 2.6vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--muted);
}
.hero__cue span { width: 1px; height: 52px; background: linear-gradient(to bottom, transparent, var(--teal)); overflow: hidden; position: relative; }
.hero__cue span::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--teal-hi); animation: cue-drop 2.6s var(--ease-expo) infinite;
}
@keyframes cue-drop { 0% { top: -50%; } 60%, 100% { top: 110%; } }
body[data-motion="reduced"] .hero__cue span::after { animation: none; }

/* ---------- II · craft ---------- */
.ch--craft { background: var(--bg); }
.craft__pin { position: relative; height: 100vh; overflow: hidden; }
.craft__media, .craft__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil--media {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(6,14,26,0.2) 0%, rgba(6,14,26,0.86) 78%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(6,14,26,0.25) 22%, rgba(6,14,26,0.25) 74%, var(--bg) 100%);
}
.craft__stage {
  position: relative; z-index: 2; height: 100%; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; gap: 7vh;
  padding: 0 var(--pad);
}
.beats { display: grid; gap: 3.2vh; max-width: 560px; }
.beat h3 {
  font-family: var(--font-display); font-weight: 600; color: var(--head);
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 0.3em; text-transform: uppercase;
}
.beat p { margin-top: 8px; color: var(--body); }
.beat { opacity: 0.16; transform: translateX(-14px); transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo); }
.beat.is-lit { opacity: 1; transform: none; }
.beat.is-lit h3 { text-shadow: 0 0 30px rgba(91,198,208,0.35); }
body[data-motion="reduced"] .beat { opacity: 1; transform: none; }

/* ---------- III · work ---------- */
.inkgate { position: relative; height: 88vh; overflow: hidden; }
.inkgate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inkgate__text {
  position: absolute; inset: 0; display: flex; align-items: flex-end; pointer-events: none;
  padding: 0 var(--pad) 10vh;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(6,14,26,0) 30%, rgba(6,14,26,0.1) 60%, var(--bg) 100%);
}
.filter {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 7vh var(--pad) 0; max-width: 1560px; margin: 0 auto;
}
.fchip {
  min-height: 44px; padding: 0 20px; border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  white-space: nowrap; transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.fchip:hover { color: var(--head); border-color: rgba(46,156,169,0.6); }
.fchip.is-active { color: var(--teal-hi); border-color: var(--teal); box-shadow: 0 0 18px rgba(46,156,169,0.25); }
.hall {
  columns: 3; column-gap: clamp(18px, 2.2vw, 34px);
  padding: 6vh var(--pad) 16vh; max-width: 1560px; margin: 0 auto;
}
.plinth {
  position: relative; border: 1px solid var(--hairline); border-radius: 3px;
  background: linear-gradient(170deg, var(--surface-1) 0%, #081525 100%);
  padding: clamp(12px, 1.4vw, 22px) clamp(12px, 1.4vw, 22px) 0;
  cursor: pointer;
  break-inside: avoid; margin: 0 0 clamp(18px, 2.2vw, 34px);
  transition: border-color 0.6s var(--ease-expo), box-shadow 0.6s var(--ease-expo), transform 0.7s var(--ease-expo);
}
.plinth.is-hidden { display: none; }
.plinth img {
  width: 100%; height: auto; filter: saturate(0.98); min-height: 120px;
  background: linear-gradient(100deg, #0B1E36 40%, #17365A 50%, #0B1E36 60%);
  background-size: 220% 100%;
  animation: plinth-shimmer 1.5s linear infinite;
}
.plinth img.is-loaded { animation: none; background: none; min-height: 0; }
@keyframes plinth-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.plinth::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(6,14,26,0) 42%, rgba(6,14,26,0.42) 100%);
}
.plinth figcaption {
  position: relative; z-index: 2; padding: 14px 2px 16px; text-align: center;
}
.plinth__label { display: block; font-size: 9.5px; letter-spacing: 0.3em; color: var(--muted); font-weight: 600; }
.plinth__cap { display: block; margin-top: 7px; font-size: 12px; letter-spacing: 0.03em; color: var(--body); font-weight: 300; line-height: 1.5; }
.plinth:hover { border-color: rgba(46,156,169,0.6); box-shadow: 0 18px 60px rgba(0,0,0,0.55), 0 0 26px rgba(46,156,169,0.12); transform: translateY(-5px); }

/* ---------- IV · hand ---------- */
.ch--hand { padding: 16vh var(--pad); }
.hand__grid {
  display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: clamp(32px, 5vw, 90px);
  align-items: center; margin-top: 8vh; max-width: 1280px;
}
.hand__portrait {
  border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden; position: relative;
  background: var(--surface-1); padding: clamp(12px, 1.2vw, 20px);
}
.hand__portrait img { border-radius: 2px; }
.hand__portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 26%, rgba(6,14,26,0) 46%, rgba(6,14,26,0.38) 100%); }
.hand__bio h3 {
  font-family: var(--font-display); font-weight: 600; color: var(--head);
  font-size: clamp(26px, 3vw, 44px); letter-spacing: 0.14em;
}
.hand__draft { margin: 14px 0 20px; font-size: 10px; letter-spacing: 0.3em; color: var(--teal); font-weight: 500; }
.hand__bio p + p { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.chips li {
  border: 1px solid var(--hairline); border-radius: 999px; padding: 9px 18px;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--body); font-weight: 500;
}
.link {
  color: var(--teal-hi); font-weight: 500; letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(91,198,208,0.35); padding-bottom: 2px;
  transition: border-color 0.4s, text-shadow 0.4s;
  display: inline-flex; min-height: 44px; align-items: center;
}
.link:hover { border-color: var(--teal-hi); text-shadow: 0 0 18px rgba(91,198,208,0.5); }

/* ---------- V · temple ---------- */
.ch--temple { padding: 16vh 0 0; }
.ch--temple .ch__head { padding: 0 var(--pad); }
.temple__panels {
  display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2vw, 32px);
  padding: 8vh var(--pad); max-width: 1460px; margin: 0 auto;
}
.panel {
  position: relative; overflow: hidden; border: 1px solid var(--hairline); border-radius: 3px;
  aspect-ratio: 3 / 4; background: var(--surface-1);
}
.panel--wide {
  aspect-ratio: 16 / 9; width: 100%; max-width: 1150px; margin: 0 auto;
  border: 1px solid rgba(46,156,169,0.5);
}
.panel--wide video { object-position: 50% 42%; }
@media (max-width: 900px) {
  .panel--wide {
    aspect-ratio: 4 / 5; width: 88vw; max-width: none;
    border: 1px solid rgba(46,156,169,0.5); border-radius: 3px;
  }
}
.panel video, .panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, rgba(6,14,26,0) 40%, rgba(6,14,26,0.5) 100%); }
.panel figcaption {
  position: absolute; z-index: 2; left: 22px; bottom: 18px; pointer-events: none;
  font-size: 10px; letter-spacing: 0.4em; color: var(--head); font-weight: 500;
  text-shadow: 0 1px 12px rgba(6,14,26,0.9);
}
.temple__where {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 70px);
  align-items: center; padding: 6vh var(--pad) 16vh; max-width: 1460px; margin: 0 auto;
}
.mapwrap {
  position: relative; overflow: hidden; border-radius: 3px;
  border: 1px solid rgba(46,156,169,0.55);
  aspect-ratio: 4 / 3; background: var(--surface-1);
  box-shadow: 0 0 30px rgba(46,156,169,0.08);
}
.mapwrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(0.92) hue-rotate(185deg) saturate(0.5) brightness(0.85) contrast(1.06);
}
.mapwrap__btn {
  position: absolute; z-index: 2; left: 18px; bottom: 18px;
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 22px;
  border: 1px solid var(--teal); border-radius: 999px;
  background: rgba(6,14,26,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--head); font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  transition: box-shadow 0.5s var(--ease-expo);
}
.mapwrap__btn:hover { box-shadow: 0 0 26px rgba(46,156,169,0.4); }
.temple__eyebrow { font-size: 10px; letter-spacing: 0.5em; color: var(--teal); font-weight: 500; margin-bottom: 22px; }
.temple__addr {
  display: block; font-family: var(--font-display); font-weight: 500; color: var(--head);
  font-size: clamp(22px, 2.4vw, 34px); letter-spacing: 0.1em; line-height: 1.5;
  transition: text-shadow 0.5s;
}
.temple__addr:hover { text-shadow: 0 0 26px rgba(91,198,208,0.45); }
.hours { margin-top: 36px; display: grid; gap: 10px; max-width: 320px; }
.hours div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding-bottom: 10px; }
.hours dt { color: var(--muted); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.hours dd { color: var(--body); font-size: 13px; letter-spacing: 0.08em; }

/* ---------- VI · rite ---------- */
.ch--rite { padding: 16vh var(--pad) 14vh; }
.rite__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 100px);
  margin-top: 8vh; max-width: 1300px;
}
.intake { display: grid; gap: 22px; align-content: start; }
.intake label { display: grid; gap: 9px; }
.intake label span { font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.intake input, .intake textarea {
  background: rgba(11,30,54,0.5); border: 1px solid var(--hairline); border-radius: 3px;
  padding: 14px 16px; min-height: 48px; color: var(--head); font: inherit; letter-spacing: 0.02em;
  transition: border-color 0.4s, box-shadow 0.4s; resize: vertical;
}
.intake input::placeholder, .intake textarea::placeholder { color: rgba(139,154,168,0.55); }
.intake input:focus, .intake textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 1px rgba(46,156,169,0.4), 0 0 24px rgba(46,156,169,0.12); }
.intake__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.intake__go {
  margin-top: 8px; min-height: 54px; border: 1px solid var(--teal); border-radius: 999px;
  background: linear-gradient(160deg, rgba(46,156,169,0.16), rgba(46,156,169,0.04));
  color: var(--head); font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500;
  transition: box-shadow 0.5s var(--ease-expo), background 0.5s;
}
.intake__go:hover { box-shadow: 0 0 38px rgba(46,156,169,0.35), inset 0 0 18px rgba(46,156,169,0.12); }
.intake__hint { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }

.healing h3 {
  font-family: var(--font-display); font-weight: 600; color: var(--head);
  font-size: clamp(20px, 2vw, 30px); letter-spacing: 0.26em; text-transform: uppercase;
}
.healing__note { margin: 12px 0 26px; font-size: 10px; letter-spacing: 0.3em; color: var(--teal); font-weight: 500; }
.acc details { border-bottom: 1px solid var(--hairline); }
.acc summary {
  list-style: none; cursor: pointer; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: var(--head); font-weight: 400; letter-spacing: 0.06em; font-size: 15px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary span { position: relative; width: 14px; height: 14px; flex: none; }
.acc summary span::before, .acc summary span::after {
  content: ""; position: absolute; background: var(--teal-hi); transition: transform 0.5s var(--ease-expo);
}
.acc summary span::before { left: 0; top: 6px; width: 14px; height: 1px; }
.acc summary span::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.acc details[open] summary span::after { transform: scaleY(0); }
.acc details p { padding: 0 34px 20px 0; color: var(--muted); font-size: 14px; }

/* ---------- VI additions: reviews, offering, faq, consent ---------- */
.word { margin: 7vh 0 0; max-width: 1300px; }
.word__label { font-size: 10px; letter-spacing: 0.5em; color: var(--muted); font-weight: 500; margin-bottom: 26px; }
.word__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.review {
  border: 1px solid var(--hairline); border-radius: 3px;
  background: linear-gradient(165deg, var(--surface-1), rgba(18,42,69,0.35));
  padding: 26px 26px 22px;
  transition: border-color 0.6s var(--ease-expo), box-shadow 0.6s var(--ease-expo);
}
.review:hover { border-color: rgba(46,156,169,0.55); box-shadow: 0 10px 44px rgba(0,0,0,0.45), 0 0 20px rgba(46,156,169,0.1); }
.review__stars { color: var(--teal-hi); letter-spacing: 0.3em; font-size: 13px; margin-bottom: 14px; text-shadow: 0 0 14px rgba(91,198,208,0.45); }
.review blockquote { color: var(--body); font-size: 14.5px; line-height: 1.7; }
.review figcaption { margin-top: 16px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.word__source {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500;
  border-bottom: 1px solid var(--hairline); transition: color 0.4s, border-color 0.4s;
}
.word__source:hover { color: var(--teal-hi); border-color: var(--teal); }

.offering {
  margin: 0; max-width: none;
  border: 1px solid rgba(46,156,169,0.5); border-radius: 3px;
  background: linear-gradient(165deg, var(--surface-1), rgba(18,42,69,0.4));
  padding: clamp(26px, 3vw, 40px) clamp(26px, 3.4vw, 48px);
  box-shadow: 0 0 34px rgba(46,156,169,0.07);
}
.offering__eyebrow { font-size: 10px; letter-spacing: 0.5em; color: var(--teal); font-weight: 600; margin-bottom: 18px; }
.offering__line {
  font-family: var(--font-display); font-weight: 500; color: var(--head);
  font-size: clamp(17px, 1.8vw, 24px); letter-spacing: 0.08em; line-height: 1.75;
}
.offering__kicker {
  font-size: 10px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 14px;
}
.offering__row { display: flex; align-items: baseline; gap: 14px; }
.offering__row + .offering__row { margin-top: 8px; }
.offering__item {
  font-family: var(--font-display); font-weight: 500; color: var(--body);
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
}
.offering__dash { flex: 1; text-align: center; color: rgba(46,156,169,0.55); }
.offering__price {
  font-family: var(--font-display); font-weight: 500; color: var(--head);
  font-size: 1.35rem; font-variant-numeric: tabular-nums; min-width: 96px; text-align: right;
}
.offering__rule { border: 0; border-top: 1px solid rgba(46,156,169,0.4); margin: 20px 0 16px; }
.hand__bio h3 { margin-bottom: 18px; }
.healing h3 { margin-bottom: 22px; }

.intake select {
  background: rgba(11,30,54,0.5); border: 1px solid var(--hairline); border-radius: 3px;
  padding: 14px 40px 14px 16px; min-height: 48px; color: var(--head); font: inherit; letter-spacing: 0.02em;
  appearance: none; -webkit-appearance: none; width: 100%; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235BC6D0' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.intake select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 1px rgba(46,156,169,0.4), 0 0 24px rgba(46,156,169,0.12); }
.intake select option { background: var(--surface-1); color: var(--head); }

.faq { margin-top: 10vh; max-width: 880px; }
.healing { margin-top: 10vh; }

/* ---------- VI desktop recompose ---------- */
@media (min-width: 900px) {
  .word__label, .healing h3, .faq h3 {
    font-family: var(--font-display); font-weight: 600; color: var(--head);
    font-size: clamp(24px, 2.6vw, 40px); letter-spacing: 0.2em; text-transform: uppercase;
    line-height: 1.15;
  }
  .word__label { margin-bottom: 34px; }
  .healing h3, .faq h3 { margin-bottom: 30px; }
  .offering__line { font-size: 1.3rem; line-height: 1.8; }
  .rite__grid {
    grid-template-columns: minmax(0, 55%) minmax(320px, 420px);
    justify-content: space-between; align-items: start;
  }
  .healing { max-width: none; }
  #acc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 52px; }
  #acc details:nth-of-type(n+5) { grid-column: 1 / -1; }
  .faq { max-width: 1300px; }
  #faqacc {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, min-content);
    column-gap: 52px;
  }
}
.faq h3 {
  font-family: var(--font-display); font-weight: 600; color: var(--head);
  font-size: clamp(20px, 2vw, 30px); letter-spacing: 0.26em; text-transform: uppercase;
  margin-bottom: 26px;
}

.consent {
  position: fixed; z-index: 110; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2.4vh, 26px);
  max-width: 340px; padding: 20px 22px;
  border: 1px solid var(--hairline); border-radius: 3px;
  background: rgba(11,30,54,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
}
.consent p { font-size: 13px; color: var(--body); margin-bottom: 14px; }
.consent__row { display: flex; gap: 10px; }
.consent__btn {
  min-height: 44px; flex: 1; border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--body);
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.consent__btn:hover { border-color: var(--teal); color: var(--head); }
.consent__btn--ok { border-color: var(--teal); color: var(--head); background: linear-gradient(160deg, rgba(46,156,169,0.18), rgba(46,156,169,0.05)); }
.consent__btn--ok:hover { box-shadow: 0 0 22px rgba(46,156,169,0.3); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 10vh var(--pad) calc(6vh + 70px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.footer__emblem { opacity: 0.85; }
.footer__addr { color: var(--muted); font-size: 13px; letter-spacing: 0.14em; }
.footer__socials { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer__legal { margin-top: 18px; color: var(--muted); font-size: 11.5px; letter-spacing: 0.08em; }
.footer__legal a { color: var(--body); border-bottom: 1px solid var(--hairline); transition: color 0.4s; }
.footer__legal a:hover { color: var(--teal-hi); }

/* ---------- mobile bar / lightbox ---------- */
.mobilebar {
  display: none; position: fixed; z-index: 85; left: 0; right: 0; bottom: 0;
  min-height: calc(56px + env(safe-area-inset-bottom));
  padding: 0 20px env(safe-area-inset-bottom);
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(160deg, #0E5A50, #0B4A44);
  color: #EFFBF7; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(4,9,17,0.94);
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 92vw); max-height: 90vh; display: flex; flex-direction: column; gap: 16px; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border: 1px solid var(--hairline); border-radius: 3px; }
.lightbox figcaption { text-align: center; font-size: 10px; letter-spacing: 0.32em; color: var(--muted); font-weight: 500; }
.lightbox__close {
  position: absolute; top: 22px; right: 26px; width: 52px; height: 52px;
  font-size: 30px; color: var(--head); border: 1px solid var(--hairline); border-radius: 50%;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.lightbox__close:hover { border-color: var(--teal); box-shadow: 0 0 22px rgba(46,156,169,0.3); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hall { columns: 2; }
}
@media (max-width: 900px) {
  .chapnav { display: none; }
  .ritepill { display: none; }
  .mobilebar { display: flex; }
  .dots {
    display: flex; position: fixed; z-index: 80; right: 12px; top: 50%; transform: translateY(-50%);
    flex-direction: column; gap: 12px;
  }
  .dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--hairline); transition: background 0.4s, box-shadow 0.4s, transform 0.4s; }
  .dots span.is-active { background: var(--teal-hi); box-shadow: 0 0 10px rgba(91,198,208,0.8); transform: scale(1.35); }
  .topnav .topnav__cta { display: none; }
  .hero__canvas { display: none; }
  /* small-viewport units: the sticky stage never hides under the iOS URL bar */
  .hero { height: 100vh; height: 100svh; }
  .craft__stage { justify-content: flex-end; padding-bottom: 12vh; }
  .hand__grid { grid-template-columns: 1fr; }
  .word__cards { grid-template-columns: 1fr; }
  .temple__where { grid-template-columns: 1fr; }
  .rite__grid { grid-template-columns: 1fr; }
  .offering { order: -1; }
  .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .hall { columns: 2; column-gap: 14px; padding-top: 4vh; }
  .plinth { margin-bottom: 14px; }
  .plinth__cap { font-size: 11px; }
  .filter { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .filter::-webkit-scrollbar { display: none; }
  .intake__row { grid-template-columns: 1fr; }
  .hero__name { letter-spacing: 0.1em; }
}

@media (max-width: 430px) {
  .hall { columns: 1; }
}

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border: 1px solid var(--hairline); border-radius: 50%;
  color: var(--head); font-size: 30px; line-height: 1; background: rgba(6,14,26,0.6);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.lightbox__nav:hover { border-color: var(--teal); box-shadow: 0 0 22px rgba(46,156,169,0.3); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
@media (max-width: 640px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__cue span::after { animation: none; }
  * { scroll-behavior: auto !important; }
}
