@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("./assets/fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("./assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ink: #142022;
  --muted: #637174;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #e9f1f0;
  --line: #d9dfdc;
  --deep: #10282c;
  --teal: #187a72;
  --teal-dark: #0f5c56;
  --coral: #a9432c;
  --gold: #d9a441;
  --violet: #4f5d95;
  --shadow: 0 22px 55px rgba(20, 32, 34, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-filtering .project-card {
  transition: opacity 180ms ease, transform 180ms ease;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.fit-contain {
  object-fit: contain;
  padding: 14px;
  background: #edf2f1;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
.hero-role,
.metric-num,
.brand {
  font-family: "Manrope Variable", "Segoe UI", Arial, sans-serif;
}

h1 {
  max-width: 980px;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

#profile,
#flagships,
#projects,
#portfolio-list,
#experience,
#education,
#stack,
#contact {
  scroll-margin-top: 96px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 44px);
  color: #ffffff;
  background: rgba(16, 40, 44, 0.18);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 40, 44, 0.94);
  box-shadow: 0 10px 30px rgba(16, 40, 44, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--gold);
  color: var(--deep);
  font-size: 13px;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: clamp(12px, 2.4vw, 30px);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 2px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px clamp(18px, 5vw, 64px) 26px;
  color: #ffffff;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 40, 44, 0.96) 0%, rgba(16, 40, 44, 0.76) 43%, rgba(16, 40, 44, 0.18) 100%),
    linear-gradient(0deg, rgba(16, 40, 44, 0.8), rgba(16, 40, 44, 0.05) 52%),
    url("./assets/hero_ground_station.jpg") center / cover;
  transform: scale(1.18);
  will-change: transform;
}

.hero-content {
  will-change: opacity, transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
}

.hero .eyebrow {
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-role {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 750;
}

.hero-target {
  max-width: 780px;
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  color: #ffffff;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 800;
}

.hero-lead {
  max-width: 780px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 1.75vw, 24px);
  font-weight: 620;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--gold);
  color: #172326;
}

.button.secondary {
  background: #ffffff;
  color: var(--deep);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

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

.variant-switcher {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 780;
}

.variant-switcher span {
  margin-right: 2px;
}

.variant-switcher a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
}

.variant-switcher a:hover,
.variant-switcher a.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--deep);
}

.hero-proof {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, var(--max));
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 56px auto 0;
  background: rgba(255, 255, 255, 0.28);
}

.hero-proof div {
  min-height: 96px;
  padding: 17px;
  background: rgba(16, 40, 44, 0.68);
}

.hero-proof strong {
  display: block;
  color: #ffffff;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1;
}

.hero-proof span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: clamp(62px, 9vw, 118px) clamp(18px, 5vw, 64px);
}

.resume-snapshot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #0b1b1e;
  color: #ffffff;
}

.resume-snapshot div {
  min-height: 190px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--deep);
}

.resume-snapshot span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.resume-snapshot strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(19px, 2.1vw, 28px);
  line-height: 1.18;
}

.management-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
  padding: clamp(40px, 5vw, 64px) clamp(18px, 5vw, 64px);
  background: var(--paper);
}

.management-metrics article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 234px;
  padding: clamp(24px, 2.6vw, 34px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.management-metrics article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.management-metrics article:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.metric-label {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  margin-top: 16px;
  line-height: 0.95;
}

.metric-num {
  display: block;
  color: var(--coral);
  font-size: clamp(48px, 5.2vw, 68px);
  font-weight: 950;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-value em {
  display: block;
  margin-top: 10px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.22;
  text-transform: uppercase;
}

.management-metrics p {
  margin-top: 16px;
  color: #536568;
  font-size: 15px;
}

.interview-reasons {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(22px, 5vw, 72px);
  padding: clamp(42px, 6vw, 74px) clamp(18px, 5vw, 64px);
  background: #ffffff;
}

.interview-reasons > * {
  width: min(100%, var(--max));
}

.interview-heading {
  justify-self: end;
  max-width: 360px;
}

.interview-heading h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 42px);
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 820px;
}

.interview-grid article {
  min-height: 230px;
  padding: 22px;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.interview-grid span {
  color: var(--gold);
  font-size: 22px;
  font-weight: 950;
}

.interview-grid h3 {
  margin-top: 14px;
  font-size: 20px;
}

.interview-grid p {
  margin-top: 12px;
  color: #536568;
}

.section > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(18px, 5vw, 76px);
  align-items: end;
}

.section-heading h2 {
  max-width: 860px;
}

.section-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.intro {
  background: #ffffff;
}

.resume-focus {
  padding-bottom: clamp(58px, 7vw, 92px);
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.88fr 0.88fr;
  gap: 14px;
  margin-top: 42px;
}

.focus-card {
  min-height: 260px;
  padding: clamp(22px, 3.2vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.focus-card-large {
  background:
    linear-gradient(135deg, rgba(24, 122, 114, 0.12), rgba(217, 164, 65, 0.14)),
    #f7faf8;
}

.focus-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.focus-card h3 {
  margin-top: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
}

.focus-card p:not(.focus-label) {
  margin-top: 16px;
  color: #4f5f62;
  font-size: 17px;
}

.focus-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li {
  position: relative;
  padding-left: 20px;
  color: #33484b;
  font-weight: 700;
}

.focus-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.intro-grid article,
.stack-grid div,
.achievement-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.intro-grid article {
  background: var(--surface-2);
}

.intro-grid p,
.stack-grid p,
.achievement-grid p {
  margin-top: 12px;
  color: #4f5f62;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--deep);
}

.proof-band > * {
  width: auto;
}

.leadership-grid,
.case-matrix,
.career-ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(var(--max), calc(100% - clamp(28px, 7vw, 96px)));
  margin: 24px auto 0;
}

.leadership-grid article,
.case-matrix article,
.career-ladder article {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 40, 44, 0.1);
  border-radius: var(--radius);
}

.leadership-grid span,
.case-matrix span,
.career-ladder span {
  display: block;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.leadership-grid strong,
.case-matrix strong,
.career-ladder strong {
  display: block;
  margin-top: 8px;
  color: var(--deep);
  font-size: 15px;
  line-height: 1.25;
}

.leadership-grid p,
.case-matrix p,
.career-ladder p {
  margin-top: 8px;
  color: #4d5f62;
  font-size: 13.5px;
  line-height: 1.45;
}

.proof-item {
  min-height: 170px;
  padding: clamp(26px, 4vw, 48px);
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.proof-item span {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.proof-item strong {
  display: block;
  max-width: 390px;
  margin-top: 12px;
  font-size: clamp(20px, 2.6vw, 31px);
  line-height: 1.16;
}

.flagship-section {
  background: #ffffff;
}

.flagship-layout {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.flagship-card {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(20, 32, 34, 0.08);
}

.flagship-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.flagship-card:nth-child(even) .flagship-media {
  order: 2;
}

.flagship-media {
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #e4ecea;
}

.flagship-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.6vw, 58px);
}

.flagship-body h3 {
  margin-top: 10px;
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.08;
}

.flagship-body p:not(.project-meta):not(.project-source) {
  max-width: 720px;
  margin-top: 18px;
  color: #4f5f62;
  font-size: 18px;
}

.project-source {
  max-width: 680px;
  margin-top: 8px;
  color: #6a5a35;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.case-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
}

.case-points div {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.case-points dt {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-points dd {
  margin: 8px 0 0;
  color: #425357;
  font-size: 14px;
  line-height: 1.42;
}

.flagship-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.flagship-kpis li {
  border-top: 3px solid var(--teal);
  padding-top: 12px;
}

.flagship-kpis strong {
  display: block;
  color: var(--deep);
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1;
}

.flagship-kpis span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.projects-section {
  background: var(--paper);
  padding-top: clamp(48px, 5vw, 74px);
}

.portfolio-brief {
  display: block;
  max-width: 860px;
}

.portfolio-brief h2 {
  margin-top: 10px;
  max-width: 780px;
}

.portfolio-brief p:last-child {
  max-width: 780px;
  margin-top: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.filter-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.contact-section .eyebrow {
  color: #f1a17d;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.project-card {
  grid-column: span 3;
  display: grid;
  grid-template-rows: 150px 1fr;
  contain: layout paint;
  min-height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(20, 32, 34, 0.06);
}

.project-card--lead {
  grid-column: span 5;
  grid-template-rows: 215px 1fr;
}

.project-card--lead .project-body {
  min-height: 280px;
  padding: 20px;
}

.project-card--lead .project-body h3 {
  font-size: clamp(22px, 1.8vw, 27px);
}

.project-card--lead .project-body p:not(.project-meta):not(.project-source) {
  font-size: 15.5px;
  line-height: 1.48;
}

.project-card > picture > img {
  aspect-ratio: 16 / 10;
}

.project-card.feature {
  grid-column: span 2;
  grid-template-columns: minmax(260px, 0.9fr) 1fr;
  grid-template-rows: minmax(330px, auto);
}

.project-card.feature > picture > img {
  aspect-ratio: 4 / 3;
}

.project-card.is-hidden {
  display: none;
}

.project-card.research-figure img {
  object-fit: contain;
  padding: 16px;
  background: #ffffff;
}

.project-card.evidence-only {
  background: #fbfaf6;
}

.evidence-placeholder {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(24, 122, 114, 0.12), rgba(217, 164, 65, 0.15)),
    #eef3f1;
  border-right: 1px solid var(--line);
}

.evidence-placeholder span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.evidence-placeholder strong {
  max-width: 360px;
  color: var(--deep);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.06;
}

.project-body {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 15px;
}

.project-body h3 {
  margin-top: 7px;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.14;
}

.project-body p:not(.project-meta):not(.project-source) {
  margin-top: 9px;
  color: #506164;
  font-size: 14px;
  line-height: 1.42;
}

.project-meta {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-body .project-source {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 7px;
  background: #edf2f1;
  color: #304346;
  border-radius: var(--radius);
  font-size: 10.5px;
  font-weight: 800;
}

@media (max-width: 1320px) {
  .project-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .project-card {
    grid-column: span 3;
  }

  .project-card--lead {
    grid-column: span 4;
  }
}

@media (max-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .project-card,
  .project-card--lead {
    grid-column: span 3;
  }
}

.experience-section {
  background: #ffffff;
}

.experience-section .section-heading {
  grid-template-columns: minmax(0, 900px);
  gap: 14px;
  align-items: start;
}

.experience-section .section-heading p:last-child {
  max-width: 820px;
}

.timeline {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.experience-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.experience-modes article {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mode-label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mode-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #ffffff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.mode-label span:last-child {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.experience-modes strong {
  display: block;
  margin-top: 10px;
  color: var(--deep);
  font-size: 21px;
  line-height: 1.15;
}

.experience-modes p {
  margin-top: 12px;
  color: #536568;
}

.experience-modes .primary-role {
  min-height: 270px;
  grid-column: 1 / -1;
  background: var(--deep);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(16, 40, 44, 0.16);
}

.experience-modes .primary-role .mode-number {
  color: var(--deep);
  background: var(--gold);
}

.experience-modes .primary-role .mode-label span:last-child {
  color: var(--gold);
}

.experience-modes .primary-role strong {
  max-width: 960px;
  color: #ffffff;
  font-size: clamp(23px, 2.15vw, 31px);
}

.experience-modes .primary-role p {
  max-width: 960px;
  color: rgba(255, 255, 255, 0.8);
}

.mode-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
}

.mode-facts li {
  padding: 7px 10px;
  color: #304346;
  background: #edf2f1;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 850;
}

.primary-role .mode-facts li {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.timeline-item p {
  color: var(--muted);
}

.stack-section {
  background: var(--surface-2);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.stack-grid div {
  background: #ffffff;
}

.education-section {
  background: var(--surface-2);
}

.education-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-top: 42px;
}

.education-grid article {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: clamp(22px, 3vw, 32px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.edu-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.education-grid h3 {
  margin-top: 12px;
  color: var(--deep);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.12;
}

.education-grid p:not(.edu-label) {
  margin-top: 12px;
  color: #4f5f62;
}

.edu-year {
  margin-top: auto;
  padding-top: 18px;
  color: var(--coral);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.achievements {
  background: #ffffff;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.achievement-grid article {
  background: #f8faf8;
}

.achievement-grid strong {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 28px;
  line-height: 1;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  background: var(--deep);
  color: #ffffff;
}

.contact-section > * {
  width: auto;
  max-width: none;
}

.contact-visual {
  width: min(100%, 360px);
  aspect-ratio: 1;
  justify-self: end;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-content {
  max-width: 780px;
}

.contact-content h2 {
  margin-top: 12px;
}

.contact-content p:not(.eyebrow):not(.copy-status) {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.download-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #ffffff;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.36);
  text-underline-offset: 5px;
}

.copy-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--gold);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 64px);
  background: #0b1b1e;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

/* Inline line icons */
.ico {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--teal);
}

.proof-item .ico {
  color: var(--gold);
  margin-bottom: 16px;
}

.stack-grid .ico {
  margin-bottom: 14px;
}

.achievement-grid .ico {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
}

/* R&D process diagram band */
.process-section {
  background: #ffffff;
  padding-top: clamp(48px, 6vw, 82px);
  padding-bottom: clamp(48px, 6vw, 82px);
}

.process-head h2 {
  margin-top: 12px;
}

.process-diagram {
  --process-progress: 0%;
  --process-glow: 0;
  position: relative;
  isolation: isolate;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(22px, 3vw, 38px) clamp(10px, 2vw, 26px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
}

.process-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--process-glow);
  background:
    linear-gradient(
      90deg,
      rgba(201, 85, 54, 0.07) 0%,
      rgba(217, 164, 65, 0.08) var(--process-progress),
      transparent calc(var(--process-progress) + 0.1%)
    );
  transition: opacity 220ms ease;
}

.process-diagram svg {
  position: relative;
  z-index: 1;
  display: block;
  height: auto;
  min-width: 820px;
}

.diagram-node {
  transition: stroke 360ms ease, stroke-width 360ms ease;
}

.diagram-node.is-on {
  stroke: var(--teal);
  stroke-width: 2.6;
}

/* No-photo spec cards (projects without a verified photo) */
.project-card.spec .spec-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(24, 122, 114, 0.18), rgba(217, 164, 65, 0.2)),
    var(--deep);
  color: #ffffff;
}

.project-card.spec .spec-head .ico {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.project-card.spec .spec-head span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

/* Filter buttons */
.filter-button {
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

@media (hover: hover) {
  .filter-button:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
  }

  .filter-button.is-active:hover {
    color: #ffffff;
  }
}

/* === Flagship grid: concept blueprint ⇄ real hardware === */
.flag-deck {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.flag-row {
  display: contents;
}

.flag-row--three {
  grid-template-columns: none;
  margin-top: 0;
}

.flag-row--two {
  grid-template-columns: none;
}

.flag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 300ms ease;
}

.flag-card {
  grid-column: span 3;
}

.flag-card[data-case="uav"] {
  order: 2;
}

.flag-card[data-case="cube"] {
  order: 1;
}

.flag-card[data-case="ant"] {
  order: 3;
}

.flag-card[data-case="mfg"] {
  order: 4;
}

.flag-card[data-case="holo"] {
  order: 5;
}

.flag-card[data-case="ant"],
.flag-card[data-case="mfg"],
.flag-card[data-case="holo"] {
  grid-column: span 2;
}

.flag-media {
  position: relative;
  aspect-ratio: 2 / 3;
  max-height: 66vh;
  overflow: hidden;
  background: #0a1c2e;
}

.flag-row--three .flag-media {
  aspect-ratio: 16 / 11;
  min-height: clamp(300px, 24vw, 420px);
  max-height: none;
}

.flag-card[data-case="cube"] .flag-media,
.flag-card[data-case="holo"] .flag-media {
  aspect-ratio: 2 / 3;
  min-height: 0;
  max-height: 66vh;
}

.flag-media-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
}

.flag-media-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -6px;
}

.flag-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-position: center;
  display: block;
}

.flag-bp {
  z-index: 1;
  opacity: 1;
  object-fit: contain;
}

.flag-photo {
  z-index: 2;
  opacity: 0;
  object-fit: contain;
  background: #0a1c2e;
  transition: opacity 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.flag-card:focus-visible .flag-photo,
.flag-card.show-photo .flag-photo {
  opacity: 1;
}

.flag-state {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--gold);
  border-radius: 999px;
}

.flag-state i {
  display: none;
  font-style: normal;
}

.flag-card:focus-visible .flag-state,
.flag-card.show-photo .flag-state {
  background: var(--teal);
  color: #04231f;
}

.flag-card:focus-visible .flag-state b,
.flag-card.show-photo .flag-state b {
  display: none;
}

.flag-card:focus-visible .flag-state i,
.flag-card.show-photo .flag-state i {
  display: inline;
}

.flag-body {
  padding: clamp(16px, 1.6vw, 22px) clamp(16px, 1.8vw, 24px) clamp(20px, 2vw, 26px);
}

.flag-body .eyebrow {
  color: var(--gold);
}

.flag-body h3 {
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.18;
}

.flag-body > p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.flag-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.flag-kpis li {
  border-left: 2px solid var(--gold);
  padding-left: 10px;
}

.flag-kpis strong {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.1;
  color: #ffffff;
}

.flag-kpis span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
}

.flag-sub {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal);
}

/* touch tap toggles the photo (.show-photo handled above) */

@media (hover: hover) {
  .flag-card:hover {
    border-color: var(--teal);
    box-shadow: 0 24px 60px -22px rgba(42, 167, 154, 0.55);
  }

  .flag-card:hover .flag-photo {
    opacity: 1;
  }

  .flag-card:hover .flag-state {
    background: var(--teal);
    color: #04231f;
  }

  .flag-card:hover .flag-state b {
    display: none;
  }

  .flag-card:hover .flag-state i {
    display: inline;
  }
}

@media (max-width: 1000px) {
  .flag-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flag-card,
  .flag-card[data-case="ant"],
  .flag-card[data-case="mfg"],
  .flag-card[data-case="holo"] {
    grid-column: span 1;
  }

  .flag-row--three {
    grid-template-columns: repeat(2, 1fr);
  }

  .flag-row--three .flag-media {
    aspect-ratio: 4 / 3;
    min-height: clamp(280px, 38vw, 380px);
  }
}

@media (max-width: 640px) {
  .flag-deck {
    grid-template-columns: 1fr;
  }

  .flag-card,
  .flag-card[data-case="ant"],
  .flag-card[data-case="mfg"],
  .flag-card[data-case="holo"] {
    grid-column: span 1;
  }

  .flag-row--two,
  .flag-row--three {
    grid-template-columns: 1fr;
  }

  .flag-row--two .flag-media {
    aspect-ratio: 2 / 3;
  }

  .flag-row--three .flag-media {
    aspect-ratio: 16 / 11;
    min-height: 300px;
  }
}

/* === Graphic skills pass: unified editorial-engineering system === */
body {
  background:
    radial-gradient(circle at 14% 2%, rgba(24, 122, 114, 0.10), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(217, 164, 65, 0.09), transparent 28%),
    linear-gradient(180deg, #f8f6f0 0%, #f2f4f1 44%, #f6f4ef 100%);
  font-family: "Manrope Variable", "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(16, 40, 44, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 40, 44, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent);
}

main,
.trust-bar,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  top: 14px;
  right: clamp(12px, 3vw, 34px);
  left: clamp(12px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(16, 40, 44, 0.84), rgba(14, 52, 56, 0.68)),
    rgba(16, 40, 44, 0.72);
  box-shadow: 0 20px 54px rgba(16, 40, 44, 0.22);
}

.site-header.is-scrolled {
  background:
    linear-gradient(135deg, rgba(16, 40, 44, 0.96), rgba(13, 40, 43, 0.9)),
    rgba(16, 40, 44, 0.94);
}

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

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hero {
  min-height: 100dvh;
}

.hero-backdrop {
  background:
    linear-gradient(90deg, rgba(16, 40, 44, 0.98) 0%, rgba(16, 40, 44, 0.74) 45%, rgba(16, 40, 44, 0.2) 100%),
    linear-gradient(0deg, rgba(16, 40, 44, 0.82), rgba(16, 40, 44, 0.05) 52%),
    radial-gradient(circle at 70% 18%, rgba(217, 164, 65, 0.16), transparent 30%),
    url("./assets/hero_ground_station.jpg") center / cover;
}

.hero-target {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06)),
    rgba(16, 40, 44, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 44px rgba(5, 18, 20, 0.18);
}

.button,
.filter-button,
.flag-more {
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease,
    background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button.primary {
  box-shadow: 0 14px 34px rgba(217, 164, 65, 0.26);
}

.button.secondary {
  box-shadow: 0 12px 28px rgba(16, 40, 44, 0.16);
}

.button:active,
.filter-button:active,
.flag-more:active {
  transform: translateY(1px) scale(0.99);
}

.hero-proof {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(5, 18, 20, 0.24);
}

.hero-proof div {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(16, 40, 44, 0.72);
}

.section {
  position: relative;
  overflow: clip;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  text-wrap: balance;
}

.section-heading p,
.hero-lead,
.project-body p,
.flag-body > p,
.timeline-item p {
  text-wrap: pretty;
}

.resume-snapshot,
.management-metrics article,
.interview-grid article,
.focus-card,
.intro-grid article,
.proof-item,
.flagship-card,
.flag-card,
.project-card,
.experience-modes article,
.timeline-item,
.education-grid article,
.stack-grid div,
.achievement-grid article,
.case-modal-panel {
  position: relative;
  border-color: rgba(16, 40, 44, 0.12);
  box-shadow: 0 18px 46px rgba(20, 32, 34, 0.08);
}

.management-metrics article::after,
.interview-grid article::after,
.focus-card::after,
.intro-grid article::after,
.proof-item::after,
.flagship-card::after,
.flag-card::after,
.project-card::after,
.experience-modes article::after,
.education-grid article::after,
.stack-grid div::after,
.achievement-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--spot-x, 50%) var(--spot-y, 0%),
    rgba(217, 164, 65, 0.18), rgba(24, 122, 114, 0.10) 30%, transparent 62%);
  transition: opacity 260ms ease;
}

@media (hover: hover) {
  .management-metrics article:hover::after,
  .interview-grid article:hover::after,
  .focus-card:hover::after,
  .intro-grid article:hover::after,
  .proof-item:hover::after,
  .flagship-card:hover::after,
  .flag-card:hover::after,
  .project-card:hover::after,
  .experience-modes article:hover::after,
  .education-grid article:hover::after,
  .stack-grid div:hover::after,
  .achievement-grid article:hover::after {
    opacity: 1;
  }
}

.flag-deck {
  max-width: 1240px;
}

.flag-card {
  box-shadow: 0 28px 70px rgba(5, 18, 20, 0.18);
}

.flag-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flag-media {
  background:
    radial-gradient(circle at 50% 20%, rgba(45, 212, 191, 0.14), transparent 36%),
    linear-gradient(135deg, #081a24, #10283c);
}

.flag-media::after,
.flagship-media::after,
.project-card > picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 60%, rgba(5, 18, 20, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.04));
}

.flag-media,
.flagship-media,
.project-card > picture {
  position: relative;
}

.flag-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--deep);
}

.project-grid {
  gap: 15px;
  margin-top: 24px;
}

.project-card {
  border-color: rgba(16, 40, 44, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 246, 0.96)),
    #ffffff;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--teal), rgba(217, 164, 65, 0.62));
  opacity: 0;
  transition: opacity 220ms ease;
}

@media (hover: hover) {
  .project-card:hover::before {
    opacity: 1;
  }
}



.project-card > picture {
  overflow: hidden;
  background: #0b1f23;
}

.project-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 244, 0.98));
}

.tag-list li,
.mode-facts li,
.case-metrics li {
  border: 1px solid rgba(16, 40, 44, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.filter-bar {
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(16, 40, 44, 0.09);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 36px rgba(20, 32, 34, 0.08);
}

.filter-button {
  border-color: transparent;
  background: transparent;
}

.filter-button.is-active {
  box-shadow: 0 10px 24px rgba(24, 122, 114, 0.2);
}

.timeline {
  --timeline-axis-x: 204px;
  position: relative;
  border-top: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: var(--timeline-axis-x);
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(24, 122, 114, 0.32), rgba(217, 164, 65, 0.42), transparent);
}

.timeline-item {
  position: relative;
  grid-template-columns: 178px minmax(260px, 0.9fr) minmax(320px, 1.25fr);
  column-gap: 52px;
  margin-top: 10px;
  padding: 22px 24px 22px 0;
  border: 1px solid rgba(16, 40, 44, 0.09);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.64);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 30px;
  left: var(--timeline-axis-x);
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
}

.timeline-item span {
  position: relative;
  padding-left: 22px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.case-modal-panel {
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 86% 12%, rgba(45, 212, 191, 0.12), transparent 28%),
    linear-gradient(145deg, #0a2a2e, var(--deep) 48%, #071d20);
  box-shadow: 0 44px 120px -34px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.case-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
}

.case-gallery-item {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.contact-section {
  background:
    radial-gradient(circle at 84% 20%, rgba(217, 164, 65, 0.14), transparent 28%),
    linear-gradient(135deg, #0b1b1e, var(--deep));
}

@media (max-width: 1000px) {
  .flag-row--two .flag-card:nth-child(2),
  .flag-row--three .flag-card:nth-child(2),
  .flag-row--three .flag-card:nth-child(3),
  .project-card:not(.project-card--lead):nth-child(n) {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .timeline {
    --timeline-axis-x: 10px;
  }

  html {
    scroll-padding-top: 136px;
  }

  body::before {
    opacity: 0.18;
    background-size: 34px 34px;
  }

  .site-header {
    top: 8px;
    right: 8px;
    left: 8px;
    align-items: stretch;
    border-radius: 18px;
    padding: 8px;
  }

  .site-nav {
    gap: 5px;
    padding: 2px 2px 4px;
    scroll-snap-type: x proximity;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0 10px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: 100dvh;
    padding-top: 132px;
  }

  #profile,
  #flagships,
  #projects,
  #portfolio-list,
  #experience,
  #education,
  #stack,
  #contact {
    scroll-margin-top: 136px;
  }

  .hero-target {
    border-radius: var(--radius);
  }

  .trust-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .trust-bar::-webkit-scrollbar {
    display: none;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 68px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .timeline::before {
    left: var(--timeline-axis-x);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding: 18px 16px 18px 22px;
    border-left: 1px solid rgba(16, 40, 44, 0.09);
    border-radius: var(--radius);
  }

  .timeline-item::before {
    left: var(--timeline-axis-x);
    top: 24px;
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
  }

  .timeline-item span {
    padding-left: 0;
  }

  .case-modal {
    padding: 10px;
  }

  .case-modal-panel {
    width: calc(100vw - 20px);
    max-height: 90dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flag-photo {
    transition: opacity 1ms linear;
  }
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  pointer-events: none;
  will-change: width;
}

/* One unified transition governs both scroll-reveal and hover, so the two
   never compete for the `transition` property on the same element. */
.focus-card,
.interview-grid article,
.experience-modes article:not(.primary-role),
.education-grid article,
.stack-grid div,
.achievement-grid article,
.intro-grid article,
.flagship-card,
.case-points div,
.project-card,
.section-heading,
.resume-snapshot div,
.proof-item,
.timeline-item,
.contact-content,
.process-head,
.process-diagram,
.management-metrics article {
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 300ms ease, border-color 300ms ease;
}

/* Scroll-reveal entrance. Transition-based on purpose: if motion or paint is
   ever unavailable, the end state (opacity:1) still resolves, so content can
   never stay hidden. Active only once JS adds .reveal-ready. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-ready .reveal.reveal-in {
  opacity: 1;
  transform: none;
}

/* Premium hover: lift + accent border, with image zoom on portfolio cards */
@media (hover: hover) {
  .focus-card:hover,
  .interview-grid article:hover,
  .experience-modes article:not(.primary-role):hover,
  .education-grid article:hover,
  .stack-grid div:hover,
  .achievement-grid article:hover,
  .intro-grid article:hover,
  .flagship-card:hover,
  .project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
  }

  .project-card img {
    transition: transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .project-card:hover img {
    transform: scale(1.045);
  }

  .download-links a:hover,
  .site-nav a:hover {
    text-decoration-color: var(--gold);
  }
}

/* Technical section index markers (// 0N) */
main {
  counter-reset: sec;
}

.section-heading {
  counter-increment: sec;
}

.section-heading > .eyebrow::after {
  content: "/" counter(sec, decimal-leading-zero);
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 700;
  opacity: 0.85;
}

/* Career timeline (gantt) — blueprint panel */
.career-map {
  position: relative;
  isolation: isolate;
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(18px, 2.6vw, 30px);
  background:
    linear-gradient(var(--deep), var(--deep)) padding-box,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px);
  background-color: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow-x: auto;
}

.career-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(42, 167, 154, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(217, 164, 65, 0.08), transparent 42%);
}

.career-map svg {
  display: block;
  height: auto;
  min-width: 720px;
}

.career-role {
  cursor: pointer;
  outline: none;
}

.career-hit {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1;
  pointer-events: all;
  transition: fill 180ms ease, stroke 180ms ease;
}

.career-labels text,
.career-lanes rect {
  transition: fill 180ms ease, opacity 180ms ease;
}

.career-lanes rect {
  fill: rgba(255, 255, 255, 0.028);
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}

.career-lanes rect:nth-child(odd) {
  fill: rgba(255, 255, 255, 0.044);
}

.career-bar {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
  transition: filter 180ms ease, opacity 180ms ease, stroke 180ms ease, transform 180ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.career-bar--gold {
  fill: #e4ad47;
}

.career-bar--teal {
  fill: #14b8a7;
}

.career-bar--coral {
  fill: #dc7658;
}

.career-bar--muted {
  fill: #7e9193;
}

.career-role:hover .career-bar,
.career-role:focus-visible .career-bar,
.career-role.is-active .career-bar {
  filter: drop-shadow(0 0 14px rgba(217, 164, 65, 0.36)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
  stroke: rgba(255, 255, 255, 0.82);
  transform: scaleY(1.18);
}

.career-role:hover .career-hit,
.career-role:focus-visible .career-hit,
.career-role.is-active .career-hit {
  fill: rgba(255, 255, 255, 0.055);
  stroke: rgba(217, 164, 65, 0.26);
}

.career-bars.is-interacting .career-role:not(.is-active) .career-bar {
  opacity: 0.34;
}

.career-inspector {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1.1fr) minmax(240px, 1.4fr);
  gap: 10px 18px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.career-inspector[hidden] {
  display: none;
}

.career-inspector.is-visible {
  animation: careerInspectorIn 220ms ease both;
}

@keyframes careerInspectorIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.career-inspector span,
.career-inspector em {
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.career-inspector span {
  color: var(--gold);
  text-transform: uppercase;
}

.career-inspector strong {
  color: #ffffff;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.1;
}

.career-inspector em {
  justify-self: start;
  padding: 6px 10px;
  color: #dff8f5;
  background: rgba(42, 167, 154, 0.14);
  border: 1px solid rgba(42, 167, 154, 0.3);
  border-radius: 999px;
}

.career-inspector p {
  grid-column: 1 / -1;
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

/* Technical mono layer — labels, codes, units, data (merged engineering character) */
.eyebrow,
.metric-label,
.metric-num,
.metric-value em,
.project-meta,
.tag-list li,
.timeline-item span,
.mode-facts li,
.focus-label,
.edu-label,
.edu-year,
.proof-item span,
.filter-button,
.case-points dt,
.flagship-kpis strong,
.flagship-kpis span,
.showcase-kpis strong,
.showcase-kpis span,
.spec-head span,
.brand-mark,
.achievement-grid strong {
  font-family: var(--mono);
}

.metric-num {
  letter-spacing: -2px;
}

/* (legacy subsystem-schematic styles removed — superseded by flagship blueprint↔photo grid) */

/* === Wow layer: premium micro-interactions === */

/* Cursor-follow spotlight (lights up dark sections) */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(440px circle at var(--mx, -200px) var(--my, -200px),
    rgba(45, 212, 191, 0.1), rgba(217, 164, 65, 0.06) 38%, transparent 62%);
}

/* Hero terminal typewriter line */
.hero-terminal {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--gold);
  min-height: 1.5em;
}

.hero-terminal::after {
  content: "_";
  margin-left: 2px;
  animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

/* Availability status pulse */
.hero-status {
  display: flex;
  width: fit-content;
  max-width: 900px;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 13px;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: var(--radius);
  background: rgba(5, 24, 28, 0.62);
  color: rgba(255, 255, 255, 0.93);
  font-family: "Inter Variable", "Segoe UI", Arial, sans-serif;
  font-size: clamp(14px, 1.12vw, 16px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #43d17a;
  animation: statusPulse 2.2s ease-out infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 209, 122, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(67, 209, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(67, 209, 122, 0);
  }
}

/* Magnetic buttons need a smooth return */
.button {
  transition: transform 160ms ease;
}

/* Credibility trust bar (under hero) */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px clamp(16px, 3vw, 36px);
  padding: 15px clamp(18px, 5vw, 64px);
  background: #0b1b1e;
  border-top: 2px solid var(--gold);
  color: rgba(255, 255, 255, 0.82);
}

.trust-bar span {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.trust-bar span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 9px;
  background: var(--gold);
}

@media (max-width: 980px) {
  .career-inspector {
    grid-template-columns: 1fr 1fr;
  }

  .career-inspector strong,
  .career-inspector p {
    grid-column: 1 / -1;
  }

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

  .site-nav {
    width: 100%;
  }

  .hero {
    min-height: 92vh;
    padding-top: 150px;
  }

  .hero-proof,
  .resume-snapshot,
  .management-metrics,
  .interview-grid,
  .experience-modes,
  .focus-grid,
  .intro-grid,
  .proof-band,
  .stack-grid,
  .education-grid,
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .interview-reasons {
    grid-template-columns: 1fr;
  }

  .interview-heading {
    justify-self: start;
    max-width: 720px;
  }

  .focus-card-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .flagship-card,
  .flagship-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .flagship-card:nth-child(even) .flagship-media {
    order: 0;
  }

  .flagship-media {
    min-height: 300px;
  }

  .case-points {
    grid-template-columns: 1fr;
  }

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

  .project-card.feature {
    grid-column: span 2;
    grid-template-columns: 1fr;
    grid-template-rows: 260px 1fr;
  }

  .timeline-item {
    grid-template-columns: 130px 1fr;
  }

  .timeline-item p {
    grid-column: 2;
  }

  .experience-modes .primary-role {
    grid-column: 1 / -1;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    gap: 4px;
    padding: 10px 16px 8px;
  }

  #profile,
  #flagships,
  #projects,
  #portfolio-list,
  #experience,
  #education,
  #stack,
  #contact {
    scroll-margin-top: 112px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    font-size: 13px;
    min-height: 44px;
    padding: 0 2px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 116px;
    padding-bottom: 18px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
  }

  h1 {
    font-size: 48px;
    line-height: 1;
  }

  .hero-role {
    margin-top: 12px;
    font-size: 19px;
    line-height: 1.36;
  }

  .hero-target {
    margin-top: 12px;
    padding: 10px 13px;
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 20px;
  }

  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(16, 40, 44, 0.96), rgba(16, 40, 44, 0.78)),
      url("./assets/hero_ground_station.jpg") center / cover;
  }

  .hero-actions,
  .contact-actions,
  .download-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-proof,
  .resume-snapshot,
  .management-metrics,
  .interview-grid,
  .experience-modes,
  .focus-grid,
  .intro-grid,
  .proof-band,
  .project-grid,
  .stack-grid,
  .education-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    display: none;
  }

  .management-metrics {
    padding-right: 16px;
    padding-left: 16px;
  }

  .career-inspector {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .career-inspector em {
    justify-self: start;
  }

  .experience-modes .primary-role {
    grid-column: auto;
  }

  .flagship-card {
    min-height: auto;
  }

  .flagship-media {
    min-height: 230px;
  }

  .flagship-body {
    padding: 24px;
  }

  .flagship-kpis {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.feature {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }

  .project-body {
    min-height: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item p {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .filter-bar,
  .hero-actions,
  .contact-actions,
  .site-footer,
  .scroll-progress,
  .career-map,
  .process-diagram,
  .showcase-bg {
    display: none !important;
  }

  html,
  body {
    background: #ffffff;
    color: #000000;
  }

  .hero,
  .section,
  .contact-section,
  .management-metrics,
  .process-section,
  .trust-bar {
    padding: 16px 24px;
    color: #000000;
    background: #ffffff;
  }

  .hero {
    min-height: 0;
  }

  .hero-backdrop {
    display: none;
  }

  .hero-content,
  .hero-role,
  .hero-target,
  .hero-lead,
  .hero-proof span,
  .hero-proof strong,
  .showcase-caption,
  .showcase-caption h2,
  .showcase-caption p,
  .showcase-kpis span,
  .showcase-kpis strong,
  .contact-content,
  .contact-content h2,
  .contact-content p,
  .trust-bar,
  .trust-bar span,
  .download-links a {
    color: #000000 !important;
  }

  .trust-bar {
    border-top: 1px solid #000000;
    justify-content: flex-start;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .showcase.is-live {
    height: auto !important;
  }

  .showcase.is-live .showcase-stage {
    position: static !important;
    height: auto !important;
  }

  .showcase-slide {
    position: relative !important;
    inset: auto !important;
    min-height: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    padding: 10px 0;
  }

  .project-card,
  .intro-grid article,
  .stack-grid div,
  .achievement-grid article,
  .focus-card,
  .education-grid article,
  .timeline-item,
  .management-metrics article,
  .showcase-slide {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #cccccc;
  }

  a {
    color: #000000;
    text-decoration: none;
  }

  .download-links a[href]::after,
  .contact-actions a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 10px;
  }
}


/* === Hero signature entrance — plays once on load, then calm === */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.13) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 95% at 16% 82%, #000 0%, rgba(0, 0, 0, 0.35) 46%, transparent 76%);
  mask-image: radial-gradient(125% 95% at 16% 82%, #000 0%, rgba(0, 0, 0, 0.35) 46%, transparent 76%);
  opacity: 0;
  animation: heroGridIn 1.5s ease-out 0.15s forwards;
}

@keyframes heroGridIn {
  from { opacity: 0; transform: translateY(16px) scale(1.04); }
  to   { opacity: 1; transform: none; }
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent 0%, rgba(217, 164, 65, 0.06) 55%, rgba(217, 164, 65, 0.32) 92%, rgba(217, 164, 65, 0.7) 100%);
  border-bottom: 2px solid rgba(217, 164, 65, 0.9);
  opacity: 0;
  transform: translateY(-170px);
  animation: heroScan 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.25s 1 forwards;
}

@keyframes heroScan {
  0%   { opacity: 0; transform: translateY(-170px); }
  14%  { opacity: 0.95; }
  86%  { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(94vh); }
}

.hero-content > * {
  animation: heroRise 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-content > .eyebrow { animation-delay: 0.06s; }
.hero-content > .hero-role { animation-delay: 0.32s; }
.hero-content > .hero-terminal { animation-delay: 0.44s; }
.hero-content > .hero-target { animation-delay: 0.54s; }
.hero-content > .hero-lead { animation-delay: 0.62s; }
.hero-content > .hero-status { animation-delay: 0.72s; }
.hero-content > .hero-actions { animation-delay: 0.82s; }
.hero-content > .variant-switcher { animation-delay: 0.92s; }

.hero-content > h1 {
  animation: heroRise 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) 0.16s both;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heroWipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero-proof > div {
  animation: heroRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-proof > div:nth-child(1) { animation-delay: 0.58s; }
.hero-proof > div:nth-child(2) { animation-delay: 0.69s; }
.hero-proof > div:nth-child(3) { animation-delay: 0.80s; }
.hero-proof > div:nth-child(4) { animation-delay: 0.91s; }

@media (prefers-reduced-motion: reduce) {
  .hero-grid { animation: none; opacity: 1; transform: none; }
  .hero-scan { display: none; }
  .hero-content > *,
  .hero-content > h1,
  .hero-proof > div { animation: none; opacity: 1; transform: none; clip-path: none; }
}

/* picture wrapper must not affect layout of styled imgs (AVIF + fallback) */
picture { display: block; }

/* Mobile: hint that the nav scrolls horizontally (fade right edge) */
@media (max-width: 680px) {
  .site-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
    mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
}

/* Mobile: section headings flow as a block so long text never clips the right padding */
@media (max-width: 680px) {
  .section-heading { display: block; }
  .section-heading h2,
  .section-heading p { max-width: 100%; }
}

/* Mobile safety: never allow horizontal overflow / right-edge clipping */
@media (max-width: 680px) {
  html, body { overflow-x: hidden; }
  .project-card > picture > img { max-width: 100%; }
}

/* #3 visual: subtle ambient sparks in the hero (dark showcase), reduced-motion safe */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(2px 2px at 12% 24%, rgba(45, 212, 191, 0.85), transparent 60%),
    radial-gradient(1px 1px at 22% 68%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(2px 2px at 34% 42%, rgba(217, 164, 65, 0.7), transparent 60%),
    radial-gradient(1px 1px at 45% 82%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 57% 30%, rgba(45, 212, 191, 0.65), transparent 60%),
    radial-gradient(1px 1px at 67% 58%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(2px 2px at 80% 22%, rgba(217, 164, 65, 0.65), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 64%, rgba(45, 212, 191, 0.6), transparent 60%),
    radial-gradient(1px 1px at 16% 90%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 44%, rgba(255, 255, 255, 0.5), transparent 60%);
  animation: heroSparksIn 2.4s ease 0.5s forwards, heroSparksDrift 26s ease-in-out 0.5s infinite alternate;
}

@keyframes heroSparksIn { to { opacity: 0.7; } }
@keyframes heroSparksDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6px, -16px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-particles { animation: none; opacity: 0.5; }
}

/* #4 case depth: "Подробнее" trigger + modal */
.flag-more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(217, 164, 65, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.flag-more span { transition: transform 180ms ease; }
.flag-more:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }
.flag-more:hover span { transform: translateX(3px); }

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
}
.case-modal[hidden] { display: none; }
.case-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 20, 0.72);
  backdrop-filter: blur(6px);
  animation: caseFade 240ms ease both;
}
.case-modal-panel {
  position: relative;
  width: min(1120px, calc(100vw - 34px));
  max-height: 92vh;
  overflow-y: auto;
  background: var(--deep);
  color: #eaf0f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  padding: clamp(20px, 2.6vw, 34px);
  animation: caseRise 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes caseFade { from { opacity: 0; } }
@keyframes caseRise { from { opacity: 0; transform: translateY(22px) scale(0.98); } }
.case-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.case-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.case-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.case-modal-body h3 {
  margin: 10px 50px 4px 0;
  font-size: clamp(22px, 2.6vw, 30px);
  color: #fff;
  line-height: 1.15;
}

.case-modal-body--cube,
.case-modal-body--holo {
  display: block;
}

.case-role { margin-top: 10px; color: rgba(255, 255, 255, 0.82); font-size: 15px; line-height: 1.5; }
.case-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 0;
  list-style: none;
}
.case-metrics li {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: #dfe7e9;
  padding: 7px 12px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.case-modal-body--cube .case-gallery,
.case-modal-body--holo .case-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin: 16px 0 4px;
}

.case-gallery-item {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}
.case-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a1c2e;
}

.case-modal-body--cube .case-gallery-item img,
.case-modal-body--holo .case-gallery-item img {
  aspect-ratio: 9 / 16;
  max-height: 220px;
  object-fit: contain;
}

.case-gallery-item figcaption {
  padding: 6px 8px 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}
.case-sub-title {
  margin: 16px 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}
.case-subsystems { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.case-subsystems li {
  padding-left: 14px;
  border-left: 2px solid rgba(217, 164, 65, 0.55);
}
.case-subsystems b { color: #fff; font-weight: 700; }
.case-subsystems span { color: rgba(255, 255, 255, 0.72); }
.case-result {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(217, 164, 65, 0.08);
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 10px;
  color: #f0e9da;
  font-size: 15px;
  line-height: 1.5;
}
.case-result b { color: var(--gold); }
body.case-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .case-modal-overlay, .case-modal-panel { animation: none; }
}

@media (max-width: 720px) {
  .case-modal-body--cube,
  .case-modal-body--holo {
    display: block;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-modal-body--cube .case-gallery,
  .case-modal-body--holo .case-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
  }
}

/* === Beauty pass: premium industrial polish without changing resume logic === */
:root {
  --ease-premium: cubic-bezier(0.19, 1, 0.22, 1);
  --glow-teal: rgba(45, 212, 191, 0.18);
  --glow-gold: rgba(217, 164, 65, 0.2);
}

::selection {
  background: rgba(217, 164, 65, 0.34);
  color: #071d20;
}

.scroll-progress {
  height: 2px;
  background:
    linear-gradient(90deg, rgba(217, 164, 65, 0), var(--gold) 24%, #2dd4bf 70%, rgba(45, 212, 191, 0));
  box-shadow: 0 0 18px rgba(217, 164, 65, 0.62), 0 0 34px rgba(45, 212, 191, 0.22);
}

.site-header {
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 70px rgba(5, 18, 20, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-header::before {
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--spot-x, 12%) var(--spot-y, 0%), rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 55%);
}

.site-header::after {
  right: 26px;
  bottom: 7px;
  left: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.56), rgba(45, 212, 191, 0.38), transparent);
  opacity: 0.72;
}

.brand,
.site-nav {
  position: relative;
  z-index: 1;
}

.brand-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(217, 164, 65, 0.18);
}

.site-nav a {
  position: relative;
}

.site-nav a.is-active {
  background: rgba(217, 164, 65, 0.98);
  color: #10282c;
  box-shadow: 0 8px 22px rgba(217, 164, 65, 0.22);
}

.hero {
  isolation: isolate;
}

.hero::before,
.hero::after {
  display: none;
}

.hero::before {
  inset: 118px clamp(20px, 5vw, 76px) 110px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right-color: rgba(217, 164, 65, 0.2);
  border-bottom-color: rgba(45, 212, 191, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 20%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.86) 62%, transparent);
}

.hero::after {
  right: clamp(18px, 6vw, 96px);
  bottom: 24%;
  z-index: 1;
  width: min(30vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(45, 212, 191, 0.16);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.08), transparent 63%);
  opacity: 0.74;
  transform: rotate(-12deg);
}

.hero-content,
.hero-proof {
  z-index: 2;
}

.hero h1,
.hero-role,
.section-heading h2,
.flag-body h3,
.project-body h3,
.timeline-item h3 {
  text-wrap: balance;
}

.hero h1 {
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.hero-role {
  max-width: 980px;
}

.hero-target {
  position: relative;
  overflow: hidden;
}

.hero-target::after {
  display: none;
}

@keyframes heroTargetSheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.hero-proof {
  grid-template-columns: 1.12fr 1fr 1.08fr 0.96fr;
}

.hero-proof::before {
  display: none;
}

@keyframes proofSweep {
  0%,
  62% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.hero-proof div {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 164, 65, 0.16), transparent 32%),
    rgba(16, 40, 44, 0.72);
}

.hero-proof div::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(45, 212, 191, 0.52), transparent);
  opacity: 0.72;
}

.section-heading {
  position: relative;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 92px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(24, 122, 114, 0.45), transparent);
}

.flag-deck {
  perspective: 1600px;
}

.flag-card {
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--deep);
  outline: 0;
  box-shadow:
    0 28px 70px rgba(5, 18, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flag-media {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.flag-media::before {
  display: none;
}

.flag-body {
  position: relative;
}

.flag-body::before {
  display: none;
}

.flag-kpis {
  gap: 8px;
}

.flag-kpis li {
  min-width: 0;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
}

.flag-more {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(217, 164, 65, 0.08);
}

@media (hover: hover) {
  .flag-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 164, 65, 0.4);
    box-shadow:
      0 34px 86px rgba(5, 18, 20, 0.24),
      0 0 0 1px rgba(217, 164, 65, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.11);
  }
}

.projects-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(24, 122, 114, 0.08), transparent 24%),
    radial-gradient(circle at 92% 28%, rgba(217, 164, 65, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 244, 239, 0.92));
}



.project-card {
  isolation: isolate;
  border-color: rgba(16, 40, 44, 0.1);
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: -2px;
  box-shadow:
    0 14px 36px rgba(20, 32, 34, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    opacity 240ms ease,
    transform 520ms var(--ease-premium),
    box-shadow 520ms var(--ease-premium),
    border-color 320ms ease;
}

.project-card > picture {
  border-bottom: 1px solid rgba(16, 40, 44, 0.08);
}

.project-card > picture img {
  filter: saturate(0.94) contrast(1.03);
}

.project-card::after {
  border-radius: inherit;
}

@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(217, 164, 65, 0.32);
    box-shadow:
      0 30px 70px rgba(20, 32, 34, 0.16),
      0 0 0 1px rgba(217, 164, 65, 0.08);
  }

  .project-card:hover > picture img {
    filter: saturate(1.04) contrast(1.06);
  }
}

.project-body {
  position: relative;
}

.project-body h3 {
  max-width: 16ch;
}

.project-card--lead .project-body h3,
.project-card.feature .project-body h3 {
  max-width: 22ch;
}

.tag-list li {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 240, 239, 0.92)),
    #edf2f1;
}

.experience-section {
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 164, 65, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff, #f7f8f4);
}

.career-map {
  box-shadow:
    0 30px 86px rgba(5, 18, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.timeline::before {
  z-index: 2;
  width: 1px;
  background: repeating-linear-gradient(
    180deg,
    rgba(217, 164, 65, 0.72) 0 8px,
    transparent 8px 15px
  );
}

.timeline-item {
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 36px rgba(20, 32, 34, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 420ms var(--ease-premium),
    box-shadow 420ms var(--ease-premium),
    border-color 280ms ease;
}

.timeline-item::after {
  display: none;
}

.timeline-item::before {
  z-index: 3;
  background:
    radial-gradient(circle, #ffffff 0 42%, var(--gold) 46% 64%, transparent 68%),
    var(--paper);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.94),
    0 0 0 8px rgba(217, 164, 65, 0.08);
}

@media (hover: hover) {
  .timeline-item:hover {
    transform: translateX(4px);
    border-color: rgba(217, 164, 65, 0.22);
    box-shadow:
      0 22px 54px rgba(20, 32, 34, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}

.case-modal-panel {
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow:
    0 52px 130px -34px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(217, 164, 65, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.case-gallery-item {
  transition: transform 360ms var(--ease-premium), border-color 260ms ease, box-shadow 360ms var(--ease-premium);
}

@media (hover: hover) {
  .case-gallery-item:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 164, 65, 0.34);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 920px) {
  .leadership-grid,
  .case-matrix,
  .career-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-body h3,
  .project-card--lead .project-body h3,
  .project-card.feature .project-body h3 {
    max-width: none;
  }

  .timeline-item::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 28px;
  }

  .brand {
    min-height: 44px;
    justify-content: center;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    min-width: 0;
    width: 100%;
    gap: 6px;
    padding-bottom: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 11px;
    font-size: 13px;
    border-radius: 999px;
  }

  .site-header::after {
    right: 14px;
    left: 14px;
    bottom: 5px;
  }

  .hero::before,
  .hero::after,
  .hero-target::after,
  .hero-proof::before {
    display: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 104px;
  }

  .flag-media {
    width: 100%;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-target::after,
  .hero-proof::before {
    animation: none;
  }

  .flag-card,
  .project-card,
  .timeline-item,
  .case-gallery-item {
    transition-duration: 1ms;
  }
}

/* Compact header cleanup */
.site-header {
  top: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header::after {
  display: none;
}

.brand {
  min-height: 38px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.site-nav a {
  min-height: 36px;
  padding: 0 10px;
}

@media (max-width: 680px) {
  .site-header {
    top: 5px;
    padding: 7px 9px;
  }

  .brand {
    min-height: 40px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 0 10px;
  }
}

/* === Portfolio v2: calm 3-per-row rhythm, aligned rows, bigger media === */
.project-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
}

.project-card,
.project-card--lead {
  grid-column: span 4;
}

.project-card {
  grid-template-rows: 200px 1fr;
}

.project-card--lead {
  grid-template-rows: 236px 1fr;
}

.project-card > picture {
  height: 100%;
  overflow: hidden;
}

.project-card > picture > img,
.project-card.feature > picture > img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.project-card.research-figure > picture > img {
  object-fit: contain;
}

.project-body {
  min-height: 0;
  padding: 18px 20px 20px;
}

.project-card--lead .project-body {
  min-height: 0;
  padding: 20px 22px 22px;
}

.tag-list {
  gap: 6px;
}

.tag-list li {
  padding: 6px 10px;
  font-size: 11px;
  color: #1d5a54;
  background: rgba(24, 122, 114, 0.08);
  border: 1px solid rgba(24, 122, 114, 0.18);
  box-shadow: none;
  border-radius: 999px;
}

.project-card.spec .spec-head {
  gap: 12px;
  padding: 22px 24px;
}

@media (max-width: 1120px) {
  .project-card,
  .project-card--lead {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .project-card,
  .project-card--lead {
    grid-column: auto;
  }
}

/* HR screening refresh */
html {
  scroll-padding-top: 112px;
}

#profile,
#flagships,
#projects,
#experience,
#education,
#stack,
#contact {
  scroll-margin-top: 112px;
}

.hero {
  min-height: 84dvh;
  padding-top: 114px;
  padding-bottom: 18px;
}

.hero-role {
  max-width: 760px;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.22;
}

.hero-target {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.45;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  max-width: 760px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  position: relative;
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.hero-contact a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-contact a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  margin-top: 18px;
}

.hero-proof {
  margin-top: 30px;
}

.hero-proof div {
  min-height: 88px;
  padding: 14px 16px;
}

.hero-proof strong {
  font-size: clamp(18px, 2.2vw, 28px);
}

.hero-proof span {
  margin-top: 7px;
  font-size: 12px;
}

.flag-photo {
  opacity: 0;
}

.flag-bp {
  opacity: 1;
}

.flag-card:focus-visible .flag-bp,
.flag-card.show-photo .flag-bp {
  opacity: 0;
}

.flag-card:focus-visible .flag-photo,
.flag-card.show-photo .flag-photo {
  opacity: 1;
}

.flag-summary {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}

.experience-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.experience-card {
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(20, 32, 34, 0.08);
}

.experience-meta {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.experience-card h3 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.24;
}

.experience-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #4d5f62;
}

.experience-card li {
  line-height: 1.45;
}

.contact-content > p {
  max-width: 58ch;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 18px;
}

.download-links a {
  color: var(--teal-dark);
}

@media (max-width: 920px) {
  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 134px;
  }

  #profile,
  #flagships,
  #projects,
  #experience,
  #education,
  #stack,
  #contact {
    scroll-margin-top: 134px;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 16px;
  }

  .hero-facts,
  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    gap: 6px;
    margin-top: 12px;
  }

  .hero-facts li {
    font-size: 13px;
    line-height: 1.35;
  }

  .hero-contact {
    display: none;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .site-header {
    left: 10px;
    right: 10px;
    top: 6px;
  }

  .experience-card,
  .contact-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .leadership-grid,
  .case-matrix,
  .career-ladder {
    grid-template-columns: 1fr;
    gap: 8px;
    width: calc(100% - 32px);
    margin-top: 18px;
  }

  .contact-section {
    align-items: start;
    gap: 18px;
  }

  .contact-content {
    order: -1;
  }

  .contact-content h2 {
    margin-top: 8px;
  }

  .contact-content p:not(.eyebrow):not(.copy-status) {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-actions {
    margin-top: 16px;
  }

  .contact-visual {
    width: min(100%, 180px);
    justify-self: start;
    border-width: 4px;
  }
}
/* Strict HR/UX pass: keep first screening concise and mobile-safe. */
.skip-link:not(:focus):not(:focus-visible) {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-proof {
  margin-top: 22px;
}

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

.management-proof article {
  min-height: 160px;
}

.metric-value > span:not(.metric-num) {
  display: block;
  color: var(--deep);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.05;
}

.flag-deck {
  align-items: start;
}

.flag-card[data-case="uav"] .flag-media,
.flag-card[data-case="ant"] .flag-media,
.flag-card[data-case="mfg"] .flag-media {
  aspect-ratio: 16 / 10;
  min-height: clamp(260px, 23vw, 360px);
  max-height: none;
}

.flag-card[data-case="cube"] .flag-media,
.flag-card[data-case="holo"] .flag-media {
  aspect-ratio: 2 / 3;
  min-height: 0;
  max-height: 66vh;
}

.resume-focus .section-heading,
.projects-section .section-heading,
.experience-section .section-heading {
  grid-template-columns: minmax(0, 900px);
  gap: 14px;
}

.resume-focus .section-heading h2,
.projects-section .section-heading h2,
.experience-section .section-heading h2 {
  max-width: 900px;
}

.resume-focus .section-heading p:last-child,
.projects-section .section-heading p:last-child,
.experience-section .section-heading p:last-child {
  max-width: 760px;
}

.hero-scan,
.hero::before,
.hero::after,
.hero .eyebrow::before {
  display: none !important;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff;
  clip-path: none !important;
  overflow: visible !important;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.52);
}

.hero-content > h1 {
  animation: heroRise 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both !important;
}

.hero .eyebrow {
  gap: 0;
}

.hero-proof {
  background: rgba(2, 16, 18, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 20px 54px rgba(2, 16, 18, 0.28);
}

.hero-proof div {
  background: rgba(4, 24, 27, 0.9) !important;
}

.hero-proof strong {
  color: #ffffff !important;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 800;
}

@media (max-width: 920px) {
  .management-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 112px;
  }

  #profile,
  #flagships,
  #projects,
  #portfolio-list,
  #experience,
  #education,
  #stack,
  #contact {
    scroll-margin-top: 112px;
  }

  .site-header {
    transform: translateZ(0);
  }

  .management-proof {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .filter-button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
    min-width: 0;
  }

  .project-card,
  .project-card--lead,
  .project-card.feature,
  .project-card.spec,
  .project-card.research-figure {
    grid-column: 1 / -1 !important;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr !important;
  }

  .project-card > picture {
    display: block;
    width: 100%;
    height: 220px !important;
    min-height: 0;
    overflow: hidden;
  }

  .project-card--lead > picture {
    height: 238px !important;
  }

  .project-card > picture > img,
  .project-card.feature > picture > img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    padding: 0;
  }

  .project-card.research-figure > picture > img {
    object-fit: contain;
    padding: 12px;
  }

  .project-card.spec .spec-head {
    min-height: 172px;
  }

  .project-body,
  .project-card--lead .project-body {
    min-height: 0;
    padding: 16px;
  }

  .project-body h3,
  .project-card--lead .project-body h3,
  .project-card.feature .project-body h3 {
    max-width: none;
    font-size: 21px;
  }

  .flag-card[data-case="uav"] .flag-media,
  .flag-card[data-case="ant"] .flag-media,
  .flag-card[data-case="mfg"] .flag-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .flag-card[data-case="cube"] .flag-media,
  .flag-card[data-case="holo"] .flag-media {
    aspect-ratio: 2 / 3;
    min-height: 0;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 10.8vw, 44px) !important;
    line-height: 1.06 !important;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }
}

/* Visual anchors for resume sections 5-7: experience, education, competencies. */
.section-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: stretch;
  width: min(100%, var(--max));
  min-height: clamp(300px, 32vw, 430px);
  margin: clamp(26px, 4vw, 46px) auto clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(20, 32, 34, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 8% 14%, rgba(217, 164, 65, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(9, 35, 39, 0.98), rgba(19, 72, 68, 0.92));
  color: #ffffff;
  box-shadow: 0 28px 78px rgba(20, 32, 34, 0.14);
}

.section-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 0 58%, transparent 92%);
  pointer-events: none;
}

.section-visual-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.section-visual-copy > span {
  display: inline-flex;
  width: fit-content;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-visual-copy h3 {
  max-width: 12.5ch;
  margin-top: 14px;
  color: #ffffff;
  font-size: clamp(27px, 3.2vw, 48px);
  line-height: 1.02;
}

.section-visual-copy p {
  max-width: 56ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.58;
}

.section-visual-copy ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.section-visual-copy li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
  line-height: 1.35;
}

.section-visual-copy li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 999px;
}

.section-visual picture {
  position: relative;
  z-index: 1;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.section-visual picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 35, 39, 0.45), transparent 46%),
    linear-gradient(180deg, transparent 58%, rgba(9, 35, 39, 0.32));
  pointer-events: none;
}

.section-visual img {
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 32vw, 430px);
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
}

.section-visual--education {
  background:
    radial-gradient(circle at 12% 18%, rgba(24, 122, 114, 0.2), transparent 32%),
    linear-gradient(135deg, #fbfaf6, #e9f1f0);
  color: var(--ink);
}

.section-visual--education::before {
  background:
    linear-gradient(rgba(20, 32, 34, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 34, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
}

.section-visual--education .section-visual-copy > span,
.section-visual--education .section-visual-copy h3 {
  color: var(--deep);
}

.section-visual--education .section-visual-copy > span {
  color: var(--teal);
}

.section-visual--education .section-visual-copy p,
.section-visual--education .section-visual-copy li {
  color: #4d5f62;
}

.section-visual--education picture {
  background: #ffffff;
  border-left-color: rgba(20, 32, 34, 0.12);
}

.section-visual--education picture::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 44%);
}

.section-visual--education img {
  object-fit: contain;
  padding: clamp(18px, 3vw, 34px);
  background: #ffffff;
}

.section-visual--stack {
  background:
    radial-gradient(circle at 80% 12%, rgba(217, 164, 65, 0.22), transparent 28%),
    linear-gradient(135deg, #0d2024, #113a3a 58%, #1a2c2f);
}

.section-visual--stack picture::after {
  background:
    linear-gradient(90deg, rgba(13, 32, 36, 0.58), transparent 48%),
    radial-gradient(circle at 85% 15%, rgba(217, 164, 65, 0.16), transparent 30%);
}

.experience-section,
.education-section,
.stack-section {
  position: relative;
}

.experience-section .career-ladder,
.experience-section .experience-list,
.experience-section .career-map,
.experience-section .timeline,
.education-section .education-grid,
.stack-section .stack-grid {
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  .section-visual {
    grid-template-columns: 1fr;
  }

  .section-visual picture {
    min-height: 260px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .section-visual-copy h3 {
    max-width: 18ch;
  }
}

@media (max-width: 680px) {
  .section-visual {
    min-height: 0;
    margin-top: 22px;
    margin-bottom: 22px;
    border-radius: 14px;
  }

  .section-visual-copy {
    padding: 22px 18px;
  }

  .section-visual-copy h3 {
    max-width: none;
    font-size: 26px;
    line-height: 1.08;
  }

  .section-visual-copy p {
    font-size: 14.5px;
  }

  .section-visual picture,
  .section-visual img {
    min-height: 210px;
  }

  .section-visual--education img {
    padding: 14px;
  }
}

@media (max-width: 680px) {
  .hero-proof {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    width: calc(100% - 32px);
    margin: 14px auto 0;
    background: rgba(217, 164, 65, 0.34);
    border: 1px solid rgba(217, 164, 65, 0.36);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(2, 16, 18, 0.18);
  }

  .hero-proof div {
    min-height: 62px;
    padding: 10px 11px;
    background: rgba(6, 26, 30, 0.88) !important;
  }

  .hero-proof strong {
    font-size: 19px;
    line-height: 1.05;
  }

  .hero-proof span {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.2;
  }
}

/* HR-screening pass: keep first read focused and remove duplicate resume narratives. */
.portfolio-details {
  width: min(100%, var(--max));
  margin: 24px auto 0;
}

.portfolio-details summary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid rgba(24, 122, 114, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--deep);
  font-weight: 860;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(20, 32, 34, 0.08);
}

.portfolio-details summary::marker,
.portfolio-details summary::-webkit-details-marker {
  display: none;
}

.portfolio-details summary::after {
  content: "+";
  margin-left: 10px;
  color: var(--teal);
  font-family: var(--mono);
  font-weight: 900;
}

.portfolio-details[open] summary {
  margin-bottom: 18px;
}

.portfolio-details[open] summary::after {
  content: "−";
}

.experience-section .career-ladder,
.experience-section .career-map,
.experience-section .timeline {
  display: none;
}

.section-visual {
  min-height: clamp(230px, 23vw, 330px);
  margin-top: clamp(18px, 2.4vw, 30px);
  margin-bottom: clamp(18px, 2.4vw, 30px);
  border-radius: 14px;
}

.section-visual-copy {
  padding: clamp(20px, 3vw, 34px);
}

.section-visual-copy h3 {
  max-width: 16ch;
  font-size: clamp(24px, 2.45vw, 36px);
  line-height: 1.06;
}

.section-visual-copy p {
  margin-top: 12px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.46;
}

.section-visual-copy ul {
  gap: 6px;
  margin-top: 14px;
}

.section-visual-copy li {
  font-size: 13px;
  line-height: 1.28;
}

.section-visual img {
  min-height: clamp(230px, 23vw, 330px);
}

.management-metrics {
  margin-top: 20px;
}

.management-metrics article {
  padding: 18px;
}

.management-metrics p {
  display: none;
}

.projects-section {
  padding-bottom: clamp(34px, 4.5vw, 58px);
}

.projects-section + .experience-section {
  padding-top: clamp(34px, 4.5vw, 58px);
}

.flag-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.flag-sub {
  display: none;
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: row;
    align-items: center;
  }

  .site-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 98px;
  }

  #profile,
  #flagships,
  #projects,
  #portfolio-list,
  #experience,
  #education,
  #stack,
  #contact {
    scroll-margin-top: 98px;
  }

  .site-header {
    left: 8px;
    right: 8px;
    top: 6px;
    flex-direction: row;
    gap: 8px;
    padding: 9px 10px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
    font-size: 13px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .site-nav {
    width: auto;
    flex: 1 1 auto;
    gap: 8px;
    justify-content: flex-end;
    overflow: visible;
  }

  .site-nav a {
    display: none;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
  }

  .site-nav a[href="#flagships"],
  .site-nav a[href="#experience"],
  .site-nav a[href="#contact"] {
    display: inline-flex;
  }

  .hero {
    padding-top: 88px;
  }

  .hero-status {
    width: 100%;
    font-size: 13px;
  }

  .hero-target {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 760;
  }

  .hero-facts li:nth-child(3) {
    display: none;
  }

  .flag-summary {
    -webkit-line-clamp: 3;
  }

  .management-metrics {
    display: none;
  }

  .trust-bar {
    display: none;
  }

  .section-visual {
    grid-template-columns: 1fr;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .section-visual picture,
  .section-visual img {
    min-height: 190px;
  }

  .portfolio-details summary {
    width: 100%;
  }
}

/* Final mobile/tablet polish after strict HR pass. Keep these overrides last. */
@media (max-width: 820px) and (min-width: 681px) {
  .site-header {
    left: 14px;
    right: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 12px;
    padding-inline: 8px;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    background: rgba(7, 29, 33, 0.76);
    box-shadow: 0 12px 28px rgba(2, 16, 18, 0.18);
  }

  .brand {
    min-height: 30px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 27px;
    justify-content: center;
    padding-inline: 5px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 9.5px;
    line-height: 1;
  }

  .site-nav a[href="#profile"] {
    display: none;
  }

  html {
    scroll-padding-top: 126px;
  }

  #profile,
  #flagships,
  #projects,
  #portfolio-list,
  #experience,
  #education,
  #stack,
  #contact {
    scroll-margin-top: 126px;
  }

  .hero {
    padding-top: 134px;
  }

  .hero-facts {
    display: none !important;
  }

  .hero-status {
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.28;
  }

  .hero-target {
    font-size: 12.5px;
    line-height: 1.34;
  }

  .hero-proof {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    width: calc(100% - 32px);
    margin: 14px auto 0;
    overflow: hidden;
    border: 1px solid rgba(217, 164, 65, 0.34);
    border-radius: 10px;
    background: rgba(217, 164, 65, 0.34);
    box-shadow: 0 18px 42px rgba(2, 16, 18, 0.18);
  }

  .hero-proof div {
    min-height: 62px;
    padding: 10px 11px;
    background: rgba(6, 26, 30, 0.88) !important;
  }

  .hero-proof strong {
    font-size: 19px;
    line-height: 1.05;
  }

  .hero-proof span {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.2;
  }

  body.case-open .site-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
  }

  .case-modal {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .case-modal-panel {
    max-height: calc(100dvh - 24px);
  }
}

/* Later-stage AAA polish. */
.case-matrix {
  display: none;
}

.support-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, var(--max));
  margin: 22px auto 0;
}

.support-preview article {
  padding: 18px;
  border: 1px solid rgba(24, 122, 114, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 30px rgba(20, 32, 34, 0.06);
}

.support-preview span {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.support-preview strong {
  display: block;
  margin-top: 8px;
  color: var(--deep);
  font-size: 19px;
  line-height: 1.12;
}

.support-preview p {
  margin-top: 8px;
  color: #536367;
  font-size: 14px;
  line-height: 1.42;
}

.contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 10px;
  max-width: 680px;
}

.contact-actions .button:first-child {
  justify-content: flex-start;
  padding-inline: 20px;
  font-size: 16px;
}

.contact-actions .button[data-copy] {
  grid-column: 1 / -1;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.download-links {
  max-width: 680px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.download-links a {
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 820px) {
  .support-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .support-preview {
    margin-top: 18px;
  }

  .support-preview article {
    padding: 15px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-actions .button:first-child {
    justify-content: center;
    font-size: 14px;
  }
}

/* Fix mobile hero proof visibility: older entrance animation hides cells during first-screen capture. */
.hero-content .eyebrow,
.hero-content h1,
.hero-role,
.hero-status,
.hero-target,
.hero-actions,
.hero-actions .button,
.hero-proof,
.hero-proof > div,
.hero-proof strong,
.hero-proof span {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  animation: none !important;
  filter: none !important;
}

@media (max-width: 680px) {
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-role,
  .hero-status,
  .hero-target,
  .hero-actions,
  .hero-actions .button {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    filter: none !important;
  }

  .hero-proof > div {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    filter: none !important;
  }

  .hero-proof strong,
  .hero-proof span {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* === Screening batch: flag results, FAQ, floating CTA === */
.flag-result {
  margin: 14px 0 0;
  padding: 10px 13px;
  background: rgba(217, 164, 65, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  color: #f0e9da;
  font-size: 13.5px;
  line-height: 1.5;
}

.flag-result b { color: var(--gold); }

.faq {
  max-width: 860px;
  margin-top: clamp(26px, 3.5vw, 44px);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 2px;
}

.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 2px;
  font-weight: 800;
  font-size: 16.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  border: 1px solid rgba(217, 164, 65, 0.5);
  border-radius: 50%;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.faq details[open] summary::after {
  content: "−";
  background: var(--gold);
  color: #10282c;
}

.faq details > p {
  margin: 0 44px 16px 2px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--gold);
  color: #14231f;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 14px 34px -8px rgba(217, 164, 65, 0.55), 0 6px 18px rgba(20, 32, 34, 0.25);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 200ms ease;
}

.float-cta.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.float-cta:hover { box-shadow: 0 18px 42px -8px rgba(217, 164, 65, 0.75), 0 8px 22px rgba(20, 32, 34, 0.3); }

.float-cta span { transition: transform 180ms ease; }
.float-cta:hover span { transform: translateX(3px); }

@media (max-width: 680px) {
  .float-cta { right: 14px; bottom: 14px; padding: 12px 18px; }
}

@media print {
  .float-cta, .faq-section { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .float-cta { transition: opacity 1ms linear; transform: none; }
}

/* ================================================================
   EDITORIAL-V4 deep rework layer
   aerospace magazine: paper/ink spreads, huge type, chapter marks
   ================================================================ */
:root {
  --paper: #f7f5ef;
  --deep: #12171b;            /* neutral ink, green removed */
  --ink-2: #0d1114;
  --radius: 14px;
  --shadow: 0 30px 80px rgba(10, 14, 17, 0.16), 0 8px 24px rgba(10, 14, 17, 0.08);
}

body {
  background:
    linear-gradient(rgba(57, 103, 138, 0.035) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(57, 103, 138, 0.035) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--paper);
  font-size: 17px;
  line-height: 1.64;
}

/* ---------- editorial type scale ---------- */
@media (min-width: 681px) {
  h1 {
    font-size: clamp(64px, 9.6vw, 156px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
  }

  h2,
  .section-heading h2 {
    font-size: clamp(38px, 4.8vw, 66px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.022em;
  }
}

/* ---------- chapter watermarks ---------- */
.section[data-ch] {
  position: relative;
  overflow: clip;
}

.section[data-ch]::before {
  content: attr(data-ch);
  position: absolute;
  top: clamp(8px, 2vw, 26px);
  right: clamp(6px, 2.4vw, 40px);
  z-index: 0;
  font-family: "Manrope Variable", Arial, sans-serif;
  font-size: clamp(110px, 20vw, 250px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(18, 23, 27, 0.1);
  pointer-events: none;
}

.section[data-ch] > * { position: relative; z-index: 1; }

.management-metrics[data-ch] {
  position: relative;
  overflow: clip;
}

.management-metrics[data-ch]::before {
  content: attr(data-ch);
  position: absolute;
  top: clamp(8px, 2vw, 26px);
  right: clamp(6px, 2.4vw, 40px);
  font-family: "Manrope Variable", Arial, sans-serif;
  font-size: clamp(110px, 20vw, 250px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(18, 23, 27, 0.1);
  pointer-events: none;
}

/* ---------- floating dark pill header ---------- */
.site-header {
  top: 14px;
  right: clamp(12px, 2.6vw, 30px);
  left: clamp(12px, 2.6vw, 30px);
  padding: 9px 14px;
  background: rgba(13, 17, 20, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(10, 14, 17, 0.22);
}

.site-header.is-scrolled {
  background: rgba(13, 17, 20, 0.94);
}

.site-nav a { color: rgba(255, 255, 255, 0.82); }
.site-nav a:hover { color: #ffffff; }
.site-header .brand { color: #ffffff; }

/* ---------- buttons: editorial pills ---------- */
.button {
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(165deg, #ecc06a, #c9962e);
  color: #171310;
  box-shadow: 0 10px 26px -10px rgba(201, 150, 46, 0.6);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(18, 23, 27, 0.35);
  color: #12171b;
}

/* ---------- HERO: editorial split ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  min-height: auto;
  padding: 150px clamp(22px, 4.4vw, 64px) clamp(40px, 5vw, 72px);
  background: transparent;
  color: #12171b;
  overflow: visible;
}

.hero-backdrop {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(420px, 66vh, 720px);
  border: 1px solid rgba(18, 23, 27, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: none;
  filter: saturate(0.82) contrast(1.06);
  background:
    linear-gradient(180deg, rgba(18, 23, 27, 0) 62%, rgba(18, 23, 27, 0.55)),
    url("./assets/hero_ground_station.jpg") center / cover;
}

.hero-backdrop::after {
  content: "НАЗЕМНАЯ СТАНЦИЯ / МОСКВА";
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(57, 103, 138, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 103, 138, 0.1) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(120% 100% at 0% 100%, #000, rgba(0,0,0,0.25) 55%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 0% 100%, #000, rgba(0,0,0,0.25) 55%, transparent 80%);
}

.hero-particles { display: none; }

.hero-content {
  grid-column: 1;
  grid-row: 1;
  max-width: none;
}

.hero h1 {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #101418;
  padding-bottom: 0;
}

.hero .eyebrow { color: #a4741f; }

.hero-role {
  color: #1d242a;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 800;
  max-width: 640px;
}

.hero-status { color: #2c3e44; }

.hero-target {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 23, 27, 0.16);
  border-left: 3px solid #c9962e;
  color: #1d242a;
  border-radius: 10px;
}

.hero-facts li { color: #232b30; }

.hero-contact a { color: #12171b; }

.hero-proof {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: clamp(18px, 2.4vw, 30px);
}

.hero-proof > div {
  background: #ffffff;
  border: 1px solid rgba(18, 23, 27, 0.14);
  border-top: 2px solid rgba(201, 150, 46, 0.85);
  border-radius: 12px;
  backdrop-filter: none;
}

.hero-proof strong { color: #a4741f; }
.hero-proof span { color: #43505a; }

.hero-scan { mix-blend-mode: normal; opacity: 0.9; }

/* ---------- marquee (trust) ---------- */
.trust-bar {
  overflow: hidden;
  padding: 14px 0;
  background: var(--ink-2);
  border-top: none;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 4vw, 56px);
  animation: marq 30s linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  flex-shrink: 0;
}

@keyframes marq {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.trust-bar span { color: rgba(255, 255, 255, 0.8); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-set[aria-hidden] { display: none; }
}

/* ---------- metrics: giant editorial numerals ---------- */
.management-metrics {
  gap: 0;
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
  background: transparent;
}

.management-metrics article {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(18, 23, 27, 0.16);
  border-radius: 0;
  box-shadow: none;
  padding: 6px 26px 2px;
}

.management-metrics article:first-child { border-left: none; padding-left: 4px; }

.metric-num {
  font-size: clamp(56px, 6.4vw, 104px);
  letter-spacing: -0.035em;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #101418;
}

.metric-label { color: #a4741f; }

.metric-value em { color: #39454d; }

.management-metrics p { color: #59656d; }

/* ---------- ink spreads ---------- */
.section[data-spread="ink"] {
  background: linear-gradient(180deg, var(--ink-2), var(--deep) 30%, var(--deep) 72%, var(--ink-2));
  color: #edf0ef;
}

.section[data-spread="ink"]::before {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.09);
}

.section[data-spread="ink"] .section-heading h2 { color: #ffffff; }
.section[data-spread="ink"] .section-heading p:last-child { color: rgba(255, 255, 255, 0.72); }
.section[data-spread="ink"] .section-heading > .eyebrow::after { color: rgba(255, 255, 255, 0.4); }

.section[data-spread="ink"] .timeline-item { border-color: rgba(255, 255, 255, 0.12); }
.section[data-spread="ink"] .timeline-item h3 { color: #ffffff; }
.section[data-spread="ink"] .timeline-item p { color: rgba(255, 255, 255, 0.72); }
.section[data-spread="ink"] .timeline-item span { color: #d9a441; }

.section[data-spread="ink"] .achievement-grid article {
  background: #171d22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section[data-spread="ink"] .achievement-grid h3 { color: #ffffff; }
.section[data-spread="ink"] .achievement-grid p { color: rgba(255, 255, 255, 0.7); }
.section[data-spread="ink"] .achievement-grid strong {
  background: linear-gradient(172deg, #f0d9a6, #d9a441 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section[data-spread="ink"] .achievement-grid .ico { color: #d9a441; }

/* ---------- flagship band: neutral ink (de-green) ---------- */
.flagship-grid {
  background:
    radial-gradient(1100px 520px at 12% -6%, rgba(90, 130, 160, 0.1), transparent 60%),
    radial-gradient(900px 460px at 94% 108%, rgba(217, 164, 65, 0.08), transparent 55%),
    linear-gradient(180deg, var(--ink-2), var(--deep) 30%, var(--deep) 72%, var(--ink-2));
}

.flag-card {
  background: #151b20;
  border-color: rgba(255, 255, 255, 0.14);
}

@media (hover: hover) {
  .flag-card:hover {
    border-color: rgba(217, 164, 65, 0.55);
    box-shadow: 0 34px 80px -28px rgba(0, 0, 0, 0.7), 0 24px 60px -22px rgba(217, 164, 65, 0.22);
  }
}

/* contact + footer: neutral ink */
.contact-section {
  background:
    radial-gradient(circle at 84% 20%, rgba(217, 164, 65, 0.12), transparent 30%),
    linear-gradient(135deg, var(--ink-2), var(--deep));
}

.site-footer {
  background: var(--ink-2);
  border-top: 1px solid rgba(217, 164, 65, 0.4);
}

/* ---------- FAQ upscale ---------- */
.faq summary { font-size: 18px; }
.faq details > p { font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-backdrop { grid-column: 1; grid-row: 2; min-height: 320px; }
  .hero-content { grid-row: 1; }
  .hero-proof { grid-row: 3; }
  .section[data-ch]::before { font-size: clamp(90px, 24vw, 150px); }
}

@media (max-width: 680px) {
  .management-metrics article {
    border-left: none;
    border-top: 1px solid rgba(18, 23, 27, 0.16);
    padding: 16px 4px 0;
  }
  .management-metrics article:first-child { border-top: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scan { display: none; }
}

@media print {
  .section[data-ch]::before, .marquee-track { display: none !important; }
}

/* editorial hotfix: name must be ink on paper; status chip contrast */
.hero h1,
.hero .hero-content h1,
.hero-content > h1,
#hero-title {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #101418 !important;
  color: #101418 !important;
  text-shadow: none !important;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: #12171b;
  color: #f2f4f3;
  border-radius: 999px;
  font-weight: 700;
}

/* editorial: neutralize residual teal/green gradients */
.career-ladder {
  background: linear-gradient(160deg, #171d22, #12171b) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.focus-card-large {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(201, 150, 46, 0.08), transparent 60%),
    #ffffff !important;
}

/* ================================================================
   EDITORIAL-V4.1 — deepening pass: pull-quote, duotone portfolio,
   card refinement, blueprint sheet, edge label, scrollbar
   ================================================================ */

/* ---------- pull-quote spread ---------- */
.pull-quote {
  position: relative;
  padding: clamp(80px, 10vw, 150px) clamp(22px, 4.4vw, 64px);
  background: transparent;
  overflow: clip;
}

.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: clamp(-30px, -2vw, -10px);
  left: clamp(6px, 2vw, 40px);
  font-family: "Manrope Variable", Arial, sans-serif;
  font-size: clamp(200px, 30vw, 420px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(18, 23, 27, 0.09);
  pointer-events: none;
}

.pull-quote p {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  font-family: "Manrope Variable", Arial, sans-serif;
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #101418;
  text-align: center;
}

.pull-quote em {
  font-style: normal;
  color: #a4741f;
}

.pull-quote span {
  position: relative;
  display: block;
  margin-top: 26px;
  text-align: center;
  color: #59656d;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- portfolio: natural color with a subtle hover lift ---------- */
.project-card > picture > img,
.project-card > img {
  filter: saturate(0.96) contrast(1.03);
  transition: filter 480ms ease, transform 640ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover > picture > img,
.project-card:hover > img,
.project-card:focus-within > picture > img {
  filter: saturate(1.06) contrast(1.04);
}

.project-card.research-figure > picture > img { filter: none; }

/* editorial card skin on paper spreads */
.project-card {
  border: 1px solid rgba(18, 23, 27, 0.16);
  border-radius: var(--radius);
  box-shadow: none;
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 240ms ease, box-shadow 320ms ease;
}

@media (hover: hover) {
  .project-card:hover {
    border-color: rgba(201, 150, 46, 0.6);
    box-shadow: 0 26px 60px -24px rgba(10, 14, 17, 0.28);
  }
}

.project-meta { color: #a4741f; }

.tag-list li {
  background: rgba(18, 23, 27, 0.05);
  border: 1px solid rgba(18, 23, 27, 0.14);
  color: #39454d;
}

/* ---------- profile / education / stack refinement ---------- */
.focus-card,
.education-grid article,
.stack-grid > div {
  background: #ffffff;
  border: 1px solid rgba(18, 23, 27, 0.16);
  border-radius: var(--radius);
  box-shadow: none;
}

@media (hover: hover) {
  .focus-card:hover,
  .education-grid article:hover,
  .stack-grid > div:hover {
    border-color: rgba(201, 150, 46, 0.55);
    box-shadow: 0 22px 50px -22px rgba(10, 14, 17, 0.25);
  }
}

.focus-label,
.edu-label { color: #a4741f; }

.stack-grid .ico { color: #a4741f; }

/* ---------- method: blueprint sheet ---------- */
.process-diagram {
  padding: clamp(20px, 3vw, 40px);
  background:
    linear-gradient(rgba(57, 103, 138, 0.05) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(57, 103, 138, 0.05) 1px, transparent 1px) 0 0 / 28px 100%,
    #ffffff;
  border: 1px solid rgba(18, 23, 27, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.process-diagram::after {
  content: "ЛИСТ 03 / МАРШРУТ R&D / МАСШТАБ 1:1";
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: rgba(18, 23, 27, 0.42);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

/* ---------- hero vertical edge label ---------- */
.hero::after {
  content: "ДОСЬЕ / 2026 / МОСКВА";
  position: absolute;
  top: 170px;
  right: 10px;
  writing-mode: vertical-rl;
  color: rgba(18, 23, 27, 0.38);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero { position: relative; }

@media (max-width: 1000px) {
  .hero::after { display: none; }
}

/* ---------- contact: editorial sign-off ---------- */
.contact-content h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -0.02em;
}

.download-links a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- marquee: pause on hover ---------- */
@media (hover: hover) {
  .trust-bar:hover .marquee-track { animation-play-state: paused; }
}

/* ---------- scrollbar + selection ---------- */
::selection { background: rgba(201, 150, 46, 0.3); }

html {
  scrollbar-width: thin;
  scrollbar-color: #2a333a #e8e5dc;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #e8e5dc; }
::-webkit-scrollbar-thumb {
  background: #2a333a;
  border-radius: 8px;
  border: 3px solid #e8e5dc;
}
::-webkit-scrollbar-thumb:hover { background: #c9962e; }

/* ---------- print ---------- */
@media print {
  .pull-quote::before, .hero::after { display: none !important; }
}

/* ================================================================
   EDITORIAL-V4.2 COHERENCE — audit fixes: unified accents,
   de-green surfaces, flagship band legibility, chip/date contrast
   ================================================================ */

/* ---------- eyebrow unification: bronze on paper, gold on ink ---------- */
.eyebrow { color: #a4741f; }

.flagship-grid .eyebrow,
.section[data-spread="ink"] .eyebrow,
.contact-section .eyebrow,
.flag-body .eyebrow {
  color: var(--gold);
}

.focus-label,
.edu-label,
.portfolio-priorities span,
.metric-label { color: #a4741f; }

.edu-year { color: #a4741f; }

/* ---------- flagship band: restore legibility ---------- */
.flagship-grid .section-heading h2 { color: #ffffff; }
.flagship-grid .section-heading p:last-child { color: rgba(255, 255, 255, 0.75); }
.flagship-grid .section-heading > .eyebrow::after { color: rgba(255, 255, 255, 0.4); }

/* case-matrix: visible ink mini-cards */
.case-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3vw, 40px);
}

.case-matrix article {
  padding: 16px 16px 18px;
  background: #171d22;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 2px solid rgba(217, 164, 65, 0.6);
  border-radius: 12px;
}

.case-matrix span {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-matrix strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
}

.case-matrix p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .case-matrix { grid-template-columns: repeat(2, 1fr); }
  .case-matrix article:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .case-matrix { grid-template-columns: 1fr; }
}

/* ---------- experience: date/meta contrast ---------- */
.experience-meta { color: #55606a; }

.career-ladder .experience-meta { color: rgba(255, 255, 255, 0.75); }

.career-ladder .experience-card {
  background: linear-gradient(160deg, #171d22, #12171b) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* ---------- education & stack: kill mint surfaces ---------- */
.education-section,
.stack-section {
  background: transparent;
}

.section-visual {
  border: 1px solid rgba(18, 23, 27, 0.16);
  border-radius: var(--radius);
}

.section-visual--education {
  background:
    linear-gradient(rgba(57, 103, 138, 0.05) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(57, 103, 138, 0.05) 1px, transparent 1px) 0 0 / 28px 100%,
    #ffffff !important;
}

.section-visual--stack,
.section-visual--competencies {
  background: linear-gradient(160deg, #171d22, #12171b) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

/* ---------- metrics: gold hairline instead of coral ---------- */
@media (min-width: 681px) {
  .management-metrics article {
    border-top: 2px solid rgba(201, 150, 46, 0.75);
    padding-top: 14px;
  }
}

/* ---------- misc coral -> bronze ---------- */
.section-heading > .eyebrow::after { color: rgba(18, 23, 27, 0.4); }

.timeline-item span { color: #a4741f; }
.section[data-spread="ink"] .timeline-item span { color: var(--gold); }

/* EDITORIAL-V4.3 — final audit fixes */
.section-visual--experience {
  background: linear-gradient(160deg, #171d22, #12171b) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.section-visual-copy > span { color: var(--gold); }
.section-visual--education .section-visual-copy > span { color: #a4741f; }

.experience-card h3 { color: #101418; }
.experience-card .experience-meta,
.experience-list .experience-meta { color: #a4741f; }
.experience-card li { color: #313c44; }
.experience-card p:not(.experience-meta) { color: #4a565f; }

/* ================================================================
   EDITORIAL-V4.4 — final chord: flagship order, spines, sign-off,
   matrix counters, reveal cascade
   ================================================================ */

/* flagship visual order: cube, holo | uav, ant, mfg */
.flag-card[data-case="cube"] { order: 1 !important; }
.flag-card[data-case="holo"] { order: 2 !important; }
.flag-card[data-case="uav"]  { order: 3 !important; }
.flag-card[data-case="ant"]  { order: 4 !important; }
.flag-card[data-case="mfg"]  { order: 5 !important; }

/* chapter spines on ink chapters */
.section[data-spine] { position: relative; }

.section[data-spine]::after {
  content: attr(data-spine);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .section[data-spine]::after { display: none; }
}

/* case-matrix counters 01–05 */
.case-matrix { counter-reset: cm; }

.case-matrix article { counter-increment: cm; position: relative; }

.case-matrix article::before {
  content: "0" counter(cm);
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(217, 164, 65, 0.45);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

/* sign-off spread */
.sign-off {
  padding: clamp(100px, 13vw, 190px) clamp(22px, 4.4vw, 64px);
  text-align: center;
  overflow: clip;
}

.sign-off-kicker {
  color: #a4741f;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sign-off h2 {
  margin-top: 18px;
  font-size: clamp(44px, 7.4vw, 110px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 0.98;
  color: #101418;
}

.sign-off-mail {
  display: inline-block;
  margin-top: clamp(22px, 3vw, 38px);
  color: #101418;
  font-family: var(--mono);
  font-size: clamp(17px, 2.4vw, 30px);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(201, 150, 46, 0.65);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}

.sign-off-mail:hover {
  color: #a4741f;
  text-decoration-color: #a4741f;
}

.sign-off-note {
  display: block;
  margin-top: 20px;
  color: #59656d;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* reveal transitions for new blocks */
.experience-card,
.case-matrix article,
.faq details {
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 440ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 300ms ease;
}

@media print {
  .sign-off, .section[data-spine]::after { display: none !important; }
}

/* ================================================================
   EDITORIAL-V4.5 — flagship uniform 2-3, portfolio teaser,
   education/stack spec-sheet rows (fewer card walls)
   ================================================================ */

/* ---------- flagships: strict 2 + 3, uniform per row ---------- */
.flag-row--two .flag-card,
.flag-row--three .flag-card {
  margin-top: 0 !important;
}

.flag-row--two .flag-card { grid-column: span 3 !important; }
.flag-row--three .flag-card { grid-column: span 2 !important; }

.flag-row--two .flag-media { aspect-ratio: 2 / 3; }
.flag-row--three .flag-media { aspect-ratio: 2 / 3; }

@media (max-width: 1100px) {
  .flag-row--two .flag-card,
  .flag-row--three .flag-card { grid-column: span 3 !important; }
}

@media (max-width: 680px) {
  .flag-row--two .flag-card,
  .flag-row--three .flag-card { grid-column: 1 / -1 !important; }
}

/* ---------- portfolio teaser ---------- */
.portfolio-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 38px);
  padding: 12px 22px;
  background: #ffffff;
  color: #12171b;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(18, 23, 27, 0.25);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.portfolio-summary:hover {
  border-color: rgba(201, 150, 46, 0.7);
  box-shadow: 0 14px 30px -14px rgba(10, 14, 17, 0.25);
}

.portfolio-summary span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #a4741f;
  border: 1px solid rgba(201, 150, 46, 0.55);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.portfolio-body {
  position: relative;
  transition: max-height 500ms ease;
}

.is-collapsed .portfolio-body {
  max-height: 330px;
  overflow: hidden;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, 0.4) 65%, transparent 97%);
  mask-image: linear-gradient(180deg, #000 0%, #000 22%, rgba(0, 0, 0, 0.4) 65%, transparent 97%);
}

.is-collapsed .filter-bar { display: none; }

/* ---------- education: spec-sheet rows ---------- */
.education-grid {
  display: block;
  margin-top: clamp(26px, 3.4vw, 44px);
  border-top: 1px solid rgba(18, 23, 27, 0.18);
}

.education-grid article {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 4px 30px;
  align-items: start;
  padding: 22px 2px;
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(18, 23, 27, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static;
}

.education-grid article:hover {
  transform: none !important;
  box-shadow: none !important;
}

.education-grid .edu-label { grid-column: 1; grid-row: 1; padding-top: 4px; }

.education-grid h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 20px;
}

.education-grid article > p:not(.edu-label) {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6px;
  color: #59656d;
  font-size: 15px;
}

.education-grid .edu-year {
  grid-column: 3;
  grid-row: 1;
  position: static;
  padding-top: 4px;
}

/* ---------- stack: spec-sheet rows ---------- */
.stack-grid {
  display: block;
  margin-top: clamp(26px, 3.4vw, 44px);
  border-top: 1px solid rgba(18, 23, 27, 0.18);
}

.stack-grid > div {
  display: grid;
  grid-template-columns: 54px 250px minmax(0, 1fr);
  gap: 4px 26px;
  align-items: center;
  padding: 18px 2px;
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(18, 23, 27, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.stack-grid > div:hover { transform: none !important; }

.stack-grid .ico {
  width: 30px;
  height: 30px;
  margin: 0;
  color: #a4741f;
}

.stack-grid h3 {
  margin: 0;
  font-size: 17px;
}

.stack-grid p {
  margin: 0;
  color: #4a565f;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .education-grid article { grid-template-columns: 1fr auto; }
  .education-grid .edu-label { grid-column: 1; }
  .education-grid h3 { grid-column: 1; grid-row: 2; }
  .education-grid article > p:not(.edu-label) { grid-column: 1 / -1; grid-row: 3; }
  .education-grid .edu-year { grid-column: 2; grid-row: 1; }

  .stack-grid > div { grid-template-columns: 40px 1fr; }
  .stack-grid p { grid-column: 1 / -1; }
}

@media print {
  .is-collapsed .portfolio-body { max-height: none; mask-image: none; -webkit-mask-image: none; }
  .portfolio-summary { display: none; }
}

/* ================================================================
   EDITORIAL-V4.5 — compact timeline, edu contour art,
   portfolio toggle below teaser
   ================================================================ */

/* toggle button below the fading teaser */
.portfolio-details { display: flex; flex-direction: column; }
.portfolio-details .portfolio-body { order: 1; }
.portfolio-details .portfolio-summary { order: 2; align-self: center; }

/* ---------- compact vertical timeline (ink spread) ---------- */
.timeline2 {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  padding-left: 6px;
}

.timeline2 article {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 8px 34px;
  padding: 18px 0 18px 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.timeline2 article::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 27px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.15);
}

.timeline2 article:first-child::before {
  background: #3ddc97;
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.15);
}

.timeline2 span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding-top: 3px;
  white-space: nowrap;
}

.timeline2 h3 {
  color: #ffffff;
  font-size: clamp(16.5px, 1.5vw, 20px);
  line-height: 1.25;
}

.timeline2 p {
  margin-top: 6px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 680px) {
  .timeline2 article { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
}

/* ---------- education contour art ---------- */
.education-grid article { position: relative; overflow: hidden; }

.edu-art {
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: clamp(150px, 16vw, 220px);
  height: auto;
  color: #a4741f;
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 300ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
  .education-grid article:hover .edu-art {
    opacity: 0.34;
    transform: translateY(-4px);
  }
}

@media print {
  .edu-art { display: none !important; }
}

/* ================================================================
   EDITORIAL-V4.6 — de-card pass: stack spec-rows,
   achievements 2 heroes + 4 rows
   ================================================================ */

/* ---------- stack: spec-sheet rows ---------- */
.stack-grid {
  display: block;
  margin-top: clamp(26px, 3.4vw, 44px);
}

.stack-grid > div {
  display: grid;
  grid-template-columns: 44px minmax(220px, 300px) 1fr;
  gap: 6px 20px;
  align-items: center;
  padding: 18px 6px;
  background: transparent !important;
  border: none;
  border-top: 1px solid rgba(18, 23, 27, 0.14);
  border-radius: 0;
  box-shadow: none !important;
  transition: background 200ms ease;
}

.stack-grid > div:last-child { border-bottom: 1px solid rgba(18, 23, 27, 0.14); }

@media (hover: hover) {
  .stack-grid > div:hover {
    transform: none;
    background: rgba(201, 150, 46, 0.05) !important;
    border-color: rgba(18, 23, 27, 0.14);
  }
}

.stack-grid .ico {
  width: 24px;
  height: 24px;
  color: #a4741f;
  margin: 0;
}

.stack-grid h3 {
  margin: 0;
  color: #101418;
  font-size: 16.5px;
}

.stack-grid p {
  margin: 0;
  color: #4a565f;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .stack-grid > div { grid-template-columns: 40px 1fr; }
  .stack-grid p { grid-column: 2; }
}

/* ---------- achievements: 2 heroes + 4 compact rows ---------- */
.achievement-grid { row-gap: 0; }

.achievement-grid article:nth-child(1),
.achievement-grid article:nth-child(2) {
  grid-column: span 6;
  margin-bottom: 18px;
}

.achievement-grid article:nth-child(n + 3) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 40px 200px minmax(200px, 320px) 1fr;
  gap: 6px 22px;
  align-items: center;
  padding: 16px 8px;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
}

.achievement-grid article:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.achievement-grid article:nth-child(n + 3) .ico {
  width: 22px;
  height: 22px;
  margin: 0;
}

.achievement-grid article:nth-child(n + 3) strong {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.achievement-grid article:nth-child(n + 3) h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
}

.achievement-grid article:nth-child(n + 3) p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .achievement-grid article:nth-child(1),
  .achievement-grid article:nth-child(2) { grid-column: 1 / -1; }

  .achievement-grid article:nth-child(n + 3) {
    grid-template-columns: 36px 1fr;
  }

  .achievement-grid article:nth-child(n + 3) h3,
  .achievement-grid article:nth-child(n + 3) p { grid-column: 2; }
}

/* v4.6b: enable 2-up hero cards in achievements */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 18px;
}

/* ================================================================
   EDITORIAL-V4.7 — synced chapter numbers, focus art,
   edu art left, achievement hover art
   ================================================================ */

/* single source of chapter numbers: kill auto-counter, style injected */
.section-heading > .eyebrow::after { content: none !important; }

.eyebrow .ch {
  margin-left: 10px;
  color: rgba(18, 23, 27, 0.4);
  font-style: normal;
  font-family: var(--mono);
  font-weight: 700;
}

.flagship-grid .eyebrow .ch,
.section[data-spread="ink"] .eyebrow .ch { color: rgba(255, 255, 255, 0.4); }

/* education art: move to empty label column (left) */
.edu-art {
  right: auto;
  left: 14px;
  bottom: 10px;
}

/* focus cards: subtle contour art, brighter on hover */
.focus-card { position: relative; overflow: hidden; }

.focus-art {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: clamp(130px, 13vw, 190px);
  height: auto;
  color: #a4741f;
  opacity: 0.13;
  pointer-events: none;
  transition: opacity 300ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
  .focus-card:hover .focus-art { opacity: 0.32; transform: translateY(-4px); }
}

/* achievements: art hidden until hover, per item */
.achievement-grid article { position: relative; overflow: hidden; }

.ach-art {
  position: absolute;
  right: 16px;
  bottom: 8px;
  width: clamp(110px, 11vw, 170px);
  height: auto;
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 320ms ease, transform 480ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.achievement-grid article:nth-child(n + 3) .ach-art {
  right: 10px;
  bottom: -14px;
  width: 96px;
}

@media (hover: hover) {
  .achievement-grid article:hover .ach-art {
    opacity: 0.34;
    transform: none;
  }
  .achievement-grid article:hover {
    border-color: rgba(217, 164, 65, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ach-art { transition: opacity 1ms linear; transform: none; }
}

@media print {
  .ach-art, .focus-art { display: none !important; }
}

/* v4.7b */
.leadership-grid span, .case-matrix span { color: #a4741f; }
.flagship-grid .case-matrix span { color: var(--gold); }

/* ================================================================
   EDITORIAL-V4.8 — flagship orbital sketch, large behind-table
   achievement art, translucent rows
   ================================================================ */

/* orbital sketch fills the empty zone left of the flagships heading */
.flagship-grid { position: relative; }

.flag-hero-art {
  position: absolute;
  top: clamp(70px, 8vw, 130px);
  left: clamp(10px, 4vw, 70px);
  width: clamp(240px, 26vw, 400px);
  height: auto;
  color: #8fb4c9;
  opacity: 0.3;
  pointer-events: none;
}

.flag-hero-art rect,
.flag-hero-art circle:first-of-type { color: #d9a441; }

@media (max-width: 1100px) {
  .flag-hero-art { display: none; }
}

/* achievements: large art floats BEHIND translucent rows */
.achievement-grid article:nth-child(n + 3) {
  overflow: visible;
  background: rgba(18, 24, 29, 0.72);
  backdrop-filter: blur(2px);
}

.achievement-grid article:nth-child(n + 3) > :not(.ach-art) {
  position: relative;
  z-index: 1;
}

.achievement-grid article:nth-child(n + 3) .ach-art {
  right: 5%;
  top: 50%;
  bottom: auto;
  width: clamp(260px, 26vw, 400px);
  transform: translateY(-50%) scale(0.94);
  z-index: 0;
  opacity: 0;
}

@media (hover: hover) {
  .achievement-grid article:nth-child(n + 3):hover .ach-art {
    opacity: 0.5;
    transform: translateY(-50%) scale(1);
  }
  .achievement-grid article:nth-child(n + 3):hover {
    background: rgba(18, 24, 29, 0.55);
  }
}

/* hero cards: bigger art too */
.achievement-grid article:nth-child(-n + 2) .ach-art {
  width: clamp(200px, 20vw, 300px);
  right: 4%;
  bottom: -20px;
}

@media (hover: hover) {
  .achievement-grid article:nth-child(-n + 2):hover .ach-art { opacity: 0.4; }
}

/* ================================================================
   EDITORIAL-V4.9 — clickable timeline with expandable details
   ================================================================ */
.timeline2 article {
  cursor: pointer;
  transition: background 200ms ease;
  border-radius: 0 10px 10px 0;
}

@media (hover: hover) {
  .timeline2 article:hover { background: rgba(255, 255, 255, 0.035); }
}

.timeline2 article h3 {
  position: relative;
  padding-right: 40px;
}

.timeline2 article h3::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--gold);
  border: 1px solid rgba(217, 164, 65, 0.5);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  transition: transform 240ms ease, background 200ms ease, color 200ms ease;
}

.timeline2 article.open h3::after {
  content: "−";
  background: var(--gold);
  color: #10282c;
}

.tl-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 420ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 300ms ease, margin 300ms ease;
  margin-top: 0;
}

.timeline2 article.open .tl-more {
  max-height: 420px;
  opacity: 1;
  margin-top: 12px;
}

.tl-more p {
  margin-top: 7px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  line-height: 1.55;
  padding-left: 12px;
  border-left: 2px solid rgba(217, 164, 65, 0.35);
}

.tl-more b {
  color: var(--gold);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .tl-more { transition: none; }
}


/* ================================================================
   EDITORIAL-V4.10 — generated ISS art, last-row art clamp,
   hero-proof re-aligned with the paper hero
   ================================================================ */

/* 1) codex-generated ISS png: screen blend removes the black bg on ink */
.ach-art--img {
  mix-blend-mode: screen;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  object-fit: contain;
}

.achievement-grid article:nth-child(-n + 2) .ach-art--img {
  width: clamp(230px, 23vw, 340px);
  right: 3%;
  bottom: 10px;
}

@media (hover: hover) {
  .achievement-grid article:nth-child(-n + 2):hover .ach-art--img { opacity: 0.6; }
}

/* 2) last row (Публикации): art must not extend below the table —
   anchor to the row bottom and grow upwards only */
.achievement-grid article:nth-child(n + 3):last-child .ach-art {
  top: auto;
  bottom: 0;
  transform: scale(0.94);
  transform-origin: bottom right;
}

@media (hover: hover) {
  .achievement-grid article:nth-child(n + 3):last-child:hover .ach-art {
    transform: scale(1);
  }
}

/* 3) hero-proof: dark chips -> editorial paper cards (match hero-target) */
.hero .hero-proof {
  gap: clamp(10px, 1.4vw, 16px);
}

.hero .hero-proof > div {
  background: #ffffff !important;
  border: 1px solid rgba(18, 23, 27, 0.14) !important;
  border-top: 2px solid rgba(201, 150, 46, 0.85) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(18, 23, 27, 0.07);
  backdrop-filter: none !important;
  overflow: visible;
}

.hero .hero-proof > div::after {
  display: none !important;
}

.hero .hero-proof strong {
  color: #a4741f !important;
  text-shadow: none;
}

.hero .hero-proof span {
  color: #43505a !important;
}

/* V4.10b: the proof band container itself must be invisible — cards float on paper */
.hero .hero-proof {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}


/* ================================================================
   EDITORIAL-V4.11 — all contour art regenerated via codex image_gen
   ================================================================ */

/* paper sections: bronze-on-white png, multiply removes the white bg */
.edu-art--img,
.focus-art--img {
  mix-blend-mode: multiply;
  border: none;
  background: none;
  box-shadow: none;
  object-fit: contain;
}

/* fine-lined generated art needs more presence than the old 2px svgs */
.edu-art--img { opacity: 0.3; }
.focus-art--img { opacity: 0.28; }

@media (hover: hover) {
  .education-grid article:hover .edu-art--img { opacity: 0.55; }
  .focus-card:hover .focus-art--img { opacity: 0.5; }
}

/* flagship orbital scene: screen removes the black bg */
.flag-hero-art--img {
  mix-blend-mode: screen;
  opacity: 0.45;
}

/* achievement rows: fine-lined generated art gets brighter hover */
@media (hover: hover) {
  .achievement-grid article:nth-child(n + 3):hover .ach-art--img { opacity: 0.65; }
}

/* V4.11b: .section[data-ch] > * forces position:relative — re-anchor the
   orbital art into the empty zone left of the flagship heading */
.section[data-ch] > .flag-hero-art,
.flag-hero-art--img {
  position: absolute !important;
  top: clamp(70px, 8vw, 130px);
  left: clamp(10px, 4vw, 70px);
  z-index: 0;
}

/* V4.11c: art pngs now carry true alpha — blending no longer needed
   (and screen-blend killed row translucency inside isolated contexts) */
.ach-art--img,
.flag-hero-art--img,
.edu-art--img,
.focus-art--img {
  mix-blend-mode: normal;
}

/* V4.11d: bigger orbital art, pulled up next to the flagship heading */
.section[data-ch] > .flag-hero-art,
.flag-hero-art--img {
  width: clamp(350px, 38vw, 680px);
  top: clamp(60px, 6.5vw, 105px);
  left: auto;
  right: 59%;
  opacity: 0.55;
}

@media (min-width: 1500px) {
  .section[data-ch] > .flag-hero-art,
  .flag-hero-art--img {
    right: 55%;
  }
}


/* ================================================================
   EDITORIAL-V4.12 — hero refresh: magazine typography, fewer boxes,
   signature contour art on the first screen
   ================================================================ */

/* eyebrow: gold dash lead-in, wider tracking */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2em;
}

.hero .eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: #c9962e;
  flex-shrink: 0;
}

/* status: dark pill -> quiet mono line with the live dot */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 10px;
  background: none;
  color: #1d242a;
  border-radius: 0;
  border-bottom: 1px solid rgba(18, 23, 27, 0.16);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* target roles: white card -> flat editorial block with gold rule */
.hero-target {
  background: none;
  border: none;
  border-left: 3px solid #c9962e;
  border-radius: 0;
  box-shadow: none;
  padding: 2px 0 2px 16px;
  color: #1d242a;
}

/* facts: one calm column instead of two ragged ones */
.hero-facts {
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 620px;
}

.hero-facts li::before {
  background: #c9962e;
  border-radius: 1px;
}

/* photo: thin print-plate frame inside */
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

/* signature contour art fills the empty paper under the CTA row */
.hero { position: relative; }

.hero-art {
  position: absolute;
  left: clamp(20px, 4vw, 80px);
  bottom: 14px;
  width: clamp(280px, 27vw, 460px);
  height: auto;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

@media (max-width: 1100px) {
  .hero-art { display: none; }
}

@media print {
  .hero-art { display: none !important; }
}

/* V4.12b: status line — kill residual box; dish art into the free zone
   right of the single-column facts */
.hero-status {
  border: none;
  border-bottom: 1px solid rgba(18, 23, 27, 0.16);
  outline: none;
  box-shadow: none;
  background: none;
}

.hero-art {
  left: auto;
  right: 49%;
  bottom: 20px;
  width: clamp(240px, 19vw, 360px);
  opacity: 0.35;
}

/* V4.12c: force the gold lead-in dash on the hero eyebrow */
.hero .hero-content .eyebrow::before {
  content: "" !important;
  display: inline-block !important;
  width: 36px;
  height: 2px;
  background: #c9962e;
  flex-shrink: 0;
}

/* V4.13: sixth flagship — one full-width third row */
.flag-card[data-case="access"] {
  order: 6 !important;
}

.flag-row--one .flag-card {
  grid-column: 1 / -1 !important;
  margin-top: 0 !important;
}

.flag-row--one .flag-card[data-case="access"] {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
}

.flag-row--one .flag-media {
  width: 100%;
  height: 100%;
  min-height: 650px;
  max-height: none;
  aspect-ratio: 2 / 3;
}

.flag-row--one .flag-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.2vw, 58px);
}

.flag-row--one .flag-body h3 {
  max-width: 18ch;
  font-size: clamp(28px, 3.2vw, 46px);
}

.flag-row--one .flag-summary {
  max-width: 66ch;
  font-size: clamp(15px, 1.35vw, 18px);
}

.flag-row--one .flag-more {
  align-self: flex-start;
}

/* Six compact project signals above the detailed flagship cards. */
.case-matrix {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Detailed technical-interview layer shared by all flagship modals. */
.case-capabilities-wrap,
.case-journey-wrap {
  margin-top: 20px;
}

.case-visual-title {
  margin: 0 0 9px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.case-capability {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
}

.case-capability + .case-capability {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.case-capability-icon {
  width: 38px;
  height: 38px;
  padding: 7px;
  color: var(--gold);
  border: 1px solid rgba(217, 164, 65, 0.38);
  border-radius: 50%;
}

.case-capability h4 {
  margin: 0;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.3;
}

.case-capability p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.case-journey {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
  counter-reset: case-journey;
}

.case-journey li {
  position: relative;
  min-width: 0;
  padding: 17px 14px 0;
  border-top: 1px solid rgba(45, 212, 191, 0.38);
  counter-increment: case-journey;
}

.case-journey li::before {
  content: counter(case-journey, decimal-leading-zero);
  position: absolute;
  top: -12px;
  left: 14px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  color: var(--deep);
  background: var(--gold);
  border: 3px solid var(--deep);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.case-journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(45, 212, 191, 0.72);
  border-right: 1px solid rgba(45, 212, 191, 0.72);
  transform: rotate(45deg);
}

.case-journey span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.case-narrative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.case-narrative-item {
  padding: 14px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.case-narrative-item:first-child {
  grid-column: 1 / -1;
}

.case-narrative-item--wide {
  grid-column: 1 / -1;
}

.case-narrative-item h4 {
  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-narrative-item p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13.5px;
  line-height: 1.55;
}

.case-modal-body--access .case-gallery-item img {
  max-height: 150px;
}

.case-modal-body--access .case-subsystems {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

@media (max-width: 1200px) {
  .case-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-matrix article:first-child {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .flag-row--one .flag-card[data-case="access"] {
    grid-template-columns: 1fr;
  }

  .flag-row--one .flag-media {
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 3;
  }

  .flag-row--one .flag-body {
    padding: clamp(22px, 6vw, 36px);
  }

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

@media (max-width: 720px) {
  .case-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-capability {
    padding: 14px 10px;
  }

  .case-capability:nth-child(odd) {
    border-left: 0;
  }

  .case-capability:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .case-journey {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 3px 0 0 11px;
  }

  .case-journey li {
    min-height: 42px;
    padding: 2px 0 15px 27px;
    border-top: 0;
    border-left: 1px solid rgba(45, 212, 191, 0.38);
  }

  .case-journey li::before {
    top: -2px;
    left: -13px;
  }

  .case-journey li:not(:last-child)::after {
    display: none;
  }

  .case-narrative {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-narrative-item:first-child {
    grid-column: auto;
  }

  .case-narrative-item--wide {
    grid-column: auto;
  }

  .case-modal-body--access .case-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .case-modal-body--access .case-gallery-item img {
    max-height: 90px;
  }

  .case-modal-body--access .case-gallery-item figcaption {
    padding: 5px;
    font-size: 9px;
  }

  .case-modal-body--access .case-subsystems {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .case-capabilities {
    grid-template-columns: 1fr;
  }

  .case-capability {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px 4px;
    border-left: 0 !important;
  }

  .case-capability + .case-capability {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .case-capability-icon {
    width: 34px;
    height: 34px;
    padding: 6px;
  }

  .case-matrix {
    grid-template-columns: 1fr;
  }
}

body.case-open .site-header,
body.case-open .float-cta {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* V4.14: make the orbital sketch legible without competing with the heading. */
.section[data-ch] > .flag-hero-art.flag-hero-art--img {
  opacity: 1 !important;
  filter:
    drop-shadow(0 0 8px rgba(78, 169, 255, 0.16))
    drop-shadow(0 0 10px rgba(217, 164, 65, 0.1));
}

/* V4.15: a balanced engineering triptych for the education opener. */
.education-section::before {
  display: none;
}

.education-section .section-heading {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(170px, 0.78fr) minmax(470px, 1.75fr) minmax(220px, 1fr);
  grid-template-rows: auto auto auto;
  gap: 18px clamp(28px, 3.2vw, 48px);
  align-items: center;
  min-height: clamp(440px, 35vw, 520px);
  padding-block: clamp(18px, 2vw, 30px);
}

.education-section .section-heading > :not(.education-heading-art) {
  position: relative;
  z-index: 2;
}

.education-section .section-heading > .eyebrow {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
}

.education-section .section-heading > h2 {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.education-section .section-heading > p:last-child {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  max-width: 620px;
  margin: 0;
}

.education-heading-art {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 12px rgba(217, 164, 65, 0.12));
}

.education-heading-art--rocket {
  grid-column: 1;
  grid-row: 1 / 4;
  justify-self: end;
  width: clamp(150px, 13.5vw, 205px);
  opacity: 0.74;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.education-heading-art--robot {
  grid-column: 3;
  grid-row: 1 / 4;
  justify-self: start;
  width: clamp(220px, 20vw, 310px);
  opacity: 0.68;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 8%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

@media (max-width: 1000px) {
  .education-section .section-heading {
    grid-template-columns: 0.75fr 1.25fr;
    grid-template-rows: auto auto auto auto;
    min-height: 0;
    gap: 14px 24px;
  }

  .education-section .section-heading > .eyebrow,
  .education-section .section-heading > h2,
  .education-section .section-heading > p:last-child {
    grid-column: 1 / -1;
  }

  .education-section .section-heading > .eyebrow { grid-row: 1; }
  .education-section .section-heading > h2 { grid-row: 2; }
  .education-section .section-heading > p:last-child { grid-row: 3; }

  .education-heading-art--rocket {
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
    width: clamp(105px, 17vw, 145px);
    opacity: 0.62;
  }

  .education-heading-art--robot {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
    width: clamp(190px, 31vw, 275px);
    opacity: 0.58;
  }
}

@media (max-width: 680px) {
  .education-section .section-heading {
    grid-template-columns: 0.68fr 1.32fr;
    gap: 12px 16px;
  }

  .education-heading-art--rocket {
    width: 92px;
  }

  .education-heading-art--robot {
    width: 168px;
  }
}

@media print {
  .education-heading-art {
    display: none !important;
  }
}

/* V4.16: denser resume rhythm. Adjacent sections must not add up to
   gallery-sized voids; hierarchy comes from type, tone and imagery. */
.section {
  padding-top: clamp(48px, 4.4vw, 64px);
  padding-bottom: clamp(48px, 4.4vw, 64px);
}

.management-metrics {
  padding-top: clamp(48px, 4.8vw, 66px);
  padding-bottom: clamp(48px, 4.8vw, 66px);
}

.process-section {
  padding-top: clamp(42px, 4vw, 56px);
  padding-bottom: clamp(42px, 4vw, 56px);
}

.pull-quote {
  padding-top: clamp(58px, 6vw, 82px);
  padding-bottom: clamp(58px, 6vw, 82px);
}

.sign-off {
  padding-top: clamp(72px, 7vw, 96px);
  padding-bottom: clamp(72px, 7vw, 96px);
}

/* The dark career chapter and the light education chapter form one
   continuous story, so their shared boundary is deliberately tighter. */
.experience-section {
  padding-bottom: clamp(42px, 3.6vw, 52px);
}

.education-section {
  padding-top: clamp(42px, 3.6vw, 52px);
}

.focus-grid {
  margin-top: 30px;
}

.resume-focus .leadership-grid {
  margin-top: 18px;
}

.process-diagram {
  margin-top: 30px;
}

.case-matrix {
  margin-top: 28px;
}

.flag-deck {
  margin-top: 34px;
}

.portfolio-details {
  margin-top: 18px;
}

.section-visual {
  margin-top: 24px;
  margin-bottom: 22px;
}

.timeline2 {
  margin-top: 32px;
}

.education-grid,
.stack-grid,
.achievement-grid,
.faq {
  margin-top: 28px;
}

@media (max-width: 680px) {
  .section {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .management-metrics,
  .pull-quote,
  .sign-off {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .section-visual,
  .education-grid,
  .stack-grid,
  .achievement-grid,
  .faq {
    margin-top: 22px;
  }
}
