/* ═══════════════════════════════════════════════════════════
   Azulo Monastery — one page site
   Layout cut from the ChatGPT mockup (Aug 2026).
   ═══════════════════════════════════════════════════════════ */

/* ---------- tokens ---------- */
:root {
  /* azulejo blues */
  --ink:        #1b3a6b;   /* headlines, wordmark        */
  --ink-soft:   #2f5289;   /* body copy on cream         */
  --blue:       #2f68ad;   /* tile blue, icons           */
  --blue-deep:  #14315e;   /* primary button             */
  --footer-bg:  #26568f;

  /* sky + water */
  --sky-high:   #7cb6e2;
  --sky-low:    #bfdcf1;
  --water-high: #74aed8;
  --water-low:  #3f7fb4;

  /* paper */
  --cream:      #f1ece1;   /* section panels             */
  --cream-lit:  #faf6ee;   /* cards, plates              */
  --cream-line: #ded4c2;

  --terracotta: #c07f4b;

  /* type */
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;

  /* rhythm */
  /* The page is a centred stripe on a mat. --page is the stripe; a MacBook
     is 1440-1512 CSS px wide, so 1280 leaves a visible frame on one. */
  --page: 1280px;
  --frame: #dbe4ee;       /* the mat the stripe sits on */
  --wrap: 1120px;         /* content column, inset from the stripe edge */
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-card: 0 14px 34px rgba(20, 49, 94, .13);
  --shadow-lift: 0 22px 54px rgba(20, 49, 94, .20);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--frame);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.page {
  position: relative;      /* the header positions against this, not the viewport */
  max-width: var(--page);
  margin-inline: auto;
  margin-block: clamp(0px, 2.2vw, 30px);
  background: var(--cream);
  border-radius: 26px;
  overflow: hidden;        /* clips the hero + footer to the rounded corners */
  box-shadow: 0 30px 70px rgba(20, 49, 94, .18);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* dot separators inside caption lines */
i { font-style: normal; opacity: .5; margin-inline: .45em; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══════════════════════ ornaments ═══════════════════════ */

/* line — flower — line */
.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  color: var(--blue);
}
.rule__line {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: .45;
}
.rule__flower { width: 15px; height: 15px; flex: none; }
.rule--left  { max-width: 300px; margin-block: 12px; }
.rule--tiny  { max-width: 92px; margin: 14px auto 0; }

/* heading with flourished rules on both sides */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.flourish__text { flex: none; }
.flourish__line {
  width: clamp(46px, 9vw, 96px);
  height: 1px;
  background: currentColor;
  opacity: .5;
  position: relative;
}
.flourish__line::after {
  content: "";
  position: absolute;
  right: -1px; top: -3.5px;
  border: 4px solid transparent;
  border-left-color: currentColor;
}
.flourish__line--rev::after {
  right: auto; left: -1px;
  border-left-color: transparent;
  border-right-color: currentColor;
}
.flourish--on-blue { color: #fff; text-shadow: 0 1px 4px rgba(20, 49, 94, .40); }
.section__head--on-blue .section__sub { text-shadow: 0 1px 3px rgba(20, 49, 94, .40); }

/* ═══════════════════════ image frames ═══════════════════════
   Every <img> is a placeholder until the render is dropped in
   assets/. script.js swaps in .is-missing when a file 404s so
   the layout keeps its shape and names the file it wants.     */

.frame {
  position: relative;
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* No card behind the murals - each panel is already a finished piece with
   its own painted border and ground, so a card only showed as letterbox
   bars where the three ratios disagree. */
.frame--card {
  background: none;
  aspect-ratio: 4 / 3;
}
/* cover would slice the painted border off, so fit the whole panel */
.mural .frame--card img {
  object-fit: contain;
}
.frame--flat { border-radius: 6px; aspect-ratio: 16 / 10; }
.frame--icon { border-radius: 24px; box-shadow: var(--shadow-card); aspect-ratio: 1; }
.frame--bare { background: none; }

.frame.is-missing {
  background:
    repeating-linear-gradient(45deg,
      rgba(47,104,173,.05) 0 10px,
      rgba(47,104,173,.10) 10px 20px);
  border: 1px dashed rgba(47,104,173,.45);
  border-radius: var(--radius-sm);
  min-height: 90px;
}
.frame.is-missing::after {
  content: attr(data-asset);
  position: absolute;
  inset: auto 0 0 0;
  padding: 5px 8px;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
  color: var(--ink);
  background: rgba(250,246,238,.86);
}

/* ═══════════════════════ buttons + badges ═══════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 20px;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn--primary {
  background: linear-gradient(180deg, #275390, var(--blue-deep));
  color: #fff;
  box-shadow: var(--shadow-lift);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px rgba(20,49,94,.30); }
.btn__spark { width: 16px; height: 16px; opacity: .85; flex: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 15px;
  border-radius: 10px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.badge:hover { transform: translateY(-1px); }
.badge__glyph { width: 22px; height: 22px; flex: none; }
.badge__text { display: grid; line-height: 1.12; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.badge__kicker { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.badge__store { font-size: 17px; letter-spacing: .01em; }

.badge--light { background: var(--cream-lit); color: #10141a; box-shadow: 0 4px 14px rgba(20,49,94,.16); }
.badge--dark  { background: var(--blue-deep); color: #fff; box-shadow: var(--shadow-card); }
.badge--dark .badge__glyph:not(.badge__glyph--play) { fill: #fff; }
.badge--light .badge__glyph:not(.badge__glyph--play) { fill: #10141a; }

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

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
  padding-block: 22px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: grid; }
.brand__name {
  font-size: 34px;
  line-height: .96;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand__sub {
  font-size: 13px;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .9;
  padding-left: .18em;
}

.header__actions { display: flex; align-items: center; gap: 12px; }

.menu-btn {
  width: 46px;
  height: 46px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  border-radius: 50%;
  background: var(--cream-lit);
  box-shadow: 0 4px 14px rgba(20,49,94,.16);
}
.menu-btn span {
  width: 19px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
  position: absolute;
  right: var(--gutter);
  top: calc(100% + 8px);
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--cream-lit);
  box-shadow: var(--shadow-lift);
}
.menu-panel[hidden] { display: none; }
.menu-panel a { padding: 9px 12px; border-radius: 9px; font-size: 18px; }
.menu-panel a:hover { background: rgba(47,104,173,.10); }
.menu-panel__cta {
  margin-top: 6px;
  text-align: center;
  background: var(--blue-deep);
  color: #fff;
}
.menu-panel__cta:hover { background: #1c4478; }

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

.hero {
  position: relative;
  /* hero.jpg is 1935x812. Matching that ratio means object-fit: cover has
     nothing to crop, so the shrine and the clear water the copy sits on
     both survive at any stripe width. */
  /* width:100% is load-bearing. With width:auto, once min-height wins the
     aspect-ratio resolves backwards and derives WIDTH from height
     (500 x 1935/812 = 1192px), overflowing the stripe. */
  width: 100%;
  aspect-ratio: 1935 / 812;
  min-height: 500px;
  padding: 72px 0 28px;
  background-color: var(--sky-high);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}


.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 460px);
  align-items: center;
  min-height: inherit;
}

.hero__title {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
.hero__lede {
  max-width: 38ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
}
.hero .btn--primary { margin-top: 24px; }
.hero__terms {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .05em;
  color: #fff;
  font-weight: 700;
  /* the water behind this is pale - white needs a shadow to hold its edge */
  text-shadow: 0 1px 3px rgba(20, 49, 94, .55);
}



/* ═══════════════════════ sections + panels ═══════════════════════ */

.section { padding-block: clamp(44px, 5vw, 66px); }
.section--panel { padding-block: clamp(20px, 3vw, 34px); }

.panel {
  position: relative;
  padding: clamp(30px, 4.5vw, 54px) clamp(22px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--cream-lit);
  box-shadow: var(--shadow-card);
}

.section__head { text-align: center; margin-bottom: 40px; }
.section__sub {
  margin-top: 10px;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--ink-soft);
}
.section__head--on-blue .section__sub { color: rgba(255,255,255,.9); }

/* ═══════════════════════ playable demo ═══════════════════════ */

.section__head--tight { margin-bottom: 28px; }

.demo__stage {
  position: relative;
  aspect-ratio: 2340 / 1080;   /* the game's own viewport, from project settings */
  border-radius: 10px;
  overflow: hidden;
  background: var(--blue-deep);
  box-shadow: var(--shadow-card);
}
.demo__stage > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.demo__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(rgba(20, 49, 94, .40), rgba(20, 49, 94, .66));
}
.demo__weight {
  color: #fff;
  font-size: 13px;
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(20, 49, 94, .6);
}
.demo__note {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.demo__note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.demo__note a:hover { color: var(--ink); }

/* ═══════════════════════ phone & tablet ═══════════════════════ */

.panel--devices {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.devices__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.devices__lede {
  max-width: 40ch;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-soft);
}
.devices__meta {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--ink);
  opacity: .72;
}
.devices__art img {
  width: 100%;
  filter: drop-shadow(0 22px 40px rgba(15, 45, 85, .26));
}

/* ═══════════════════════ murals carousel ═══════════════════════ */

.murals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
}
.mural { position: relative; padding-bottom: 22px; }
.mural .frame--card { transition: transform .25s ease; }
.mural:hover .frame--card { transform: translateY(-4px); }

.plate {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  min-width: 62%;
  padding: 9px 26px;
  border-radius: 7px;
  background: var(--cream-lit);
  border: 1px solid var(--cream-line);
  box-shadow: 0 6px 16px rgba(20,49,94,.14);
  text-align: center;
  font-size: 19px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink);
}


/* ═══════════════════════ promises ═══════════════════════ */

.panel--promises { overflow: visible; padding-right: clamp(22px, 12vw, 190px); }

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
}
.promise {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-inline: clamp(4px, 1.6vw, 22px);
}
.promise + .promise { border-left: 1px solid var(--cream-line); }
/* Lucide is drawn for 2px stroke at 24px. Rendered at 40px, 1.5 keeps the
   apparent weight at ~2.5px so it sits with the site's other line work. */
.promise__icon {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--blue);
  margin-top: 2px;
  stroke-width: 1.5;
}
.promise h3 { font-size: 21px; font-weight: 600; color: var(--ink); }
.promise p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }
.promise .rule--tiny { margin-inline: 0; }

.deco { position: absolute; pointer-events: none; }
/* Breaks out of the panel: translateY is a share of the image's OWN height,
   so it hangs ~13% below the cream edge at every width. .panel--promises is
   overflow:visible, and the section's bottom padding leaves room for it. */
.deco--lavender {
  right: clamp(-10px, 1vw, 18px);
  bottom: 0;
  width: clamp(140px, 15vw, 200px);
  transform: translateY(13%);
}
.deco--plant    { right: clamp(-6px, 2vw, 34px); bottom: 10px; width: clamp(110px, 15vw, 190px); }

/* ═══════════════════════ six acts ═══════════════════════ */

.section--acts {
  position: relative;
  isolation: isolate;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--wrap);
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  padding-block: clamp(44px, 5.5vw, 66px) clamp(30px, 4vw, 44px);
  background-color: #4a89bd;   /* shows through until the image decodes */
}
/* isolation:isolate on .section--acts keeps this z-index:-1 inside the band */
.acts__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;   /* keep the waterline, crop sky first */
  z-index: -1;
}

.acts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: clamp(6px, 1.2vw, 18px);
}
.act {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0 6px 4px;
  text-align: center;
  color: #fff;
  /* the sky gradient runs pale behind the upper acts — keep labels readable */
  text-shadow: 0 1px 3px rgba(20, 49, 94, .45);
}
.act + .act::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 1px;
  height: 54px;
  background: rgba(255,255,255,.35);
}
/* The act art is 1537x1023. Each file already carries its own water
   reflection, so no drop-shadow — one would grey-halo the reflection. */
.act__art { width: 124%; margin-inline: -12%; aspect-ratio: 1537 / 1023; margin-bottom: -22px; }
.act__art img {
  object-fit: contain;
  object-position: bottom;
  /* Dissolve the tail of the reflection into the real water behind it.
     Measured: the artwork's alpha ends at 84.8-87.4% of the file height and
     the rest is empty, so a fade below ~88% would mask nothing at all.
     72%->88% takes off roughly the last 15% of actual content. */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 88%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 88%);
}
.act__num { font-size: 15px; letter-spacing: .16em; opacity: .92; }
.act__name { font-size: clamp(13px, 1.35vw, 17px); letter-spacing: .01em; }
.act__state { width: 15px; height: 15px; margin-top: 5px; color: #fff; opacity: .9; }
.act.is-open .act__state { color: var(--cream-lit); opacity: 1; }

/* ═══════════════════════ get it ═══════════════════════ */

.section--get { padding-block: clamp(16px, 2.4vw, 26px) clamp(28px, 4vw, 44px); }

.panel--get {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(30px, 4.4vw, 52px);
  overflow: visible;
}
.app-icon { width: clamp(120px, 16vw, 190px); flex: none; }
.get__copy { text-align: center; }

.wordmark { color: var(--ink); }
.wordmark__name {
  display: block;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wordmark__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: clamp(17px, 2.3vw, 27px);
  letter-spacing: .34em;
  text-transform: uppercase;
}
.wordmark__spark { width: 14px; height: 14px; color: var(--blue); flex: none; }

.get__lede { margin-top: 14px; font-size: clamp(16px, 1.7vw, 21px); color: var(--ink-soft); }
.get__badges { display: flex; justify-content: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.get__badges .badge { padding: 12px 24px 12px 20px; border-radius: 12px; }
.get__badges .badge__store { font-size: 21px; }
.get__terms { margin-top: 18px; font-size: 13px; letter-spacing: .05em; color: var(--ink-soft); }

/* ═══════════════════════ document pages ═══════════════════════
   support.html and any future privacy/terms page. No hero to sit over,
   so the header is in normal flow rather than absolutely positioned. */

.site-header--solid { position: static; padding-block: 20px; }
.doc__back { font-size: 15px; color: var(--ink); opacity: .8; }
.doc__back:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.wrap--doc { max-width: 820px; }

.doc__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.doc__lede { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); }

.doc h2 {
  margin-top: 38px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--ink);
}
.doc h3 {
  margin-top: 26px;
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 600;
  color: var(--ink);
}
.doc h3 + p { margin-top: 6px; }
.doc p { color: var(--ink-soft); line-height: 1.65; }
.doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }

.doc__dates { font-size: 15px; color: var(--ink-soft); line-height: 1.9; }
.doc__dates strong { color: var(--ink); }
.doc strong { color: var(--ink); font-weight: 600; }

.doc__list { margin: 14px 0; display: grid; gap: 10px; }
.doc__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.doc__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .55;
}

/* the table must scroll inside itself rather than widen the page */
.doc__table-wrap { overflow-x: auto; margin: 18px 0 20px; }
.doc table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
}
.doc th, .doc td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--cream-line);
  color: var(--ink-soft);
  vertical-align: top;
}
.doc th { color: var(--ink); font-weight: 600; }
.doc tbody tr:last-child td { border-bottom: 0; }

.doc__hr {
  margin: 36px 0 22px;
  border: 0;
  border-top: 1px solid var(--cream-line);
}
.doc__meta { font-size: 14px; color: var(--ink-soft); }

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

.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding-block: 26px;
  margin-top: clamp(20px, 3vw, 34px);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.footer__name { font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.footer__copy { font-size: 13px; opacity: .82; }

.footer__links { display: flex; gap: clamp(18px, 3vw, 42px); justify-content: center; }
.footer__links a { font-size: 15px; opacity: .92; }
.footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.socials { display: flex; gap: 16px; justify-content: flex-end; }
.socials svg { width: 20px; height: 20px; fill: currentColor; opacity: .9; transition: opacity .18s ease, transform .18s ease; }
.socials a:hover svg { opacity: 1; transform: translateY(-2px); }

/* ═══════════════════════ responsive ═══════════════════════ */

/* The hero box is locked to hero.jpg's ratio, so it gets short as the stripe
   narrows. Measured spill here was up to 14px - reclaim it from the rhythm
   instead of letting object-fit crop the shrine. */
@media (min-width: 1001px) and (max-width: 1279px) {
  .hero { padding: 60px 0 20px; }
  .hero__title { font-size: clamp(30px, 3.2vw, 40px); }
  .hero .btn--primary { margin-top: 18px; }
  .hero__terms { margin-top: 10px; }
}

@media (max-width: 1000px) {
  .page {
    max-width: none;
    margin-block: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .header__actions .badge { display: none; }

  /* A 2.38:1 image cannot sit behind text on a narrow screen - cover crops to
     the middle and the copy lands on the shrine. Below 1000px the art becomes
     a band across the top and the copy moves underneath it. */
  .hero {
    aspect-ratio: auto;
    min-height: 0;
    padding: 0 0 44px;
    background: var(--cream);
    display: flex;
    flex-direction: column;
  }
  .hero__bg {
    position: static;
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: right center;   /* keep the shrine, shed the empty water */
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
    padding-top: 32px;
  }
  /* the copy moves onto cream here, so the white treatment that works over
     the water would be invisible - keep it bold but ink-coloured */
  .hero__terms {
    color: var(--ink);
    opacity: .8;
    text-shadow: none;
  }
  .hero__copy { display: grid; justify-items: center; }
  .hero__lede { max-width: none; }
  .rule--left { width: 220px; }

  .murals { grid-template-columns: 1fr; }

  .panel--devices { grid-template-columns: 1fr; text-align: center; }
  .devices__copy { display: grid; justify-items: center; }
  .devices__lede { max-width: none; }
  .devices__art { order: -1; }

  .promises { grid-template-columns: 1fr; }
  .promise + .promise { border-left: 0; border-top: 1px solid var(--cream-line); padding-top: 22px; }
  .panel--promises { padding-right: clamp(22px, 4vw, 56px); }
  .deco--lavender { display: none; }

  .acts { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .act:nth-child(4)::before { display: none; }

  .panel--get { grid-template-columns: 1fr; justify-items: center; }
  .deco--plant { display: none; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .socials { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__name { font-size: 27px; }
  .brand__sub { font-size: 11px; letter-spacing: .28em; }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .act:nth-child(odd)::before { display: none; }
  .act:nth-child(4)::before { display: block; }
  .footer__links { flex-direction: column; gap: 8px; }
}

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