/* ============================================================
   Giulia — Somatic Coach
   Greyscale editorial theme (Jenani palette) + Fletcher hero layout.
   Mobile-first. No JavaScript required.

   ┌─ DESIGN TOKENS ───────────────────────────────────────────┐
   │ Everything you'd want to re-theme lives in :root below.    │
   │ Swap the palette here and the whole site follows.          │
   └────────────────────────────────────────────────────────────┘
   ============================================================ */
:root {
  /* — Palette (greyscale, from the Jenani demo) — */
  --bg: #eaeaea;          /* page background — soft neutral grey (Jenani look) */
  --bg-sink: #e3e3e3;     /* subtle alternate band          */
  --ink: #0b0b0b;         /* primary text — near-black      */
  --ink-soft: #6f6f6f;    /* labels / secondary text        */
  --line: #dcdcdc;        /* hairline borders               */
  --dark: #1c1c1c;        /* dark surfaces (hero fallback)  */
  --on-dark: #fafafa;     /* text / type over dark + video  */
  --wordmark: #d4e0e0;    /* "Giulia" hero mark — exact Fletcher title sage */

  /* — Type — */
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-wordmark: "Unna", "Instrument Serif", Georgia, serif;  /* the "Giulia" brand mark — Fletcher's title font */

  /* Fluid type scale — clamp(min, preferred, max) keeps it responsive
     without a pile of breakpoints. */
  --fs-wordmark: clamp(4rem, 19vw, 13.5rem);  /* giant hero name (≈ Fletcher) */
  --fs-display:  clamp(2.5rem, 7vw, 6rem);    /* the big pillars triad  */
  --fs-statement: clamp(1.9rem, 4.6vw, 3.9rem); /* section statements   */
  --fs-offering: clamp(1.7rem, 3.6vw, 2.9rem); /* offering titles       */
  --fs-body: 1.0625rem;                        /* 17px                  */
  --fs-small: 0.9375rem;                       /* 15px                  */
  --fs-eyebrow: 0.8125rem;                     /* 13px labels           */

  /* — Spacing & layout — */
  --gutter: clamp(1.25rem, 5vw, 5rem);         /* page side padding     */
  --section-y: clamp(4rem, 9vw, 8.5rem);       /* vertical section pad  */
  --maxw: 84rem;                               /* content max width     */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* Section anchors land below any future sticky header */
[id] { scroll-margin-top: 2rem; }

::selection { background: var(--ink); color: var(--bg); }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-small);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Shared type helpers ──────────────────────────────────── */
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.statement {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-statement);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.prose p { max-width: 42ch; }
.prose p + p { margin-top: 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 0.18em; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid currentColor;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
/* Pill — used in the hero nav */
.btn--pill {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
}
.btn--pill:hover { background: var(--on-dark); color: var(--dark); }

/* Oval outline — the Jenani CTA button */
.btn--oval {
  padding: clamp(1.4rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 100%;
  color: var(--ink);
}
.btn--oval:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   HERO  (Fletcher layout, greyscale)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;            /* fills the screen, mobile-safe */
  display: flex;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }

/* Moody greyscale gradient — visible until a real video is added */
.hero__media,
.hero__video {
  background:
    radial-gradient(120% 90% at 70% 20%, #3a3a3a 0%, transparent 55%),
    linear-gradient(160deg, #2b2b2b 0%, #161616 55%, #0c0c0c 100%);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrim keeps light type legible over any video/photo */
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.12) 30%,
    rgba(0, 0, 0, 0.18) 65%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
  /* tight margins to match Fletcher (logo sits ~35px in, ~47px down) */
  padding: clamp(1.5rem, 4.4vh, 2.6rem) clamp(1.25rem, 2vw, 2.2rem);
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: var(--fs-wordmark);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--wordmark);   /* exact Fletcher sage */
}

.hero__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  flex: none;
}
.icon-link {
  display: inline-flex;
  padding: 0.4rem;
  opacity: 0.9;
  transition: opacity 0.2s var(--ease);
}
.icon-link:hover { opacity: 1; }

/* Bottom band: tagline + meta. Mobile = stacked (tagline on top). */
.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  font-size: var(--fs-small);
  color: rgba(250, 250, 250, 0.82);
}
.hero__meta a { text-decoration: underline; text-underline-offset: 0.18em; }

/* ============================================================
   JENANI HERO  —  giant heading + full-bleed photo with a circular cutout
   ============================================================ */
.jhero { padding-top: clamp(2.5rem, 7vw, 6rem); }
.jhero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 11.7vw, 13rem);   /* match Jenani's ~11.7vw */
  line-height: 0.9;
  letter-spacing: -0.03em;
  /* flush-left near the edge (Jenani sits ~40px in), not centred */
  margin: 0 0 clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: clamp(1.25rem, 2.6vw, 2.5rem);
}
.jhero__media {
  position: relative;
  width: 100%;
  height: clamp(28rem, 72vh, 46rem);
  overflow: hidden;
  background: var(--bg);
}
.jhero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the circular "porthole" of page colour punched into the photo */
.jhero__lens {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(72vw, 40rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  z-index: 1;
}
/* the three words sit INSIDE the circle, centred as a group (Jenani) */
.jhero__words {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(35rem, 62vw);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 1rem;            /* 16px, like Jenani */
  letter-spacing: 0;
  color: var(--ink);
}
.jhero__amp { font-family: var(--font-sans); }

/* ============================================================
   SECTIONS (Jenani flow)
   ============================================================ */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.section--about { border-top: 0; }

/* — About — */
.section--about .statement { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.about__body { display: grid; gap: 1.25rem; }
.about__body p { max-width: 52ch; }

/* — Offerings (Jenani "My services": right-aligned column, bold name + description) — */
.offerings { margin-left: auto; max-width: 30rem; }
.offerings__label {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.offerings__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}
.offering__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.offering__desc { max-width: 44ch; }

/* — Marquee — */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 9.5vw, 10.5rem);   /* matches Jenani's ~9.5vw */
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee__dot { color: var(--ink-soft); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* track content is duplicated */
}

/* — Triangle image band (Jenani's 2nd image band) — */
.tband {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;       /* the triangle defines the band height */
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background: var(--bg);
}
.tband__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* bg-coloured upward triangle punched into the photo (the circle hero's sibling) */
.tband__shape {
  position: relative;
  width: min(78vw, 40rem);
  aspect-ratio: 1 / 1.05;    /* consistent triangle on every screen — no spire */
  background: var(--bg);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.tband__words {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 24%;               /* lower portion of the triangle, where it's wide */
  transform: translateX(-50%);
  width: min(20rem, 58vw);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
}
.tband__amp { font-family: var(--font-sans); }

/* — Approach — */
.section--approach .statement { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tags {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.tags li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
}

/* — Pillars — */
.pillars {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.0;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.pillars em { font-style: italic; }

/* — FAQ — */
.faq__head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.faq__aside { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-family: var(--font-serif); }
.faq__aside a { text-decoration: underline; text-underline-offset: 0.18em; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2rem 1.4rem 0;
  position: relative;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-family: var(--font-serif);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--ink-soft);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  padding: 0 0 1.6rem;
  max-width: 60ch;
  color: var(--ink-soft);
}

/* — CTA — */
.section--cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.statement--center { max-width: 16ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--section-y) var(--gutter) clamp(2rem, 4vw, 3rem);
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.footer__wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  display: block;
}
.footer__tag { color: var(--ink-soft); margin-top: 0.75rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; }
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__label { font-size: var(--fs-eyebrow); color: var(--ink-soft); margin-bottom: 0.4rem; }
.footer__col a { width: fit-content; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.footer__top:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE  —  tablet & up
   ============================================================ */
@media (min-width: 48em) {
  .statement { text-align: justify; text-justify: inter-word; }
  .statement--center { text-align: center; }

  /* Hero bottom → contact left, tagline right (Fletcher) */
  .hero__bottom {
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
  .hero__tagline { text-align: right; }
  .hero__meta { flex-direction: column; gap: 0.35rem; }

  .about__body {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .tags { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); }
  .tags li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }

  .faq__head { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }

  .footer { grid-template-columns: 1fr 1fr; }
  .footer__base { grid-column: 1 / -1; }
}

@media (min-width: 64em) {
  .tags { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   MOTION
   ============================================================ */
/* One orchestrated page-load reveal — the high-impact moment. */
@media (prefers-reduced-motion: no-preference) {
  .wordmark      { animation: rise 1s var(--ease) 0.05s both; }
  .hero__nav     { animation: rise 1s var(--ease) 0.18s both; }
  .hero__tagline { animation: rise 1s var(--ease) 0.28s both; }
  .hero__meta    { animation: rise 1s var(--ease) 0.38s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
