/* ==========================================================================
   CUWA Water — marketing site
   Minimal luxury, hospitality-led. Deep navy, generous whitespace, restraint.
   One stylesheet, no build step: the folder can be dropped on any host.
   ========================================================================== */

:root {
  --navy: #0e2148;
  --navy-deep: #091736;
  --charcoal: #161a20;
  --soft: #eaf2fa;
  --mist: #f7f9fc;
  --white: #ffffff;

  --ink: #161a20;
  --ink-muted: #5a6473;
  --line: #e4eaf2;
  --line-dark: rgba(255, 255, 255, 0.14);

  --accent: #2f6fb8;

  --shell: min(1240px, 100% - 3rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 1100ms;
}

@media (max-width: 640px) {
  :root { --shell: min(1240px, 100% - 2.5rem); }
}

/* ------------------------------------------------------------------ reset */

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

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

body {
  margin: 0;
  font-family: Manrope, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--navy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.display {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -0.035em; line-height: 1.06; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 54ch;
}

p { margin: 0 0 1.1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--ink-muted); }

/* ----------------------------------------------------------------- layout */

.shell { width: var(--shell); margin-inline: auto; }

.section { padding: clamp(5rem, 11vw, 9.5rem) 0; }
.section--tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.section--mist { background: var(--mist); }
.section--soft { background: var(--soft); }

/* Dark surfaces. .band is navy too, so it needs every one of these: without
   them .lede and .step p keep the dark muted ink and all but vanish. */
.section--navy {
  background: var(--navy);
  color: #fff;
}
.section--navy .lede, .band .lede,
.section--navy .muted, .band .muted { color: rgba(255, 255, 255, 0.72); }
.section--navy .eyebrow, .band .eyebrow { color: #7fb2ea; }
.band p { color: rgba(255, 255, 255, 0.78); }

.measure { max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--slow) var(--ease), color 300ms var(--ease),
              border-color 300ms var(--ease), transform 300ms var(--ease);
  position: relative;
  overflow: hidden;
}

.btn .arrow {
  display: inline-block;
  transition: transform 420ms var(--ease);
}
.btn:hover .arrow { transform: translateX(5px); }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--accent); }

.btn--ghost {
  border-color: rgba(14, 33, 72, 0.25);
  color: var(--navy);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--soft); }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

/* A quiet text link that underlines itself on hover. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 480ms var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link .arrow { transition: transform 420ms var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

.section--navy .link, .band .link { color: #fff; }

/* ----------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 500ms var(--ease), box-shadow 500ms var(--ease);
}

.site-header__inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 86px;
  transition: height 500ms var(--ease);
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(14, 33, 72, 0.08);
}
.site-header.is-stuck .site-header__inner { height: 70px; }

.brand img { height: 26px; width: auto; transition: opacity 400ms var(--ease); }
.brand__light { display: block; }
.brand__dark { display: none; }
.site-header.is-stuck .brand__light { display: none; }
.site-header.is-stuck .brand__dark { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.3rem;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 300ms var(--ease);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }

.site-header.is-stuck .nav a { color: var(--ink-muted); }
.site-header.is-stuck .nav a:hover,
.site-header.is-stuck .nav a[aria-current="page"] { color: var(--navy); }

/* The header sits on dark imagery on most pages; .site-header--solid is for
   pages whose hero is light, where white-on-white would vanish. */
.site-header--solid .nav a { color: var(--ink-muted); }
.site-header--solid .brand__light { display: none; }
.site-header--solid .brand__dark { display: block; }

.header-cta {
  display: inline-flex;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.header-cta:hover { background: #fff; color: var(--navy); border-color: #fff; }
.site-header.is-stuck .header-cta,
.site-header--solid .header-cta {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.site-header.is-stuck .header-cta:hover,
.site-header--solid .header-cta:hover { background: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
}
.site-header.is-stuck .nav-toggle, .site-header--solid .nav-toggle { color: var(--navy); }
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: background 200ms var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 400ms var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ------------------------------------------------------------ mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease);
  pointer-events: none;
}
body.nav-open .mobile-menu {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  color: #fff;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
body.nav-open .mobile-menu a { opacity: 1; transform: none; }
body.nav-open .mobile-menu a:nth-child(1) { transition-delay: 120ms; }
body.nav-open .mobile-menu a:nth-child(2) { transition-delay: 180ms; }
body.nav-open .mobile-menu a:nth-child(3) { transition-delay: 240ms; }
body.nav-open .mobile-menu a:nth-child(4) { transition-delay: 300ms; }
body.nav-open .mobile-menu a:nth-child(5) { transition-delay: 360ms; }

.mobile-menu__foot {
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

body.nav-open { overflow: hidden; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 clamp(3.5rem, 7vw, 6rem);
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero--page {
  min-height: clamp(62vh, 76svh, 820px);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  opacity: 0;
  transition: transform 2600ms var(--ease), opacity 1400ms var(--ease);
}
.hero__media img.is-in { transform: scale(1); opacity: 1; }

/* Navy wash: keeps the brand colour dominant over whatever the photo is. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 23, 54, 0.74) 0%, rgba(9, 23, 54, 0.3) 38%, rgba(9, 23, 54, 0.92) 100%),
    linear-gradient(90deg, rgba(14, 33, 72, 0.6) 0%, rgba(14, 33, 72, 0) 65%);
}

.hero__inner { position: relative; z-index: 1; width: var(--shell); margin-inline: auto; }
.hero__inner .lede { color: rgba(255, 255, 255, 0.8); }
.hero__inner .eyebrow { color: #8ebcf0; }

.hero__support {
  margin-top: 1.6rem;
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.98rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollHint 2.6s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* On a phone the hero copy reaches the bottom of the screen and the hint
   draws a line straight through the buttons. There is nothing to hint at
   on a touch screen anyway. */
@media (max-width: 920px) { .hero__scroll { display: none; } }

/* ------------------------------------------------------------------ split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.frame {
  position: relative;
  overflow: hidden;
  background: var(--soft);
}
.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1600ms var(--ease);
}
.frame--wide img { aspect-ratio: 16 / 10; }
.frame:hover img { transform: scale(1.045); }

/* The image wipes up into view rather than simply fading. */
.frame.reveal-media { clip-path: inset(100% 0 0 0); transition: clip-path 1400ms var(--ease); }
.frame.reveal-media.is-in { clip-path: inset(0 0 0 0); }

/* ------------------------------------------------------------------ cards */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1100px) { .grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4, .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .grid--5 { grid-template-columns: 1fr; } }

.cell {
  background: var(--white);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  transition: background 600ms var(--ease);
}
.cell:hover { background: var(--mist); }
.cell h3 { margin-bottom: 0.6rem; }
.cell p { font-size: 0.95rem; color: var(--ink-muted); }

.section--navy .grid { background: var(--line-dark); border-color: var(--line-dark); }
.section--navy .cell { background: var(--navy); }
.section--navy .cell:hover { background: var(--navy-deep); }
.section--navy .cell p { color: rgba(255, 255, 255, 0.66); }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .steps, .steps--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps, .steps--5 { grid-template-columns: 1fr; } }

.step__num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  display: block;
}
.section--navy .step__num, .band .step__num { color: #7fb2ea; border-color: var(--line-dark); }
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; color: var(--ink-muted); }
.section--navy .step p, .band .step p { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------- experience image tiles */

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: transform 1800ms var(--ease), opacity 800ms var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,23,54,0.12) 30%, rgba(9,23,54,0.88) 100%);
}
.tile:hover img { transform: scale(1.07); opacity: 0.8; }
.tile__body { position: relative; z-index: 1; padding: 1.6rem; color: #fff; }
.tile__body h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.tile__body p { font-size: 0.88rem; color: rgba(255,255,255,0.74); margin: 0; }

/* ---------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden;
  padding: 2.4rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(3rem, 7vw, 6rem);
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.marquee__item {
  display: grid;
  place-items: center;
  min-width: 190px;
  height: 56px;
  padding: 0 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  filter: grayscale(1);
  opacity: 0.72;
  transition: opacity 500ms var(--ease);
  text-align: center;
  line-height: 1.25;
}
.marquee__item:hover { opacity: 1; }

/* ----------------------------------------------------------- testimonials */

.quotes { position: relative; min-height: 13rem; }
.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.quote cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.quote-dots { display: flex; gap: 0.6rem; margin-top: 2.5rem; }
.quote-dots button {
  width: 30px; height: 2px;
  border: 0; padding: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background 400ms var(--ease);
}
.quote-dots button[aria-selected="true"] { background: #fff; }

/* ------------------------------------------------------------------- band */

.band {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(9,23,54,0.94) 0%, rgba(9,23,54,0.6) 100%);
}
.band__inner { position: relative; z-index: 1; }

/* ------------------------------------------------------------------- form */

.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.6rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  /* 16px on a phone: anything smaller makes iOS zoom the page on focus. */
  font-size: 1rem;
  padding: 0.95rem 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 184, 0.12);
}
.field input[type="file"] { padding: 0.7rem; background: var(--mist); }

.form__note { font-size: 0.85rem; color: var(--ink-muted); }

.form-status {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--soft);
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-shown { display: block; }

/* --------------------------------------------------------------- contacts */

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}
.contact-list dd { margin: 0; font-size: 1.05rem; }
.contact-list a:hover { color: var(--accent); }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.62);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem;
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer img { height: 26px; width: auto; margin-bottom: 1.3rem; }
.site-footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.1rem;
}
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.site-footer .tag {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.site-footer__base {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ------------------------------------------------------- reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Children stagger in one after another. */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 60ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 150ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 240ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 330ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 420ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 510ms; }

/* Letter-by-letter is overkill; a line-by-line lift reads as considered. */
.lines > * {
  display: block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 1000ms var(--ease), transform 1000ms var(--ease);
}
.lines.is-in > *:nth-child(1) { transition-delay: 80ms; }
.lines.is-in > *:nth-child(2) { transition-delay: 200ms; }
.lines.is-in > *:nth-child(3) { transition-delay: 320ms; }
.lines.is-in > * { opacity: 1; transform: none; }

/* The whole page fades up once, so arriving never feels abrupt. */
body { opacity: 0; transition: opacity 600ms var(--ease); }
body.is-ready { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .stagger > *, .lines > * { opacity: 1 !important; transform: none !important; }
  .frame.reveal-media { clip-path: none !important; }
  .hero__media img { opacity: 1 !important; transform: none !important; }
  body { opacity: 1 !important; }
}
