:root {
  --bg: #0b1118;
  --bg-raised: #101923;
  --bg-soft: #151f2a;
  --ink: #f4f7fa;
  --ink-muted: #aab7c4;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #64e6b5;
  --accent-dark: #0c2d25;
  --accent-warm: #f1b96b;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 7%, rgba(100, 230, 181, 0.09), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 108px 0;
}

.section-contrast {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--line);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 24, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav .nav-contact {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: center;
}

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

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

h1 {
  max-width: 850px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-lede {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(100, 230, 181, 0.42);
  outline-offset: 3px;
}

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

.button-primary:hover {
  background: #83efc7;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}

.hero-panel {
  position: relative;
  padding: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(100, 230, 181, 0.2), transparent 45%);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(100, 230, 181, 0.1);
}

.profile-facts {
  margin: 0;
}

.profile-facts div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.profile-facts div:last-child {
  padding-bottom: 0;
}

.profile-facts dt {
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  font-weight: 620;
  line-height: 1.45;
}

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

.section-heading.compact {
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

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

.case-card,
.project-card,
.credential-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.case-card {
  padding: 32px;
}

.case-card p,
.case-card li,
.project-card p,
.credential-panel p,
.skills-list p,
.timeline-content > p:last-child {
  color: var(--ink-muted);
}

.case-card ul {
  margin: 22px 0;
  padding-left: 1.15rem;
}

.case-card li + li {
  margin-top: 8px;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.case-meta span:last-child {
  color: var(--ink-muted);
}

.case-value {
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.case-value strong {
  color: var(--ink);
}

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

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

.timeline-date {
  color: var(--accent-warm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.timeline-org {
  margin-bottom: 7px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.timeline-content h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}

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

.project-card {
  min-height: 350px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.project-number {
  margin-bottom: 56px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.project-card h3 {
  font-size: 1.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 28px;
}

.tag-row span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.8fr);
  gap: 72px;
  align-items: start;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 36px;
}

.skills-list h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.skills-list p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

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

.credential-panel {
  padding: 28px;
}

.credential-panel .eyebrow {
  margin-bottom: 22px;
}

.credential-panel h3 {
  margin-bottom: 6px;
}

.credential-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.credential-list li:last-child {
  padding-bottom: 0;
}

.credential-list span:last-child {
  color: var(--ink-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.contact-section {
  padding-top: 30px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px;
  background: linear-gradient(135deg, var(--accent-dark), var(--bg-raised));
  border: 1px solid rgba(100, 230, 181, 0.25);
  border-radius: var(--radius);
}

.contact-panel h2 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.contact-panel .button {
  flex: 0 0 auto;
}

.site-footer {
  padding: 34px 0 46px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.footer-grid p {
  margin-bottom: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 620px;
  }

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

  .project-card {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span[aria-hidden="true"]:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 26px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-contact {
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid {
    gap: 46px;
  }

  h1 {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-panel,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 66px 0;
  }

  .hero {
    padding-top: 76px;
  }

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

  .hero-panel,
  .case-card,
  .project-card,
  .credential-panel,
  .contact-panel {
    padding: 24px;
  }

  .case-meta,
  .credential-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --bg-raised: #ffffff;
    --ink: #111111;
    --ink-muted: #3f4850;
    --line: #cfd5da;
    --line-strong: #aeb7bf;
    --accent: #0b7256;
    --accent-warm: #7b4e10;
  }

  @page {
    size: letter;
    margin: 0.48in;
  }

  body {
    background: #fff;
    font-size: 10.5pt;
  }

  .site-header,
  .shell {
    width: 100%;
  }

  .section,
  .hero {
    min-height: 0;
    padding: 18px 0;
    border: 0;
  }

  .hero-grid,
  .credentials-grid {
    display: block;
  }

  .hero-panel {
    margin-top: 18px;
    padding: 16px;
    box-shadow: none;
  }

  h1 {
    font-size: 34pt;
  }

  h2 {
    font-size: 22pt;
  }

  .hero-lede,
  .section-heading > p:not(.eyebrow) {
    font-size: 10.5pt;
  }

  .case-grid {
    display: block;
  }

  .case-card {
    break-inside: avoid;
    margin-bottom: 10px;
    padding: 14px;
  }

  .case-card:nth-child(n + 5) {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 145px 1fr;
    gap: 20px;
    padding: 18px 0;
  }

  .skills-list {
    gap: 14px 24px;
  }

  .credential-stack {
    margin-top: 22px;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
