/* ==================================================================
   coach.sumu.us — site styles
   Palette and typography mirror coach-promo/design.md exactly.
   ================================================================== */

:root {
  /* Palette (mirror of design.md) */
  --bg:        #0a0e1a;
  --bg-elev:   #131825;
  --fg:        #f5f1e8;
  --fg-mute:   #a9a59b;
  --fg-dim:    #5a6478;
  --accent:    #e8a838;
  --accent-2:  #7dc4d8;
  --accent-3:  #c084fc;
  --hairline:  #1f2738;

  /* Typography (mirror of design.md) */
  --font-display:  "Outfit", system-ui, sans-serif;
  --font-body:     "Inter", system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --max-w:        1180px;
  --pad-x:        32px;
  --section-py:   96px;
  --radius-card:  4px;
  --radius-pill:  999px;

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1); /* power3.out */
  --ease-out-md:  cubic-bezier(0.22, 1, 0.36, 1); /* power2.out */
  --ease-out-x:   cubic-bezier(0.19, 1, 0.22, 1); /* expo.out */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle ambient gradient — same as video background */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 1100px 700px at 25% 15%, rgba(232, 168, 56, 0.06), transparent 60%),
    radial-gradient(ellipse 900px 600px at 80% 80%, rgba(125, 196, 216, 0.04), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 600;
}
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.label.cyan   { color: var(--accent-2); }
.label.violet { color: var(--accent-3); }
p { color: var(--fg-mute); }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--fg); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: var(--section-py) 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.nav { display: flex; gap: 32px; }
.nav a {
  color: var(--fg-mute);
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--fg); }

/* ---------- hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
}
.hero .label { margin-bottom: 16px; }
.hero h1 {
  max-width: 880px; margin: 0 auto 20px;
  text-transform: uppercase;
  font-size: clamp(36px, 5.5vw, 68px);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  max-width: 640px; margin: 0 auto 32px;
  font-size: 19px;
  color: var(--fg-mute);
}
.hero-actions {
  display: inline-flex; gap: 16px; margin-bottom: 56px;
  flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
  transition: all .25s var(--ease-out);
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn.primary:hover { background: #f0b54a; border-color: #f0b54a; color: var(--bg); transform: translateY(-2px); }

/* ---------- animated hero card (replaces MP4 promo) ---------- */
.hero-card {
  position: relative;
  max-width: 1080px; margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  border-radius: 999px 999px 0 0;
  z-index: 4;
}
.hero-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at center, #1a2236 0%, var(--bg) 70%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* Floating ambient orbs (slow drift) */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: orbFade 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 320px; height: 320px;
  top: 20%; left: 25%;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.45), transparent 70%);
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 280px; height: 280px;
  bottom: 15%; right: 22%;
  background: radial-gradient(circle, rgba(125, 196, 216, 0.35), transparent 70%);
  animation-delay: -4s;
}

@keyframes orbFade {
  0%, 100% { opacity: 0.0; transform: scale(0.9); }
  50%      { opacity: 0.7; transform: scale(1.1); }
}

/* Hero content stack */
.hero-content {
  position: relative;
  text-align: center;
  z-index: 3;
  padding: 32px;
}
.hero-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 12vw, 160px);
  letter-spacing: 0.12em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 60px rgba(232, 168, 56, 0.4);
  animation: heroMark 8s ease-in-out infinite;
}
@keyframes heroMark {
  0%, 100% { transform: scale(1);    opacity: 1; }
  35%      { transform: scale(1.04); opacity: 1; }
  50%      { transform: scale(0.98); opacity: 0.92; }
  85%      { transform: scale(1);    opacity: 1; }
}

.hero-roles {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-role { color: var(--fg); }
.hero-sep  { color: var(--accent); opacity: 0.7; }

.hero-line {
  height: 2px;
  width: 120px;
  margin: 0 auto 24px;
  background: var(--accent);
  transform-origin: center;
  animation: heroLine 8s ease-in-out infinite;
}
@keyframes heroLine {
  0%, 30%  { transform: scaleX(0); opacity: 0; }
  40%, 90% { transform: scaleX(1); opacity: 1; }
  100%     { transform: scaleX(0); opacity: 0; }
}

/* Tagline rotator — 24s loop, each tagline visible ~7s */
.hero-tag-track {
  position: relative;
  height: 1.4em;
  display: block;
}
.hero-tag {
  position: absolute;
  top: 0; left: 0; right: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 3.2vw, 36px);
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.hero-tag-1 { animation: heroTag1 24s ease-in-out infinite; }
.hero-tag-2 { animation: heroTag2 24s ease-in-out infinite; }
.hero-tag-3 { animation: heroTag3 24s ease-in-out infinite; }

/* Each tagline is visible ~28% of the loop (6.7s), with brief fade transitions */
@keyframes heroTag1 {
  0%   { opacity: 0; transform: translateY(12px); }
  4%   { opacity: 1; transform: translateY(0); }
  29%  { opacity: 1; transform: translateY(0); }
  33%  { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes heroTag2 {
  0%, 33%  { opacity: 0; transform: translateY(12px); }
  37%      { opacity: 1; transform: translateY(0); }
  62%      { opacity: 1; transform: translateY(0); }
  67%      { opacity: 0; transform: translateY(-8px); }
  100%     { opacity: 0; transform: translateY(12px); }
}
@keyframes heroTag3 {
  0%, 67%  { opacity: 0; transform: translateY(12px); }
  71%      { opacity: 1; transform: translateY(0); }
  96%      { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-8px); }
}

/* Pause animation when visitor hovers (so they can read without motion) */
.hero-card:hover .hero-orb,
.hero-card:hover .hero-mark,
.hero-card:hover .hero-line,
.hero-card:hover .hero-tag {
  animation-play-state: paused;
}

/* Respect reduced-motion preference: show only the first tagline, no animation */
@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-mark, .hero-line, .hero-tag {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-orb { opacity: 0.4; }
  .hero-tag-2, .hero-tag-3 { display: none; }
}

/* ---------- section heading ---------- */
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .label { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 18px; max-width: 640px; }

/* ---------- who I serve (3 cards) ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience .card {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out);
}
.audience .card:hover { transform: translateY(-4px); }
.audience .card:nth-child(2) { border-left-color: var(--accent-2); }
.audience .card:nth-child(3) { border-left-color: var(--accent-3); }
.audience .card .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.audience .card h3 { color: var(--fg); }
.audience .card .meta { color: var(--fg-mute); font-size: 15px; }

/* ---------- speaking (chips) ---------- */
.topics {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.topics .chip {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  padding: 14px 24px;
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  border-radius: var(--radius-card);
  transition: all .25s var(--ease-out);
}
.topics .chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.topics .chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.topics .chip:nth-child(2) .dot { background: var(--accent-2); }
.topics .chip:nth-child(3) .dot { background: var(--accent-3); }

/* ---------- services (rows) ---------- */
.services {
  display: flex; flex-direction: column; gap: 14px;
}
.services .row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px; align-items: center;
  padding: 22px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  transition: all .25s var(--ease-out);
}
.services .row:hover { border-color: var(--accent); }
.services .row .num {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.services .row:nth-child(2) .num { color: var(--accent-2); }
.services .row:nth-child(3) .num { color: var(--accent-3); }
.services .row h3 { font-size: 22px; color: var(--fg); margin-bottom: 2px; }
.services .row .sub { font-size: 14px; color: var(--fg-mute); }
.services .row .arrow { color: var(--fg-dim); font-size: 18px; transition: color .25s, transform .25s; }
.services .row:hover .arrow { color: var(--accent); transform: translateX(4px); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info .channel { margin-bottom: 24px; }
.contact-info .channel .label { margin-bottom: 6px; }
.contact-info .channel .value {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--fg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.contact-info .channel .value a { color: var(--fg); }
.contact-info .channel .value a:hover { color: var(--accent); }

form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field input, .field select, .field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg);
  transition: border-color .2s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; font-family: var(--font-body); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  margin-top: 32px;
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  color: var(--fg-dim);
  font-size: 13px;
}
.site-footer .accent-line { width: 32px; height: 2px; background: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --section-py: 72px; --pad-x: 22px; }
  .nav { display: none; }
  .audience, .contact-grid, .field-row { grid-template-columns: 1fr; }
  .services .row { grid-template-columns: 40px 1fr auto; gap: 16px; padding: 18px 20px; }
  .services .row h3 { font-size: 18px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 16px; }
  .topics .chip { font-size: 16px; padding: 12px 18px; }
}

/* ---------- entrance animations (scroll-triggered) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }