/* Gavia Sans (SIL OFL 1.1) is loaded from assets/gavia/styles/fonts/gavia.css. */

:root {
  --paper: var(--wl-bg, #faf9f6);
  --ink: var(--wl-text, #0f1a23);
  --lake: var(--wl-accent, #294451);
  --sage: #dce4d8;
  --stone: #f0eee7;
  --olive: #596a4e;
  --muted: #5a645e;
  --line: #d9ddd4;
  --contour: #b2bfae;
  --soft: #edf0e8;
  --contour-soft: #c9cebf;
  --plan-mid: #a08f7a;
  --plan-text: #8a7d6b;
  --tile: #fff;
  --hdr-rgb: 243 242 236;
  --line-rgb: 217 221 212;
  --shadow-rgb: 15 26 35;
  --gutter: clamp(24px, 5vw, 76px);
}
html { scroll-padding-top: 28px; }
body { font: 400 18px/1.55 var(--wl-font); background: var(--paper); color: var(--ink); }
a { text-decoration: none; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }
button, a, summary, input { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 6px; border-radius: 3px; }
::selection { color: var(--ink); background: var(--sage); }
svg { max-width: 100%; }
.wrap { width: calc(100% - var(--gutter) * 2); max-width: 1280px; margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-160%); z-index: 10; background: var(--ink); color: var(--paper); padding: 12px 18px; }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; letter-spacing: -.03em; }
.wordmark-g { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.12em; }
.wordmark-g span { color: var(--olive); }
.site-header nav { display: flex; gap: 34px; font-size: 15px; }
.site-header nav a, .text-link, .back-top { transition: color .18s; }
.site-header nav a:hover, .text-link:hover, .back-top:hover { color: var(--olive); }
.header-contact { display: inline-flex; align-items: center; gap: 20px; font-size: 15px; padding-block: 12px; border-bottom: 1px solid var(--ink); }
.header-contact span { font-size: 20px; }
.hero-shell { overflow: clip; }
.hero { position: relative; display: grid; grid-template-columns: 57% 43%; padding-top: 56px; }
.hero-copy { padding-top: 24px; padding-bottom: 68px; position: relative; z-index: 1; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .075em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; }
.small-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
h1 { font-size: clamp(64px, 7.7vw, 108px); font-weight: 500; line-height: .99; letter-spacing: -.065em; margin: 32px 0 30px; }
.name-dot { color: var(--olive); }
.hero-lead { font-size: clamp(22px, 2.15vw, 30px); line-height: 1.35; letter-spacing: -.03em; }
.hero-description { color: var(--muted); max-width: 430px; font-size: 17px; margin-top: 20px; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 32px; }
.button { display: inline-flex; gap: 32px; align-items: center; min-height: 52px; padding: 14px 22px; font-size: 15px; font-weight: 500; border-radius: 4px; transition: background .18s, transform .18s; }
.button-primary { background: var(--lake); color: var(--paper); }
.button-primary:hover { background: var(--lake-hover, #203641); transform: translateY(-2px); }
.button span, .text-link span { font-size: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font-size: 15px; }
.hero-art { --wave-overlap: 16.2791%; position: relative; isolation: isolate; min-width: 0; display: flex; align-items: center; justify-content: center; align-self: stretch; }
/* Keep the painted shoreline beside the portrait; stretch only the open wash on wide screens. */
.hero-wave { position: absolute; z-index: -1; pointer-events: none; top: -50px; left: calc(-1 * var(--wave-overlap) - 60px); width: calc(100% + var(--wave-overlap) + max(var(--gutter), (100vw - 1280px) / 2) + 160px); min-width: 760px; max-width: none; height: calc(100% + 50px); border-style: solid; border-width: 0 0 0 315px; border-image: url("assets/images/shoreline-watercolor-v1.webp") 0 0 0 550 fill stretch; }
.portrait-frame { position: relative; width: 100%; max-width: 400px; aspect-ratio: 2 / 3; margin-top: -20px; }
.portrait-frame picture, .portrait-frame img { display: block; width: 100%; height: 100%; }
.portrait-frame img { object-fit: contain; }
.hero-foot { display: flex; align-items: center; gap: 20px; grid-column: 1 / -1; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.hero-foot-line { flex: 1; height: 1px; background: var(--line); max-width: 75px; }
.cooperation-link { display: inline-flex; align-items: center; gap: 14px; min-height: 32px; color: var(--lake); }
.cooperation-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section { padding-top: 112px; }
.section-heading { margin-bottom: 46px; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 24px; }
h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.heading-row > p { font-size: 15px; color: var(--muted); line-height: 1.5; padding-bottom: 4px; }
.gavia-project { display: grid; grid-template-columns: 35% 65%; min-height: 470px; }
.featured-copy { padding: 40px 36px 30px 0; display: flex; flex-direction: column; align-items: start; }
.project-kind { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.featured-copy h3 { font-size: 70px; font-weight: 500; line-height: 1.2; letter-spacing: -.055em; margin: 18px 0; }
.featured-copy h3 span { color: var(--olive); }
.project-intro { font-size: 25px; line-height: 1.25; letter-spacing: -.03em; }
.project-description { margin-top: 20px; font-size: 16px; color: var(--muted); max-width: 285px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.project-details { margin-top: auto; padding-top: 26px; font-size: 15px; max-width: 315px; }
.project-details summary { display: inline-flex; gap: 36px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--ink); }
.project-details summary span { font-size: 23px; }
.project-details[open] summary span, .row-details[open] .row-arrow { transform: rotate(90deg); }
.project-details > div { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gavia-specimen { --sample-accent: #294451; --sample-soft: #dce4d8; background: var(--sample-soft); border-radius: 6px 6px 72px 6px; padding: 32px 40px 26px; position: relative; color: var(--sample-accent); transition: background .25s, color .25s; }
.gavia-specimen[data-tone="moss"] { --sample-accent: #596a4e; --sample-soft: #e3e8d9; }
.gavia-specimen[data-tone="clay"] { --sample-accent: #7c5945; --sample-soft: #ece1d6; }
.specimen-top { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.specimen-top > span:first-child { font-weight: 500; }
.specimen-top > span:last-child { opacity: 1; }
.type-specimen { display: flex; align-items: center; gap: 28px; position: relative; padding: 56px 0 46px; border-bottom: 1px solid color-mix(in srgb, var(--sample-accent) 15%, transparent); }
.type-specimen > span { font-size: clamp(70px, 8vw, 120px); letter-spacing: -.07em; line-height: 1; }
.type-specimen > span:first-child { font-weight: 500; }
.type-specimen > span:nth-child(2) { font-weight: 400; }
.type-specimen i { position: absolute; font-style: normal; right: -8px; top: 66px; font-size: 26px; letter-spacing: -.12em; font-weight: 700; }
.specimen-bottom { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 28px; }
.specimen-label { font-size: 12px; }
.tone-switch { border: 0; display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tone-choice { position: relative; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; }
.tone-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--swatch); outline: 1px solid transparent; outline-offset: 4px; pointer-events: none; }
.tone-choice input:checked + .swatch { outline-color: var(--sample-accent); }
.tone-choice input:focus-visible + .swatch { outline: 2px solid var(--sample-accent); }
.gavia-specimen .specimen-button { --wl-accent: var(--sample-accent); --wl-accent-hover: var(--sample-accent); --wl-accent-active: var(--sample-accent); background: var(--sample-accent); border: 1px solid var(--sample-accent); color: var(--sample-on, #fefdfb); min-height: 44px; border-radius: var(--wl-btn-radius, 4px); padding: 10px 20px; font: 500 14px var(--wl-font); display: inline-flex; gap: 34px; align-items: center; }
.specimen-button:hover { filter: brightness(.9); }
.specimen-button [data-favorite-icon] { font-size: 20px; }
.specimen-status { font-size: 11px; margin-top: 23px; color: var(--sample-accent); }
.project-list { margin-top: 54px; }
.project-row { display: grid; grid-template-columns: 6% 32% 41% 21%; gap: 0; align-items: center; border-top: 1px solid var(--line); padding: 33px 0; }
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-number { font-size: 11px; color: var(--muted); align-self: start; padding-top: 5px; }
.project-row h3 { font-size: 38px; font-weight: 500; line-height: 1.2; letter-spacing: -.045em; margin-top: 7px; }
.row-description { font-size: 16px; line-height: 1.6; padding: 0 30px 0 0; color: var(--muted); }
.row-details { font-size: 14px; }
.row-details summary { display: flex; align-items: center; justify-content: end; gap: 30px; min-height: 48px; }
.row-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 22px; transition: background .18s, transform .18s; }
.row-details summary:hover .row-arrow { background: var(--sage); border-color: var(--sage); }
.row-details > div { font-size: 13px; color: var(--muted); line-height: 1.6; padding-top: 16px; }
.row-details:not([open]) > div { display: none; }
.experience { display: grid; grid-template-columns: 46% 54%; gap: 0; }
.experience-intro { padding-right: 72px; }
.experience-intro h2 { margin-top: 26px; }
.experience-intro > p:not(.eyebrow) { max-width: 355px; margin-top: 28px; color: var(--muted); font-size: 17px; }
.experience-intro .text-link { margin-top: 28px; }
.work-list article { display: grid; grid-template-columns: 40px 1fr; gap: 22px; padding: 34px 0; border-top: 1px solid var(--line); }
.work-list article:first-child { padding-top: 24px; }
.work-index { font-size: 12px; color: var(--muted); padding-top: 7px; }
.work-list h3 { font-size: 29px; font-weight: 500; letter-spacing: -.035em; }
.work-list .work-role { font-size: 12px; margin-top: 5px; color: var(--muted); }
.work-list p:not(.work-role) { font-size: 16px; max-width: 410px; margin-top: 17px; color: var(--muted); }
.work-list .work-origin h3 { font-size: 18px; letter-spacing: -.02em; }
.work-list .work-origin p { margin-top: 10px; }
.about { display: grid; grid-template-columns: 46% 54%; margin-bottom: 104px; }
.about h2 { margin-top: 26px; }
.about-copy { padding: 4px 0 0 62px; max-width: 570px; }
.about-copy .about-lead { font-size: 24px; line-height: 1.45; letter-spacing: -.025em; color: var(--ink); }
.about-copy p + p { margin-top: 24px; font-size: 16px; color: var(--muted); }
.cooperation { margin-bottom: 104px; border-top: 1px solid var(--line); padding-top: 40px; }
.cooperation-intro { display: grid; grid-template-columns: 46% 54%; }
.cooperation h2 { margin-top: 26px; }
.cooperation-copy { padding: 4px 0 0 62px; max-width: 640px; }
.cooperation-lead { font-size: 24px; line-height: 1.45; letter-spacing: -.025em; }
.cooperation-copy p + p { margin-top: 20px; font-size: 16px; color: var(--muted); }
.cooperation-directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 48px; }
.cooperation-directions li { border-top: 1px solid var(--line); padding-top: 20px; }
.direction-number { font-size: 11px; color: var(--olive); }
.cooperation-directions h3 { margin-top: 14px; font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.cooperation-directions p { margin-top: 14px; font-size: 15px; color: var(--muted); }
.work-formats { margin-top: 40px; padding: 30px 36px; border-radius: 4px; background: var(--soft); }
.work-formats > h3 { font-size: 13px; font-weight: 500; color: var(--olive); }
.work-format-list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 22px; }
.work-format-list > div { min-width: 0; }
.work-format-list > div + div { padding-left: 40px; border-left: 1px solid var(--contour); }
.work-format-list h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; font-size: 23px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.work-format-list h4 span { color: var(--olive); font-size: 12px; letter-spacing: 0; }
.work-format-list p { margin-top: 12px; max-width: 430px; font-size: 15px; color: var(--muted); }
.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--stone); border-radius: 6px 6px 94px 6px; padding: 50px 56px; }
.contact h2 { margin-top: 25px; max-width: 780px; font-size: clamp(36px, 4.8vw, 64px); }
.contact h2 span { color: var(--olive); }
.contact-lead { font-size: 17px; color: var(--muted); margin-top: 26px; }
.contact-placeholder { display: inline-flex; align-items: center; gap: 34px; font-size: 14px; color: var(--muted); padding-top: 27px; }
.contact-contour { position: absolute; width: 100%; height: 100%; inset: 0; color: var(--contour-soft); z-index: -1; }
.site-footer { display: flex; align-items: center; gap: 30px; justify-content: space-between; padding-block: 45px; }
.site-footer > span, .back-top { color: var(--muted); font-size: 12px; }
.back-top { display: flex; gap: 25px; align-items: center; min-height: 44px; }
.back-top span { font-size: 21px; }

.status-dot { display: inline-block; width: 5px; height: 5px; margin: 0 5px 2px 0; background: var(--olive); border-radius: 50%; }
.status-development { background: var(--plan-mid); }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; font-size: 12px; line-height: 1.8; }
.project-links a, .inline-link { color: var(--lake); text-decoration: underline; text-decoration-color: var(--contour); text-underline-offset: 4px; }
.project-links a:hover, .inline-link:hover { text-decoration-color: var(--lake); }
.inline-link { display: inline-block; margin-top: 16px; font-size: 13px; }
.project-details > div p + p, .row-details > div p + p { margin-top: 14px; }
.detail-stack { font-size: 12px; line-height: 1.8; color: var(--muted); }
.gavia-specimen { display: flex; flex-direction: column; }
.type-specimen { flex: 1; min-height: 220px; }
.row-details[open] { grid-column: 2 / -1; grid-row: 2; max-width: 820px; padding-top: 18px; }
.row-details[open] summary { justify-content: start; gap: 20px; }
.row-details[open] > div { max-width: 760px; font-size: 16px; }
.row-details .project-links { margin-top: 18px; font-size: 13px; }
.row-details .project-usage { color: var(--ink); font-weight: 500; border-left: 2px solid var(--contour); padding-left: 18px; }
.row-details .kvorum-lead { color: var(--ink); font-size: 19px; line-height: 1.5; }
.kvorum-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; margin: 28px 0; }
.kvorum-capabilities > div { border-top: 1px solid var(--line); padding-top: 16px; }
.kvorum-capabilities dt { color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.4; }
.kvorum-capabilities dd { margin: 10px 0 0; font-size: 14px; line-height: 1.65; }
.experiments { margin-top: 24px; font-size: 15px; }
.experiments > summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.experiments > summary > span:last-child { font-size: 24px; }
.experiments[open] > summary > span:last-child { transform: rotate(45deg); }
.experiment-list { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 30px; }
.experiment-list h3 { font-size: 25px; font-weight: 500; letter-spacing: -.03em; margin: 8px 0 14px; }
.experiment-list p:not(.project-kind) { font-size: 15px; color: var(--muted); }
.experiment-list .detail-stack { margin-top: 16px; font-size: 12px !important; }
.career-row { display: grid; grid-template-columns: 34% 66%; border-top: 1px solid var(--line); padding-block: 38px; }
.career-row:last-child { border-bottom: 1px solid var(--line); }
.career-company { padding-right: 48px; }
.career-period { color: var(--muted); font-size: 11px; line-height: 1.7; }
.career-company h3 { font-size: 30px; font-weight: 500; line-height: 1.16; letter-spacing: -.04em; margin-top: 12px; }
.career-role { color: var(--muted); font-size: 12px; margin-top: 12px; }
.career-description { font-size: 17px; max-width: 750px; }
.career-description p + p { margin-top: 16px; }
.career-product { margin-bottom: 16px; font-size: 21px; line-height: 1.35; font-weight: 500; letter-spacing: -.025em; }
.career-description .module-caption { margin-top: 24px; font-size: 14px; color: var(--muted); }
.module-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 12px; }
.module-links li { min-width: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.module-links a { display: inline-block; color: var(--lake); font-size: 15px; text-decoration: underline; text-decoration-color: var(--contour); text-underline-offset: 4px; }
.module-links a:hover { text-decoration-color: var(--lake); }
.module-links a span { white-space: nowrap; }
.module-links li > span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.career-description .detail-stack { font-size: 12px; margin-top: 20px; }
.career-row-compact { padding-block: 28px; }
.career-row-compact .career-description { color: var(--muted); font-size: 16px; }
.client-projects { margin-top: 60px; scroll-margin-top: 30px; }
.subsection-title { font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }
.client-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; margin-top: 30px; }
.client-project-grid article { padding-block: 28px; border-top: 1px solid var(--line); }
.client-project-grid h4 { font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.03em; margin: 12px 0 14px; }
.client-project-grid article > p:not(.project-kind) { font-size: 15px; color: var(--muted); }
.client-project-grid .project-links { margin-top: 14px; }
.technology-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.technology-group { padding-top: 25px; border-top: 1px solid var(--line); }
.technology-group h3 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
.technology-group > p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 12px; min-height: 40px; max-width: 230px; }
.technology-list { margin-top: 24px; }
.technology-list li, .ai-tools li { display: flex; align-items: center; gap: 13px; min-height: 46px; font-size: 15px; }
.technology-list img, .ai-tools img { flex: 0 0 24px; opacity: .85; }
.technology-letter { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; background: var(--stone); border: 1px solid var(--line); border-radius: 3px; color: var(--lake); font: 500 15px/1 var(--wl-font); }
.technology-group > .technology-context { font-size: 12px; margin-top: 22px; min-height: 0; }
.ai-tools { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 40px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-tools h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.ai-tools p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ai-tools ul { display: flex; flex-wrap: wrap; gap: 15px 30px; }
.contact-profile { margin-top: 28px; border-bottom: 1px solid var(--lake); color: var(--lake); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0 32px; align-items: start; }
.contact-email { overflow-wrap: anywhere; min-width: 0; }
.contact-email span { flex: 0 0 auto; }
.contact-business { margin-top: 24px; font-size: 13px; color: var(--muted); }
.domain-experience { grid-column: 1 / -1; margin-top: 56px; }
.domain-experience > h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.domain-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 24px; }
.domain-list li { min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.domain-list h4 { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.domain-list p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.project-row h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--contour); text-underline-offset: 6px; }
.project-row h3 a:hover { text-decoration-color: var(--lake); }
.project-row h3 a > span[aria-hidden] { font-size: .55em; vertical-align: .18em; }
.hero-copy, .featured-copy, .project-row > div, .row-details, .career-description, .contact-links > a { min-width: 0; }

@media (max-width: 1100px) {
  .technology-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
  .technology-group > p { min-height: 0; }
  .career-company { padding-right: 32px; }
  .career-company h3 { font-size: 27px; }
}
@media (max-width: 760px) {
  .career-product { font-size: 19px; margin-bottom: 14px; }
  .module-links { gap: 0 20px; }
  .module-links a { font-size: 14px; }
  .module-links li > span { font-size: 12px; }
  .domain-experience { margin-top: 36px; }
  .domain-list { grid-template-columns: 1fr; gap: 24px; margin-top: 22px; }
  .domain-list li { padding-top: 20px; }
  .domain-list h4 { font-size: 20px; }
  .domain-list p { font-size: 14px; max-width: 480px; }
  .row-details[open] { grid-column: 2 / 4; grid-row: 3; padding-top: 0; }
  .row-details[open] > div { font-size: 14px; }
  .row-details .project-links { font-size: 12px; gap: 10px 16px; }
  .experiment-list { grid-template-columns: 1fr; gap: 30px; margin-top: 24px; }
  .experiment-list h3 { font-size: 23px; }
  .career-row { grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .career-company { padding-right: 0; }
  .career-company h3 { font-size: 27px; margin-top: 10px; }
  .career-company h3 br { display: none; }
  .career-role { margin-top: 8px; }
  .career-description { font-size: 15px; }
  .career-row-compact .career-description { font-size: 15px; }
  .career-description .detail-stack { font-size: 11px; }
  .client-projects { margin-top: 40px; }
  .subsection-title { font-size: 27px; }
  .client-project-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .client-project-grid article { padding-block: 24px; }
  .client-project-grid h4 { font-size: 21px; }
  .client-project-grid article > p:not(.project-kind) { font-size: 14px; }
  .technology-groups { gap: 28px 24px; }
  .technology-group { padding-top: 20px; }
  .technology-group h3 { font-size: 17px; }
  .technology-group > p { font-size: 12px; }
  .technology-list { margin-top: 18px; }
  .technology-list li, .ai-tools li { font-size: 13px; gap: 10px; min-height: 44px; }
  .technology-list img, .ai-tools img, .technology-letter { flex-basis: 21px; width: 21px; height: 21px; }
  .technology-letter { font-size: 13px; }
  .technology-group > .technology-context { font-size: 11px; }
  .ai-tools { align-items: start; flex-direction: column; gap: 18px; padding-block: 22px; margin-top: 30px; }
  .ai-tools ul { gap: 14px 28px; }
}

@media (min-width: 1600px) { .hero { padding-top: 80px; } .hero-copy { padding-bottom: 96px; } }
@media (max-width: 1100px) {
  .hero { grid-template-columns: 58% 42%; }
  .hero-art { --wave-overlap: 19.0476%; align-items: center; }
  .portrait-frame { max-width: 360px; }
  .gavia-project { grid-template-columns: 38% 62%; }
  .featured-copy { padding-right: 28px; }
  .gavia-specimen { padding: 28px; }
  .type-specimen { gap: 22px; }
  .type-specimen i { display: none; }
  .specimen-button { gap: 18px; }
  .project-row { grid-template-columns: 6% 32% 42% 20%; }
  .row-details summary { gap: 16px; }
  .experience-intro { padding-right: 38px; }
  .about-copy { padding-left: 38px; }
  .cooperation-copy { padding-left: 38px; }
  .cooperation h2 { font-size: 42px; }
  .cooperation-directions { gap: 28px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; }
  .site-header { height: 88px; gap: 20px; }
  .site-header nav { gap: 20px; font-size: 13px; }
  .site-header .wordmark > span:last-child { display: none; }
  .header-contact { font-size: 13px; gap: 8px; }
  .hero { padding-top: 30px; grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; padding-bottom: 14px; }
  h1 { font-size: clamp(58px, 12.5vw, 86px); margin-top: 26px; margin-bottom: 26px; }
  .hero-lead { font-size: 25px; }
  .hero-description { font-size: 16px; max-width: 410px; }
  .hero-actions { gap: 28px; margin-top: 26px; }
  .button { padding: 13px 17px; gap: 22px; font-size: 14px; }
  .hero-art { width: 100%; justify-self: center; margin: 28px 0 12px; }
  .hero-wave { top: -12px; left: calc(-1 * var(--gutter) - 80px); width: calc(100% + var(--gutter) * 2 + 160px); min-width: 0; height: calc(100% + 32px); border-left-width: 220px; }
  .portrait-frame { max-width: 320px; margin-top: 0; }
  .hero-foot { margin-top: 12px; font-size: 10px; gap: 14px; padding-block: 20px; }
  .hero-foot-line { max-width: 35px; }
  .hero-foot > span:last-child { max-width: 230px; }
  .section { padding-top: 78px; }
  .eyebrow { font-size: 10px; letter-spacing: .06em; }
  .section-heading { margin-bottom: 28px; }
  .heading-row { align-items: start; flex-direction: column; gap: 18px; margin-top: 21px; }
  h2 { font-size: 39px; }
  .heading-row > p { font-size: 14px; }
  .heading-row > p br { display: none; }
  .gavia-project { grid-template-columns: 1fr; }
  .featured-copy { padding: 10px 0 28px; }
  .featured-copy h3 { font-size: 62px; margin: 15px 0 12px; }
  .project-intro { font-size: 22px; }
  .project-intro br { display: none; }
  .project-description { max-width: 440px; margin-top: 15px; }
  .project-details { padding-top: 16px; max-width: 440px; }
  .gavia-specimen { min-height: 360px; padding: 25px; border-bottom-right-radius: 54px; }
  .specimen-top { font-size: 10px; gap: 15px; }
  .type-specimen { padding: 44px 0 34px; gap: 24px; }
  .type-specimen > span { font-size: clamp(76px, 18vw, 115px); }
  .type-specimen i { display: block; top: 45px; right: 0; font-size: 20px; }
  .specimen-bottom { gap: 18px; }
  .specimen-label { font-size: 10px; }
  .gavia-specimen .specimen-button { gap: 20px; padding-inline: 15px; font-size: 13px; }
  .specimen-status { font-size: 10px; }
  .project-list { margin-top: 38px; }
  .project-row { grid-template-columns: 30px 1fr 55px; row-gap: 17px; padding-block: 28px; }
  .project-row h3 { font-size: 34px; }
  .project-kind { font-size: 10px; }
  .row-description { grid-column: 2; grid-row: 2; padding-right: 0; font-size: 14px; }
  .row-details { grid-column: 3; grid-row: 1 / 3; align-self: start; }
  .row-details summary { min-height: 44px; }
  .row-details summary > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .row-details[open] { grid-column: 2 / 4; grid-row: 3; }
  .row-details[open] summary { justify-content: start; gap: 12px; }
  .row-details[open] summary > span:first-child { position: static; clip-path: none; width: auto; height: auto; }
  .row-details[open] > div { padding-top: 12px; font-size: 14px; }
  .row-details .kvorum-lead { font-size: 17px; }
  .kvorum-capabilities { grid-template-columns: 1fr; gap: 22px; margin-block: 24px; }
  .experience, .about { grid-template-columns: 1fr; }
  .experience-intro { padding-right: 0; }
  .experience-intro h2, .about h2 { margin-top: 21px; }
  .experience-intro > p:not(.eyebrow) { max-width: 440px; margin-top: 24px; font-size: 16px; }
  .experience-intro .text-link { margin-top: 20px; }
  .work-list { margin-top: 32px; }
  .work-list article { grid-template-columns: 28px 1fr; gap: 18px; padding-block: 28px; }
  .work-list h3 { font-size: 26px; }
  .work-list p:not(.work-role) { font-size: 15px; }
  .about { margin-bottom: 64px; }
  .about-copy { padding: 26px 0 0; max-width: 480px; }
  .about-copy .about-lead { font-size: 22px; }
  .about-copy p + p { font-size: 15px; }
  .cooperation { margin-bottom: 64px; padding-top: 30px; }
  .cooperation-intro { grid-template-columns: 1fr; }
  .cooperation h2 { font-size: clamp(32px, 7vw, 44px); margin-top: 21px; }
  .cooperation-copy { padding: 26px 0 0; max-width: 480px; }
  .cooperation-lead { font-size: 22px; }
  .cooperation-copy p + p { font-size: 15px; }
  .cooperation-directions { grid-template-columns: 1fr; margin-top: 32px; gap: 24px; }
  .cooperation-directions h3 { margin-top: 10px; }
  .cooperation-directions p { font-size: 14px; margin-top: 12px; max-width: 480px; }
  .work-formats { margin-top: 32px; padding: 24px; }
  .work-format-list { grid-template-columns: 1fr; gap: 24px; }
  .work-format-list > div + div { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid var(--contour); }
  .work-format-list h4 { font-size: 21px; }
  .work-format-list p { font-size: 14px; }
  .hero-foot .cooperation-link { min-width: 0; max-width: 240px; }
  .contact { padding: 34px 28px; border-bottom-right-radius: 60px; }
  .contact h2 { font-size: clamp(29px, 7.2vw, 44px); margin-top: 24px; }
  .contact-lead { font-size: 15px; }
  .contact-placeholder { font-size: 12px; gap: 24px; }
  .contact-contour { left: 30%; opacity: .5; }
  .site-footer { flex-wrap: wrap; gap: 18px 22px; padding-block: 34px; }
  .site-footer .wordmark { font-size: 13px; gap: 10px; }
  .site-footer .wordmark-g { font-size: 30px; }
  .site-footer > span { order: 3; width: 100%; font-size: 10px; }
  .back-top { margin-left: auto; font-size: 11px; }
}
@media (max-width: 390px) {
  .module-links { grid-template-columns: 1fr; }
  :root { --gutter: 20px; }
  .site-header nav { gap: 14px; }
  .header-contact { font-size: 12px; }
  .site-header .header-contact { display: none; }
  .hero-actions { gap: 14px 18px; flex-wrap: wrap; }
  .hero-actions .text-link { font-size: 13px; gap: 12px; }
  h2 { font-size: 34px; }
  .gavia-specimen { padding: 22px; }
  .type-specimen { gap: 20px; }
  .type-specimen i { display: none; }
  .tone-switch { gap: 6px; }
  .tone-choice { width: 34px; height: 36px; }
  .swatch { width: 25px; height: 25px; }
  .specimen-bottom { align-items: start; flex-direction: column; }
  .gavia-specimen .specimen-button { padding-inline: 12px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button-primary:hover { transform: none; }
}

/* ===== v2: позиционирование, экосистема, витрина проектов, ИИ, роли ===== */
.eyebrow-sep { color: var(--contour); }
.hero-lead { max-width: 640px; }
.career-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 10px; max-width: 260px; }

/* Карта экосистемы */
.eco { margin: 0 0 64px; }
.eco-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eco-map { position: relative; min-width: 760px; aspect-ratio: 1000 / 440; background: var(--stone); border-radius: 6px 6px 72px 6px; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.eco-lines path { fill: none; stroke: var(--contour); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .2s, opacity .2s; }
.eco-lines path.is-planned { stroke-dasharray: 6 6; }
.eco-map.is-focus .eco-lines path { opacity: .2; }
.eco-map.is-focus .eco-lines path.is-hot { opacity: 1; stroke: var(--lake); stroke-width: 2; }
.eco-label { position: absolute; transform: translateY(-50%); font-size: 11px; line-height: 1.3; color: var(--muted); background: var(--stone); padding: 2px 6px; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.eco-label.is-planned { color: var(--plan-text); }
.eco-map.is-focus .eco-label { opacity: .35; }
.eco-node { position: absolute; transform: translate(-50%, -50%); display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 9px 16px 9px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font: 500 15px/1.2 var(--wl-font); color: var(--ink); white-space: nowrap; transition: border-color .2s, box-shadow .2s, opacity .2s; }
button.eco-node { cursor: pointer; }
.eco-node > img, .eco-node > .eco-glyph { grid-row: span 2; width: 28px; height: 28px; object-fit: contain; }
.eco-node small { grid-column: 2; font-size: 11px; font-weight: 400; color: var(--muted); }
.eco-node-main { padding: 13px 22px 13px 14px; font-size: 21px; letter-spacing: -.02em; border-color: var(--lake); }
.eco-node-main > img { width: 36px; height: 36px; }
.eco-node-agents { grid-template-columns: auto; padding: 9px 18px; background: var(--ink); border-color: var(--ink); color: var(--paper); text-align: center; }
.eco-node-agents small { grid-column: 1; color: var(--contour-soft); }
.eco-node-base { background: var(--sage); border-color: var(--sage); }
button.eco-node:hover, .eco-node.is-hot { border-color: var(--lake); box-shadow: 0 8px 22px rgb(15 26 35 / .09); }
.eco-map.is-focus .eco-node:not(.is-hot) { opacity: .45; }
.eco-glyph, .tab-glyph, .panel-glyph { display: grid; place-items: center; background: var(--ink); color: var(--paper); border-radius: 6px; font-size: 16px; line-height: 1; }
.eco-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.eco-caption > span { display: inline-flex; align-items: center; gap: 10px; }
.eco-key { display: inline-block; width: 28px; border-top: 2px solid var(--contour); }
.eco-key.is-planned { border-top-style: dashed; border-top-color: var(--plan-mid); }
.eco-hint { margin-left: auto; }

/* Витрина проектов */
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.showcase-tabs [role="tab"] { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 16px 7px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font: 500 15px/1 var(--wl-font); color: var(--ink); cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.showcase-tabs [role="tab"] img, .tab-glyph { width: 26px; height: 26px; object-fit: contain; }
.tab-glyph { font-size: 14px; }
.showcase-tabs [role="tab"]:hover { border-color: var(--lake); }
.showcase-tabs [role="tab"][aria-selected="true"] { background: var(--lake); border-color: var(--lake); color: var(--paper); }
.project-panel + .project-panel { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.showcase.is-ready .project-panel + .project-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.project-panel[hidden] { display: none; }
.panel-head { display: grid; grid-template-columns: 56px auto 1fr; gap: 16px 24px; align-items: center; }
.panel-logo { width: 56px; height: 56px; object-fit: contain; }
.panel-glyph { font-size: 26px; border-radius: 12px; }
.panel-head h3 { font-size: clamp(38px, 4.4vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.055em; margin-top: 6px; }
.panel-intro { justify-self: end; max-width: 520px; font-size: 20px; line-height: 1.4; letter-spacing: -.02em; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; align-items: start; }
.panel-body { font-size: 16px; color: var(--muted); }
.panel-body-wide { margin-top: 28px; max-width: 760px; }
.panel-body p + p { margin-top: 14px; }
.panel-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: 26px 0 0; }
.panel-facts > div { border-top: 1px solid var(--line); padding-top: 12px; }
.panel-facts dt { color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.35; }
.panel-facts dd { margin: 4px 0 0; font-size: 13px; line-height: 1.5; }
.panel-body .panel-plan { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--contour); color: var(--ink); font-size: 15px; }
.panel-plan b { font-weight: 500; color: var(--olive); }
.panel-body .detail-stack { margin-top: 20px; }
.panel-body .panel-note { margin-top: 10px; font-size: 12px; }
.panel-body .project-links { font-size: 13px; }

/* Галерея */
.gallery-stage { display: grid; gap: 12px; }
.gallery-stage > img.gallery-frame { display: block; width: 100%; height: auto; border-radius: 6px 6px 48px 6px; background: #14171b; box-shadow: 0 14px 40px rgb(15 26 35 / .12); }
.gallery.is-ready .gallery-frame:not(.is-active) { display: none; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gallery-thumbs:empty { display: none; }
.gallery-thumbs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font: 500 12px/1 var(--wl-font); color: var(--muted); cursor: pointer; transition: border-color .18s; }
.gallery-thumbs button img { width: 64px; height: 40px; object-fit: cover; object-position: top left; border-radius: 3px; display: block; }
.gallery-thumbs button span { padding: 0 10px; }
.gallery-thumbs button img + span { padding-left: 0; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--lake); color: var(--ink); }
.gallery-thumbs button:hover { border-color: var(--lake); }
.gallery .gavia-specimen { min-height: 420px; }

/* Kvorum: схема и источники истины */
.kvorum-visual, .server-visual { background: var(--stone); border-radius: 6px 6px 48px 6px; padding: 28px; }
.kvorum-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
.kvorum-flow li { position: relative; counter-increment: flow; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px 14px; }
.kvorum-flow li::before { content: "0" counter(flow); display: block; font-size: 10px; color: var(--olive); margin-bottom: 6px; }
.kvorum-flow b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.kvorum-flow span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.kvorum-flow li.is-agent { background: var(--lake); border-color: var(--lake); }
.kvorum-flow li.is-agent::before, .kvorum-flow li.is-agent span { color: color-mix(in srgb, var(--paper) 80%, var(--lake)); }
.kvorum-flow li.is-agent b { color: var(--paper); }
.truth { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.truth-title { font-size: 13px; font-weight: 500; color: var(--olive); }
.truth-questions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.truth-questions button { min-height: 36px; padding: 7px 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font: 400 13px/1.2 var(--wl-font); color: var(--ink); cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.truth-questions button:hover { border-color: var(--lake); }
.truth-questions button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.truth-answer { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 16px; align-items: center; margin-top: 18px; padding: 16px 18px; background: var(--paper); border-radius: 4px; }
.truth-answer b { font-size: 22px; font-weight: 500; letter-spacing: -.03em; color: var(--lake); }
.truth-answer span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.truth-foot { margin-top: 14px; font-size: 12px; color: var(--muted); }
.server-title { font-size: 13px; font-weight: 500; color: var(--olive); }
.server-list { margin-top: 12px; }
.server-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.server-list b { display: block; font-size: 16px; font-weight: 500; color: var(--ink); }
.server-list span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ИИ в работе */
.ai-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.ai-steps li { border-top: 1px solid var(--line); padding-top: 20px; }
.ai-steps h3 { margin-top: 14px; font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.ai-steps p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.ai-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 48px; padding: 30px 36px; background: var(--soft); border-radius: 4px; }
.ai-tools-grid dt { font-size: 12px; font-weight: 500; color: var(--olive); }
.ai-tools-grid dd { margin: 6px 0 0; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; }

/* Две роли */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; margin-top: 48px; }
.role-card { border-top: 1px solid var(--line); padding-top: 20px; }
.role-card h3 { margin-top: 14px; font-size: 25px; line-height: 1.25; font-weight: 500; letter-spacing: -.03em; }
.role-card ul { margin-top: 16px; }
.role-card li { position: relative; padding: 10px 0 10px 22px; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); }
.role-card li::before { content: "—"; position: absolute; left: 0; color: var(--olive); }
.contact-links .contact-profile { margin-right: 4px; }

@media (max-width: 1100px) {
  .panel-head { grid-template-columns: 56px 1fr; }
  .panel-intro { grid-column: 1 / -1; justify-self: start; }
  .panel-grid { grid-template-columns: 1fr; gap: 32px; }
  .ai-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .eco { margin-bottom: 48px; }
  .eco-scroll { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .eco-hint { margin-left: 0; width: 100%; }
  .showcase-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .showcase-tabs [role="tab"] { flex: 0 0 auto; font-size: 14px; }
  .panel-head { grid-template-columns: 48px 1fr; gap: 12px 16px; }
  .panel-logo { width: 48px; height: 48px; }
  .panel-intro { font-size: 18px; }
  .panel-body { font-size: 15px; }
  .kvorum-visual, .server-visual { padding: 20px; border-bottom-right-radius: 36px; }
  .kvorum-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .truth-answer { grid-template-columns: 1fr; gap: 6px; }
  .ai-steps { grid-template-columns: 1fr; gap: 22px; }
  .ai-tools-grid { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
  .roles { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .role-card h3 { font-size: 22px; }
  .gallery .gavia-specimen { min-height: 360px; }
}
@media (max-width: 360px) {
  .panel-facts { grid-template-columns: 1fr; }
  .kvorum-flow { grid-template-columns: 1fr; }
}
.eco-hint-touch { display: none; }
@media (hover: none), (max-width: 760px) {
  .eco-hint-pointer { display: none; }
  .eco-hint-touch { display: inline; }
}
.nowrap { white-space: nowrap; }

/* ===== v2.1: чипы, иконки, кнопки ===== */
:root {
  --chip-accent-bg: color-mix(in srgb, var(--lake) 11%, var(--paper));
  --chip-accent-line: color-mix(in srgb, var(--lake) 26%, var(--paper));
  --chip-ai-bg: #e3e9dc;
  --chip-ai-line: #cdd8c3;
  --chip-ai-ink: #4a5940;
  --chip-plan-bg: #f2e8dd;
  --chip-plan-line: #e3d2c0;
  --chip-plan-ink: #7c5945;
  --chip-plan-stripe: #ead9c6;
}
.ico { flex: 0 0 auto; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--stone); color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.chip--accent { background: var(--chip-accent-bg); border-color: var(--chip-accent-line); color: var(--lake); }
.chip--ai { background: var(--chip-ai-bg); border-color: var(--chip-ai-line); color: var(--chip-ai-ink); }
.chip--plan { background: var(--chip-plan-bg); border-color: var(--chip-plan-line); color: var(--chip-plan-ink); }
.chip--ai::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.hero-chips { margin-top: 22px; }
.hero-chips .chip { font-size: 13px; min-height: 30px; padding: 6px 12px; }
.chips-status { margin-bottom: 6px; }
.panel-body .chips, .career-description .chips { margin-top: 20px; }
.career-description .chips + .inline-link { margin-top: 14px; }
.ai-tools-grid dd .chips { margin-top: 2px; }
.ai-tools-grid dd .chip { font-size: 13px; min-height: 30px; padding: 6px 12px; }
.ai-tools-grid dd .chip:not(.chip--accent):not(.chip--ai) { background: var(--paper); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: border-color .18s, background .18s, color .18s, transform .18s; }
.btn:hover { border-color: var(--lake); color: var(--lake); transform: translateY(-1px); }
.btn-primary { background: var(--lake); border-color: var(--lake); color: var(--paper); }
.btn-primary:hover { background: var(--lake-hover, #203641); border-color: var(--lake-hover, #203641); color: var(--paper); }
.btn-lg { min-height: 56px; padding: 14px 22px; font-size: 16px; gap: 12px; }
.btn-meta { font-weight: 400; opacity: .72; }
.project-links.project-buttons { gap: 10px; margin-top: 24px; font-size: 14px; line-height: 1.2; }
.project-links a.btn { text-decoration: none; color: var(--ink); }
.project-links a.btn:hover { color: var(--lake); }
.project-links a.btn-primary, .project-links a.btn-primary:hover { color: var(--paper); }
.button-secondary { gap: 12px; background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .header-contact { margin-left: 14px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background .18s, border-color .18s, color .18s; }
.icon-button:hover { background: var(--lake); border-color: var(--lake); color: var(--paper); }
.contact-links { gap: 12px; margin-top: 30px; }
.contact-links .btn { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .header-actions .icon-button { display: none; }
  .header-actions .header-contact { margin-left: 0; }
}
@media (max-width: 760px) {
  .hero-chips .chip { font-size: 12px; min-height: 28px; padding: 5px 10px; }
  .btn-lg { min-height: 52px; font-size: 15px; width: 100%; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .button-secondary:hover { transform: none; }
}

/* ===== v2.2: таймлайн опыта, даты, проектная работа ===== */
.timeline { margin: 0 0 56px; }
.timeline-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timeline-chart { --span: 192; min-width: 760px; padding: 26px 28px 18px; background: var(--stone); border-radius: 6px 6px 56px 6px; }
.timeline-lane { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; }
.timeline-lane + .timeline-lane { margin-top: 12px; }
.timeline-lane-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.timeline-track { position: relative; height: 40px; border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 16 - 1px), var(--line) calc(100% / 16 - 1px) calc(100% / 16)); }
.timeline-lane--side .timeline-track { height: 30px; }
.tl-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--from) / var(--span) * 100%); width: calc((var(--to) - var(--from)) / var(--span) * 100% - 2px); display: flex; align-items: center; padding: 0 8px; overflow: hidden; border-radius: 4px; background: color-mix(in srgb, var(--lake) 22%, var(--paper)); color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.1; white-space: nowrap; transition: filter .18s, transform .18s; }
.tl-bar span { overflow: hidden; text-overflow: clip; }
.tl-bar:hover, .tl-bar:focus-visible { filter: brightness(.94); transform: translateY(-1px); }
.tl-bar--early { background: color-mix(in srgb, var(--lake) 10%, var(--paper)); color: var(--muted); }
.tl-bar--main { background: var(--lake); color: var(--paper); }
.tl-bar--side { background: repeating-linear-gradient(135deg, var(--chip-plan-bg) 0 8px, var(--chip-plan-stripe) 8px 16px); border: 1px solid var(--chip-plan-line); color: var(--chip-plan-ink); }
.timeline-axis { position: relative; height: 18px; margin: 10px 0 0 166px; font-size: 10px; color: var(--muted); }
.timeline-axis span { position: absolute; left: calc(var(--at) / 192 * 100%); transform: translateX(-2px); }
.timeline-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.timeline-caption > span { display: inline-flex; align-items: center; gap: 10px; }
.tl-key { display: inline-block; width: 22px; height: 10px; border-radius: 2px; }
.tl-key--main { background: var(--lake); }
.tl-key--side { background: repeating-linear-gradient(135deg, var(--chip-plan-bg) 0 4px, var(--chip-plan-stripe) 4px 8px); border: 1px solid var(--chip-plan-line); }
.timeline-hint { margin-left: auto; }

.career-list { position: relative; }
.career-list::before { content: ""; position: absolute; left: 5px; top: 44px; bottom: 44px; width: 1px; background: var(--line); }
.career-row { position: relative; padding-left: 32px; scroll-margin-top: 24px; }
.career-row::before { content: ""; position: absolute; left: 0; top: 44px; width: 11px; height: 11px; border: 1px solid var(--lake); border-radius: 50%; background: var(--paper); }
.career-row.is-current::before { background: var(--lake); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lake) 18%, transparent); }
.career-row-compact::before { top: 34px; }
.career-company .chips { margin-bottom: 14px; }
.career-company .chip { font-size: 12px; }
.career-periods { margin-top: 18px; }
.career-periods > div { padding: 10px 0; border-top: 1px solid var(--line); }
.career-periods dt { font-size: 13px; font-weight: 500; color: var(--ink); }
.career-periods dd { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.career-product-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.career-product-next .chip { font-size: 11px; letter-spacing: 0; }
.career-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.career-description .chips + .inline-link { margin-top: 14px; }
.module-name { display: inline-block; font-size: 15px; color: var(--ink); }
.module-count { display: inline-flex; margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--chip-accent-bg); border: 1px solid var(--chip-accent-line); color: var(--lake); font-size: 12px; font-weight: 500; vertical-align: 2px; }

.career-side { display: grid; grid-template-columns: 34% 66%; margin-top: 40px; padding: 30px 32px; border-radius: 6px 6px 48px 6px; background: color-mix(in srgb, var(--chip-plan-bg) 55%, var(--paper)); border: 1px solid var(--chip-plan-line); scroll-margin-top: 24px; }
.career-side-head { padding-right: 40px; }
.career-side-head .small-dot { background: var(--chip-plan-ink); }
.career-side-head h3 { margin-top: 14px; font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.career-side-head > p:not(.eyebrow) { margin-top: 12px; font-size: 14px; color: var(--muted); }
.career-side-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.career-side-list article { padding-top: 4px; }
.career-side-list h4 { margin-top: 12px; font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.career-side-list p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.career-side-list .project-links { margin-top: 12px; }

/* Предпросмотр акцента: ?accent=lake | moss | copper */
:root[data-accent="lake"] { --lake: #294451; --lake-hover: #1d313b; --wl-accent: #294451; --wl-accent-hover: #1d313b; --wl-accent-active: #1d313b; }
:root[data-accent="moss"] { --lake: #46613f; --lake-hover: #374d31; --wl-accent: #46613f; --wl-accent-hover: #374d31; --wl-accent-active: #374d31; }
:root[data-accent="copper"] { --lake: #8f5228; --lake-hover: #74411f; --wl-accent: #8f5228; --wl-accent-hover: #74411f; --wl-accent-active: #74411f; }

@media (max-width: 1100px) {
  .career-side { grid-template-columns: 1fr; gap: 24px; }
  .career-side-head { padding-right: 0; }
}
@media (max-width: 760px) {
  .timeline-scroll { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .timeline-hint { margin-left: 0; width: 100%; }
  .career-row { padding-left: 26px; }
  .career-list::before { left: 4px; }
  .career-row::before { width: 9px; height: 9px; top: 33px; }
  .career-side { padding: 24px 22px; border-bottom-right-radius: 36px; }
  .career-side-list { grid-template-columns: 1fr; gap: 22px; }
  .career-side-head h3 { font-size: 24px; }
}
.module-links li > .module-name { display: inline-block; margin-top: 0; font-size: 15px; color: var(--ink); line-height: 1.6; }

/* ===== v3: липкая шапка, ключевое наверху, логотипы, навигация по опыту ===== */
:root { --header-h: 64px; }
html { scroll-padding-top: calc(var(--header-h) + 64px); }
.site-header { position: sticky; top: 0; z-index: 30; transition: height .2s ease, box-shadow .2s ease; }
.site-header.is-compact { height: var(--header-h); background: color-mix(in srgb, var(--paper) 97%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--paper) 97%, transparent), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax -1px); }
.site-header .wordmark-g { transition: font-size .2s ease; }
.site-header.is-compact .wordmark-g { font-size: 30px; }
.site-header.is-compact .header-contact { padding-block: 6px; }
.site-header.is-compact .icon-button { width: 36px; height: 36px; }

/* Ключевое под первым экраном */
.hero-facts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.fact { padding: 24px 28px 26px; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-label { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fact-text { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); min-height: 3.1em; }
.fact-big { font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.fact-big span { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.chip-btn { cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; transition: background .18s, border-color .18s, color .18s; }
.chip-btn:hover { border-color: var(--lake); }
.chip-btn[aria-pressed="true"] { background: var(--lake); border-color: var(--lake); color: var(--paper); }
.inline-link--text { display: inline; margin: 0; font-size: inherit; }

/* Шапка панели проекта */
.panel-head { grid-template-columns: 72px 1fr; gap: 6px 22px; align-items: center; }
.panel-head > img.panel-logo, .panel-head > .panel-glyph { grid-row: 1; width: 72px; height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--tile); object-fit: contain; box-shadow: 0 6px 18px rgb(15 26 35 / .06); }
.panel-head > .panel-glyph { background: var(--ink); border-color: var(--ink); font-size: 28px; }
.panel-head .chips-status { margin-bottom: 4px; }
.panel-head h3 { margin-top: 2px; }
.panel-intro { grid-column: 1 / -1; justify-self: start; max-width: 760px; margin-top: 18px; font-size: 21px; line-height: 1.45; color: var(--ink); }

/* Логотипы компаний — одинаковые плитки */
.co-logo { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--tile); }
.co-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.co-logo--mono { background: var(--chip-plan-bg); border-color: var(--chip-plan-line); color: var(--chip-plan-ink); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.co-logo-pair { display: flex; gap: 6px; }
.co-logo-pair .co-logo { width: 48px; height: 48px; padding: 6px; }
.career-head { display: flex; align-items: flex-start; gap: 16px; }
.career-head .chips { margin-bottom: 10px; }
.career-company .career-head h3 { margin-top: 0; }
.career-tech-label { margin-top: 22px; margin-bottom: 8px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.career-company > .chips { margin-bottom: 0; }
.career-company > .chips .chip { font-size: 12px; }
.career-periods dt { display: flex; align-items: center; gap: 8px; }
.mini-logo { display: grid; place-items: center; width: 24px; height: 24px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--tile); }
.mini-logo img { width: 18px; height: 18px; object-fit: contain; }
.career-side-list .career-head h4 { margin-top: 0; }
.career-side-list .co-logo { width: 48px; height: 48px; padding: 6px; }

/* Логотипы в таймлайне */
.tl-bar { gap: 6px; }
.tl-bar img { flex: 0 0 18px; width: 18px; height: 18px; padding: 1px; border-radius: 4px; background: var(--tile); object-fit: contain; }

/* Компактная навигация по опыту при прокрутке */
.career-nav-wrap { position: sticky; top: var(--header-h); z-index: 20; height: 0; }
.career-nav { position: absolute; left: 0; right: 0; top: 6px; display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 26px rgb(15 26 35 / .08); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.career-nav::-webkit-scrollbar { display: none; }
.career-nav.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.career-nav a { flex: 1 0 auto; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 12px 5px 6px; border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .18s, color .18s; }
.career-nav a img, .cn-logo { flex: 0 0 26px; width: 26px; height: 26px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--tile); object-fit: contain; }
.cn-logo--mono { display: grid; place-items: center; background: var(--chip-plan-bg); border-color: var(--chip-plan-line); color: var(--chip-plan-ink); font-size: 10px; font-weight: 600; }
.cn-years { color: var(--muted); font-weight: 400; font-size: 12px; }
.career-nav a:hover { background: var(--stone); }
.career-nav a[aria-current="true"] { background: var(--lake); color: var(--paper); }
.career-nav a[aria-current="true"] .cn-years { color: color-mix(in srgb, var(--paper) 75%, transparent); }

@media (max-width: 1100px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .cn-years { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .hero-facts { grid-template-columns: 1fr; }
  .fact, .fact:first-child { padding: 20px 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact-text { min-height: 0; }
  .panel-head { grid-template-columns: 60px 1fr; gap: 6px 16px; }
  .panel-head > img.panel-logo, .panel-head > .panel-glyph { width: 60px; height: 60px; padding: 10px; border-radius: 15px; }
  .panel-intro { font-size: 18px; margin-top: 14px; }
  .co-logo { width: 48px; height: 48px; padding: 6px; border-radius: 12px; }
  .career-nav { left: calc(-1 * var(--gutter) + 8px); right: calc(-1 * var(--gutter) + 8px); }
  .career-nav a { flex: 0 0 auto; }
}

/* ===== v3.1: шапка без скачков, банки, три роли ===== */
/* Высота шапки в потоке не меняется: компактный режим компенсируется отступом, чтобы страница не «прыгала». */
.site-header { --header-full: 108px; }
.site-header.is-compact { margin-bottom: calc(var(--header-full) - var(--header-h)); }
@media (max-width: 760px) { .site-header { --header-full: 88px; } }

.bank-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bank { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 500; }
.bank-logo { display: grid; place-items: center; width: 30px; height: 30px; padding: 2px; border-radius: 50%; background: var(--tile); border: 1px solid var(--line); overflow: hidden; }
.bank-logo img { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
.bank-more { padding-left: 14px; background: var(--chip-accent-bg); border-color: var(--chip-accent-line); color: var(--lake); }
.career-description .bank-strip + .module-caption { margin-top: 18px; }

.roles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .roles-3 { grid-template-columns: 1fr 1fr; } .roles-3 .role-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .roles-3 { grid-template-columns: 1fr; } }

/* ===== v3.2 ===== */
/* Шапка: высота и отступ меняются синхронно — суммарное место в потоке постоянно, без рывка у верха страницы. */
.site-header { transition: height .2s ease, margin-bottom .2s ease, box-shadow .2s ease; }

/* Предметные области: все описания в одной ячейке — высота по самому длинному. */
.domain-texts { display: grid; margin-top: 12px; }
.domain-texts .domain-text { grid-area: 1 / 1; margin-top: 0; min-height: 0; visibility: hidden; opacity: 0; transition: opacity .15s ease; }
.domain-texts .domain-text.is-active { visibility: visible; opacity: 1; }

/* ИИ: принципы */
.ai-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ai-principles li { border-top: 1px solid var(--line); padding-top: 20px; }
.ai-principles h3 { margin-top: 14px; font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.ai-principles p { margin-top: 12px; font-size: 15px; color: var(--muted); }
@media (max-width: 1100px) { .ai-principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .ai-principles { grid-template-columns: 1fr; gap: 22px; } }

/* Опыт: разделители начинаются после линии таймлайна и не пересекают её. */
.career-row { border-top: 0; }
.career-row:last-child { border-bottom: 0; }
.career-row::after { content: ""; position: absolute; top: 0; left: 32px; right: 0; height: 1px; background: var(--line); }
.career-list::before { top: 49px; bottom: 0; }
.career-row:last-child::before { box-shadow: 0 0 0 6px var(--paper); }
@media (max-width: 760px) { .career-row::after { left: 26px; } }

/* ===== v3.3: шапка без состояний ===== */
:root { --header-h: 76px; }
.site-header,
.site-header.is-compact {
  --hdr: 0;
  height: var(--header-h);
  margin-bottom: 0;
  transition: none;
  background: rgb(var(--hdr-rgb) / calc(var(--hdr) * .96));
  box-shadow: 0 0 0 100vmax rgb(var(--hdr-rgb) / calc(var(--hdr) * .96)), 0 1px 0 100vmax rgb(var(--line-rgb) / var(--hdr));
  clip-path: inset(0 -100vmax -1px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header .wordmark-g, .site-header.is-compact .wordmark-g { font-size: 34px; transition: none; }
.site-header.is-compact .header-contact { padding-block: 12px; }
.site-header.is-compact .icon-button { width: 40px; height: 40px; }
.hero { padding-top: 88px; }
@media (min-width: 1600px) { .hero { padding-top: 112px; } }
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hero { padding-top: 54px; }
  .site-header .wordmark-g { font-size: 30px; }
}

/* Шапка: фон, оттенок и мягкая тень проявляются плавно вместе с прокруткой (--hdr от 0 до 1). */
body { overflow-x: clip; }
.site-header,
.site-header.is-compact { isolation: isolate; background: none; box-shadow: none; clip-path: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background: rgb(var(--hdr-rgb) / calc(var(--hdr) * .94));
  border-bottom: 1px solid rgb(var(--line-rgb) / calc(var(--hdr) * .9));
  box-shadow: 0 12px 32px -20px rgb(15 26 35 / calc(var(--hdr) * .4));
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

/* ===== v3.4: сжатие шапки и тень «конусом» ===== */
@property --hdr { syntax: '<number>'; inherits: true; initial-value: 0; }
html { transition: --hdr .18s ease-out; }
:root { --shrink: 16px; }
@media (max-width: 760px) { :root { --shrink: 12px; } }
.site-header,
.site-header.is-compact {
  --hdr: inherit;
  /* Высота в потоке постоянная; визуально шапка сжимается за счёт нижнего отступа внутри. */
  padding-bottom: calc(var(--hdr) * var(--shrink));
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header::before { bottom: calc(var(--hdr) * var(--shrink)); box-shadow: none; }
.site-header::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; transform: translateX(-50%);
  top: calc(100% - var(--hdr) * var(--shrink));
  width: min(1180px, 88vw); height: 26px;
  background: radial-gradient(50% 100% at 50% 0%, rgb(var(--shadow-rgb) / var(--cone-a, .17)) 0%, rgb(var(--shadow-rgb) / calc(var(--cone-a, .17) * .4)) 45%, rgb(var(--shadow-rgb) / 0) 100%);
  opacity: var(--hdr);
}
.career-nav-wrap { top: calc(var(--header-h) - var(--hdr) * var(--shrink)); }
@media (prefers-reduced-motion: reduce) { html { transition: none; } }

/* ===== v3.5: основные проекты и эксперименты ===== */
.chip--main { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tabs-group { display: inline-flex; align-items: center; align-self: center; padding: 0 6px 0 2px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tabs-group--exp { margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--line); }
.showcase-tabs [role="tab"].is-exp { border-style: dashed; }
.showcase-tabs [role="tab"].is-exp[aria-selected="true"] { border-style: solid; }
.eco-node--exp { border-style: dashed; }
@media (max-width: 760px) { .tabs-group { flex: 0 0 auto; } .tabs-group--exp { margin-left: 6px; padding-left: 12px; } }

/* ===== v3.6: планшеты ===== */
.career-row > * { min-width: 0; }
@media (max-width: 1100px) {
  .hero-actions { flex-wrap: wrap; gap: 14px 18px; }
  .hero-actions .button { white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .career-row { grid-template-columns: 1fr; gap: 24px; }
  .career-company { padding-right: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .career-company > .career-head { grid-column: 1; grid-row: 1 / span 3; }
  .career-company > :not(.career-head) { grid-column: 2; }
}

/* ===== v3.7: непрозрачные логотипы — на всю плашку ===== */
.co-logo.is-fill, .mini-logo.is-fill { padding: 0; overflow: hidden; }
.co-logo.is-fill img, .mini-logo.is-fill img { width: 100%; height: 100%; object-fit: cover; }
.tl-bar img.logo-fill { padding: 0; object-fit: cover; }
.career-nav a img.logo-fill { padding: 0; object-fit: cover; }
.panel-head > img.panel-logo.logo-fill { padding: 0; object-fit: cover; }
.career-nav a[aria-current="true"] .cn-years { color: color-mix(in srgb, var(--paper) 72%, transparent); }


/* ===== v4: тёмная тема и выбор оформления ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11161a; --ink: #e7eae5; --stone: #1a2126; --sage: #2b3a33; --olive: #a2b493; --muted: #9ba6a0;
  --line: #2a343a; --contour: #3b4845; --soft: #172025; --contour-soft: #34403d; --plan-mid: #8c7a65; --plan-text: #b8a58e;
  --tile: #f2f1ec; --hdr-rgb: 22 28 33; --line-rgb: 42 52 58; --shadow-rgb: 0 0 0; --cone-a: .55;
  --lake: #8fb6c9; --lake-hover: #a9c8d7;
  --chip-ai-bg: #1d2a21; --chip-ai-line: #33463a; --chip-ai-ink: #b4c8a5;
  --chip-plan-bg: #2a221b; --chip-plan-line: #4a3a2c; --chip-plan-ink: #e2c2a2; --chip-plan-stripe: #33291f;
  --wl-bg: #11161a; --wl-text: #e7eae5; --wl-border: #2a343a; --wl-on-accent: #11161a;
  --wl-accent: var(--lake); --wl-accent-hover: var(--lake-hover); --wl-accent-active: var(--lake-hover);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) {
  color-scheme: dark;
  --paper: #11161a; --ink: #e7eae5; --stone: #1a2126; --sage: #2b3a33; --olive: #a2b493; --muted: #9ba6a0;
  --line: #2a343a; --contour: #3b4845; --soft: #172025; --contour-soft: #34403d; --plan-mid: #8c7a65; --plan-text: #b8a58e;
  --tile: #f2f1ec; --hdr-rgb: 22 28 33; --line-rgb: 42 52 58; --shadow-rgb: 0 0 0; --cone-a: .55;
  --lake: #8fb6c9; --lake-hover: #a9c8d7;
  --chip-ai-bg: #1d2a21; --chip-ai-line: #33463a; --chip-ai-ink: #b4c8a5;
  --chip-plan-bg: #2a221b; --chip-plan-line: #4a3a2c; --chip-plan-ink: #e2c2a2; --chip-plan-stripe: #33291f;
  --wl-bg: #11161a; --wl-text: #e7eae5; --wl-border: #2a343a; --wl-on-accent: #11161a;
  --wl-accent: var(--lake); --wl-accent-hover: var(--lake-hover); --wl-accent-active: var(--lake-hover);
} }
/* Акценты в тёмной теме — светлее, текст на них тёмный */
:root[data-theme="dark"][data-accent="moss"] { --lake: #a3bf8f; --lake-hover: #b7cfa6; }
:root[data-theme="dark"][data-accent="copper"] { --lake: #e3a173; --lake-hover: #ebb690; }
:root[data-theme="dark"][data-accent="gold"] { --lake: #dcb75c; --lake-hover: #e6c77d; }
:root[data-accent="gold"] { --lake: #86650f; --lake-hover: #6c510b; --wl-accent: #86650f; --wl-accent-hover: #6c510b; --wl-accent-active: #6c510b; }
:root[data-theme="dark"][data-accent] { --wl-accent: var(--lake); --wl-accent-hover: var(--lake-hover); --wl-accent-active: var(--lake-hover); }

/* Детали тёмной темы */
:root[data-theme="dark"] .hero-wave { filter: brightness(.8) saturate(.9); }
:root[data-theme="dark"] .hero picture img { filter: brightness(.92); }
:root[data-theme="dark"] .gallery-stage > img.gallery-frame { box-shadow: 0 14px 40px rgb(0 0 0 / .45); outline: 1px solid var(--line); outline-offset: -1px; }
:root[data-theme="dark"] .gavia-specimen { --sample-accent: #a9c8d7; --sample-soft: #1b2a31; --sample-on: #11161a; }
:root[data-theme="dark"] .gavia-specimen[data-tone="moss"] { --sample-accent: #b4c8a5; --sample-soft: #1f2a1d; }
:root[data-theme="dark"] .gavia-specimen[data-tone="clay"] { --sample-accent: #e2b896; --sample-soft: #2c221b; }
:root[data-theme="dark"] .showcase-tabs [role="tab"] img, :root[data-theme="dark"] .eco-node img { background: var(--tile); border-radius: 6px; }
:root[data-theme="dark"] ::selection { color: var(--ink); background: #35505c; }
html { background: var(--paper); }
body { transition: background-color .25s ease, color .25s ease; }

/* Меню оформления */
.theme-menu { position: relative; }
.header-actions .theme-button { display: grid; }
.theme-button .ico-moon { display: none; }
:root[data-theme="dark"] .theme-button .ico-sun { display: none; }
:root[data-theme="dark"] .theme-button .ico-moon { display: block; }
.theme-button[aria-expanded="true"] { border-color: var(--lake); }
.theme-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 272px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgb(var(--shadow-rgb) / .16); }
:root[data-theme="dark"] .theme-pop { background: #161c21; box-shadow: 0 18px 44px rgb(0 0 0 / .5); }
.theme-pop[hidden] { display: none; }
.theme-pop-label { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.theme-pop-label .chip { min-height: 20px; padding: 2px 7px; font-size: 10px; letter-spacing: 0; text-transform: none; }
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--stone); border: 1px solid var(--line); border-radius: 10px; }
.theme-seg button { min-height: 34px; padding: 6px 4px; border: 0; border-radius: 7px; background: none; font: 500 12px/1.1 var(--wl-font); color: var(--muted); cursor: pointer; transition: background .18s, color .18s; }
.theme-seg button:hover { color: var(--ink); }
.theme-seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(var(--shadow-rgb) / .14); }
.theme-dev { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.accent-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.accent-list button { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px; background: none; border: 1px solid var(--line); border-radius: 8px; font: 500 13px/1 var(--wl-font); color: var(--ink); cursor: pointer; transition: border-color .18s; }
.accent-list button:hover { border-color: var(--muted); }
.accent-list button[aria-checked="true"] { border-color: var(--lake); box-shadow: inset 0 0 0 1px var(--lake); }
.accent-list i { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--sw); }
:root[data-theme="dark"] .accent-list i { background: var(--sw-d); }
@media (max-width: 760px) {
  .header-actions { gap: 10px; }
  .theme-button { width: 36px !important; height: 36px !important; }
  .theme-pop { position: fixed; left: 16px; right: 16px; top: calc(var(--header-h) + 4px); width: auto; }
}
:root[data-theme="dark"] .technology-list img, :root[data-theme="dark"] .ai-tools img { filter: invert(1); opacity: .78; }

/* ===== v4.1: бренды Fashion Studio ===== */
.brand-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--chip-plan-line); }
.brand-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.brand-logo { display: grid; place-items: center; height: 76px; padding: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .18s; }
.brand-logo:hover { border-color: var(--lake); }
.brand-logo img { width: auto; max-width: 100%; height: 22px; }
.brand-card:nth-child(2) .brand-logo img { height: 32px; }
.brand-card:nth-child(3) .brand-logo img { height: 30px; }
.brand-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.brand-card .chips .chip { font-size: 11px; min-height: 24px; }
.brand-url { margin-top: auto; font-size: 12px; color: var(--lake); text-decoration: underline; text-decoration-color: var(--contour); text-underline-offset: 4px; }
.brand-url:hover { text-decoration-color: var(--lake); }
.brand-note { grid-column: 1 / -1; margin-top: 14px; font-size: 12px; color: var(--muted); }
:root[data-theme="dark"] .brand-logo { background: var(--tile); border-color: transparent; }
@media (max-width: 1100px) { .brand-grid { grid-template-columns: 1fr 1fr; } .brand-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .brand-grid { grid-template-columns: 1fr; } .brand-card:last-child { grid-column: auto; } .brand-logo { height: 64px; } }

/* ===== v4.2: шапка проекта, Kvorum, экосистема, просмотр скриншотов ===== */
/* Шапка панели: статусы справа от названия, на мобильном — под ним */
.panel-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-width: 0; }
.panel-head > div h3 { order: 0; margin: 0; }
.panel-head > div .chips-status { order: 1; margin: 0; }
.panel-intro { margin-top: 22px; }
@media (max-width: 760px) {
  .panel-head { align-items: start; }
  .panel-head > div { flex-direction: column; align-items: flex-start; gap: 10px; }
  .panel-head > div h3 { line-height: 1; margin-top: 2px; }
  .panel-intro { margin-top: 16px; }
}

/* Kvorum: скриншоты слева, схема потока и «источники фактов» — отдельной строкой ниже */
.kvorum-wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 40px; }
.kvorum-wide .truth { margin-top: 0; padding-top: 0; padding-left: 32px; border-top: 0; border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .kvorum-wide { grid-template-columns: 1fr; gap: 26px; } .kvorum-wide .truth { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid var(--line); } }

/* Галерея: кнопка «крупно» */
.gallery-stage { position: relative; }
.gallery-stage > img.gallery-frame { cursor: zoom-in; }
.gallery-zoom { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; background: rgb(15 26 35 / .62); color: #fff; cursor: pointer; opacity: 0; transition: opacity .18s, background .18s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gallery-stage:hover .gallery-zoom, .gallery-zoom:focus-visible { opacity: 1; }
.gallery-zoom:hover { background: rgb(15 26 35 / .85); }
@media (hover: none) { .gallery-zoom { opacity: 1; } }

/* Окно просмотра */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.lightbox::backdrop { background: rgb(8 12 15 / .86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { display: grid; justify-items: center; gap: 14px; max-width: calc(100vw - 140px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 24px 80px rgb(0 0 0 / .5); background: #14171b; }
.lightbox figcaption { max-width: 900px; color: rgb(255 255 255 / .82); font-size: 14px; text-align: center; }
.lightbox-close, .lightbox-nav { position: fixed; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .2); border-radius: 50%; background: rgb(255 255 255 / .08); color: #fff; cursor: pointer; transition: background .18s; font: 300 30px/1 var(--wl-font); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgb(255 255 255 / .18); }
.lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 28px; }
.lightbox-nav { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox.is-single .lightbox-nav { display: none; }
@media (max-width: 760px) {
  .lightbox figure { max-width: calc(100vw - 24px); }
  .lightbox img { max-height: calc(100vh - 160px); }
  .lightbox-nav { top: auto; bottom: 22px; transform: none; width: 46px; height: 46px; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
}

/* Экосистема: слои */
.stack { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 22px; min-width: 1100px; padding: 30px; background: var(--stone); border-radius: 6px 6px 72px 6px; }
.stack-main { display: grid; grid-template-rows: auto 44px auto 30px auto; }
.stack-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 84px; }
.stack-layer-label { position: absolute; top: -9px; left: 14px; padding: 0 6px; background: inherit; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-radius: 4px; }
.stack-layer { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 20px; border-radius: 12px; font: inherit; text-align: left; transition: opacity .2s, box-shadow .2s, border-color .2s; }
.stack-layer b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.stack-layer small { font-size: 13px; color: inherit; opacity: .72; }
.stack-agents { justify-content: center; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.stack-agents .stack-layer-label { background: var(--stone); }
.stack-gavia { justify-content: center; background: var(--sage); color: var(--ink); border: 1px solid var(--sage); cursor: pointer; }
.stack-gavia .stack-layer-label { background: var(--stone); }
.stack-gavia img { width: 26px; height: 26px; }
.stack-ticks-row > span { position: relative; display: flex; justify-content: center; }
.stack-tick { position: relative; }
.stack-tick::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px solid var(--contour); transition: border-color .2s, opacity .2s; }
.stack-ticks-row:not(.is-short) .stack-tick { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.stack-ticks-row:not(.is-short) .stack-tick { color: transparent; }
.stack-ticks-row:not(.is-short) .stack-tick::after { content: "MCP"; position: relative; padding: 1px 6px; background: var(--stone); color: var(--muted); font-size: 10px; letter-spacing: .06em; border-radius: 4px; }
.stack-cell { position: relative; display: flex; }
.stack-card { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; width: 100%; min-height: 76px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .2s, transform .2s; }
.stack-card > img, .stack-card > .eco-glyph { grid-row: span 2; width: 30px; height: 30px; object-fit: contain; }
.stack-card .stack-name { font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.stack-card small { grid-column: 2; font-size: 11px; line-height: 1.3; color: var(--muted); }
.stack-card.is-main { border-color: var(--lake); box-shadow: 0 0 0 1px var(--lake); }
.stack-card.is-exp { border-style: dashed; }
.stack-card:hover, .stack-card.is-hot { border-color: var(--lake); box-shadow: 0 10px 26px rgb(var(--shadow-rgb) / .1); transform: translateY(-2px); }
.stack-link { position: absolute; z-index: 0; left: 100%; top: 0; bottom: 0; width: 84px; display: grid; place-items: center; pointer-events: none; }
.stack-link i { position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--contour); transition: border-color .2s, opacity .2s; }
.stack-link.is-planned i { border-top-style: dashed; border-top-color: var(--plan-mid); }
.stack-link em { position: absolute; top: calc(50% + 6px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; line-height: 1.25; text-align: center; color: var(--muted); white-space: nowrap; transition: opacity .2s; }
.stack-link.is-planned em { color: var(--plan-text); }
.stack-hub { position: relative; display: grid; align-content: center; justify-items: start; gap: 8px; padding: 22px 18px; background: var(--paper); border: 1px dashed var(--contour); border-radius: 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .2s; }
.stack-hub .stack-layer-label { background: var(--stone); }
.stack-hub img { width: 40px; height: 40px; border-radius: 10px; }
.stack-hub b { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.stack-hub small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.stack-hub-note { margin-top: 4px; padding: 3px 9px; border: 1px solid var(--chip-plan-line); border-radius: 999px; background: var(--chip-plan-bg); color: var(--chip-plan-ink); font-size: 11px; font-weight: 500; }
.stack-hub:hover, .stack-hub.is-hot { border-color: var(--lake); box-shadow: 0 10px 26px rgb(var(--shadow-rgb) / .1); }
.stack-agents.is-hot, .stack-gavia.is-hot, .stack-gavia:hover { box-shadow: 0 10px 26px rgb(var(--shadow-rgb) / .12); }
/* фокус: всё лишнее приглушаем, связи подсвечиваем */
.stack.is-focus [data-node]:not(.is-hot) { opacity: .38; }
.stack.is-focus .stack-tick:not(.is-hot)::before, .stack.is-focus .stack-link:not(.is-hot) i { opacity: .25; }
.stack.is-focus .stack-link:not(.is-hot) em, .stack.is-focus .stack-tick:not(.is-hot)::after { opacity: .3; }
.stack-tick.is-hot::before { border-left-color: var(--lake); border-left-width: 2px; }
.stack-link.is-hot i { border-top-color: var(--lake); border-top-width: 2px; }
.stack-link.is-hot em { color: var(--lake); }
.stack-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-height: 52px; margin-top: 18px; padding: 14px 18px; border-left: 2px solid var(--lake); background: color-mix(in srgb, var(--stone) 60%, transparent); border-radius: 0 6px 6px 0; }
.stack-info b { font-size: 15px; font-weight: 500; }
.stack-info span { font-size: 14px; color: var(--muted); }
.eco-caption { margin-top: 12px; }
@media (max-width: 760px) {
  .stack { min-width: 960px; padding: 24px; border-bottom-right-radius: 48px; }
  .stack-info { margin-top: 14px; }
}
/* Экосистема на мобильном: вертикальная цепочка вместо горизонтальной схемы */
@media (max-width: 760px) {
  .stack { min-width: 0; grid-template-columns: 1fr; gap: 26px; padding: 26px 18px 30px; }
  .stack-main { grid-template-rows: none; gap: 22px; }
  .stack-ticks-row { display: none; }
  .stack-row.stack-products { grid-template-columns: 1fr; row-gap: 40px; }
  .stack-link { left: 28px; top: 100%; bottom: auto; width: 0; height: 40px; }
  .stack-link i { top: 0; bottom: 0; left: 0; right: auto; border-top: 0; border-left: 1.5px solid var(--contour); }
  .stack-link.is-planned i { border-left-style: dashed; border-left-color: var(--plan-mid); }
  .stack-link.is-hot i { border-left-color: var(--lake); border-left-width: 2px; }
  .stack-link em { top: 50%; left: 14px; transform: translateY(-50%); text-align: left; }
  .stack-link em br { display: none; }
  .stack-layer { flex-wrap: wrap; justify-content: flex-start; row-gap: 2px; }
  .stack-layer small { flex-basis: 100%; }
  .stack-gavia img { display: none; }
  .stack-hub { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .stack-hub img { grid-row: span 2; }
  .stack-hub small, .stack-hub-note { grid-column: 1 / -1; }
  .stack-hub-note { justify-self: start; }
  .eco-scroll { margin-inline: 0; padding-inline: 0; overflow: visible; }
}

/* ===== v4.3: основной акцент — #4e4185 (выбран), тёмный вариант светлее ===== */
:root { --lake: #4e4185; --lake-hover: #3c3267; --wl-accent: #4e4185; --wl-accent-hover: #3c3267; --wl-accent-active: #3c3267; }
:root[data-theme="dark"] { --lake: #a393e6; --lake-hover: #b8abee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --lake: #a393e6; --lake-hover: #b8abee; } }
:root[data-theme="dark"] ::selection { background: #3d3566; }
/* Тестовый выбор акцента скрыт; предпросмотр остался через ?accent=lake|moss|copper|gold */
.theme-dev { display: none; }
:root[data-theme="dark"][data-accent="lake"] { --lake: #8fb6c9; --lake-hover: #a9c8d7; }
:root[data-theme="dark"] .stack-card > img, :root[data-theme="dark"] .stack-gavia img { background: var(--tile); border-radius: 7px; padding: 2px; }
/* Слой агентов — светлее, без тяжёлой чёрной плашки */
.stack-agents { background: color-mix(in srgb, var(--lake) 12%, var(--paper)); border-color: color-mix(in srgb, var(--lake) 30%, var(--paper)); color: var(--ink); }
.stack-agents small { color: var(--muted); opacity: 1; }
:root[data-theme="dark"] .stack-agents { background: color-mix(in srgb, var(--lake) 16%, var(--paper)); border-color: color-mix(in srgb, var(--lake) 34%, var(--paper)); }

/* ===== v4.4: состояния наведения и нажатия ===== */
/* иконка проекта на выбранной вкладке — на светлой плашке, чтобы тёмные логотипы не терялись */
.showcase-tabs [role="tab"] img { border-radius: 6px; transition: background .18s; }
.showcase-tabs [role="tab"][aria-selected="true"] img { background: var(--tile); padding: 2px; }
.showcase-tabs [role="tab"]:not([aria-selected="true"]):hover { background: color-mix(in srgb, var(--lake) 7%, var(--paper)); }
.showcase-tabs [role="tab"][aria-selected="true"]:hover { background: var(--lake-hover); border-color: var(--lake-hover); }
.site-header nav a:hover, .text-link:hover, .back-top:hover { color: var(--lake); }
.truth-questions button[aria-checked="true"] { background: var(--lake); border-color: var(--lake); color: var(--paper); }
.truth-questions button:not([aria-checked="true"]):hover, .chip-btn:not([aria-pressed="true"]):hover, .gallery-thumbs button:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--lake) 7%, var(--paper)); }
.chip-btn { cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .12s; }
.career-nav a:not([aria-current="true"]):hover { background: color-mix(in srgb, var(--lake) 8%, var(--paper)); }
.career-nav a[aria-current="true"]:hover { background: var(--lake-hover); }
.brand-card { transition: border-color .18s, box-shadow .18s; }
.brand-card:hover { border-color: color-mix(in srgb, var(--lake) 40%, var(--line)); box-shadow: 0 10px 26px rgb(var(--shadow-rgb) / .07); }
.stack-agents { transition: opacity .2s, box-shadow .2s, background .2s; }
.stack-agents:hover { box-shadow: 0 10px 26px rgb(var(--shadow-rgb) / .1); }
.icon-button:hover { background: var(--lake); border-color: var(--lake); color: var(--paper); }
.theme-seg button[aria-checked="true"]:hover { color: var(--ink); }
/* нажатие: короткий отклик, без сдвига вёрстки */
.button:active, .btn:active, .icon-button:active, .header-contact:active,
.showcase-tabs [role="tab"]:active, .chip-btn:active, .truth-questions button:active, .gallery-thumbs button:active,
.career-nav a:active, .theme-seg button:active, .stack-card:active, .stack-hub:active, .stack-gavia:active,
.tl-bar:active, .gallery-zoom:active, .lightbox-close:active, .lightbox-nav:active, .brand-logo:active { transform: scale(.97); transition-duration: .06s; }
.lightbox-nav:active { transform: translateY(-50%) scale(.95); }
@media (max-width: 760px) { .lightbox-nav:active { transform: scale(.95); } }
/* касание без «залипшего» наведения */
@media (hover: none) {
  .stack-card:hover:not(.is-hot) { transform: none; box-shadow: none; border-color: var(--line); }
  .stack-card.is-main:hover:not(.is-hot) { border-color: var(--lake); }
  .button-primary:hover, .button-secondary:hover, .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .button:active, .btn:active, .stack-card:active { transform: none; } }
.showcase-tabs [role="tab"] img { box-sizing: border-box; } .showcase-tabs [role="tab"] { transition: background .18s, border-color .18s, color .18s, transform .12s; }
.career-nav a[aria-current="true"] .cn-years { color: inherit; opacity: .78; }

/* ===== v4.5: основной акцент #514b98 ===== */
:root { --lake: #514b98; --lake-hover: #3c3871; --wl-accent: #514b98; --wl-accent-hover: #3c3871; --wl-accent-active: #3c3871; }
:root[data-theme="dark"] { --lake: #9a94e4; --lake-hover: #aea9ec; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --lake: #9a94e4; --lake-hover: #aea9ec; } }
:root[data-theme="dark"][data-accent="lake"] { --lake: #8fb6c9; --lake-hover: #a9c8d7; }
:root[data-theme="dark"][data-accent="moss"] { --lake: #a3bf8f; --lake-hover: #b7cfa6; }
:root[data-theme="dark"][data-accent="copper"] { --lake: #e3a173; --lake-hover: #ebb690; }
:root[data-theme="dark"][data-accent="gold"] { --lake: #dcb75c; --lake-hover: #e6c77d; }

/* ===== v4.6: тёмная тема — мягче тексты, логотипы брендов без ярких плашек ===== */
:root[data-theme="dark"] { --ink: #d5d9d3; --muted: #8f9993; --wl-text: #d5d9d3; --tile: #e2e1dc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --ink: #d5d9d3; --muted: #8f9993; --wl-text: #d5d9d3; --tile: #e2e1dc; } }
:root[data-theme="dark"] .brand-logo { background: color-mix(in srgb, var(--ink) 5%, var(--paper)); border: 1px solid var(--line); }
:root[data-theme="dark"] .brand-logo:hover { border-color: color-mix(in srgb, var(--lake) 55%, var(--line)); }
:root[data-theme="dark"] .brand-logo img { filter: invert(1); opacity: .8; transition: opacity .18s; }
:root[data-theme="dark"] .brand-logo:hover img { opacity: .95; }
/* тёмный акцент — ближе к синеватому #514b98, меньше фиолетового */
:root[data-theme="dark"] { --lake: #9299d3; --lake-hover: #a6abde; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --lake: #9299d3; --lake-hover: #a6abde; } }
:root[data-theme="dark"] ::selection { background: #353a66; }

/* ===== v4.7: основной акцент #4f5c9d ===== */
:root { --lake: #4f5c9d; --lake-hover: #3d487a; --wl-accent: #4f5c9d; --wl-accent-hover: #3d487a; --wl-accent-active: #3d487a; }
:root[data-theme="dark"] { --lake: #929dd3; --lake-hover: #a6afde; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --lake: #929dd3; --lake-hover: #a6afde; } }
:root[data-theme="dark"] ::selection { background: #343c65; }
:root[data-theme="dark"][data-accent="lake"] { --lake: #8fb6c9; --lake-hover: #a9c8d7; }
:root[data-theme="dark"][data-accent="moss"] { --lake: #a3bf8f; --lake-hover: #b7cfa6; }
:root[data-theme="dark"][data-accent="copper"] { --lake: #e3a173; --lake-hover: #ebb690; }
:root[data-theme="dark"][data-accent="gold"] { --lake: #dcb75c; --lake-hover: #e6c77d; }

/* ===== v5: линия опыта — точки по центру логотипа, короткая связка к логотипу ===== */
.career-list::before { display: none; }
.career-list > .career-row::before { top: 0; bottom: 0; left: 5px; width: 1px; height: auto; border: 0; border-radius: 0; background: var(--line); box-shadow: none !important; }
.career-list > .career-row:first-child::before { top: var(--dot-y, 66px); }
.career-list > .career-row:last-child::before { bottom: auto; height: var(--dot-y, 66px); }
.career-list > .career-row > .career-company > .career-head { position: relative; }
.career-list > .career-row > .career-company > .career-head::before { content: ""; position: absolute; z-index: 1; left: calc(-1 * var(--dot-x, 32px)); top: calc(var(--dot-y, 28px) - 6px); width: 11px; height: 11px; box-sizing: border-box; border: 1.5px solid var(--lake); border-radius: 50%; background: var(--paper); }
.career-list > .career-row > .career-company > .career-head::after { content: ""; position: absolute; left: calc(-1 * var(--dot-x, 32px) + 11px); top: var(--dot-y, 28px); width: calc(var(--dot-x, 32px) - 11px); border-top: 1px solid var(--line); }
.career-list > .career-row.is-current > .career-company > .career-head::before { background: var(--lake); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lake) 18%, transparent); }
@media (max-width: 760px) {
  .career-list > .career-row::before { left: 4px; }
  .career-list > .career-row > .career-company > .career-head::before { width: 9px; height: 9px; top: calc(var(--dot-y, 24px) - 5px); }
  .career-list > .career-row > .career-company > .career-head::after { left: calc(-1 * var(--dot-x, 26px) + 9px); width: calc(var(--dot-x, 26px) - 9px); }
}

/* ===== v5: шапка — навигация с «пилюлей», без отдельной кнопки «Связаться» ===== */
.main-nav { position: relative; display: flex; align-items: center; gap: 4px !important; padding: 4px; border-radius: 999px; }
.main-nav a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; color: var(--ink); transition: color .2s ease; }
.main-nav a:hover { color: var(--lake) !important; }
.main-nav a[aria-current] { color: var(--lake); }
.nav-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px; background: color-mix(in srgb, var(--lake) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lake) 22%, transparent); opacity: 0; transition: transform .32s cubic-bezier(.3,.7,.2,1), width .32s cubic-bezier(.3,.7,.2,1), opacity .2s; pointer-events: none; }
.nav-pill.is-on { opacity: 1; }
.main-nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--lake); }
@media (prefers-reduced-motion: reduce) { .nav-pill { transition: opacity .2s; } }
@media (max-width: 1100px) { .main-nav a { padding: 7px 10px; } }
@media (max-width: 760px) { .main-nav { padding: 2px; gap: 0 !important; } .main-nav a { padding: 6px 7px; font-size: 13px; } .nav-pill { top: 2px; bottom: 2px; } .main-nav a[aria-current]::after { bottom: 0; } }
@media (max-width: 400px) { .main-nav a { padding: 6px 5px; font-size: 12.5px; } }

/* ===== v5: Fashion Studio — компактная строка логотипов ===== */
.brand-strip { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--chip-plan-line); }
.brand-strip-label { max-width: 200px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.brand-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brand-list li { display: grid; gap: 6px; justify-items: center; }
.brand-list .brand-logo { width: 100%; height: 58px; }
.brand-list .brand-logo img { height: 17px; }
.brand-list li:nth-child(2) .brand-logo img { height: 26px; }
.brand-list li:nth-child(3) .brand-logo img { height: 24px; }
.brand-list span { font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .brand-strip { grid-template-columns: 1fr; } .brand-strip-label { max-width: none; } }
@media (max-width: 560px) { .brand-list { grid-template-columns: 1fr; } .brand-list .brand-logo { height: 52px; } }

/* ===== v5: стек с фильтром ===== */
.tech { margin-top: 8px; }
.tech-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-filters button { min-height: 38px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 500 14px/1 var(--wl-font); color: var(--ink); cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .12s; }
.tech-filters button:not([aria-checked="true"]):hover { border-color: var(--lake); background: color-mix(in srgb, var(--lake) 7%, var(--paper)); }
.tech-filters button[aria-checked="true"] { background: var(--lake); border-color: var(--lake); color: var(--paper); }
.tech-filters button:active { transform: scale(.97); }
.tech-note { min-height: 24px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.tech-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tech-cloud li { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 15px; transition: opacity .25s, border-color .25s, background .25s, transform .25s, box-shadow .25s; }
.tech-cloud li img { width: 22px; height: 22px; opacity: .85; }
.tech-cloud .technology-letter { display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border-radius: 6px; font-size: 10px; font-weight: 600; letter-spacing: -.02em; }
.tech.is-filtered .tech-cloud li { opacity: .28; }
.tech.is-filtered .tech-cloud li.is-match { opacity: 1; border-color: color-mix(in srgb, var(--lake) 45%, var(--line)); background: color-mix(in srgb, var(--lake) 7%, var(--paper)); box-shadow: 0 6px 18px rgb(var(--shadow-rgb) / .06); transform: translateY(-1px); }
:root[data-theme="dark"] .tech-cloud li img { filter: invert(1); opacity: .78; }
@media (max-width: 760px) {
  .tech-filters { gap: 6px; }
  .tech-filters button { min-height: 34px; padding: 7px 12px; font-size: 13px; }
  .tech-cloud { gap: 8px; }
  .tech-cloud li { min-height: 40px; padding: 6px 12px 6px 8px; font-size: 14px; gap: 8px; }
}

/* ===== v5.1: мобильная вёрстка шапок с чипами ===== */
@media (max-width: 760px) {
  /* опыт: логотип и даты в одной строке, название и роль — на всю ширину */
  .career-list .career-head, .career-side-list .career-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; }
  .career-list .career-head > div, .career-side-list .career-head > div { display: contents; }
  .career-list .career-head > .co-logo, .career-list .career-head > .co-logo-pair, .career-side-list .career-head > .co-logo { grid-column: 1; grid-row: 1; }
  .career-list .career-head .chips, .career-side-list .career-head .chips { grid-column: 2; grid-row: 1; margin: 0; gap: 6px; }
  .career-list .career-head h3, .career-side-list .career-head h4 { grid-column: 1 / -1; margin-top: 14px; }
  .career-list .career-head .career-role { grid-column: 1 / -1; margin-top: 4px; }
  .career-list .career-head .chip, .career-side-list .career-head .chip { font-size: 11px; min-height: 24px; padding: 4px 9px; }
  /* проекты: статусы — строкой на всю ширину, не столбиком */
  .panel-head > div .chips-status { align-self: stretch; flex-wrap: wrap; gap: 6px; }
  .panel-head > div .chips-status .chip { font-size: 11px; min-height: 24px; padding: 4px 9px; }
  /* миниатюры галерей — в одну прокручиваемую строку */
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumbs button { flex: 0 0 auto; }
  /* чипы-ключевые технологии и прочие наборы — ровные отступы */
  .chips { gap: 6px; }
  .career-tech-label { margin-top: 18px; }
}
@media (max-width: 760px) { .panel-grid { grid-template-columns: minmax(0, 1fr); } .panel-grid > * { min-width: 0; } }
@media (max-width: 760px) {
  .panel-head { align-items: center; row-gap: 0; }
  .panel-head > div { display: contents; }
  .panel-head > div h3 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .panel-head > div .chips-status { grid-column: 1 / -1; grid-row: 2; margin-top: 14px; }
  .panel-head > .panel-intro { grid-row: 3; }
}

/* ===== v6: иконки из спрайта ===== */
.ti { flex: 0 0 22px; width: 22px; height: 22px; fill: currentColor; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.ci { flex: 0 0 14px; width: 14px; height: 14px; margin-right: 6px; fill: currentColor; opacity: .85; }
.chip--icon { display: inline-flex; align-items: center; }
.tech.is-filtered .tech-cloud li.is-match .ti { color: var(--lake); }
.chip--icon::before { display: none !important; }
/* меню: наведение — лёгкий собственный фон пункта, «пилюля» только у активного раздела */
.main-nav a { transition: color .2s ease, background-color .2s ease; }
.main-nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink) !important; }
.main-nav a[aria-current]:hover { background: transparent; color: var(--lake) !important; }
:root[data-theme="dark"] .main-nav a:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
:root[data-theme="dark"] .main-nav a[aria-current]:hover { background: transparent; }

/* ===== v6.1: счётчики в фильтре стека и подсказка «где применял» ===== */
.tech-filters button { display: inline-flex; align-items: center; gap: 8px; }
.tech-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 11px; font-weight: 600; color: var(--muted); }
.tech-filters button[aria-checked="true"] .tech-count { background: color-mix(in srgb, var(--paper) 25%, transparent); color: var(--paper); }
.tech-cloud li { cursor: default; outline-offset: 3px; }
.tech-cloud li:hover { border-color: color-mix(in srgb, var(--lake) 40%, var(--line)); }
.tech-note { transition: color .2s; }
