/* ==========================================================================
   MENA Engineering Solutions: public site styles
   Design idea: an engineering drawing. Indigo sheet, blueprint grid,
   process-flow lines, ruled tables, one amber "sun".
   Logical properties are used throughout so right-to-left languages work.
   ========================================================================== */

:root {
    --indigo-900: #0b1930;
    --indigo-800: #13294b;
    --indigo-700: #1c3a6a;
    --steel: #2f5d9b;
    --link: #1f4f8f;
    --amber: #e8a33d;
    --amber-600: #d18f26;
    --paper: #eef3f9;
    --paper-2: #e3ebf5;
    --ink: #101b2d;
    --muted: #55637a;
    --line: #d3ddea;
    --white: #fff;
    --green: #1b8f7a;
    --danger: #b3261e;
    --radius: 3px;
    --container: 1180px;
    --header-h: 72px;
    --font: "Avenir Next", "Segoe UI Variable", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Noto Sans Arabic", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--indigo-800); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.15; letter-spacing: -0.015em; color: var(--indigo-800); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.005em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
:lang(ja) body, :lang(ja) { line-height: 1.8; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100; background: var(--amber); color: var(--indigo-900); padding: 0.7rem 1.1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.narrow { max-width: 62ch; }

/* ---------- icons ---------- */
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-lg { width: 2rem; height: 2rem; color: var(--steel); }
.icon-xl { width: 3rem; height: 3rem; color: var(--steel); }
.icon-check { width: 1.1rem; height: 1.1rem; margin-top: 0.3rem; color: var(--green); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.35rem; border: 2px solid transparent; border-radius: var(--radius);
    font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--amber); color: var(--indigo-900); }
.btn-primary:hover { background: var(--amber-600); color: var(--indigo-900); }
.btn-outline { border-color: var(--indigo-800); color: var(--indigo-800); background: transparent; }
.btn-outline:hover { background: var(--indigo-800); color: var(--white); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--indigo-800); border-color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8c1d17; color: var(--white); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.9375rem; white-space: nowrap; }
.btn-large { padding: 0.95rem 1.7rem; font-size: 1.0625rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.text-link { font-weight: 650; text-decoration-thickness: 2px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; text-underline-offset: 0.2em; }
.link-button.danger { color: var(--danger); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--indigo-800); }
.brand img { display: block; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-parent { font-size: 0.78rem; color: var(--muted); }
.brand-light { color: var(--white); }
.brand-light .brand-parent { color: #aebfd8; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--indigo-800); cursor: pointer; }
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.js .nav-toggle { display: inline-flex; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav { flex-basis: 100%; padding-block: 0.5rem 1rem; }
.js .site-nav { display: none; }
.js .nav-open .site-nav { display: block; }
.nav-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.nav-list a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-list a:hover { color: var(--steel); }
.nav-list a[aria-current="page"] { color: var(--steel); box-shadow: inset 3px 0 0 var(--amber); padding-inline-start: 0.8rem; }
[dir="rtl"] .nav-list a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--amber); }
.nav-extras { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.lang-switch { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: block; padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.875rem; text-decoration: none; color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--indigo-800); border-color: var(--indigo-800); color: var(--white); }

@media (min-width: 1180px) {
    .header-inner { flex-wrap: nowrap; gap: 1.25rem; }
    .js .nav-toggle, .nav-toggle { display: none; }
    .site-nav, .js .site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 1rem; padding: 0; }
    .nav-extras { flex-wrap: nowrap; }
    .nav-list { display: flex; gap: 0.15rem; margin: 0; }
    .nav-list a { padding: 0.5rem 0.6rem; border: 0; font-size: 0.9375rem; position: relative; white-space: nowrap; }
    .nav-list a[aria-current="page"], [dir="rtl"] .nav-list a[aria-current="page"] { box-shadow: none; padding-inline-start: 0.6rem; }
    .nav-list a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 0.6rem; bottom: 0.05rem; height: 3px; background: var(--amber); }
}

/* ---------- flash messages ---------- */
.flash-wrap { padding-top: 1rem; }
.flash { margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); border-inline-start: 4px solid var(--steel); background: var(--paper); font-weight: 500; }
.flash-success { border-inline-start-color: var(--green); background: #e8f5f1; }
.flash-error { border-inline-start-color: var(--danger); background: #fdecea; }
.flash ul { margin: 0.4rem 0 0; }

/* ---------- hero (home) ---------- */
.hero, .page-hero { position: relative; color: var(--white); background: var(--indigo-800); overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(143, 176, 224, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 176, 224, 0.13) 1px, transparent 1px),
        linear-gradient(rgba(143, 176, 224, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 176, 224, 0.05) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
    mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero h1, .page-hero h1 { color: var(--white); }
.hero-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); align-items: center; }
.hero-text { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #d6e2f5; max-width: 38ch; margin-block: 1.2rem 2rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-figure { margin: 0; }
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; }
}

.schematic { display: block; width: 100%; height: auto; color: #cfe0ff; }
.sch-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sch-plant { fill: rgba(143, 176, 224, 0.1); }
.pipe { fill: none; stroke: #8fb0e0; stroke-width: 3; stroke-dasharray: 7 7; animation: pipe-flow 1.2s linear infinite; }
@keyframes pipe-flow { to { stroke-dashoffset: -14; } }
.sch-sun { fill: var(--amber); }
.sch-sun-ring { fill: none; stroke: var(--amber); stroke-opacity: 0.45; stroke-width: 1.5; }
.sch-dim path { fill: none; stroke: #8fb0e0; stroke-width: 1.2; }
.sch-dim path.sch-solid { fill: #8fb0e0; stroke: none; }
.sch-dim-text { fill: #b8cdee; font-size: 13px; }
.sch-name { fill: var(--white); font-size: 17px; font-weight: 650; }
.sch-sub { fill: #aebfd8; font-size: 13px; }

.title-block { display: grid; grid-template-columns: 1fr 1fr; margin: 1.25rem 0 0; border: 1px solid rgba(143, 176, 224, 0.55); }
.title-block > div { padding: 0.6rem 0.8rem; border-inline-end: 1px solid rgba(143, 176, 224, 0.4); border-bottom: 1px solid rgba(143, 176, 224, 0.4); }
.title-block > div:nth-child(2n) { border-inline-end: 0; }
.title-block > div:nth-child(n+3) { border-bottom: 0; }
.title-block dt { font-size: 0.75rem; color: #aebfd8; }
.title-block dd { margin: 0; font-weight: 600; font-size: 0.95rem; }

/* ---------- inner page hero ---------- */
.page-hero { padding-block: clamp(2.2rem, 6vw, 4.2rem); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 22ch; }
.page-hero-tagline { font-size: 1.2rem; font-weight: 600; color: var(--amber); margin-bottom: 0.6rem; }
.page-hero-text { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: #d6e2f5; max-width: 62ch; margin: 0.9rem 0 0; }
.breadcrumb { margin-bottom: 1.2rem; font-size: 0.875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; color: #aebfd8; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 0.4rem; opacity: 0.6; }
.breadcrumb a { color: #d6e2f5; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--paper); }
.band-dark { background: var(--indigo-800); color: #d6e2f5; }
.band-dark h2, .band-dark h3 { color: var(--white); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head h2, .section-head h3 { margin-bottom: 0.4em; }
.section-lead { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-more { margin: 2.2rem 0 0; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--indigo-700); font-weight: 500; }
.band-dark .lead { color: #d6e2f5; }
.rule { display: block; width: 4.5rem; height: 9px; margin-bottom: 1rem; color: var(--steel); border-inline: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.rule-light { color: var(--amber); }
.group-title { margin-top: 2.4rem; font-size: 1.1rem; color: var(--steel); }
.chips-title { margin-top: 1.8rem; font-size: 1rem; color: var(--steel); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two-col { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
    .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .two-col { grid-template-columns: 1fr 1fr; }
}

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem); }
.panel > :last-child { margin-bottom: 0; }
.panel h3 { color: var(--indigo-800); }
.panel-note { color: var(--muted); }
.panel-subtitle { margin-top: 1.4rem; font-size: 1rem; color: var(--steel); }
.panel-quote { border-inline-start: 5px solid var(--amber); font-size: 1.2rem; line-height: 1.55; color: var(--indigo-700); font-weight: 500; }

/* ---------- lists and tags ---------- */
.checklist { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.checklist li { display: flex; gap: 0.65rem; padding: 0.28rem 0; break-inside: avoid; }
@media (min-width: 680px) { .checklist-two { columns: 2; column-gap: 2.5rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.6rem 0 1.1rem; padding: 0; }
.chips li { padding: 0.3rem 0.8rem; border: 1px solid var(--steel); border-radius: var(--radius); background: var(--white); font-weight: 550; font-size: 0.975rem; color: var(--indigo-800); }
.chips-plus { gap: 0.4rem 0; }
.chips-plus li { border: 0; background: none; padding: 0; font-size: 1.1rem; font-weight: 650; }
.chips-plus li:not(:last-child)::after { content: "+"; margin-inline: 0.7rem; color: var(--amber-600); font-weight: 700; }

/* ---------- ledger (ruled entries) ---------- */
.ledger { display: grid; gap: 0 3rem; margin-bottom: 1.5rem; }
@media (min-width: 760px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger-item { display: block; padding: 1.1rem 0 1.5rem; border-top: 2px solid var(--indigo-800); text-decoration: none; color: var(--ink); }
.ledger-title { display: block; font-size: 1.25rem; font-weight: 650; color: var(--indigo-800); margin-bottom: 0.35rem; }
.ledger-text { display: block; color: var(--muted); max-width: 52ch; }
.ledger-item:hover .ledger-title { color: var(--steel); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }

/* ---------- sheet grid (joined cells like a drawing schedule) ---------- */
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.sheet-grid-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sheet-grid-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sheet-cell { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--white); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.sheet-cell:hover { background: var(--paper); }
a.sheet-cell:hover .sheet-title { color: var(--steel); }
.sheet-title { font-weight: 650; font-size: 1.1rem; color: var(--indigo-800); line-height: 1.25; }
.sheet-text { color: var(--muted); font-size: 0.975rem; }
.sheet-link { margin-top: auto; padding-top: 0.5rem; font-weight: 650; color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; }
.section-alt .sheet-grid { border-color: var(--line); }

/* ---------- flow component ---------- */
.flow { list-style: none; margin: 0; padding: 0; }
.flow-title { display: block; font-weight: 650; color: var(--indigo-800); line-height: 1.3; }
.flow-text { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.flow-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--indigo-800); color: var(--white); font-weight: 650; font-size: 0.875rem; }

/* boxed steps with connectors */
.flow-boxes { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.flow-boxes .flow-step { position: relative; padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: var(--radius); }
.flow-boxes:not(.flow-numbered-boxes) .flow-step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 50%; bottom: -1.1rem; width: 0; height: 0; border-top: 8px solid var(--steel); border-inline: 6px solid transparent; transform: translateX(-50%); }
@media (min-width: 640px) { .flow-boxes { grid-template-columns: repeat(2, 1fr); gap: 1rem; } .flow-boxes:not(.flow-numbered-boxes) .flow-step::after { display: none; } }
@media (min-width: 640px) { .flow-numbered-boxes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
    .flow-boxes { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.2rem; }
    .flow-numbered-boxes { gap: 1rem; grid-template-columns: repeat(4, 1fr); }
    .flow-boxes:not(.flow-numbered-boxes) .flow-step:not(:last-child)::after {
        display: block; inset-inline-start: auto; inset-inline-end: -1.65rem; bottom: auto; top: calc(50% - 6px);
        border: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--steel); transform: none;
    }
    [dir="rtl"] .flow-boxes:not(.flow-numbered-boxes) .flow-step:not(:last-child)::after { border-left: 0; border-right: 10px solid var(--steel); }
}
.flow-numbered-boxes .flow-step { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; align-items: center; }
.flow-result .flow-step:last-child { border-top-color: var(--amber); background: #fff8ea; }
.flow-result-label { margin: 1.1rem 0 0; font-size: 1.15rem; font-weight: 650; color: var(--indigo-800); }
.flow-result-label::before { content: "="; display: inline-block; margin-inline-end: 0.6rem; color: var(--amber-600); font-weight: 700; }

/* pipe-style vertical flow */
.flow-vertical { position: relative; padding-inline-start: 2.1rem; }
.flow-vertical::before { content: ""; position: absolute; inset-inline-start: 0.55rem; top: 0.9rem; bottom: 0.9rem; border-inline-start: 2px solid var(--steel); }
.flow-vertical .flow-step { position: relative; padding: 0.45rem 0; }
.flow-vertical .flow-step::before { content: ""; position: absolute; inset-inline-start: -1.95rem; top: 0.95rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--white); border: 2px solid var(--steel); }
.flow-vertical .flow-num { display: none; }

/* numbered timeline */
.flow-timeline { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.flow-timeline .flow-step { position: relative; padding-top: 1.7rem; border-top: 2px solid var(--steel); }
.flow-timeline .flow-num { position: absolute; top: -1rem; inset-inline-start: 0; }

/* light variants on dark bands */
.flow-light .flow-title { color: var(--white); }
.flow-light .flow-text { color: #c6d4ea; }
.flow-light.flow-vertical::before { border-color: rgba(255, 255, 255, 0.4); }
.flow-light.flow-vertical .flow-step::before { background: var(--indigo-800); border-color: var(--amber); }
.flow-light.flow-timeline .flow-step { border-top-color: rgba(255, 255, 255, 0.4); }
.flow-light .flow-num { background: var(--amber); color: var(--indigo-900); }

/* ---------- misc blocks ---------- */
.connect-grid, .experience-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .connect-grid, .experience-grid { grid-template-columns: 1fr 1fr; } }
.why-grid { display: grid; gap: 0 3rem; }
@media (min-width: 760px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { padding: 1rem 0 1.4rem; border-top: 1px solid var(--indigo-800); }
.why-item h3 { margin-bottom: 0.3em; }
.why-item p { color: var(--muted); margin: 0; }
.markets-notes h3 { margin-top: 0; font-size: 1.05rem; color: var(--steel); }
.promise-list { display: grid; gap: 1.4rem; }
.promise-item { display: flex; gap: 1rem; align-items: flex-start; }
.promise-item h3 { margin-bottom: 0.2em; }
.promise-item p { margin: 0; color: var(--muted); }
.localization-teaser .flow-vertical { margin-top: 0.5rem; }

.industry-list { display: grid; }
.industry-row { display: grid; gap: 0.8rem 3rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.industry-row:last-child { border-bottom: 1px solid var(--line); }
.industry-row header { display: flex; align-items: center; gap: 0.9rem; }
.industry-row h2 { margin: 0; font-size: 1.5rem; }
@media (min-width: 860px) { .industry-row { grid-template-columns: minmax(220px, 0.8fr) 1.6fr; align-items: start; } }

.example-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .example-grid { grid-template-columns: 1fr 1fr; } }
.example-card { padding: 1.6rem; border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: var(--radius); background: var(--white); }
.example-label { font-weight: 650; color: var(--steel); margin-bottom: 0.3rem; }
.example-result { margin: 0.8rem 0 0; padding-top: 0.8rem; border-top: 1px dashed var(--line); color: var(--muted); }

.detail-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .detail-layout { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 4rem; align-items: start; } .detail-side { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.detail-block { margin-bottom: 2.4rem; }
.detail-block h2 { font-size: 1.5rem; }
.detail-note { padding: 1.1rem 1.3rem; border-inline-start: 5px solid var(--amber); background: var(--paper); font-size: 1.1rem; color: var(--indigo-700); font-weight: 500; }
.side-box { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 1.25rem; }
.side-box h2 { font-size: 1.1rem; margin-bottom: 0.7em; }
.side-box-cta { background: var(--indigo-800); border-color: var(--indigo-800); color: #d6e2f5; }
.side-box-cta h2 { color: var(--white); font-size: 1.25rem; }
.side-box-cta .icon-lg { color: var(--amber); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: block; padding: 0.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 550; }
.side-links li:last-child a { border-bottom: 0; }
.side-note { color: var(--muted); font-size: 0.95rem; margin: 0.8rem 0 0; }

.info-list { margin: 0; }
.info-list > div { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 650; color: var(--steel); }
.info-list dt .icon { width: 1.05rem; height: 1.05rem; }
.info-list dd { margin: 0.15rem 0 0; overflow-wrap: anywhere; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.article-layout { display: block; }

/* ---------- cards: insights and projects ---------- */
.insight-grid, .project-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.insight-card, .project-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--steel); border-radius: var(--radius); }
.insight-card h3, .project-card h2 { font-size: 1.25rem; margin: 0; }
.insight-card h3 a, .project-card h2 a { color: var(--indigo-800); text-decoration: none; }
.insight-card h3 a:hover, .project-card h2 a:hover { color: var(--steel); text-decoration: underline; }
.insight-card p, .project-card p { margin: 0; color: var(--muted); }
.insight-card .text-link, .project-card .text-link { margin-top: auto; padding-top: 0.5rem; }
.insight-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; font-size: 0.85rem; color: var(--muted); }
.insight-cat { padding: 0.1rem 0.55rem; border: 1px solid var(--steel); border-radius: var(--radius); color: var(--indigo-800); font-weight: 600; }
.project-status { font-size: 0.85rem; font-weight: 650; color: var(--green); }
.project-status-ongoing { color: var(--amber-600); }
.project-facts { display: grid; gap: 0.2rem; margin: 0.4rem 0 0; font-size: 0.925rem; }
.project-facts > div { display: flex; gap: 0.5rem; }
.project-facts dt { color: var(--muted); min-width: 5.5rem; }
.project-facts dd { margin: 0; font-weight: 550; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-bar a { padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 550; background: var(--white); }
.filter-bar a:hover { border-color: var(--steel); }
.filter-bar a[aria-current="true"] { background: var(--indigo-800); border-color: var(--indigo-800); color: var(--white); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; }
.page-link { min-width: 2.4rem; padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; text-decoration: none; color: var(--ink); background: var(--white); font-weight: 550; }
.page-link:hover { border-color: var(--steel); }
.page-link[aria-current="page"] { background: var(--indigo-800); border-color: var(--indigo-800); color: var(--white); }
.page-gap { padding: 0 0.3rem; color: var(--muted); }
.pagination-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }
.empty-state { max-width: 34rem; margin: 1rem auto; text-align: center; }
.empty-state .icon-xl { margin-inline: auto; margin-bottom: 0.8rem; }
.debug { text-align: start; overflow: auto; padding: 1rem; background: var(--paper); border-radius: var(--radius); font-size: 0.85rem; }

/* ---------- forms ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 4rem; align-items: start; } }
.form { display: grid; gap: 1.1rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.req, .opt { font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"],
.field input[type="password"], .field input[type="datetime-local"], .field select, .field textarea {
    width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #8fa1ba; border-radius: var(--radius); background: var(--white);
    font: inherit; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(47, 93, 155, 0.35); border-color: var(--steel); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff8f7; }
.field-hint { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--muted); }
.field-error { margin: 0.35rem 0 0; font-size: 0.9rem; font-weight: 600; color: var(--danger); }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.7rem; align-items: start; }
.field-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--indigo-800); }
.field-check label { margin: 0; font-weight: 400; }
.field-check .field-error { grid-column: 2; }
.form-errors { margin-bottom: 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--danger); border-inline-start-width: 4px; border-radius: var(--radius); background: #fdecea; }
.form-errors p { margin: 0 0 0.4rem; }
.form-errors ul { margin: 0; padding-inline-start: 1.2rem; }

/* ---------- call to action ---------- */
.cta-band { background: var(--indigo-800); color: #d6e2f5; border-top: 5px solid var(--amber); padding-block: clamp(2.6rem, 6vw, 4rem); }
.cta-inner { display: grid; gap: 1.6rem; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 0.4em; }
.cta-band p { margin: 0 0 0.5rem; max-width: 58ch; }
.cta-sub { font-weight: 650; color: var(--white); }
@media (min-width: 860px) { .cta-inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* ---------- footer ---------- */
.site-footer { background: var(--indigo-900); color: #b8c7de; font-size: 0.975rem; }
.site-footer a { color: #d6e2f5; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.2rem; padding-block: clamp(2.6rem, 6vw, 4rem); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr; gap: 3rem; } }
.footer-tagline { margin: 1.1rem 0 0.2rem; font-weight: 650; color: var(--white); font-size: 1.05rem; }
.footer-statement { margin: 0 0 1.6rem; max-width: 40ch; }
.footer-heading { font-size: 0.95rem; color: var(--white); margin: 0 0 0.8rem; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-col li { padding: 0.2rem 0; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact .icon { margin-top: 0.3rem; color: var(--amber); }
.newsletter { max-width: 26rem; }
.newsletter-text { font-size: 0.9rem; margin-bottom: 0.8rem; }
.newsletter-row { display: flex; gap: 0.5rem; }
.newsletter-row input { flex: 1; min-width: 0; padding: 0.6rem 0.75rem; border: 1px solid #5d7399; border-radius: var(--radius); background: var(--indigo-800); color: var(--white); font: inherit; }
.newsletter-row input::placeholder { color: #8fa3c4; }
.footer-bottom { border-top: 1px solid rgba(143, 176, 224, 0.25); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 2rem; padding-block: 1.2rem; font-size: 0.875rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; margin: 0; padding: 0; }

/* ---------- motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pipe { animation: none; }
    * { transition: none !important; }
}
@media print {
    .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
    .hero, .page-hero, .band-dark { background: none; color: #000; }
    .hero h1, .page-hero h1, .page-hero-text { color: #000; }
    body { font-size: 11pt; }
}
