:root {
  color-scheme: dark;
  --ink-950: #111110;
  --ink-900: #191817;
  --ink-800: #252321;
  --paper: #f0eee9;
  --stone-300: #b5b0a8;
  --stone-500: #827b72;
  --rule: #39342f;
  --stovo-orange: #fb6b45;
  --font-sans: "Onest", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;
  --content-width: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--stovo-orange); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--stovo-orange); outline-offset: 5px; }
::selection { color: var(--ink-950); background: var(--stovo-orange); }
.shell { width: min(var(--content-width), calc(100% - 8vw)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 1rem; left: 1rem; transform: translateY(-160%); background: var(--paper); color: var(--ink-950); padding: 0.75rem 1rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--rule); }
.wordmark { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.045em; white-space: nowrap; }
.accent-dot { color: var(--stovo-orange); }
.main-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.5rem); }
.main-nav a { color: var(--stone-300); font-size: 0.88rem; transition: color 160ms ease; }
.main-nav a:hover { color: var(--paper); }
.nav-stovo { display: inline-flex; align-items: center; gap: 0.4rem; }
.stovo-mark { display: block; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; object-fit: contain; }
.language-toggle { flex: 0 0 auto; min-width: 2.5rem; border: 1px solid var(--rule); border-radius: 999px; padding: 0.42rem 0.65rem; background: transparent; color: var(--paper); font: 600 0.72rem/1 var(--font-mono); cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.language-toggle:hover { border-color: var(--stovo-orange); color: var(--stovo-orange); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 52%); align-items: center; gap: clamp(1.5rem, 3vw, 3.25rem); min-height: min(760px, calc(100svh - 5rem)); padding-block: clamp(2.5rem, 5vw, 5.5rem) clamp(2rem, 4vw, 4rem); }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { display: flex; align-items: center; gap: 0.75rem; margin: 0; color: var(--stone-300); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; line-height: 1.45; text-transform: uppercase; }
.eyebrow-mark { display: inline-block; width: 1.2rem; height: 2px; flex: 0 0 auto; background: var(--stovo-orange); }
.eyebrow-separator { color: var(--stone-500); }
.hero h1 { max-width: 780px; margin: 1.15rem 0 1.15rem; font-size: clamp(5rem, 10.6vw, 10rem); font-weight: 750; letter-spacing: -0.092em; line-height: 0.82; }
.hero-summary { max-width: 590px; margin: 1.7rem 0 0; color: #c7c2bb; font-size: clamp(1.05rem, 1.55vw, 1.3rem); line-height: 1.5; }
.hero-about { margin-top: 1.55rem; }
.hero-about .hero-summary { margin-top: 0.55rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin: 1.5rem 0 0; color: var(--stone-300); font-size: 0.86rem; }
.hero-meta-item, .hero-stovo { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta strong { color: var(--paper); font-weight: 600; }
.hero-stovo { color: var(--paper); }
.hero-stovo > span:nth-child(2) { color: var(--stone-500); }
.hero-stovo:hover { color: var(--stovo-orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.resume-button, .telegram-button { display: inline-flex; min-height: 3.25rem; min-width: 10.75rem; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--rule); padding: 0.55rem 0.85rem; font-size: 0.84rem; font-weight: 650; line-height: 1.2; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.linkedin-button { display: inline-flex; min-height: 3.25rem; min-width: 12.5rem; align-items: center; justify-content: space-between; gap: 1.25rem; border: 1px solid var(--rule); padding: 0.75rem 1rem; background: transparent; color: var(--paper); font-size: 0.86rem; font-weight: 600; transition: background 160ms ease, border-color 160ms ease, color 160ms ease; }
.linkedin-button:hover { border-color: var(--stovo-orange); background: var(--ink-900); color: var(--paper); }
.linkedin-button[hidden] { display: none; }
.linkedin-button svg { display: block; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.resume-button { border-color: var(--stovo-orange); background: var(--stovo-orange); color: #17110f; }
.resume-button:hover { border-color: #ff8a68; background: #ff8a68; color: #17110f; }
.telegram-button { color: var(--paper); }
.telegram-button:hover { border-color: var(--stovo-orange); color: var(--stovo-orange); }
.telegram-button[hidden] { display: none; }
.resume-button small { display: block; margin-top: 0.2rem; font: 500 0.58rem/1.2 var(--font-mono); letter-spacing: 0.08em; opacity: 0.7; }
.resume-button svg, .telegram-button svg { display: block; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.65rem 1.4rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.social-links a { color: var(--stone-300); font-size: 0.86rem; }
.social-links a:hover { color: var(--paper); }
.social-links a span, .text-link span:last-child, .contact-link span { color: var(--stovo-orange); margin-left: 0.25rem; }
.portrait-frame { position: relative; isolation: isolate; width: 100%; max-width: 720px; margin: 0 auto; justify-self: center; }
.portrait-frame::before { position: absolute; z-index: -1; inset: 8% 8% 15%; border-radius: 48%; background: radial-gradient(ellipse, rgb(251 107 69 / 16%), rgb(92 47 35 / 12%) 44%, transparent 72%); content: ""; filter: blur(7px); }
.portrait-frame::after { position: absolute; z-index: -1; top: 22%; right: 0; width: 2.3rem; height: 2px; background: var(--stovo-orange); box-shadow: -0.85rem 0 0 rgb(251 107 69 / 45%), -1.7rem 0 0 rgb(251 107 69 / 20%); content: ""; }
.portrait-frame img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 1.2rem 2.5rem rgb(0 0 0 / 22%)); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgb(0 0 0 / 0.78) 88%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 76%, rgb(0 0 0 / 0.78) 88%, transparent 100%); }

.section-rule { border-top: 1px solid var(--rule); }
.work-impact, .skills, .projects, .contact, .experience-section, .agent-tools { padding-block: clamp(3rem, 6vw, 6rem); }
.section-heading { margin-bottom: clamp(1.5rem, 3vw, 2.8rem); }
.section-kicker { margin-bottom: 0.85rem; }
h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); font-weight: 700; letter-spacing: -0.065em; line-height: 1.05; }
.work-impact .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.text-link { color: var(--stone-300); font-size: 0.88rem; }
.impact-content { display: block; }
.impact-story { max-width: 1240px; }
.impact-label { margin: 0 0 0.75rem; color: var(--stovo-orange); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.11em; text-transform: uppercase; }
.impact-story h2 { max-width: 1180px; font-size: clamp(2.6rem, 6vw, 5.7rem); font-weight: 700; letter-spacing: -0.075em; line-height: 0.99; }
.impact-story > p:not(.impact-label) { max-width: 800px; margin: 1rem 0 0; color: var(--stone-300); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 0.85rem; margin-top: 1.8rem; color: #d5d0c9; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.45; }
.pipeline-arrow { color: var(--stovo-orange); }
.case-study-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2.5rem; margin-top: 2.4rem; }
.case-study-point { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.case-study-point h3 { margin: 0; font-size: 0.96rem; font-weight: 600; letter-spacing: -0.025em; }
.case-study-point p { margin: 0.5rem 0 0; color: var(--stone-300); font-size: 0.86rem; line-height: 1.65; }

.experience-section { display: grid; grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr); column-gap: clamp(2rem, 8vw, 8rem); }
.experience-section-heading { padding-top: 0.4rem; }
.aside-heading { display: flex; align-items: center; gap: 0.75rem; }
.aside-heading h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; }
.aside-heading .eyebrow-mark { width: 0.9rem; }
.experience-list { margin: 0; padding: 0; list-style: none; }
.experience-item { padding: 1.3rem 0 1.45rem; border-top: 1px solid var(--rule); }
.experience-item:first-child { padding-top: 0; border-top: 0; }
.experience-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.experience-item h4 { margin: 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.025em; }
.experience-item time { flex: 0 0 auto; color: var(--stone-500); font-family: var(--font-mono); font-size: 0.72rem; }
.experience-item > p { margin: 0.3rem 0 0; color: var(--stone-300); font-size: 0.92rem; }
.experience-item > .experience-description { max-width: 820px; margin-top: 0.7rem; color: #a39e96; font-size: 0.92rem; line-height: 1.6; }
.experience-contributions { display: grid; gap: 0.5rem; max-width: 900px; margin: 0.8rem 0 0; padding-left: 1.1rem; color: #a39e96; font-size: 0.9rem; line-height: 1.6; }
.experience-contributions li::marker { color: var(--stovo-orange); }

.agent-tools { display: grid; grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 2rem clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 4vw, 4rem); }
.agent-tools-heading .section-kicker { margin-bottom: 0.7rem; }
.agent-tools-heading h2 { max-width: 25rem; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 650; letter-spacing: -0.06em; line-height: 1.02; }
.agent-tools-description { max-width: 29rem; margin: 1rem 0 0; color: var(--stone-300); font-size: 0.94rem; line-height: 1.55; }
.agent-tools-content { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: stretch; gap: 1rem clamp(1rem, 2.5vw, 2rem); }
.agent-tools-content > .copy-prompt { justify-self: end; align-self: center; }
.copy-prompt { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; gap: 0.75rem; border: 1px solid var(--stovo-orange); padding: 0.75rem 1.1rem; background: var(--stovo-orange); color: #17110f; font: 600 0.9rem/1 var(--font-sans); white-space: nowrap; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.copy-prompt:hover { border-color: #ff8a68; background: #ff8a68; color: #17110f; }
.copy-prompt svg { display: block; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.agent-prompt-panel { min-width: 0; border-left: 2px solid var(--stovo-orange); padding: 0.15rem 0 0.15rem 1rem; }
.agent-prompt-label { margin: 0 0 0.45rem; color: var(--stone-500); font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; line-height: 1.4; text-transform: uppercase; }
.agent-prompt { max-width: 68ch; margin: 0; color: var(--stone-300); font-size: 0.85rem; line-height: 1.6; }
.agent-apps { display: flex; grid-column: 1 / -1; align-items: center; gap: 0.8rem; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.agent-apps-label { color: var(--stone-500); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.agent-icon-stack { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.agent-app-icon { display: block; width: 1.65rem; height: 1.65rem; flex: 0 0 auto; border: 1px solid var(--rule); border-radius: 50%; padding: 0.23rem; background: var(--ink-800); object-fit: contain; }
.agent-app-icon:nth-child(1), .agent-app-icon:nth-child(3) { background: #f3f0e9; }
.agent-app-icon:nth-child(2) { background: #28231f; }
.agent-app-icon:nth-child(4), .agent-app-icon:nth-child(9) { background: #263a48; }
.agent-app-icon:nth-child(5) { background: #232a2c; }
.agent-app-icon:nth-child(6), .agent-app-icon:nth-child(7) { background: #e9e5dc; }
.agent-app-icon:nth-child(8) { background: #e8e2dc; padding: 0.32rem; }
.copy-status { grid-column: 1 / -1; margin: 0; color: var(--stone-300); font-size: 0.72rem; }
.copy-status:empty { display: none; }

.profile-details { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); padding-block: clamp(3rem, 5vw, 5rem); }
.detail-block h2 { margin-top: 1.6rem; font-size: clamp(1.65rem, 2.8vw, 2.5rem); line-height: 1.16; }
.detail-meta { margin: 1rem 0 0; color: var(--stone-300); font-family: var(--font-mono); font-size: 0.78rem; }
.education-note { max-width: 28rem; margin: 0.6rem 0 0; color: var(--stone-300); font-size: 0.94rem; line-height: 1.6; }
.recognition-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.recognition-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); font-size: 0.88rem; }
.recognition-list li span:last-child { color: var(--stone-300); text-align: right; }

.skills .section-heading { margin-bottom: 1.5rem; }
.skill-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
.skill-group { padding: 1.2rem 0 1.35rem; border-top: 1px solid var(--rule); }
.skill-group h3 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.skill-group p { margin: 0.55rem 0 0; color: var(--stone-300); font-size: 0.9rem; line-height: 1.65; }
.skill-group p.skill-proof { margin-top: 0.75rem; color: var(--stone-500); font-family: var(--font-mono); font-size: 0.67rem; line-height: 1.55; }

.projects-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.projects-heading .text-link { flex: 0 0 auto; color: var(--stone-300); font-size: 0.88rem; }
.project-list { margin: 0; padding: 0; list-style: none; }
.project-row { display: grid; grid-template-columns: 3rem minmax(0, 1.25fr) minmax(230px, 0.75fr); gap: 1.4rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.project-index { padding-top: 0.25rem; color: var(--stone-500); font-family: var(--font-mono); font-size: 0.72rem; }
.project-row h3 { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.04em; }
.project-row h3 a span { color: var(--stovo-orange); font-size: 0.8em; }
.project-row:first-child h3 a { color: var(--stovo-orange); }
.project-row p { margin: 0.35rem 0 0; color: var(--stone-300); font-size: 0.9rem; line-height: 1.65; }
.project-row .project-stack { margin: 0; color: var(--stone-500); font-family: var(--font-mono); font-size: 0.73rem; line-height: 1.7; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 2.5rem; }
.contact-copy { max-width: 850px; }
.contact h2 { max-width: 850px; font-size: clamp(2.5rem, 5.3vw, 5rem); font-weight: 550; letter-spacing: -0.075em; line-height: 0.99; }
.contact-actions { display: grid; justify-items: start; gap: 1rem; }
.contact-cta { display: inline-flex; min-height: 3.3rem; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.8rem 1.15rem; background: var(--stovo-orange); color: #17110f; font-size: 0.85rem; font-weight: 650; transition: background 160ms ease; }
.contact-cta:hover { background: #ff8a68; color: #17110f; }
.contact-cta svg { width: 1.1rem; height: 1.1rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; margin: 0; padding: 0; list-style: none; }
.contact-link { display: inline-block; color: var(--stone-300); font-size: 0.8rem; }
.site-footer { padding-block: 1.8rem 1.1rem; border-top: 1px solid var(--rule); color: var(--stone-500); }
.footer-main { display: grid; grid-template-columns: minmax(15rem, 1.35fr) minmax(8rem, 0.65fr) minmax(10rem, 0.8fr) auto; align-items: start; gap: 2rem; padding-bottom: 2rem; }
.footer-identity { display: grid; justify-items: start; align-content: start; gap: 0.55rem; }
.footer-wordmark { width: fit-content; color: var(--paper) !important; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.045em; }
.footer-identity p { margin: 0; color: var(--stone-500); font-size: 0.82rem; }
.footer-email { margin-top: 0.35rem; color: var(--stone-300); font-size: 0.82rem; transition: color 160ms ease; }
.footer-email:hover { color: var(--stovo-orange); }
.footer-email span, .footer-navigation a span:last-child, .footer-links a span { margin-left: 0.25rem; color: var(--stovo-orange); }
.footer-navigation, .footer-links { display: grid; justify-items: start; align-content: start; gap: 0.58rem; font-size: 0.82rem; }
.footer-label { margin: 0 0 0.25rem; color: var(--stone-500); font: 500 0.65rem/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-navigation a, .footer-links a { color: var(--stone-300); transition: color 160ms ease; }
.footer-navigation a:hover, .footer-links a:hover { color: var(--paper); }
.back-to-top { display: inline-flex; min-height: 2.8rem; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--rule); padding: 0.45rem 0.55rem 0.45rem 0.85rem; color: var(--paper) !important; font-size: 0.8rem; line-height: 1; transition: border-color 160ms ease, background 160ms ease; }
.back-to-top:hover { border-color: var(--stovo-orange); background: var(--ink-900); }
.back-to-top-icon { display: inline-flex; width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; background: var(--stovo-orange); color: #17110f; }
.back-to-top-icon svg { display: block; width: 0.9rem; height: 0.9rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 0.9rem; font: 500 0.62rem/1.5 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.footer-bottom p { margin: 0; }
.footer-bottom p:last-child { color: var(--stone-300); }

@media (max-width: 920px) {
  .shell { width: min(var(--content-width), calc(100% - 3rem)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(290px, 45%); gap: 1.5rem; }
  .hero h1 { font-size: clamp(4.8rem, 10vw, 7rem); }
  .agent-tools { grid-template-columns: 1fr; gap: 1.4rem; }
  .agent-tools-content { grid-template-columns: max-content minmax(0, 1fr); }
  .case-study-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
  .experience-section { grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr); column-gap: 2rem; }
  .skill-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 1rem; }
  .shell { width: calc(100% - 2.5rem); }
  .site-header { min-height: auto; align-items: center; gap: 1rem; padding-block: 1rem; }
  .main-nav { max-width: calc(100vw - 11rem); gap: 1rem; overflow-x: auto; padding: 0.2rem 0 0.35rem; scrollbar-width: thin; }
  .main-nav a { flex: 0 0 auto; font-size: 0.78rem; }
  .language-toggle { padding-inline: 0.55rem; }
  .hero { grid-template-columns: 1fr; gap: 0.25rem; min-height: 0; padding-block: 3rem 1rem; overflow: visible; }
  .hero-copy { order: 1; }
  .hero h1 { margin-top: 1rem; font-size: clamp(4.2rem, 17.5vw, 6.4rem); }
  .hero-summary { max-width: 33rem; margin-top: 1.25rem; font-size: 1rem; }
  .hero-about { margin-top: 1.2rem; }
  .hero-about .hero-summary { margin-top: 0.5rem; }
  .hero-meta { margin-top: 1.2rem; font-size: 0.8rem; }
  .hero-actions { gap: 0.55rem; margin-top: 1.3rem; }
  .resume-button, .telegram-button { min-width: 0; min-height: 3rem; gap: 0.5rem; padding: 0.5rem 0.65rem; font-size: 0.73rem; }
  .resume-button small { font-size: 0.52rem; }
  .linkedin-button { min-width: 0; min-height: 3rem; gap: 0.6rem; padding: 0.5rem 0.65rem; font-size: 0.73rem; }
  .social-links { gap: 0.75rem 1.15rem; margin-top: 1.2rem; }
  .social-links a { font-size: 0.82rem; }
  .portrait-frame { order: 2; width: min(100%, 480px); max-width: none; margin: 0 auto; justify-self: center; }
  .portrait-frame img { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgb(0 0 0 / 0.8) 87%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 70%, rgb(0 0 0 / 0.8) 87%, transparent 100%); }
  .work-impact, .skills, .projects, .contact, .experience-section { padding-block: 3rem; }
  .agent-tools { gap: 1rem; padding-block: 2.5rem; }
  .agent-tools-content { grid-template-columns: minmax(0, 1fr) max-content; gap: 0.9rem 1rem; }
  .agent-apps { grid-column: 1 / -1; flex-wrap: wrap; gap: 0.65rem; }
  .agent-app-icon { width: 1.65rem; height: 1.65rem; }
  .agent-prompt-panel { grid-column: 1 / -1; grid-row: 1; }
  .agent-tools-content > .copy-prompt { grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: start; min-height: 3rem; padding-inline: 0.8rem; font-size: 0.8rem; }
  .copy-status { grid-column: 1 / -1; text-align: right; }
  .work-impact .section-heading, .projects-heading { align-items: flex-start; gap: 0.9rem; }
  .impact-story h2 { font-size: clamp(2.5rem, 10.5vw, 3.8rem); }
  .impact-story > p:not(.impact-label) { font-size: 1rem; }
  .pipeline { gap: 0.5rem 0.65rem; margin-top: 1.5rem; font-size: 0.68rem; }
  .case-study-details { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.8rem; }
  .experience-contributions { font-size: 0.86rem; }
  .experience-section { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .experience-topline { align-items: flex-start; flex-direction: column; gap: 0.15rem; }
  .experience-item time { font-size: 0.68rem; }
  .profile-details { grid-template-columns: 1fr; gap: 2.8rem; padding-block: 3rem; }
  .recognition-list li { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .recognition-list li span:last-child { text-align: left; }
  .skill-groups { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem; padding: 1.2rem 0; }
  .project-row .project-stack { grid-column: 2; margin-top: -0.15rem; }
  .contact { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact h2 { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .contact-actions { width: 100%; }
  .contact-cta { width: 100%; }
  .footer-main { grid-template-columns: minmax(0, 1.2fr) minmax(7rem, 0.8fr) minmax(9rem, 0.8fr); gap: 1.5rem; }
  .back-to-top { grid-column: 3; justify-self: start; }
}

@media (max-width: 640px) {
  .site-footer { padding-block: 1.45rem 1rem; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.65rem 1.2rem; padding-bottom: 1.5rem; }
  .footer-identity { grid-column: 1 / -1; }
  .back-to-top { grid-column: 1 / -1; justify-self: start; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 0.35rem; font-size: 0.58rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
