/* ==========================================================================
   efce design system
   Light, precise, whitespace-led. One accent colour, a dark blue for photo
   overlays and the footer. Minimal motion.
   Self-contained: no Bootstrap, no jQuery, no icon fonts. The one typeface,
   Commissioner (variable, weights 100–900, SIL OFL), is served from /fonts.
   ========================================================================== */

@font-face {
    font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/commissioner-greek.woff2") format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/commissioner-latin-ext.woff2") 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/commissioner-latin.woff2") 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;
}

/* --------------------------------------------------------------------------
   1. Tokens (palette from the 2026-09 site design document)
   -------------------------------------------------------------------------- */
:root {
    --ink: #0e1a2e;            /* text */
    --ink-body: #0e1a2e;
    --muted: #4b5565;          /* secondary text */
    --line: #dde3ec;           /* lines */
    --line-strong: #c3ccd9;
    --surface: #eaf1fc;        /* light blue section background */
    --surface-2: #f4f7fc;
    --white: #ffffff;

    --accent: #0f62d0;         /* buttons, links, logo */
    --accent-dark: #0b4fa9;
    --accent-tint: #eaf1fc;
    --navy: #0b1f3a;           /* overlay on photos, footer */
    --ok: #1c7c54;

    --font-sans: "Commissioner", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --gap: 1.5rem;
    --section-y: clamp(4rem, 7vw, 6.5rem);
    --container: 1200px;
    --container-wide: 1400px;
    --header-h: 74px;

    --ease: cubic-bezier(.22, .61, .36, 1);

    --radius: 12px;
    --shadow-md: 0 12px 32px -12px rgba(11, 16, 21, .16);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
/* Page title: scales down with the screen, from 2.9rem on desktop to 1.75rem on phones */
h1 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.9rem); }

.display { font-size: clamp(2.1rem, 3.7vw, 3.15rem); font-weight: 680; letter-spacing: -.03em; line-height: 1.08; }
.display-2 { font-size: clamp(1.85rem, 3.1vw, 2.65rem); font-weight: 670; letter-spacing: -.03em; line-height: 1.08; }
.h2 { font-size: clamp(1.4rem, 1rem + 1.3vw, 1.85rem); letter-spacing: -.02em; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -.02em; }
.h4 { font-size: 1.08rem; letter-spacing: -.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.27rem); line-height: 1.6; color: var(--ink-body); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.ink { color: var(--ink); }
strong { color: var(--ink); font-weight: 620; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .7rem;
    font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); opacity: .55; }
.eyebrow.is-plain::before { display: none; }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section-sm { padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.section-surface { background: var(--surface); }
.section-line { border-top: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head .h2 + p, .section-head .h2 + .lead { margin-top: 1rem; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Two-column text + media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
.split.is-top { align-items: start; }
.split.is-flipped > :first-child { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 200;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-bar { position: relative; display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.nav-brand { display: flex; align-items: center; flex: 0 0 auto; }
.nav-brand img { height: 42px; width: auto; }

.nav-menu { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .2rem; }
.nav-item { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.nav-item.has-mega { position: static; }

.nav-link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .6rem .75rem; font-size: .93rem; font-weight: 520; color: var(--ink);
    border-radius: 6px; white-space: nowrap;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover { color: var(--accent); background: var(--accent-tint); }
.nav-item.is-active > .nav-link { color: var(--accent); }

.nav-item.has-drop > .nav-link { padding-right: .25rem; }
.nav-expand { display: inline-flex; align-items: center; justify-content: center; padding: .6rem .5rem; border-radius: 6px; color: var(--ink); pointer-events: none; }
.nav-caret { width: 9px; height: 9px; flex: none; opacity: .5; transition: transform .25s var(--ease); }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

.nav-drop {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 258px; padding: .5rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-item:hover > .nav-drop, .nav-item:focus-within > .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: block; padding: .45rem .6rem; font-size: .9rem; line-height: 1.4; color: var(--ink); border-radius: 6px; }
.nav-drop a:hover, .nav-drop a.is-current { background: var(--surface); color: var(--accent); }

/* Grouped services menu, anchored to the header bar */
.nav-mega {
    top: calc(100% - 4px); left: 1.5rem; right: 1.5rem;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem 1.25rem;
    padding: 1.4rem 1.4rem 0;
}
.mega-col { min-width: 0; }
/* Need headings link to the need's column on the home page */
.nav-drop .mega-h {
    display: flex; gap: .5rem; align-items: baseline;
    font-size: .86rem; font-weight: 650; line-height: 1.35; color: var(--ink);
    padding: 0 .6rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: .45rem; min-height: 4.4rem;
}
.nav-drop .mega-h:hover { background: none; color: var(--accent); }
.mega-h .n { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--accent); flex: none; }
.nav-drop .is-text { display: block; padding: .45rem .6rem; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.nav-text { display: inline-flex; align-items: center; padding: .6rem .75rem; font-size: .93rem; font-weight: 520; color: var(--ink); white-space: nowrap; cursor: default; }
.mega-foot {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
    margin-top: .9rem; padding: .9rem .6rem 1.1rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted);
}
.nav-drop .mega-foot a { display: inline-flex; padding: 0; }
.nav-drop .mega-foot a:hover { background: none; }

.nav-utils { display: flex; align-items: center; gap: .9rem; flex: 0 0 auto; }
.lang-switch { display: flex; align-items: center; gap: .3rem; font-family: var(--font-mono); font-size: .78rem; color: var(--line-strong); }
.lang-switch a { color: var(--muted); padding: .3rem .2rem; letter-spacing: .06em; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch a.is-current { color: var(--ink); font-weight: 600; }

.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 8px; }
.nav-toggle:hover { background: var(--surface); }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .9rem 1.6rem; font-size: .95rem; font-weight: 570; letter-spacing: -.005em; line-height: 1.2;
    border-radius: 7px; border: 1px solid transparent; text-align: center;
    transition: background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55rem 1rem; font-size: .86rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-on-dark { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn-on-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn.btn-on-dark:hover .btn-arrow { transform: translateY(3px); }
.btn-arrow { width: 14px; height: 14px; flex: none; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 550; font-size: .93rem; }
.link-arrow svg { width: 13px; height: 13px; flex: none; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Home hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(3.25rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-copy .display { margin-bottom: 1.35rem; }
.hero-copy .lead { max-width: 36rem; margin-bottom: 2rem; }
.mark-accent { color: var(--accent); }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }

.spec-plate {
    position: absolute; left: -18px; bottom: -18px; max-width: 270px;
    background: var(--white); border: 1px solid var(--line); border-radius: 10px;
    padding: .95rem 1.15rem; box-shadow: var(--shadow-md);
}
.spec-plate .k { display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.spec-plate .v { display: block; font-size: .92rem; font-weight: 560; color: var(--ink); line-height: 1.4; }
a.spec-plate { transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
a.spec-plate:hover { border-color: var(--accent); transform: translateY(-2px); }
.spec-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .55rem; font-size: .84rem; font-weight: 560; color: var(--accent); }
.spec-more svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
a.spec-plate:hover .spec-more svg { transform: translateX(3px); }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.stat-n { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 660; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.stat-l { font-size: .83rem; color: var(--muted); line-height: 1.45; margin-top: .3rem; }

/* --------------------------------------------------------------------------
   8. Inner page hero, breadcrumb, section links
   -------------------------------------------------------------------------- */
.page-hero { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.75rem, 5vw, 4.25rem); border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero.no-media .page-hero-grid { grid-template-columns: 1fr; max-width: 52rem; }
.page-hero .display-2 { margin-bottom: 1.1rem; }
.page-hero .lead { max-width: 40rem; }
.page-hero .btn-row { margin-top: 1.9rem; }
.page-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
/* Result plots keep their own proportions, so legends and colour bars are never cropped or letterboxed */
.page-hero-media.is-contain img { object-fit: contain; aspect-ratio: auto; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--muted); margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .55rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: .4rem .75rem; font-size: .86rem; color: var(--ink-body); border-radius: 999px; }
.subnav a:hover, .subnav a.is-current { background: var(--accent-tint); color: var(--accent); }
/* A list that does not fit fades at the edge that has more links (class set by efce.js) */
.subnav ul.is-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); }
.subnav ul.is-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 3rem), transparent); }
.subnav ul.is-more-left.is-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }

/* FEA/CFD pages: a link back to Strength and Performance Analysis, then only the pages of the same group.
   Few links, so they wrap instead of scrolling; on phones they become a vertical list (see 21. Responsive). */
.subnav-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: .75rem; }
.subnav-analysis ul { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.subnav .subnav-back { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink); background: none; padding: .4rem 1rem .4rem 0; border-right: 1px solid var(--line); border-radius: 0; }
.subnav .subnav-back:hover { background: none; color: var(--accent); }
.subnav-back svg { width: 14px; height: 14px; flex: none; color: var(--accent); transition: transform .25s var(--ease); }
.subnav-back:hover svg { transform: translateX(-3px); }
.subnav-pages { display: flex; align-items: center; gap: .5rem; }
.subnav-group { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Long-form text
   -------------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 2.6rem 0 1rem; }
.prose h3 { font-size: 1.18rem; margin: 2rem 0 .7rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 1.25rem; margin-bottom: .45rem; }
.prose ul li::before { content: ""; position: absolute; left: .1rem; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55; }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 2rem; margin-bottom: .45rem; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .15em; font-family: var(--font-mono); font-size: .75rem; color: var(--accent); }
.prose img { border-radius: 10px; margin: 1.5rem 0; height: auto; }
.prose blockquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.3rem; border-left: 3px solid var(--accent); color: var(--ink); font-size: 1.12rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* --------------------------------------------------------------------------
   10. Cards: capabilities, families, services
   -------------------------------------------------------------------------- */
.card {
    position: relative; display: flex; flex-direction: column;
    padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
a.card, .card.is-link { color: inherit; }
a.card:hover, .card.is-link:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .6rem; }
.card > p { font-size: .95rem; }
.card .link-arrow { margin-top: auto; padding-top: 1.1rem; }
.card > .tag { align-self: flex-start; }

.card-n { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; color: var(--accent); margin-bottom: 1.2rem; }

.card-list { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.card-list li { position: relative; padding-left: 1.1rem; font-size: .9rem; line-height: 1.5; }
.card-list li + li { margin-top: .45rem; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; }
.card-list a { color: var(--ink); }
.card-list a:hover { color: var(--accent); }

/* Service card inside a family on /Services */
.family + .family { margin-top: clamp(3rem, 6vw, 4.5rem); }
.family-head { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: baseline; margin-bottom: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.family-head .card-n { margin: 0; }
.family-head p { margin: .35rem 0 0; color: var(--muted); max-width: 44rem; }
.svc-card h3 { font-size: 1.1rem; }
.svc-card p { color: var(--muted); font-size: .92rem; }

/* --------------------------------------------------------------------------
   11. Chips, packages, approach pillars
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; line-height: 1.3; color: var(--ink-body);
    border: 1px solid var(--line); border-radius: 999px; padding: .32rem .8rem; background: var(--white);
}
a.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Non-interactive list of terms: plain text, deliberately not chip-shaped */
.inline-list { font-size: .95rem; color: var(--ink); line-height: 1.8; padding-top: .9rem; border-top: 1px solid var(--line); }
.inline-list-k { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }

.tag {
    display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-tint); padding: .3rem .6rem; border-radius: 4px; margin-bottom: 1rem;
}

.package { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; }
.package h3 { font-size: 1.1rem; margin-bottom: 1.1rem; }
.package ol { counter-reset: s; margin-bottom: 1.1rem; }
.package ol li { position: relative; counter-increment: s; padding: .5rem 0 .5rem 2.2rem; font-size: .92rem; line-height: 1.45; border-top: 1px dashed var(--line); }
.package ol li:first-child { border-top: 0; }
.package ol li::before {
    content: counter(s); position: absolute; left: 0; top: .5rem; width: 1.5rem; height: 1.5rem;
    display: grid; place-items: center; font-family: var(--font-mono); font-size: .7rem; color: var(--accent);
    border: 1px solid var(--accent); border-radius: 50%;
}
.package .foot { margin-top: auto; font-size: .85rem; color: var(--muted); padding-top: .9rem; border-top: 1px solid var(--line); }

.pillar { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.pillar h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.pillar p { font-size: .94rem; color: var(--ink-body); }

/* --------------------------------------------------------------------------
   12. Lists: questions, ticks, ladder, scope
   -------------------------------------------------------------------------- */
.q-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; }
.q-list li { position: relative; padding: .8rem 0 .8rem 2.1rem; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
.q-list li::before {
    content: "?"; position: absolute; left: 0; top: .82rem; width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
    font-family: var(--font-mono); font-size: .75rem; color: var(--accent); background: var(--accent-tint); border-radius: 4px;
}

.ticks li { position: relative; padding: .45rem 0 .45rem 1.9rem; line-height: 1.5; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .72rem; width: 1rem; height: .55rem;
    border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.ticks.is-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }

.dots li { position: relative; padding: .3rem 0 .3rem 1.2rem; line-height: 1.55; }
.dots li::before { content: ""; position: absolute; left: .1rem; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55; }
.dots.is-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.dots.is-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; }

/* --------------------------------------------------------------------------
   13. Quote, callout, contrast
   -------------------------------------------------------------------------- */
.quote { font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); font-weight: 560; max-width: 48rem; margin: 0; }
.quote::before { content: ""; display: block; width: 44px; height: 3px; background: var(--accent); margin-bottom: 1.3rem; }
.quote.is-center { margin-inline: auto; text-align: center; }
.quote.is-center::before { margin-inline: auto; }

.callout { padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--surface); }
.callout h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.callout p { font-size: .95rem; }
.callout.is-plain { border-left-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   14. Examples, figures, galleries, steps
   -------------------------------------------------------------------------- */
.example { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.example + .example { margin-top: 1.5rem; }
.example-head { padding: 1.6rem 1.75rem 1.3rem; border-bottom: 1px solid var(--line); }
.example-head h3 { margin-bottom: .45rem; }
.example-head p { color: var(--ink); margin: 0; }
.example-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.example-body > div { padding: 1.4rem 1.75rem 1.6rem; }
.example-body > div + div { border-left: 1px solid var(--line); background: var(--surface); }
.example-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.example-body .dots li { font-size: .93rem; }
.example-body p { font-size: .94rem; }
.example-body p + .example-k { margin-top: 1.3rem; }
.example .chips { padding: 1rem 1.75rem; border-top: 1px solid var(--line); }

.figure { margin: 0; }
.figure img { width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.figure figcaption { margin-top: .7rem; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.figure figcaption b { color: var(--ink); font-weight: 600; }
/* Square or tall photos beside text: cropped to landscape so the column does not outgrow the text */
.figure.is-landscape img { aspect-ratio: 4 / 3; object-fit: cover; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery .figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.gallery.is-contain .figure img { object-fit: contain; }

.steps { counter-reset: st; }
.steps li { position: relative; counter-increment: st; padding: 0 0 1.6rem 3.4rem; }
.steps li::before {
    content: counter(st); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
    font-family: var(--font-mono); font-size: .8rem; color: var(--accent); background: var(--white); border: 1px solid var(--accent); border-radius: 50%; z-index: 1;
}
.steps li::after { content: ""; position: absolute; left: 1.1rem; top: 2.2rem; bottom: 0; width: 1px; background: var(--line-strong); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; margin: .3rem 0 .3rem; }
.steps p { font-size: .95rem; margin: 0; }
.steps li.is-loop::before { content: "↻"; font-size: 1rem; background: var(--accent); color: #fff; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { text-align: left; padding: .8rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.spec-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.fineprint { font-size: .76rem; color: var(--muted); line-height: 1.5; margin-top: 1rem; }

/* Related services at the foot of a service page */
.related { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; }
.related h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.related p { color: var(--muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   15. Work / case studies, track record, secondary items
   -------------------------------------------------------------------------- */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4.5vw, 4rem); align-items: center; }
.work + .work { margin-top: clamp(3.25rem, 6vw, 5rem); }
.work.is-flipped .work-media { order: 2; }
.work-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.work-media.is-contain img { object-fit: contain; background: var(--white); }
.work-body h3 { margin-bottom: .85rem; }
.work-body > p { margin-bottom: 1.2rem; }
.work-body .dots { margin-bottom: 1.2rem; }

.record { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.record-list { border-top: 1px solid var(--line); }
.record-row { display: grid; grid-template-columns: 118px 1fr; gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.record-yr { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); letter-spacing: .04em; padding-top: .15rem; }
.record-t { font-weight: 570; color: var(--ink); margin-bottom: .2rem; }
.record-d { font-size: .9rem; color: var(--muted); line-height: 1.6; }

.mini { padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.mini h3, .mini h4 { font-size: 1.02rem; margin-bottom: .45rem; }
.mini p { font-size: .9rem; color: var(--muted); }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.5rem 2rem; align-items: center; }
.logo-cell { display: flex; align-items: center; justify-content: center; height: 78px; padding: .5rem; }
.logo-cell img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .55; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.logo-cell:hover img { filter: grayscale(0%); opacity: 1; }

.founder { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 4vw, 3.25rem); align-items: start; }
.founder-photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
.founder-name { font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.founder-role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }

/* --------------------------------------------------------------------------
   16. Posts
   -------------------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--white); height: 100%; overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card-img { aspect-ratio: 16 / 9; background: var(--surface); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-date { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.post-card h3 { font-size: 1.08rem; margin-bottom: .7rem; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: .92rem; color: var(--muted); }
.post-card .link-arrow { margin-top: auto; padding-top: 1rem; }

.posts-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.filter-box + .filter-box { margin-top: 2rem; }
.filter-box h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .8rem; }
.filter-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-links a { font-size: .85rem; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-body); }
.filter-links a:hover { border-color: var(--accent); color: var(--accent); }
.filter-links a.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-row { display: flex; gap: .5rem; }
.search-row input { flex: 1; min-width: 0; }

.article { max-width: 46rem; margin-inline: auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 2rem; }
.article-img { margin-bottom: 2rem; }
.article-img img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.article-body img { max-width: 100%; height: auto !important; }
.article-body iframe { max-width: 100%; }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 560; color: var(--ink); }
.field .req { color: var(--accent); }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
    width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
    padding: .72rem .85rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--white);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
input[type="file"] { font-size: .9rem; padding: .6rem; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--surface); width: 100%; }
.field-validation-error, .text-danger { font-size: .82rem; color: #b42318; }
.input-validation-error { border-color: #b42318 !important; }
.validation-summary-errors { padding: .9rem 1.1rem; border-radius: 8px; background: #fef3f2; color: #b42318; font-size: .9rem; margin-bottom: 1.25rem; }
.validation-summary-errors ul li { list-style: disc; margin-left: 1.1rem; }
.validation-summary-valid { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-actions .fineprint { margin: 0; max-width: 28rem; }

.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-box { padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contact-box h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-box .footer-contact li { font-size: .95rem; }
.map { margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------------------
   18. CTA
   -------------------------------------------------------------------------- */
.cta { background: var(--navy); border-radius: 6px; padding: clamp(2.5rem, 5vw, 4rem); color: #fff; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 1rem; }
.cta p { color: rgba(255, 255, 255, .74); max-width: 40rem; margin-inline: auto; margin-bottom: 2rem; }
.cta .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .06); color: #fff; }
.cta .btn-row { justify-content: center; }
.cta-assure { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; margin-top: 2rem; font-size: .85rem; color: rgba(255, 255, 255, .62); }
.cta-assure span { display: inline-flex; align-items: center; gap: .45rem; }
.cta-assure svg { width: 14px; height: 14px; color: #5b9bf0; flex: none; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
/* Dark blue footer; the contact page reuses .footer-contact on a light box, so colours are scoped to .site-footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding-block: clamp(3rem, 5vw, 4.5rem) 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr 1.2fr; gap: 2.5rem; }
.footer-h { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 1.1rem; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 1.1rem; }
.footer-grid p, .footer-grid li { font-size: .89rem; color: var(--muted); line-height: 1.6; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-links .is-text { color: rgba(255, 255, 255, .5); }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .7rem; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--accent); }
.footer-contact .k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); flex: none; width: 58px; padding-top: .18rem; }
.site-footer .footer-h, .site-footer .footer-contact .k { color: #fff; }
.site-footer .footer-grid p, .site-footer .footer-grid li,
.site-footer .footer-links a, .site-footer .footer-contact a { color: rgba(255, 255, 255, .72); }
.site-footer .footer-links a:hover, .site-footer .footer-contact a:hover { color: #fff; }
.site-footer .footer-links .is-text { color: rgba(255, 255, 255, .45); }

.social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 7px; color: rgba(255, 255, 255, .72); transition: border-color .2s var(--ease), color .2s var(--ease); }
.social a:hover { border-color: #fff; color: #fff; }
.social svg { width: 15px; height: 15px; }

.footer-bottom { margin-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .83rem; color: rgba(255, 255, 255, .6); }
.footer-bottom a { color: rgba(255, 255, 255, .72); }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   20. Motion
   -------------------------------------------------------------------------- */
/* Content is only hidden for the reveal when scripts run (html.js is set inline in the head). */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .07s; }
.reveal-d2 { transition-delay: .14s; }
.reveal-d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .nav-cta { display: none; }
    .nav-link { padding-inline: .6rem; }
}

@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .nav-mega { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
        background: var(--white); border-bottom: 1px solid var(--line);
        padding: .5rem 1.5rem 1.5rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    }
    .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { padding: .8rem 0; font-size: 1rem; border-radius: 0; }
    .nav-link:hover { background: none; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-item.has-drop > .nav-link { padding-right: 0; }
    .nav-expand { pointer-events: auto; margin-left: auto; padding: .8rem .25rem; }
    .nav-item:hover .nav-caret { transform: none; }
    .nav-drop, .nav-mega {
        flex-basis: 100%; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        border: 0; border-radius: 0; margin: 0 0 .8rem; padding: 0; min-width: 0; display: none;
    }
    .nav-item.is-expanded .nav-drop { display: block; }
    .nav-item.is-expanded .nav-caret { transform: rotate(180deg); }
    .mega-col { margin-bottom: .6rem; }
    .nav-drop .mega-h { padding-left: 0; min-height: 0; }
    .nav-drop a { padding-left: .75rem; }
    .mega-foot { padding-inline: 0; }

    .hero-grid, .page-hero-grid, .work, .record, .founder, .split, .related, .contact-layout, .posts-layout, .example-body { grid-template-columns: 1fr; }
    .work.is-flipped .work-media, .split.is-flipped > :first-child { order: 0; }
    .page-hero-media { max-width: 560px; }
    .founder-photo { max-width: 220px; }
    .grid-3, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .example-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 680px) {
    body { font-size: 1rem; }
    /* FEA/CFD links: a vertical list under the back link, not sticky (it would cover too much of the screen) */
    .subnav-analysis { position: static; }
    .subnav-row { flex-direction: column; align-items: stretch; }
    .subnav .subnav-back { border-right: 0; border-bottom: 1px solid var(--line); padding: .8rem 0; }
    .subnav-pages { flex-direction: column; align-items: stretch; gap: 0; }
    .subnav-group { padding-top: .8rem; }
    .subnav-analysis ul { flex-direction: column; gap: .1rem; padding-block: .3rem .7rem; }
    .subnav-analysis a { white-space: normal; padding-inline: 0; border-radius: 6px; }
    .subnav-analysis a.is-current { padding-inline: .6rem; }
    .grid-2, .grid-3, .grid-4, .gallery, .q-list, .ticks.is-2col, .dots.is-2col, .dots.is-3col, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr; gap: 1rem; }
    .record-row { grid-template-columns: 1fr; gap: .3rem; }
    .spec-plate { position: static; margin-top: 1rem; max-width: none; box-shadow: none; }
    .cta { border-radius: 12px; }
    .btn-row .btn { width: 100%; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .family-head { grid-template-columns: 1fr; gap: .3rem; }
    .lang-switch { font-size: .74rem; }
    .example-head, .example-body > div, .example .chips { padding-inline: 1.25rem; }
}

/* --------------------------------------------------------------------------
   21b. Home page: photo hero, needs and services, project reference,
        independence, who does the work
   -------------------------------------------------------------------------- */
/* Hero height leaves room for the need titles below it on the first screen, as a cue to scroll */
.home-hero { position: relative; min-height: clamp(360px, calc(100svh - 300px), 660px); display: flex; align-items: center; background: var(--navy); overflow: hidden; }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero .container { position: relative; }
/* Vertical position of the panel: centred in the hero, then moved down by exactly --hero-shift (0 = centred) */
.home-hero { --hero-shift: 7rem; }
.home-hero .container { transform: translateY(var(--hero-shift)); }
.home-hero-panel {
    max-width: 36rem;
    padding: clamp(0.5rem, 1vw, 3.5rem) clamp(1.75rem, 4vw, 3.75rem);
    background: rgba(11, 31, 58, .15);
    color: #000;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
/*.home-hero-panel {
    max-width: 46rem; padding: clamp(2rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.75rem);
    background: rgba(11, 31, 58, .82); color: #fff;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}*/
.home-hero-k { font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .88); margin-bottom: 1.4rem; }
.home-hero h1 { color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 1.1rem; }
.home-hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .9); margin-bottom: 2.2rem; }

/* The five needs with their services: one row of columns on desktop, stacked on phones */
.home-services { padding-top: clamp(2rem, 3.5vw, 3rem); }
.home-services .section-head { margin-bottom: clamp(1.25rem, 2.2vw, 1.75rem); }
.needs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.need { display: flex; flex-direction: column; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.need .n { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); margin-bottom: .45rem; }
.need h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 1rem; min-height: 4.2rem; }
.need-svc { padding: .9rem 0; border-top: 1px solid var(--line); }
.need-svc h4 { font-size: .96rem; line-height: 1.35; margin-bottom: .35rem; }
.need-svc h4 a { color: var(--ink); }
.need-svc h4 a:hover { color: var(--accent); }
.need-svc p { font-size: .87rem; color: var(--muted); line-height: 1.5; }

/* Short project reference (level C): photo, label, title, link to the card on the Work page */
.project-ref { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--white); border: 1px solid var(--line); }
.project-ref-img img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-ref-body { display: flex; flex-direction: column; padding: clamp(1.75rem, 3.5vw, 3rem); }
.project-ref-k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.project-ref h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .9rem; }
.project-ref .rtext { color: var(--muted); }
.project-ref .link-arrow { margin-top: auto; padding-top: 1.5rem; }
.project-ref-img .ph { height: 100%; min-height: 16rem; }
.project-refs .project-ref + .project-ref { margin-top: 1.5rem; }
/* Two or three references side by side (service pages): image on top, text below */
.project-refs.is-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; }
.project-refs.is-grid .project-ref { grid-template-columns: 1fr; grid-template-rows: auto 1fr; margin-top: 0; }
.project-refs.is-grid .project-ref-body { padding: 1.5rem; }
.project-refs.is-grid .project-ref h3 { font-size: 1.2rem; }

/* --------------------------------------------------------------------------
   21c. Projects (Content/Projects/*.json): page, card on Work, placeholders
   -------------------------------------------------------------------------- */
/* Text from a content file, with basic formatting (LocalizedText.Html): paragraphs and lists */
.rtext > p { margin: 0 0 .8em; }
.rtext > :last-child { margin-bottom: 0; }
.rtext ul, .rtext ol { margin: 0 0 .8em; padding-left: 1.3rem; }
.rtext ul li { list-style: disc; }
.rtext ol li { list-style: decimal; }
.rtext li + li { margin-top: .25em; }
.rtext a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Placeholder for a photo that has not been added yet (Projects:ShowDrafts only) */
.ph {
    display: flex; align-items: center; justify-content: center; padding: 1rem; min-height: 8rem; aspect-ratio: 3 / 2;
    background: repeating-linear-gradient(135deg, #e6ebf2 0 10px, #eff2f7 10px 20px); border: 1px dashed var(--line-strong);
}
.ph-label { max-width: 90%; padding: .35rem .6rem; background: var(--white); border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .7rem; line-height: 1.45; color: var(--muted); text-align: center; }
.ph-label b { color: var(--ink); font-weight: 600; }

/* Row of photos on a page (_Photos): two side by side, one per row on phones */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.photos.is-single { grid-template-columns: minmax(0, 46rem); }
.photos .figure img, .photos .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photos .figure img.is-contain { object-fit: contain; background: var(--white); }
@media (max-width: 680px) { .photos { grid-template-columns: 1fr; } }
.draft-note { margin: .9rem 0; padding: .55rem .8rem; border: 1px dashed #c98a00; background: #fff8e6; color: #7a5200; font-size: .85rem; line-height: 1.45; }
.draft-note::before { content: "Εκκρεμεί · "; font-weight: 700; }

.pj-kind { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.pj-k { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 1.1rem 0 .45rem; }
.pj-tags { margin-top: 1rem; }
.pj-services { font-size: .9rem; line-height: 1.6; margin: 0; }
.pj-services a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-ext { display: inline-flex; align-items: center; gap: .35rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-ext svg { width: 13px; height: 13px; flex: none; }

/* Work page: tag filter, count */
.work-head { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.tag-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.tag-filter a { font-size: .86rem; padding: .38rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-body); background: var(--white); }
.tag-filter a:hover { border-color: var(--accent); color: var(--accent); }
.tag-filter a.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.work-more { margin: 1.1rem 0 0; font-size: .9rem; }
.work-cards { background: var(--surface-2); }
.work-count { margin: 0; font-size: .9rem; color: var(--muted); }
.pj-tags a.chip:hover { border-color: var(--accent); color: var(--accent); }
img.is-contain { object-fit: contain; background: var(--white); }

/* Card on the Work page */
.pcards { display: grid; gap: 1.75rem; }
.pcard { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--white); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.pcard-media { padding: .5rem; display: flex; flex-direction: column; gap: .5rem; }
.pcard-cover { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.pcard-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pcard-thumbs img, .pcard-thumbs .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; min-height: 0; }
.pcard-thumbs .ph-label { font-size: .6rem; }
.pcard-body { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.5rem); }
.pcard-top { display: flex; justify-content: space-between; gap: 1rem; }
.pcard-n { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.pcard h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; margin-bottom: .9rem; }
.pcard-summary { color: var(--muted); margin-bottom: 1rem; }
.keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .6rem 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.keyfacts div { padding: .8rem .9rem .8rem 0; }
.keyfacts div + div { padding-left: .9rem; border-left: 1px solid var(--line); }
.keyfacts dt { font-size: 1.35rem; font-weight: 650; color: var(--ink); line-height: 1.2; }
.keyfacts dd { margin: .15rem 0 0; font-size: .8rem; color: var(--muted); }
.pcard-btn { align-self: flex-start; margin-top: 1.5rem; }
.pcard-btn svg { width: 14px; height: 14px; }

/* Project page */
.pj-head { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.pj-head h1 { max-width: 48rem; margin-bottom: 1rem; }
.pj-lead { max-width: 46rem; color: var(--muted); }
.pj-cover { width: 100%; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); aspect-ratio: 21 / 9; object-fit: cover; }
.pj-head .ph.pj-cover { aspect-ratio: 21 / 9; }
.pj-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pj-intro-text p, .pj-intro-text .rtext { font-size: 1.1rem; line-height: 1.7; }
.pj-intro-text .rtext { margin-bottom: 1.1em; }
.factbox { border: 1px solid var(--ink); padding: .2rem 1.1rem .6rem; }
.factbox .pj-k { margin-top: .7rem; }
.factbox dl { margin: 0; }
.factbox dl div { padding: .55rem 0; border-top: 1px solid var(--line); }
.factbox dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.factbox dd { margin: .15rem 0 0; font-size: .93rem; color: var(--ink); line-height: 1.45; }
.pj-h2 { margin-bottom: 1.5rem; }

.pj-steps { counter-reset: none; }
.pj-step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4.5vw, 4rem); align-items: center; }
.pj-step + .pj-step { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pj-step.is-flipped .pj-step-media { order: 2; }
.pj-step-media { display: grid; gap: .75rem; }
.pj-step-media img, .pj-step-media .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pj-step-media.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-step-media.is-pair img, .pj-step-media.is-pair .ph { aspect-ratio: 3 / 4; }
.pj-step-media:empty { display: none; }
.pj-step-n { display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--accent); margin-bottom: .4rem; }
.pj-step h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: .7rem; }
.pj-step .rtext { color: var(--ink-body); }

.pj-map { width: 100%; margin-top: 1.25rem; aspect-ratio: 16 / 7; object-fit: cover; }
.pj-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pj-gallery img, .pj-gallery .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.pj-end { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.pj-end aside .pj-k:first-child { margin-top: 0; }
.pj-press li { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pj-press li .rtext { color: var(--muted); font-size: .85rem; }

@media (max-width: 960px) {
    .pcard, .pj-intro, .pj-step, .pj-end { grid-template-columns: 1fr; }
    .pj-step.is-flipped .pj-step-media { order: 0; }
}
@media (max-width: 680px) {
    .pj-cover, .pj-head .ph.pj-cover { aspect-ratio: 4 / 3; }
    .pj-head .container:last-child { padding-inline: 0; }
    .pj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .keyfacts dt { font-size: 1.15rem; }
}

/* Independence statement */
.independence { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.independence .quote { font-size: clamp(1.35rem, 2.5vw, 1.95rem); }
.not-selling li { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; color: var(--muted); }
.not-selling li:first-child { border-top: 1px solid var(--line); }
.not-selling li.is-yes { color: var(--ink); font-weight: 650; border-bottom: 0; padding-top: 1.1rem; }
.not-selling li.is-yes::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: .75rem; }

/* Who does the work */
.who { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; max-width: 60rem; }
.who img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.who blockquote { margin: 0 0 1.25rem; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; color: var(--ink); }

/* Short desktop windows (small laptops): a tighter panel so the need titles still show on the first screen */
@media (min-width: 681px) and (max-height: 720px) {
/*    .home-hero-panel { padding: 1.6rem 2.4rem 1.8rem; }*/
    .home-hero-k { margin-bottom: .8rem; }
    .home-hero h1 { margin-bottom: .7rem; }
    .home-hero-sub { margin-bottom: 1.3rem; }
}

@media (max-width: 1080px) {
    .needs { gap: 1rem; }
    .need h3 { font-size: 1rem; }
    .need-svc h4 { font-size: .9rem; }
}

@media (max-width: 960px) {
    .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
    .need h3 { min-height: 0; }
    .project-ref, .independence, .who { grid-template-columns: 1fr; }
    .who img { max-width: 200px; }
    .nav-text { padding: .8rem 0; font-size: 1rem; }
}

@media (max-width: 680px) {
    /* The photo stays visible; the dark panel sits flush in the bottom-left corner */
    .home-hero { min-height: min(calc(100svh - var(--header-h)), 640px); align-items: flex-end; --hero-shift: 0px; }
    .home-hero .container { padding-inline: 0; margin: 0; }
    .home-hero-panel { max-width: 88%; padding: 1.3rem 1.25rem 1.4rem; }
    .home-hero-k { font-size: .66rem; letter-spacing: .12em; margin-bottom: .7rem; }
    .home-hero h1 { margin-bottom: .6rem; }
    .home-hero-sub { font-size: .95rem; margin-bottom: 1.1rem; }
    .home-hero-panel .btn { padding: .65rem 1rem; font-size: .86rem; }
    .needs { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   22. Utilities
   -------------------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.max-40 { max-width: 40rem; }
