:root {
  color-scheme: light;
  --bg: #f3efe7;
  --bg-strong: #e6ddcf;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf9;
  --text: #16211d;
  --muted: #5f6d67;
  --line: rgba(22, 33, 29, 0.12);
  --accent: #bd7b39;
  --accent-deep: #7d4d1a;
  --shadow: 0 20px 60px rgba(31, 38, 35, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(189, 123, 57, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(82, 111, 95, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 44%, #efe7db 100%);
  min-height: 100vh;
}

a {
  color: inherit;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(189, 123, 57, 0.08), transparent 22%);
  z-index: -1;
}

.site-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 20px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(248, 243, 234, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(22, 33, 29, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #21352f, #324d44);
  color: #fff8f0;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
}

.site-nav a.active::after,
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--accent);
}

.site-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(22, 33, 29, 0.1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero,
.split-section,
.about-layout,
.contact-layout {
  display: grid;
  gap: 28px;
}

.hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: start;
  padding: 72px 0 52px;
}

.page-hero {
  padding: 84px 0 18px;
}

.hero-summary {
  padding: 0 0 20px;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.split-section h2,
.story-card h2,
.contact-card h2,
.resume-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.9rem, 5.4vw, 4.9rem);
  line-height: 0.98;
  margin: 12px 0 20px;
  max-width: 10.5ch;
}

.eyebrow,
.panel-label,
.resume-meta span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  font-weight: 800;
}

.eyebrow,
.resume-meta span:last-child {
  color: var(--muted);
}

.lead,
.body-copy,
.resume-card p,
.bullet-list,
.small-note,
.feature-card p,
.timeline-preview p,
.detail-list {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  font-size: 1.04rem;
  max-width: 54ch;
}

.lead.narrow {
  max-width: 44rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.button-tertiary {
  border: 1px solid transparent;
  color: var(--accent-deep);
  background: rgba(189, 123, 57, 0.12);
}

.stat-grid,
.feature-grid,
.timeline-preview,
.icon-card-grid {
  display: grid;
  gap: 18px;
}

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

.stat-grid article,
.feature-card,
.timeline-preview article,
.icon-card,
.focus-card,
.portrait-frame,
.headshot-card,
.credential-panel,
.resume-card,
.story-card,
.sidebar-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-grid article {
  padding: 20px 22px;
}

.stat-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-grid strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.stat-grid span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.portrait-frame,
.headshot-card {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 33, 29, 0.04), rgba(22, 33, 29, 0.01));
}

.portrait-frame {
  min-height: 360px;
}

.headshot-card {
  min-height: 420px;
}

.portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-image-tall {
  min-height: 420px;
}

.focus-card,
.credential-panel,
.story-card,
.sidebar-card,
.contact-card {
  padding: 26px;
}

.focus-card ul,
.detail-list {
  padding-left: 18px;
  margin: 14px 0 0;
  color: var(--muted);
}

.section {
  padding: 24px 0 34px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2,
.split-section h2,
.story-card h2,
.contact-card h2,
.resume-card h2 {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
}

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

.feature-card {
  padding: 24px;
}

.feature-card,
.icon-card,
.resume-card,
.contact-card,
.stat-grid article {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.feature-card:hover,
.icon-card:hover,
.resume-card:hover,
.contact-card:hover,
.stat-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 123, 57, 0.28);
  box-shadow: 0 26px 60px rgba(31, 38, 35, 0.16);
}

.icon-section {
  margin-top: 10px;
}

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

.icon-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.icon-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  margin: 0;
}

.icon-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(189, 123, 57, 0.18), rgba(125, 77, 26, 0.12));
  color: var(--accent-deep);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.highlight-band {
  margin: 18px 0;
  padding: 34px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(29, 46, 40, 0.95), rgba(44, 71, 61, 0.92));
  color: #f6efe4;
  box-shadow: 0 28px 80px rgba(22, 33, 29, 0.22);
}

.highlight-band .eyebrow,
.highlight-band .timeline-preview p,
.highlight-band .timeline-preview span,
.highlight-band .text-link {
  color: rgba(246, 239, 228, 0.78);
}

.highlight-band .section-heading h2,
.highlight-band .timeline-preview h3 {
  color: #fff8ef;
}

.timeline-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.timeline-preview article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.text-link {
  text-decoration: none;
  font-weight: 700;
}

.split-section {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  align-items: start;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.tag-group span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(189, 123, 57, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.resume-stack {
  display: grid;
  gap: 20px;
}

.resume-card {
  padding: 24px;
}

.resume-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.role-line {
  margin-top: -4px;
  font-weight: 700;
  color: var(--accent-deep);
}

.bullet-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.about-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quick-facts article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.quick-facts article:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 123, 57, 0.28);
  box-shadow: 0 26px 60px rgba(31, 38, 35, 0.16);
}

.quick-facts strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.quick-facts span {
  color: var(--muted);
  line-height: 1.7;
}

.profile-stack {
  display: grid;
  gap: 18px;
}

.dual-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card p + p {
  margin-top: 18px;
}

.spacious-list {
  margin: 0;
}

.spacious-list li + li {
  margin-top: 10px;
}

.contact-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-link {
  display: block;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0;
}

.callout-card {
  background: linear-gradient(180deg, rgba(189, 123, 57, 0.16), rgba(255, 255, 255, 0.88));
}

.bottom-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 237, 225, 0.9)),
    rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.bottom-cta h2 {
  margin: 6px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

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

.contact-sheet {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 33, 29, 0.08);
  box-shadow: 0 16px 40px rgba(31, 38, 35, 0.08);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(22, 33, 29, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(189, 123, 57, 0.7);
  box-shadow: 0 0 0 4px rgba(189, 123, 57, 0.12);
  background: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 30px 0 18px;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero,
  .split-section,
  .about-layout,
  .quick-facts,
  .dual-panel,
  .contact-layout,
  .feature-grid,
  .timeline-preview,
  .stat-grid,
  .icon-card-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 14px;
    padding-top: 10px;
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }

  .bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 16px;
  }

  .site-header,
  .highlight-band,
  .focus-card,
  .portrait-frame,
  .headshot-card,
  .credential-panel,
  .resume-card,
  .story-card,
  .sidebar-card,
  .contact-card {
    border-radius: 22px;
  }

  .hero,
  .page-hero {
    padding-top: 52px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  body.motion-ready .reveal,
  body.motion-ready .reveal.is-visible,
  .site-header,
  .feature-card,
  .icon-card,
  .resume-card,
  .contact-card,
  .stat-grid article,
  .button {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
