/* ============================================================
   Stillpoint - warm, earthy, quiet-luxury wellness
   Built to an award-craft bar: cinematic full-bleed hero with a
   paper card, vertical side tab, asymmetric editorial layouts,
   staggered feature cards, organic curve dividers, botanical
   accents, generous breathing room.
   Type: Fraunces (display serif) + Hanken Grotesk (body)
   ============================================================ */

:root {
  --cream:    #f4eee4;
  --cream-2:  #ece3d4;
  --sand:     #e3d6c2;
  --taupe:    #b9a890;
  --clay:     #3a3027;
  --clay-2:   #5b4f42;
  --sage:     #7d8a6f;
  --sage-deep:#5f6b53;
  --sage-mist:#e6e7da;
  --terra:    #b9663f;
  --terra-soft:#cf7a52;
  --line:     #d8cab2;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 72px);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --r: 16px;
  --shadow: 0 34px 70px -40px rgba(58, 48, 39, 0.55);
  --shadow-soft: 0 20px 44px -30px rgba(58, 48, 39, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--clay);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.07; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.4rem; }
em { font-style: italic; color: var(--terra); }

.eyebrow {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--sage-deep);
}
.eyebrow.light { color: var(--sand); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.link-underline {
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--clay);
  padding-bottom: 4px; border-bottom: 1px solid var(--terra); width: fit-content;
  transition: color .3s, letter-spacing .3s;
}
.link-underline:hover { color: var(--terra); letter-spacing: 0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 500; font-size: 0.98rem;
  padding: 0.95em 1.8em; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; touch-action: manipulation;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, color .35s, box-shadow .35s;
}
.btn-solid { background: var(--clay); color: var(--cream); }
.btn-solid:hover { background: var(--terra); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-solid span { transition: transform .3s; }
.btn-solid:hover span { transform: translateX(4px); }
.btn-lg { font-size: 1.05rem; padding: 1.1em 2.3em; }

a:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--terra); outline-offset: 4px; border-radius: 8px;
}
.join-form input:focus-visible { outline-offset: 1px; }

/* ---------- floating top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.4rem var(--gutter);
  transition: background .45s, padding .45s, box-shadow .45s;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px); padding: 0.85rem var(--gutter);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--cream); transition: color .45s; }
.topbar.scrolled .brand { color: var(--clay); }
.brand-name { font-family: var(--serif); font-size: 1.55rem; letter-spacing: 0.01em; }
.brand-mark {
  width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 35%, var(--terra-soft), var(--terra) 55%, var(--sage-deep));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--cream) 80%, transparent);
}
.topnav { display: flex; gap: 2rem; font-size: 0.95rem; color: var(--cream); transition: color .45s; }
.topbar.scrolled .topnav { color: var(--clay-2); }
.topnav a { position: relative; opacity: 0.92; }
.topnav a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0; background: currentColor; transition: width .35s; }
.topnav a:hover::after { width: 100%; }
.topcta {
  font-family: var(--sans); font-weight: 500; font-size: 0.92rem; white-space: nowrap;
  color: var(--cream); border: 1px solid rgba(244,238,228,0.6);
  padding: 0.6em 1.25em; border-radius: 100px; transition: all .4s;
}
.topbar.scrolled .topcta { color: var(--clay); border-color: var(--clay); }
.topcta:hover { background: var(--terra); border-color: var(--terra); color: var(--cream); }

/* ---------- vertical side tab ---------- */
.sidetab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  background: var(--terra); color: var(--cream);
  padding: 1.4rem 0.55rem 1rem; border-radius: 10px 0 0 10px;
  box-shadow: var(--shadow-soft); transition: background .35s, padding .35s;
}
.sidetab span { writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.sidetab svg { width: 16px; height: 16px; }
.sidetab:hover { background: var(--clay); padding-bottom: 1.3rem; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 6rem var(--gutter); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(58,48,39,0.34), rgba(58,48,39,0.05) 55%, transparent),
              linear-gradient(0deg, rgba(58,48,39,0.28), transparent 45%),
              linear-gradient(180deg, rgba(58,48,39,0.32), transparent 16%); }
.hero-card {
  position: relative; z-index: 2; max-width: 560px;
  background: color-mix(in srgb, var(--cream) 93%, transparent);
  backdrop-filter: blur(3px);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r); padding: clamp(2rem, 4vw, 3.2rem);
  box-shadow: var(--shadow);
}
.hero-card h1 { margin: 1rem 0 1.2rem; }
.hero-sub { color: var(--clay-2); font-size: 1.08rem; max-width: 44ch; margin-bottom: 1.8rem; }
.hero-proof { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.5rem; font-size: 0.92rem; color: var(--clay-2); }
.hero-proof strong { color: var(--clay); }
.stars { color: var(--terra); letter-spacing: 0.1em; font-size: 0.85rem; }
.scrollcue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid color-mix(in srgb, var(--cream) 75%, transparent); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px; }
.scrollcue span { width: 3px; height: 8px; border-radius: 2px; background: var(--cream); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%,100%{opacity:.3;transform:translateY(0)} 50%{opacity:1;transform:translateY(7px)} }

/* ---------- trust ---------- */
.trust { display: flex; align-items: center; gap: clamp(1rem, 4vw, 3rem); flex-wrap: wrap; justify-content: center;
  padding: 2rem var(--gutter); border-bottom: 1px solid var(--line); background: var(--cream-2); }
.trust-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); }
.trust-logos { list-style: none; display: flex; gap: clamp(1.2rem, 4vw, 3rem); flex-wrap: wrap; justify-content: center; }
.trust-logos li { font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--clay-2); opacity: 0.7; }

/* ---------- generic section ---------- */
section { padding: clamp(5rem, 10vw, 9rem) var(--gutter); }
section[id] { scroll-margin-top: 90px; }

/* ---------- mission (asymmetric) ---------- */
.mission { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 0.92fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.mission-media { position: relative; }
.mission-media img { border-radius: var(--r); box-shadow: var(--shadow); }
.mission-tagline { position: absolute; left: -1.2rem; bottom: 2.2rem;
  background: var(--clay); color: var(--cream); font-family: var(--serif); font-size: 1.05rem;
  padding: 0.7rem 1.4rem; border-radius: 100px; box-shadow: var(--shadow-soft); }
.mission-copy { position: relative; }
.mission-copy .sprig { position: absolute; top: -3.2rem; right: 0; width: 120px; color: var(--sage); opacity: 0.75; }
.mission-copy h2 { margin: 0.9rem 0 1.3rem; }
.mission-copy p { color: var(--clay-2); margin-bottom: 1.1rem; max-width: 50ch; }
.mission-copy .link-underline { margin-top: 0.6rem; }

/* ---------- how (staggered cards) ---------- */
.how { max-width: var(--maxw); margin-inline: auto; }
.how-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.how-head h2 { margin-top: 0.9rem; max-width: 18ch; }
.how-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.hcard { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1rem 1.8rem;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.hcard:nth-child(1) { margin-top: 2.4rem; }
.hcard:nth-child(3) { margin-top: 4.2rem; }
.hcard-raised { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.hcard-raised p { color: var(--sand); }
.hcard-raised .hcard-k { color: var(--terra-soft); }
.hcard-raised .hcard-arrow { color: var(--terra-soft); }
.hcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.hcard-media { aspect-ratio: 4/3; border-radius: 10px; margin-bottom: 1.4rem; }
.media-a { background: linear-gradient(150deg, var(--sand), var(--taupe)); }
.media-b { background: linear-gradient(150deg, var(--terra-soft), var(--terra)); }
.media-c { background: linear-gradient(150deg, var(--sage), var(--sage-deep)); }
.hcard-k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage-deep); padding: 0 0.6rem; }
.hcard h3 { margin: 0.7rem 0 0.6rem; padding: 0 0.6rem; }
.hcard p { font-size: 0.96rem; color: var(--clay-2); padding: 0 0.6rem; }
.hcard-arrow { display: inline-block; margin: 1rem 0 0 0.6rem; color: var(--terra); transition: transform .3s; }
.hcard:hover .hcard-arrow { transform: translateX(6px); }

/* ---------- feature (organic curve) ---------- */
.feature { position: relative; padding: clamp(6rem, 12vw, 11rem) var(--gutter); overflow: hidden; }
.feature .curve { position: absolute; inset: 0; z-index: 0; background: var(--sage-mist);
  border-radius: 0 0 50% 50% / 0 0 14% 14%; transform: scaleX(1.4); }
.feature-inner { position: relative; z-index: 1; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.feature-media { transform: translateY(0); }
.feature-media img { border-radius: var(--r); box-shadow: var(--shadow); }
.feature-copy h2 { margin: 0.7rem 0 1rem; font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.feature-sub { color: var(--clay-2); margin-bottom: 1.7rem; max-width: 42ch; }
.ticks { list-style: none; margin-bottom: 2.1rem; display: grid; gap: 0.85rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--clay-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--terra); box-shadow: 0 0 0 4px color-mix(in srgb, var(--terra) 18%, transparent); }

/* ---------- proof ---------- */
.proof { max-width: var(--maxw); margin-inline: auto; text-align: center; }
.proof-h { margin: 0.8rem auto 0; max-width: 18ch; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin: 3.4rem 0; text-align: left; }
.quote { padding: 2.3rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 1.4rem; }
.quote:nth-child(2) { transform: translateY(-1.4rem); }
.quote blockquote { font-family: var(--serif); font-size: 1.16rem; line-height: 1.46; color: var(--clay); }
.quote figcaption { display: flex; flex-direction: column; }
.who { font-weight: 600; }
.role { font-size: 0.86rem; color: var(--taupe); }
.stat-row { display: flex; justify-content: center; gap: clamp(2rem, 7vw, 6rem); flex-wrap: wrap; padding-top: 2.6rem; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-n { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--terra); line-height: 1; }
.stat-l { font-size: 0.9rem; color: var(--clay-2); max-width: 16ch; margin-inline: auto; }

/* ---------- shop ---------- */
.shop { max-width: var(--maxw); margin-inline: auto; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.shop-head h2 { margin-top: 0.7rem; max-width: 18ch; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1rem 1.5rem;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-thumb { aspect-ratio: 4/3; border-radius: 10px; margin-bottom: 1.2rem; }
.thumb-a { background: linear-gradient(150deg, var(--sand), var(--taupe)); }
.thumb-b { background: linear-gradient(150deg, var(--sage), var(--sage-deep)); }
.thumb-c { background: linear-gradient(150deg, var(--terra-soft), var(--terra)); }
.product-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0 0.5rem; gap: 0.6rem; }
.product h3 { font-size: 1.18rem; }
.price { font-family: var(--serif); font-size: 1.25rem; color: var(--clay); }
.product p { font-size: 0.92rem; color: var(--clay-2); padding: 0.4rem 0.5rem 0; }

/* ---------- join ---------- */
.join { background: var(--clay); color: var(--cream); }
.join-inner { max-width: 640px; margin-inline: auto; text-align: center; }
.join h2 { color: var(--cream); margin: 0.8rem auto 1rem; max-width: 16ch; }
.join-sub { color: var(--sand); max-width: 46ch; margin: 0 auto 2rem; }
.join-form { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto 1rem; }
.join-form input { flex: 1; padding: 0.95em 1.2em; border-radius: 100px; border: 1px solid var(--clay-2);
  background: color-mix(in srgb, var(--cream) 8%, var(--clay)); color: var(--cream); font-family: var(--sans); font-size: 1rem; }
.join-form input::placeholder { color: var(--taupe); }
.join-form .btn-solid { background: var(--terra); white-space: nowrap; }
.join-form .btn-solid:hover { background: var(--terra-soft); }
.join-fine { font-size: 0.85rem; color: var(--taupe); }

/* ---------- faq ---------- */
.faq { max-width: var(--maxw); margin-inline: auto; }
.faq .proof-h { margin: 0.8rem auto 2.8rem; }
.faq-list { max-width: 780px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--serif); font-size: 1.28rem; padding: 1.25rem 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.7rem; color: var(--terra); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; color: var(--clay-2); max-width: 64ch; }

/* ---------- final ---------- */
.final { background: var(--cream-2); }
.final-inner { max-width: 720px; margin-inline: auto; text-align: center; }
.final-inner h2 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin-bottom: 2rem; max-width: 20ch; margin-inline: auto; }
.final-fine { margin-top: 1.2rem; font-size: 0.9rem; color: var(--taupe); }

/* ---------- footer ---------- */
.foot { background: var(--clay); color: var(--sand); padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) 2rem; }
.foot-top { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--clay-2); }
.foot-brand .brand { color: var(--cream); }
.foot-brand .brand-name { font-size: 1.65rem; }
.foot-brand .brand-mark { box-shadow: inset 0 0 0 3px var(--clay); }
.foot-brand p { margin-top: 0.9rem; font-size: 0.95rem; color: var(--taupe); max-width: 28ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.foot-cols h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1rem; font-weight: 600; }
.foot-cols a { display: block; font-size: 0.95rem; color: var(--sand); padding: 0.3rem 0; }
.foot-cols a:hover { color: var(--cream); }
.foot-bottom { max-width: var(--maxw); margin: 1.8rem auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: var(--taupe); }
.foot-legal a:hover { color: var(--cream); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(20px); animation: rise 1s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
[data-io] { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
[data-io].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, [data-io] { opacity: 1 !important; transform: none !important; }
  .scrollcue span { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .topnav { display: none; }
  .mission, .feature-inner { grid-template-columns: 1fr; }
  .mission-media { order: 2; max-width: 460px; }
  .feature-media { order: 2; max-width: 420px; margin-inline: auto; }
  .how-cards, .testimonials, .shop-grid { grid-template-columns: 1fr; }
  .hcard:nth-child(1), .hcard:nth-child(3) { margin-top: 0; }
  .quote:nth-child(2) { transform: none; }
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .feature .curve { border-radius: 0 0 40% 40% / 0 0 6% 6%; }
  .sidetab { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .join-form { flex-direction: column; }
  .join-form input, .join-form .btn { width: 100%; justify-content: center; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .mission-tagline { left: 0; }
  .topcta { display: none; }
}
