:root {
  --bg: #f6f3ec;
  --paper: rgba(255, 253, 248, 0.84);
  --paper-strong: #fffdf8;
  --paper-soft: rgba(247, 242, 231, 0.82);
  --ink: #16201f;
  --muted: #63706d;
  --line: rgba(22, 32, 31, 0.11);
  --line-strong: rgba(22, 32, 31, 0.2);
  --green: #123f39;
  --green-deep: #0d2c28;
  --green-soft: #dce8dc;
  --moss: #708553;
  --ochre: #c88f38;
  --sand: #eadfc7;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(22, 32, 31, 0.1);
  --shadow-soft: 0 18px 42px rgba(22, 32, 31, 0.08);
  --shadow-hover: 0 26px 60px rgba(22, 32, 31, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(200, 143, 56, 0.18), transparent 27rem),
    radial-gradient(circle at 88% 5%, rgba(18, 63, 57, 0.18), transparent 29rem),
    linear-gradient(180deg, #f9f6ef 0%, var(--bg) 44%, #f1ecdf 100%);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(22, 32, 31, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 31, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 72%);
}

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

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

h1,
h2,
h3,
p,
li,
span,
a {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

p,
ul {
  margin: 0;
}

li {
  line-height: 1.8;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--container));
  margin: 14px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 12px 14px 12px 22px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: 0 16px 40px rgba(22, 32, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.hero-badges,
.hero-contact-strip,
.stack-list,
.contact-actions,
.signal-strip {
  display: flex;
  align-items: center;
}

.brand {
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.brand-kicker {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-text {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.main-nav {
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  transition: background-color 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="true"] {
  color: var(--paper-strong);
  background: var(--green);
}

main,
.site-footer {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.hero-badges span,
.card-label,
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero,
.section {
  padding: 100px 0;
}

.section {
  position: relative;
}

.section::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 110px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(18, 63, 57, 0.42), transparent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 122px);
}

.hero-copy {
  position: relative;
}

.hero-badges {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.8);
  font-size: 0.74rem;
  font-weight: 900;
}

.hero-badges span:first-child {
  color: var(--paper-strong);
  background: var(--green);
}

.hero-badges span:nth-child(2) {
  color: #714d1f;
  background: rgba(200, 143, 56, 0.14);
}

.eyebrow,
.card-label {
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 900;
}

.eyebrow {
  margin-bottom: 16px;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
}

.hero-lead,
.section-intro,
.about-story p:not(.card-label),
.project-story p,
.project-panel p,
.mini-project p,
.value-card p,
.experience-card p,
.skill-card p,
.education-strip p,
.contact-list p {
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.002em;
}

.hero-lead {
  max-width: 770px;
  margin-top: 26px;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.8;
}

.hero-contact-strip {
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-contact-strip a,
.hero-contact-strip span {
  display: inline-flex;
  align-items: center;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

.button.primary {
  color: var(--paper-strong);
  background: var(--green);
  box-shadow: 0 18px 34px rgba(18, 63, 57, 0.22);
}

.button.primary:hover {
  background: var(--green-deep);
}

.button.secondary {
  border-color: var(--line);
  color: var(--green);
  background: rgba(255, 253, 248, 0.76);
}

.button.secondary:hover {
  border-color: var(--green);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.hero-proof article,
.value-card,
.project-panel,
.mini-project,
.experience-card,
.skill-card,
.education-strip article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.hero-proof article:hover,
.value-card:hover,
.project-panel:hover,
.mini-project:hover,
.experience-card:hover,
.skill-card:hover,
.education-strip article:hover,
.contact-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 63, 57, 0.2);
  box-shadow: var(--shadow-hover);
}

.hero-proof article {
  min-height: 124px;
  padding: 20px;
}

.hero-proof strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.22rem, 2vw, 1.58rem);
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.55;
}

.signal-strip {
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--line);
}

.signal-strip span {
  padding: 10px 15px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.76);
  font-size: 0.82rem;
  font-weight: 900;
}

.signal-strip span:nth-child(odd) {
  background: rgba(255, 253, 248, 0.92);
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: -10px 0 16px;
}

.quick-nav-section {
  padding-top: 28px;
  padding-bottom: 44px;
}

.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: var(--shadow-soft);
}

.quick-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-soft);
  color: var(--green);
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.quick-nav-button:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 63, 57, 0.22);
  box-shadow: var(--shadow-hover);
}

.quick-nav-button[aria-selected="true"] {
  color: var(--paper-strong);
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 18px 34px rgba(18, 63, 57, 0.18);
}

.tab-section[hidden] {
  display: none !important;
}

.stat,
.proof-card,
.ats-card,
.roles-strip article,
.compare-card,
.fit-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-soft);
}

.stat strong {
  display: block;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.value-section {
  padding-top: 34px;
}

.value-proof-grid,
.project-impact,
.before-after,
.fit-grid {
  display: grid;
  gap: 20px;
}

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

.proof-card {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 242, 231, 0.88));
}

.proof-card.accent {
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 92% 0%, rgba(200, 143, 56, 0.3), transparent 42%),
    linear-gradient(135deg, #173f3a, #45634a);
}

.proof-card.accent .card-label,
.proof-card.accent h3,
.proof-card.accent p {
  color: inherit;
}

.proof-card p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.03rem;
  line-height: 1.86;
}

.proof-line {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.proof-card.accent .proof-line {
  border-top-color: rgba(255, 253, 248, 0.22);
}

.detail-panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.detail-panel summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  color: var(--green);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.detail-panel summary::-webkit-details-marker {
  display: none;
}

.detail-panel summary::after {
  float: right;
  content: "+";
  font-size: 1.2rem;
}

.detail-panel[open] summary {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
}

.detail-panel[open] summary::after {
  content: "-";
}

.detail-panel > :not(summary) {
  padding: 20px 22px 24px;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  position: absolute;
  inset: -18px -18px auto auto;
  z-index: -1;
  width: 58%;
  height: 58%;
  border-radius: 999px;
  content: "";
  background: rgba(200, 143, 56, 0.18);
  filter: blur(12px);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(18, 63, 57, 0.18), rgba(200, 143, 56, 0.18)),
    #d6d8cf;
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: 50% 22%;
}

.pitch-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow-soft);
}

.pitch-card h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.pitch-card p:last-of-type {
  margin-top: 12px;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.8;
}

.stack-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.stack-list span {
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--paper-strong);
  background: linear-gradient(135deg, var(--green) 0%, #24584f 100%);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-intro {
  max-width: 760px;
  margin-top: 16px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.section-heading h2 {
  max-width: 12ch;
}

.project-impact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.project-impact article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.project-impact p:not(.card-label),
.fit-grid p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--muted);
}

.before-after {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.compare-card.before {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 239, 228, 0.9));
}

.compare-card.after {
  color: var(--paper-strong);
  background:
    radial-gradient(circle at top right, rgba(200, 143, 56, 0.24), transparent 44%),
    linear-gradient(145deg, #163531 0%, #123f39 100%);
}

.compare-card.after .card-label,
.compare-card.after h3 {
  color: inherit;
}

.about-layout,
.project-feature,
.value-grid,
.ats-grid,
.project-grid,
.experience-grid,
.skills-grid,
.roles-strip,
.education-strip {
  display: grid;
  gap: 16px;
}

.about-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.66fr);
  align-items: start;
  gap: 28px;
}

.about-story,
.timeline-panel,
.project-story {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.about-story {
  padding: clamp(38px, 4.8vw, 60px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.78)),
    var(--paper-strong);
  backdrop-filter: blur(10px);
}

.about-story h3 {
  margin-top: 12px;
  max-width: 16ch;
  line-height: 1.16;
}

.about-story p:not(.card-label) {
  max-width: 36ch;
  margin-top: 24px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.timeline-panel {
  position: sticky;
  top: 110px;
  padding: clamp(34px, 3.4vw, 44px);
  color: var(--paper-strong);
  background:
    radial-gradient(circle at top right, rgba(200, 143, 56, 0.26), transparent 48%),
    linear-gradient(180deg, #173f3a 0%, #102d29 100%);
}

.timeline-panel .card-label {
  color: #ebd19e;
}

.milestone-list {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.milestone-list li {
  position: relative;
  padding-left: 30px;
}

.milestone-list li::before {
  position: absolute;
  top: 0.48rem;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: #ebd19e;
  box-shadow: 0 0 0 6px rgba(235, 209, 158, 0.12);
}

.milestone-list li::after {
  position: absolute;
  top: 1.3rem;
  bottom: -22px;
  left: 5px;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, rgba(235, 209, 158, 0.34), transparent);
}

.milestone-list li:last-child::after {
  display: none;
}

.milestone-list span,
.milestone-list strong {
  display: block;
}

.milestone-list span {
  color: #ebd19e;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
}

.milestone-list strong {
  margin-top: 6px;
  font-size: 1.04rem;
  line-height: 1.42;
}

.milestone-list p {
  max-width: 28ch;
  margin-top: 10px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 1.02rem;
  line-height: 1.88;
  font-family: "Source Serif 4", Georgia, serif;
}

.about-support {
  position: relative;
  margin-top: 46px;
  padding-top: 34px;
}

.about-support::before {
  position: absolute;
  top: 0;
  left: 0;
  width: min(180px, 28%);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(18, 63, 57, 0.28), transparent);
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  gap: 24px;
}

.ats-grid,
.roles-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.value-card,
.project-panel,
.mini-project,
.experience-card,
.skill-card,
.education-strip article {
  padding: clamp(24px, 3.2vw, 32px);
}

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

.value-card h3,
.project-panel h3,
.mini-project h3,
.experience-card h3,
.skill-card h3,
.education-strip h3 {
  margin-top: 10px;
}

.value-card p,
.mini-project p,
.experience-card p,
.skill-card p,
.education-strip p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.8;
}

.value-card.accent {
  color: var(--paper-strong);
  background:
    radial-gradient(circle at 90% 0%, rgba(200, 143, 56, 0.3), transparent 42%),
    linear-gradient(135deg, #173f3a, #6d7f52);
}

.value-card.accent .card-label,
.value-card.accent h3,
.value-card.accent p {
  color: inherit;
}

.project-feature {
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.8fr);
  align-items: stretch;
  gap: 20px;
}

.project-story {
  grid-row: span 2;
  padding: clamp(28px, 3.3vw, 38px);
  color: var(--paper-strong);
  background:
    radial-gradient(circle at top right, rgba(200, 143, 56, 0.24), transparent 46%),
    linear-gradient(145deg, #152927 0%, #123f39 100%);
  position: relative;
  overflow: hidden;
}

.project-story .card-label,
.project-story h3,
.project-story p {
  color: inherit;
}

.project-story::after {
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(232, 201, 142, 0.2), transparent 68%);
}

.project-story h3 {
  margin-top: 10px;
}

.project-story p + p {
  margin-top: 18px;
  line-height: 1.8;
}

.project-meta,
.experience-meta {
  margin-top: 12px;
  opacity: 0.82;
  font-size: 0.95rem;
  font-weight: 800;
}

.project-panel {
  background: var(--paper-strong);
}

.project-panel.contrast {
  background: linear-gradient(180deg, rgba(220, 232, 220, 0.72), rgba(255, 253, 248, 0.94));
}

.clean-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
}

.inline-stack {
  margin-top: 16px;
}

.project-grid,
.experience-grid,
.skills-grid,
.education-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.project-grid {
  align-items: start;
  gap: 26px;
}

.mini-project {
  min-height: auto;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(244, 239, 228, 0.92));
  box-shadow: 0 20px 48px rgba(22, 32, 31, 0.08);
  position: relative;
  overflow: hidden;
}

.mini-project h3 {
  max-width: 18ch;
}

.mini-project p {
  max-width: 42ch;
}

.mini-project::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, rgba(18, 63, 57, 0.8), rgba(200, 143, 56, 0.68));
}

.experience-card {
  min-height: 220px;
}

.experience-card .clean-list {
  margin-top: 16px;
}

.compact-list {
  gap: 10px;
  font-size: 0.98rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.about-section {
  padding-bottom: 70px;
}

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

.experience-section {
  padding-top: 22px;
}

.experience-card,
.skill-card,
.ats-card,
.roles-strip article,
.education-strip article {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(249, 246, 239, 0.9));
}

.experience-card .card-label,
.skill-card .card-label,
.ats-card .card-label,
.roles-strip .card-label,
.education-strip .card-label {
  color: #60764c;
}

.about-keywords {
  margin-top: 34px;
}

.ats-card p:not(.card-label),
.roles-strip p,
.contact-list a,
.contact-list p {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  line-height: 1.8;
}

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

.skill-card {
  min-height: 200px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(200, 143, 56, 0.16), transparent 42%),
    var(--paper-strong);
}

.contact-copy h2 {
  max-width: 12ch;
}

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

.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list a {
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 30px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-panel,
  .section-heading,
  .project-feature,
  .value-grid,
  .project-grid,
  .experience-grid,
  .skills-grid,
  .contact-section {
    animation: rise-in 650ms ease both;
  }

  .hero-panel,
  .project-feature,
  .experience-grid,
  .contact-section {
    animation-delay: 90ms;
  }

  .value-grid,
  .project-grid,
  .skills-grid {
    animation-delay: 140ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero,
  .about-layout,
  .project-feature,
  .contact-section,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar,
  .quick-nav-grid,
  .value-proof-grid,
  .project-impact,
  .before-after,
  .ats-grid,
  .roles-strip,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .about-support {
    margin-top: 34px;
    padding-top: 28px;
  }

  .hero {
    min-height: auto;
  }

  .section::before {
    width: 84px;
  }

  .project-story {
    grid-row: auto;
  }

  .timeline-panel {
    position: static;
  }

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

@media (max-width: 820px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-radius: 26px;
    padding: 16px;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-proof,
  .value-grid,
  .value-proof-grid,
  .ats-grid,
  .project-grid,
  .experience-grid,
  .skills-grid,
  .roles-strip,
  .project-impact,
  .before-after,
  .fit-grid,
  .education-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    border-radius: 24px;
  }

  .section-heading h2,
  .contact-copy h2 {
    max-width: none;
  }

  .hero-lead,
  .section-intro,
  .about-story p:not(.card-label),
  .value-card p,
  .mini-project p,
  .experience-card p,
  .skill-card p,
  .education-strip p,
  .contact-list p,
  .contact-list a,
  .clean-list {
    font-size: 1rem;
    line-height: 1.8;
  }
}

@media (max-width: 540px) {
  main,
  .site-footer,
  .site-header {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero,
  .section {
    padding: 34px 0 58px;
  }

  .hero-proof article,
  .about-story,
  .timeline-panel,
  .proof-card,
  .project-story,
  .project-panel,
  .mini-project,
  .experience-card,
  .skill-card,
  .compare-card,
  .education-strip article,
  .contact-panel {
    border-radius: 22px;
  }

  .button {
    width: 100%;
  }

  .detail-panel summary {
    padding: 16px 18px;
  }

  .detail-panel > :not(summary) {
    padding: 18px 18px 22px;
  }
}
