:root {
  --bg: #08111f;
  --bg-secondary: #0d1726;
  --card: #111c2d;
  --card-hover: #16243a;

  --text-primary: #f4f7fb;
  --text-secondary: #9fb0c7;
  --text-muted: #70839d;

  --accent-primary: #3dd6d0;
  --accent-secondary: #7c8cff;
  --accent-soft: rgba(61, 214, 208, 0.12);

  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(61, 214, 208, 0.35);

  --success: #5bd69f;
  --warning: #f4bb66;

  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-md: 1.125rem;
  --font-lg: 1.375rem;
  --font-xl: 1.75rem;
  --font-2xl: 2.25rem;
  --font-3xl: 3rem;
  --font-hero: clamp(3.5rem, 6vw, 5.25rem);

  --content-width: 1220px;
  --section-space: clamp(5rem, 8vw, 8rem);
  --gap-sm: 0.75rem;
  --gap-card: 1.25rem;
  --gap-section: clamp(2rem, 4vw, 3rem);
  --card-padding: clamp(1.5rem, 3vw, 2rem);
  --button-height: 3rem;

  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --paper: var(--bg);
  --surface: var(--card);
  --accent: var(--accent-primary);
  --success-soft: rgba(91, 214, 159, 0.13);
  --secondary: var(--text-primary);
  --secondary-soft: var(--card-hover);
  --gold: var(--warning);
  --peach: var(--accent-secondary);
  --peach-soft: rgba(124, 140, 255, 0.12);
  --sage: var(--accent-secondary);
  --sage-soft: rgba(124, 140, 255, 0.14);
  --blue: var(--accent-primary);
  --blue-soft: var(--accent-soft);
  --line: var(--border);

  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 6%, rgba(61, 214, 208, 0.08), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(124, 140, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 48%, var(--bg) 100%);
  color: var(--ink);
  font-size: var(--font-base);
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--border-strong);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  border-radius: var(--radius);
  background: var(--accent-primary);
  color: var(--bg);
  padding: 0.75rem 1rem;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

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

.nav {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-card);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: var(--gap-sm);
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent-primary);
  font-size: var(--font-xs);
  letter-spacing: 0;
}

.nav-links {
  gap: var(--gap-card);
  font-size: var(--font-sm);
  color: var(--muted);
}

.nav-links a,
.site-footer a {
  transition: color 160ms ease;
}

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

.nav-links a:focus-visible,
.site-footer a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav-cta:hover {
  border-color: var(--border-strong);
  color: var(--accent-primary);
}

.section {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: var(--section-space) 0;
}

.section-band {
  width: min(var(--content-width), calc(100% - 24px));
  margin: 12px auto 0;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: var(--gap-section);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 12%, rgba(61, 214, 208, 0.14), transparent 28rem),
    radial-gradient(circle at 18% 82%, rgba(124, 140, 255, 0.1), transparent 24rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 52%, #101b2d 100%);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
}

.hero::after {
  content: none;
}

.hero-media {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 690px);
  padding: var(--card-padding);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  width: fit-content;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: var(--font-hero);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: var(--font-md);
  line-height: 1.65;
}

.hero-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  max-width: 620px;
  margin-bottom: 1.8rem;
  color: var(--secondary);
  font-size: var(--font-sm);
  line-height: 1.2;
}

.hero-subtitle span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 28, 45, 0.86);
  padding: 0.45rem 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.hero-subtitle span:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  color: var(--accent-primary);
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-size: var(--font-sm);
  font-weight: 700;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 12px 30px rgba(61, 214, 208, 0.18);
}

.button-primary:hover {
  background: #67e5df;
}

.button-secondary {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
}

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

.hero-actions .button-secondary:last-child {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.hero-preview-card {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(17, 28, 45, 0.94);
  padding: var(--card-padding);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero-preview-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 28px 72px rgba(61, 214, 208, 0.14);
  transform: translateY(-3px);
}

.preview-label,
.preview-tags span,
.preview-link {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-label {
  display: inline-flex;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 0.45rem 0.75rem;
  color: var(--accent-primary);
  font-size: var(--font-xs);
  font-weight: 700;
}

.hero-preview-card h2 {
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-size: var(--font-xl);
  line-height: 1.15;
}

.hero-preview-card > p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-bottom: 1rem;
}

.preview-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.7);
  padding: 0.45rem 0.75rem;
  color: var(--accent);
  font-size: var(--font-xs);
  font-weight: 700;
}

.preview-tags span:nth-child(3) {
  background: var(--success-soft);
  color: var(--success);
}

.preview-interface {
  display: grid;
  gap: var(--gap-sm);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(180deg, rgba(13, 23, 38, 0.96), rgba(8, 17, 31, 0.96));
  padding: 1rem;
}

.preview-interface-header,
.preview-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
}

.preview-interface-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.preview-interface-header strong {
  color: var(--text-primary);
}

.preview-interface-header span {
  border-radius: 999px;
  background: rgba(244, 187, 102, 0.13);
  padding: 0.45rem 0.75rem;
  color: var(--warning);
  font-size: var(--font-xs);
  font-weight: 700;
}

.preview-metric span {
  color: var(--muted);
  font-size: var(--font-sm);
}

.preview-metric strong {
  color: var(--text-primary);
  font-size: var(--font-sm);
}

.preview-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-size: var(--font-xs);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: var(--gap-section);
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.92fr);
}

.visual-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-panel.dark {
  background: var(--card-hover);
  border-color: var(--border);
}

.visual-panel img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.copy-block h2,
.section-heading h2,
.contact-card h2 {
  margin-bottom: 1.2rem;
  font-size: var(--font-2xl);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text-primary);
}

.copy-block p,
.section-heading p,
.contact-card p,
.experience-entry p,
.feature-card p,
.process-grid p,
.competency-grid p,
.education-grid p,
.timeline p,
.stacked-list p,
.project-card p {
  color: var(--muted);
  font-size: var(--font-base);
  line-height: 1.65;
}

.eyebrow,
.section-heading .section-kicker,
.copy-block .section-kicker,
.contact-card .section-kicker {
  color: var(--accent-primary);
}

.copy-block > p:not(.section-kicker) {
  max-width: 72ch;
  font-size: var(--font-base);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: var(--gap-section);
  align-items: end;
  margin-bottom: var(--gap-section);
}

.section-heading.compact {
  display: block;
  max-width: 880px;
}

.section-heading .section-kicker {
  align-self: start;
}

.feature-grid,
.process-grid,
.competency-grid,
.education-grid {
  display: grid;
  gap: var(--gap-card);
}

.feature-card,
.process-grid article,
.competency-grid article,
.education-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.feature-card:hover,
.process-grid article:hover,
.competency-grid article:hover,
.education-grid article:hover,
.project-card:hover,
.experience-entry:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
}

.education-grid span {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--text-primary);
  font-size: var(--font-base);
  font-weight: 700;
}

.feature-section,
.experience-section {
  padding-top: var(--section-space);
}

.experience-stack {
  display: grid;
  gap: var(--gap-card);
}

.experience-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: var(--gap-section);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
  transition: border-color 160ms ease, background 160ms ease;
}

.experience-entry:nth-child(2) {
  border-top: 4px solid rgba(124, 140, 255, 0.35);
}

.experience-entry-header h3,
.experience-entry-body h2 {
  margin-bottom: 0.65rem;
  letter-spacing: 0;
}

.experience-entry-header h3 {
  font-size: var(--font-lg);
  line-height: 1.25;
}

.experience-entry-header p,
.experience-entry-body > p {
  margin-bottom: 0;
}

.experience-entry-body h2 {
  font-size: var(--font-xl);
  line-height: 1.15;
}

.experience-entry-body > p + .feature-grid,
.experience-entry-body > p + .stacked-list {
  margin-top: 1.8rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.feature-card {
  min-height: 260px;
  padding: var(--card-padding);
}

.card-number,
.process-grid span,
.timeline-index {
  display: grid;
  place-items: center;
  width: 2.55rem;
  aspect-ratio: 1;
  margin-bottom: 1.6rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage);
  font-weight: 700;
}

.feature-card h3,
.process-grid h3,
.competency-grid h3,
.education-grid h3,
.stacked-list h3,
.timeline h3 {
  margin-bottom: 0.65rem;
  font-size: var(--font-lg);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text-primary);
}

.stacked-list {
  display: grid;
  gap: var(--gap-sm);
  margin-top: 1.8rem;
}

.stacked-list article {
  border-left: 4px solid var(--accent-primary);
  padding: 0.2rem 0 0.25rem 1rem;
}

.stacked-list p {
  margin-bottom: 0;
}

.projects-section {
  padding-top: var(--section-space);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: var(--gap-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.flagship-section {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 8%, rgba(61, 214, 208, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(13, 23, 38, 0.92), rgba(8, 17, 31, 0.92));
  padding: var(--section-space) var(--card-padding);
}

.flagship-section .project-card {
  border-color: var(--border-strong);
  box-shadow: 0 24px 70px rgba(61, 214, 208, 0.13);
}

.flagship-section .section-kicker {
  background: var(--accent-soft);
}

.flagship-section .project-actions .button-primary {
  box-shadow: 0 16px 36px rgba(61, 214, 208, 0.24);
}

.flagship-section .project-card-aside > .feature-card {
  min-height: auto;
}

.flagship-section .project-card-aside h3 {
  font-size: var(--font-lg);
  line-height: 1.25;
}

.flagship-section .tech-stack + .project-actions {
  margin-top: 1rem;
}

.project-card-main,
.project-card-aside {
  min-width: 0;
}

.project-label {
  margin-bottom: 0.8rem;
  color: var(--accent-primary);
  font-size: var(--font-xs);
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin-bottom: 0.9rem;
  font-size: var(--font-xl);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text-primary);
}

.project-summary {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: var(--font-md);
}

.project-impact {
  border-left: 4px solid var(--accent);
  margin-bottom: 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.project-achievements {
  display: grid;
  gap: var(--gap-sm);
  margin: 0 0 1.45rem;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

.project-achievements li::marker {
  color: var(--accent);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
}

.project-card-aside {
  display: grid;
  align-content: start;
  gap: var(--gap-sm);
}

.project-stat {
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: var(--card-padding);
}

.project-stat:nth-child(2) {
  background: var(--sage-soft);
}

.project-stat:nth-child(3) {
  background: rgba(244, 187, 102, 0.12);
}

.project-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
}

.project-stat span {
  display: block;
  color: var(--text-primary);
  font-size: var(--font-base);
  font-weight: 700;
  line-height: 1.35;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  padding-top: 0.3rem;
}

.tech-stack span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.44);
  padding: 0.45rem 0.75rem;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 600;
  line-height: 1;
}

.project-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.project-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.project-details summary:focus-visible {
  outline: 3px solid var(--border-strong);
  outline-offset: 4px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-card);
  margin-top: 1rem;
}

.project-detail-grid h4 {
  margin: 0 0 0.45rem;
  font-size: var(--font-base);
}

.project-detail-grid p {
  margin-bottom: 0;
}

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

.process-grid article,
.competency-grid article,
.education-grid article {
  padding: var(--card-padding);
}

.process-grid article:nth-child(2),
.competency-grid article:nth-child(2),
.education-grid article:nth-child(3) {
  background: rgba(61, 214, 208, 0.08);
}

.process-grid article:nth-child(3),
.competency-grid article:nth-child(3),
.education-grid article:nth-child(4) {
  background: rgba(124, 140, 255, 0.08);
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-card);
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: none;
}

.timeline li {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
}

.timeline-index {
  background: var(--accent-soft);
  color: var(--accent);
}

.skills-section {
  padding-top: var(--section-space);
}

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: 1.4rem;
}

.process-section,
.education-section:nth-of-type(odd) {
  position: relative;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 32px 0;
  z-index: -1;
  border-radius: var(--radius);
  background: rgba(13, 23, 38, 0.5);
}

.tool-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.45rem 0.75rem;
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 600;
}

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

.contact-section {
  padding-top: var(--section-space);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap-section);
  align-items: end;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 12% 18%, rgba(61, 214, 208, 0.13), transparent 22rem),
    var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--card-padding);
  box-shadow: var(--shadow);
}

.contact-card .section-kicker {
  background: var(--accent-soft);
  color: var(--accent-primary);
}

.contact-card p {
  max-width: 760px;
  color: var(--text-secondary);
}

.contact-card .button-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.site-footer {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: var(--gap-card);
  color: var(--muted);
  font-size: var(--font-sm);
}

.site-footer p {
  margin: 0;
}

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

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

@media (max-width: 980px) {
  :root {
    --font-2xl: 2rem;
    --font-xl: 1.625rem;
    --font-lg: 1.3rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: var(--gap-card);
  }

  .hero-media,
  .hero-content {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-media {
    order: 2;
    padding: 0 var(--card-padding) var(--card-padding);
  }

  .split-section,
  .split-section.reverse,
  .section-heading,
  .experience-entry,
  .project-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }

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

  .tech-stack {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --font-hero: 3rem;
    --font-2xl: 2rem;
    --font-xl: 1.5rem;
    --font-lg: 1.3rem;
    --section-space: 3.5rem;
    --card-padding: 1.4rem;
  }

  .section {
    width: min(100% - 24px, var(--content-width));
    padding: var(--section-space) 0;
  }

  .section-band {
    width: min(100% - 16px, var(--content-width));
  }

  .nav {
    width: min(100% - 24px, var(--content-width));
    min-height: 64px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 0;
  }

  .hero-content {
    padding: var(--card-padding);
  }

  .hero-media {
    padding: 0 var(--card-padding) var(--card-padding);
  }

  .button {
    width: 100%;
  }

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

  .visual-panel img {
    min-height: 320px;
  }

  .feature-grid,
  .process-grid,
  .competency-grid,
  .education-grid,
  .timeline,
  .project-card-aside,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .process-grid article,
  .competency-grid article,
  .education-grid article,
  .timeline li {
    min-height: auto;
  }

  .site-footer {
    width: min(100% - 24px, var(--content-width));
    flex-direction: column;
  }
}
