:root {
  color-scheme: light;
  --paper: #fbfcfb;
  --paper-deep: #eef7f0;
  --surface: #ffffff;
  --surface-muted: #f3f5f2;
  --ink: #202620;
  --muted: #657068;
  --olive: #577b5d;
  --olive-dark: #2d5536;
  --line: rgba(32, 39, 32, 0.15);
  --white: #ffffff;
  --page-gradient-start: #ffffff;
  --nav-bg: rgba(251, 252, 251, 0.9);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --shadow: rgba(32, 39, 32, 0.14);
  --panel-bg: rgba(255, 255, 255, 0.72);
  --button-text: #ffffff;
  --nav-highlight-bg: #e1ecdf;
  --nav-highlight-text: #233d2a;
  --image-filter: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111512;
    --paper-deep: #16231a;
    --surface: #1a1e1b;
    --surface-muted: #242924;
    --ink: #f2f6ef;
    --muted: #a8b3a8;
    --olive: #8caf86;
    --olive-dark: #b6d1ae;
    --line: rgba(242, 246, 239, 0.15);
    --white: #101411;
    --page-gradient-start: #101411;
    --nav-bg: rgba(17, 21, 18, 0.9);
    --dropdown-bg: rgba(26, 30, 27, 0.98);
    --shadow: rgba(0, 0, 0, 0.36);
    --panel-bg: rgba(26, 30, 27, 0.72);
    --button-text: #101411;
    --nav-highlight-bg: #2c3c30;
    --nav-highlight-text: #f2f6ef;
    --image-filter: brightness(0.86) saturate(0.92);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #fbfcfb;
  --paper-deep: #eef7f0;
  --surface: #ffffff;
  --surface-muted: #f3f5f2;
  --ink: #202620;
  --muted: #657068;
  --olive: #577b5d;
  --olive-dark: #2d5536;
  --line: rgba(32, 39, 32, 0.15);
  --white: #ffffff;
  --page-gradient-start: #ffffff;
  --nav-bg: rgba(251, 252, 251, 0.9);
  --dropdown-bg: rgba(255, 255, 255, 0.98);
  --shadow: rgba(32, 39, 32, 0.14);
  --panel-bg: rgba(255, 255, 255, 0.72);
  --button-text: #ffffff;
  --nav-highlight-bg: #e1ecdf;
  --nav-highlight-text: #233d2a;
  --image-filter: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111512;
  --paper-deep: #16231a;
  --surface: #1a1e1b;
  --surface-muted: #242924;
  --ink: #f2f6ef;
  --muted: #a8b3a8;
  --olive: #8caf86;
  --olive-dark: #b6d1ae;
  --line: rgba(242, 246, 239, 0.15);
  --white: #101411;
  --page-gradient-start: #101411;
  --nav-bg: rgba(17, 21, 18, 0.9);
  --dropdown-bg: rgba(26, 30, 27, 0.98);
  --shadow: rgba(0, 0, 0, 0.36);
  --panel-bg: rgba(26, 30, 27, 0.72);
  --button-text: #101411;
  --nav-highlight-bg: #2c3c30;
  --nav-highlight-text: #f2f6ef;
  --image-filter: brightness(0.86) saturate(0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: linear-gradient(135deg, var(--page-gradient-start), var(--paper-deep));
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  margin-inline: auto;
  max-width: 1160px;
  padding-inline: 1.25rem;
  width: 100%;
}

.navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar-brand,
h1,
h2,
.experience-meta strong {
  font-family: "Libre Baskerville", Georgia, serif;
}

.navbar-brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
}

.navbar > .container {
  align-items: center;
  display: flex;
  gap: 1rem;
  position: relative;
}

.navbar-brand {
  flex: 0 0 auto;
}

.nav-section-control {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  position: relative;
}

.navbar-collapse {
  background: var(--dropdown-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  display: none;
  min-width: 14rem;
  padding: 0.45rem;
  position: absolute;
  left: 50%;
  right: auto;
  top: calc(100% + 0.55rem);
  transform: translate(-50%, -4px);
  z-index: 20;
}

.navbar-collapse.is-open {
  animation: dropdown-in 180ms ease forwards;
  display: block;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  border-radius: 6px;
  color: var(--muted);
  display: block;
  font-weight: 700;
  padding: 0.7rem 0.85rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  background: var(--nav-highlight-bg);
  color: var(--nav-highlight-text);
}

.section-selector {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px dotted currentColor;
  color: var(--ink);
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 0 0.16rem;
  text-align: center;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translate(-50%, -4px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.current-section-label {
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.current-section-label.is-changing {
  opacity: 0;
  transform: translateY(3px);
}

.section-selector:hover,
.section-selector:focus {
  color: var(--olive-dark);
  outline: 0;
}

.social-links {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.85rem;
  margin-left: 0;
}

.social-links a {
  align-items: center;
  color: var(--olive-dark);
  display: inline-flex;
  height: 1.35rem;
  justify-content: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  width: 1.35rem;
}

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--olive-dark);
  display: inline-flex;
  height: 1.35rem;
  justify-content: center;
  padding: 0;
  width: 1.35rem;
}

.theme-toggle:hover,
.theme-toggle:focus {
  color: var(--ink);
  outline: 0;
}

.theme-icon {
  fill: currentColor;
  height: 1.16rem;
  width: 1.16rem;
}

.theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-icon-moon {
    display: none;
  }
}

.social-links a:hover,
.social-links a:focus {
  color: var(--ink);
  outline: 0;
}

.social-links svg {
  fill: currentColor;
  height: 1.2rem;
  width: 1.2rem;
}

.section-pad {
  padding: 4.5rem 0;
}

.compact-pad {
  padding-top: 1rem;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 9rem;
}

.eyebrow {
  color: var(--olive-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.98;
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 760px;
  margin-top: 2rem;
}

.hero-content {
  max-width: 860px;
}

.three-point-grid {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-point-grid article {
  min-height: 260px;
  padding: 2rem;
}

.three-point-grid article + article {
  border-left: 1px solid var(--line);
}

.point-number {
  color: var(--olive);
  display: block;
  font-weight: 800;
  margin-bottom: 2rem;
}

.three-point-grid h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  margin-bottom: 1rem;
}

.three-point-grid p,
.experience-copy p,
.fit-section p {
  color: var(--muted);
}

.experience-section {
  background: var(--surface-muted);
}

.section-heading {
  margin-bottom: 3rem;
  max-width: 760px;
}

.experience-list {
  border-top: 1px solid var(--line);
}

.experience-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
  padding: 2.75rem 0;
}

.work-image {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--olive) 16%, transparent), color-mix(in srgb, var(--ink) 4%, transparent)),
    var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--olive-dark);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 150px;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  justify-self: center;
  max-width: 760px;
  width: 100%;
}

.work-image img {
  display: block;
  filter: var(--image-filter);
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.experience-meta span {
  color: var(--olive);
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.experience-meta {
  justify-self: stretch;
  text-align: left;
}

.experience-meta strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.25;
}

.experience-copy {
  justify-self: stretch;
  max-width: 920px;
  text-align: left;
}

.experience-copy p {
  break-inside: avoid;
  margin-bottom: 0;
}

.experience-copy p + p {
  margin-top: 1rem;
}

.fit-section {
  background: var(--paper-deep);
}

.fit-content {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 820px);
}

.fit-section p {
  font-size: 1.18rem;
  margin-bottom: 0;
}

.contact-panel {
  align-items: flex-start;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  min-height: 280px;
  padding: 2.6rem;
}

.contact-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  margin: 0;
}

.contact-copy {
  color: var(--muted);
  margin: 1rem 0 0;
  max-width: 720px;
}

.btn-dark {
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--olive-dark);
  --bs-btn-hover-border-color: var(--olive-dark);
  --bs-btn-color: var(--button-text);
  --bs-btn-hover-color: var(--button-text);
  border-radius: 999px;
  font-weight: 800;
  min-width: 190px;
  padding: 0.9rem 1.4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem 0;
}

.site-footer .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

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

@media (max-width: 991px) {
  body {
    font-size: 17px;
  }

  .section-pad {
    padding: 3.25rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 7.5rem;
  }

  h1 {
    max-width: 11ch;
  }

  .three-point-grid,
  .experience-item,
  .fit-content {
    grid-template-columns: 1fr;
  }

  .three-point-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .experience-copy {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .section-pad {
    padding: 2.25rem 0;
  }

  .hero {
    padding-top: 6.25rem;
    padding-bottom: 3.5rem;
  }

  h1 {
    font-size: 3rem;
    max-width: 10ch;
  }

  .lead {
    font-size: 1.08rem;
  }

  .three-point-grid article,
  .contact-panel {
    padding: 1.4rem;
  }

  .contact-panel {
    min-height: 320px;
  }

  .contact-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .btn-dark {
    width: 100%;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .navbar > .container {
    align-items: center;
    display: flex;
    gap: 0.65rem;
  }

  .navbar-brand {
    flex: 0 0 auto;
  }

  .nav-section-control {
    flex: 1 1 auto;
    min-width: 0;
  }

  .social-links {
    flex: 0 0 auto;
    margin-left: 0;
  }

  .section-selector {
    flex: 0 1 auto;
    margin-left: 0;
    max-width: 7.75rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-collapse {
    left: 50%;
    min-width: 0;
    right: auto;
    top: calc(100% + 0.65rem);
    width: min(calc(100vw - 2.5rem), 18rem);
  }

  .social-links {
    gap: 0.55rem;
  }
}
