:root {
  --bg: #0b0d14;
  --bg-alt: #10131d;
  --surface: #151926;
  --surface-2: #1b2032;
  --border: #262c40;
  --text: #f4f5f9;
  --text-dim: #a7acc0;
  --text-faint: #7b8099;
  --accent: #7c5cff;
  --accent-2: #22d3c5;
  --accent-grad: linear-gradient(135deg, #7c5cff 0%, #4f8cff 50%, #22d3c5 100%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, iframe { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: inherit; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.back-to-site {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
}
.back-to-site:hover { color: var(--accent); }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-small { padding: 9px 18px; font-size: 0.88rem; }
.btn-large { padding: 15px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(124, 92, 255, 0.75); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-width: 2px;
  border-color: var(--accent);
}
.btn-ghost:hover { border-color: var(--accent-2); background: rgba(124, 92, 255, 0.12); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('images/kent-headshot.png');
  background-size: cover;
  background-position: center 38%;
  opacity: 0.20;
  filter: grayscale(55%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.35), transparent 70%),
              radial-gradient(closest-side, rgba(34, 211, 197, 0.22), transparent 70%);
  background-position: 20% 0%, 80% 20%;
  background-repeat: no-repeat;
  filter: blur(10px);
  pointer-events: none;
  animation: heroGlowDrift 14s ease-in-out infinite alternate;
}
@keyframes heroGlowDrift {
  0% { background-position: 20% 0%, 80% 20%; }
  100% { background-position: 32% 15%, 68% 5%; }
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}
.hero-network line {
  stroke: var(--accent-2);
  stroke-width: 1;
  opacity: 0.25;
}
.hero-network .node {
  fill: var(--accent);
  animation: nodePulse 3.2s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.hero-network .n2, .hero-network .n5, .hero-network .n8 { fill: var(--accent-2); }
.hero-network .n1 { animation-delay: 0s; }
.hero-network .n2 { animation-delay: 0.35s; }
.hero-network .n3 { animation-delay: 0.7s; }
.hero-network .n4 { animation-delay: 1.05s; }
.hero-network .n5 { animation-delay: 1.4s; }
.hero-network .n6 { animation-delay: 1.75s; }
.hero-network .n7 { animation-delay: 2.1s; }
.hero-network .n8 { animation-delay: 2.45s; }
.hero-network .n9 { animation-delay: 2.8s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-network .node { animation: none; }
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.hero-rotator {
  min-height: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 2px 0 18px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-badge {
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  white-space: nowrap;
}

.hero-inner { position: relative; max-width: 780px; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 24px;
}

.hero-trust {
  list-style: none;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.hero-trust li::before {
  content: "✓ ";
  color: var(--accent-2);
}

/* Stats */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 0.88rem;
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-sub { font-size: 1.02rem; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Centered variant: keeps an incomplete last row centered instead of left-justified */
.card-grid-centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.card-grid-centered .card {
  flex: 1 1 calc(25% - 15px);
  max-width: calc(25% - 15px);
}
@media (max-width: 960px) {
  .card-grid-centered .card { flex: 1 1 calc(50% - 10px); max-width: calc(50% - 10px); }
}
@media (max-width: 560px) {
  .card-grid-centered .card { flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon { font-size: 1.6rem; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin: 0; }

/* Steps */
.steps {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.92rem; margin: 0; }

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Form section */
.section-form { padding-top: 64px; }
.section-form a { color: var(--accent-2); text-decoration: underline; }

.form-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-frame iframe {
  width: 100%;
  min-height: 900px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
  background: #fff;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.1rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 12px 0 0; font-size: 0.92rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.footer-inner a {
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}

/* Video page */
.video-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
  background: #000;
}

/* Video grid (shorts) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.video-frame-vertical {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--radius-md) - 4px);
  overflow: hidden;
  background: #000;
}

.video-frame-vertical iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Substack post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--border); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-date { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.post-body h3 { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.post-body h3 a { color: inherit; text-decoration: none; }
.post-body h3 a:hover { color: var(--accent); }
.post-excerpt { font-size: 0.92rem; margin: 0; color: var(--text-muted); }
.post-readmore { font-size: 0.88rem; font-weight: 600; margin-top: 4px; }
.post-empty { text-align: center; color: var(--text-muted); }

/* About section: photo + bio layout */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  max-width: 780px;
  margin: 0 auto 40px;
}
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
}
.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-text p {
  margin: 0 0 16px;
  color: var(--text-dim);
}

/* Milestone photo (Nasdaq bell, etc.) */
.milestone-photo {
  max-width: 320px;
  margin: 0 auto 48px;
  text-align: center;
}
.milestone-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.milestone-photo a { display: block; }
.milestone-photo a:hover img {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.milestone-photo figcaption a { color: var(--accent-2); }
.milestone-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 2-column variant of the video grid (for landscape videos) */
.video-grid-2col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .video-grid-2col { grid-template-columns: 1fr; }
}

/* Spotify button variant */
.btn-spotify {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-spotify::before {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231DB954' d='M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141 4.32-1.32 9.719-.66 13.379 1.621.361.181.54.78.362 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.72-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.42 1.56-.299.421-1.02.599-1.559.3z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}

/* Client list (executive coaching) */
.client-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.client-list span {
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  white-space: nowrap;
}
