/* =========================================================================
   Q · Spa & Wellness · Kenya — locked light editorial system
   Native scroll only. Motion = IntersectionObserver reveals + CSS hero ken-burns.
   ========================================================================= */

:root {
  /* Colour tokens (literal) */
  --paper: #F5F1E8;
  --paper-deep: #ECE4D4;
  --ink: #1A1916;
  --ink-muted: #6F665A;
  --bronze: #94774B;
  --bronze-hover: #7E6440;
  --line: rgba(26, 25, 22, 0.14);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --margin: clamp(1.5rem, 7vw, 7vw);
  --section-y: clamp(5rem, 12vh, 12rem);
  --content-max: 1320px;
  --text-max: 38rem;
  --gutter: 1.5rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---- Shell / grid ------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section { padding-block: var(--section-y); }

/* ---- Type primitives --------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bronze);
  margin: 0 0 1.4rem;
}
.eyebrow--light { color: #E7DCC8; }

.section-heading {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1.8rem;
  max-width: 16ch;
}

.body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 1.4rem;
}
.body:last-child { margin-bottom: 0; }

/* ---- Reveal (JS-gated; visible without JS) ----------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  animation: kenburns 18s var(--ease) forwards;
}
@keyframes kenburns { to { transform: scale(1.06); } }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(20, 17, 13, 0.58), rgba(20, 17, 13, 0.06) 52%, transparent 72%),
    linear-gradient(to right, rgba(20, 17, 13, 0.34), transparent 48%);
}

.hero__bar, .hero__content, .hero__cue { position: relative; z-index: 2; }

.hero__bar { padding-top: clamp(1.4rem, 4vh, 2.4rem); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: 28px;
  line-height: 1;
  color: var(--paper);
  letter-spacing: 0.02em;
}

.hero__content {
  margin-top: auto;
  padding-bottom: clamp(4rem, 11vh, 7rem);
}
.hero__line {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 320;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.hero__cue {
  position: absolute; left: 50%; bottom: clamp(1.4rem, 4vh, 2.2rem);
  transform: translateX(-50%);
  display: block; width: 1px; height: clamp(40px, 7vh, 64px);
  background: rgba(231, 220, 200, 0.4);
  overflow: hidden;
}
.hero__cue-line {
  position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: #E7DCC8;
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(250%); }
}

/* =========================================================================
   01 · THE VISION
   ========================================================================= */
.vision__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}
.vision__text { grid-column: 1 / 6; }
.vision__media {
  grid-column: 7 / 13;
  margin: clamp(2rem, 6vw, 5.5rem) 0 0;
}
.vision__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* =========================================================================
   02 · THE EXPERIENCE
   ========================================================================= */
.experience__intro { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.band {
  margin: 0 0 clamp(3rem, 7vw, 6rem);
  width: 100%;
}
.band img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  max-height: 60vh;
}

.rituals {
  list-style: none;
  margin: 0; padding: 0;
  border-bottom: 1px solid var(--line);
}
.ritual {
  display: grid;
  grid-template-columns: clamp(110px, 16vw, 156px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.6rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.ritual__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.ritual__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 360;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.ritual__line {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  max-width: 48ch;
}

/* =========================================================================
   03 · WELLNESS PHILOSOPHY
   ========================================================================= */
.philosophy { background: var(--paper-deep); }
.philosophy__inner {
  max-width: var(--text-max);
  margin-inline: auto;
  text-align: center;
}
.philosophy .eyebrow { color: var(--bronze); }
.philosophy__statement {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================================
   04 · REGISTER INTEREST
   ========================================================================= */
.register__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter) clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.register__intro { grid-column: 1 / 6; }
.register__form-wrap { grid-column: 7 / 13; padding-top: 0.4rem; }

.privacy {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 1.8rem 0 0;
  max-width: 42ch;
}

.form { display: flex; flex-direction: column; gap: clamp(1.4rem, 3vw, 2rem); }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}
.field .optional { text-transform: none; letter-spacing: 0; color: var(--ink-muted); opacity: 0.7; }

.field input {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 0;
  transition: border-color 0.3s var(--ease);
}
.field input:hover { border-bottom-color: rgba(26, 25, 22, 0.32); }
.field input:focus {
  outline: none;
  border-bottom-color: var(--bronze);
  box-shadow: 0 1px 0 0 var(--bronze);
}
.field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 9999s; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  align-self: flex-start;
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: var(--bronze);
  border: 0;
  padding: 1rem 2.2rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--bronze-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: default; }

.form-status {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 1.6rem 0 0;
  max-width: 46ch;
}
.form-status--ok { color: var(--ink); }
.form-status--err { color: #8A3B2E; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.footer__inner {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.footer__mark {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.footer__note { font-size: 0.9375rem; color: var(--ink); }
.footer__year { font-size: 0.9375rem; color: var(--bronze); margin-left: auto; }
.footer__credit { font-size: 0.75rem; color: var(--ink-muted); opacity: 0.7; letter-spacing: 0.02em; width: 100%; }

/* =========================================================================
   RESPONSIVE — single column under 880px
   ========================================================================= */
@media (max-width: 880px) {
  .vision__text { grid-column: 1 / -1; }
  .vision__media { grid-column: 1 / -1; margin-top: clamp(2rem, 8vw, 3rem); }
  .vision__media img { aspect-ratio: 3 / 2; }

  .register__intro { grid-column: 1 / -1; }
  .register__form-wrap { grid-column: 1 / -1; margin-top: clamp(2rem, 8vw, 3rem); }
}

@media (max-width: 560px) {
  .section-heading { max-width: none; }
  .ritual {
    grid-template-columns: 84px 1fr;
    gap: 1.25rem;
    align-items: start;
  }
  .hero__line { max-width: 16ch; }
}

/* =========================================================================
   REDUCED MOTION — show everything instantly, no transforms
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__media img { animation: none !important; transform: none !important; }
  .hero__cue-line { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
