/* Avesur Consulting — site styles
   Editorial layout: photography, serif headlines, open space. Colours come from the logo. */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0f1a2c;
  --bg-deep: #0a1322;
  --text: #e8eef6;
  --text-muted: #a3b4ca;
  --text-faint: #7488a3;
  --rule: rgba(163, 180, 202, 0.18);
  --accent: #4fb487;
  --accent-text: #74d3a7;
  --accent-ink: #08160f;
  --focus: #8fe3bd;
  --field: rgba(163, 180, 202, 0.45);
  --header-h: 76px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f5f0;
  --bg-deep: #eceae3;
  --text: #13213a;
  --text-muted: #45556d;
  --text-faint: #6a7a90;
  --rule: rgba(19, 33, 58, 0.16);
  --accent: #1c7350;
  --accent-text: #186446;
  --accent-ink: #ffffff;
  --focus: #1c7350;
  --field: rgba(19, 33, 58, 0.4);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h4 { margin: 0; }
p, ul, ol, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.85em; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  border-radius: 2px; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-text); }
.btn-ghost { color: var(--text); border-color: currentColor; background: transparent; }
.btn-ghost:hover { color: var(--accent-text); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.more { display: inline-block; margin-top: 22px; font-weight: 600; text-decoration: none; color: var(--accent-text); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more:hover { border-bottom-width: 2px; }

/* ---------- credentials line ---------- */
.cred { background: var(--bg-deep); color: var(--text-faint); font-size: 0.78rem; text-align: center; padding: 8px var(--gutter); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand img { height: 42px; width: auto; }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; padding: 0; display: flex; gap: 32px; }
.primary-nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.primary-nav a:hover { color: var(--text); }
.primary-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch button, .lang-switch a { text-decoration: none; background: none; border: 0; padding: 6px 6px; cursor: pointer; font: 500 0.82rem/1 var(--sans); color: var(--text-faint); letter-spacing: 0.02em; }
.lang-switch button:hover, .lang-switch a:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"], .lang-switch a[aria-current="true"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--text-muted); cursor: pointer; display: inline-flex; }
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }
.menu-btn { display: none; }
.nav-cta-mobile { display: none; }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: center; color: #eef3f9; isolation: isolate; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 22% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 19, 34, 0) 18%, rgba(10, 19, 34, 0.72) 48%, rgba(10, 19, 34, 0.92) 100%); }
.hero .wrap { display: flex; justify-content: flex-end; }
.hero-copy { width: min(560px, 100%); padding: 96px 0; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; }
.hero-lead { margin-top: 26px; font-size: 1.18rem; line-height: 1.6; color: #c9d5e3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero .btn-ghost { color: #eef3f9; }
.hero .btn-ghost:hover { color: var(--accent-text); }

/* ---------- generic section rhythm ---------- */
.band { padding: clamp(80px, 11vw, 150px) 0; }
.band-deep { background: var(--bg-deep); }
.kicker { font: 500 0.95rem/1.4 var(--sans); color: var(--accent-text); margin-bottom: 18px; }
.display { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 20ch; }
.lede { margin-top: 22px; font-size: 1.15rem; color: var(--text-muted); max-width: var(--measure); }

/* ---------- method sequence (the one animated moment) ---------- */
.method { list-style: none; padding: 0; margin-top: 64px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: m; }
.method li { counter-increment: m; position: relative; padding-top: 30px; }
.method li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rule); }
.method li::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); transition: width .5s ease-out; }
.method li span { display: block; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.2; padding-right: 16px; color: var(--text-faint); transition: color .5s; }
.method li small { display: block; font: 500 0.8rem/1 var(--mono); color: var(--text-faint); margin-bottom: 12px; }
.method.is-run li::after { width: 100%; }
.method.is-run li span { color: var(--text); }
.method.is-run li:nth-child(2)::after, .method.is-run li:nth-child(2) span { transition-delay: .35s; }
.method.is-run li:nth-child(3)::after, .method.is-run li:nth-child(3) span { transition-delay: .7s; }
.method.is-run li:nth-child(4)::after, .method.is-run li:nth-child(4) span { transition-delay: 1.05s; }
.method.is-run li:nth-child(5)::after, .method.is-run li:nth-child(5) span { transition-delay: 1.4s; }
.method.is-run li:nth-child(6)::after, .method.is-run li:nth-child(6) span { transition-delay: 1.75s; }

/* ---------- services as alternating photo stories (home) ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 560px; }
.story + .story { margin-top: clamp(56px, 7vw, 96px); }
.story figure { height: 100%; min-height: 420px; position: relative; overflow: hidden; }
.story figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.story:hover figure img { transform: scale(1.03); }
.story-text { padding: 40px clamp(32px, 6vw, 96px); max-width: 640px; }
.story:nth-child(even) figure { order: 2; }
.story:nth-child(even) .story-text { justify-self: end; }
.story-num { font: 500 0.85rem/1 var(--mono); color: var(--accent-text); }
.story h3 { margin-top: 16px; font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.story p { margin-top: 18px; color: var(--text-muted); font-size: 1.08rem; }

/* ---------- procurement pathways ---------- */
.paths { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.paths strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.paths span { display: block; margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- audiences ---------- */
.who { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; }
.who h3 { font-size: 1.45rem; }
.who p { margin-top: 10px; color: var(--text-muted); max-width: 46ch; }

/* ---------- closing call to action ---------- */
.closing { padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.closing h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 18ch; margin: 0 auto; }
.closing p { margin: 22px auto 0; color: var(--text-muted); font-size: 1.15rem; max-width: 54ch; }
.closing .btn { margin-top: 38px; }
.closing small { display: block; margin-top: 18px; color: var(--text-faint); font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); padding: 80px 0 36px; color: var(--text-muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr 1fr; gap: 48px; }
.footer-grid img { height: 38px; width: auto; margin-bottom: 18px; }
.footer-grid h2 { font: 600 0.95rem/1.3 var(--sans); color: var(--text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-blurb { max-width: 36ch; }
.footer-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; color: var(--text-faint); }
.footer-partner { flex-basis: 100%; }
.footer-partner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-partner a:hover { color: var(--text); }

/* ---------- inner page openings ---------- */
.opening { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.crumbs { font-size: 0.9rem; color: var(--text-faint); margin-bottom: 28px; }
.crumbs a { color: var(--text-faint); }
.opening h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 16ch; }
.opening .lede { font-size: 1.22rem; }
.photo-opening { position: relative; min-height: 64vh; display: flex; align-items: flex-end; color: #eef3f9; isolation: isolate; }
.photo-opening img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-opening::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 19, 34, 0.15) 30%, rgba(10, 19, 34, 0.9) 100%); }
.photo-opening .wrap { padding-bottom: clamp(48px, 7vw, 88px); }
.photo-opening .crumbs, .photo-opening .crumbs a { color: #c9d5e3; }
.photo-opening .lede { color: #c9d5e3; }

/* levels (services) */
.levels { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
.levels li { border-top: 2px solid var(--rule); padding-top: 22px; }
.levels li:last-child { border-top-style: dashed; }
.levels h3 { font-size: 1.35rem; }
.levels p { margin-top: 10px; color: var(--text-muted); font-size: 0.98rem; }

/* sticky service tabs */
.subnav { position: sticky; top: var(--header-h); z-index: 60; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.subnav ul { list-style: none; padding: 0; display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 18px 0 16px; color: var(--text-faint); text-decoration: none; font-weight: 500; font-size: 0.94rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--text); border-bottom-color: var(--accent); }

/* service chapters */
.chapter { padding-bottom: clamp(80px, 10vw, 130px); }
.chapter-photo { position: relative; height: clamp(300px, 46vh, 520px); display: flex; align-items: flex-end; color: #eef3f9; isolation: isolate; margin-bottom: clamp(48px, 6vw, 80px); }
.chapter-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.chapter-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 19, 34, 0) 35%, rgba(10, 19, 34, 0.85) 100%); }
.chapter-photo .wrap { padding-bottom: 40px; }
.chapter-photo .story-num { color: #9be2c1; }
.chapter-photo h2 { margin-top: 12px; font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 18ch; }
.chapter-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.chapter-body .intro p { font-size: 1.2rem; line-height: 1.6; color: var(--text); font-family: var(--serif); }
.chapter-body .intro .btn { margin-top: 32px; }
.scope { display: grid; gap: 28px; }
.scope dt { font: 600 0.9rem/1.3 var(--sans); color: var(--accent-text); }
.scope dd { margin-top: 6px; color: var(--text-muted); }
.scope .not dt { color: var(--text-faint); }
.scope .not dd { color: var(--text-faint); font-size: 0.96rem; }
.chapter-note { margin-top: 28px; color: var(--text-muted); font-size: 0.95rem; }
.chapter-note strong { color: var(--text); }

/* specialized applications */
.apps { margin-top: 64px; border-top: 1px solid var(--rule); }
.apps summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 26px 0; font: 600 1.05rem/1.3 var(--sans); }
.apps summary::-webkit-details-marker { display: none; }
.apps summary .chev { width: 20px; height: 20px; color: var(--accent-text); transition: transform .25s; }
.apps[open] summary .chev { transform: rotate(180deg); }
.apps summary:hover { color: var(--accent-text); }
.apps-body { padding: 8px 0 12px; }
.apps-intro { color: var(--text-muted); max-width: var(--measure); margin-bottom: 36px; }
.apps-body .grid-2, .apps-body > div:not([class]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 64px; }
.apps-body .grid-2 + .grid-2, .apps-body > div:not([class]) > .grid-2 { margin-top: 48px; }
.apps-body > div:not([class]) > .grid-2 { grid-column: 1 / -1; }
.apps .card { padding: 0; background: none; border: 0; }
.apps .card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.apps .card h4 { font: 600 0.92rem/1.3 var(--sans); color: var(--accent-text); margin: 18px 0 8px; }
.apps .card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 10px; }
.apps .card ul { padding-left: 18px; color: var(--text-muted); font-size: 0.96rem; display: grid; gap: 6px; }
.apps .card ul li::marker { color: var(--accent); }
.apps .card strong { color: var(--text); font-weight: 600; }
.apps .card > span:first-child { display: block; font: 500 0.82rem/1 var(--mono); color: var(--accent-text); margin-bottom: 12px; }
.apps .card:has(> h3[data-i18n="c4_h3"]), .apps .card:has(> h3[data-i18n="cusma_title"]) { grid-column: 1 / -1; }
.apps .card .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 48px; }

/* capabilities (service 5) */
.caps { list-style: none; padding: 0; margin-top: 18px; columns: 3 220px; column-gap: 48px; }
.caps li { padding: 8px 0; color: var(--text-muted); break-inside: avoid; }
.caps li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 12px; vertical-align: middle; }
.caps-title { margin-top: 64px; font: 600 1.05rem/1.3 var(--sans); }

/* boundaries */
.nots { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 56px; }
.nots li { color: var(--text-muted); }
.nots strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--text); margin-bottom: 8px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); }
.about-grid h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.about-grid p { margin-top: 18px; color: var(--text-muted); }
.quals { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px 64px; }
.quals li { color: var(--text-muted); }
.quals strong { display: block; color: var(--text); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.steps { list-style: none; padding: 0; margin-top: 24px; counter-reset: s; display: grid; gap: 20px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; color: var(--text-muted); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--accent-text); }
.aside-h { font-size: 1.5rem; }
.aside-block { margin-top: 56px; }
.aside-block p { margin-top: 12px; color: var(--text-muted); }
.aside-block .email { display: inline-block; margin-top: 10px; font-family: var(--serif); font-size: 1.35rem; }
.form h2 { font-size: 1.9rem; margin-bottom: 8px; }
.field { margin-top: 30px; }
.field label { display: block; font: 600 0.9rem/1.3 var(--sans); color: var(--text-muted); }
.field .req { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; margin-top: 8px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--field); border-radius: 0;
  background: transparent; color: var(--text); font: 400 1.08rem/1.4 var(--sans); transition: border-color .15s;
}
.field select { cursor: pointer; }
.field select option { background: var(--bg); color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 11px; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #e0736b; }
.form .btn { margin-top: 40px; }
.form-note { margin-top: 16px; color: var(--text-faint); font-size: 0.88rem; max-width: 52ch; }
.form-status { margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--text); }
.form-status[hidden] { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .method { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .menu-btn { display: inline-flex; }
  .primary-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); padding: 16px var(--gutter) 28px; display: none; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.5rem; color: var(--text); border-bottom: 0; }
  .primary-nav a[aria-current="page"] { color: var(--accent-text); }
  .primary-nav .nav-cta-mobile { display: flex; margin-top: 20px; font-family: var(--sans); font-size: 1rem; color: var(--accent-ink); }
  .header-tools { margin-left: auto; gap: 10px; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero img { object-position: 30% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(10, 19, 34, 0.1) 0%, rgba(10, 19, 34, 0.55) 40%, rgba(10, 19, 34, 0.95) 100%); }
  .hero .wrap { justify-content: flex-start; }
  .hero-copy { padding: 220px 0 56px; }
  .story, .story:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .story figure, .story:nth-child(even) figure { order: 0; min-height: 0; height: auto; aspect-ratio: 3 / 2; }
  .story-text, .story:nth-child(even) .story-text { padding: 32px var(--gutter) 0; justify-self: start; }
  .who { grid-template-columns: 1fr; gap: 36px; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-body, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cred { display: none; }
  .brand img { height: 34px; }
  .lang-switch button, .lang-switch a { padding: 6px 4px; }
  .hero-actions .btn { width: 100%; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paths, .levels, .nots { grid-template-columns: 1fr; gap: 32px; }
  .subnav ul { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .closing .btn, .form .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
}
@media print {
  .site-header, .cred, .subnav, .closing, .site-footer, .form { display: none; }
}
.subnav ul { position: relative; }

/* how we work */
.phases { list-style: none; padding: 0; margin-top: 56px; }
.phases li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0 32px; padding: 36px 0; border-top: 1px solid var(--rule); }
.phases li:last-child { border-bottom: 1px solid var(--rule); }
.phases .n { font: 500 0.9rem/1 var(--mono); color: var(--accent-text); padding-top: 10px; }
.phases h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.phases p { margin-top: 10px; color: var(--text-muted); max-width: 72ch; }
.phases .out { margin-top: 14px; font-size: 0.97rem; color: var(--text); }
.phases .out b { color: var(--accent-text); font-weight: 600; margin-right: 6px; }
.example { margin-top: 64px; max-width: 900px; border-left: 2px solid var(--accent); padding-left: 32px; }
.example h3 { font-size: 1.35rem; margin-bottom: 24px; }
.after-p { margin-top: 40px; color: var(--text-muted); max-width: var(--measure); }
.fw { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 64px; }
.fw h3 { font-size: 1.3rem; margin-bottom: 14px; }
.fw ul { padding-left: 18px; color: var(--text-muted); display: grid; gap: 8px; font-size: 0.97rem; }
.fw li::marker { color: var(--accent); }
.fw strong { color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  .phases li { grid-template-columns: 1fr; }
  .phases .n { padding: 0 0 10px; }
  .example { padding-left: 20px; }
}

.method.method-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .method.method-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .method.method-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }

.lifecycle + .apps { margin-top: 0; }
.lc-fw { color: var(--text-muted); max-width: 80ch; }
.lc-fw strong { color: var(--text); font-weight: 600; }
.lifecycle .phases { margin-top: 24px; }
.lifecycle .phases li { padding: 22px 0; }
.lifecycle .phases h3 { font-size: 1.15rem; }
