/* Nexcert — public site stylesheet (v4, October 2026)
   Navy hero / footer / CTA bands, light content sections. Inter (self-hosted) in fonts.css. */

/* Inter, self-hosted (variable 400–800). Inlined here instead of @import so the font request is not chained behind a second stylesheet. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/inter-latin-ext.woff2?v=2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/inter-latin.woff2?v=2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--navy: #082840;
	--navy-2: #0c3658;
	--navy-deep: #061c2e;
	--green: #10a048;
	--green-ink: #0b7a38;
	--green-bright: #22c55e;
	--green-soft: #e6f4ea;
	--glow: rgba(34,197,94,.3);
	--paper: #ffffff;
	--stone: #f4f6f8;
	--stone-2: #e9edf1;
	--line: #e3e8ee;
	--line-strong: #c9d2db;
	--ink: #0f1b26;
	--text-2: #3d4a56;
	--muted: #5f6c79;
	--faint: #8a97a5;
	--danger: #b42318;
	--danger-soft: #fdecea;

	--d-text: #eef3f7;
	--d-text-2: #b6c2cd;
	--d-muted: #8ea0b0;
	--d-line: rgba(255,255,255,.1);
	--d-line-2: rgba(255,255,255,.2);
	--d-surface: rgba(255,255,255,.04);

	--font: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: 24px;
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--hdr-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 14px 34px -18px rgba(8,40,64,.28);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 93.75%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--green); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
strong { font-weight: 600; color: var(--ink); }
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.accent { color: var(--green-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cdeed8; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #04200f; padding: 8px 12px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Dark context */
.dark { background: var(--navy); color: var(--d-text-2); }
.dark h1, .dark h2, .dark h3, .dark h4, .dark strong { color: #fff; }
.dark a { color: #fff; text-decoration-color: var(--d-line-2); }
.dark .lead, .dark .muted { color: var(--d-text-2); }
:is(.dark, .closing, .cta-band) .eyebrow { color: var(--green-bright); }
.dark .accent { color: var(--green-bright); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; position: relative; }
.section-stone { background: var(--stone); }
.head { max-width: 760px; margin-bottom: 44px; }
.head p { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head-row > div { max-width: 720px; }
.head-row h2, .head h2 { margin-bottom: .35em; }
.head-row p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* Cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { border-color: rgba(16,160,72,.55); box-shadow: var(--shadow); transform: translateY(-2px); }
.dark .card { background: var(--d-surface); border-color: var(--d-line); }
.dark .card-link:hover { border-color: rgba(34,197,94,.5); box-shadow: 0 20px 50px -30px var(--glow); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 22px; border: 1px solid transparent; border-radius: 999px; font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn.btn-primary { background: var(--navy); color: #fff; }
.btn.btn-primary:hover { background: var(--navy-2); color: #fff; box-shadow: 0 10px 24px -12px rgba(8,40,64,.6); }
:is(.dark, .closing, .cta-band, .cookie) .btn.btn-primary { background: #fff; color: var(--navy); }
:is(.dark, .closing, .cta-band, .cookie) .btn.btn-primary:hover { background: #e8f0f7; color: var(--navy); box-shadow: 0 10px 30px -12px rgba(255,255,255,.35); }
.btn.btn-green { background: var(--green); color: #fff; }
.btn.btn-green:hover { background: var(--green-ink); color: #fff; box-shadow: 0 12px 30px -12px var(--glow); }
.btn.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn.btn-ghost:hover { border-color: var(--navy); background: var(--stone); }
:is(.dark, .closing, .cta-band, .cookie) .btn.btn-ghost { color: #fff; border-color: var(--d-line-2); }
:is(.dark, .closing, .cta-band, .cookie) .btn.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn .arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); }
.link-more::after { content: '→'; color: var(--green-ink); transition: transform .2s var(--ease); }
.link-more:hover::after { transform: translateX(4px); }
:is(.dark, .closing, .cta-band) .link-more { color: #fff; }
:is(.dark, .closing, .cta-band) .link-more::after { color: var(--green-bright); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text-2); text-decoration: none; background: #fff; }
.pill-green { border-color: #bfe3cb; background: var(--green-soft); color: var(--green-ink); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.dark .pill { background: rgba(255,255,255,.06); border-color: var(--d-line-2); color: #fff; }
.dark .pill-green { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.4); color: #8fe6ad; }

/* ---------- Header (white bar, normal logo) ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 32px; height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav a:hover { color: var(--navy); background: var(--stone); }
.nav a.is-current { color: var(--navy); font-weight: 600; }
.nav a.is-current::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--green); }
.hdr-side { display: flex; align-items: center; gap: 14px; }
.hdr-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy); white-space: nowrap; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.hdr-phone:hover { border-color: var(--navy); background: var(--stone); }
.hdr-phone svg { width: 16px; height: 16px; stroke: var(--green-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hdr .btn { min-height: 42px; padding: 10px 20px; font-size: .95rem; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav .nav-contact, .nav .nav-phone { display: none; }

/* ---------- Hero (home, light, left-aligned, portrait on the right) ---------- */
.hero { position: relative; padding: 64px 0 72px; background: #fff; }
.hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 .45em; max-width: 13em; }
.hero h1 .accent { color: var(--green-ink); }
.hero .lead { margin: 0 0 32px; max-width: 34em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.hero-meta span::before { content: '\2713'; color: var(--green-ink); margin-right: 8px; font-weight: 700; }
.hero-photo { position: relative; margin: 0; padding: 0 0 24px 24px; }
.hero-photo::before { content: ''; position: absolute; left: 0; top: 24px; right: 24px; bottom: 0; background: var(--navy); border-radius: var(--r-lg); }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -32px rgba(8,40,64,.5); }
.hero-photo figcaption { position: absolute; left: 44px; bottom: 44px; right: 24px; background: rgba(255,255,255,.96); border-radius: 12px; padding: 12px 16px; font-size: .9rem; color: var(--muted); box-shadow: var(--shadow); }
.hero-photo figcaption strong { display: block; color: var(--navy); font-size: .95rem; }

/* Diagram section (light): how the tools connect */
.diagram-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; align-items: end; margin-bottom: 32px; }
.diagram-head h2 { margin: 0; }
.diagram-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* Product frame: the animated workflow (light theme) */
.frame { position: relative; margin: 0 auto; }
.frame-in { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); background: var(--stone); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.frame-bar .title { margin-left: 8px; }
.frame-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--green-ink); font-weight: 600; }
.frame-bar .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.flow { display: block; width: 100%; height: auto; font-family: var(--font); }
.flow .edge { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow .edge-flow { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 3 14; stroke-linecap: round; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -34; } }
.flow .arrow { fill: var(--line-strong); }
.flow .node rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1.2; }
.flow .node text { fill: var(--navy); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.flow .node .sub { fill: var(--muted); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; }
.flow .node .ic { fill: none; stroke: var(--green-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow .node.hub rect { fill: var(--navy); stroke: var(--navy); }
.flow .node.hub text { fill: #fff; }
.flow .node.hub .sub { fill: #8fe6ad; }
.flow .node.hub .ic { stroke: var(--green-bright); }
.flow .lbl { fill: var(--muted); font-size: 11px; font-weight: 500; }
.flow .pulse { fill: var(--green); }
.frame-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.frame-foot div { padding: 14px 18px; font-size: .88rem; color: var(--muted); border-right: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.frame-foot div:last-child { border-right: 0; }
.frame-foot strong { color: var(--navy); font-weight: 600; }
.frame-foot svg { width: 16px; height: 16px; stroke: var(--green-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Inner page header (dark band) ---------- */
.page-head { position: relative; overflow: hidden; padding: 56px 0 64px; }
.page-head .wrap { position: relative; }
.page-head h1 { margin-bottom: .4em; max-width: 16em; }
.page-head .lead { margin-bottom: 0; }
.page-head .actions { margin-top: 28px; }
.page-head.with-photo .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.page-head.with-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--d-line-2); }
.crumbs { font-size: .9rem; color: var(--d-muted); margin: 0 0 22px; }
.crumbs a { color: var(--d-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span + span::before { content: '/'; margin: 0 8px; color: var(--d-line-2); }
.crumbs span:last-child { color: var(--d-text-2); }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts div { position: relative; padding: 26px 24px; text-align: left; }
.facts .fact-ic { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); }
.facts .fact-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.facts div:hover .fact-ic { background: var(--green); color: #fff; transition: background .25s var(--ease), color .25s var(--ease); }
.facts strong { padding-right: 56px; }
.facts strong { display: block; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); font-weight: 700; letter-spacing: -.04em; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.facts span { color: var(--muted); font-size: .95rem; }
.facts.pull { margin-top: -96px; position: relative; z-index: 2; }
.facts.pull div { box-shadow: var(--shadow); }
.dark .facts strong { color: #fff; }
.dark .facts span { color: var(--d-text-2); }

/* ---------- Logo strip ---------- */
.logos { padding: 56px 0 24px; }
.logos-in { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 48px; align-items: center; }
.logos-kicker { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-ink, #0b7a37); font-weight: 700; margin-bottom: 10px; }
.logos-count { font-size: 1.05rem; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.logos-count strong { display: block; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; color: var(--ink, #082840); margin-bottom: 6px; font-weight: 800; }
.logo-rows { display: grid; gap: 22px; min-width: 0; padding-left: 40px; border-left: 1px solid var(--line); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; padding-right: 56px; animation: marquee 60s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.logo-rows:hover .marquee-track { animation-play-state: paused; }
.marquee-track a, .marquee-track span { display: flex; align-items: center; justify-content: center; height: 64px; flex: none; }
.marquee-track img { height: 40px; width: auto; max-width: 170px; object-fit: contain; transition: transform .3s var(--ease); }
.marquee-track img.is-light { filter: invert(1); }
.marquee-track a:hover img, .marquee-track span:hover img, .marquee-track a:focus-visible img { transform: scale(1.06); }
@media (max-width: 900px) {
	.logos-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.logo-rows { padding-left: 0; border-left: 0; }
	.logos-count strong { font-size: 2.1rem; }
	.marquee-track { gap: 40px; padding-right: 40px; }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); line-height: 1.3; letter-spacing: -.02em; font-weight: 500; max-width: 26em; color: var(--muted); margin: 0; }
.statement strong { color: var(--navy); font-weight: 650; }

/* ---------- Work / projects ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-card { overflow: hidden; display: flex; flex-direction: column; }
.work-card .shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); border-bottom: 1px solid var(--line); }
.work-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.work-card:hover .shot img { transform: scale(1.03); }
.work-card .shot .mark { position: absolute; left: 12px; bottom: 12px; height: 40px; padding: 6px 10px; background: rgba(255,255,255,.95); border-radius: 8px; display: flex; align-items: center; }
.work-card .shot .mark img { height: 100%; width: auto; max-width: 120px; object-fit: contain; transform: none; }
.work-logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 28px; background: var(--stone); border-bottom: 1px solid var(--line); }
.work-logo img { max-height: 76px; max-width: 70%; width: auto; height: auto; object-fit: contain; }
.work-logo .mono { font-size: 2rem; font-weight: 700; color: var(--navy); }
.work-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-body > .pill { align-self: flex-start; }
.work-body .meta { color: var(--muted); font-size: .9rem; margin: 0; }
.work-body h3, .work-body h2 { font-size: 1.12rem; margin: 0; }
.work-body .desc { color: var(--text-2); margin: 4px 0 0; font-size: .95rem; }
.work-body .link-more { margin-top: auto; padding-top: 10px; font-size: .95rem; }
.work-card.is-wide { grid-column: span 2; }
.work-card.is-wide .shot, .work-card.is-wide .work-logo { aspect-ratio: 16 / 7.4; }
.work-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; overflow: hidden; margin-bottom: 20px; }
.work-feature .shot { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.work-feature .shot img { height: 100%; }
.work-feature .work-logo { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--line); }
.work-feature .work-logo img { max-height: 116px; max-width: 58%; }
.work-feature .work-body { padding: 32px; justify-content: center; }
.work-feature h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.work-feature .desc { font-size: 1.02rem; margin-top: 10px; }

/* ---------- Service cards (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .is-wide { grid-column: span 4; }
.svc { position: relative; display: flex; flex-direction: column; min-height: 280px; padding: 26px; overflow: hidden; }
.svc .n { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--faint); }
.svc .ic { width: 40px; height: 40px; margin: 18px 0 auto; color: var(--green-ink); }
.svc .ic svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc h3, .svc h2 { font-size: 1.3rem; margin: 22px 0 .35em; }
.svc p { margin: 0; color: var(--text-2); font-size: .98rem; max-width: 34em; }
.svc .go { position: absolute; top: 22px; right: 22px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--navy); font-size: 1rem; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease); }
.svc:hover .go { background: var(--green); border-color: var(--green); color: #fff; transform: rotate(-45deg); }
.svc.is-wide { padding-right: 46%; }
.svc .photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); transition: transform .6s var(--ease); }
.svc:hover .photo { transform: scale(1.03); }

/* ---------- Problems ---------- */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.problem { padding: 26px 28px; }
.problem .tag { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.problem h3 { font-size: 1.15rem; margin-bottom: .5em; }
.problem p { margin: 0; color: var(--text-2); font-size: .98rem; }
.problem .fix { position: relative; margin-top: 14px; padding: 14px 0 0 30px; border-top: 1px solid var(--line); }
.problem .fix::before { content: '→'; position: absolute; left: 0; top: 14px; color: var(--green-ink); font-weight: 700; }
.problem .fix a { white-space: nowrap; }

/* ---------- Method split (photo + steps) ---------- */
.method-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.method-photo { margin: 0; position: sticky; top: calc(var(--hdr-h) + 24px); }
.method-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
.method-photo figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.method-split .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Timeline (process) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.timeline li { counter-increment: step; padding: 24px; position: relative; }
.timeline li::before { content: counter(step, decimal-leading-zero); display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--green-ink); padding: 4px 10px; border: 1px solid #bfe3cb; border-radius: 999px; background: var(--green-soft); margin-bottom: 18px; }
.timeline h3 { font-size: 1.1rem; margin: 0 0 .35em; }
.timeline p { margin: 0; color: var(--text-2); font-size: .96rem; }
.timeline .out { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.timeline .out strong { color: var(--navy); font-weight: 600; }
.timeline.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Numbered rows (method page) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 320px); gap: 24px 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; color: var(--green-ink); line-height: 1; }
.steps h3 { font-size: 1.3rem; margin-bottom: .4em; }
.steps p { margin: 0 0 .6em; color: var(--text-2); }
.steps .you { background: var(--stone); border-radius: var(--r-sm); padding: 16px 18px; font-size: .95rem; }
.steps .you strong { display: block; color: var(--navy); margin-bottom: 4px; }
.steps .you ul { margin: 0; padding-left: 1.1em; }

/* ---------- Lists in service pages ---------- */
.check { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.check li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--text-2); }
.check li::before { content: ''; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230b7a38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 12px no-repeat; }
.usecases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.usecase { padding: 24px 26px; }
.usecase h3 { font-size: 1.08rem; margin-bottom: .4em; }
.usecase p { margin: 0; color: var(--text-2); font-size: .96rem; }
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.audiences div { padding: 22px 24px; border-left: 3px solid var(--green); background: var(--stone); border-radius: 0 var(--r) var(--r) 0; }
.audiences h3 { font-size: 1.05rem; margin-bottom: .3em; }
.audiences p { margin: 0; color: var(--text-2); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 16px; align-items: center; padding: 20px 0; font-weight: 600; color: var(--navy); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23082840' stroke-width='1.6' stroke-linecap='round' d='M8 3v10M3 8h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease), background-color .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--green-soft); }
.faq .a { padding: 0 48px 22px 0; color: var(--text-2); }
.faq .a p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 12px; }

/* ---------- CTA band & closing ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: var(--d-text-2); border-radius: var(--r-lg); padding: 40px 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.cta-band > * { position: relative; }
.lede .cta-band { grid-template-columns: 1fr; padding: 32px; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--d-text-2); max-width: 44em; }
.closing { position: relative; background: var(--navy); color: var(--d-text-2); }
.closing-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.closing h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.9rem); margin-bottom: .4em; }
.closing p { color: var(--d-text-2); font-size: 1.15rem; max-width: 34em; margin: 0 0 32px; }
.closing .contact-lines { margin-top: 22px; color: var(--d-muted); font-size: .98rem; }
.closing .contact-lines a { text-decoration: none; color: #fff; font-weight: 500; }
.closing .contact-lines a:hover { color: var(--green-bright); }
.closing-photo { margin: 0; position: relative; padding: 0 24px 24px 0; }
.closing-photo::before { content: ''; position: absolute; right: 0; bottom: 0; left: 24px; top: 24px; background: var(--green); border-radius: var(--r-lg); opacity: .9; }
.closing-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- Formations ---------- */
.course-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.course-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.course-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.course-photo .badge { position: absolute; left: 16px; bottom: 16px; background: rgba(8,40,64,.88); color: #fff; border-color: rgba(34,197,94,.5); max-width: calc(100% - 32px); }
.course-list { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.course-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--navy); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.course-list a:hover { border-color: rgba(16,160,72,.55); box-shadow: var(--shadow); }
.course-list strong { display: block; font-size: 1.05rem; }
.course-list span { color: var(--muted); font-size: .92rem; }
.course-list .go { color: var(--green-ink); font-size: 1.2rem; }
.dark .course-list a { background: var(--d-surface); border-color: var(--d-line); color: #fff; }
.dark .course-list a:hover { border-color: rgba(34,197,94,.5); box-shadow: none; }
.dark .course-list span { color: var(--d-muted); }
.dark .course-list .go { color: var(--green-bright); }

/* ---------- Posts ---------- */
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; padding: 26px; min-height: 280px; }
.post-card .date { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-card .date .pill { margin-left: auto; }
.post-card h2, .post-card h3 { font-size: 1.18rem; margin: auto 0 .5em; padding-top: 28px; }
.post-card p { color: var(--text-2); margin: 0; font-size: .96rem; }
.post-card .read { margin-top: 18px; }
.related-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 24px; background: var(--stone); border-radius: var(--r); margin: 36px 0 0; }
.related-box .ic { width: 40px; height: 40px; color: var(--green-ink); }
.related-box .ic svg { width: 40px; height: 40px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.related-box p { margin: 0; font-size: .95rem; color: var(--muted); }
.related-box strong { color: var(--navy); display: block; }

/* ---------- Lede / story ---------- */
.lede { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.lede figure { margin: 0; position: sticky; top: calc(var(--hdr-h) + 24px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.lede img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lede figcaption { font-size: .85rem; color: var(--muted); padding: 10px 14px; background: var(--stone); }
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.project-side { position: sticky; top: calc(var(--hdr-h) + 24px); }
.project-shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 16px; }
.project-shot img { width: 100%; display: block; }
.project-shot figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 14px; background: var(--stone); font-size: .85rem; color: var(--muted); }
.project-shot figcaption a { text-decoration: none; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.project-logo { display: flex; align-items: center; justify-content: center; height: 200px; padding: 28px; background: var(--stone); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.project-logo img { max-height: 90px; max-width: 70%; width: auto; height: auto; object-fit: contain; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; padding: 6px 0; }
.meta-grid > div { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.meta-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.meta-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.meta-grid dt { font-size: .82rem; color: var(--muted); margin-bottom: 2px; }
.meta-grid dd { margin: 0; font-weight: 500; color: var(--navy); }
.meta-grid .socials a { margin-right: 12px; text-decoration: none; font-weight: 500; }
.status-dot::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }
.status-dot.done::before { background: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 32px 0; align-items: start; }
.gallery img { border-radius: 12px; width: 100%; border: 1px solid var(--line); }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green-ink); }
.prose img { border-radius: var(--r); margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 3px solid var(--green); background: var(--stone); border-radius: 0 12px 12px 0; color: var(--navy); font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--navy); font-weight: 600; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Article */
/* Article: split hero (copy left, visual right over a navy/green block), then TOC left + text right */
.article-hero { position: relative; overflow: hidden; padding: 48px 0 0; }
.article-hero .wrap { position: relative; }
.article-hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.article-hero-copy { padding-bottom: 56px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.article-tags .pill { text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.article-hero h1 { max-width: 15em; font-size: clamp(1.85rem, 1.2rem + 2.1vw, 3rem); }
.article-hero .lead { margin-bottom: 24px; }
.article-meta { color: var(--d-muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 0; }
.article-meta span + span::before { content: '·'; margin: 0 10px; color: var(--d-line-2); }
.article-hero-visual { margin: 0; position: relative; align-self: end; padding: 0 0 0 24px; }
.article-hero-visual::before { content: ''; position: absolute; left: 0; top: 24px; right: -24px; bottom: -24px; background: var(--green); border-radius: var(--r-lg); opacity: .9; }
.article-hero-visual img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.article-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px 72px; align-items: start; padding-top: 64px; padding-bottom: 24px; }
.article-side { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 16px; }
.toc { padding: 22px 24px; border-left: 3px solid var(--navy); }
.toc-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 8px; padding: 10px 0; text-decoration: none; color: var(--text-2); font-size: .95rem; font-weight: 500; line-height: 1.35; transition: color .2s var(--ease); }
.toc a .n { color: var(--green-ink); font-weight: 700; font-size: .85rem; letter-spacing: .04em; padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--navy); }
.toc a.is-active { font-weight: 600; }
.toc-cta { padding: 22px 24px; }
.toc-cta p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.toc-cta strong { display: block; color: var(--navy); margin-bottom: 4px; }
.article-main { min-width: 0; max-width: 760px; }
.article-main .prose { max-width: none; font-size: 1.1rem; }
.article-main .prose h2 { scroll-margin-top: calc(var(--hdr-h) + 24px); }
.article-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.article-foot .share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-foot .share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; }
.article-foot .share a:hover { border-color: var(--navy); }
.tags a { display: inline-flex; align-items: center; min-height: 40px; }
.tags a { margin-right: 10px; text-decoration: none; color: var(--text-2); }
.tags a::before { content: '#'; color: var(--green-ink); }

/* ---------- Filters / chips / pagination ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .93rem; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.filters a:hover { color: var(--navy); border-color: var(--navy); }
.filters a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: .93rem; color: var(--text-2); background: #fff; transition: border-color .2s var(--ease), color .2s var(--ease); }
.chips a:hover { color: var(--navy); border-color: var(--navy); }
.empty { padding: 32px 0 8px; color: var(--text-2); max-width: 40em; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.pagination a, .pagination .page-current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 500; color: var(--text-2); }
.pagination a:hover { color: var(--navy); border-color: var(--navy); }
.pagination .page-current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.form-card { padding: 32px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 7px; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: 6px; }
.field .req { color: var(--green-ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8,40,64,.14); }
textarea.input { min-height: 160px; resize: vertical; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23082840' stroke-width='1.5' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 24px; border: 1px solid; }
.notice-error { background: var(--danger-soft); border-color: #f1b5ad; color: var(--danger); }
.notice-error p { margin: 0 0 .3em; }
.notice-success { background: var(--green-soft); border-color: #bfe3cb; color: var(--navy); }
.notice-success h3 { margin-bottom: .3em; }
.notice-success p { margin: 0; }
.contact-aside .block { padding: 22px 24px; }
.contact-aside .block + .block { margin-top: 12px; }
.contact-aside h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-aside p { margin-bottom: .6em; }
.contact-aside address { font-style: normal; margin: 0; }
.contact-aside a { text-decoration: none; font-weight: 500; }
.contact-aside a:hover { color: var(--green-ink); }
.contact-aside .photo { border-radius: var(--r); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.contact-aside .photo img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: ns; display: grid; gap: 14px; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 44px; font-size: .96rem; color: var(--text-2); }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.next-steps strong { display: block; color: var(--navy); }

/* ---------- About ---------- */
.story-photos { display: grid; gap: 12px; position: sticky; top: calc(var(--hdr-h) + 24px); }
.story-photos img { width: 100%; border-radius: var(--r); object-fit: cover; border: 1px solid var(--line); }
.story-photos img:first-child, .story-photos > .nx-pic:first-child > img { aspect-ratio: 4 / 3; }
.nx-pic { display: contents; }
.story-photos img:nth-child(2) { aspect-ratio: 16 / 9; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.values div { padding: 26px 24px; }
.values .n { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--green-ink); margin-bottom: 18px; display: block; }
.values h3 { font-size: 1.08rem; margin-bottom: .35em; }
.values p { margin: 0; color: var(--text-2); font-size: .96rem; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team > div { padding: 14px 14px 20px; }
.team img, .team .avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--stone-2); margin-bottom: 14px; }
.team h3 { font-size: 1.02rem; margin: 0 6px .1em; }
.team p { margin: 0 6px; color: var(--muted); font-size: .92rem; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.partner-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partner-logos span { display: flex; align-items: center; justify-content: center; height: 150px; padding: 24px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.partner-logos img { max-height: 64px; width: auto; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quotes blockquote { margin: 0; padding: 28px; font-size: 1.08rem; color: var(--navy); }
.quotes cite { display: block; margin-top: 16px; font-style: normal; font-size: .92rem; color: var(--muted); }

/* ---------- Footer (navy, white logo) ---------- */
.ftr { background: var(--navy-deep); color: var(--d-text-2); padding: 64px 0 24px; font-size: .95rem; }
.ftr a { color: var(--d-text-2); text-decoration: none; transition: color .2s var(--ease); }
.ftr a:hover { color: #fff; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.ftr-brand img { height: 40px; width: auto; margin-bottom: 20px; }
.ftr-brand p { max-width: 28em; margin: 0 0 20px; color: var(--d-muted); }
.ftr-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ftr-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--d-line-2); border-radius: 50%; color: #fff; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.ftr-social a:hover, .ftr-social a:focus-visible { border-color: var(--green-bright); background: var(--green-bright); color: #062014; }
.ftr h3 { color: var(--green-bright); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 10px; }
.ftr address { font-style: normal; line-height: 1.7; }
.ftr address a { color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--d-line); font-size: .88rem; color: var(--d-muted); }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 0 22px; }
.ftr-legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Cookie notice ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 420px; background: var(--navy); color: var(--d-text-2); border: 1px solid var(--d-line-2); border-radius: var(--r); padding: 20px 22px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.8); font-size: .93rem; }
.cookie p { margin: 0 0 14px; }
.cookie a { color: #fff; }
.cookie .actions { gap: 8px; }
.cookie .btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.cookie[hidden] { display: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.hdr-phone { display: none; }
	.steps li { grid-template-columns: 56px minmax(0, 1fr); }
	.steps .you { grid-column: 2; }
}
@media (max-width: 960px) {
	.bento > *, .bento > .is-wide { grid-column: span 3; }
	.svc.is-wide { padding-right: 26px; }
	.svc .photo { display: none; }
	.work-feature, .course-band, .story, .lede, .contact-grid, .partner, .page-head.with-photo .wrap, .article-hero-in, .article-layout, .hero-in, .diagram-head, .method-split, .closing-in { grid-template-columns: 1fr; gap: 32px; }
	.hero-photo { max-width: 420px; }
	.method-photo { position: static; }
	.closing-photo { max-width: 360px; }
	.article-hero::before { display: none; }
	.article-hero-copy { padding-bottom: 8px; }
	.article-hero-visual { padding: 0; margin-bottom: 40px; }
	.article-hero-visual::before { display: none; }
	.article-hero-visual img { aspect-ratio: 16 / 9; }
	.article-side { position: static; }
	.work-feature { gap: 0; }
	.work-feature .shot, .work-feature .work-logo { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16 / 9; }
	.work-grid, .post-cards, .quotes, .values, .team, .timeline, .problems, .usecases, .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.work-card.is-wide { grid-column: span 2; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.story-photos { position: static; grid-template-columns: 1fr 1fr; }
	.project-side { position: static; }
	.lede figure { position: static; }
	.frame-foot { grid-template-columns: 1fr; }
	.frame-foot div { border-right: 0; border-bottom: 1px solid var(--d-line); }
	.frame-foot div:last-child { border-bottom: 0; }
	.cta-band { grid-template-columns: 1fr; padding: 32px; }
	.page-head.with-photo img { aspect-ratio: 16 / 9; }
}
@media (max-width: 860px) {
	:root { --hdr-h: 64px; }
	.brand img { height: 36px; }
	.nav-toggle { display: flex; }
	.hdr-side .btn, .hdr-phone { display: none; }
	.nav { position: fixed; top: var(--hdr-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px var(--gutter) 24px; overflow-y: auto; display: none; border-top: 1px solid var(--line); }
	.nav.is-open { display: flex; }
	.nav a { padding: 16px 0; font-size: 1.25rem; font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--navy); background: none; }
	.nav a.is-current { color: var(--green-ink); }
	.nav a.is-current::after { display: none; }
	.nav .nav-contact { display: inline-flex; justify-content: center; margin-top: 20px; border-bottom: 0; padding: 14px 18px; font-size: 1.02rem; color: #fff; background: var(--navy); border-radius: 999px; font-weight: 600; }
	.nav .nav-phone { display: block; border-bottom: 0; color: var(--muted); font-size: 1rem; font-weight: 500; padding-top: 18px; }
	body.nav-open { overflow: hidden; }
	.hero { padding-top: 40px; padding-bottom: 48px; }
	.method-split .timeline { grid-template-columns: 1fr; }
	.page-head { padding-top: 40px; padding-bottom: 48px; }
	.section { padding: 64px 0; }
	.closing-in { padding-top: 64px; padding-bottom: 64px; }
	.steps li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
	.steps li::before { font-size: 1.5rem; }
	.steps .you { grid-column: 1; }
}
@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 1rem; }
	.lead { font-size: 1.1rem; }
	.bento > *, .bento > .is-wide { grid-column: span 6; }
	.svc { min-height: 0; }
	.work-grid, .post-cards, .quotes, .values, .team, .facts, .ftr-grid, .field-row, .timeline, .timeline.cols-2, .partner-logos, .meta-grid, .problems, .usecases, .audiences { grid-template-columns: 1fr; }
	.work-card.is-wide { grid-column: auto; }
	.work-card.is-wide .shot, .work-card.is-wide .work-logo { aspect-ratio: 16 / 10; }
	.meta-grid > div:nth-child(odd) { border-right: 0; }
	.meta-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
	.meta-grid > div:last-child { border-bottom: 0; }
	.story-photos { grid-template-columns: 1fr; }
	.btn { width: 100%; }
	.actions .btn { width: auto; flex: 1 1 auto; }
	.form-card { padding: 20px; }
	.frame-bar .title { display: none; }
	.facts.pull { margin-top: -32px; }
	.cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}
/* ---------- Nexcert Academy sub-brand bar (training pages) ---------- */
.academy-bar { position: sticky; top: calc(var(--hdr-h) + 1px); z-index: 90; background: #f3f8f5; border-bottom: 1px solid var(--line); }
.academy-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.academy-logo { display: flex; align-items: center; flex: none; padding: 8px 0; }
.academy-logo img { height: 54px; width: auto; }
.academy-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 0; }
.academy-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; position: relative; }
.academy-nav a:hover { color: var(--navy); background: rgba(8, 40, 64, .05); }
.academy-nav a[aria-current="page"] { color: var(--navy); font-weight: 650; }
.academy-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--green); }
.academy-cta.btn { flex: none; width: auto; min-height: 42px; padding: 10px 18px; font-size: .92rem; }
#deroulement { scroll-margin-top: calc(var(--hdr-h) + 100px); }
@media (max-width: 420px) { .academy-cta .ac-long { display: none; } }
@media (max-width: 900px) {
	.academy-bar { position: static; }
	.academy-in { flex-wrap: wrap; gap: 0 16px; padding-top: 6px; }
	.academy-logo img { height: 46px; }
	.academy-cta.btn { width: auto; margin-left: auto; min-height: 40px; padding: 8px 14px; font-size: .88rem; }
	.academy-nav { order: 3; flex: 1 0 100%; margin: 0 -12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
	.academy-nav::-webkit-scrollbar { display: none; }
}
/* phone version of the home diagram */
.flow-m { display: none; list-style: none; margin: 0; padding: 18px 16px 6px; }
.flow-m-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.flow-m-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-m-row:has(.hub) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.flow-m-node { display: block; padding: 10px 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.flow-m-node strong { display: block; font-size: .95rem; color: var(--navy); }
.flow-m-node.hub { min-width: 60%; text-align: center; background: var(--navy); border-color: var(--navy); color: #8fe6ad; }
.flow-m-node.hub strong { color: #fff; }
.flow-m-edge { position: relative; margin: 0; padding: 10px 0 10px 50%; font-size: .78rem; color: var(--muted); }
.flow-m-edge::before { content: ''; position: absolute; left: calc(50% - 14px); top: 4px; bottom: 4px; border-left: 2px dashed var(--green); }
.flow-m-edge::after { content: ''; position: absolute; left: calc(50% - 19px); bottom: 2px; border: 6px solid transparent; border-top: 7px solid var(--green); border-bottom: 0; }
@media (max-width: 640px) {
	.frame .flow { display: none; }
	.flow-m { display: block; }
	.grid-2 { grid-template-columns: minmax(0, 1fr); }
	.related-box { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
	.related-box > a, .related-box .link-more { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.marquee-track { flex-wrap: wrap; width: auto; gap: 16px 32px; justify-content: flex-start; padding-right: 0; }
	.marquee-track > [aria-hidden="true"] { display: none; }
	.marquee { -webkit-mask-image: none; mask-image: none; }
}
@media print {
	.hdr, .ftr, .closing, .nav-toggle, .cookie { display: none; }
	body { background: #fff; color: #000; }
}
