:root {
  --bg: #f6f1e8;
  --surface: #ffffff;
  --surface-strong: #101820;
  --ink: #101820;
  --muted: #667085;
  --line: #ded7cb;
  --accent: #007c89;
  --accent-strong: #005d66;
  --rust: #b85c38;
  --gold: #d7a84f;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--surface-strong);
  color: #fff;
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(16, 24, 32, 0.08);
  box-shadow: 0 10px 32px rgba(16, 24, 32, 0.08);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: #fff;
  letter-spacing: 0;
}

.brand-text {
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  padding: 0.65rem 0.72rem;
  border-radius: var(--radius);
  color: #38424d;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(0, 124, 137, 0.1);
  color: var(--accent-strong);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  display: grid;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.15rem;
  font-size: clamp(2.85rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-statement {
  max-width: 790px;
  margin-bottom: 0.9rem;
  color: #26323e;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}

.hero-lede,
.section-lede {
  max-width: 720px;
  color: #394553;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary,
.button-quiet {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(16, 24, 32, 0.14);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--accent);
}

.button-quiet {
  background: transparent;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 74px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 150px;
  background:
    linear-gradient(135deg, rgba(0, 124, 137, 0.92), rgba(184, 92, 56, 0.84)),
    var(--surface-strong);
}

.profile-panel img {
  position: relative;
  z-index: 1;
  width: min(245px, 62vw);
  height: min(245px, 62vw);
  object-fit: cover;
  object-position: center 42%;
  border: 7px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.profile-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.25rem 1.4rem 1.55rem;
}

.profile-name {
  margin-bottom: 0.2rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.profile-role {
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.74);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.availability span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #31d07e;
  box-shadow: 0 0 0 6px rgba(49, 208, 126, 0.16);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.about-section {
  padding-top: 48px;
}

.about-copy {
  max-width: 760px;
  color: #394553;
  font-size: 1.05rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.intro-band,
.ai-section,
.contact-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--surface-strong);
  color: #fff;
}

.intro-band .eyebrow,
.ai-section .eyebrow,
.contact-section .eyebrow {
  color: var(--gold);
}

.intro-band h2 {
  max-width: 560px;
}

.strength-list {
  display: grid;
  gap: 1rem;
}

.strength-list article {
  padding-bottom: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.strength-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.strength-list p,
.contact-section p,
.ai-section .section-lede {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  color: var(--rust);
  font-weight: 800;
}

.timeline-body {
  display: grid;
  gap: 1rem;
}

.timeline-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-title p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.timeline-note {
  max-width: 700px;
  margin: 0;
  color: #4b5563;
}

.secondary-item {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.role-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(0, 124, 137, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 124, 137, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.muted-tag {
  border-color: rgba(16, 24, 32, 0.12);
  background: rgba(16, 24, 32, 0.05);
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #394553;
}

li + li {
  margin-top: 0.58rem;
}

.projects-section {
  padding-top: 54px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card,
.skills-grid article,
.education-card,
.current-card,
.focus-grid article {
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(16, 24, 32, 0.06);
}

.project-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.featured-card {
  background: #fff;
  border-color: rgba(0, 124, 137, 0.28);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.05rem;
}

.project-meta span {
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius);
  background: rgba(0, 124, 137, 0.1);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.project-subtitle {
  min-height: 3rem;
  margin-bottom: 1rem;
  color: var(--rust);
  font-weight: 800;
}

.project-details {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.2rem;
}

.project-details div {
  display: grid;
  gap: 0.2rem;
}

.project-details dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-details dd {
  margin: 0;
  color: #4b5563;
}

.project-card p,
.skills-grid p,
.education-card p,
.current-card p {
  color: #4b5563;
}

.project-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.project-card a:hover,
.project-card a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.ai-section {
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.96), rgba(16, 24, 32, 1)),
    var(--surface-strong);
}

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

.focus-grid article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  padding: 1.25rem;
  box-shadow: none;
}

.focus-grid h3 {
  color: #fff;
}

.check-list {
  display: grid;
  gap: 0.52rem;
  padding-left: 0;
  color: rgba(255, 255, 255, 0.76);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.check-list li + li {
  margin-top: 0;
}

.skills-section {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: #ece5d8;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skills-grid article {
  padding: 1.2rem;
}

.current-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.current-card {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: #fff;
  border-color: rgba(184, 92, 56, 0.24);
}

.current-card h2 {
  max-width: 780px;
}

.current-card p:not(.eyebrow) {
  max-width: 820px;
  margin: 1rem 0 0;
  font-size: 1.08rem;
}

.education-section {
  padding-top: 42px;
}

.education-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
}

.education-meta {
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.contact-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.contact-wrap h2 {
  max-width: 760px;
}

.contact-wrap p {
  max-width: 720px;
  margin-top: 1rem;
}

.contact-section .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }

  .project-subtitle {
    min-height: 0;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 76px 20px auto 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.9rem;
  }

  .hero-grid,
  .section-grid,
  .timeline-item,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 520px;
  }

  .profile-panel img {
    width: min(245px, 66vw);
    height: min(245px, 66vw);
  }

  .skills-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .timeline-title,
  .education-card {
    display: block;
  }

  .role-tag {
    margin-top: 0.8rem;
  }

  .education-meta {
    min-width: 0;
    margin-top: 1rem;
    text-align: left;
  }

  .split-heading {
    display: block;
  }

  .split-heading .text-link {
    display: inline-flex;
    margin-top: 1rem;
  }
}

@media (max-width: 620px) {
  .nav,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .intro-band,
  .ai-section,
  .skills-section,
  .contact-section {
    width: 100%;
  }

  .brand-text {
    display: none;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    padding-top: 48px;
  }

  .intro-band,
  .ai-section,
  .skills-section,
  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.75rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.6rem);
  }

  .hero-statement {
    font-size: 1.06rem;
  }

  .button,
  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    min-height: 52px;
  }

  .project-card,
  .skills-grid article,
  .focus-grid article,
  .education-card,
  .current-card {
    padding: 1rem;
  }
}
