/* FULL assets/style.css
   */

:root{
  --bg:#E6DAC8;
  --surface:#E1D4B8;
  --ink:#324D39;
  --muted:#62735D;
  --accent:#938360;
  --line:rgba(50,77,57,.22);

  --radius:20px;
  --shadow:0 20px 55px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }

html, body { height: 100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout container */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 70px;
  position: relative;
  z-index: 2; /* keep content above any background layers */
}

/* =========================
   Header
   ========================= */

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:var(--ink);
  border-bottom:none !important;
}

.brand img{
  width:176px;
  height:auto;
  object-fit:contain;
}

.brand .name{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  border-bottom:1px solid rgba(147,131,96,.45);
  padding-bottom:2px;
}

.brand:hover .name{
  border-bottom-color:rgba(147,131,96,.8);
}

.nav a{
  margin-left:14px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.nav a:hover{
  color:var(--ink);
  border-bottom:1px solid var(--line);
}

/* =========================
   Typography
   ========================= */

h1{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight:600;
  font-size:50px;
  line-height:1.05;
  margin: 0 0 18px;
}

h2{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight:600;
  font-size:22px;
  margin:22px 0 10px;
}

p, li{
  font-size:18px;
  line-height:1.75;
  margin:0 0 14px;
}

.lede{
  font-size:19px;
  color:var(--muted);
}

.fine{
  font-size:14px;
  color:var(--muted);
}

.note{
  border-left:3px solid rgba(147,131,96,.55);
  padding-left:14px;
  color:var(--muted);
}

/* =========================
   s / Layout
   ========================= */

.card{
  background: rgba(225,212,184,0.40);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border:1px solid rgba(50,77,57,.18);
  border-radius:var(--radius);
  padding:30px;
  box-shadow:var(--shadow);
}

/* Lift ONLY the first card on the homepage so it overlaps hero nicely (no grid overlap) */
body.home .scrolly-hero + .wrap > .card{
  margin-top: -72px;
  position: relative;
  z-index: 3;
}

.grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
}

hr{
  border:none;
  border-top:1px solid var(--line);
  margin:20px 0;
}

/* =========================
   Links / Buttons
   ========================= */

a{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid rgba(147,131,96,.35);
}
a:hover{
  border-bottom-color:rgba(147,131,96,.7);
}

.btn{
  display:inline-block;
  padding:14px 20px;
  border-radius:999px;
  border:1px solid rgba(50,77,57,.35);
  background:rgba(255,255,255,.45);
  color:var(--ink);
  font-weight:600;
  transition: all .15s ease;
}

.btn-primary{
  background:rgba(50,77,57,.14);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.btn-primary:hover{
  background:rgba(98,115,93,.35);
  border-color:rgba(98,115,93,.55);
  transform:translateY(-1px);
}

.btn-primary:active{
  transform:none;
}

.begin-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(147,131,96,.35);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease, gap .15s ease;
}

.begin-link:hover{
  color: var(--muted);
  border-bottom-color: rgba(147,131,96,.7);
  gap: 10px;
}

.begin-link .arrow{
  font-size: 18px;
  line-height: 1;
}

/* =========================
   Forms
   ========================= */

input{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.5);
  font-size:16px;
}
input:focus{
  outline:none;
  border-color:rgba(147,131,96,.65);
}

.form-embed{ margin-top: 18px; }
.form-embed iframe{
  width: 100%;
  height: 820px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
}

/* =========================
   Media (images / video / figure)
   ========================= */

.media{ margin: 18px 0; }

.caption{
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  max-width: 720px;
}

.hero-img{
  margin-top:22px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-img img{
  width:100%;
  display:block;
}

.ritual-video{
  width:100%;
  max-width:420px;
  aspect-ratio: 9 / 16;
  height:auto;
  display:block;
  margin: 18px auto;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.12);
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
  background:#000;
  object-fit:cover;
}

/* =========================
   Footer
   ========================= */

.footer{
  margin-top:22px;
  font-size:13px;
  color:var(--muted);
}
.footer a{
  color:var(--muted);
  border-bottom:1px solid transparent;
}
.footer a:hover{
  color:var(--ink);
  border-bottom:1px solid var(--line);
}

/* =========================
   Carousel (no page-jump)
   ========================= */

.carousel{ margin: 18px 0 6px; }

.carousel__stage{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  max-width:520px;
  margin:0 auto;
  height:340px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.12);
}

.carousel__stage img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

.carousel__controls{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:10px;
}

.carousel__btn{
  border:1px solid rgba(0,0,0,0.12);
  background:rgba(255,255,255,0.35);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font:inherit;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.carousel__btn:hover{
  background: rgba(70, 98, 78, 0.10);
  border-color: rgba(70, 98, 78, 0.30);
  transform: translateY(-1px);
}

/* =========================
   HOME: Apple-style scrolly hero (FIXED)
   ========================= */

/* The hero section only needs to provide “intro space”, NOT reserve 100vh above content */
body.home .scrolly-hero{
  position: relative;
  min-height: 92vh;   /* visible hero, but no blank “first screen” */
}

/* IMPORTANT FIX:
   make the media FIXED (not sticky) so it doesn't push content down */
body.home .scrolly-hero__media{
  position: fixed;
  inset: 0;
  height: 100vh;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Image fill */
body.home .scrolly-hero__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  object-position: center 55%;
}

/* Wash overlay for legibility */
body.home .scrolly-hero__wash{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(230,218,200,.78) 0%,
    rgba(230,218,200,.54) 45%,
    rgba(230,218,200,.90) 100%
  );
}

/* Content sits above the fixed media */
body.home .scrolly-hero__content{
  position: relative;
  z-index: 2;
  padding-top: 18px;
  padding-bottom: 12px;
}

/* =========================
   Scroll hint (chevron)
   ========================= */

.scroll-hint{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  opacity: 0.6;
  pointer-events: none;
}

/* Chevron shape */
.scroll-hint::before,
.scroll-hint::after{
  content:"";
  position:absolute;
  width:14px;
  height:2px;
  background: var(--ink);
  top: 10px;
}

.scroll-hint::before{
  left: 0;
  transform: rotate(45deg);
}

.scroll-hint::after{
  right: 0;
  transform: rotate(-45deg);
}

/* Gentle downward drift */
.scroll-hint{
  animation: chevron-float 2.2s ease-in-out infinite;
}

@keyframes chevron-float{
  0%{
    transform: translate(-50%, 0);
    opacity: 0.35;
  }
  50%{
    transform: translate(-50%, 8px);
    opacity: 0.65;
  }
  100%{
    transform: translate(-50%, 0);
    opacity: 0.35;
  }
}

/* Slightly subtler on mobile */
@media (max-width: 560px){
  .scroll-hint{
    bottom: 14px;
    opacity: 0.45;
  }
}

/* Runway still exists, but smaller — it just gives that “slow image” feel */
body.home .scrolly-hero__runway{
  height: 70vh;
}

/* =========================
   Responsive
   ========================= */

@media (max-width:820px){
  .grid{ grid-template-columns:1fr; }
  h1{ font-size:42px; }
}

@media (max-width:560px){
  .header{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  .brand img{ width:120px; }
  h1{ font-size:36px; }

  .ritual-video{
    max-width:100%;
    border-radius:12px;
  }

  /* Mobile hero: reduce visible hero height so it never looks like a blank page */
  body.home .scrolly-hero{
    min-height: 78svh;
  }

  body.home .scrolly-hero__media img{
    object-position: center 55%;
  }

  body.home .scrolly-hero__runway{
    height: 50svh;
  }


}
/* =========================
   HOME: pull content up closer to the H1
   (fixes the big gap reliably)
   ========================= */

body.home .scrolly-hero + .wrap{
  margin-top: -95px;   /* increase/decrease this */
}

/* mobile: don’t pull as aggressively */
@media (max-width: 560px){
  body.home .scrolly-hero + .wrap{
    margin-top: -48px;
  }
}

