:root {
  color-scheme: light;
  --bg: #f3f0ea;
  --surface: #fffdf8;
  --surface-2: #e7dfd2;
  --ink: #151514;
  --muted: #69645c;
  --line: #d7cec0;
  --accent: #007c6d;
  --accent-dark: #064f49;
  --blue: #2656d8;
  --gold: #ca8a04;
  --rose: #b43a5a;
  --shadow: 0 26px 80px rgba(21, 21, 20, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 20, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(21, 21, 20, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

.skip-link {
  background: var(--ink);
  border-radius: 0 0 var(--radius) 0;
  color: white;
  font-weight: 900;
  left: 0;
  padding: 10px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 160ms ease;
  z-index: 100;
}

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(243, 240, 234, 0.86);
  border-bottom: 1px solid rgba(215, 206, 192, 0.82);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(18px, 5vw, 74px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.main-nav,
.hero-actions,
.hero-metrics,
.availability,
.project-top,
.project-tags,
.contact-actions,
.site-footer {
  align-items: center;
  display: flex;
}

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

.brand-mark {
  display: inline-flex;
  height: 38px;
  filter: drop-shadow(0 8px 18px rgba(21, 21, 20, 0.12));
  width: 38px;
}

.brand-logo {
  display: block;
  height: 100%;
  width: 100%;
}

.brand-logo-bg,
.brand-emblem-bg {
  fill: var(--ink);
}

.brand-logo-t,
.brand-emblem-t {
  fill: white;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo-p,
.brand-emblem-p {
  fill: #7dd3c7;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo-accent,
.brand-emblem-accent {
  fill: #7dd3c7;
}

.brand-logo-t,
.brand-logo-p,
.brand-logo-accent,
.brand-emblem-t,
.brand-emblem-p,
.brand-emblem-accent {
  transform-origin: center;
}

.brand-logo-t,
.brand-logo-p {
  font-size: 30px;
}

.brand-emblem-t,
.brand-emblem-p {
  font-size: 76px;
}

.brand-text {
  letter-spacing: 0;
}

.main-nav {
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid rgba(215, 206, 192, 0.88);
  border-radius: 999px;
  gap: 2px;
  padding: 5px;
}

.main-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 7px 13px;
}

.main-nav a:hover {
  background: var(--ink);
  color: white;
}

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

.nav-toggle span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  margin: 7px 0;
}

main {
  overflow: hidden;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  min-height: calc(100svh - 64px);
  padding: clamp(24px, 4vw, 52px) clamp(18px, 5vw, 74px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow,
.period,
.project-type {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.15rem, 6.3vw, 5.65rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 22px;
  max-width: 700px;
}

h2 {
  font-size: clamp(2rem, 4.3vw, 4.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead {
  color: #383630;
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  max-width: 640px;
}

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

.button {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  min-height: 50px;
  min-width: 142px;
  padding: 16px 18px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

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

.button.secondary {
  background: rgba(255, 253, 248, 0.68);
}

.hero-metrics {
  align-items: stretch;
  border-top: 1px solid var(--line);
  gap: 0;
  margin: clamp(24px, 4vw, 38px) 0 0;
  padding: 0;
}

.hero-metrics div {
  border-right: 1px solid var(--line);
  flex: 1;
  padding: 16px 20px 0 0;
}

.hero-metrics div + div {
  padding-left: 22px;
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics dt {
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-metrics dd {
  font-size: 0.92rem;
}

.hero-metrics dd,
.quick-facts dd,
.timeline-item p,
.timeline-item li,
.stack-panel,
.project-card p,
.section-header > p,
.intro-copy,
.contact-card p {
  color: var(--muted);
}

dd {
  margin: 0;
}

.hero-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  justify-self: end;
  max-width: 410px;
  padding: clamp(14px, 2.4vw, 22px);
  width: 100%;
}

.profile-visual {
  aspect-ratio: 1 / 0.68;
  background:
    radial-gradient(circle at 35% 30%, rgba(125, 211, 199, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(0, 124, 109, 0.95), rgba(38, 86, 216, 0.9)),
    var(--accent);
  border-radius: var(--radius);
  color: white;
  display: grid;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.profile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  inset: 24px;
  opacity: 0.38;
  position: absolute;
}

.profile-grid span {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius);
}

.brand-emblem {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%),
    #151514;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  height: min(44%, 138px);
  justify-content: center;
  position: relative;
  width: min(44%, 138px);
  z-index: 1;
}

.brand-emblem::after {
  background: #7dd3c7;
  border-radius: 999px;
  content: "";
  height: 4px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 22px;
}

.brand-emblem-logo {
  display: block;
  height: 82%;
  width: 82%;
}

.availability {
  background: #eef8f4;
  border: 1px solid #b9ded2;
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 900;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 14px;
}

.status-dot {
  background: #18a058;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(24, 160, 88, 0.13);
  height: 9px;
  width: 9px;
}

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

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

.quick-facts div:last-child {
  padding-bottom: 4px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.quick-facts dd {
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 74px);
  scroll-margin-top: 74px;
}

.intro-section {
  background:
    linear-gradient(90deg, rgba(21, 21, 20, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(21, 21, 20, 0.022) 1px, transparent 1px),
    #fffdf8;
  background-size: 44px 44px;
}

.experience-section {
  background: #151514;
  color: white;
}

.skills-section {
  background:
    linear-gradient(90deg, rgba(0, 124, 109, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(0, 124, 109, 0.03) 1px, transparent 1px),
    #edf6f2;
  background-size: 44px 44px;
}

.snapshot-section {
  background: #f7efe3;
}

.projects-section {
  background: #f7f4ef;
}

.section-label,
.section-header {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.experience-section .section-label,
.experience-section .section-header {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.experience-section .eyebrow,
.experience-section .period {
  color: #7dd3c7;
}

.experience-section h2 {
  color: white;
}

.skills-section .section-label,
.skills-section .section-header {
  border-top-color: rgba(0, 124, 109, 0.18);
}

.section-label {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
}

.intro-section {
  display: grid;
  gap: clamp(30px, 6vw, 82px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.compact-section {
  padding-top: clamp(42px, 6vw, 78px);
  padding-bottom: clamp(42px, 6vw, 78px);
}

.intro-copy {
  display: grid;
  gap: 18px;
  font-size: clamp(1.12rem, 2vw, 1.58rem);
  line-height: 1.45;
}

.intro-copy p {
  margin-bottom: 0;
}

.value-signals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.value-signals div {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.value-signals strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.value-signals span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.highlight-strip {
  background: var(--ink);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: clamp(18px, 5vw, 74px);
  padding-top: clamp(18px, 5vw, 74px);
}

.highlight-strip article {
  background: #20201e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  min-height: 220px;
  padding: clamp(20px, 3vw, 30px);
}

.highlight-strip span {
  color: #a9a39a;
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 42px;
}

.highlight-strip p {
  color: #c7c0b6;
  margin-bottom: 0;
}

.impact-grid,
.skill-groups,
.snapshot-list {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

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

.impact-card,
.skill-groups article {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}

.impact-card {
  background: #20201e;
  border-color: rgba(255, 255, 255, 0.12);
  min-height: 360px;
}

.impact-card p:not(.period),
.impact-card li {
  color: #c7c0b6;
}

.impact-card h3 {
  color: white;
}

.impact-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.skill-groups {
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid rgba(0, 124, 109, 0.16);
  border-radius: var(--radius);
  gap: 0;
}

.skill-row {
  align-items: start;
  border-bottom: 1px solid rgba(0, 124, 109, 0.14);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  padding: clamp(18px, 3vw, 26px);
}

.skill-row:last-child {
  border-bottom: 0;
}

.skill-row h3 {
  margin-bottom: 0;
}

.snapshot-section {
  padding-top: 0;
}

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

.snapshot-list div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.experience-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 68px);
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  margin-top: 42px;
}

.timeline {
  display: grid;
  gap: 18px;
  position: relative;
}

.timeline::before {
  background: var(--line);
  bottom: 22px;
  content: "";
  left: 13px;
  position: absolute;
  top: 22px;
  width: 2px;
}

.timeline-item {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-left: 42px;
  padding: clamp(20px, 3vw, 28px);
  position: relative;
}

.timeline-item::before {
  background: var(--surface);
  border: 3px solid var(--accent);
  border-radius: 50%;
  content: "";
  height: 18px;
  left: -39px;
  position: absolute;
  top: 24px;
  width: 18px;
}

.timeline-item p:last-child {
  margin-bottom: 0;
}

.timeline-item ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.stack-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(21, 21, 20, 0.08);
  padding: clamp(20px, 3vw, 30px);
  position: sticky;
  top: 104px;
}

.stack-panel h2 {
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 22px;
}

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

.chip-group span {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  padding: 8px 10px;
}

.detail-list {
  display: grid;
  gap: 18px;
}

.detail-list div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 16px;
}

.detail-list strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.detail-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-header {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
}

.section-header > p {
  font-size: 1rem;
  margin-bottom: 6px;
}

.projects-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(20px, 3vw, 28px);
  position: relative;
}

.project-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.project-card.featured p,
.project-card.featured .project-type,
.project-card.featured .case-study dd {
  color: #d9d2c8;
}

.project-card.featured .case-study div {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.project-top {
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  margin-bottom: auto;
  min-height: 78px;
}

.project-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--radius);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 42px;
}

.featured .project-icon {
  background: var(--accent);
  color: white;
}

.project-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  margin-bottom: 14px;
}

.project-card .project-type {
  margin-bottom: 0;
  max-width: 190px;
}

.case-study {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}

.case-study div {
  border-top: 1px solid rgba(215, 206, 192, 0.78);
  display: grid;
  gap: 3px;
  padding: 10px 0;
}

.case-study dt {
  color: var(--accent-dark);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.featured .case-study dt {
  color: #7dd3c7;
}

.case-study dd {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.project-tags {
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: auto 0 0;
  padding-top: 24px;
  padding-inline-start: 0;
}

.project-tags li {
  background: #f1ece2;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
  padding: 7px 10px;
}

.featured .project-tags li {
  background: rgba(255, 255, 255, 0.11);
  color: white;
}

.contact-section {
  padding-bottom: clamp(36px, 7vw, 82px);
}

.contact-card {
  align-items: center;
  background: var(--accent-dark);
  border-radius: var(--radius);
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(26px, 5vw, 58px);
}

.contact-card .eyebrow,
.contact-card p {
  color: #d8eee7;
}

.contact-card p {
  font-size: 1.05rem;
  margin: 22px 0 0;
  max-width: 680px;
}

.contact-fit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.contact-fit span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 8px 10px;
}

.contact-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  min-width: min(320px, 100%);
}

.contact-actions .button {
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-actions .secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.contact-actions .primary {
  background: white;
  color: var(--accent-dark);
}

.site-footer {
  background: var(--ink);
  color: white;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 74px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #d7cec0;
  font-weight: 850;
}

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

  .main-nav {
    align-items: stretch;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    position: absolute;
    right: 18px;
    top: 66px;
    width: min(300px, calc(100vw - 36px));
  }

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

  .main-nav a {
    color: var(--ink);
    padding: 12px;
  }

  .hero,
  .intro-section,
  .section-label,
  .experience-layout,
  .section-header,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    justify-self: start;
    max-width: 440px;
  }

  .highlight-strip,
  .projects-grid,
  .impact-grid,
  .snapshot-list {
    grid-template-columns: 1fr;
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .highlight-strip article {
    min-height: auto;
  }

  .highlight-strip span {
    margin-bottom: 24px;
  }

  .stack-panel {
    position: static;
  }

  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 10px 14px;
  }

  .brand-text {
    display: none;
  }

  .hero,
  .section {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-actions,
  .hero-metrics {
    align-items: stretch;
    flex-direction: column;
  }

  .value-signals {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .hero-metrics div,
  .hero-metrics div + div {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 16px 0;
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-item {
    margin-left: 30px;
    padding: 18px;
  }

  .timeline-item::before {
    height: 14px;
    left: -28px;
    width: 14px;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
