/* ==========================================================================
   Coastal Commons Asia — public site styles
   Brand colours (--primary, --accent) are injected from Admin → Settings.
   ========================================================================== */

:root {
    --primary: #1d3f8f;
    --accent: #1c7c45;
    --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
    --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);
    --accent-dark: color-mix(in srgb, var(--accent) 82%, #000);
    --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
    --accent-glow: color-mix(in srgb, var(--accent) 45%, #fff);

    --ink: #0a1a2f;
    --text: #2a3a4c;
    --muted: #5a6879;
    --line: #e3e8ec;
    --line-strong: #cdd6de;
    --white: #fff;
    --sand: #f6f2ea;
    --mist: #ebf3f4;
    /* Deep sea: a near-black tinted with the brand blue, so dark areas follow the theme */
    --navy: color-mix(in srgb, var(--primary) 24%, #040c1a);

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;   /* quotes only */

    /* Square geometry throughout: no rounded corners or circles */
    --radius-sm: 0;
    --radius: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --shadow-sm: 0 1px 2px rgba(10, 26, 47, .05), 0 2px 6px rgba(10, 26, 47, .05);
    --shadow: 0 14px 34px -14px rgba(10, 26, 47, .22);
    --shadow-lg: 0 34px 70px -24px rgba(10, 26, 47, .32);

    --container: 1280px;
    --gutter: 24px;
    --article-w: 720px;
    --topbar-h: 40px;
    --header-h: 84px;
    /* Tide motifs, all straight lines */
    --tide-ticks:                       /* three rising bars, like a tide gauge filling */
        linear-gradient(currentColor 0 0) 0 100% / 4px 5px no-repeat,
        linear-gradient(currentColor 0 0) 7px 100% / 4px 8px no-repeat,
        linear-gradient(currentColor 0 0) 14px 100% / 4px 12px no-repeat;
    --tide-lines: repeating-linear-gradient(180deg, transparent 0 27px, color-mix(in srgb, var(--primary) 9%, transparent) 27px 28px);
    --tide-lines-light: repeating-linear-gradient(180deg, transparent 0 27px, rgba(255,255,255,.045) 27px 28px);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, #fff); outline-offset: 3px; border-radius: 0; }
::selection { background: color-mix(in srgb, var(--accent) 25%, #fff); color: var(--ink); }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.center { text-align: center; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.container-full { max-width: none; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--primary); --btn-fg: #fff; --btn-border: var(--btn-bg);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .82em 1.45em; border-radius: 0; border: 1.5px solid var(--btn-border);
    background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: .975rem; line-height: 1.2;
    text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary:hover { --btn-bg: var(--primary-dark); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn-accent { --btn-bg: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-accent:hover { --btn-bg: var(--accent-dark); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--primary); --btn-border: color-mix(in srgb, var(--primary) 30%, #fff); }
.btn-outline:hover { --btn-bg: var(--primary); --btn-fg: #fff; --btn-border: var(--primary); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-light:hover { --btn-bg: var(--sand); --btn-fg: var(--ink); }
.btn-ghost-light { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-border: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; }
.btn-lg { font-size: 1.02rem; padding: .95em 1.7em; }
.btn-sm { font-size: .88rem; padding: .6em 1.1em; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn-row.center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .95rem; color: var(--primary); text-decoration: none; }
.link-arrow .icon { transition: transform .2s var(--ease); }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

.chip { display: inline-block; padding: .25em .7em; border-radius: 0; font-size: .78rem; font-weight: 600; letter-spacing: .01em; background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Header (utility bar + full-width bar) ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.72); font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--topbar-h); }
.topbar-tag { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-weight: 500; letter-spacing: .02em; }
.topbar-tag .tide-ticks { color: var(--accent-glow); }
.topbar-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.topbar-links li + li { border-left: 1px solid rgba(255,255,255,.14); }
.topbar-links a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.topbar-links li:last-child a { padding-right: 0; }
.topbar-links a:hover { color: #fff; }
.topbar-links .icon { width: 15px; height: 15px; color: var(--accent-glow); }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10,26,47,.35); }
.header-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 32px; height: var(--header-h); transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 70px; }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { height: 62px; width: auto; transition: height .3s var(--ease); mix-blend-mode: multiply; }
.site-header.is-scrolled .brand img { height: 48px; }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--primary); }

.main-nav { display: flex; align-items: stretch; gap: 28px; }
.main-nav ul { display: flex; align-items: stretch; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav li { display: flex; }
.main-nav a:not(.btn) {
    position: relative; display: flex; align-items: center; padding: 0 14px; color: var(--ink); font-weight: 600; font-size: .93rem;
    text-decoration: none; transition: color .2s;
}
/* Active / hover indicator: a bar that sits on the header's bottom edge */
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:not(.btn):hover { color: var(--primary); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); background: var(--line-strong); }
.main-nav a.is-active { color: var(--primary); }
.main-nav a.is-active::after, .main-nav a.is-active:hover::after { transform: scaleX(1); background: var(--accent); }
.nav-cta { align-self: center; padding: .78em 1.3em; font-size: .92rem; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--accent), var(--primary)); pointer-events: none; }

.nav-toggle { display: none; position: relative; align-self: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.admin-bar { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 18px; border-radius: 0; background: var(--navy); color: #cfd8e3; font-size: .85rem; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.admin-bar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 0; background: rgba(255,255,255,.1); white-space: nowrap; }
.admin-bar a:hover { background: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
.section { position: relative; }
.sp-normal { padding: 112px 0; }
.sp-compact { padding: 64px 0; }
.sp-spacious { padding: 140px 0; }
.bg-default { background: var(--white); }
.bg-soft { background: var(--sand); }
.bg-mist { background: var(--mist); }
.bg-brand { background: var(--primary-dark); }
.bg-dark { background: var(--navy); }
/* Dark sections: full width, a tide-line accent along the top */
.bg-dark, .bg-brand { border-top: 4px solid var(--accent); }
/* Collapse padding between two adjacent sections with the same background */
.bg-default + .bg-default, .bg-soft + .bg-soft, .bg-mist + .bg-mist { padding-top: 0; }
/* A CTA panel straight after a same-colour section still needs a little air */
.bg-default + .bg-default.sec-cta, .bg-soft + .bg-soft.sec-cta, .bg-mist + .bg-mist.sec-cta { padding-top: 32px; }

.is-dark { color: rgba(255,255,255,.82); }
.is-dark h2, .is-dark h3, .is-dark .section-title { color: #fff; }
.is-dark .eyebrow { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.is-dark .eyebrow::before { background: currentColor; }
.is-dark .section-intro, .is-dark .lead-text { color: rgba(255,255,255,.75); }
.is-dark .btn-outline { --btn-fg: #fff; --btn-border: rgba(255,255,255,.4); }
.is-dark .btn-outline:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
.is-dark .link-arrow { color: #fff; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-sans); font-size: .76rem; font-weight: 700; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; flex-shrink: 0; width: 18px; height: 12px; color: var(--accent); background: var(--tide-ticks); }
.is-dark .eyebrow, .is-dark .eyebrow::before { color: var(--accent-glow); }
.eyebrow-light { color: #fff; }
.eyebrow-light::before { color: var(--accent-glow); }

.section-head { margin-bottom: 56px; }
.section-head.is-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head.is-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head.is-split .section-head-text { max-width: 720px; }
.section-title { font-size: clamp(1.9rem, 1.15rem + 2.3vw, 3rem); line-height: 1.1; letter-spacing: -.028em; margin-bottom: .35em; text-wrap: balance; }
.section-intro { font-size: 1.15rem; color: var(--muted); margin: 0; line-height: 1.65; }
.section-head .section-intro { margin-top: 8px; }
.section-foot { margin-top: 48px; text-align: center; }
.lead-text { font-size: 1.2rem; line-height: 1.65; color: var(--text); }
.mobile-only { display: none; }
.group-title { font-size: 1.35rem; margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group-title:first-of-type { margin-top: 0; }

/* ---------- Prose (readability) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.78; color: var(--text); }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.75rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.prose h2 strong, .prose h3 strong { font-weight: inherit; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--accent); }
/* The editor saves both list types as <ol><li data-list="…">; show the right marker */
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose li[data-list="ordered"] { list-style-type: decimal; }
.prose .ql-ui { display: none; }
.prose .ql-indent-1 { margin-left: 2em; } .prose .ql-indent-2 { margin-left: 4em; } .prose .ql-indent-3 { margin-left: 6em; } .prose .ql-indent-4 { margin-left: 8em; }
.prose li.ql-indent-1[data-list="bullet"] { list-style-type: circle; } .prose li.ql-indent-2[data-list="bullet"] { list-style-type: square; }
.prose li.ql-indent-1[data-list="ordered"] { list-style-type: lower-alpha; } .prose li.ql-indent-2[data-list="ordered"] { list-style-type: lower-roman; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose img { border-radius: 0; margin: 2em auto; }
.prose blockquote { margin: 1.8em 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--accent); font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: left; }
.prose.is-lead { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); line-height: 1.4; color: var(--ink); font-weight: 500; }
.center .prose { margin: 0 auto; }
.center .eyebrow { justify-content: center; }
.is-dark .prose { color: rgba(255,255,255,.85); }
.is-dark .prose strong, .is-dark .prose.is-lead { color: #fff; }

.pull-quote { margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0; font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; color: var(--ink); line-height: 1.5; }
.split-text .btn { margin-top: 28px; }
.split-text .section-foot { margin-top: 0; text-align: left; }

/* ---------- Hero (framed, cinematic) ---------- */
.hero { --ov: .55; --ov-rgb: 8 20 42; position: relative; display: flex; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero-full { min-height: calc(100vh - var(--header-h) - var(--topbar-h)); min-height: calc(100svh - var(--header-h) - var(--topbar-h)); }
.hero-large { min-height: 720px; }
.hero-medium { min-height: 520px; }
.hero-media, .hero-media img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { z-index: -1; }
.hero-media img { animation: heroZoom 18s ease-out both; }
.hero-media::after { content: ""; position: absolute; inset: 0; }
/* Overlay strength (--ov, 0–0.9) and colour (--ov-rgb) come from the hero settings in the admin */
.ov-left .hero-media::after { background:
    linear-gradient(90deg, rgb(var(--ov-rgb) / var(--ov)) 0%, rgb(var(--ov-rgb) / calc(var(--ov) * .7)) 40%, rgb(var(--ov-rgb) / calc(var(--ov) * .12)) 75%, rgb(var(--ov-rgb) / 0) 100%),
    linear-gradient(0deg, rgb(var(--ov-rgb) / calc(var(--ov) * 1.1)) 0%, rgb(var(--ov-rgb) / calc(var(--ov) * .3)) 38%, transparent 60%),
    linear-gradient(180deg, rgb(var(--ov-rgb) / .35), transparent 22%); }
.ov-full .hero-media::after { background: rgb(var(--ov-rgb) / var(--ov)); }
.ov-bottom .hero-media::after { background: linear-gradient(0deg, rgb(var(--ov-rgb) / var(--ov)) 0%, rgb(var(--ov-rgb) / calc(var(--ov) * .6)) 50%, rgb(var(--ov-rgb) / calc(var(--ov) * .15)) 100%); }
.hero-content { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 44px; padding-top: 80px; padding-bottom: 32px; }
.hero-copy { max-width: 820px; }
.hero-copy > * { animation: heroRise 1s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 24px; font-size: .95rem; font-weight: 700; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(4,12,26,.5); }
.hero-eyebrow::before { content: ""; flex-shrink: 0; width: 22px; height: 15px; color: var(--accent-glow); background: var(--tide-ticks); }
.hero-title { max-width: 860px; font-size: clamp(2.4rem, 1rem + 3.8vw, 4.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.032em; color: #fff; margin-bottom: 22px; text-wrap: balance; text-shadow: 0 2px 30px rgba(4,12,26,.35); }
.hero-text { max-width: 700px; font-size: clamp(1rem, .96rem + .2vw, 1.08rem); line-height: 1.7; color: rgba(255,255,255,.86); margin-bottom: 30px; text-shadow: 0 1px 14px rgba(4,12,26,.5); }
.hero .btn-row { gap: 12px; }

/* Glass strip of focus areas along the bottom of the hero */
.hero-strip { display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 24px; border-radius: 0; border-left: 3px solid var(--accent-glow) !important; background: rgba(6,16,34,.34); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); animation: heroRise 1s .5s var(--ease-out) both; }
.hero-strip-label { flex-shrink: 0; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero-strip ul { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.hero-strip a { display: flex; align-items: center; gap: 11px; height: 100%; padding: 10px 12px; border-radius: 0; color: #fff; text-decoration: none; font-size: .86rem; font-weight: 600; line-height: 1.3; transition: background .25s; }
.hero-strip a:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-strip-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 0; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); transition: transform .3s var(--ease); }
.hero-strip a:hover .hero-strip-icon { transform: rotate(-8deg) scale(1.06); }
.hero-strip-icon .icon { width: 19px; height: 19px; }

.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 0; }
.hero-scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 0; background: #fff; animation: scrollCue 1.8s infinite; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Tide marks ----------
   Stacked straight lines like the high-water marks a receding tide leaves on a harbour wall.
   Used as the divider under the hero, under page headers and above the footer. */
.tide-marks { height: 15px; background:
    linear-gradient(var(--navy) 0 0) 0 0 / 100% 5px no-repeat,
    linear-gradient(var(--primary) 0 0) 0 8px / 100% 3px no-repeat,
    linear-gradient(var(--accent) 0 0) 0 14px / 100% 1px no-repeat; }
.tide-marks:has(+ .site-footer) { margin-top: 0; transform: scaleY(-1); }   /* rising toward the footer */
.tide-ticks { display: inline-block; flex-shrink: 0; width: 18px; height: 12px; background: var(--tide-ticks); }

/* Tide gauge: a measuring staff on the hero whose water level slowly rises and falls */
.tide-gauge { position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--container)) / 2)); top: 64px; bottom: 150px; width: 34px;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,.75) 0 2px, transparent 2px 60px) right top / 34px 100%,
        repeating-linear-gradient(0deg, rgba(255,255,255,.45) 0 1px, transparent 1px 12px) right top / 16px 100% no-repeat;
    border-right: 2px solid rgba(255,255,255,.75); }
.tide-gauge-water { position: absolute; right: 0; bottom: 0; width: 16px; height: 38%; background: color-mix(in srgb, var(--accent-glow) 55%, transparent); border-top: 2px solid #fff; animation: tide 9s ease-in-out infinite alternate; }
@keyframes tide { from { height: 30%; } to { height: 72%; } }
@media (max-width: 1100px) { .tide-gauge { display: none; } }

/* ---------- Page header ---------- */
.page-header { position: relative; padding: 88px 0 88px; overflow: hidden; isolation: isolate; background: var(--mist) var(--tide-lines); }
.page-header.has-image { padding: 112px 0 104px; color: #fff; background: var(--navy); }
.page-header-media { position: absolute; inset: 0; z-index: -1; }
.page-header-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: heroZoom 18s ease-out both; }
.page-header-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,12,26,.88), rgba(4,12,26,.55) 60%, rgba(4,12,26,.3)), linear-gradient(180deg, rgba(4,12,26,.4), transparent 30%); }
.page-header-content { position: relative; }
.page-header-content > * { animation: heroRise .9s var(--ease-out) both; }
.page-header-content > :nth-child(2) { animation-delay: .08s; }
.page-header-content > :nth-child(3) { animation-delay: .16s; }
.page-header-content > :nth-child(4) { animation-delay: .24s; }
.page-title { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4rem); font-weight: 700; line-height: 1.07; letter-spacing: -.032em; max-width: 940px; margin-bottom: 22px; text-wrap: balance; }
.page-header.has-image .page-title { color: #fff; }
.page-lead { max-width: 700px; font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); line-height: 1.65; margin: 0; color: var(--muted); }
.page-header.has-image .page-lead { color: rgba(255,255,255,.86); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font-size: .86rem; color: var(--muted); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-header .breadcrumb { display: inline-flex; padding: 6px 14px; border-radius: 0; background: rgba(255,255,255,.7); }
.page-header.has-image .breadcrumb { color: rgba(255,255,255,.75); background: rgba(255,255,255,.1); }
.page-header.has-image .breadcrumb a:hover { color: #fff; }
.page-header.has-image .breadcrumb [aria-current] { color: #fff; }
.page-header .eyebrow { display: flex; width: fit-content; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split.media-left .split-media { order: -1; }
.split-media { position: relative; }
.media-frame { position: relative; border-radius: 0; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--mist); aspect-ratio: 4 / 3.4; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media-frame:hover img { transform: scale(1.03); }

/* ---------- Introduction with media ("Who we are") ---------- */
.im-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.im-text { min-width: 0; }
.im-split.bal-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
.im-split.bal-media { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); }
.im-split.media-left > .im-media { order: -1; }
.im-split.no-media { grid-template-columns: minmax(0, 820px); }
.im-title.is-small { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.im-title.is-large { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); line-height: 1.1; }
.im-body.is-small { font-size: 1rem; }
.im-body.is-normal { font-size: 1.0625rem; }
.im-body.is-large { font-size: 1.1875rem; }
.im-body.lead-first > p:first-child { font-size: 1.22em; line-height: 1.6; color: var(--ink); font-weight: 500; }
.im-text .section-foot { text-align: left; margin-top: 0; }
.im-text .btn { margin-top: 28px; }
.im-media.is-sticky { position: sticky; top: calc(var(--header-h) + 28px); }
/* Line the media up with the heading rather than the small label above it:
   label line (0.8rem × 1.7) + its 14px gap + the heading's top leading */
.im-split.has-eyebrow > .im-media { margin-top: calc(.8rem * 1.7 + 14px + 15px); }
.im-figure { position: relative; margin: 0; }
.im-figure.cap-badge { padding-bottom: 36px; }
.im-frame { position: relative; overflow: hidden; border-radius: 0; background: #0b1a33; box-shadow: var(--shadow-lg); isolation: isolate; }
.im-frame.ratio-wide { aspect-ratio: 16 / 9; }
.im-frame.ratio-standard { aspect-ratio: 4 / 3; }
.im-frame.ratio-portrait { aspect-ratio: 4 / 5; }
.im-frame.ratio-square { aspect-ratio: 1; }
.im-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.im-frame:hover > img { transform: scale(1.03); }
.im-frame > video, .im-frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; z-index: 3; }
.im-play { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; color: #fff; background: rgba(8,20,42,.12); }
.im-play-icon { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 0; background: rgba(255,255,255,.95); color: var(--primary); box-shadow: 0 0 0 10px rgba(255,255,255,.22), 0 12px 30px rgba(0,0,0,.25); transition: transform .3s var(--ease), box-shadow .3s; }
.im-play-icon .icon { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.im-play:hover .im-play-icon, .im-play:focus-visible .im-play-icon { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255,255,255,.18), 0 12px 30px rgba(0,0,0,.25); }
.im-play-label { padding: 5px 14px; border-radius: 0; background: rgba(8,20,42,.55); backdrop-filter: blur(4px); font-weight: 600; font-size: .9rem; }
.im-stat { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; flex-direction: column; padding: 12px 16px; border-radius: 0; background: rgba(255,255,255,.95); color: var(--muted); font-size: .8rem; font-weight: 600; line-height: 1.3; box-shadow: var(--shadow); }
.im-stat strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--accent); margin-bottom: 2px; }
/* Corner play button: keeps the speaker's face clear */
.im-frame.play-corner .im-play { inset: 16px 16px auto auto; width: auto; flex-direction: row-reverse; gap: 10px; background: none; }
.im-frame.play-corner .im-play-icon { width: 54px; height: 54px; box-shadow: 0 0 0 6px rgba(255,255,255,.25), 0 8px 20px rgba(0,0,0,.25); }
.im-frame.play-corner .im-play-icon .icon { width: 20px; height: 20px; margin-left: 3px; }
.im-frame.play-corner .im-stat { top: auto; bottom: 16px; }
.im-frame.play-corner.ratio-wide .im-stat, .cap-overlay .im-frame.play-corner .im-stat { top: 16px; bottom: auto; }
/* Quote under the media */
.im-quote { position: relative; margin: 28px 0 0; padding: 24px 26px 24px 70px; border-radius: 0; background: var(--accent-soft); }
.im-quote-mark { position: absolute; left: 22px; top: 22px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 0; background: var(--accent); color: #fff; }
.im-quote-mark .icon { width: 15px; height: 15px; }
.im-quote p { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; font-style: italic; line-height: 1.45; color: var(--ink); }
.is-dark .im-quote { background: rgba(255,255,255,.07); }
.is-dark .im-quote p { color: #fff; }
/* Caption */
.im-caption { display: flex; flex-direction: column; gap: 4px; }
.cap-title { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.cap-title.is-small { font-size: 1.05rem; }
.cap-title.is-medium { font-size: 1.35rem; }
.cap-title.is-large { font-size: 1.75rem; }
.cap-text { font-size: .92rem; line-height: 1.45; }
.cap-overlay .im-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 56px 24px 20px; color: var(--cap-fg); background: linear-gradient(0deg, color-mix(in srgb, var(--cap-bg) 92%, transparent) 0%, color-mix(in srgb, var(--cap-bg) 70%, transparent) 55%, transparent 100%); pointer-events: none; }
.cap-overlay .im-caption .cap-text { opacity: .9; }
.cap-badge .im-caption { position: absolute; left: -24px; bottom: 0; z-index: 2; max-width: min(78%, 420px); padding: 18px 24px; border-radius: 0; background: var(--cap-bg); color: var(--cap-fg); box-shadow: var(--shadow-lg); }
.cap-badge .im-caption .cap-text { opacity: .88; }
.cap-below .im-caption { margin-top: 18px; padding: 2px 0 2px 16px; border-left: 3px solid var(--cap-bg); color: var(--cap-fg); }
.cap-below .cap-text { color: var(--muted); }
/* While a video plays inline, hide the cover controls */
.im-frame.is-playing > .im-play, .im-frame.is-playing > .im-caption, .im-frame.is-playing > .im-stat { display: none; }
.is-dark .cap-below .cap-text { color: rgba(255,255,255,.7); }

/* ---------- Checklist ---------- */
.checklist-card { padding: 40px; border-radius: 0; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.checklist-title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); font-size: 1.05rem; color: var(--ink); }
.checklist-mark { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 0; background: #fdecea; color: #c2410c; margin-top: 1px; }
.checklist-mark .icon { width: 15px; height: 15px; }
.checklist-conclusion { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 18px 20px; border-radius: 0; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 1.05rem; }
.checklist-conclusion .icon { width: 24px; height: 24px; margin-top: 2px; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; gap: 22px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.cards-grid.cols-2 { --cols: 2; } .cards-grid.cols-3 { --cols: 3; } .cards-grid.cols-4 { --cols: 4; } .cards-grid.cols-5 { --cols: 5; }
.info-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 26px; border-radius: 0; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
a.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.style-filled .info-card { border-color: transparent; box-shadow: var(--shadow-sm); }
.info-card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 0; margin-bottom: 14px; background: var(--primary-soft); color: var(--primary); }
.info-card-icon .icon { width: 26px; height: 26px; }
.info-card-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.info-card-title { font-size: 1.2rem; line-height: 1.35; margin-bottom: 4px; }
.info-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.info-card .link-arrow { margin-top: auto; padding-top: 14px; }
.is-dark .info-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.is-dark .info-card-title { color: #fff; }

/* ---------- Comparison ---------- */
.compare { max-width: 980px; margin: 0 auto; }
.compare-head { display: grid; grid-template-columns: 1fr 56px 1fr; padding: 0 28px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare-head span:last-child { color: var(--accent); }
.compare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-row { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; padding: 22px 28px; border-radius: 0; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.compare-row:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.compare-from { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); font-size: 1.02rem; }
.compare-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 0; background: var(--accent-soft); color: var(--accent); }
.compare-arrow .icon { width: 18px; height: 18px; }
.compare-to { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; color: var(--ink); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; padding: 26px 0; border-top: 2px solid var(--accent); }
.stat dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.stat dt { margin-top: 10px; color: var(--muted); font-weight: 500; }
.is-dark .stat dd { color: #fff; }
.is-dark .stat dt { color: rgba(255,255,255,.7); }

/* ---------- Quote ---------- */
.big-quote { margin: 0; }
.big-quote-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 0; background: var(--accent-soft); color: var(--accent); margin-bottom: 24px; }
.big-quote-mark .icon { width: 28px; height: 28px; }
.big-quote blockquote { margin: 0 0 28px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.4; color: var(--ink); }
.big-quote figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.big-quote figcaption img { width: 56px; height: 56px; border-radius: 0; object-fit: cover; }
.big-quote figcaption small { display: block; color: var(--muted); }
.is-dark .big-quote blockquote { color: #fff; }

/* ---------- CTA ---------- */
.cta-panel { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 8vw, 104px) clamp(28px, 6vw, 96px); border-radius: 0; color: #fff; border-left: 6px solid var(--accent);
    background: var(--tide-lines-light), linear-gradient(90deg, var(--navy), var(--primary-dark)); }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-panel.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, color-mix(in srgb, var(--navy) 94%, transparent) 0%, color-mix(in srgb, var(--primary-dark) 82%, transparent) 55%, color-mix(in srgb, var(--primary) 45%, transparent)); }
.cta-content { max-width: 760px; }
.cta-title { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; color: #fff; margin-bottom: 20px; text-wrap: balance; }
.cta-text { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255,255,255,.86); margin-bottom: 34px; max-width: 620px; }

/* ---------- Focus areas ---------- */
.focus-bento { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 300px; }
.focus-bento.n-3, .focus-bento.n-4, .focus-bento.n-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.focus-bento.n-3 .is-lead, .focus-bento.n-4 .is-lead, .focus-bento.n-5 .is-lead { grid-column: span 2; grid-row: span 2; }
.focus-bento.n-3 > :not(.is-lead), .focus-bento.n-4 > :last-child { grid-column: span 2; }
.focus-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 22px; border-radius: 0; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: var(--navy); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s; }
.focus-tile:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.focus-tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.focus-tile:hover .focus-tile-img { transform: scale(1.07); }
.focus-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,12,26,.3) 0%, rgba(4,12,26,0) 32%, rgba(4,12,26,.35) 55%, color-mix(in srgb, var(--navy) 92%, transparent) 100%); }
.focus-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--primary) 88%, transparent) 0%, color-mix(in srgb, var(--primary) 30%, transparent) 60%, transparent 100%); opacity: 0; transition: opacity .5s var(--ease); }
.focus-tile:hover::after, .focus-tile:focus-visible::after { opacity: 1; }
.focus-tile-top { display: flex; align-items: flex-start; justify-content: space-between; }
.focus-tile-num { padding: 4px 10px; border-radius: 0; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.focus-tile-title { margin: 0; color: #fff; font-size: 1.22rem; line-height: 1.25; text-wrap: balance; }
.focus-tile.is-lead .focus-tile-title { font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.3rem); line-height: 1.12; letter-spacing: -.025em; }
.focus-tile-body p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.55; transition: max-height .6s var(--ease-out), opacity .4s, margin .4s; }
.focus-tile:hover .focus-tile-body p, .focus-tile:focus-visible .focus-tile-body p, .focus-tile.is-lead .focus-tile-body p { max-height: 7em; opacity: 1; margin-top: 10px; }
.focus-tile.is-lead .focus-tile-body p { max-width: 460px; font-size: 1.02rem; }
.focus-tile-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .88rem; font-weight: 600; }
.focus-tile-cta .icon { transition: transform .3s var(--ease); }
.focus-tile:hover .focus-tile-cta .icon { transform: translate(3px, -3px); }
@media (hover: none) { .focus-tile-body p { max-height: 7em; opacity: 1; margin-top: 10px; } }
.focus-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 0; background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.focus-icon .icon { width: 24px; height: 24px; }

.focus-detailed { display: grid; gap: clamp(64px, 8vw, 112px); }
.focus-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; scroll-margin-top: calc(var(--header-h) + 32px); }
.focus-row.is-reversed .focus-row-media { order: 2; }
.focus-row-media { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.focus-row-media img { transition: transform 1.2s var(--ease-out); }
.focus-row:hover .focus-row-media img { transform: scale(1.04); }
.focus-row-media img { width: 100%; height: 100%; object-fit: cover; }
.focus-row-num { position: absolute; left: 20px; top: 20px; padding: 6px 14px; border-radius: 0; background: rgba(255,255,255,.92); font-weight: 700; font-size: .85rem; color: var(--primary); letter-spacing: .05em; }
.focus-row-text .focus-icon { margin-bottom: 20px; }
.focus-row-title { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.focus-row-text .lead-text { color: var(--primary); font-weight: 500; font-size: 1.15rem; }

/* ---------- Posts ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0; background: var(--mist); box-shadow: var(--shadow-sm); transition: box-shadow .4s; }
.post-card:hover .post-card-media { box-shadow: var(--shadow); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--primary); opacity: .4; }
.post-card-placeholder .icon { width: 48px; height: 48px; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 4px 4px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 12px; font-size: .84rem; color: var(--muted); }
.post-card-title { font-size: 1.24rem; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 10px; }
.post-card-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); }
.post-card:hover .post-card-title a { background-size: 100% 1.5px; }
.post-card-excerpt { color: var(--muted); font-size: .98rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; }
.post-card .link-arrow { margin-top: auto; }
.post-card-author { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; font-size: .88rem; color: var(--muted); }
.post-card-author::before { content: ""; flex-shrink: 0; width: 14px; height: 2px; background: var(--accent); }
.post-card-author strong { font-weight: 600; color: var(--text); }

/* Card details: topic label on the photo, one tidy line of date · reading time */
.post-card-media { position: relative; }
.post-card-chip { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(255,255,255,.94); color: var(--accent-dark); box-shadow: 0 2px 8px rgba(14,27,44,.12); }
.post-meta { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.post-meta > * + *::before { content: "·"; margin-right: 10px; color: var(--line-strong); }
.post-meta { gap: 10px; }

/* Latest stories: a magazine-cover lead story + two side stories */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 32px 36px; align-items: start; }
.news-feature .is-lead { grid-row: span 2; align-self: stretch; min-height: 560px; justify-content: flex-end; border-radius: 0; overflow: hidden; isolation: isolate; box-shadow: var(--shadow); }
.news-feature .is-lead .post-card-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.news-feature .is-lead .post-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--navy) 96%, transparent) 0%, color-mix(in srgb, var(--navy) 80%, transparent) 45%, color-mix(in srgb, var(--navy) 20%, transparent) 80%, transparent 100%); }
.news-feature .is-lead .post-card-body { flex: 0 0 auto; padding: 36px 36px 34px; color: rgba(255,255,255,.85); }
.news-feature .is-lead .post-meta, .news-feature .is-lead .post-card-excerpt { color: rgba(255,255,255,.78); }
.news-feature .is-lead .post-card-title { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1.18; letter-spacing: -.02em; }
.news-feature .is-lead .post-card-title a, .news-feature .is-lead .link-arrow { color: #fff; }
.news-feature .is-lead .post-card-author, .news-feature .is-lead .post-card-author strong { color: rgba(255,255,255,.9); }
.news-feature .is-lead .post-card-author::before { background: var(--accent-glow); }
.news-feature .is-lead .post-card-excerpt { -webkit-line-clamp: 2; max-width: 560px; }
.news-feature .is-side { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.news-feature .is-side .post-card-media { aspect-ratio: 4 / 3.2; }
.news-feature .is-side .post-card-body { padding: 0; }
.news-feature .is-side .post-card-title { font-size: 1.1rem; line-height: 1.35; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-feature .is-side .post-meta { margin-bottom: 10px; }
.news-feature .is-side + .is-side { padding-top: 32px; border-top: 1px solid var(--line); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 40px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills.center { justify-content: center; margin-bottom: 32px; }
.pill { padding: .55em 1.1em; border-radius: 0; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font-size: .92rem; font-weight: 500; text-decoration: none; transition: all .2s; }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-box { position: relative; flex: 0 1 320px; }
.search-box input { width: 100%; padding: .7em 3em .7em 1.1em; border: 1px solid var(--line-strong); border-radius: 0; font: inherit; font-size: .95rem; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-box button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 0; background: var(--primary); color: #fff; }
.search-box button .icon { width: 17px; height: 17px; }
.empty-state { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-strong); border-radius: 0; color: var(--muted); }
.empty-state > .icon { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--primary); opacity: .5; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 56px; flex-wrap: wrap; }
.page-numbers { display: flex; gap: 6px; }
.page-link, .page-num { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 0; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.page-link:hover, .page-num:hover { border-color: var(--primary); color: var(--primary); }
.page-num.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.is-disabled { opacity: .4; pointer-events: none; }
.page-num.is-gap { border: 0; }

/* ---------- Article ---------- */
.article-header { padding: 64px 0 36px; }
/* Header and introduction line up exactly with the story column below (720px) */
.article-header .container, .container.article-intro, .container.article-layout { max-width: calc(var(--article-w) + var(--gutter) * 2); }
.article-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 22px; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .92rem; color: var(--muted); }
.article-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { width: 16px; height: 16px; color: var(--accent); }
.article-author { color: var(--ink); font-weight: 600; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; overflow: hidden; border-radius: 0; background: var(--primary); color: #fff; font-weight: 700; font-size: .9rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Order: headline → byline → photo → introduction → story. The introduction is the lead-in,
   in readable body colour and slightly larger, closed off from the story by a rule. */
.article-intro { margin-bottom: 48px; }
.article-dek { margin: 0; padding-bottom: 36px; border-bottom: 1px solid var(--line); font-size: 1.22rem; line-height: 1.7; color: var(--text); }
.article-cover { max-width: 1160px; margin: 0 auto 48px; }
/* Low-resolution covers stay at text width instead of being stretched and blurred */
.article-cover.is-small { max-width: calc(var(--article-w) + var(--gutter) * 2); }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 0; }
.article-cover figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); text-align: center; }
.article-layout { padding-bottom: 96px; }
.article-body { font-size: 1.15rem; line-height: 1.85; }
.article-body > p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 4.2rem; line-height: .85; padding: 6px 10px 0 0; color: var(--primary); font-weight: 600; }
.article-body img { width: 100%; }
.article-body > :first-child { margin-top: 0; }
/* Photos in stories: clear space around each figure so the next paragraph reads as story text */
.article-body .story-figure { margin: 2.4em 0 2.2em; }
.article-body .story-figure img { display: block; width: 100%; height: auto; margin: 0; }
.article-body .story-figure img + img { margin-top: 12px; }
/* Caption: attached to the photo, smaller and quieter than body text, with the site's accent mark */
.article-body .story-figure figcaption { position: relative; margin: 0; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.55; color: var(--muted); text-align: left; }
.article-body .story-figure figcaption::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--accent); }
.article-body .story-figure figcaption em { font-style: normal; color: inherit; }
.article-body .story-figure figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Editor media blocks (.ed-*) on the public site ---------- */
.prose .ed-figure, .prose .ed-video, .prose .ed-audio, .prose .ed-quote { margin: 2.4em 0 2.2em; }
.prose .ed-figure img { display: block; width: 100%; height: auto; margin: 0; }
.prose .ed-figure a { display: block; }
.prose .ed-layout-center { max-width: 72%; margin-left: auto; margin-right: auto; }
/* Small images beside the text: the paragraphs that follow wrap around them */
.prose .ed-figure.ed-layout-left { float: left; width: 44%; margin: .4em 2em 1.2em 0; }
.prose .ed-figure.ed-layout-right { float: right; width: 44%; margin: .4em 0 1.2em 2em; }
.prose h2, .prose h3, .prose h4, .prose .ed-video, .prose .ed-audio, .prose .ed-quote, .prose hr.ed-divider { clear: both; }
/* One caption style for every photo, video and audio clip */
.prose .ed-figure figcaption, .prose .ed-video figcaption, .prose .ed-audio figcaption {
    position: relative; margin: 0; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.55; color: var(--muted); text-align: left; }
.prose .ed-figure figcaption::before, .prose .ed-video figcaption::before, .prose .ed-audio figcaption::before {
    content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; background: var(--accent); }
.prose .ed-video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.prose .ed-video-frame iframe, .prose .ed-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; object-fit: cover; }
.prose .ed-audio { padding: 20px 22px 6px; background: var(--mist); border-left: 4px solid var(--accent); }
.prose .ed-audio-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.prose .ed-audio-title::before { content: ""; flex-shrink: 0; width: 18px; height: 12px; color: var(--accent); background: var(--tide-ticks); }
.prose .ed-audio audio { display: block; width: 100%; margin-bottom: 14px; }
.prose .ed-audio figcaption { border-bottom: 0; padding-top: 0; }
.prose .ed-audio figcaption::before { top: 5px; }
/* Pull quote: big italic statement framed by an accent rule */
.prose .ed-quote blockquote { margin: 0; padding: 0; border: 0; background: none; }
.prose .ed-quote blockquote p { margin: 0 0 .4em; }
.prose .ed-quote-pull { padding: 28px 0 22px; border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.prose .ed-quote-pull blockquote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.4; color: var(--ink); }
.prose .ed-quote-callout { padding: 22px 26px; background: var(--accent-soft); border-left: 5px solid var(--accent); }
.prose .ed-quote-callout blockquote p { font-family: var(--font-sans); font-style: normal; font-size: 1.12rem; line-height: 1.65; color: var(--ink); font-weight: 500; }
.prose .ed-quote figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; font-size: .92rem; color: var(--muted); }
.prose .ed-quote figcaption strong { color: var(--ink); }
.prose .ed-quote figcaption strong + span::before { content: "— "; }
/* Section divider in the tide-gauge style */
.prose hr.ed-divider { height: 14px; margin: 3em auto; border: 0; width: 46px; color: var(--accent);
    background: linear-gradient(currentColor 0 0) 0 100% / 10px 6px no-repeat, linear-gradient(currentColor 0 0) 18px 100% / 10px 10px no-repeat, linear-gradient(currentColor 0 0) 36px 100% / 10px 14px no-repeat; }
.prose::after { content: ""; display: block; clear: both; }
.article-body em { color: var(--muted); }
.share-row a, .share-row button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .2s; }
.share-row a:hover, .share-row button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.share-row .icon { width: 18px; height: 18px; }
.share-row [hidden] { display: none; }
/* End of story: share again, or go back to the list */
.article-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-end-label { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.article-back { margin-left: auto; }
.article-back:hover .icon { transform: translateX(-4px); }
/* Shown after sharing to Instagram from a computer */
.share-note { flex-basis: 100%; margin: 0; font-size: .92rem; color: var(--accent-dark); }
.share-row button.is-copied { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Videos ---------- */
.video-card { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.video-thumb { position: relative; display: block; overflow: hidden; border-radius: 0; aspect-ratio: 16 / 9; background: #13233f; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,20,42,.55), transparent 55%); }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb-empty { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.4); }
.video-thumb-empty .icon { width: 48px; height: 48px; }
.video-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 0; background: rgba(255,255,255,.95); color: var(--primary); box-shadow: 0 0 0 8px rgba(255,255,255,.2); transition: transform .3s var(--ease); }
.video-play .icon { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.video-card:hover .video-play { transform: scale(1.1); }
.video-duration { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 3px 9px; border-radius: 0; background: rgba(0,0,0,.7); color: #fff; font-size: .8rem; font-weight: 600; }
.video-info { display: flex; flex-direction: column; gap: 4px; }
.video-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; color: var(--ink); }
.video-desc { font-size: .95rem; color: var(--muted); line-height: 1.6; }
.is-dark .video-title { color: #fff; }
.is-dark .video-desc { color: rgba(255,255,255,.7); }
.video-card.is-large .video-thumb { border-radius: 0; }
.video-card.is-large .video-play { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
.video-card.is-large .video-play .icon { width: 32px; height: 32px; }
.video-card.is-large .video-title { font-size: 1.5rem; }
/* Smart video layouts — featured videos lead, the rest fill the space around them */
.vs-single { max-width: 980px; margin: 0 auto; }
.vs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vs-featured { display: grid; gap: 32px; }
.vs-featured.cols-2 { grid-template-columns: 1fr 1fr; }
.vs-featured.cols-3 { grid-template-columns: repeat(3, 1fr); }
.vs-lead { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.vs-side { display: grid; grid-template-rows: repeat(var(--rows, 3), minmax(0, 1fr)); gap: 16px; }
/* The lead video sets the row height; the side column fills exactly that height */
.vs-lead .vs-side { height: 0; min-height: 100%; }
.video-card.is-stack .video-thumb { min-height: 0; }
.video-card.is-stack .video-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vs-more.cols-2 { --cols: 2; } .vs-more.cols-4 { --cols: 4; }
.vs-more { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 32px 28px; margin-top: 48px; padding-top: 40px; border-top: 1px solid rgba(127,127,127,.2); }
.video-card.is-feature .video-thumb { border-radius: 0; }
.video-card.is-feature .video-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.video-card.is-feature .video-play .icon { width: 28px; height: 28px; }
.video-card.is-feature .video-title { font-size: 1.35rem; }
/* Two stacked cards beside the lead: thumbnails stretch to match its height */
.video-card.is-stack { height: 100%; gap: 10px; }
.video-card.is-stack .video-thumb { flex: 1; aspect-ratio: auto; }
.video-card.is-stack .video-title { font-size: 1.08rem; }
/* Three rows beside the lead */
.video-card.is-row { flex-direction: row; align-items: stretch; gap: 16px; height: 100%; padding: 10px; border-radius: 0; background: rgba(127,127,127,.07); transition: background .2s; }
.video-card.is-row:hover { background: rgba(127,127,127,.14); }
.video-card.is-row .video-thumb { flex: 0 0 46%; aspect-ratio: auto; border-radius: 0; }
.video-card.is-row .video-info { justify-content: center; }
.video-card.is-row .video-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; box-shadow: none; }
.video-card.is-row .video-play .icon { width: 16px; height: 16px; }
.video-card.is-row .video-title { font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.video-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .82rem; font-weight: 600; color: var(--accent); }
.is-dark .video-cta { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.video-cta .icon { width: 12px; height: 12px; fill: currentColor; }
.video-badge { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 11px; border-radius: 0; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px 28px; }
.video-grid.is-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; padding-bottom: 16px; scrollbar-width: thin; }
.video-grid.is-carousel > * { flex: 0 0 min(420px, 85%); scroll-snap-align: start; }

/* ---------- Partners ---------- */
.partner-logo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 148px; padding: 22px; border-top: 3px solid var(--accent) !important; border-radius: 0; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: center; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
a.partner-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
/* Logos always in their true colours, with the organisation name underneath */
.partner-mark { display: flex; align-items: center; justify-content: center; height: 64px; width: 100%; }
.partner-logo img { max-height: 64px; max-width: 80%; width: auto; object-fit: contain; }
.monogram { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 0; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.partner-name { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
/* Cards keep a steady width and the row is centred, so 1–2 partners don't leave a gap on one side */
.partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 24px; }
.partner-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 0; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s; }
.partner-card:hover { box-shadow: var(--shadow); }
.partner-card .partner-logo { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 150px; background: linear-gradient(180deg, var(--mist), #fff); }
.partner-card .partner-logo .partner-name { display: none; }
.partner-card .monogram { width: 68px; height: 68px; font-size: 1.5rem; border-radius: 0; }
.partner-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.partner-card-body .chip { align-self: flex-start; margin-bottom: 10px; }
.partner-card-title { font-size: 1.3rem; margin-bottom: 8px; }
.partner-card-body p { color: var(--muted); font-size: .98rem; }
.partner-card-body .link-arrow { margin-top: auto; }

/* ---------- Organisation logo tiles (partners and network members) ----------
   Only the logo shows. On hover or keyboard focus the tile lifts, the logo glides up and a caption
   with the name and country slides up from the bottom. A click opens the website. */
.org-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.org-wall.is-start { justify-content: flex-start; }
.org-tile { position: relative; display: grid; place-items: center; width: 200px; height: 128px; padding: 18px 24px; overflow: hidden;
    background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; outline: none;
    transition: border-color .25s, box-shadow .35s, transform .35s var(--ease-out); }
.org-mark { display: grid; place-items: center; width: 100%; height: 100%; transition: transform .45s var(--ease-out); }
.org-mark img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.org-initials { display: grid; place-items: center; width: 58px; height: 58px; background: var(--primary); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.org-go { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; background: var(--accent); color: #fff;
    opacity: 0; transform: translate(-4px, 4px); transition: opacity .25s, transform .3s var(--ease-out); }
.org-go .icon { width: 14px; height: 14px; }
.org-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 14px 10px; background: var(--navy); color: #fff; text-align: left;
    transform: translateY(101%); transition: transform .4s var(--ease-out); }
.org-info strong { display: block; overflow: hidden; font-family: var(--font-display); font-size: .84rem; font-weight: 700; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.org-info small { display: block; margin-top: 1px; font-size: .74rem; color: var(--accent-glow); }
.org-tile:hover, .org-tile:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.org-tile:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, #fff); outline-offset: 3px; }
.org-tile:hover .org-mark, .org-tile:focus-visible .org-mark { transform: translateY(-20px) scale(.9); }
.org-tile:hover .org-info, .org-tile:focus-visible .org-info { transform: none; }
.org-tile:hover .org-go, .org-tile:focus-visible .org-go { opacity: 1; transform: none; }
.org-tile:not(.is-link) { cursor: default; }
/* In the scrolling strip: room for the lift, tiles keep their size */
.marquee:has(.org-tile) { padding: 6px 0; }
.marquee .org-tile { flex: 0 0 auto; }
@media (max-width: 760px) {
    .org-wall, .org-wall.is-start { justify-content: center; gap: 12px; }
    .org-tile { width: calc(50vw - 30px); max-width: 200px; height: 112px; padding: 14px 18px; }
    .org-mark img { max-height: 52px; }
}

/* ---------- Gallery ---------- */
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: 0; background: var(--mist); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(8,20,42,0); transition: background .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(8,20,42,.25); }
.gallery-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; background: #fff; color: var(--ink); opacity: 0; transform: scale(.8); transition: all .3s var(--ease); }
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-item.is-hidden { display: none; }
.gallery-masonry { columns: 3 300px; column-gap: 18px; }
.gallery-masonry .gallery-item { margin-bottom: 18px; break-inside: avoid; }
.gallery-masonry .gallery-item img { height: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-grid .gallery-item { aspect-ratio: 4 / 3; }
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.gallery-mosaic .gallery-item, .gallery-grid .gallery-item { border-radius: 0; }
.gallery-mosaic .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------- Viewer (lightbox) ---------- */
.viewer { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 64px 80px 80px; background: rgba(6, 14, 28, .94); }
.viewer[hidden] { display: none; }
.viewer-stage { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: viewerIn .3s var(--ease); }
.viewer-stage .viewer-video { width: min(1200px, 100%); aspect-ratio: 16 / 9; max-height: 100%; background: #000; border-radius: 0; overflow: hidden; animation: viewerIn .3s var(--ease); }
.viewer-stage iframe, .viewer-stage video { width: 100%; height: 100%; border: 0; }
.viewer-caption { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .95rem; padding: 0 80px; }
.viewer-close, .viewer-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 0; border: 0; background: rgba(255,255,255,.1); color: #fff; transition: background .2s; }
.viewer-close:hover, .viewer-nav:hover { background: rgba(255,255,255,.25); }
.viewer-close { top: 18px; right: 18px; }
.viewer-nav { top: 50%; margin-top: -26px; }
.viewer-nav.prev { left: 18px; } .viewer-nav.next { right: 18px; }
.viewer.is-single .viewer-nav { display: none; }
@keyframes viewerIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside .btn { margin-top: 12px; margin-right: 8px; }
.faq-aside .section-foot { margin-top: 12px; text-align: left; }
.faq-count { color: var(--muted); font-size: .95rem; margin: 18px 0 4px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 0; background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.4; }
.faq-item summary:hover .faq-q { color: var(--primary); }
.faq-icon { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 0; background: var(--primary-soft); transition: background .3s, transform .3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 0; background: var(--primary); transition: transform .3s var(--ease), background .3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--primary); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 26px 24px; color: var(--text); }
.faq-a ul { columns: 2 220px; column-gap: 32px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.team-card { text-align: center; }
.team-photo { width: 180px; height: 180px; margin: 0 auto 18px; border-radius: 0; overflow: hidden; background: var(--mist); display: grid; place-items: center; color: var(--primary); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .icon { width: 56px; height: 56px; opacity: .4; }
.team-name { font-size: 1.25rem; margin-bottom: 2px; }
.team-role { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.team-bio { color: var(--muted); font-size: .95rem; }
.team-links { display: flex; justify-content: center; gap: 8px; }
.team-links a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 0; background: var(--primary-soft); color: var(--primary); }
.team-links .icon { width: 17px; height: 17px; }

/* ---------- Forms ---------- */
.contact-layout, .apply-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-layout.no-form { grid-template-columns: 1fr; max-width: 820px; }
.apply-layout { grid-template-columns: 380px 1fr; }
.apply-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 0; background: #fff; border: 1px solid var(--line); }
.contact-icon { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 0; background: var(--accent-soft); color: var(--accent); }
.contact-list small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { color: var(--ink); font-weight: 600; word-break: break-word; }

/* ---------- Contact without a form: intro + navy "contact desk" panel ---------- */
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.cd-title { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); line-height: 1.05; letter-spacing: -.03em; }
.cd-lead { max-width: 520px; margin-top: 18px; }
.cd-actions { margin-top: 32px; }
.cd-actions .btn .icon { transform: none !important; }
.cd-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
    color: #fff; background: var(--tide-lines-light), linear-gradient(150deg, var(--navy), var(--primary-dark)); border-left: 6px solid var(--accent); box-shadow: var(--shadow-lg); }
/* Tide-gauge mark, the same motif as the section labels, scaled up as a watermark */
.cd-panel::after { content: ""; position: absolute; right: 28px; top: 26px; z-index: -1; width: 54px; height: 36px; color: var(--accent-glow); opacity: .35;
    background: linear-gradient(currentColor 0 0) 0 100% / 12px 15px no-repeat, linear-gradient(currentColor 0 0) 21px 100% / 12px 24px no-repeat, linear-gradient(currentColor 0 0) 42px 100% / 12px 36px no-repeat; }
.cd-channels { list-style: none; margin: 0; padding: 0; }
.cd-channel { display: flex; gap: 22px; align-items: flex-start; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.cd-channel:first-child { padding-top: 6px; }
.cd-channel:last-child { border-bottom: 0; padding-bottom: 6px; }
.cd-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; background: var(--accent); color: #fff; }
.cd-icon .icon { width: 24px; height: 24px; }
.cd-body { min-width: 0; flex: 1; container-type: inline-size; }
.cd-label { margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-glow); }
.cd-value { display: block; margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.35; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
a.cd-value:hover { color: var(--accent-glow); }
/* The address stays on one line: the size follows the card's width (container query units) */
.cd-email { overflow-wrap: normal; word-break: normal; white-space: nowrap; font-size: clamp(.8rem, 4.1cqi, 1.2rem); }
@media (max-width: 359px) { .cd-email { white-space: normal; overflow-wrap: anywhere; } }   /* very small phones: wrap rather than overflow */
.cd-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px; }
.cd-links a, .cd-links button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.78); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.cd-links a:hover, .cd-links button:hover { color: #fff; }
.cd-links .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.cd-links a:hover .icon { transform: translateX(3px); }
/* Copy buttons swap their label once the address is copied */
.cd-copy .when-copied { display: none; }
.cd-copy.is-copied .when-idle { display: none; }
.cd-copy.is-copied .when-copied { display: inline; }
.cd-copy.is-copied, .cd-links .cd-copy.is-copied { color: var(--accent-glow); }
.btn.cd-copy.is-copied { --btn-border: var(--accent); --btn-fg: var(--accent-dark); }
.cd-map { margin-top: 56px; }
.cd-map iframe { display: block; width: 100%; height: var(--map-h, 380px); border: 0; border-left: 6px solid var(--accent); box-shadow: var(--shadow); background: var(--mist, #eef3f5); }
.map-frame { margin-top: 20px; border-radius: 0; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.form-card { padding: clamp(28px, 4vw, 48px); border-radius: 0; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.form-title { font-size: 1.6rem; margin-bottom: 24px; }
.form fieldset { border: 0; margin: 0 0 32px; padding: 0 0 32px; border-bottom: 1px solid var(--line); min-width: 0; }
.form legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 20px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.form legend > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 0; background: var(--primary); color: #fff; font-family: var(--font-sans); font-size: .9rem; }
.form legend small { font-family: var(--font-sans); font-size: .85rem; font-weight: 500; color: var(--muted); }
.fieldset-hint { color: var(--muted); font-size: .92rem; margin: -8px 0 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 20px; }
.field > label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: #c2410c; }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea {
    width: 100%; padding: .78em 1em; border: 1.5px solid var(--line-strong); border-radius: 0; background: #fff;
    font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235d6b7a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2.6em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field [aria-invalid="true"] { border-color: #dc2626 !important; }
.field-error { color: #b91c1c; font-size: .88rem; margin: 6px 0 0; font-weight: 500; }
.field-hint { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.field > .file-drop, .file-drop { display: flex; margin: 0; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: 0; color: var(--muted); font-size: .95rem; cursor: pointer; transition: all .2s; }
.file-drop:hover, .file-input:focus-visible + .file-drop { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.file-drop.has-file { border-style: solid; border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.field-file > label:first-child { margin-bottom: 7px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; font-size: .95rem; color: var(--text); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 0; margin-bottom: 24px; font-size: .97rem; line-height: 1.55; }
.alert > .icon { width: 24px; height: 24px; margin-top: 1px; }
.alert-success { background: var(--accent-soft); color: var(--accent-dark); border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert.big { padding: 28px; font-size: 1.05rem; margin: 0; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.aside-title { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 32px 0 14px; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.benefit-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.benefit-list .icon { color: var(--accent); margin-top: 4px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 20px 52px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 0; border: 2px solid var(--primary); color: var(--primary); font-weight: 700; font-size: .9rem; background: #fff; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.steps strong { display: block; color: var(--ink); }
.steps span { color: var(--muted); font-size: .95rem; }

.embed-block iframe { width: 100%; border: 0; border-radius: 0; }
.error-page .error-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 0; background: var(--primary-soft); color: var(--primary); margin-bottom: 20px; }
.error-page .error-icon .icon { width: 40px; height: 40px; }
.error-page .page-title { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--tide-lines-light), var(--navy); color: rgba(255,255,255,.72); padding: 80px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.5fr; gap: 48px; padding-bottom: 40px; }
.footer-logo { display: inline-block; padding: 10px 14px; margin-bottom: 22px; border-radius: 0; background: #fff; }
.footer-logo img { height: 56px; width: auto; }
.footer-brand p { max-width: 360px; line-height: 1.7; }
.footer-title { font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-glow); margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col a.btn, .footer-col a.btn:hover { color: var(--ink); text-decoration: none; }
.is-soon { color: rgba(255,255,255,.5); }
.is-soon::after { content: "Soon"; display: inline-block; margin-left: 8px; vertical-align: 1px; padding: 1px 8px; border-radius: 0; background: rgba(255,255,255,.08); font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--accent-glow); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-col .btn { margin-top: 24px; }
.socials { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 0; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s var(--ease); }
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }
/* Oversized wordmark fading into the sea */
/* Sized from the footer container's width (cqi), not the window, so the full name always fits */
.site-footer > .container { container-type: inline-size; }
.footer-wordmark { margin: 0 0 -.14em; font-family: var(--font-display); font-weight: 800; font-size: min(8.2cqi, 8.4rem); line-height: 1.05; letter-spacing: -.05em; text-align: center; white-space: nowrap; overflow: hidden; user-select: none; padding: 0 .04em;
    background: linear-gradient(180deg, rgba(255,255,255,.16) 10%, rgba(255,255,255,0) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-sep { margin: 0 10px; color: rgba(255,255,255,.35); }
.footer-legal { color: rgba(255,255,255,.75); text-decoration: none; white-space: nowrap; }
.footer-legal:hover { color: #fff; text-decoration: underline; }
.footer-tagline { flex: 1; text-align: center; color: rgba(255,255,255,.55); }
.to-top { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 0; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; transition: all .2s; }
.to-top:hover { background: #fff; color: var(--navy); }

/* ---------- Reveal animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee { mask-image: none; -webkit-mask-image: none; }
    .hero-copy > *, .hero-strip, .page-header-content > * { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
    .main-nav a:not(.btn) { padding: 8px 10px; font-size: .9rem; }
    .main-nav { gap: 12px; }
    .cards-grid.cols-5 { --cols: 3; }
}

@media (max-width: 1100px) {
    :root { --header-h: 76px; }
    .site-header.is-scrolled .header-inner { height: 66px; }
    /* Larger logo on phones/tablets; the image has white margins, so it is nudged left to line up with the content */
    .brand img { height: 60px; margin-left: -12px; }
    .site-header.is-scrolled .brand img { height: 52px; }
    .nav-toggle { display: block; z-index: 2; }
    /* Menu drops down as a card under the floating bar */
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 1; flex-direction: column; align-items: stretch; gap: 18px;
        max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h));
        padding: 8px var(--gutter) 24px; border-top: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center; transition: opacity .25s, transform .3s var(--ease-out), visibility .25s;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    .nav-open { overflow: hidden; }
    .nav-open .site-header::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(4,12,26,.4); }
    /* Mobile layout: no top bar (email and contributor sign-in are in the footer) */
    .topbar { display: none; }
    :root { --topbar-h: 0px; }
    /* News & Stories: no category buttons or search in the mobile layout; the stories come first */
    .filter-bar { display: none; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li { display: block; }
    .main-nav a:not(.btn) { padding: 16px 4px 16px 16px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; border-bottom: 1px solid var(--line); }
    .main-nav a:not(.btn)::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; transform: scaleY(0); }
    .main-nav a.is-active::after { transform: scaleY(1); }
    .main-nav a:not(.btn):hover::after { transform: scaleY(1); }
    .main-nav { align-items: stretch; }
    .main-nav a.is-active { color: var(--accent); }
    .nav-cta { width: 100%; padding: 1em; font-size: 1.05rem; }
    .focus-bento, .focus-bento.n-3, .focus-bento.n-4, .focus-bento.n-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 280px; }
    .focus-bento > .focus-tile { grid-column: auto; grid-row: auto; }
    .focus-bento > .focus-tile.is-lead { grid-column: span 2; }
    .hero-strip { flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 8px 8px; }
    .hero-strip-label { padding-left: 12px; }
    .hero-strip ul { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

    .split, .contact-layout, .apply-layout, .faq-layout { grid-template-columns: 1fr; }
    .cd-grid { grid-template-columns: 1fr; gap: 40px; }
    .im-split, .im-split.bal-text, .im-split.bal-media { grid-template-columns: 1fr; }
    .im-media.is-sticky { position: static; }
    .im-split.has-eyebrow > .im-media { margin-top: 0; }
    .im-split > .im-media { order: -1; max-width: 720px; }
    .cap-badge .im-caption { left: 16px; }
    .split.media-left .split-media { order: 0; }
    .faq-aside, .apply-aside { position: static; }
    .focus-row, .focus-row.is-reversed { grid-template-columns: 1fr; }
    .focus-row.is-reversed .focus-row-media { order: 0; }
    .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-feature { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .news-feature .is-lead { grid-column: span 2; grid-row: auto; min-height: 480px; }
    .news-feature .is-side { grid-template-columns: 1fr; align-items: start; }
    .news-feature .is-side + .is-side { padding-top: 0; border-top: 0; }
    .news-feature .is-side .post-card-media { aspect-ratio: 16 / 10; }
    .vs-lead { grid-template-columns: 1fr; }
    .vs-lead .vs-side { height: auto; min-height: 0; }
    .vs-side { grid-template-rows: none; grid-template-columns: repeat(var(--rows, 3), minmax(0, 1fr)); }
    .vs-side .video-card.is-row, .vs-side .video-card.is-stack { flex-direction: column; padding: 0; background: none; }
    .vs-side .video-card .video-thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; width: 100%; }
    .vs-featured.cols-3 { grid-template-columns: 1fr 1fr; }
    .vs-more.vs-more { --cols: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
    .cards-grid.cols-4 { --cols: 2; }
}

@media (max-width: 760px) {
    /* Sections switched to "Hide on mobile" in the admin */
    .hide-on-mobile { display: none !important; }
    :root { --gutter: 16px; }
    body { font-size: 1.025rem; }
    .sp-normal { padding: 80px 0; }
    /* Focus-area strip is hidden on phones; the Focus Areas section further down covers it */
    .hero-strip { display: none; }
    .page-header { padding: 56px 0 56px; }
    .page-header.has-image { padding: 72px 0 64px; }
    .focus-bento, .focus-bento.n-3, .focus-bento.n-4, .focus-bento.n-5 { grid-template-columns: 1fr; grid-auto-rows: 320px; }
    .focus-bento > .focus-tile.is-lead { grid-column: auto; grid-row: span 1; }
    .news-feature .is-lead { min-height: 440px; }
    .news-feature .is-lead .post-card-body { padding: 26px 22px 24px; }
    .site-footer { padding-top: 56px; }
    .sp-compact { padding: 48px 0; }
    .sp-spacious { padding: 96px 0; }
    /* A hidden section shouldn't swallow the next section's top spacing */
    .hide-on-mobile + .sp-normal { padding-top: 80px; }
    .hide-on-mobile + .sp-compact { padding-top: 48px; }
    .hide-on-mobile + .sp-spacious { padding-top: 96px; }
    .section-head { margin-bottom: 36px; }
    .cd-map { margin-top: 40px; }
    .cd-map iframe { height: min(var(--map-h, 380px), 320px); }
    .cta-panel { padding: 48px 24px; }
    .cta-panel .btn-row .btn { flex: 1 1 100%; justify-content: center; }
    /* Title-only cards: icon beside the title, compact */
    .info-card:not(:has(> p, .info-card-num, .link-arrow)) { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
    .info-card:not(:has(> p, .info-card-num, .link-arrow)) .info-card-icon { flex-shrink: 0; width: 44px; height: 44px; margin: 0; }
    .info-card:not(:has(> p, .info-card-num, .link-arrow)) .info-card-title { margin: 0; font-size: 1.05rem; }
    .cards-grid { gap: 14px; }
    .article-dek { padding-bottom: 26px; font-size: 1.08rem; line-height: 1.65; }
    .article-intro { margin-bottom: 32px; }
    .article-end { margin-top: 40px; }
    /* Byline: author on its own line, then date and reading time together */
    .article-meta { gap: 12px 18px; }
    .article-author { flex-basis: 100%; }
    .article-title { font-size: 1.75rem; line-height: 1.15; }
    .article-end-label { flex-basis: 100%; }
    .article-back { margin-left: 0; }
    .share-row { gap: 6px; }
    .share-row a, .share-row button { width: 38px; height: 38px; }
    .focus-row-media { box-shadow: var(--shadow-sm); }
    .bg-default + .bg-default.sec-cta, .bg-soft + .bg-soft.sec-cta, .bg-mist + .bg-mist.sec-cta { padding-top: 24px; }
    .section-head.is-split { display: block; }
    .section-head.is-split > .btn { display: none; }
    .mobile-only { display: block; }
    .btn.mobile-only { display: inline-flex; }
    .cd-actions .btn { flex: 1 1 100%; }
    .cd-channel { flex-direction: column; gap: 14px; padding: 22px 0; }   /* icon above the text, so the email address has the full width */
    .cd-body { align-self: stretch; }
    .cd-icon { width: 44px; height: 44px; }
    .cd-panel::after { display: none; }
    .section-foot { margin-top: 36px; }
    .hero-large { min-height: 560px; }
    .hero.has-poster .hero-video { display: none; }
    /* ---------- Hero on phones: cinematic cover ----------
       The photo stays clear at the top and fades into deep navy where the text sits;
       short label, tight headline, a 3-line teaser and one clear main action. */
    .hero-content { gap: 0; padding-top: 32px; padding-bottom: 36px; }
    .hero .hero-media::after { background: linear-gradient(0deg,
        rgb(var(--ov-rgb) / .96) 0%, rgb(var(--ov-rgb) / .88) 34%, rgb(var(--ov-rgb) / .5) 62%, rgb(var(--ov-rgb) / .12) 86%, transparent 100%); }
    .hero-eyebrow { gap: 8px; margin-bottom: 16px; font-size: clamp(.55rem, 2.75vw, .78rem); letter-spacing: .06em; line-height: 1.5; white-space: nowrap; }   /* one line on phones */
    .hero-eyebrow::before { width: 15px; height: 10px; }
    .hero-title { font-size: clamp(2.05rem, 1.2rem + 4.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; }
    /* Phones: headline straight to the main button; the introduction is shown on larger screens */
    .hero-text { display: none; }
    .hero-title { margin-bottom: 34px; }
    .hero .btn-row { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 0; }
    .hero .btn-row .btn { justify-content: center; }
    .hero .btn-row .btn-accent { min-height: 54px; font-size: 1.02rem; box-shadow: 0 10px 28px -10px rgba(28,124,69,.75); }
    /* Second action as a quiet link under the main button */
    .hero .btn-row .btn-ghost-light { min-height: 46px; border-color: transparent; background: none; color: rgba(255,255,255,.92); font-size: .96rem; }
    .hero .btn-row .btn-ghost-light:hover { background: rgba(255,255,255,.08); }
    /* "Who we are" quote: a little smaller, split at the dash into two lines */
    .im-quote { padding: 20px 18px 20px 60px; }
    .im-quote-mark { left: 16px; top: 20px; width: 30px; height: 30px; }
    .im-quote p { font-size: 1.1rem; line-height: 1.5; }
    .im-quote-line { display: block; }
    .page-lead { font-size: 1.08rem; }
    .cards-grid, .cards-grid.cols-3, .cards-grid.cols-4, .cards-grid.cols-5 { --cols: 1; }
    .cards-grid.cols-2 { --cols: 1; }
    .posts-grid, .news-feature { grid-template-columns: 1fr; }
    /* Story cards on phones: white card, border and soft shadow, padded text, clear gaps */
    .posts-grid { gap: 22px; }
    .news-feature { gap: 22px; }
    .post-card:not(.is-lead) { overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px -18px rgba(14,27,44,.35); }
    .post-card:not(.is-lead) .post-card-media { box-shadow: none; }
    .post-card:not(.is-lead) .post-card-body { padding: 18px 18px 20px; }
    .post-card-title { font-size: 1.18rem; }
    .post-card-excerpt { margin-bottom: 16px; }
    .post-card .link-arrow { align-self: flex-start; }
    .news-feature .is-side { display: flex; gap: 0; }
    .news-feature .is-side + .is-side { padding-top: 0; border-top: 0; }
    .news-feature .is-lead { grid-column: auto; }
    .compare-head { display: none; }
    .compare-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
    .compare-arrow { transform: rotate(90deg); width: 30px; height: 30px; }
    .checklist-card { padding: 26px 22px; }
    .gallery-masonry { columns: 2 140px; column-gap: 10px; }
    .gallery-masonry .gallery-item { margin-bottom: 10px; }
    .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
    .gallery-mosaic .gallery-item:nth-child(n+4) { display: none; }
    .gallery-mosaic .gallery-item:first-child { grid-column: span 2; }
    .video-grid { grid-template-columns: 1fr; }
    .vs-duo, .vs-featured.cols-2, .vs-featured.cols-3, .vs-side { grid-template-columns: 1fr; }
    .vs-more.vs-more { --cols: 1; }
    .vs-duo, .vs-featured { gap: 28px; }
    .vs-more { margin-top: 32px; padding-top: 28px; }
    .vs-side .video-card.is-row { flex-direction: row; padding: 8px; background: rgba(127,127,127,.07); }
    .vs-side .video-card.is-row .video-thumb { flex: 0 0 42%; aspect-ratio: 16 / 10; }
    .video-card.is-feature .video-title { font-size: 1.15rem; }
    .partner-logo { min-height: 110px; padding: 16px; }
    .partner-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; border-radius: 0; }
    .faq-item summary { padding: 18px 18px; }
    .faq-q { font-size: 1.08rem; }
    .faq-a { padding: 0 18px 20px; }
    .viewer { padding: 56px 8px 72px; }
    .viewer-nav { top: auto; bottom: 14px; margin: 0; width: 46px; height: 46px; }
    .viewer-nav.prev { left: 16px; } .viewer-nav.next { right: 16px; }
    .viewer-caption { bottom: 26px; padding: 0 72px; font-size: .85rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .article-header { padding: 40px 0 24px; }
    .article-cover { padding: 0; margin-bottom: 28px; }
    .article-body { font-size: 1.08rem; }
    /* On phones, side images and centred media span the full width */
    .prose .ed-figure.ed-layout-left, .prose .ed-figure.ed-layout-right { float: none; width: 100%; margin: 2em 0; }
    .prose .ed-layout-center { max-width: 100%; }
    .prose .ql-indent-2, .prose .ql-indent-3, .prose .ql-indent-4 { margin-left: 2.5em; }
    .im-play-icon { width: 66px; height: 66px; }
    .cap-overlay .im-caption { padding: 44px 16px 14px; }
    .cap-title.is-large { font-size: 1.45rem; }
    .cap-badge .im-caption { left: 12px; right: 12px; max-width: none; padding: 14px 18px; }
    .admin-bar { font-size: .8rem; gap: 8px; } .admin-bar > span { display: none; }
}

/* Name card on phones: a compact card so the photo stays the hero, the title on one line where it fits */
@media (max-width: 560px) {
    .im-figure.cap-badge { padding-bottom: 28px; }
    .cap-badge .im-caption { left: 12px; max-width: calc(100% - 24px); gap: 2px; padding: 12px 16px 13px; }
    .cap-badge .cap-title.is-small { font-size: .95rem; }
    .cap-badge .cap-title.is-medium { font-size: 1.08rem; }
    .cap-badge .cap-title.is-large { font-size: 1.3rem; }
    .cap-badge .cap-text { font-size: clamp(.72rem, 3.25vw, .82rem); line-height: 1.4; }
}

/* Smallest phones: the hero tagline stays on one line */
@media (max-width: 340px) { .hero-eyebrow { letter-spacing: .02em; gap: 6px; } }
