/* ═══════════════════════════════════════════════════════════════
   PHOENIX — marketing site
   One emblem, two temples. Gold is the constant; everything else
   is a room. Volcanic is the default ground, Water repaints the
   same page from the same tokens.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ground */
  --bg:        #07060a;
  --bg-2:      #0f0c10;
  --plate:     #141017;
  --line:      rgba(212,177,106,.22);
  --line-soft: rgba(212,177,106,.12);

  /* type */
  --ink:       #f6f1e8;
  --muted:     #b9ab99;
  --faint:     #8b7d6c;

  /* the constant */
  --gold:      #d4b16a;
  --gold-hi:   #f0d9a0;
  --gold-dim:  #9a7c43;

  /* temple accents */
  --heat:      #c45c28;
  --heat-deep: #6e2a14;
  --cool:      #7ec8c4;

  --card:      rgba(22,17,24,.72);
  --shadow:    0 30px 90px rgba(0,0,0,.55);

  --serif: "Cinzel", "Iowan Old Style", Palatino, Georgia, serif;
  --sans:  "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --max:  1180px;
  --pad:  clamp(1.15rem, 4vw, 3rem);
  --gap:  clamp(3rem, 7vw, 6.5rem);

  --wash:
    radial-gradient(1100px 620px at 12% 72%, rgba(196,92,40,.26), transparent 62%),
    radial-gradient(900px 540px at 88% 24%, rgba(212,177,106,.10), transparent 58%),
    linear-gradient(180deg, #07060a 0%, #120d11 46%, #07060a 100%);

  --frame-bg: #0b0910;
  --frame-ed: rgba(212,177,106,.34);
}

html[data-temple="water"] {
  --bg:        #f4f1ea;
  --bg-2:      #e9f2f1;
  --plate:     #fffdf8;
  --line:      rgba(120,96,42,.26);
  --line-soft: rgba(120,96,42,.12);

  --ink:       #1b1813;
  --muted:     #58524a;
  --faint:     #7b7368;

  --gold:      #8a6729;
  --gold-hi:   #6c5021;
  --gold-dim:  #ab8a4d;

  --heat:      #1f8f9a;
  --heat-deep: #0e4e56;
  --cool:      #1f8f9a;

  --card:      rgba(255,253,248,.82);
  --shadow:    0 26px 64px rgba(36,52,54,.14);

  --wash:
    radial-gradient(1000px 560px at 82% 18%, rgba(126,200,196,.42), transparent 62%),
    radial-gradient(820px 520px at 10% 78%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(180deg, #f6f3ec 0%, #e8f2f1 52%, #f4f1ea 100%);

  --frame-bg: #ffffff;
  --frame-ed: rgba(120,96,42,.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  overflow-x: clip;
  transition: background-color .7s ease, color .7s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
  clip-path: none; z-index: 120; padding: .8rem 1.2rem;
  background: var(--plate); border: 1px solid var(--gold-dim); color: var(--ink);
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ══════════ header ══════════ */

.hdr {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 1.1rem;
  padding: .7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
@supports (backdrop-filter: blur(6px)) {
  .hdr { backdrop-filter: blur(14px) saturate(.92); }
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; flex: 0 0 auto;
  font-family: var(--serif); font-weight: 600;
  letter-spacing: .26em; font-size: .9rem; color: var(--gold);
}
.brand img { width: 34px; height: 34px; border-radius: 50%; }

.nav { display: flex; gap: clamp(.4rem, 1.6vw, 1.5rem); margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: .55rem .2rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.hdr-act { display: flex; align-items: center; gap: .6rem; margin-left: .4rem; }

.temples {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.temples button {
  appearance: none; border: 0; cursor: pointer; background: none;
  font-family: var(--sans); color: var(--faint);
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem .8rem; transition: background .35s ease, color .35s ease;
}
.temples button[aria-pressed="true"] { background: var(--gold); color: #0b0808; }
html[data-temple="water"] .temples button[aria-pressed="true"] { color: #fffdf8; }

.menu {
  display: none; appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--line); color: var(--muted);
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; padding: .5rem .75rem; border-radius: 999px;
}
@media (max-width: 1040px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .4rem var(--pad) 1rem;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .menu { display: inline-block; }
  .hdr-act { margin-left: auto; }
}
/* superseded: see THE TEMPLE SWITCH ON A PHONE at the end of this file */

/* ══════════ buttons ══════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  border: 1px solid var(--gold-dim); background: none; cursor: pointer;
  color: var(--gold); text-decoration: none;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.btn.solid {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #120d08; border-color: transparent;
}
html[data-temple="water"] .btn.solid { color: #fffdf8; }
.btn.solid:hover { filter: brightness(1.06); }
.btn.quiet { border-color: var(--line); color: var(--muted); }
.btn.quiet:hover { color: var(--ink); border-color: var(--gold-dim); }
.btn.sm { padding: .6rem 1.05rem; font-size: .62rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ══════════ layout ══════════ */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec  { padding: var(--gap) 0; }
.sec.tight { padding: calc(var(--gap) * .62) 0; }
.sec.plate { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.kicker {
  margin: 0 0 .9rem;
  font-size: .66rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-dim);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .7rem; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: .04em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: .02em; text-wrap: balance; }
h3 { font-size: 1.12rem; letter-spacing: .02em; }
p  { margin: 0 0 1rem; text-wrap: pretty; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--muted); max-width: 46ch; }
.sub  { color: var(--muted); max-width: 58ch; }
.fine { font-size: .82rem; color: var(--faint); }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0,1fr); } }

/* ══════════ hero ══════════ */

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem,6vw,5rem) 0 clamp(2.5rem,5vw,4rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--wash); }

/* the two temples, meeting on the axis the emblem sits on */
.hero-world { position: absolute; inset: 0; z-index: -1; display: flex; opacity: .5; pointer-events: none; }
.hero-world img { width: 50%; height: 100%; object-fit: cover; }
.hero-world img:first-child { mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%); }
.hero-world img:last-child  { mask-image: linear-gradient(270deg, #000 0%, #000 58%, transparent 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 42%, transparent) 0%,
              color-mix(in srgb, var(--bg) 72%, transparent) 58%, var(--bg) 100%);
}
html[data-temple="water"] .hero-world { opacity: .42; }

/* On a narrow screen the gate plates sit directly behind the headline and
   their own lettering starts to read as text. Scale past it, soften it, and
   drop the opacity so it stays weather rather than words. */
@media (max-width: 760px) {
  .hero-world { opacity: .34; }
  .hero-world img { transform: scale(1.9); transform-origin: 50% 32%; filter: blur(2px); }
  html[data-temple="water"] .hero-world { opacity: .3; }
}

.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: minmax(0,1fr); } }

.hero h1 { margin-bottom: .2rem; }
.promise { font-family: var(--serif); font-size: clamp(1.1rem,2.2vw,1.5rem); color: var(--gold); margin: 0 0 1.2rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; }
.pills span {
  border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem;
  font-size: .64rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

.hero-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.hero-seal { width: min(100%, 460px); filter: drop-shadow(0 26px 60px rgba(0,0,0,.6)); }
html[data-temple="water"] .hero-seal { filter: drop-shadow(0 20px 44px rgba(40,60,66,.3)); }

/* ══════════ phone frame — a real screen, held properly ══════════ */

.phone {
  position: relative; border-radius: 30px; padding: 7px;
  background: linear-gradient(170deg, var(--frame-ed), rgba(0,0,0,.4));
  box-shadow: var(--shadow);
  width: 100%; max-width: 250px;
}
.phone > img {
  border-radius: 24px; background: var(--frame-bg); display: block;
  width: 100%; height: 100%; object-fit: cover;
}
.phone::after {
  content: ""; position: absolute; left: 50%; top: 13px; transform: translateX(-50%);
  width: 58px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.22);
}
.phone.lg { max-width: 300px; }

.phones { display: flex; flex-wrap: wrap; gap: clamp(1rem,3vw,2rem); justify-content: center; }
.phones .phone { max-width: 220px; }

figure.shot { margin: 0; display: grid; gap: .8rem; justify-items: center; }
figure.shot figcaption {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint); text-align: center;
}

/* ══════════ cards ══════════ */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.card {
  border: 1px solid var(--line-soft); border-radius: 14px; padding: 1.5rem 1.4rem;
  background: var(--card); transition: border-color .35s ease, transform .35s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card .n {
  display: block; font-family: var(--serif); font-size: .78rem; letter-spacing: .2em;
  color: var(--gold-dim); margin-bottom: .6rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* a stage: real screen beside the words, alternating sides */
/* A stage is a section in its own right rather than something inside a
   .wrap, so it has to carry the same outer box itself: the identical
   max-width, centring and gutter. Without them the whole walkthrough runs
   to both edges of the window while every other section sits inset, which
   on a wide monitor is a visible 130px of misalignment per side. */
.stage { display: grid; grid-template-columns: minmax(0,300px) minmax(0,1fr); gap: clamp(1.5rem,4vw,3.5rem); align-items: center; width: 100%; max-width: var(--max); margin-inline: auto; padding: clamp(1.8rem,4vw,3rem) var(--pad); border-top: 1px solid var(--line-soft); }
.stage:first-of-type { border-top: 0; }
.stage:nth-child(even) > figure { order: 2; }
@media (max-width: 820px) {
  .stage { grid-template-columns: minmax(0,1fr); justify-items: start; }
  .stage:nth-child(even) > figure { order: 0; }
  .stage figure { justify-self: center; }
}
.stage .tag {
  display: inline-block; margin-bottom: .6rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dim);
}

/* ══════════ table ══════════ */

.tbl { width: 100%; border-collapse: collapse; margin: 1.4rem 0 0; font-size: .94rem; }
.tbl th, .tbl td { text-align: left; padding: .95rem 1rem; border-top: 1px solid var(--line-soft); vertical-align: top; }
.tbl thead th {
  border-top: 0; font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}
.tbl tbody th { font-family: var(--serif); font-weight: 600; color: var(--gold); white-space: nowrap; }
.tbl td { color: var(--muted); }
@media (max-width: 680px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td, .tbl th { display: block; }
  .tbl thead { display: none; }
  .tbl tr { border-top: 1px solid var(--line-soft); padding: .7rem 0; }
  .tbl th, .tbl td { border: 0; padding: .2rem 0; }
}

/* ══════════ quote band ══════════ */

.band {
  text-align: center; padding: var(--gap) var(--pad);
  background:
    radial-gradient(700px 320px at 50% 0%, color-mix(in srgb, var(--heat) 16%, transparent), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line-soft);
}
.band h2 { margin-inline: auto; }
.band .sub { margin-inline: auto; }

/* ══════════ the two temples, side by side ══════════ */

.duo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
@media (max-width: 820px) { .duo { grid-template-columns: minmax(0,1fr); } }
.duo > div, .duo > article { padding: clamp(1.4rem,3vw,2.2rem); background: var(--bg); min-width: 0; }
.duo .fire { background: linear-gradient(180deg, #17100c, #0b0809); color: #f3e7d8; }
.duo .water { background: linear-gradient(180deg, #eef6f6, #ffffff); color: #1b2426; }
.duo .fire h3 { color: #e8a765; } .duo .water h3 { color: #1f8f9a; }
.duo .fire p, .duo .fire li { color: #c6b49e; } .duo .water p, .duo .water li { color: #4d5a5c; }
.duo ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .94rem; }
.duo li { margin: .3rem 0; }

/* ══════════ a page title that is not the home hero ══════════
   Every page states its subject in one sentence, and that sentence is the
   page's h1. The home page keeps the display size; an inner page sits
   between h1 and h2 so a title still reads as a title. */
.sec h1, .prose h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: .02em; text-wrap: balance;
}
.prose h1 { margin-top: 0; }

/* the seal held beside a column of prose; never wider than its room */
.seal-hold { display: grid; place-items: center; min-width: 0; }
.seal-aside {
  width: 100%; max-width: min(380px, 100%); height: auto;
  filter: drop-shadow(0 24px 56px rgba(0, 0, 0, .5));
}

/* install steps, numbered, inside a temple panel */
.steps { margin: .6rem 0 0; padding-left: 1.3rem; font-size: .94rem; }
.steps li { margin: .45rem 0; padding-left: .15rem; }
.steps li::marker { font-family: var(--serif); color: var(--gold); }
.duo .water .steps li::marker { color: #1f8f9a; }
.duo .fire  .steps li::marker { color: #e8a765; }
.steps strong { font-weight: 600; }

/* the one card on the page that is the actual door */
.card.lit {
  border-color: color-mix(in srgb, var(--gold) 42%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, transparent), transparent 60%),
    var(--card);
}
.card.lit:hover { border-color: var(--gold); }

/* ══════════ faq ══════════ */

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 1rem; color: var(--gold); font-size: 1.3rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 1.15rem; max-width: 62ch; }

/* ══════════ prose ══════════ */

.prose { max-width: 66ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; color: var(--gold); }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.prose li { margin: .4rem 0; }
.note {
  border-left: 2px solid var(--gold-dim); padding: .2rem 0 .2rem 1.2rem;
  color: var(--muted); font-size: .95rem; margin: 1.4rem 0;
}

/* ══════════ footer ══════════ */

.ftr { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: var(--gap) 0 2.6rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0,1fr)); gap: 2rem; }
@media (max-width: 820px) { .ftr-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.ftr h4 {
  margin: 0 0 .9rem; font-family: var(--sans);
  font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
}
.ftr a { display: block; padding: .32rem 0; text-decoration: none; color: var(--muted); font-size: .92rem; }
.ftr a:hover { color: var(--gold); }
.ftr .wordmark { font-family: var(--serif); letter-spacing: .26em; color: var(--gold); font-size: .95rem; }
.ftr-legal {
  margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--faint); max-width: 80ch;
}

/* ══════════ arrival ══════════ */
.rise { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.8,.3,1); }
.rise.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════════
   THE TWO WORLDS

   Up to here the page is one layout wearing two palettes. Below it
   becomes two rooms. Each gets its own ground, its own light, its
   own weather and its own edges, and the gold seal is the only
   thing that crosses between them unchanged.

   The world sits on two fixed pseudo-elements behind everything:
   ::before is the room, ::after is the weather that moves in it.
   Both are composited, neither reflows, and both stand still when
   the visitor has asked for less motion.
   ═══════════════════════════════════════════════════════════════ */

html { background: var(--bg); }
body { background: transparent; position: relative; }

body::before,
body::after {
  content: ""; position: fixed; inset: -6vh -6vw; z-index: -1;
  pointer-events: none; will-change: opacity;
}
body::before { background: var(--room); }
body::after  { background: var(--weather); opacity: var(--weather-o, 0); }

@media (prefers-reduced-motion: no-preference) {
  body::after { animation: tide 42s ease-in-out infinite alternate; }
}
@keyframes tide {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.09); }
}

/* ────────────────────────────────────────────────────────────────
   VOLCANO · obsidian, ember cracks, molten gold, deep shadow
   ──────────────────────────────────────────────────────────────── */

:root {
  --room:
    /* heat pooled in the floor, and a colder gold high on the far wall */
    radial-gradient(90vw 60vh at 8% 104%, rgba(196,92,40,.30), transparent 66%),
    radial-gradient(70vw 48vh at 96% 6%,  rgba(212,177,106,.11), transparent 62%),
    radial-gradient(52vw 40vh at 52% 50%, rgba(110,42,20,.22), transparent 70%),
    /* fissures in black glass, lit from underneath */
    repeating-linear-gradient(104deg,
      transparent 0 190px,
      rgba(224,120,56,.055) 190px 191px,
      transparent 191px 420px),
    repeating-linear-gradient(72deg,
      transparent 0 310px,
      rgba(212,177,106,.035) 310px 311px,
      transparent 311px 760px),
    /* the glass itself */
    linear-gradient(176deg, #0a070c 0%, #130d11 44%, #080609 100%);

  --weather:
    radial-gradient(44vw 34vh at 22% 92%, rgba(232,134,62,.26), transparent 64%),
    radial-gradient(34vw 26vh at 76% 12%, rgba(212,177,106,.13), transparent 62%);
  --weather-o: .55;

  --seam: linear-gradient(90deg, transparent, rgba(224,120,56,.55), rgba(212,177,106,.5), transparent);
  --rim:  inset 0 1px 0 rgba(240,217,160,.09);
  --glow: 0 0 34px rgba(196,92,40,.2);
}

/* a plate is a slab of basalt, seamed with ember at the joins */
.sec.plate, .band, .ftr {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 40%),
    color-mix(in srgb, var(--bg-2) 94%, transparent);
}
.sec.plate::before, .band::before {
  content: ""; position: absolute; inset-inline: 0; top: -1px; height: 1px;
  background: var(--seam); opacity: .8;
}
.sec.plate::after, .band::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: var(--seam); opacity: .45;
}
.band { overflow: hidden; }

.card { box-shadow: var(--rim); }
.card:hover { box-shadow: var(--rim), var(--glow); }

/* ────────────────────────────────────────────────────────────────
   WATER · white marble, aquamarine, arches, celestial light
   ──────────────────────────────────────────────────────────────── */

html[data-temple="water"] {
  --ink:   #16222a;        /* lettering cut into cool stone */
  --muted: #4d5a60;
  --faint: #7d8990;

  --room:
    /* the shaft: light falling from somewhere above the ceiling */
    linear-gradient(183deg,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.34) 16%,
      transparent 44%),
    radial-gradient(34vw 92vh at 50% -18%, rgba(255,255,255,.95), transparent 64%),
    /* water held in the far corners */
    radial-gradient(74vw 54vh at 94% 10%, rgba(94,194,196,.34), transparent 64%),
    radial-gradient(66vw 52vh at 4% 96%,  rgba(126,200,196,.30), transparent 62%),
    /* veining, so the ground reads as stone and not as paper */
    repeating-linear-gradient(68deg,
      transparent 0 120px,
      rgba(104,132,140,.055) 120px 121px,
      transparent 121px 128px,
      rgba(104,132,140,.03) 128px 129px,
      transparent 129px 330px),
    repeating-linear-gradient(-54deg,
      transparent 0 240px,
      rgba(120,96,42,.035) 240px 241px,
      transparent 241px 610px),
    /* the marble */
    linear-gradient(174deg, #fbf9f4 0%, #eaf3f2 46%, #f3f0e9 100%);

  /* caustics: light through moving water, thrown on the floor */
  --weather:
    radial-gradient(30vw 16vh at 28% 34%, rgba(255,255,255,.72), transparent 60%),
    radial-gradient(22vw 13vh at 64% 58%, rgba(168,226,224,.52), transparent 62%),
    radial-gradient(26vw 11vh at 46% 82%, rgba(255,255,255,.55), transparent 64%),
    radial-gradient(18vw 10vh at 82% 24%, rgba(140,210,208,.42), transparent 60%);
  --weather-o: .5;

  --seam: linear-gradient(90deg, transparent, rgba(31,143,154,.5), rgba(138,103,41,.4), transparent);
  --rim:  inset 0 1px 0 rgba(255,255,255,.9);
  --glow: 0 18px 46px rgba(44,96,104,.16);
}

html[data-temple="water"] body::after { mix-blend-mode: soft-light; }

/* in the Water Temple a plate is an arched alcove, not a slab */
html[data-temple="water"] .sec.plate,
html[data-temple="water"] .band {
  background:
    radial-gradient(58% 86% at 50% 0%, rgba(255,255,255,.98), rgba(255,255,255,0) 72%),
    radial-gradient(130% 70% at 50% 108%, rgba(168,226,224,.26), transparent 66%),
    linear-gradient(180deg, #fbfcfa 0%, #eef5f4 100%);
}
html[data-temple="water"] .ftr {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.9), transparent 70%),
    linear-gradient(180deg, #eef5f4, #e6efee);
}

/* the quote band becomes a water surface with the light on it */
html[data-temple="water"] .band::after {
  height: 2px; bottom: 0; opacity: .7;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 22%,
              rgba(31,143,154,.55) 50%, rgba(255,255,255,.95) 78%, transparent);
}

html[data-temple="water"] .card {
  box-shadow: var(--rim), 0 10px 28px rgba(44,96,104,.09);
  border-color: rgba(120,140,146,.22);
}
html[data-temple="water"] .card:hover {
  box-shadow: var(--rim), var(--glow);
  border-color: rgba(31,143,154,.5);
}
html[data-temple="water"] .card .n { color: #2b7f88; }
html[data-temple="water"] .kicker  { color: #2b7f88; }
html[data-temple="water"] .stage .tag { color: #2b7f88; }
html[data-temple="water"] .tbl thead th { color: #2b7f88; }
html[data-temple="water"] .faq summary::after { color: #1f8f9a; }
html[data-temple="water"] .note { border-left-color: #6fc0c2; }
html[data-temple="water"] .steps li::marker { color: #1f8f9a; }
html[data-temple="water"] .prose h3 { color: #1b6f78; }

/* a marble hall reflects; the header and the phone frames pick that up */
html[data-temple="water"] .hdr {
  background: color-mix(in srgb, #fbfcfa 82%, transparent);
  border-bottom-color: rgba(120,140,146,.26);
  box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 14px 30px rgba(44,96,104,.07);
}
html[data-temple="water"] .phone {
  background: linear-gradient(170deg, #ffffff, #cfdedd);
  box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 26px 60px rgba(44,96,104,.2);
}
html[data-temple="water"] .phone::after { background: rgba(70,100,106,.22); }
html[data-temple="water"] .pills span { border-color: rgba(120,140,146,.3); }
html[data-temple="water"] .temples button[aria-pressed="true"] {
  background: linear-gradient(180deg, #2fa0a8, #1b7680);
}
html[data-temple="water"] .seal-aside,
html[data-temple="water"] .hero-seal { filter: drop-shadow(0 22px 46px rgba(44,96,104,.26)); }

/* the hero wash belongs to the room too */
:root { --wash:
  radial-gradient(1100px 620px at 12% 72%, rgba(196,92,40,.3), transparent 62%),
  radial-gradient(900px 540px at 88% 24%, rgba(212,177,106,.12), transparent 58%),
  linear-gradient(180deg, rgba(7,6,10,.2) 0%, rgba(18,13,17,.5) 46%, var(--bg) 100%); }
html[data-temple="water"] { --wash:
  radial-gradient(40vw 80vh at 50% -14%, rgba(255,255,255,.9), transparent 62%),
  radial-gradient(1000px 560px at 84% 16%, rgba(94,194,196,.4), transparent 62%),
  radial-gradient(820px 520px at 8% 84%, rgba(255,255,255,.8), transparent 60%),
  linear-gradient(180deg, rgba(251,252,250,.5) 0%, rgba(234,243,242,.6) 52%, var(--bg) 100%); }

/* the side-by-side panels are small rooms; give them the same weather */
.duo .fire {
  background:
    radial-gradient(120% 80% at 10% 110%, rgba(196,92,40,.3), transparent 62%),
    repeating-linear-gradient(104deg, transparent 0 90px,
      rgba(224,120,56,.07) 90px 91px, transparent 91px 210px),
    linear-gradient(180deg, #1a120d, #0a0709);
}
.duo .water {
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(255,255,255,.98), transparent 70%),
    radial-gradient(120% 80% at 90% 110%, rgba(126,200,196,.4), transparent 64%),
    linear-gradient(180deg, #f2f9f8, #ffffff);
}

/* the switch itself should feel like a door opening, not a repaint */
.hdr, .sec.plate, .band, .ftr, .card, .phone, .duo > *,
h1, h2, h3, p, a, .kicker, .tbl th, .tbl td {
  transition: background-color .7s ease, color .7s ease,
              border-color .7s ease, box-shadow .7s ease;
}
@media (prefers-reduced-motion: reduce) {
  body::after { transform: none; }
}

/* ────────────────────────────────────────────────────────────────
   THE HERO BELONGS TO WHICHEVER TEMPLE YOU ARE STANDING IN

   A 50/50 split states the idea but it means the Water Temple opens
   on a wall of fire, and the Volcano opens on blue arches. The room
   you chose takes the room; the other one stays as a rumour at the
   far edge.
   ──────────────────────────────────────────────────────────────── */

.hero-world { display: block; }
.hero-world img {
  position: absolute; top: 0; height: 100%; width: auto; min-width: 0;
  object-fit: cover;
  transition: width .9s cubic-bezier(.16,.8,.3,1), opacity .9s ease;
}
.hero-world img:first-child {          /* fire */
  left: 0; width: 74%;
  mask-image: linear-gradient(90deg, #000 0 54%, transparent 100%);
}
.hero-world img:last-child {           /* water */
  right: 0; width: 42%; opacity: .5;
  mask-image: linear-gradient(270deg, #000 0 30%, transparent 100%);
}
html[data-temple="water"] .hero-world img:first-child { width: 38%; opacity: .34; }
html[data-temple="water"] .hero-world img:last-child  {
  width: 78%; opacity: 1;
  mask-image: linear-gradient(270deg, #000 0 56%, transparent 100%);
}

/* and the wash over them is the room's own light */
html[data-temple="water"] .hero::after {
  background:
    linear-gradient(90deg, rgba(246,248,245,.86) 0%, rgba(246,248,245,.3) 34%, transparent 62%),
    linear-gradient(180deg, rgba(251,252,250,.5) 0%, rgba(240,246,245,.55) 56%, var(--bg) 100%);
}

/* ────────────────────────────────────────────────────────────────
   gold on marble has to read as gold, not as mud
   ──────────────────────────────────────────────────────────────── */

html[data-temple="water"] .btn.solid {
  background: linear-gradient(177deg, #e2c689 0%, #c3a059 42%, #9c7a34 100%);
  color: #2b2113;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 10px 24px rgba(120,96,42,.26);
  border-color: transparent;
}
html[data-temple="water"] .btn.solid:hover { filter: brightness(1.05) saturate(1.05); }
html[data-temple="water"] .btn { border-color: rgba(138,103,41,.46); color: #7d5f26; }
html[data-temple="water"] .btn:hover { border-color: #8a6729; color: #5d4518; }
html[data-temple="water"] .btn.quiet { border-color: rgba(120,140,146,.34); color: var(--muted); }
html[data-temple="water"] .brand { color: #7d5f26; }
html[data-temple="water"] .ftr .wordmark { color: #7d5f26; }

/* ────────────────────────────────────────────────────────────────
   veining that reads as stone rather than as wallpaper stripes,
   and plates sheer enough to let the ground show through
   ──────────────────────────────────────────────────────────────── */

html[data-temple="water"] {
  --room:
    linear-gradient(183deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.3) 17%, transparent 46%),
    radial-gradient(34vw 92vh at 50% -18%, rgba(255,255,255,.95), transparent 64%),
    radial-gradient(74vw 54vh at 94% 10%, rgba(94,194,196,.3), transparent 64%),
    radial-gradient(66vw 52vh at 4% 96%,  rgba(126,200,196,.26), transparent 62%),
    /* four veins, none of them parallel, none of them evenly spaced */
    linear-gradient(72deg,  transparent 28%, rgba(96,124,132,.05) 28.4%, transparent 28.9%),
    linear-gradient(61deg,  transparent 56%, rgba(96,124,132,.038) 56.3%, transparent 57.1%),
    linear-gradient(-48deg, transparent 41%, rgba(120,96,42,.035) 41.4%, transparent 42%),
    linear-gradient(-39deg, transparent 73%, rgba(96,124,132,.032) 73.3%, transparent 73.8%),
    linear-gradient(174deg, #fbf9f4 0%, #eaf3f2 46%, #f3f0e9 100%);
}
html[data-temple="water"] .sec.plate,
html[data-temple="water"] .band {
  background:
    radial-gradient(58% 86% at 50% 0%, rgba(255,255,255,.9), rgba(255,255,255,0) 72%),
    radial-gradient(130% 70% at 50% 108%, rgba(168,226,224,.22), transparent 66%),
    linear-gradient(180deg, rgba(252,253,251,.86) 0%, rgba(236,245,244,.9) 100%);
}

/* ────────────────────────────────────────────────────────────────
   the Volcano is obsidian, which is brown-black, not mauve
   ──────────────────────────────────────────────────────────────── */

:root {
  --bg:   #07060a;
  --bg-2: #0e0b0b;
  --plate:#15100e;
  --card: rgba(24,18,15,.74);
  --room:
    radial-gradient(90vw 60vh at 8% 104%, rgba(196,92,40,.32), transparent 66%),
    radial-gradient(70vw 48vh at 96% 6%,  rgba(212,177,106,.1), transparent 62%),
    radial-gradient(52vw 40vh at 52% 48%, rgba(118,46,20,.2), transparent 70%),
    linear-gradient(74deg,  transparent 31%, rgba(224,120,56,.06) 31.3%, transparent 31.9%),
    linear-gradient(63deg,  transparent 62%, rgba(224,120,56,.045) 62.3%, transparent 63%),
    linear-gradient(-51deg, transparent 44%, rgba(212,177,106,.035) 44.3%, transparent 44.9%),
    linear-gradient(-41deg, transparent 77%, rgba(224,120,56,.03) 77.3%, transparent 77.9%),
    linear-gradient(176deg, #0a0708 0%, #130d0b 44%, #080606 100%);
}

/* ────────────────────────────────────────────────────────────────
   Veins, not pencil lines. A hard one-pixel diagonal across a whole
   viewport reads as a rendering fault; a soft wide band reads as
   stone. Same for the fissures in the obsidian.
   ──────────────────────────────────────────────────────────────── */

:root {
  --room:
    radial-gradient(90vw 60vh at 8% 104%, rgba(196,92,40,.32), transparent 66%),
    radial-gradient(70vw 48vh at 96% 6%,  rgba(212,177,106,.1), transparent 62%),
    radial-gradient(52vw 40vh at 52% 48%, rgba(118,46,20,.2), transparent 70%),
    linear-gradient(74deg,  transparent 27%, rgba(224,120,56,.07) 31%, transparent 35%),
    linear-gradient(63deg,  transparent 58%, rgba(224,120,56,.05) 62%, transparent 67%),
    linear-gradient(-51deg, transparent 39%, rgba(212,177,106,.04) 44%, transparent 49%),
    linear-gradient(-41deg, transparent 73%, rgba(224,120,56,.035) 77%, transparent 82%),
    linear-gradient(176deg, #0a0708 0%, #130d0b 44%, #080606 100%);
}

html[data-temple="water"] {
  --room:
    linear-gradient(183deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.3) 17%, transparent 46%),
    radial-gradient(34vw 92vh at 50% -18%, rgba(255,255,255,.95), transparent 64%),
    radial-gradient(74vw 54vh at 94% 10%, rgba(94,194,196,.3), transparent 64%),
    radial-gradient(66vw 52vh at 4% 96%,  rgba(126,200,196,.26), transparent 62%),
    linear-gradient(72deg,  transparent 24%, rgba(96,124,132,.055) 29%, transparent 34%),
    linear-gradient(61deg,  transparent 52%, rgba(96,124,132,.042) 57%, transparent 63%),
    linear-gradient(-48deg, transparent 37%, rgba(120,96,42,.04) 42%, transparent 47%),
    linear-gradient(-39deg, transparent 69%, rgba(96,124,132,.034) 74%, transparent 79%),
    linear-gradient(174deg, #fbf9f4 0%, #eaf3f2 46%, #f3f0e9 100%);
}

/* gold leaf on marble: bright at the top edge, deep at the bottom */
html[data-temple="water"] .btn.solid {
  background: linear-gradient(177deg, #f3e0ad 0%, #d9b96f 38%, #ab8540 100%);
  color: #332713;
}
html[data-temple="water"] .temples button[aria-pressed="true"] { color: #f4fbfb; }

/* ────────────────────────────────────────────────────────────────
   Alternating stages were swapping the two children but not the two
   columns, so every second row squeezed its paragraph into the
   300px track meant for the phone. Swap the track widths too.
   ──────────────────────────────────────────────────────────────── */
.stage:nth-child(even) { grid-template-columns: minmax(0,1fr) minmax(0,300px); }
@media (max-width: 820px) {
  .stage, .stage:nth-child(even) { grid-template-columns: minmax(0,1fr); }
}

/* ────────────────────────────────────────────────────────────────
   Screens follow the room

   Every app screen that exists in both temples ships twice. Only the
   one belonging to the current room is rendered, so the first paint
   is already right and the other is never downloaded until it is
   needed. Captions move with them.
   ──────────────────────────────────────────────────────────────── */

.phone > img.only-water { display: none; }
html[data-temple="water"] .phone > img.only-fire  { display: none; }
html[data-temple="water"] .phone > img.only-water { display: block; }

figcaption .only-water { display: none; }
html[data-temple="water"] figcaption .only-fire  { display: none; }
html[data-temple="water"] figcaption .only-water { display: inline; }

/* ────────────────────────────────────────────────────────────────
   A page whose wrap is also its prose was taking the 66ch measure
   as the wrap's own width, so Support and Legal floated in the
   middle of the viewport while every other page began at the same
   left edge. Keep the wrap, hold the measure inside it.
   ──────────────────────────────────────────────────────────────── */
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 66ch; }
.wrap.prose > .faq { max-width: 74ch; }

/* ═══════════════════════════════════════════════════════════════
   THE OPENING

   One film, cut twice: a tall one for a phone and a wide one for a
   monitor. The script picks the shape before anything is fetched,
   so a visitor downloads one film and never both.

   It runs once per session, on the front door only, and never when
   the visitor has asked for less motion. It sits over the page
   rather than replacing it, so if the browser cannot play it, or
   refuses to, the page is already there underneath and the overlay
   simply leaves.
   ═══════════════════════════════════════════════════════════════ */

.opening { display: none; }

html[data-opening="run"] .opening {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: #050304;
  animation: opening-in .35s ease both;
}
html[data-opening="run"] body { overflow: hidden; }

.opening-frame { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }

/* contain, never cover: the emblem is the point and must never be
   cropped, whatever shape the screen turns out to be */
.opening video {
  width: 100%; height: 100%; object-fit: contain;
  background: #050304; display: block;
}

/* the letterbox edges should read as a darkened room, not as bars */
.opening-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 92% at 50% 50%, transparent 54%, rgba(0,0,0,.72) 100%);
}

.opening-skip {
  position: absolute; right: clamp(1rem, 3vw, 2.4rem); bottom: clamp(1rem, 3vw, 2.4rem);
  z-index: 2; appearance: none; cursor: pointer;
  background: rgba(10,8,6,.5); color: #d8c08a;
  border: 1px solid rgba(212,177,106,.4); border-radius: 999px;
  padding: .62rem 1.25rem;
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; animation: opening-skip-in .5s ease 1.1s forwards;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.opening-skip:hover { color: #f0d9a0; border-color: #d4b16a; background: rgba(10,8,6,.78); }

.opening.leaving { animation: opening-out .62s cubic-bezier(.4,0,.2,1) forwards; }

@keyframes opening-in      { from { opacity: 0 } to { opacity: 1 } }
@keyframes opening-skip-in { to   { opacity: 1 } }
@keyframes opening-out     { to   { opacity: 0; transform: scale(1.045); visibility: hidden } }

/* Nothing here runs for a visitor who has asked for less motion: the
   boot script never sets the attribute, so the overlay stays display:none
   and the film is never fetched. */
@media (prefers-reduced-motion: reduce) {
  html[data-opening="run"] .opening { animation: none; }
  .opening-skip { opacity: 1; animation: none; }
  .opening.leaving { animation: none; opacity: 0; visibility: hidden; }
}

/* ────────────────────────────────────────────────────────────────
   hello@sealofthephoenix.com is twenty-six characters with nowhere
   to break, and in a narrow footer column it pushed the whole page
   sideways. Long addresses and links wrap instead.
   ──────────────────────────────────────────────────────────────── */
.ftr a, .note a, .prose a { overflow-wrap: anywhere; }
.ftr a { hyphens: none; }

/* ────────────────────────────────────────────────────────────────
   On a 320px screen the seal, the wordmark, Download and Menu do
   not fit on one line. The wordmark goes; the seal is the mark and
   carries it alone. The hero's world plates are clipped to the hero
   so a scaled plate can never widen the page.
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .brand { font-size: 0; gap: 0; }
  .brand img { width: 30px; height: 30px; }
  .hdr { gap: .6rem; padding-inline: .9rem; }
  .hdr-act { gap: .4rem; }
  .hdr-act .btn { padding: .6rem .85rem; font-size: .6rem; letter-spacing: .1em; }
  .menu { padding: .5rem .6rem; font-size: .58rem; }
}
.hero, .hero-world { overflow: clip; }

/* ────────────────────────────────────────────────────────────────
   THE OPENING, CORRECTED

   The overlay centred its contents with place-items, which left the
   video's height:100% with nothing to resolve against. The film fell
   back to its intrinsic ratio at full width, so on any window wider
   than the film it was magnified past the viewport and the top of
   the disc and the wordmark were cut off. That is what looked wrong.

   The video box is now pinned to the viewport, so contain letterboxes
   the film instead of overflowing it, and the emblem is whole at any
   window shape. A cap stops it being enlarged past the point where
   the gold goes soft: beyond that the surrounding black carries it,
   which is what a title card wants anyway.
   ──────────────────────────────────────────────────────────────── */

html[data-opening="run"] .opening { display: block; }
.opening-frame { position: absolute; inset: 0; width: auto; height: auto; display: block; }

.opening video {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  background: transparent;
}


/* the letterbox is the same black as the film's own ground, so the
   edges of the frame are invisible rather than a border */
html[data-opening="run"] .opening { background: #050300; }
.opening-frame::after {
  background: radial-gradient(150% 110% at 50% 50%, transparent 68%, rgba(0,0,0,.55) 100%);
}

/* ────────────────────────────────────────────────────────────────
   THE TEMPLE SWITCH ON A PHONE

   The switch was hidden below 560px and the navigation collapses
   into Menu below 1040px, so on a phone there was no way to change
   room at all. There is now a second switch inside the menu: it is
   the only one that shows while the nav is a dropdown, and the one
   in the header takes over again as soon as there is space for it.
   ──────────────────────────────────────────────────────────────── */

.temples.in-menu { display: none; }

/* between 560 and 1040 the navigation is a dropdown but the header still
   has room for the switch, so only the narrowest screens need the copy */
@media (max-width: 560px) {
  .hdr-act > .temples { display: none; }
  .nav .temples.in-menu {
    display: inline-flex;
    margin: .9rem 0 .2rem;
    align-self: flex-start;
    border-bottom: 0;
  }
  .nav .temples.in-menu button { padding: .66rem 1.15rem; font-size: .66rem; }
}

/* The film fills the screen. object-fit keeps it whole, so the only
   thing in the corners is the same black the film itself rests on,
   and the emblem is never cropped by the browser at any window shape. */
.opening video { position: absolute; inset: 0; transform: none; }

/* ══════════ a floor under the micro-type on a phone ══════════
   The eyebrow labels, pills, stage tags and captions are uppercase and
   heavily tracked, which reads as a label rather than as prose and lets
   them sit comfortably below body size on a monitor. On a 390px screen
   the same values land near 10px, which is small enough that people stop
   reading them. Below 760px they get a floor, and the tracking is eased
   off a little so the extra size does not cost a line break. */
@media (max-width: 760px) {
  .kicker            { font-size: .76rem; letter-spacing: .2em; }
  .pills span        { font-size: .72rem; letter-spacing: .12em; }
  .stage .tag        { font-size: .72rem; letter-spacing: .16em; }
  figure.shot figcaption { font-size: .76rem; letter-spacing: .12em; }
  .card .n           { font-size: .82rem; letter-spacing: .16em; }
  .ftr .fine, .fine  { font-size: .82rem; }
  .ftr-legal         { font-size: .78rem; }
}

/* ════════════════════════════════════════════════════════════════
   THE WATER TEMPLE, BUILT RATHER THAN TINTED

   Everything above this point gives the Water Temple a palette: pale
   grounds, teal accents, light instead of dark. That is a theme, and
   next to the app it reads as one. The app's Water Temple is a place:
   white marble with gold veining in it, caustics moving on the floor,
   a colonnade with the sea behind it, water falling down steps.

   So the materials below are the app's own, lifted out of
   forge/src/assets/ui and served from assets/water/. They cost
   nothing in the Volcano, because a background-image on a selector
   that only matches in the Water Temple is only ever fetched there.
   ════════════════════════════════════════════════════════════════ */

/* ── the ground is stone, not paper ──────────────────────────── */
html[data-temple="water"] body::before {
  background-image:
    var(--room),
    url("../assets/water/marble-tile.webp");
  background-size: auto, 760px auto;
  background-repeat: no-repeat, repeat;
  background-blend-mode: normal, multiply;
}

/* ── caustics: the real ones, drifting ───────────────────────── */
html[data-temple="water"] body::after {
  background-image:
    var(--weather),
    url("../assets/water/water-sheen.webp");
  background-size: auto, 1100px auto;
  background-repeat: no-repeat, repeat;
  opacity: .34;
  animation: caustics 54s linear infinite;
}
@keyframes caustics {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 1100px 420px; }
}

/* ── a plate is an alcove: marble, with the arch struck over it ── */
html[data-temple="water"] .sec.plate {
  position: relative;
  background-image:
    radial-gradient(58% 86% at 50% 0%, rgba(255,255,255,.96), rgba(255,255,255,0) 72%),
    radial-gradient(130% 70% at 50% 108%, rgba(168,226,224,.24), transparent 66%),
    url("../assets/water/marble-ethereal.webp"),
    linear-gradient(180deg, #fbfcfa 0%, #eef5f4 100%);
  background-size: auto, auto, cover, auto;
  background-position: center, center, center 18%, center;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal, soft-light, normal;
}
/* the arch itself, drawn once at the head of the alcove */
html[data-temple="water"] .sec.plate::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: min(760px, 86%);
  height: 90px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(50% 100% at 50% 100%, rgba(255,255,255,.9), transparent 70%);
  border-top: 1px solid rgba(176,146,74,.26);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  opacity: .8;
}

/* ── a band is a colonnade with the sea behind it ────────────── */
html[data-temple="water"] .band {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(251,252,250,.93), rgba(238,245,244,.95)),
    url("../assets/water/colonnade.webp");
  background-size: auto, cover;
  background-position: center, center 42%;
  background-repeat: no-repeat;
}

/* ── the two temple panels get their own rooms ───────────────── */
html[data-temple="water"] .duo .water,
.duo .water {
  background-image:
    linear-gradient(180deg, rgba(252,253,252,.9), rgba(236,245,244,.94)),
    url("../assets/water/falls.webp");
  background-size: auto, cover;
  background-position: center, center 60%;
  background-repeat: no-repeat;
}

/* ── gold in marble: the rule the Volcano draws in ember ─────── */
html[data-temple="water"] .movement,
html[data-temple="water"] .band::after {
  background-image: linear-gradient(90deg,
    transparent, rgba(255,255,255,.95) 18%,
    rgba(176,146,74,.55) 42%, rgba(31,143,154,.5) 58%,
    rgba(255,255,255,.95) 82%, transparent);
}

/* ── the phone sits in a marble frame, the way it does in the app ── */
html[data-temple="water"] .phone {
  background:
    linear-gradient(170deg, #ffffff, #d7e4e3);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95),
    0 0 0 1px rgba(176,146,74,.16),
    0 26px 64px rgba(44,96,104,.22);
}

/* ── the hero: the gate opens onto the hall ──────────────────── */
html[data-temple="water"] .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251,252,250,0) 0%, rgba(248,251,250,.86) 62%, var(--bg) 100%),
    url("../assets/water/pool.webp") center bottom / cover no-repeat;
  opacity: .5;
}

/* ── arches behind the catalogue of places ───────────────────── */
html[data-temple="water"] .cards::before {
  content: "";
  position: absolute;
  inset: -2.4rem -8vw auto -8vw;
  height: 190px;
  z-index: -1;
  pointer-events: none;
  background: url("../assets/water/arches.webp") center top / cover no-repeat;
  opacity: .14;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
html[data-temple="water"] .cards { position: relative; }

/* Nothing here may move for somebody who asked for stillness. */
@media (prefers-reduced-motion: reduce) {
  html[data-temple="water"] body::after { animation: none; }
}

/* A pair of panels that is NOT the two temples. .fire and .water carry the
   Volcano and the Water Temple and belong on the Temples page; used anywhere
   else they weld a black panel onto a marble page. These take the room they
   are standing in, with the second one lifted so the pair still reads as a
   comparison. */
.duo > article.lit-panel {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 6%, transparent), transparent 62%),
    var(--card);
}
.duo > article.lit-panel h3 { color: var(--gold); }

/* ══════════ the clothing ══════════
   A rack of garment shots: cut-outs that stand on the page rather than
   sit in boxes, the way RENKANA photographs them. They vary in height,
   so they hang from a shared top line instead of being forced square. */
.rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: stretch;
}
/* The four garments are photographed at three different crops, so left to
   themselves they end at three different heights and the captions step down
   the row. Each gets the same box and sits inside it whole: contained, never
   cropped, so a jacket shot wider than the rest simply stands smaller. */
.rack .shot img {
  width: 100%;
  aspect-ratio: 71 / 100;
  height: auto;
  object-fit: contain;
  object-position: 50% 50%;
  border-radius: 10px;
  filter: brightness(.97) saturate(.98);
  transition: filter .5s ease, transform .5s cubic-bezier(.16,.8,.3,1);
}
.rack .shot:hover img { filter: none; transform: translateY(-3px); }

/* one picture across the measure, for the lookbook frames */
figure.shot.wide { width: 100%; }
figure.shot.wide img {
  width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}
html[data-temple="water"] figure.shot.wide img { border-color: rgba(120,140,146,.3); }
