/* Mike Chahinian speaker site. Colors and type match the Claude artifact draft. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f4f1;
  --bg-card: #f8f8f7;
  --ink: #1c2228;
  --ink-soft: #3d4449;
  --muted: #6a7174;
  --line: #e3e4e0;
  --teal: #1a6f68;
  --teal-dark: #0c5c56;
  --teal-deep: #0a4f4a;
  --gold: #e0a01c;
  --dark: #102028;
  --dark-2: #16303a;
  --white: #ffffff;
  --max: 1120px;
  --nav-h: 72px;
  --radius: 18px;
  --font-serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
h3 { font-size: 1.55rem; letter-spacing: -0.015em; }

.section { padding: 5.25rem 0; }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 2.25rem; }
.section-head p { margin: 1rem 0 0; color: var(--ink-soft); max-width: 38rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 12px;
  border-radius: 1px;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}
.nav a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover { color: var(--teal-dark); }
.nav .btn-nav {
  background: var(--teal-dark);
  color: var(--white);
  padding: 0.52rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
}
.nav .btn-nav:hover { background: var(--teal-deep); color: var(--white); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--teal-dark);
  color: var(--white);
  border-color: var(--teal-dark);
}
.btn-primary:hover { background: var(--teal-deep); color: var(--white); border-color: var(--teal-deep); }
.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--teal) 8%, transparent); color: var(--teal-deep); }
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  font-weight: 650;
}
.btn-gold:hover { background: #c98b10; border-color: #c98b10; color: var(--dark); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ----- Hero ----- */
.hero { padding: 4.25rem 0 3.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem 3rem;
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 1.5rem;
}
.hero h1 .accent { color: var(--teal); display: block; }
.hero-dek {
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}
.diagram-wrap { min-width: 0; padding-top: 2.6rem; }
.diagram-wrap svg { width: 100%; height: auto; display: block; }
.diagram-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--muted);
}
.diagram-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.swatch { width: 18px; height: 2px; display: inline-block; }
.swatch-bond { background: var(--teal); }
.swatch-bridge { background: var(--gold); height: 2.5px; }

.watch-line {
  margin-top: 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--muted);
}
.watch-line strong {
  font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--font-sans);
}

/* ----- Why it matters ----- */
.why { padding-bottom: 5.5rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
  margin-top: 2rem;
}
.stat-figure {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.7rem;
}
.stat-copy { margin: 0 0 0.7rem; color: var(--ink-soft); font-size: 1.02rem; }
.stat-source {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.stat-source a { color: var(--teal); }

/* ----- Talks ----- */
.talk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.talk-card {
  background: var(--bg-card);
  border: 1px solid #e8e8e6;
  border-radius: var(--radius);
  padding: 1.6rem 1.65rem 1.5rem;
  min-width: 0;
}
.talk-card .audience {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.7rem;
  line-height: 1.4;
  text-wrap: balance;
}
.talk-card h3 { margin: 0 0 0.75rem; }
.talk-card p { margin: 0 0 1rem; color: var(--ink-soft); }
.talk-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
}
.talk-card li { margin: 0.35rem 0; padding-left: 0.15rem; }
.talk-card li::marker { color: var(--teal); }

.format-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.pill {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-card);
  border: 1px solid #e4e5e2;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  line-height: 1.3;
}

/* ----- Work ----- */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem 4rem;
  align-items: start;
}
.work-copy p { margin: 0 0 1.05rem; color: var(--ink-soft); }
.work-copy p:last-child { margin-bottom: 0; }
.work-stats { min-width: 0; }
.work-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.15rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.work-stat:first-child { padding-top: 0.15rem; }
.work-figure {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.15rem;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.work-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
}
.work-note {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.work-footnotes {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}
.work-footnotes li { margin: 0.3rem 0; }
.work-footnotes a { color: var(--teal); }

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.25rem 2.75rem;
  align-items: start;
}
.portrait {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 22px;
  background: #e6e7e3;
}
.about-copy h2 { margin-bottom: 1.15rem; max-width: 18ch; }
.about-copy p { margin: 0 0 1.05rem; color: var(--ink-soft); }
.bio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem 2rem;
  margin: 1.5rem 0 0;
}
.bio-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bio-grid li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.bio-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.nowrap { white-space: nowrap; }

/* ----- Who ----- */
.who-pills { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }
.who-pills .pill {
  background: var(--white);
  border-color: #e0e1dd;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ----- FAQ ----- */
.faq-list { margin-top: 0.5rem; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.25rem;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 0.45rem;
}
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ----- Book ----- */
.book-band {
  background: var(--dark);
  color: #e8ecec;
  border-radius: 28px;
  padding: 3rem 3rem 2.75rem;
}
.book-band h2 { color: var(--white); }
.book-band h2 .line-break { display: block; }
.book-dek {
  margin: 1rem 0 2rem;
  color: #c5cdcf;
  max-width: 34rem;
}
.inquiry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #c9d1d3;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d5d8d4;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  line-height: 1.3;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 70%, white);
  outline-offset: 1px;
  border-color: transparent;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 0.35rem;
}
.form-actions .btn { min-width: 10rem; }
.form-aside {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #c5cdcf;
}
.form-aside a { color: #f0f3f3; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.form-status[data-state="ok"] { color: #d6e8c8; }
.form-status[data-state="err"] { color: #f3c9a8; }
.form-status:empty { display: none; }

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- Footer ----- */
.site-footer {
  padding: 1.75rem 0 2.25rem;
}
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-links { display: flex; gap: 1.1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--teal-dark); text-decoration: underline; }

/* Testimonials stay in the DOM for later, but are not shown until quotes exist. */
#testimonials { display: none; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .hero-grid,
  .work-grid,
  .talk-grid,
  .about-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-grid .portrait { width: 200px; height: 200px; }
  .hero { padding-top: 2.75rem; }
  .book-band { padding: 2.1rem 1.4rem; }
  .diagram-wrap { padding-top: 0.5rem; max-width: 420px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1.25rem 1.1rem;
    gap: 0;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn-nav {
    margin-top: 0.7rem;
    text-align: center;
    border-bottom: 0;
  }
  .wrap, .header-inner, .footer-inner { width: calc(100% - 32px); }
  .inquiry { grid-template-columns: 1fr; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 2.45rem; }
  .section { padding: 3.4rem 0; }
  .why { padding-bottom: 3.6rem; }
  .hero { padding-bottom: 2.5rem; }
  .eyebrow { letter-spacing: 0.11em; font-size: 0.68rem; }
  .bio-grid { grid-template-columns: 1fr; }
  .book-band h2 { font-size: 1.7rem; }
  .book-band { padding: 2rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
