/* ============================================================
   Ten Thousand Streams — site styles
   Palette + type tokens live in :root. Layout is fluid (clamp)
   with a couple of breakpoints where grids need to collapse.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:          #10141f;   /* page ground (deep indigo) */
  --bg-band:     #131828;   /* alternating section band */
  --bg-card:     #191e2e;   /* card resting */
  --bg-card-hi:  #1c2233;   /* card hover */
  --bg-footer:   #0d111b;

  /* Ink */
  --cream:       #e9e4d4;   /* base body cream */
  --cream-hi:    #f0ecdd;   /* headings */
  --cream-max:   #f4f1e8;   /* hero display */
  --muted:       #b7bcce;   /* secondary text */
  --dim:         #8d94ad;   /* tertiary / captions */
  --dimmer:      #6b708a;   /* footer */

  /* Water */
  --blue:        #5a9fd4;   /* accent / river */
  --blue-hi:     #7fbce6;   /* links, italic display */
  --on-blue:     #0a0d15;   /* text on a blue button */

  /* Lines */
  --hair:        rgba(233, 228, 212, 0.08);
  --hair-strong: rgba(233, 228, 212, 0.12);
  --accent-rule: rgba(90, 159, 212, 0.40);

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1200px;
  --header-h: 80px;   /* sticky header height; the hero fills the rest */
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }

a { color: var(--blue-hi); text-decoration: none; }
a:hover { color: var(--blue); }

:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 40px; padding-right: 40px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 22px;
}

.display { font-family: var(--serif); font-weight: 300; line-height: 1.12; color: var(--cream-hi); }
.display .italic { font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 600;
  border-radius: 9px;
  padding: 15px 30px;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  color: var(--on-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(90, 159, 212, 0.28);
}
.btn--sm { padding: 10px 20px; font-size: 14.5px; border-radius: 8px; }
.btn--lg { padding: 17px 36px; font-size: 16px; border-radius: 10px; }

/* animated underline (nav links + text CTAs) */
.ul-link { position: relative; color: var(--cream); }
.ul-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.ul-link:hover::after { transform: scaleX(1); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(16, 20, 31, 0.72);
  border-bottom: 1px solid var(--hair);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand__mark { width: 40px; height: auto; }
.brand__name { font-family: var(--serif); font-size: 20px; color: var(--cream-hi); }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; }
.nav__links a { color: var(--muted); }
.nav__links a.btn { color: var(--on-blue); }
.nav__toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  /* Fill the viewport below the header so the next section sits at the fold.
     svh (small viewport height) avoids the mobile URL-bar overflow that plain
     vh causes; the vh line is the fallback for browsers without svh. */
  min-height: max(560px, calc(100vh - var(--header-h)));
  min-height: max(560px, calc(100svh - var(--header-h)));
  scroll-margin-top: 80px;
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at center,
              rgba(16, 20, 31, 0.28) 0%, rgba(16, 20, 31, 0.85) 74%);
}
.hero__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
  /* extra bottom padding lifts the centered block, opening room above "More below" */
  padding-bottom: 96px;
}
.hero__logo { width: 96px; height: auto; margin-bottom: 34px; animation: ttsFloat 7s ease-in-out infinite; }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 8.5vw, 68px); line-height: 1.06;
  color: var(--cream-max); text-shadow: 0 2px 34px rgba(0, 0, 0, 0.5);
}
.hero__title .italic { font-style: italic; color: var(--blue-hi); display: block; }
.hero__lede { font-size: 17px; line-height: 1.7; color: #cfd3e0; max-width: 48ch; margin: 20px 0 34px; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hero__note { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); margin: 18px 0 0; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero__scroll svg { animation: ttsScrollCue 2s ease-in-out infinite; }

/* ============================================================
   Generic sections
   ============================================================ */
.section { border-top: 1px solid var(--hair); scroll-margin-top: 80px; }
.section--band { background: var(--bg-band); }
.section__inner { padding-top: 100px; padding-bottom: 100px; }
.section__inner--narrow { max-width: 1000px; }
.section__inner--mid { max-width: 1100px; }
.section__inner--tight { max-width: 860px; }
.section__head { font-size: clamp(30px, 5.5vw, 46px); }
.section__lede { font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 62ch; margin: 30px 0 0; }

/* Approach — three principle columns */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.principle { border-top: 1px solid var(--accent-rule); padding-top: 20px; }
.principle__title { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--cream-hi); margin: 0 0 8px; }
.principle p { font-size: 14.5px; line-height: 1.7; color: var(--dim); margin: 0; }

/* Who I help — card grid */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--hair);
  border-radius: 16px; padding: 30px 34px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(90, 159, 212, 0.45); background: var(--bg-card-hi); }
.card__title { font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--cream-hi); margin: 0 0 12px; }
.card p { font-size: 15px; line-height: 1.75; color: var(--dim); margin: 0; }

/* Closing scheduling note, sits below the cards */
.who__note { font-size: 14px; line-height: 1.8; color: var(--dim); max-width: 80ch; margin: 44px auto 0; text-align: center; }

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start;
}
.about__portrait {
  position: relative; width: 320px; height: 400px;
  border-radius: 18px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--hair);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* Credentials — a tinted panel with a river-blue rule so it reads as a
   distinct credential block rather than another body paragraph. */
.about__creds {
  list-style: none; margin: 30px 0 0; padding: 18px 22px;
  border-left: 2px solid var(--blue);
  background: rgba(90, 159, 212, 0.07);
  border-radius: 0 10px 10px 0;
}
.about__creds li {
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5;
}
.about__creds li + li { margin-top: 8px; }

.about__training { margin-top: 64px; }
.about__training .principles { margin-top: 28px; }
/* placeholder shown until a real portrait is dropped in */
.portrait-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--dim); text-align: center; padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(90,159,212,0.10), transparent 60%),
    var(--bg-card);
}
.portrait-placeholder small { font-size: 12px; letter-spacing: 0.04em; }
/* margin made explicit — the UA default (0.83em top) was pushing the heading
   ~33px below the portrait and out of line with the other section headings. */
.about__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 5vw, 40px); line-height: 1.14; color: var(--cream-hi); margin: 0 0 26px; }
/* nudge the photo to sit on the heading's cap height rather than its box top */
.about__portrait { margin-top: 7px; }
.about__title .pronoun { color: var(--dim); font-size: 0.6em; }
/* Scoped to the bio column only — a bare `.about p` also caught the section
   eyebrows and the training pillars and out-specified their own rules. */
.about__bio p { font-size: 16.5px; line-height: 1.8; color: var(--muted); max-width: 52ch; }
.about__bio p + p { margin-top: 18px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--hair-strong); }
.faq details:last-child { border-bottom: 1px solid var(--hair-strong); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-size: 24px; color: var(--cream-hi); }
.faq__mark { flex: none; color: var(--blue); font-size: 26px; line-height: 1; transition: transform 0.28s ease; }
.faq details[open] .faq__mark { transform: rotate(45deg); }
/* max-height cap is generous headroom, not a target: the longest answer is
   ~110px incl. margin, so this never clips while keeping the ease smooth. */
.faq__a { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease; }
.faq details[open] .faq__a { max-height: 400px; opacity: 1; }
.faq__a p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 0 0 24px; }

/* ============================================================
   Contact / CTA
   ============================================================ */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--hair); scroll-margin-top: 80px; }
.cta__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta__veil { position: absolute; inset: 0; background: rgba(16, 20, 31, 0.72); }
.cta__inner { position: relative; max-width: 760px; margin: 0 auto; padding: 110px 40px; text-align: center; }
.cta__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 7vw, 52px); line-height: 1.1; color: var(--cream-max); }
.cta__lede { font-size: 16.5px; line-height: 1.75; color: #cfd3e0; margin: 24px 0 34px; }
.cta__tag { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--dim); margin-top: 30px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--hair); background: var(--bg-footer); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding-top: 40px; padding-bottom: 40px;
  font-size: 13px; color: var(--dimmer);
}
.site-footer__id { display: flex; align-items: center; gap: 12px; }
.site-footer a { color: var(--dimmer); }
.site-footer a:hover { color: var(--blue-hi); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes ttsDrift {
  0%   { transform: translate(-46px, 7px); }
  50%  { transform: translate(46px, -7px); }
  100% { transform: translate(-46px, 7px); }
}
@keyframes ttsShimmer { 0%, 100% { opacity: 0.28; } 50% { opacity: 0.72; } }
@keyframes ttsFloat   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ttsScrollCue {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* Respect users who ask for less motion — freeze the drifting streams. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
  .about__portrait { width: 100%; max-width: 360px; height: 420px; margin-top: 0; }
}

@media (max-width: 720px) {
  .wrap, .cta__inner { padding-left: 22px; padding-right: 22px; }
  .nav { position: relative; }
  .nav__links {
    position: absolute; top: calc(100% + 12px); right: 22px; left: 22px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #141928; border: 1px solid var(--hair); border-radius: 14px;
    padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    display: none;
  }
  .nav__links a { padding: 12px 14px; border-radius: 9px; }
  .nav__links a.btn { text-align: center; margin-top: 4px; }
  .nav__checkbox:checked ~ .nav__links { display: flex; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--hair); color: var(--cream);
  }
  .section__inner { padding-top: 68px; padding-bottom: 68px; }
  .cta__inner { padding-top: 76px; padding-bottom: 76px; }
}

/* ============================================================
   Consult modal
   ============================================================ */
.modal {
  width: min(520px, calc(100vw - 32px));
  padding: 38px 38px 34px;
  border: 1px solid var(--hair-strong);
  border-radius: 18px;
  background: var(--bg-band);
  color: var(--cream);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.modal::backdrop { background: rgba(8, 11, 18, 0.72); backdrop-filter: blur(4px); }

.modal__close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; cursor: pointer;
  color: var(--dim); font-size: 28px; line-height: 1;
  padding: 4px 8px; border-radius: 8px;
}
.modal__close:hover { color: var(--cream-hi); }

.modal__title {
  font-family: var(--serif); font-weight: 300; font-size: 34px;
  line-height: 1.15; color: var(--cream-max); margin: 0;
}
.modal__lede { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 14px 0 26px; }

/* --- form --- */
.cform__row { margin-bottom: 18px; }
.cform label {
  display: block; margin-bottom: 7px;
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted);
}
.cform__req { color: var(--blue); }
.cform__opt { text-transform: none; letter-spacing: 0; color: var(--dimmer); }

.cform input,
.cform textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--sans); font-size: 15px; color: var(--cream-hi);
  background: #0f1421;
  border: 1px solid var(--hair-strong); border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cform textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.cform input::placeholder,
.cform textarea::placeholder { color: #5d6379; }
.cform input:focus,
.cform textarea:focus {
  outline: none; border-color: var(--blue); background: #111726;
}

.cform__submit { width: 100%; margin-top: 8px; border: 0; cursor: pointer; font-family: var(--sans); }
.cform__note { font-size: 12.5px; line-height: 1.6; color: var(--dimmer); text-align: center; margin: 16px 0 0; }

@media (max-width: 520px) {
  .modal { padding: 32px 22px 26px; }
  .modal__title { font-size: 28px; }
}

/* --- secondary "not ready to book?" prompts --- */
.hero__alt, .cta__alt {
  font-size: 14.5px; color: var(--dim); margin: 20px 0 0;
}
.hero__alt a, .cta__alt a { color: var(--blue-hi); }
.cta__alt { margin-top: 22px; }

/* --- modal: embedded third-party form variant --- */
.modal--embed { width: min(680px, calc(100vw - 32px)); padding: 26px 22px 20px; }
/* The embedded Google Form carries its own title + description, so hide the
   modal's — otherwise the heading and blurb read twice. */
.modal--embed .modal__title,
.modal--embed .modal__lede { display: none; }
.modal__embed iframe {
  display: block; width: 100%; border: 0;
  border-radius: 12px; background: #fff;
}
@media (max-width: 520px) {
  .modal--embed { padding: 28px 14px 18px; }
}
