/* ============ TOKENS (палитра флага РФ: белый · синий · красный) ============ */
:root {
  --bg:        #FFFFFF;
  --bg-2:      #F2F5FB;   /* лёгкий сине-серый тон для чередующихся секций */
  --card:      #FFFFFF;
  --line:      #E3E8F0;
  --text:      #0E1524;
  --text-2:    #45505F;
  --muted:     #78808F;
  --accent:    #0A3CC7;   /* синий флага (основной акцент) */
  --accent-2:  #082FA3;   /* тёмно-синий (hover) */
  --accent-soft: rgba(10,60,199,.10);
  --red:       #D52B1E;   /* красный флага (вторичный акцент) */
  --red-2:     #B41F13;
  --btn-border:#D4DAE6;
  --on-accent: #FFFFFF;
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1200px;
  --pad:       clamp(20px, 5vw, 48px);
  --font:      'Manrope', system-ui, -apple-system, sans-serif;
  --shadow:    0 30px 70px -46px rgba(16,26,52,.28);
}
.section--light { background: var(--bg); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 128px); }

/* ============ ICONS ============ */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: middle;
}

/* ============ LOGO ============ */
.brand { display: inline-flex; align-items: center; color: var(--text); }
.brand-logo {
  display: block; width: 146px; height: 34px; background: currentColor;
  -webkit-mask: url("../img/logo-lockup.svg") left center / contain no-repeat;
          mask: url("../img/logo-lockup.svg") left center / contain no-repeat;
}

/* ============ PLACEHOLDERS ============ */
.ph {
  position: relative;
  background: repeating-linear-gradient(45deg, #eef1f7 0 12px, #f5f7fb 12px 24px);
  border: 1px dashed #cfd6e2;
  display: grid; place-content: center; text-align: center;
  color: #98a1b0; overflow: hidden;
}
.ph::before { content: attr(data-label); font-weight: 600; font-size: 14px; color: currentColor; }
.ph-frame { border-radius: var(--radius); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, background .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn .icon { font-size: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--btn-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }

.link-more {
  margin-top: 28px; background: none; border: 0; cursor: pointer; font-family: var(--font);
  color: var(--text); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: gap .2s, color .2s;
}
.link-more .icon { font-size: 18px; color: var(--accent); }
.link-more:hover { gap: 14px; color: var(--accent); }

/* ============ HEADER ============ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.site-header .brand { color: var(--text); }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.header-cta { margin-left: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 72px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; width: 100%; padding-block: clamp(40px, 6vw, 80px); }
.hero-portrait { height: min(72vh, 640px); width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { min-width: 0; }
.regalia { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.regalia li { font-size: 12.5px; font-weight: 500; color: var(--text-2); padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.regalia li:first-child { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.hero-title { display: flex; flex-direction: column; gap: 12px; }
.hero-name { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; font-weight: 700; letter-spacing: -1.5px; color: var(--text); }
.hero-role { font-size: clamp(17px, 2vw, 23px); line-height: 1.28; font-weight: 500; color: var(--text-2); max-width: 24ch; }
.hero-role .dash { color: var(--accent); font-weight: 700; }
.hero-sub { color: var(--text-2); font-size: clamp(15px, 1.3vw, 18px); margin-top: 22px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ============ SECTION TITLES ============ */
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -1px; text-align: center; color: var(--text); }
.section-title.left { text-align: left; }
.section-intro { color: var(--muted); text-align: center; max-width: 64ch; margin: 18px auto 0; font-size: 17px; }
.section-intro.left { text-align: left; margin-inline: 0; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(32px, 5vw, 68px); align-items: stretch; }
.about-media { display: flex; }
.about-frame { width: 100%; min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.about-copy p { color: var(--text-2); margin-top: 18px; }
.about-copy .section-title { margin-bottom: 8px; }
.hl { color: var(--text); font-weight: 600; }

.expertise { margin-top: clamp(48px, 7vw, 92px); }
.expertise-title { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -.5px; margin-bottom: 30px; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.exp-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.exp-ico { display: inline-grid; place-content: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent); color: var(--on-accent); margin-bottom: 18px; }
.exp-ico .icon { font-size: 25px; }
.exp-tile h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.exp-tile p { color: var(--muted); font-size: 14.5px; }

/* ============ shared lists ============ */
.dot-list { list-style: none; display: grid; gap: 8px; }
.dot-list li { position: relative; padding-left: 20px; color: var(--text-2); }
.dot-list li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lead { color: var(--text) !important; font-weight: 600; margin-top: 18px !important; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--text-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 16px 28px; }

/* ============ ПРОЕКТЫ (вертикальная сетка) ============ */
.projects { background: var(--bg-2); }
.pstack { display: flex; flex-direction: column; gap: 30px; }
.pcard {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
}
.pcard-media { position: relative; border: 0; min-height: 400px; background: #0d1220; overflow: hidden; }
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pcard-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,15,30,.05) 45%, rgba(10,15,30,.42)); pointer-events: none; }
.pcard-logo {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: #fff; border-radius: 14px; padding: 16px 22px;
  display: inline-grid; place-content: center;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.45); max-width: calc(100% - 48px);
}
.pcard-logo img { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.pcard-logo--text { font-weight: 700; font-size: 20px; color: #14140f; letter-spacing: -.3px; }
.pcard-body { padding: clamp(28px, 3.4vw, 46px); }
.pcard-name { font-size: clamp(23px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text); }
.pcard-brand { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--red); padding: 5px 11px; border-radius: 999px; }
.pcard-lead { color: var(--text-2); margin-top: 12px; font-size: clamp(15px, 1.3vw, 18px); }
.pcard-specs { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec { display: flex; gap: 12px; align-items: center; }
.spec > .icon { font-size: 22px; color: var(--accent); }
.spec span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 2px; }
.spec b { font-weight: 600; font-size: 14.5px; color: var(--text); }
.spec a { font-weight: 600; font-size: 14.5px; color: var(--accent); }
.spec a:hover { color: var(--accent-2); }
.pcard-detail { margin-top: 22px; }
.pcard-detail p { color: var(--text-2); margin-top: 12px; font-size: 15px; }
.pcard-detail .lead { margin-top: 18px !important; font-size: 15px; }

/* ============ APPROACH — sticky stack ============ */
.approach-head { margin-bottom: clamp(40px, 6vw, 72px); }
.stack { display: flex; flex-direction: column; gap: 26px; }
.stack-card {
  position: sticky; top: calc(96px + var(--i) * 16px);
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow);
}
.stack-num { font-size: clamp(38px, 6vw, 68px); font-weight: 700; line-height: 1; letter-spacing: -2px; color: #D7DEEC; }
.stack-ico { display: inline-grid; place-content: center; width: 62px; height: 62px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.stack-ico .icon { font-size: 30px; }
.stack-text h3 { font-size: clamp(20px, 2.5vw, 27px); font-weight: 700; margin-bottom: 8px; color: var(--text); }
.stack-text p { color: var(--text-2); font-size: clamp(15px, 1.3vw, 17px); }
.stack-card--accent { background: var(--red); border-color: var(--red); color: #fff; }
.stack-card--accent .stack-num { color: rgba(255,255,255,.32); }
.stack-card--accent .stack-ico { background: rgba(255,255,255,.16); color: #fff; }
.stack-card--accent .stack-text h3 { color: #fff; }
.stack-card--accent .stack-text p { color: rgba(255,255,255,.85); }

.interest-block { margin-top: clamp(48px, 7vw, 90px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow); }
.interest-block h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; color: var(--text); }

/* ============ FOOTER ============ */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand .footer-logo { color: var(--text); width: 210px; height: 48px; }
.footer-copy { color: var(--muted); font-size: 14px; margin-top: 16px; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-social a { color: var(--text-2); font-size: 15px; transition: color .2s; display: inline-flex; align-items: center; gap: 9px; }
.footer-social a .icon { font-size: 18px; color: var(--accent); }
.footer-nav a:hover, .footer-social a:hover { color: var(--accent); }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14,21,36,.45); backdrop-filter: blur(5px); animation: fade .25s ease; }
.modal-dialog { position: relative; width: min(720px, 100%); max-height: 88vh; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 50px 120px -20px rgba(14,21,36,.4); animation: pop .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98) } }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: #eef1f7; color: var(--text); display: grid; place-content: center; transition: background .2s; }
.modal-close .icon { font-size: 20px; }
.modal-close:hover { background: #e2e7f0; }
.modal-scroll { padding: clamp(28px, 4vw, 48px); overflow-y: auto; max-height: 88vh; color: var(--text); }
.modal-title { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -.5px; }
.modal-block { margin-top: 30px; }
.modal-intro { color: var(--text-2); margin-bottom: 18px; }
.modal-scroll .tl-item p { color: var(--text-2); }
.modal-scroll .tl-item strong { color: var(--text); }
.sub-h { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.sub-ico { display: inline-grid; place-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--on-accent); }
.sub-ico .icon { font-size: 20px; }
.timeline { display: grid; gap: 22px; margin-top: 8px; }
.tl-tag { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: #fff; background: var(--accent); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
body.modal-open { overflow: hidden; }

/* ============ ПОЛОСА ФАКТОВ ============ */
.facts { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 34px; padding-block: clamp(22px, 3vw, 34px); }
.fact { color: var(--text-2); font-size: clamp(15px, 1.4vw, 18px); }
.fact-num { color: var(--accent); font-weight: 700; margin-right: 6px; }
.fact-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* ============ ЗАГОЛОВКИ КЛАСТЕРОВ ПРОЕКТОВ ============ */
.cluster-head { display: flex; align-items: center; gap: 12px; margin-top: clamp(44px, 6vw, 72px); margin-bottom: 26px; font-size: clamp(17px, 2vw, 22px); font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.cluster-head:first-of-type { margin-top: 50px; }
.cluster-ico { display: inline-grid; place-content: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.cluster-ico .icon { font-size: 22px; }
.pstack + .cluster-head { margin-top: clamp(40px, 5vw, 64px); }

/* ============ РОЛИ (4 в ряд) ============ */
.roles-grid { grid-template-columns: repeat(4, 1fr); }

/* ============ ССЫЛКА-ИНЛАЙН ============ */
.inline-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent); }
.inline-link:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ============ ВЫСТУПЛЕНИЯ И ПУБЛИКАЦИИ (секция-задел, п.10 ТЗ) ============ */
.talks { background: var(--bg); }
.talks-group { margin-top: clamp(38px, 5vw, 62px); }
.talks-subtitle { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.4px; color: var(--text); margin-bottom: 22px; }
.talks-ico { display: inline-grid; place-content: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.talks-ico .icon { font-size: 22px; }
.talks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.talk-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.talk-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.talk-meta { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--red); }
.talk-title { font-size: 18px; font-weight: 700; color: var(--text); }
.talk-desc { color: var(--text-2); font-size: 14.5px; }
.talk-link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14.5px; transition: gap .2s; }
.talk-link .icon { font-size: 17px; }
.talk-link:hover { gap: 13px; }
@media (max-width: 980px) { .talks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .talks-grid { grid-template-columns: 1fr; } }

/* ============ КОМАНДАМ И КАНДИДАТАМ ============ */
.teams { background: var(--bg-2); }
.teams-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(34px, 5vw, 68px); box-shadow: var(--shadow); }
.teams-card::before { content: ""; position: absolute; top: 0; left: 0; width: 46%; height: 100%; background: radial-gradient(120% 90% at 0 0, var(--accent-soft), transparent 60%); pointer-events: none; }
.teams-ico { position: relative; display: inline-grid; place-content: center; width: 62px; height: 62px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin-bottom: 26px; }
.teams-ico .icon { font-size: 30px; }
.teams-title { position: relative; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -1px; margin-bottom: 24px; color: var(--text); }
.teams-card p { position: relative; color: var(--text-2); font-size: clamp(17px, 1.55vw, 21px); line-height: 1.6; max-width: 62ch; }
.teams-card p + p { margin-top: 16px; }
.hl-accent { color: var(--red); font-weight: 700; }

/* ============ КОНТАКТЫ (без формы) ============ */
.contact-card { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(32px, 4.5vw, 60px); box-shadow: var(--shadow); }
.contact-left .section-title { margin-bottom: 14px; }
.contact-left .section-intro { margin-top: 0; }
.contact-note { margin-top: 24px; display: flex; gap: 13px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 15px; line-height: 1.5; }
.contact-note .icon { color: var(--accent); font-size: 20px; flex: none; margin-top: 2px; }
.contact-methods { display: grid; gap: 14px; }
.contact-method { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); transition: transform .2s, border-color .2s, box-shadow .2s; }
.contact-method:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.contact-method--primary { background: var(--accent); border-color: var(--accent); }
.contact-method--primary:hover { border-color: var(--accent); }
.cm-ico { display: inline-grid; place-content: center; width: 48px; height: 48px; flex: none; border-radius: 13px; background: var(--accent); color: var(--on-accent); }
.contact-method--primary .cm-ico { background: rgba(255,255,255,.18); color: #fff; }
.cm-ico .icon { font-size: 23px; }
.cm-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cm-text b { font-size: 17px; font-weight: 700; color: var(--text); }
.cm-text span { font-size: 13px; color: var(--muted); margin-top: 2px; }
.contact-method--primary .cm-text b { color: #fff; }
.contact-method--primary .cm-text span { color: rgba(255,255,255,.75); }
.cm-arrow { color: var(--muted); font-size: 20px; flex: none; transition: transform .2s; }
.contact-method:hover .cm-arrow { transform: translateX(3px); }
.contact-method--primary .cm-arrow { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-portrait { height: 46vh; order: -1; }
  .hero-portrait img { object-position: top; }
  .hero-sub { max-width: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-frame { min-height: 380px; max-width: 460px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .pcard { grid-template-columns: 1fr; }
  .pcard-media { min-height: 260px; }
  .contact-card { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: auto 1fr; }
  .stack-card .stack-ico { display: none; }
}
@media (max-width: 720px) {
  .hero-name { font-size: clamp(30px, 8.5vw, 42px); letter-spacing: -.8px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); padding: 22px var(--pad); gap: 18px; border-bottom: 1px solid var(--line); }
  .expertise-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .stack-card { position: static; grid-template-columns: 1fr; gap: 14px; }
  .stack-num { font-size: 40px; }
}
