/* Exponential Investors Mastermind — brand palette sampled from the site logo:
   red #F54A4D, ink #040505, paper white. */

:root {
  --red: #f54a4d;
  --red-dark: #d63033;
  --red-soft: #fff1f1;
  --ink: #0b0c0e;
  --ink-2: #1c1f23;
  --body: #43494f;
  --muted: #767d85;
  --line: #e6e8ec;
  --paper: #ffffff;
  --sand: #f7f7f8;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 12, 14, .06), 0 4px 14px rgba(11, 12, 14, .05);
  --shadow-md: 0 10px 30px rgba(11, 12, 14, .10);
  --shadow-lg: 0 24px 60px rgba(11, 12, 14, .18);
  --head-h: 68px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 .5em;
  font-weight: 780;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.014em; }

p { margin: 0 0 1.1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- header / tabs ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  height: var(--head-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  height: 100%; display: flex; align-items: center; gap: 22px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-weight: 800; color: var(--ink); letter-spacing: -0.03em;
  font-size: 1.02rem; line-height: 1.05;
}
.brand-name small {
  display: block; font-size: .625rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--red);
}

.tabs { display: flex; gap: 2px; margin-left: auto; }
.tabs a {
  position: relative;
  padding: 9px 14px;
  font-size: .925rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  border-radius: 9px;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.tabs a:hover { color: var(--ink); background: var(--sand); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2.5px; background: var(--red); border-radius: 2px;
}

.head-cta { flex: none; margin-left: 6px; }
.burger {
  display: none; margin-left: auto;
  width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0; color: var(--ink);
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px;
  margin: 0 auto; position: relative;
}
.burger span::before, .burger span::after { content: ""; position: absolute; }
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-family: inherit; font-size: .935rem; font-weight: 700; letter-spacing: -0.006em;
  border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(245, 74, 77, .28); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 26px rgba(245, 74, 77, .34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9ced6; background: var(--sand); }
.btn-on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { padding: 9px 16px; font-size: .875rem; border-radius: 9px; }

/* ---------- panels ---------- */

.tab-panel { animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

section.band { padding: clamp(56px, 7vw, 92px) 0; }
section.band.sand { background: var(--sand); border-block: 1px solid var(--line); }
section.band.ink { background: var(--ink); color: #b9bfc7; }
section.band.ink h2, section.band.ink h3 { color: #fff; }

.eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
  color: var(--red); margin: 0 0 14px;
}
.lede { font-size: 1.12rem; color: var(--body); max-width: 65ch; }
.section-head { max-width: 720px; margin-bottom: 42px; }

/* ---------- hero ---------- */

.hero {
  position: relative; display: grid; align-items: center;
  min-height: min(78vh, 660px);
  padding: clamp(56px, 8vw, 104px) 0;
  color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../media/hero.jpg") center/cover no-repeat;
  transform: scale(1.04); filter: saturate(.85);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 9, 11, .95) 0%, rgba(8, 9, 11, .82) 42%, rgba(8, 9, 11, .42) 100%),
    radial-gradient(70% 100% at 0% 50%, rgba(245, 74, 77, .28), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { color: #d7dbe0; font-size: 1.12rem; max-width: 54ch; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 8px; margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .8rem; font-weight: 650; color: #fff; letter-spacing: .01em;
}
.hero-kicker img { width: 24px; height: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stat-strip { border-top: 1px solid var(--line); background: var(--paper); }
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
  border-inline: 1px solid var(--line);
}
.stat { background: var(--paper); padding: 26px 20px; text-align: center; }
.stat b {
  display: block; font-size: 1.85rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em;
}
.stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ---------- generic grids & cards ---------- */

.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid.pair { grid-template-columns: 1fr; } }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9dde3; }
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.pill {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--red-soft); color: var(--red-dark);
  font-size: .715rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.num {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 16px;
}

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding: 7px 0 7px 30px; }
ul.ticks li + li { border-top: 1px solid var(--line); }
ul.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 15px;
  width: 7px; height: 12px; border: solid var(--red); border-width: 0 2.4px 2.4px 0;
  transform: rotate(42deg);
}

/* ---------- split feature ---------- */

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split.flip > :first-child { order: 2; }

.band-banner { width: 100%; height: auto; display: block; }

.quote-block {
  border-left: 3px solid var(--red); padding: 4px 0 4px 24px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 620; color: var(--ink);
  line-height: 1.42; letter-spacing: -0.018em;
}
.quote-block cite { display: block; margin-top: 12px; font-size: .9rem; font-weight: 600; font-style: normal; color: var(--muted); }

/* ---------- galleries ---------- */

.gallery { columns: 3 300px; column-gap: 18px; }
.gallery figure {
  margin: 0 0 18px; break-inside: avoid; position: relative;
  border-radius: var(--radius); overflow: hidden; background: var(--sand);
  cursor: zoom-in; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery img { width: 100%; height: auto; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 13px;
  background: linear-gradient(transparent, rgba(6, 7, 9, .88));
  color: #fff; font-size: .845rem; font-weight: 600; line-height: 1.34;
  opacity: 0; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease;
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(6, 7, 9, .93); padding: 4vh 4vw;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 82vh; border-radius: 10px; box-shadow: var(--shadow-lg);
  object-fit: contain;
}
.lightbox figcaption { color: #cfd4da; text-align: center; margin-top: 16px; font-size: .92rem; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 2vw; }
.lb-next { right: 2vw; }
.lb-close { top: 3vh; right: 3vw; transform: none; }

/* ---------- cta + footer ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin-inline: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.site-foot { background: var(--ink); color: #8b939c; padding: 56px 0 30px; font-size: .9rem; }
.site-foot a { color: #d3d8de; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-grid h4 { color: #fff; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem;
}
.disclaimer { font-size: .8rem; line-height: 1.6; color: #767d85; max-width: 78ch; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .head-cta { display: none; }
  .burger { display: block; }
  .tabs {
    position: fixed; inset: var(--head-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0; padding: 10px 16px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .tabs[data-open="false"] { display: none; }
  .tabs a { padding: 13px 10px; font-size: 1rem; border-radius: 8px; }
  .tabs a[aria-current="page"] { background: var(--red-soft); color: var(--red-dark); }
  .tabs a[aria-current="page"]::after { display: none; }
  .gallery { columns: 2 220px; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .card { padding: 24px 20px; }
}

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