:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --soft: #f4f7fb;
  --line: #d9e1ec;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #b45309;
  --accent-soft: #fff7ed;
  --dark: #0b1220;
  --code: #d1fae5;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--panel);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 225, 236, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  font-size: 0.9rem;
}

.nav {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--brand-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: 88vh;
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(32px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(180, 83, 9, 0.1), transparent 38%),
    radial-gradient(circle at 78% 18%, rgba(15, 23, 42, 0.08), transparent 30%),
    #fbfcfe;
}

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

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.hero-summary {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin-top: 34px;
}

.metrics div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.metrics strong {
  display: block;
  color: var(--brand-dark);
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: var(--brand);
}

.button.secondary {
  color: var(--brand-dark);
  background: white;
}

.availability {
  display: inline-flex;
  max-width: 740px;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 750;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.hero-panel,
.skills-grid article,
.education-grid article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(24px, 4vw, 36px);
  align-self: center;
  overflow: hidden;
}

.portrait-card {
  position: relative;
  margin: -12px -12px 24px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.portrait-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border-radius: 8px;
  color: white;
  background: rgba(15, 23, 42, 0.78);
  font-size: 0.9rem;
  font-weight: 850;
}

.quick-facts {
  display: grid;
  gap: 18px;
  margin: 0;
}

.quick-facts div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  align-items: start;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  background: var(--dark);
  color: white;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f97316;
}

.terminal-bar span:nth-child(2) {
  background: #eab308;
}

.terminal-bar span:nth-child(3) {
  background: #22c55e;
}

.terminal-panel pre {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  overflow-x: auto;
}

.terminal-panel code {
  color: var(--code);
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  line-height: 1.75;
  white-space: pre-wrap;
}

.skills-grid,
.education-grid,
.proof-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.skills-grid article,
.education-grid article,
.proof-grid article,
.work-grid article {
  padding: 24px;
  box-shadow: none;
}

.skills-grid p,
.education-grid p,
.timeline-item p,
.proof-grid p,
.work-grid p {
  color: var(--muted);
}

.skills-grid ul {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.skills-grid li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 750;
}

.skills-grid li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.proof {
  background: var(--soft);
}

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

.proof-grid article {
  background: white;
}

.proof-grid span,
.work-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.featured-work {
  background: var(--dark);
  color: white;
}

.featured-work .section-heading h2 {
  color: white;
}

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

.work-grid article {
  min-height: 260px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.work-grid p {
  color: #cbd5e1;
}

.toolbelt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.toolbelt span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 850;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 52px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item > div:last-child {
  display: grid;
  gap: 10px;
}

.timeline-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}

.timeline-meta span,
.education-grid span {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 850;
}

.timeline-meta strong {
  color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--brand-dark);
  background: rgba(15, 118, 110, 0.1);
  font-size: 0.78rem;
  font-weight: 850;
}

.education {
  background: var(--soft);
}

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

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 9vw, 108px) clamp(18px, 5vw, 72px);
  color: white;
  background: var(--brand-dark);
}

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

.contact-section p:not(.eyebrow) {
  max-width: 760px;
  color: #d9fffb;
  font-size: 1.1rem;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  color: var(--ink);
}

.contact-card a,
.contact-card span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .skills-grid,
  .education-grid,
  .proof-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .skills-grid,
  .education-grid,
  .proof-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
