:root {
  --bg: #0e1110;
  --bg-alt: #141918;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.72);
  --faint: rgba(244, 241, 234, 0.45);
  --line: rgba(244, 241, 234, 0.1);
  --emerald: #2dd4a0;
  --emerald-dim: rgba(45, 212, 160, 0.16);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(45, 212, 160, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(45, 212, 160, 0.06), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: #6ee7b7;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--emerald);
  color: #06281c;
  font-weight: 600;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Nav */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(14, 17, 16, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.nav-dash {
  color: var(--faint);
  font-weight: 400;
}

.nav-tagline {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav nav a:hover {
  color: var(--ink);
}

/* Hero: one composition, brand-first */

.hero {
  position: relative;
  min-height: min(100vh, 56rem);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.55;
}

.hero-media-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 17, 16, 0.96) 0%, rgba(14, 17, 16, 0.78) 42%, rgba(14, 17, 16, 0.35) 70%, rgba(14, 17, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(14, 17, 16, 0.2) 0%, rgba(14, 17, 16, 0.15) 50%, rgba(14, 17, 16, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 40rem;
  padding: 7rem 1.5rem 4.5rem;
  margin: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.role {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}

.tagline {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--ink);
}

.tagline em {
  font-style: italic;
  color: var(--emerald);
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  color: #06281c;
}

.btn-primary:hover {
  background: #6ee7b7;
  color: #06281c;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--faint);
  color: var(--ink);
}

/* Sections */

.section {
  padding: 5.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 1.35rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-cta {
  margin: 2rem 0 0;
  font-weight: 600;
}

.section-cta a {
  text-decoration: none;
}

.section-cta a:hover {
  text-decoration: underline;
}

.pillars {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.pillars h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.pillars p {
  margin: 0;
  color: var(--muted);
}

.pillars em {
  font-style: italic;
  color: var(--ink);
}

.timeline {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem 1.25rem;
  align-items: start;
  padding-left: 0;
  border-left: none;
}

.timeline .year {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--emerald);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.timeline-body {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--emerald-dim);
}

.timeline .when {
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.timeline .what {
  color: var(--muted);
}

@media (max-width: 560px) {
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .timeline .year {
    padding-top: 0;
  }

  .timeline-body {
    padding-left: 1rem;
  }
}

.aside {
  margin: 3rem 0 0;
  max-width: 40rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.05rem;
}

.aside strong {
  color: var(--ink);
  font-weight: 600;
}

.speak-topics {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
}

.speak-topics li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--muted);
}

.speak-topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--emerald);
}

.connect-inner {
  max-width: 36rem;
}

.connect-inner-wide {
  max-width: 54rem;
}

.connect-welcome {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .connect-welcome {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 3rem;
  }
}

.connect-form-panel {
  padding: 0;
}

.connect-side {
  display: grid;
  gap: 2rem;
  padding-top: 0.15rem;
}

.connect-side-block {
  display: grid;
  gap: 0.75rem;
}

.connect-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
}

.book-panel {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.book-card-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.book-card-cta {
  justify-self: start;
  margin-top: 0.35rem;
}

.chameleon-mount-form {
  /* Match personal site dark theme for SDK support-form */
  --chameleon-primary: var(--emerald);
  --chameleon-accent: var(--emerald);
  --chameleon-fg: var(--ink);
  --chameleon-muted: var(--muted);
  --chameleon-border: var(--line);
  --chameleon-input-bg: var(--bg-alt);
  --chameleon-card-bg: transparent;
  --chameleon-font: var(--sans);
  margin-top: 1rem;
}

/* Beat SDK autoTheme, which samples this page's pill .btn (999px) into --chameleon-radius */
[data-chameleon="support-form"].chameleon-mount-form {
  --chameleon-radius: 8px;
}

.chameleon-mount-form .chm-btn,
.chameleon-mount-form button {
  font-family: inherit;
}

.chameleon-mount-form input,
.chameleon-mount-form select,
.chameleon-mount-form textarea,
.chameleon-mount-form button {
  font-family: inherit;
}

.chameleon-mount-form input::placeholder,
.chameleon-mount-form textarea::placeholder {
  font-family: inherit;
  color: var(--faint);
}

.connect-primary {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.connect-primary:hover {
  color: var(--emerald);
}

.connect-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.connect-secondary a {
  color: var(--muted);
  text-decoration: none;
}

.connect-secondary a:hover {
  color: var(--emerald);
}

.connect-secondary .sep {
  color: var(--faint);
}

.links {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.links a {
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
}

.links a:hover {
  color: var(--emerald);
}

.site-footer {
  padding: 2.5rem 1.5rem 3.25rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
}

.powered-pill {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e5e5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  max-width: none;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.powered-pill-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.powered-pill img {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.75;
}

.powered-pill-brand {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
  background: linear-gradient(90deg, #ff3399, #e879f9, #aa66ff, #33ccff, #33ffdd, #10b981, #ff3399);
  background-size: 300% 100%;
  animation: chameleonShine 40s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes chameleonShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.powered-pill:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.18);
}

.footer-sdk-note {
  margin: 0;
  max-width: 28rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--faint);
}

.site-footer p {
  margin: 0;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero-media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
  }

  .hero-media img {
    opacity: 1;
  }

  .hero-media-fade {
    background:
      linear-gradient(90deg, var(--bg) 0%, transparent 28%),
      linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    padding: 6rem 2rem 6rem 3rem;
    max-width: none;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .site-nav {
    padding-inline: 2.5rem;
  }

  .section {
    padding: 7rem 2.5rem;
  }
}
