:root {
  --bg: #FFFFFF;
  --surface: #ffffff;
  --card: #F3F4F6;
  --text: #1c1b1a;
  --muted: #5f5b56;
  --line: #e6e1da;
  --accent: #10B981;
  --accent-text: #047857;
  --accent-ink: #1c1b1a;
  --radius: 14px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1d1b1a;
    --card: #1d1b1a;
    --text: #f2efea;
    --muted: #a8a29a;
    --line: #2d2a28;
    --accent: #10B981;
    --accent-text: #10B981;
    --accent-ink: #141312;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px max(24px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav { display: flex; gap: 22px; margin-left: auto; }

.header-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 24px;
}

.header-social a {
  display: flex;
  color: var(--muted);
  transition: color 0.2s;
}

.header-social a:hover { color: var(--accent-text); }

.site-header nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--accent-text); }

/* Layout */
main { padding: 0 24px; }

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

.hero { padding: 110px 0 90px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 16ch;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 56ch;
  margin: 26px 0 34px;
  font-size: 1.2rem;
  color: var(--muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Company logo row */
.logo-row { margin-top: 56px; }

.logo-row-label {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-row ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Full-color logos; dark mode swaps in white-text versions via <picture> */
.logo-row picture { display: block; }

.logo-row img {
  display: block;
  width: auto;
  height: var(--h);
}



/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

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

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

/* Sections */
.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  font-size: 1.08rem;
  color: var(--muted);
}

.about-grid p { margin: 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-tag {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card h3 + p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.card-thumb {
  display: block;
  width: calc(100% + 52px);
  height: auto;
  aspect-ratio: 16 / 10;
  margin: -26px -26px 22px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.card-thumb-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
}

.thumb-coke { background: #E61D2B; }
.thumb-aws { background: #232F3E; }

.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* Projects feature */
.section-intro { max-width: 62ch; margin: -12px 0 24px; color: var(--muted); }
.section-intro + .timeline > li:first-child { padding-top: 4px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: center;
  padding: 32px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.feature:hover { border-color: var(--accent); }

.feature-body h3 { font-size: 1.4rem; margin-bottom: 12px; }
.feature-body p:not(.card-tag) { margin: 0 0 12px; color: var(--muted); font-size: 0.97rem; }
.feature-body .actions { gap: 10px; margin-top: 20px; }
.feature-body .btn { padding: 10px 20px; font-size: 0.92rem; }

.feature-media { display: block; }

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: 0; }

.when {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 4px;
}

.what h3 { font-size: 1.25rem; }

.what h3 span {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-text);
  margin-left: 8px;
}

.what p { margin: 8px 0 0; color: var(--muted); }

/* Speaking */
.speaking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 64px;
  align-items: center;
  padding: 72px 0 64px;
}

.speaking-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.speaking-hero .lede { max-width: 60ch; margin: 22px 0 30px; }

.headshot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 20px;
  padding: 28px 32px;
  background: var(--card);
  border-radius: var(--radius);
}

.cta-band h3 { font-size: 1.3rem; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }

/* Projects and tools */
.projects-hero { padding: 72px 0 56px; }
.projects-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.projects-hero .lede { max-width: 60ch; margin: 22px 0 0; }

.case-study h2 { margin-bottom: 18px; }
.case-summary { max-width: 62ch; margin: 0 0 28px; font-size: 1.12rem; color: var(--muted); }

.case-figure { margin: 40px 0 0; }
.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.case-figure figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.case-block { padding: 26px; background: var(--card); border-radius: var(--radius); }
.case-block h3 { font-size: 1.2rem; margin-bottom: 12px; }
.case-block p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.case-list { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.97rem; }
.case-list li + li { margin-top: 8px; }

/* Awards and volunteer */
.honors {
  list-style: none;
  margin: 0;
  padding: 0;
}

.honors li {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.honors li:first-child { padding-top: 0; }
.honors li:last-child { border-bottom: 0; padding-bottom: 0; }

.honors h3 { font-size: 1.1rem; }
.honors p { margin: 0; color: var(--muted); }
.honors .fact { color: var(--text); }

.honors-logos li { align-items: center; }

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 52px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.logo-chip .logo { display: block; width: auto; max-width: 100%; height: 24px; }
.logo-chip .logo-tall { height: 30px; }

.logo-chip-text {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: #1c1b1a;
}

/* Contact */
.contact p { max-width: 52ch; margin: 0 0 26px; color: var(--muted); font-size: 1.1rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.links a { color: var(--muted); }
.links a:hover { color: var(--accent-text); }

/* Footer */
.site-footer {
  padding: 48px 24px 40px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 48px;
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer p { margin: 0; }
.footer-id .brand { display: inline-block; margin-bottom: 10px; color: var(--text); }
.footer-id p + p { margin-top: 8px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  gap: 12px 32px;
  align-content: start;
}

.footer-nav a {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: var(--accent-text); }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover { color: var(--accent-text); }

/* Consent banner */
.consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  width: calc(100% - 32px);
  max-width: 620px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.consent[hidden] { display: none; }

.consent p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.consent-actions { display: flex; gap: 10px; }

.consent .btn {
  padding: 9px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.consent .btn-ghost { color: var(--text); }

/* Mobile */
@media (max-width: 640px) {
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 0.85rem; }
  .hero { padding: 70px 0 60px; }
  .logo-row { margin-top: 44px; }
  .logo-row ul { gap: 16px 22px; }
  .logo-row img { height: calc(var(--h) * 0.72); }
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .site-header nav { width: 100%; justify-content: space-between; order: 2; }
  .header-social { order: 1; }
  .speaking-hero { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 44px; }
  .headshot { width: 160px; order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band { padding: 24px; }
  .cards-2 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .feature-media { order: -1; max-width: 320px; }
  .feature-body .actions { flex-direction: column; }
  .feature-body .btn { text-align: center; }
  .case-grid { grid-template-columns: 1fr; }
  .projects-hero { padding: 48px 0 40px; }
  .site-header nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; row-gap: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .honors li { grid-template-columns: 1fr; gap: 4px; }
  .honors-logos li { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
