/* Centre Channel — Design System v3 (canonical, June 2026) */

:root {
  --ink-black: #0a0a0a;
  --deep-black: #141414;
  --warm-black: #1a1918;
  --charcoal: #2a2a2a;
  --brass: #b8976a;
  --brass-light: #d4b896;
  --brass-dark: #8a7048;
  --cream: #f5f2eb;
  --warm-cream: #ebe6db;
  --stone: #d8d6d0;
  --mist: #e8e6e2;
  --forest: #3a4a40;
  --forest-light: #5c7064;
  --display: "Argesta Display", Georgia, serif;
  --headline: "Argesta Headline", Georgia, serif;
  --text-serif: "Argesta Text", Georgia, serif;
  --body: "Silka", -apple-system, "Helvetica Neue", sans-serif;
  --accent: var(--brass);
  --accent-light: var(--brass-light);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  overflow-x: clip;
  background: var(--ink-black);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--headline); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-family: var(--display); }
h1 { font-size: clamp(2.75rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p + p { margin-top: 1.1em; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--cream); }
strong { font-weight: 500; color: var(--cream); }
em { font-family: var(--text-serif); font-style: italic; font-size: 1.06em; }

.eyebrow {
  font-family: var(--body); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.4rem;
}
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--stone); line-height: 1.6; }
.muted { color: var(--stone); }
.statement {
  font-family: var(--headline); font-weight: 400; font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--cream);
}

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
.narrow { max-width: 1080px; }
.narrow > h1, .narrow > h2, .narrow > h3, .narrow > p, .narrow > ul,
.narrow > .lede, .narrow > .statement, .narrow > .grid, .narrow > div { max-width: 46rem; }
.hero h1, .hero .lede { }
section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; overflow: hidden; }
.section-divide { border-top: 1px solid rgba(184, 151, 106, 0.14); }

/* Light reveal: sections lighten as they enter the viewport */
.reveal { background: var(--ink-black); transition: background 1.2s ease; }
.reveal.lit { background: var(--deep-black); }

/* Signal bloom: one per viewport max */
.bloom::before {
  content: ""; position: absolute; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(184, 151, 106, 0.08) 0%, transparent 65%);
  top: -10%; right: -15%; z-index: 0;
}
.bloom > * { position: relative; z-index: 1; }

/* Centre line: 45 degree brass hairline */
.centre-line { position: relative; overflow: hidden; }
.centre-line::after {
  content: ""; position: absolute; left: 48%; bottom: -25%;
  width: 90%; height: 1px; background: var(--brass);
  opacity: 0.15; transform: rotate(-45deg); transform-origin: left bottom;
  pointer-events: none;
}

/* ---------- Top bar (Clarity Index) ---------- */
.topbar {
  background: var(--warm-black); border-bottom: 1px solid rgba(184,151,106,0.2);
  font-size: 0.85rem; font-weight: 400; text-align: center; padding: 0.55rem 1rem;
  color: var(--stone);
}
.topbar a { color: var(--brass-light); font-weight: 500; }
.topbar a:hover { color: var(--cream); }

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 151, 106, 0.12);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem clamp(1.25rem, 5vw, 3rem); max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--cream); font-family: var(--headline); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand svg { width: 30px; height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.9rem); list-style: none; }
.nav-links a { color: var(--stone); font-size: 0.92rem; font-weight: 400; }
.nav-links a:hover { color: var(--cream); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(184,151,106,0.35); color: var(--cream); font-family: var(--body); font-size: 0.85rem; padding: 0.4rem 0.8rem; border-radius: 4px; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--warm-black); flex-direction: column; padding: 1.25rem; gap: 1rem; border-bottom: 1px solid rgba(184,151,106,0.2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 500; font-size: 0.95rem;
  padding: 0.85rem 1.7rem; border-radius: 4px; cursor: pointer; border: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--brass); color: var(--ink-black); }
.btn-primary:hover { background: var(--brass-light); color: var(--ink-black); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(184, 151, 106, 0.5); }
.btn-ghost:hover { border-color: var(--brass-light); color: var(--cream); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem); }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 42ch; margin-top: 1.8rem; }

/* ---------- Cards & lists ---------- */
.grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--warm-black); border: 1px solid rgba(184, 151, 106, 0.14);
  border-radius: 6px; padding: 1.9rem;
}
.card h3 { margin-bottom: 0.8rem; }
.card .tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 500; display: block; margin-bottom: 0.9rem; }
.plain-list { list-style: none; margin-top: 1.4rem; }
.plain-list li { padding: 0.65rem 0 0.65rem 1.6rem; position: relative; color: var(--stone); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Proof rows */
.proof-row { border-top: 1px solid rgba(184,151,106,0.14); padding: 1.6rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: baseline; }
.proof-row:last-child { border-bottom: 1px solid rgba(184,151,106,0.14); }
.proof-row .result { font-family: var(--headline); font-size: 1.25rem; color: var(--brass-light); white-space: nowrap; }
@media (max-width: 680px) { .proof-row { grid-template-columns: 1fr; } .proof-row .result { white-space: normal; } }

/* Testimonials */
.quote { border-left: 2px solid var(--brass); padding: 0.4rem 0 0.4rem 1.5rem; margin-top: 2rem; }
.quote p { font-family: var(--headline); font-size: 1.2rem; font-style: italic; line-height: 1.5; color: var(--warm-cream); }
.quote cite { display: block; margin-top: 0.8rem; font-style: normal; font-size: 0.88rem; color: var(--stone); }
.quote cite strong { color: var(--cream); }

/* Reference strip */
.refs { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin-top: 2rem; color: var(--stone); font-size: 0.95rem; }
.refs span { opacity: 0.85; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid rgba(184, 151, 106, 0.14); padding: 3.5rem 0 2.5rem;
  color: var(--stone); font-size: 0.9rem;
}
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.foot-links a { color: var(--stone); }
.foot-links a:hover { color: var(--cream); }
.foot-legal { margin-top: 2rem; font-size: 0.8rem; color: rgba(216, 214, 208, 0.55); }

/* ---------- Clarity Index ---------- */
.index-progress { display: flex; gap: 6px; margin: 2.2rem 0 1rem; }
.index-progress span { flex: 1; height: 3px; background: var(--charcoal); border-radius: 2px; }
.index-progress span.done { background: var(--brass); }
.q-channel { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.q-title { font-family: var(--headline); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; margin: 0.8rem 0 2rem; line-height: 1.25; }
.q-options { display: grid; gap: 0.8rem; }
.q-option {
  text-align: left; background: var(--warm-black); border: 1px solid rgba(184,151,106,0.18);
  color: var(--warm-cream); font-family: var(--body); font-weight: 300; font-size: 1rem;
  padding: 1.05rem 1.3rem; border-radius: 6px; cursor: pointer; line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.q-option:hover { border-color: var(--brass); background: var(--deep-black); }
.q-option.selected { border-color: var(--brass); background: var(--deep-black); }
.index-result .score { font-family: var(--display); font-size: clamp(4rem, 10vw, 6.5rem); font-weight: 400; line-height: 1; color: var(--cream); }
.index-result .persona { font-family: var(--headline); font-size: clamp(1.7rem, 4vw, 2.5rem); font-style: italic; color: var(--brass-light); margin-top: 0.4rem; }
.index-result .band { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-top: 1.2rem; }
.channel-bars { margin: 2.5rem 0; display: grid; gap: 1rem; max-width: 460px; }
.channel-bars .row { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--stone); }
.channel-bars .track { height: 4px; background: var(--charcoal); border-radius: 2px; overflow: hidden; }
.channel-bars .fill { height: 100%; background: var(--brass); border-radius: 2px; }
.note-form { margin-top: 2.5rem; max-width: 480px; }
.note-form input[type="email"] {
  width: 100%; background: var(--warm-black); border: 1px solid rgba(184,151,106,0.3);
  color: var(--cream); font-family: var(--body); font-size: 1rem; padding: 0.9rem 1.1rem;
  border-radius: 4px; margin-bottom: 0.9rem;
}
.note-form input[type="email"]:focus { outline: none; border-color: var(--brass); }
.form-note { font-size: 0.8rem; color: rgba(216,214,208,0.6); margin-top: 0.9rem; }
.hidden { display: none; }

/* Sessions page: the forest exception */
.theme-forest { --accent: var(--forest-light); --accent-light: var(--forest-light); }
.theme-forest .bloom::before { background: radial-gradient(circle, rgba(92, 112, 100, 0.1) 0%, transparent 65%); }
.theme-forest .centre-line::after { background: var(--forest-light); }
.theme-forest .plain-list li::before { background: var(--forest-light); }

/* Generic form fields */
.field input, .field textarea {
  width: 100%; background: var(--warm-black); border: 1px solid rgba(184,151,106,0.3);
  color: var(--cream); font-family: var(--body); font-size: 1rem; padding: 0.9rem 1.1rem;
  border-radius: 4px;
}
.field { margin-bottom: 1rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); }

/* Article cards are links */
a.card { display: block; color: inherit; transition: border-color 0.25s ease; }
a.card:hover { border-color: var(--brass); color: inherit; }
a.card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; color: var(--cream); }


/* Step transitions (Clarity Index and reveals) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.45s ease both; }

/* Nav CTA: keep ink text on brass (nav link colour must not win) */
.nav-links a.btn-primary { color: var(--ink-black); }
.nav-links a.btn-primary:hover { color: var(--ink-black); }


/* Photography */
.photo { margin: 0; border: 1px solid rgba(184, 151, 106, 0.18); border-radius: 6px; overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Ambient hero media (silent loop, texture not content) */
.hero-media { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.6) 55%, rgba(10,10,10,0.4) 100%),
              linear-gradient(180deg, transparent 40%, #0a0a0a 100%); }
.has-media .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } .hero-media { opacity: 0.3; } }


/* ---------- Clarity Index focus mode ---------- */
.index-bar { display: none; }
body.index-live { background: var(--deep-black); }
body.index-live .topbar, body.index-live header.site, body.index-live footer.site { display: none; }
body.index-live .index-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(184, 151, 106, 0.12);
}
.index-bar-label { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); font-weight: 500; }

/* Each stage sits within one viewport */
.index-stage {
  min-height: calc(100dvh - 60px);
  display: flex; align-items: center;
  padding: 2rem 0; overflow: visible;
}
.index-stage .wrap { width: 100%; }

/* The Mark draws itself (reveal, never rotation) */
.mark-draw path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: markDraw 1.3s ease 0.15s forwards; }
.mark-draw circle { opacity: 0; animation: markNode 0.45s ease 1.35s forwards; }
@keyframes markDraw { to { stroke-dashoffset: 0; } }
@keyframes markNode { to { opacity: 1; } }

/* Compact fit for shorter desktop viewports (MacBook Air et al) */
@media (min-width: 861px) and (max-height: 900px) {
  .index-progress { margin: 1.2rem 0 0.8rem; }
  .q-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0.6rem 0 1.4rem; }
  .q-option { padding: 0.85rem 1.15rem; font-size: 0.95rem; }
  .q-options { gap: 0.65rem; }
  .index-result .score { font-size: clamp(2.6rem, 6.5vw, 4rem); }
  .index-result .persona { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-top: 0.2rem; }
  .channel-bars { margin: 1.1rem 0; gap: 0.55rem; }
  .channel-bars .row { font-size: 0.8rem; }
  .note-form { margin-top: 1rem; }
  .note-form h3 { font-size: 1.15rem; }
  .note-form input[type="email"] { padding: 0.7rem 1rem; margin-bottom: 0.6rem; }
  .index-result .band { margin-top: 0.5rem; }
  .index-stage { padding: 1.25rem 0; }
}

.index-stage.hidden { display: none; }
