/* ==========================================================================
   HŌTUH — House of the Unhurried Human
   Design tokens: deep green #2C4A3E, gold #B8965A, cream #FBF8F4
   Display: Georgia (serif) — Body: system humanist sans
   Signature element: the arch — a recurring architectural motif used as
   a section-transition frame throughout the site.
   ========================================================================== */

:root {
  --green-deep: #2C4A3E;
  --green-soft: #3E5F51;
  --gold: #B8965A;
  --gold-soft: #D4B98C;
  --cream: #FBF8F4;
  --cream-warm: #F4EEE4;
  --ink: #24302B;
  --ink-soft: #5C6862;
  --line: rgba(44, 74, 62, 0.16);

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green-deep);
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.4vw, 38px);
  color: var(--green-deep);
  line-height: 1.35;
  margin: 0;
}

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: none;
  margin: 18px auto;
}

.rule.left { margin: 18px 0; }

/* ---------------- Nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark-sm {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.28em;
  color: var(--green-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green-deep); }

.nav-links a.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--green-deep);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid var(--green-deep);
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
}
.btn:hover { background: var(--green-deep); color: var(--cream); }

.btn.solid {
  background: var(--green-deep);
  color: var(--cream);
}
.btn.solid:hover { background: var(--gold); border-color: var(--gold); color: var(--green-deep); }

.nav-cta { font-size: 12px; padding: 9px 20px; }

.nav-toggle { display: none; }

/* ---------------- Texture (signature grain, used sparingly) ---------------- */

.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------------- Ambient ripple (waitlist arrival moment) ---------------- */

#waitlist {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
#waitlist::before,
#waitlist::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ripple-out 7s ease-out infinite;
}
#waitlist::after {
  animation-delay: 3.5s;
}

@keyframes ripple-out {
  0%   { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(14); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #waitlist::before, #waitlist::after { animation: none; opacity: 0; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 100px;
}

.hero.has-photo {
  background-size: cover;
  background-position: center;
}

.hero:not(.has-photo) {
  background: var(--green-deep);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(28,46,38,0.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero:not(.has-photo)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)' opacity='0.14'/%3E%3C/svg%3E");
}

.hero-location {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: clamp(15px, 1.6vw, 18px);
  margin-top: 6px;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.wordmark-xl {
  font-family: var(--serif);
  color: var(--cream);
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.22em;
  margin: 0 0 18px;
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
  font-size: clamp(18px, 2.2vw, 24px);
  margin-bottom: 40px;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251,248,244,0.55);
  margin-bottom: 46px;
}

.hero-lede {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn.on-dark {
  border-color: rgba(251,248,244,0.5);
  color: var(--cream);
}
.btn.on-dark:hover { background: var(--cream); color: var(--green-deep); border-color: var(--cream); }

.btn.on-dark.solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}
.btn.on-dark.solid:hover { background: var(--cream); border-color: var(--cream); }

/* ---------------- Arch signature element ---------------- */

.arch-divider {
  display: flex;
  justify-content: center;
  padding: 56px 0 40px;
}

.arch-divider svg { width: 96px; height: 48px; }

/* ---------------- Sections ---------------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.center { text-align: center; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 17px; }

.band {
  background: var(--green-deep);
  color: var(--cream);
}
.band .eyebrow { color: var(--gold-soft); }
.band h2, .band h3 { color: var(--cream); }
.band p { color: rgba(251,248,244,0.78); }
.band blockquote.pull { color: var(--cream); }

.band-cream { background: var(--cream-warm); }

/* place-where list */

.place-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  align-items: end;
}
.place-grid p {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--green-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  text-align: center;
}
.place-grid p span { color: var(--gold); margin-right: 10px; }

/* three-up pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.pillar { text-align: center; }
.pillar .eyebrow { display: block; margin-bottom: 14px; }
.pillar p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
.pillar h3 { font-size: 20px; }

/* passes strip */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.strip span { color: var(--gold); margin: 0 14px; }

/* cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 34px 28px;
}
.card .eyebrow { display: block; margin-bottom: 12px; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 15px; }
.card li { margin-bottom: 6px; }

/* two column prose */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col h3 { font-size: 24px; margin-bottom: 16px; }
.two-col p { color: var(--ink-soft); }

.prose { max-width: 720px; margin: 0 auto; }
.prose p { color: var(--ink-soft); margin-bottom: 20px; }
.prose h3 { font-size: 22px; margin: 40px 0 14px; }

blockquote.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--green-deep);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  line-height: 1.5;
  border: none;
}

/* founder */

.founder-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}
.founder-intro-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
}
.founder-portrait {
  aspect-ratio: 4/5;
  background: var(--green-deep);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(251,248,244,0.5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* waitlist / form */

.waitlist-card {
  background: var(--cream);
  border: 1px solid var(--line);
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.founder-story {
  max-width: 640px;
  margin: 0 auto;
}
.founder-story p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.founder-story p:last-child { margin-bottom: 0; }

.eyebrow-lg {
  font-family: var(--sans);
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
}
.founder-subhead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--ink);
}
.form-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
input[type="email"], input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
input[type="email"]:focus, input[type="text"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 16px; }
.form-success {
  display: none;
  color: var(--green-deep);
  font-family: var(--serif);
  font-style: italic;
  margin-top: 20px;
}

/* contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 28px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--green-deep);
}

/* footer */

footer {
  background: var(--green-deep);
  color: rgba(251,248,244,0.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251,248,244,0.14);
}
.footer-top .wordmark-sm { color: var(--cream); }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold-soft); margin-top: 8px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 {
  color: var(--cream);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(251,248,244,0.68); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(251,248,244,0.5);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(251,248,244,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* utility */

.mt-0 { margin-top: 0; }
.center-text { text-align: center; }

/* ---------------- Motion: scroll reveal ---------------- */
/* Content is visible by default. Only html.js-reveal (set by reveal.js
   the instant it loads) hides it for the fade-in effect. If the script
   fails to load for any reason, nothing on the page is ever silently
   invisible — this is the safety net for that. */

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------------- Explore flow (soft phrases linking to pillar cards / sections) ---------------- */

.exp-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}
.exp-flow .phrase {
  color: var(--green-deep);
}
.exp-flow .arrow {
  color: var(--gold-soft);
  font-style: normal;
}

#body-pillar, #mind-pillar, #spirit-pillar, #nourishment, #overnight {
  scroll-margin-top: 100px;
}

/* ---------------- Carousel (now used in all three pillar cards) ---------------- */

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/3;
  margin-bottom: 14px;
  background: var(--cream-warm);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-label {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--green-deep);
  font-size: 15px;
  margin: 0 0 10px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
}
.carousel-dot.active { background: var(--gold); }

/* placeholder variant for section-photo-band when no photo fits (kept honest, not faked) */
.section-photo-band.placeholder {
  height: 260px;
  background: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
}
.section-photo-band.placeholder .caption {
  position: static;
  font-size: 14px;
  color: rgba(251,248,244,0.55);
  text-shadow: none;
}
.section-photo-band.placeholder::after { display: none; }

/* ---------------- Photo blocks ---------------- */

.photo {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.photo.tall { aspect-ratio: 1/1; }
.photo.wide { aspect-ratio: 16/9; }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.photo-frame .cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(28,46,38,0.65);
}

.pillar-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 20px;
}

.section-photo-band {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.section-photo-band.thin { height: 220px; }
.section-photo-band img {
  width: 100%; height: 100%; object-fit: cover;
}
.section-photo-band .caption {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  text-align: center;
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  padding: 10px 24px;
}
.section-photo-band .caption span {
  background: rgba(28,46,38,0.7);
  padding: 8px 20px;
  display: inline-block;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .exp-flow { font-size: 15px; gap: 8px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.nav-cta { margin-top: 12px; text-align: center; }
  .card-grid, .pillars { grid-template-columns: 1fr; }
  .two-col, .founder-hero, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-portrait { max-width: 260px; margin: 0 auto; }
  section { padding: 64px 0; }
  .place-grid { gap: 14px 24px; }
  .place-grid p { font-size: 15px; }
  .founder-intro-card { padding: 28px 24px; }
}
