/* Byron Health Studio — night & cream letterpress system */
:root {
  --paper: #F7F3EA;
  --paper-2: #EFEAE0;
  --night: #322E29;
  --night-2: #2B2723;
  --ink: #3A3532;
  --ink-soft: #625B55;
  --gold: #B08D57;
  --gold-bright: #C9A96E;
  --tan: #8B6A50;
  --cream-type: #F1EBDD;
  --font-display: 'Gilda Display', serif;
  --font-body: 'PT Serif', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ── type ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem); }

.kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--tan);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.kicker::before {
  content: "";
  width: 2.4rem; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.on-night .kicker { color: var(--gold-bright); }

.lede { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.65; }

a { color: inherit; }

/* ── header ── */
.site-header {
  background: var(--night);
  color: var(--cream-type);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(176, 141, 87, 0.25);
}
.site-header .bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}
.brand svg { flex: none; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-type);
  opacity: 0.75;
  transition: opacity 0.3s;
  padding: 0.4rem 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--gold); }

.btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: transparent;
  transition: background 0.35s, color 0.35s;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn:hover { background: var(--gold); color: var(--night); }
.btn.solid { background: var(--gold); color: var(--night); }
.btn.solid:hover { background: var(--gold-bright); }
.btn.on-paper { color: var(--tan); border-color: var(--tan); }
.btn.on-paper:hover { background: var(--tan); color: var(--paper); }

/* mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--cream-type); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--night-2);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(176, 141, 87, 0.25);
  }
  .site-nav.open { display: flex; }
}

/* ── hero: widescreen photo, espresso wash, approved lockup screened over the top ── */
.hero {
  background: var(--night);
  color: var(--cream-type);
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.85);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(43, 39, 35, 0.82) 0%, rgba(43, 39, 35, 0.68) 45%, rgba(43, 39, 35, 0.88) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-logo {
  width: min(460px, 78vw);
  height: auto;
  mix-blend-mode: screen; /* espresso ground drops out; gold + cream letterpress float on the photo */
  -webkit-mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 52%, transparent 76%);
  mask-image: radial-gradient(ellipse 68% 66% at 50% 50%, #000 52%, transparent 76%);
}
.hero .tagline {
  margin-top: 1.6rem;
  font-style: italic;
  color: rgba(241, 235, 221, 0.9);
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
}
.hero .actions { margin-top: 2.4rem; display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }

/* ── sections ── */
.section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.night-band { background: var(--night); color: var(--cream-type); }
.paper-2 { background: var(--paper-2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split.wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 820px) { .split, .split.wide-text { grid-template-columns: 1fr; } }

.photo-frame { position: relative; }
.photo-frame img { width: 100%; height: auto; }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.photo-frame.flip::after { inset: 14px -14px -14px 14px; }

.stack-40 > * + * { margin-top: 1.1rem; }
.stack-40 h2 { margin-top: 1.4rem; }

/* stillpoint list */
.stillpoint-list { list-style: none; columns: 2; column-gap: 3.5rem; }
.stillpoint-list li {
  break-inside: avoid;
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
}
.stillpoint-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 9px; height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.stillpoint-list li::after {
  content: "";
  position: absolute;
  left: 3.5px; top: calc(1.05rem + 3.5px);
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
@media (max-width: 640px) { .stillpoint-list { columns: 1; } }

/* exhale divider */
.exhale {
  display: block;
  margin: 0 auto;
  width: min(520px, 70vw);
  height: auto;
  opacity: 0.9;
}
.divider-strip { padding: clamp(2.5rem, 5vw, 4rem) 1rem; text-align: center; }

/* testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 3.5rem;
}
@media (max-width: 720px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial { border-top: 1px solid rgba(176, 141, 87, 0.4); padding-top: 1.8rem; }
.testimonial blockquote {
  font-style: italic;
  color: rgba(241, 235, 221, 0.88);
  font-size: 1.02rem;
}
.testimonial cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* quals */
.quals { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.2rem 3rem; margin-top: 3rem; }
.qual h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: 0.5rem; }
.qual p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
.qual { border-top: 1px solid var(--gold); padding-top: 1.4rem; }

/* footer */
.site-footer {
  background: var(--night);
  color: rgba(241, 235, 221, 0.75);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) 2.5rem;
  text-align: center;
}
.site-footer .spine-mini { margin: 0 auto 2rem; display: block; height: 90px; width: auto; }
.site-footer .foot-brand {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-type);
  font-size: 1.05rem;
}
.site-footer p { font-size: 0.92rem; margin-top: 0.9rem; }
.site-footer a { color: var(--gold-bright); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .fine {
  margin-top: 2.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(241, 235, 221, 0.4);
}

/* reveal on scroll — animates only when JS is present (html.js), content visible otherwise */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* page hero (inner pages) */
.page-hero {
  background: var(--night);
  color: var(--cream-type);
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}
.page-hero .section-inner { display: grid; gap: 1.4rem; }
.page-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 4rem); color: var(--cream-type); }
.page-hero .lede { color: rgba(241, 235, 221, 0.85); max-width: 46rem; }

/* contact cards */
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.way { border-top: 1px solid var(--gold); padding-top: 1.5rem; }
.way h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.way p { font-size: 0.95rem; color: var(--ink-soft); }
.way a.link { color: var(--tan); }

/* ── magic pass ── */
/* hero: slow settle on the photo, calmer halo */
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
html.js .hero-photo { animation: heroSettle 9s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero::before {
  background: radial-gradient(ellipse 120% 90% at 50% 42%, rgba(43,39,35,0.62) 0%, rgba(43,39,35,0.86) 62%, rgba(43,39,35,0.94) 100%);
}
.hero-logo {
  -webkit-mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 42%, transparent 72%);
  mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 42%, transparent 72%);
}
html.js .hero-logo { opacity: 0; animation: logoBreathe 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards; }
@keyframes logoBreathe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.js .hero .tagline, html.js .hero .actions { opacity: 0; animation: logoBreathe 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
html.js .hero .tagline { animation-delay: 1.4s; }
html.js .hero .actions { animation-delay: 1.9s; }

/* lines that draw themselves */
html.js .draw-line path { transition: stroke-dashoffset 2.6s cubic-bezier(0.33, 1, 0.68, 1); }
html.js .draw-line.drawn path { stroke-dashoffset: 0 !important; }

/* staggered cascade for lists, testimonials, quals */
html.js .stillpoint-list.reveal li,
html.js .testimonials .testimonial,
html.js .quals .qual {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js .stillpoint-list.reveal.in li,
html.js .reveal.in .testimonial,
html.js .reveal.in .qual,
html.js .testimonial.in,
html.js .qual.in { opacity: 1; transform: none; }

/* photo frames: keyline breathes in */
html.js .photo-frame::after { transition: inset 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s; }
html.js .photo-frame.reveal:not(.in)::after { inset: 0; }

/* button: gold sweep */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn:hover { background: transparent; }
.btn:hover::before { transform: scaleX(1); }
.btn.on-paper::before { background: var(--tan); }
.btn.solid::before { background: var(--gold-bright); transform: scaleX(1); transform-origin: right; }
.btn.solid { background: var(--gold); }
.btn.solid::before { transform: scaleX(0); }
.btn.solid:hover::before { transform: scaleX(1); }

/* interstitial: come home to yourself */
.interstitial {
  background: var(--night-2);
  color: var(--cream-type);
  text-align: center;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}
.interstitial .line { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem); font-style: italic; color: var(--cream-type); }
.interstitial .exhale { margin-bottom: 2.2rem; }

/* inner page heroes: faint spine watermark */
.page-hero { position: relative; overflow: hidden; }
.page-hero .watermark {
  position: absolute;
  right: clamp(-2rem, 2vw, 4rem);
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  height: 180%;
  opacity: 0.14;
  pointer-events: none;
}
.page-hero .section-inner { position: relative; z-index: 1; }
