/* Emerge by Halima: sample site styles
   ------------------------------------------------------------
   BRAND SWAP: Emerge has no confirmed colours yet.
   Change --accent (and --accent-ink if needed) to rebrand the
   whole site. Everything else is a neutral, editorial palette.
   ------------------------------------------------------------ */
:root {
  --accent: #8a4b2d;          /* PLACEHOLDER accent colour */
  --accent-ink: #ffffff;      /* text colour on top of the accent */

  --bg: #f6f2ec;
  --surface: #fbf9f6;
  --ink: #191614;
  --muted: #5d554e;
  --line: #ddd5ca;

  --dark: #1b1816;
  --on-dark: #f3eee7;
  --on-dark-muted: rgba(243, 238, 231, 0.68);
  --line-dark: rgba(243, 238, 231, 0.18);

  --ph-bg: #e7e0d6;
  --ph-ink: #7a7068;
  --ph-dark: #2a2522;

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 82rem;
  --measure: 40rem;
  --gutter: 1rem;
  --header-h: 4.25rem;
  --radius: 2px;
}
@media (min-width: 640px) { :root { --gutter: 2rem; } }
@media (min-width: 1100px) { :root { --gutter: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.7rem, 9.5vw, 5.75rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 400; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Motion: hide animated elements only while GSAP is about to reveal them.
   If GSAP fails to load, or the visitor prefers reduced motion, everything shows. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-hero], .js-motion [data-reveal] { visibility: hidden; }
}
.frame { overflow: hidden; position: relative; }
.frame > img, .frame > .ph { will-change: transform; }

/* Sample notice */
.sample-bar { background: #000; color: var(--on-dark-muted); font-size: 0.75rem; line-height: 1.4; padding: 0.45rem 0; position: relative; z-index: 3; }

/* ---------- Header: transparent over the dark hero, solid after scroll ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  color: var(--on-dark); transition: background-color .35s, color .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: var(--bg); color: var(--ink); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }
.wordmark { font-family: var(--font-head); font-size: 1.4rem; font-weight: 400; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark span { font-style: italic; font-weight: 300; opacity: 0.75; }

.nav-toggle {
  font: inherit; font-size: 0.875rem; font-weight: 500; color: inherit; background: none;
  border: 1px solid currentColor; border-radius: var(--radius); padding: 0.45rem 0.9rem; cursor: pointer;
  position: relative; z-index: 2;
}
.site-nav { display: none; }
.nav-links { list-style: none; margin: 0; padding: 0; }

/* Mobile menu: full screen, dark */
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--dark); color: var(--on-dark); border-color: transparent; }
.menu-open .site-nav {
  display: flex; flex-direction: column; justify-content: space-between;
  position: fixed; inset: 0; z-index: -1; background: var(--dark); color: var(--on-dark);
  padding: 8.5rem var(--gutter) 2rem; overflow-y: auto;
}
.menu-open .nav-links a {
  display: block; font-family: var(--font-head); font-weight: 300; font-size: 2.4rem; line-height: 1.15;
  padding: 0.55rem 0; text-decoration: none; border-bottom: 1px solid var(--line-dark);
}
.menu-open .nav-links a[aria-current="page"] { font-style: italic; }
.menu-open .site-nav .btn { margin-top: 2rem; align-self: flex-start; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 2.25rem; }
  .nav-links { display: flex; gap: 1.75rem; }
  .nav-links a { font-size: 0.875rem; text-decoration: none; padding: 0.25rem 0; position: relative; }
  .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.22,1,.36,1); }
  .nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem; font: inherit; font-size: 0.9375rem; font-weight: 500;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 0.85rem 1.25rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .3s, color .3s, border-color .3s;
}
.btn .arrow { display: inline-block; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translate(3px, -3px); }
.btn:hover { filter: brightness(0.92); }
.btn-small { padding: 0.55rem 0.95rem; font-size: 0.875rem; }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); filter: none; }
.on-dark .btn-outline:hover, .site-header:not(.scrolled) .btn-outline:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }
.text-link { display: inline-flex; gap: 0.6rem; align-items: center; font-size: 0.9375rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.15rem; }
.text-link .arrow { display: inline-block; transition: transform .4s cubic-bezier(.22,1,.36,1); }

/* ---------- Dark hero ---------- */
.on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark .muted, .on-dark .lead { color: var(--on-dark-muted); }
.hero {
  margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  min-height: 88svh; display: flex; align-items: flex-end;
}
.hero.short { min-height: 62svh; }
.hero > .wrap { width: 100%; }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 900px) {
  .hero { padding-bottom: 5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; }
}
.eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1.25rem; }
.on-dark .eyebrow { color: var(--on-dark-muted); }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 30rem; }
.hero .lead { margin-top: 1.25rem; }
.hero-cue { display: none; }
@media (min-width: 900px) { .hero-cue { display: inline-flex; } }

/* Portrait: text always leads, the photo is secondary */
.portrait-frame { max-width: 16rem; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transform: scale(1.12); }
@media (min-width: 900px) { .portrait-frame { max-width: 24rem; justify-self: end; width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
@media (min-width: 900px) { .section { padding: 7rem 0; } }
.section.tight { padding-top: 0; }

.label {
  display: block; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-top: 1rem; margin-bottom: 2.5rem; position: relative;
}
.label::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.on-dark .label { color: var(--on-dark-muted); }
.on-dark .label::before { background: var(--line-dark); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 32rem; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }

/* Big statement paragraph (scroll reveals word by word) */
.statement { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.65rem, 4.3vw, 2.9rem); line-height: 1.2; letter-spacing: -0.015em; max-width: 58rem; margin: 0 0 2.5rem; }
.statement-foot { display: grid; gap: 1.5rem; max-width: 26rem; color: var(--muted); font-size: 0.9375rem; }

/* Numbered rows */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem; padding: 1.75rem 0; position: relative; }
.row::before, .num-row::before, .facts > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--rule, 1)); }
.row .num { font-size: 0.8125rem; color: var(--muted); padding-top: 0.45rem; }
.row h3 { margin: 0; }
.row p { grid-column: 2; margin: 0.4rem 0 0; color: var(--muted); }
@media (min-width: 900px) {
  .row { grid-template-columns: 6rem 1fr 1.2fr; gap: 2rem; padding: 2.25rem 0; }
  .row p { grid-column: 3; margin: 0.35rem 0 0; }
}

/* In numbers */
.numbers { display: grid; gap: 2rem; }
@media (min-width: 900px) { .numbers { grid-template-columns: 1fr 2fr; gap: 4rem; } }
.num-row { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; padding: 1.5rem 0; position: relative; }
.num-row dt { font-size: 0.875rem; color: var(--muted); max-width: 18rem; }
.num-row dd { margin: 0; font-family: var(--font-head); font-weight: 300; font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Full bleed image band with text */
.band { position: relative; min-height: 80svh; display: flex; align-items: flex-end; padding: 4rem 0; overflow: hidden; }
.band-media { position: absolute; inset: -12% 0; }
.band-media .ph { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: var(--ph-dark); color: rgba(243,238,231,.45); align-items: center; justify-content: center; padding: 0 var(--gutter) 30%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,15,.85), rgba(20,17,15,.1) 70%); }
.band > .wrap { position: relative; z-index: 1; width: 100%; }
.band-grid { display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.band h2 { margin: 0; }
.band ul { margin: 0; padding-left: 1.1rem; color: var(--on-dark-muted); }
.band li { margin-bottom: 0.5rem; }

/* Split media section */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; } }

/* Photo placeholders */
.ph {
  background: var(--ph-bg); color: var(--ph-ink); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; font-size: 0.8125rem; letter-spacing: 0.04em; aspect-ratio: 4 / 5; width: 100%;
}
.ph::before { content: "Photo: "; margin-right: 0.25em; }
.ph.wide { aspect-ratio: 16 / 10; }
.ph.video::before { content: "Video: "; }
.media-frame { border-radius: var(--radius); max-width: 30rem; }
.media-frame .ph { transform: scale(1.12); }

/* Content placeholders */
.todo { display: inline; background: #fff0b8; color: #4f4100; padding: 0.05em 0.3em; border-radius: 2px; font-size: 0.95em; }
.todo-block { background: #fff8e6; border: 1px dashed #c9b37a; color: #4f4100; border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 1.5rem 0; font-size: 0.9375rem; font-family: var(--font-body); }
.on-dark .todo-block { background: rgba(255, 240, 184, 0.1); border-color: rgba(255, 240, 184, 0.4); color: #f1e3a8; }

/* Facts list */
.facts { margin: 2rem 0 0; }
.facts > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1.1rem 0; position: relative; }
.facts dt { font-weight: 500; font-size: 0.9375rem; }
.facts dd { margin: 0; color: var(--muted); }
.on-dark .facts > div::before { background: var(--line-dark); }

/* Watch grid */
.video-grid { display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card .frame { margin-bottom: 1rem; border-radius: var(--radius); }
.video-card .ph { aspect-ratio: 16 / 10; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.video-card:hover .ph { transform: scale(1.04); }
.video-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; margin: 0 0 0.25rem; }
.video-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* CTA band */
.cta h2 { font-size: clamp(2.4rem, 7vw, 4.5rem); max-width: 14ch; }

/* Forms */
.form { display: grid; gap: 1.25rem; max-width: 32rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid #cfc6ba; border-radius: var(--radius); padding: 0.85rem 0.95rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint { font-size: 0.8125rem; color: var(--muted); margin: 0.35rem 0 0; }
.form .btn { justify-self: start; }
.form-note { font-size: 0.8125rem; color: var(--muted); }
.confirm { display: none; }
.confirm.show { display: block; }
.confirm-mark { width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1.5rem; }

/* Join page: stands in for the Systeme.io funnel */
.funnel-header { border-bottom: 1px solid var(--line); }
.funnel-header .header-inner { height: 4rem; }
.funnel-url { font-size: 0.75rem; color: var(--muted); }
.funnel { padding: 3rem 0 4rem; }
.funnel-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem var(--gutter); max-width: 36rem; }
@media (min-width: 640px) { .funnel-box { padding: 2.75rem; } }
.funnel-box h1 { font-size: clamp(2.1rem, 7vw, 3rem); }

/* ---------- Footer ---------- */
.site-footer { padding: 4.5rem 0 2rem; font-size: 0.9375rem; }
.site-footer .footer-mark { font-family: var(--font-head); font-weight: 300; font-size: clamp(2.6rem, 10vw, 6.5rem); line-height: 1; letter-spacing: -0.03em; margin: 0 0 3rem; }
.site-footer .footer-mark span { font-style: italic; opacity: 0.6; }
.footer-grid { display: grid; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 0.5rem 2rem; justify-content: start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.small-print { margin-top: 3rem; font-size: 0.75rem; color: var(--on-dark-muted); }

/* ---------- Full bleed photo hero (Home) ---------- */
.hero-photo { position: relative; overflow: hidden; min-height: 100svh; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 18%; will-change: transform; }
/* Shade keeps the text readable: strong at the bottom on phones, on the left on desktop */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20,17,15,.55) 0%, rgba(20,17,15,0) 22%),
    linear-gradient(to top, rgba(20,17,15,.94) 0%, rgba(20,17,15,.72) 38%, rgba(20,17,15,.12) 68%, rgba(20,17,15,.2) 100%);
}
@media (min-width: 900px) {
  .hero-bg img { object-position: 72% 0%; }
  .hero-bg::after {
    background:
      linear-gradient(to right, rgba(20,17,15,.88) 0%, rgba(20,17,15,.55) 38%, rgba(20,17,15,0) 62%),
      linear-gradient(to top, rgba(20,17,15,.6) 0%, rgba(20,17,15,0) 40%),
      linear-gradient(to bottom, rgba(20,17,15,.6) 0%, rgba(20,17,15,0) 24%);
  }
  .hero-photo .hero-grid { grid-template-columns: minmax(0, 40rem); }
}
.hero-photo > .wrap { position: relative; z-index: 1; }

/* ---------- Home hero copy ---------- */
.hero-copy h1 { font-size: clamp(2.35rem, 9.4vw, 3.4rem); line-height: 1.04; margin: 0; text-wrap: pretty; }
.hero-copy .lead { max-width: 34rem; /* about 60 characters per line */ margin-top: 1.5rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(243, 238, 231, 0.94); }
.hero-action { margin-top: 2rem; }
.hero-action .btn { width: 100%; justify-content: center; padding: 1.05rem 1.25rem; font-size: 1rem; }
.hero-note { margin: 0.85rem 0 0; font-size: 0.875rem; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  /* Two deliberate lines: "Now it's your turn to emerge." always sits on line two */
  .hero-copy h1 { font-size: clamp(2.75rem, 4.4vw, 4.6rem); line-height: 1.02; }
  .hero-copy .hl-line { display: block; white-space: nowrap; }
  .hero-copy .lead { font-size: 1.125rem; margin-top: 1.75rem; }
  .hero-action .btn { width: auto; }
  .hero-photo .hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* Soft shade on the left only, fading out before it reaches Halima */
  .hero-bg::after {
    background:
      linear-gradient(to right, rgba(20,17,15,.92) 0%, rgba(20,17,15,.8) 38%, rgba(20,17,15,.35) 54%, rgba(20,17,15,0) 64%),
      linear-gradient(to bottom, rgba(20,17,15,.6) 0%, rgba(20,17,15,0) 24%);
  }
}
@media (max-width: 899px) {
  /* Phones: stacked. Photo first at 4:5 showing her full head and shoulders, text below on solid dark */
  .hero-photo { display: block; min-height: 0; padding-top: var(--header-h); background: var(--dark); } /* photo starts below the header so her head is never covered */
  .hero-bg { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; margin-bottom: 2rem; }
  .hero-bg img { object-position: 77% 0%; }
  .hero-bg::after {
    background:
      linear-gradient(to bottom, rgba(20,17,15,.55) 0%, rgba(20,17,15,0) 22%),
      linear-gradient(to top, var(--dark) 0%, rgba(27,24,22,0) 18%);
  }
}

.hero-bg { overflow: hidden; } /* keep the zoom and drift inside the shaded area */

/* ---------- Session photo section ---------- */
.session-photo { margin: 0 0 3rem; border-radius: var(--radius); aspect-ratio: 2000 / 1116; }
.session-photo img { width: 100%; height: 100%; object-fit: cover; }
.session-band .band-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .session-band .band-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } .session-photo { margin-bottom: 4rem; } }
.session-band h2 { margin: 0; }
.session-band ul { margin: 0; padding-left: 1.1rem; color: var(--on-dark-muted); }
.session-band li { margin-bottom: 0.5rem; }

/* About hero: the wide photo, framed on Halima's face */
.portrait-frame img.photo-wide { object-position: 77% 28%; }

/* About hero: the wide photo shown whole, full width under the heading */
.wide-frame { grid-column: 1 / -1; width: 100%; aspect-ratio: 2000 / 1116; border-radius: var(--radius); }
.wide-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* About hero: text centred in the left half so it fills the space beside Halima */
@media (min-width: 900px) {
  .hero-about { align-items: center; padding-bottom: 0; }
  .hero-about .hero-copy { max-width: 34rem; }
  .hero-about h1 { font-size: clamp(3.5rem, 6.2vw, 6.5rem); line-height: 0.98; }
  .hero-about .lead { font-size: 1.25rem; }
}
/* Home hero: same vertical centring as About */
@media (min-width: 900px) {
  .hero-photo { align-items: center; padding-bottom: 0; }
}
