:root {
  --bg: #f7faf8;
  --bg-green: #eef4f0;
  --bg-green-mid: #dce8df;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --white: #ffffff;
  --ink: #1e2b24;
  --ink-muted: #4a5c52;
  --accent: #3f5f49;
  --accent-deep: #2f4a38;
  --border-subtle: rgba(111, 143, 120, 0.22);
  --border-strong: rgba(111, 143, 120, 0.38);
  --primary: #6f8f78;
  --primary-hover: #5f7f68;
  --primary-soft: #e8f0ea;
  --secondary: #5a7f6a;
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --text-body: 1.0625rem;
  --text-lead: 1.125rem;
  --text-small: 0.9375rem;
  --text-label: 0.75rem;
  --leading-body: 1.7;
  --leading-relaxed: 1.75;
  --max-width: 1120px;
  --page-pad: 28px;
  --section-gap: 96px;
  --section-gap-tight: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 43, 36, 0.04), 0 4px 12px rgba(30, 43, 36, 0.05);
  --shadow-md: 0 2px 4px rgba(30, 43, 36, 0.04), 0 12px 32px rgba(30, 43, 36, 0.07);
  --shadow-hover: 0 4px 8px rgba(30, 43, 36, 0.06), 0 16px 40px rgba(30, 43, 36, 0.09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 106.25%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../assets/BOISLDS.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(247, 250, 248, 0.72);
  pointer-events: none;
  z-index: 0;
}

.site-main {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(247, 250, 248, 0.55) 0%,
    rgba(238, 244, 240, 0.78) 30%,
    rgba(238, 244, 240, 0.88) 60%,
    rgba(247, 250, 248, 0.94) 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
}

/* ── Topbar ── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topbar-inner,
.page-grid {
  width: min(var(--max-width), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent);
  background: rgba(111, 143, 120, 0.1);
}

.site-nav a.is-active {
  color: var(--accent-deep);
  background: rgba(111, 143, 120, 0.14);
  font-weight: 600;
}

/* ── Buttons ── */

.connect-link,
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  min-height: 46px;
  min-width: 148px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  transform: translateY(0);
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.connect-link::after,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: translateX(-140%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.connect-link,
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.connect-link:hover,
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-deep);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--accent-deep);
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(111, 143, 120, 0.45);
  font-weight: 600;
}

.btn-secondary:hover {
  background: rgba(232, 240, 234, 1);
  border-color: var(--primary);
  color: var(--accent-deep);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--accent-deep);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--accent-deep);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-white svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.btn-linkedin svg {
  color: #0a66c2;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}

.btn-copy-email {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}

.btn-copy-email:hover {
  background: rgba(247, 250, 248, 0.9);
  border-color: var(--border-subtle);
  color: var(--ink-muted);
  box-shadow: none;
  transform: translateY(-1px);
}

.connect-link:hover::after,
.btn:hover::after {
  transform: translateX(140%);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin: 5px 0;
  border-radius: 1px;
}

/* ── Shared surfaces ── */

.surface-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ── Hero ── */

.hero-section {
  color: var(--ink);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 80px 0 72px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, 0.68fr);
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 40px 44px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  width: 100%;
  min-width: 0;
}

.hero-photo {
  margin: 0;
  align-self: center;
}

.hero-photo img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.section-label,
.experience-date {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-text {
  max-width: 40rem;
  font-size: var(--text-lead);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid var(--border-subtle);
  color: var(--accent-deep);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Sections ── */

.content-section {
  padding: var(--section-gap) 0;
}

.section-surface {
  background: rgba(255, 255, 255, 0.35);
}

.section-surface-alt {
  background: rgba(238, 244, 240, 0.5);
}

.section-label {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}

.section-intro {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
  max-width: 40rem;
}

/* ── Featured work ── */

.featured-work-layout,
.skills-layout,
.experience-layout,
.about-layout {
  display: grid;
  gap: 40px;
}

.featured-work-header h2,
.skills-header h2 {
  max-width: 28ch;
}

.featured-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.feature-card-kicker {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}

.feature-card p {
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
}

.feature-list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 14px;
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
}

/* ── Skills ── */

.skills-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.skill-category-card,
.skill-stat-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.skill-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.skill-card-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  color: var(--accent);
}

.skill-card-icon svg {
  width: 100%;
  height: 100%;
}

.skill-card-title {
  font-family: var(--font-body);
  font-size: var(--text-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.skill-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  font-size: 0.8125rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(238, 244, 240, 0.9);
  color: var(--accent-deep);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
}

.skills-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.skill-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.skill-stat-label {
  font-size: var(--text-small);
  line-height: var(--leading-body);
  color: var(--ink-muted);
}

/* ── Experience ── */

.experience-header h2 {
  max-width: none;
}

.experience-timeline {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 36px 36px 36px 52px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.experience-timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 28px;
  width: 1px;
  background: var(--border-strong);
}

.experience-entry {
  position: relative;
  padding-left: 4px;
}

.experience-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 2px solid var(--primary);
}

.experience-content {
  min-width: 0;
}

.experience-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.experience-meta-row time {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink-muted);
}

.experience-badge {
  font-size: var(--text-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent-deep);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
}

.experience-badge-current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.experience-company {
  font-size: var(--text-small);
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.experience-org {
  margin-top: -4px;
  margin-bottom: 8px;
}

.experience-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.experience-summary,
.experience-content li {
  font-size: var(--text-small);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
}

.experience-content ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.experience-content li {
  position: relative;
  padding-left: 14px;
}

.experience-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--primary);
}

.experience-entry-muted .experience-content li::before {
  background: rgba(111, 143, 120, 0.45);
}

.experience-entry-muted .experience-marker {
  border-color: rgba(111, 143, 120, 0.5);
}

/* ── About ── */

.about-intro h2 {
  max-width: none;
  margin-bottom: 20px;
}

.about-copy {
  display: grid;
  gap: 16px;
  max-width: 46rem;
}

.about-copy p {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--ink-muted);
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.about-meta-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 28px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.about-meta-heading {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.about-certs,
.about-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.about-meta-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  flex: 1;
  min-height: 52px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
}

.about-meta-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.about-meta-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary);
}

.about-meta-icon svg {
  width: 100%;
  height: 100%;
}

.about-detail-label {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.about-meta-value {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink);
  line-height: var(--leading-body);
}

.about-meta-value a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.about-meta-value a:hover {
  color: var(--accent-deep);
}

/* ── Contact ── */

.contact-section {
  padding-bottom: 112px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  padding: 40px 44px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-intro h2 {
  max-width: none;
  margin-bottom: 12px;
}

.contact-action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  height: 100%;
}

.contact-action .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.btn-email {
  grid-column: 1 / -1;
}

.btn-linkedin {
  grid-column: auto;
  white-space: nowrap;
  padding-inline: 22px;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.btn-email svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.btn-copy-email svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.btn-copy-email {
  justify-content: center;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ── Responsive ── */

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    position: absolute;
    height: 100%;
  }

  .topbar-inner {
    grid-template-columns: auto auto;
    position: relative;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .connect-link {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px var(--page-pad);
    text-align: left;
    border-radius: var(--radius-sm);
  }

  .hero-panel,
  .featured-work-grid,
  .skills-card-grid,
  .skills-stats,
  .about-meta,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    justify-self: center;
    width: min(100%, 260px);
  }

  .hero-section {
    padding: 56px 0;
    min-height: auto;
  }

  .hero-panel {
    padding: 28px;
    gap: 32px;
  }

  .contact-action {
    grid-template-columns: 1fr;
  }

  .btn-email {
    grid-column: auto;
  }

  .experience-timeline {
    padding: 28px 28px 28px 44px;
  }

  .experience-timeline::before {
    left: 22px;
    top: 28px;
    bottom: 28px;
  }

  .experience-marker {
    left: -28px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 20px;
    --section-gap: 72px;
  }

  .topbar-inner {
    min-height: 60px;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
    line-height: 1.26;
  }

  .hero-text {
    font-size: var(--text-body);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-highlights {
    gap: 6px;
  }

  .btn,
  .connect-link {
    width: 100%;
    min-width: 0;
  }

  .contact-layout {
    padding: 28px;
  }

  .feature-card,
  .skill-category-card,
  .skill-stat-card,
  .about-meta-block {
    padding: 22px;
  }
}
