/* ==========================================================================
   Education Energy — 2026 rebrand
   Design system: tokens, layout primitives, components.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Core palette */
  --ink:        #0A0D0B;
  --ink-2:      #121714;
  --ink-3:      #1D2621;
  --paper:      #F7F5EF;
  --paper-2:    #EFEBE0;
  --volt:       #C8FF4D;
  --volt-deep:  #7CA800;
  --ember:      #E8481B;
  --ember-soft: #FFE9E1;

  /* Semantic */
  --bg:            var(--paper);
  --bg-alt:        var(--paper-2);
  --fg:            var(--ink);
  --fg-muted:      #4E574F;
  --fg-faint:      #737C74;
  --rule:          rgba(10, 13, 11, 0.12);
  --rule-strong:   rgba(10, 13, 11, 0.28);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-serif:   "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.8rem + 3.6vw, 4.8rem);
  --step-5:  clamp(3.2rem, 1.9rem + 6vw, 7.5rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --max: 1280px;
  --max-prose: 68ch;

  --radius: 4px;
  --radius-lg: 18px;

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

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

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

/* ---------- 3. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1500px; }
.wrap--narrow { max-width: 900px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.prose { max-width: var(--max-prose); }
.stack > * + * { margin-top: var(--gap, 1.5rem); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* Theme surfaces */
.on-ink {
  background: var(--ink);
  color: var(--paper);
  --fg-muted: #B4BDB5;
  --fg-faint: #8A938B;
  --rule: rgba(247, 245, 239, 0.14);
  --rule-strong: rgba(247, 245, 239, 0.3);
}
.on-alt { background: var(--bg-alt); }

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 2px;
  background: var(--volt-deep);
  flex: none;
}
.on-ink .eyebrow::before { background: var(--volt); }

.h-mega  { font-size: var(--step-5); }
.h-xl    { font-size: var(--step-4); }
.h-lg    { font-size: var(--step-3); }
.h-md    { font-size: var(--step-2); }
.h-sm    { font-size: var(--step-1); letter-spacing: -0.015em; }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--fg-muted); }
.muted { color: var(--fg-muted); }
.tiny { font-size: var(--step--1); }
.mark { background: var(--volt); color: var(--ink); padding: 0 0.18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.underline-volt {
  background-image: linear-gradient(var(--volt), var(--volt));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.32em;
}

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(10, 13, 11, 0.55); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--volt  { --btn-bg: var(--volt); --btn-fg: var(--ink); }
.btn--ember { --btn-bg: var(--ember); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); border-color: var(--rule-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.on-ink .btn--ghost { --btn-fg: var(--paper); }
.on-ink .btn--ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--lg { padding: 1.25rem 2.4rem; font-size: var(--step-1); }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--volt-deep);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow:hover { gap: 0.9rem; border-color: var(--ember); }
.on-ink .link-arrow { border-color: var(--volt); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand { display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 0.28rem; text-decoration: none; flex: none; }
.brand__logo {
  /* The full 2016 lockup — hexagon plus wordmark — extracted with a
     transparent background. The footer uses -light.png, the same artwork with
     the wordmark reversed to bone so it reads on the dark ground. */
  height: 42px; width: auto; flex: none;
  display: block;
  transition: transform 0.35s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__tagline { font-family: var(--font-body); font-weight: 500; font-size: 0.5rem;
  letter-spacing: 0.155em; text-transform: uppercase; color: var(--fg-faint);
  line-height: 1; padding-left: 3px; }

.nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--fg); background: rgba(10, 13, 11, 0.05); }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--volt-deep); border-radius: 2px;
}
.header__cta { flex: none; }
.nav__cta { display: none; }
.header__cta .btn { padding: 0.8rem 1.4rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: 0.3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 2rem;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 0.95rem 0.25rem; font-size: 1.15rem; font-family: var(--font-display); font-weight: 700; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav li:last-child a { border-bottom: 0; }
  .nav__cta { display: block; margin-top: 1rem; }
  .nav .nav__cta a { background: var(--ink); color: var(--paper); text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 7rem) clamp(3rem, 6vw, 6rem); }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero__title { font-size: var(--step-5); }
.hero__title .serif { display: block; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: var(--step-2); line-height: 1; letter-spacing: -0.04em; }
.hero__stat span { font-size: var(--step--1); color: var(--fg-muted); letter-spacing: 0.04em; }

.hero__blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
}
.hero__blob--a { width: 45vw; height: 45vw; background: var(--volt); top: -18vw; right: -12vw; }
.hero__blob--b { width: 32vw; height: 32vw; background: var(--ember); bottom: -18vw; left: -10vw; opacity: 0.18; }

/* ---------- 8. Marquee ---------- */
.marquee {
  border-block: 1px solid var(--rule);
  background: var(--ink); color: var(--paper);
  padding-block: 0.9rem;
  overflow: hidden;
  --marquee-duration: 38s;
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; flex: none; }
.marquee__group span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap;
}
.marquee__group i { color: var(--volt); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- 9. Media placeholders ---------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  aspect-ratio: var(--ph-ratio, 16 / 9);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--rule-strong);
  background-color: rgba(10, 13, 11, 0.03);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 12px,
    rgba(10, 13, 11, 0.045) 12px 24px
  );
  color: var(--fg-muted);
  text-align: center;
  padding: 1.5rem;
  overflow: hidden;
}
.on-ink .ph {
  background-color: rgba(247, 245, 239, 0.04);
  background-image: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(247, 245, 239, 0.05) 12px 24px);
}
.ph__icon { width: 40px; height: 40px; opacity: 0.6; }
.ph__label {
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ph__file {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem; letter-spacing: 0.02em;
  color: var(--fg-faint);
  word-break: break-all;
  max-width: 34ch;
}
.ph--portrait { --ph-ratio: 3 / 4; }
.ph--square   { --ph-ratio: 1 / 1; }
.ph--book     { --ph-ratio: 4 / 5; }
.ph--wide     { --ph-ratio: 21 / 9; }
.ph--video { border-color: var(--rule-strong); }
.ph--video .ph__play {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 0 12px rgba(200, 255, 77, 0.18);
  display: grid; place-items: center;
  margin-bottom: 0.4rem;
}
.ph--video .ph__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 19px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}
.ph--avatar { --ph-ratio: 1 / 1; border-radius: 50%; padding: 0.5rem; }
.ph--avatar .ph__file, .ph--avatar .ph__label { display: none; }

/* ---------- 10. Cards ---------- */
.card {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.4rem);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.on-ink .card { background: var(--ink-2); border-color: var(--rule); }
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(10, 13, 11, 0.5); border-color: var(--rule-strong); }
.card__num {
  font-family: var(--font-display); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; color: var(--volt-deep); margin-bottom: 1rem; display: block;
}
.on-ink .card__num { color: var(--volt); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--volt); color: var(--ink);
  margin-bottom: 1.4rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.card p { color: var(--fg-muted); font-size: 0.98rem; }

/* Feature list */
.ticks { list-style: none; display: grid; gap: 0.85rem; }
.ticks li { position: relative; padding-left: 2.1rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background-color: var(--volt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0D0B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.8rem; background-position: center; background-repeat: no-repeat;
}
.ticks--ember li::before {
  background-color: var(--ember);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.pills li {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- 11. Quotes / testimonials ---------- */
.quote-hero { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (min-width: 900px) { .quote-hero { grid-template-columns: 220px 1fr; } }
.quote-hero blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: var(--step-3); line-height: 1.18; letter-spacing: -0.02em; }
.quote-hero cite { display: block; margin-top: 1.4rem; font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: var(--step-0); }

.testimonial { display: flex; flex-direction: column; height: 100%; }
.testimonial__mark { font-family: var(--font-serif); font-size: 4rem; line-height: 0.7; color: var(--volt-deep); margin-bottom: 0.6rem; }
.on-ink .testimonial__mark { color: var(--volt); }
.testimonial p { flex: 1; font-size: 0.98rem; }
.testimonial__who { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.testimonial__who .ph { width: 52px; flex: none; padding: 0; }
.testimonial__who strong { display: block; font-family: var(--font-display); font-size: 0.98rem; letter-spacing: -0.01em; }
.testimonial__who span { display: block; font-size: 0.82rem; color: var(--fg-muted); line-height: 1.35; }

/* ---------- 12. Split feature ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-right .split__media { order: 2; }
  .split--narrow-media { grid-template-columns: 0.8fr 1.2fr; }
}
.split__media { position: relative; }
.split__media .ph { border-radius: var(--radius-lg); }

/* Book showcase frame */
.book-frame {
  position: relative;
  padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--volt) 0%, #E8FFB0 55%, var(--paper) 100%);
}
.book-frame--ember { background: linear-gradient(150deg, #FF8B62 0%, #FFC7B2 55%, var(--paper) 100%); }
.book-frame .ph { border-color: rgba(10, 13, 11, 0.35); background-color: rgba(255, 255, 255, 0.55); }

/* ---------- 13. Team ---------- */
.team-grid { display: grid; gap: clamp(1.5rem, 2.6vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.member__photo { margin-bottom: 1.1rem; border-radius: var(--radius-lg); overflow: hidden; }
.member__photo .ph { --ph-ratio: 1 / 1; border-radius: var(--radius-lg); }
.member h3 { font-size: var(--step-1); letter-spacing: -0.025em; }
.member__role { display: block; margin: 0.4rem 0 0.9rem; font-size: 0.88rem; color: var(--fg-muted); line-height: 1.4; }
.member .link-arrow { font-size: 0.85rem; }

/* ---------- 14. Accordion ---------- */
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  letter-spacing: -0.02em;
}
.acc__btn::after {
  content: ""; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0D0B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 15px; background-position: center; background-repeat: no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease);
}
.acc__btn[aria-expanded="true"]::after { transform: rotate(45deg); background-color: var(--volt); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel .acc__inner { padding-bottom: 1.8rem; color: var(--fg-muted); max-width: 62ch; }

/* ---------- 15. Pricing / program tiers ---------- */
.tier { display: flex; flex-direction: column; height: 100%; }
.tier--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tier--featured .card__num, .tier--featured .tier__price small { color: var(--volt); }
.tier--featured p, .tier--featured .ticks li { color: #C9D0C9; }
.tier__price { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); letter-spacing: -0.04em; line-height: 1; margin: 0.4rem 0 1.4rem; }
.tier__price small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt-deep); display: block; margin-bottom: 0.5rem; }
.tier .ticks { margin: 1.4rem 0 2rem; font-size: 0.94rem; }
.tier .btn { margin-top: auto; }
.tag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: var(--volt); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- 16. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr auto; } }

/* ---------- 17. Blog ---------- */
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(10, 13, 11, 0.5); }
.post-card .ph { border: 0; border-radius: 0; --ph-ratio: 16 / 10; }
.post-card__body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 0.8rem; font-family: var(--font-display); font-weight: 500; }
.post-card h3 { font-size: var(--step-1); margin-bottom: 0.7rem; }
.post-card__more { margin-top: auto; padding-top: 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--volt-deep); }

.article { max-width: 72ch; margin-inline: auto; }
.article h2 { font-size: var(--step-2); margin: 2.5rem 0 1rem; }
.article h3 { font-size: var(--step-1); margin: 2rem 0 0.8rem; }
.article p, .article li { font-size: 1.08rem; line-height: 1.75; }
.article ul { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.article blockquote {
  margin: 2rem 0; padding: 1.4rem 1.8rem;
  border-left: 4px solid var(--volt); background: var(--bg-alt);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-family: var(--font-serif); font-style: italic; font-size: var(--step-1);
}

/* Editorial note for placeholder content */
.note {
  padding: 1.1rem 1.4rem;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius-lg);
  background: rgba(232, 72, 27, 0.06);
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.note strong { color: var(--ember); font-family: var(--font-display); }

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.site-footer a { color: inherit; text-decoration: none; }
.footer__top { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(247, 245, 239, 0.14); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #8A938B; margin-bottom: 1.2rem; }
.footer__links { list-style: none; display: grid; gap: 0.65rem; font-size: 0.96rem; }
.footer__links a { color: #C9D0C9; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--volt); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-top: 2rem; font-size: 0.82rem; color: #8A938B; }
.site-footer .brand__tagline { color: #8A938B; }
.site-footer p { color: #C9D0C9; }

/* ---------- 19. Modal + forms ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 13, 11, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 0; padding: 0; cursor: pointer; }
.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 2rem);
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: clamp(16px, 2vw, 24px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__dialog--wide { width: min(860px, 100%); }

.modal__head { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.4rem) 1.2rem; border-bottom: 1px solid var(--rule); padding-right: 4rem; }
.modal__eyebrow { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--volt-deep); margin-bottom: 0.7rem; }
.modal__title { font-size: var(--step-2); letter-spacing: -0.03em; }
.modal__sub { margin-top: 0.7rem; color: var(--fg-muted); font-size: 0.96rem; }
.modal__body { padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.4rem); overflow-y: auto; flex: 1; }
.modal__foot { padding: 1.2rem clamp(1.5rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--rule); background: var(--bg-alt); }
.modal__close {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.25s var(--ease), color 0.2s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }

.field { margin-bottom: 1.1rem; }
.field > label, .fieldset__legend {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  letter-spacing: -0.01em; margin-bottom: 0.45rem;
}
.field__hint { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--fg-muted); margin-top: 0.15rem; }
.req { color: var(--ember); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit; font-size: 0.98rem;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0D0B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: 18px; background-position: right 0.9rem center; background-repeat: no-repeat; padding-right: 2.6rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 255, 77, 0.55); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--ember); }
.field__error { display: none; margin-top: 0.35rem; font-size: 0.82rem; color: var(--ember); font-weight: 500; }
.field.has-error .field__error { display: block; }

.choices { display: grid; gap: 0.5rem; }
.choice {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--rule-strong); border-radius: 12px;
  background: #fff; cursor: pointer;
  font-size: 0.94rem; line-height: 1.4;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.choice:hover { border-color: var(--ink); }
.choice input { margin-top: 0.22em; accent-color: var(--volt-deep); flex: none; }
.choice.is-checked { border-color: var(--ink); background: var(--volt); }

.scale { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.scale label {
  flex: 1 1 3rem;
  position: relative;
  display: grid; place-items: center;
  min-height: 46px;
  border: 1px solid var(--rule-strong); border-radius: 10px;
  background: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 700;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.scale label:hover { transform: translateY(-2px); border-color: var(--ink); }
.scale input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.scale label.is-checked { background: var(--ink); color: var(--volt); border-color: var(--ink); }

.fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.fieldset__legend { padding: 0; }
.form-section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-faint);
  margin: 2rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
}
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-privacy { display: flex; align-items: center; gap: 0.55rem; justify-content: center; font-size: 0.8rem; color: var(--fg-muted); margin-top: 0.9rem; }
.form-privacy svg { flex: none; color: var(--volt-deep); }

/* Progress bar for the long application */
.form-progress { height: 4px; background: var(--rule); border-radius: 999px; overflow: hidden; margin-top: 1.2rem; }
.form-progress__bar { height: 100%; width: 0%; background: var(--volt-deep); border-radius: 999px; transition: width 0.4s var(--ease); }
.step-count { font-size: 0.8rem; color: var(--fg-muted); font-family: var(--font-display); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Success state */
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success__icon {
  width: 76px; height: 76px; margin: 0 auto 1.5rem;
  border-radius: 50%; background: var(--volt);
  display: grid; place-items: center;
  animation: pop 0.5s var(--ease);
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success h3 { font-size: var(--step-2); margin-bottom: 0.8rem; }
.form-success p { color: var(--fg-muted); max-width: 44ch; margin-inline: auto; }

/* Inline optin teaser (modal trigger blocks) */
.optin-teaser {
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  border-radius: var(--radius-lg);
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
}
.optin-teaser h3 { font-size: var(--step-2); margin-bottom: 0.8rem; }
.optin-teaser p { color: #C9D0C9; font-size: 0.98rem; }
.optin-teaser .btn { margin-top: 1.4rem; }
.optin-teaser .form-privacy { color: #8A938B; justify-content: flex-start; }

/* ---------- 20. Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .post-card:hover { transform: none; }
}

/* ---------- 21. Utilities ---------- */
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .prose { margin-inline: auto; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- 22. Mega menu ---------- */
.nav__item { position: relative; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  background: none; border: 0; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  color: var(--fg-muted); cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__trigger:hover, .nav__trigger[aria-expanded="true"] { color: var(--fg); background: rgba(10, 13, 11, 0.05); }
.nav__trigger svg { transition: transform 0.25s var(--ease); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item.is-current > .nav__trigger { color: var(--fg); font-weight: 700; }

.nav__menu {
  position: absolute; top: calc(100% + 0.6rem); left: 50%;
  width: min(520px, 88vw);
  transform: translate(-50%, 8px);
  display: grid; gap: 0.25rem;
  padding: 0.7rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(10, 13, 11, 0.55);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  z-index: 90;
}
.nav__menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.nav__menu a {
  display: grid; gap: 0.15rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; letter-spacing: -0.02em;
  white-space: normal;
  transition: background 0.2s var(--ease);
}
.nav__menu a:hover { background: var(--volt); }
.nav__menu a span {
  font-family: var(--font-body); font-weight: 400; font-size: 0.84rem;
  color: var(--fg-muted); line-height: 1.4;
}
.nav__menu a:hover span { color: rgba(10, 13, 11, 0.7); }
.nav__menu a[aria-current="page"] { background: var(--bg-alt); }
.nav__menu a[aria-current="page"]::after { display: none; }

@media (max-width: 960px) {
  .nav__trigger { width: 100%; justify-content: space-between; padding: 0.95rem 0.25rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav__menu {
    position: static; width: auto; transform: none;
    border: 0; box-shadow: none; background: transparent;
    padding: 0.4rem 0 0.8rem 0.9rem;
    display: none;
  }
  .nav__menu.is-open { display: grid; transform: none; }
  .nav__menu a { padding: 0.7rem 0.75rem; font-size: 1rem; border-bottom: 0; }
}

/* Link-style buttons (form triggers rendered as inline links) */
button.link-arrow {
  background: none;
  border: 0;
  border-bottom: 2px solid var(--volt-deep);
  padding: 0 0 2px;
  cursor: pointer;
  font-size: inherit;
}
.on-ink button.link-arrow { border-bottom-color: var(--volt); }
button.link-arrow:hover { border-bottom-color: var(--ember); }

/* ---------- 23. Real media ---------- */
.media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.media--cover   { object-fit: cover; }
.media--contain { object-fit: contain; background: transparent; }
.media--avatar  { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; width: 52px; flex: none; }
.member__photo .media { border-radius: var(--radius-lg); aspect-ratio: 1 / 1; object-fit: cover; }
.post-card .media { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; }
.book-frame .media { border-radius: calc(var(--radius-lg) - 4px); }

/* ---------- 24. Oversized originals awaiting optimisation ---------- */
.ph--large {
  border-color: var(--ember);
  border-style: dashed;
  background-color: rgba(232, 72, 27, 0.07);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 12px,
    rgba(232, 72, 27, 0.12) 12px 24px
  );
  color: var(--ember);
}
.on-ink .ph--large {
  background-color: rgba(232, 72, 27, 0.14);
  background-image: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(232, 72, 27, 0.2) 12px 24px);
  color: #FF8B62;
}
.ph--large .ph__label { color: inherit; }
.ph--large .ph__file  { color: inherit; opacity: 0.85; }
.ph__warn {
  margin: 0.35rem 0 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================ VIDEO ============================ */
/* The wrapper must own the 16:9 box itself. The play button also sets
   aspect-ratio, but the script removes the button when the iframe is
   inserted — and the iframe is absolutely positioned, so it adds no
   height. Without this the container collapsed to 0 and the video
   played audio only. */
.video{position:relative;width:100%;aspect-ratio:16/9}
.video__btn{position:absolute;inset:0}
.video--wide{max-width:960px;margin-inline:auto}

.video__btn{
  display:block;width:100%;height:100%;
  padding:0;border:0;border-radius:var(--radius-lg);overflow:hidden;
  background:var(--ink);cursor:pointer;
  transition:transform var(--ease) .35s, box-shadow var(--ease) .35s;
}
.video__btn:hover{transform:translateY(-3px);box-shadow:0 18px 50px rgb(10 13 11 / .28)}
.video__btn:focus-visible{outline:3px solid var(--volt);outline-offset:3px}

.video__poster{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;
  transition:opacity var(--ease) .35s, transform var(--ease) .5s;
}
.video__btn:hover .video__poster{opacity:.72;transform:scale(1.03)}

.video__play{
  position:absolute;top:50%;left:50%;translate:-50% -50%;
  width:76px;height:76px;border-radius:50%;
  background:var(--volt);
  display:grid;place-items:center;
  box-shadow:0 10px 34px rgb(10 13 11 / .38);
  transition:transform var(--ease) .35s;
}
.video__play::after{
  content:"";width:0;height:0;margin-left:5px;
  border-left:22px solid var(--ink);
  border-top:14px solid transparent;
  border-bottom:14px solid transparent;
}
.video__btn:hover .video__play{transform:scale(1.09)}

.video__title{
  position:absolute;left:0;right:0;bottom:0;
  padding:2.4rem 1.15rem .95rem;
  font:600 var(--step--1)/1.35 var(--font-ui);
  color:#fff;text-align:left;
  background:linear-gradient(to top,rgb(10 13 11 / .82),transparent);
}

.video__frame{
  position:absolute;inset:0;width:100%;height:100%;
  border:0;border-radius:var(--radius-lg);
}

.video__fallback{
  display:block;padding:1rem;text-align:center;
  border:1px solid var(--rule);border-radius:var(--radius-lg);
}

@media (prefers-reduced-motion:reduce){
  .video__btn,.video__poster,.video__play{transition:none}
  .video__btn:hover{transform:none}
  .video__btn:hover .video__poster{transform:none}
  .video__btn:hover .video__play{transform:none}
}
