/* =========================================================================
   Koimeret Enterprise — design system
   Geoinformation · Insight · Impact
   Professional GIS-consultancy look: brand green, inline SVG icons,
   animated topographic hero, reveal-on-scroll, responsive (F1), accessible.
   ========================================================================= */
@font-face {
    font-family: "Inter var"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/inter-var.260c81a4759b.woff2") format("woff2");
}
@font-face {
    font-family: "Space Grotesk var"; font-style: normal; font-weight: 300 700; font-display: swap;
    src: url("../fonts/space-grotesk-var.87c506d88b9f.woff2") format("woff2");
}
:root {
    /* Professional identity: teal primary + coral accent on deep slate,
       with a sky-blue spark for gradients. Distinct, high-contrast, readable. */
    --brand: #14b8a6;          /* teal-500 — primary */
    --brand-2: #5eead4;        /* teal-300 — light text/links on dark */
    --brand-dark: #0d9488;     /* teal-600 — pressed/hover */
    --accent: #fb7185;         /* coral — highlight & CTA */
    --accent-2: #38bdf8;       /* sky-400 — gradient spark */
    --ink: #16202c;            /* dark text on light content */
    --muted: #566573;
    --line: rgba(18,28,42,.14);
    --bg: #ffffff;             /* card surface */
    --bg-alt: #eef2f7;         /* alt section background */
    --bg-deep: #0b1220;        /* deep slate-navy base */
    --chrome-1: #080d16;       /* header/footer — darker than the page */
    --chrome-2: #050810;       /* header/footer — deepest edge */
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 2040px;
    --shadow: 0 18px 44px -20px rgba(3, 8, 18, .75);
    --shadow-sm: 0 8px 22px -14px rgba(3, 8, 18, .6);
    --glow: 0 12px 30px -12px rgba(20, 184, 166, .55);
    --font: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Space Grotesk var", "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; font-size: 118.75%; } /* 19px base for readability */
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1100px 640px at 85% -10%, rgba(20,184,166,.10) 0%, transparent 60%),
        radial-gradient(900px 600px at 5% 4%, rgba(56,189,248,.07) 0%, transparent 55%),
        #f5f8fb;
    background-attachment: fixed;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; position: relative; z-index: 1; }
/* Site-wide animated network background (D3 canvas), fixed behind everything. */
.site-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0;
    pointer-events: none; opacity: .6; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; color: var(--ink); letter-spacing: -.02em; }
.brand-text { font-family: var(--font-display); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: min(94vw, var(--maxw)); margin: 0 auto; padding: 0 clamp(1.5rem, 3vw, 3rem); }
.section { padding: clamp(3rem, 4.5vw, 4.75rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(2.2rem, 3.5vw, 3.25rem) 0; }
/* Readable measure for text-heavy blocks inside the wide container */
.measure { max-width: 68ch; }
/* Consistent vertical rhythm between stacked blocks within a section */
.section-block { margin-top: clamp(2.5rem, 3.5vw, 3.5rem); }
.section-block--tight { margin-top: clamp(1.3rem, 2vw, 1.8rem); }

/* Icons ------------------------------------------------------------------- */
.icon { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(56,189,248,.12));
    border: 1px solid rgba(20,184,166,.25);
    color: var(--brand); margin-bottom: 1rem; flex: none;
    animation: badge-glow 3.8s ease-in-out infinite;
}
@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
    50% { box-shadow: 0 0 20px 1px rgba(20,184,166,.3); }
}
.icon-badge .icon { width: 26px; height: 26px; stroke-width: 1.8; }

/* Accessibility ----------------------------------------------------------- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Eyebrow / section heading ---------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase;
    letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--brand-2);
    margin-bottom: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* Buttons ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .82rem 1.6rem;
    border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; box-shadow: var(--glow);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s; }
.btn:hover { filter: brightness(1.08); text-decoration: none;
    transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(20,184,166,.7); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); filter: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* Header / nav — dark bar (matches footer) --------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100;
    background:
        radial-gradient(680px 180px at 10% -40%, rgba(20,184,166,.30), transparent 70%),
        linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 100%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 10px 30px -14px rgba(0,0,0,.8); }
/* Hairline accent under the sticky header */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,.55), rgba(251,113,133,.4), transparent); }
.header-inner { display: flex; align-items: center; gap: 1.75rem; padding: .95rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; line-height: 1.05; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; flex: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.brand-emblem { height: 128px; width: auto; flex: none; display: block; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.brand-copy { display: flex; flex-direction: column; }
.brand-text { font-weight: 800; font-size: 1.5rem; color: #ffffff; line-height: 1; letter-spacing: -.01em; }
.brand-tag { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: #93a7b3; margin-top: .28rem; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .5rem; margin: 0; padding: 0; }
.main-nav a { color: #ccd2e8; font-weight: 500; font-size: 1.05rem; padding: .5rem 1.05rem;
    border-radius: 999px; transition: background .2s ease, color .2s ease; }
.main-nav a:hover { text-decoration: none; color: #fff; background: rgba(20,184,166,.18); }
/* Current page — solid indigo pill (only the active item is shaded) */
.main-nav a.active, .main-nav .active > a { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.main-nav a.active:hover, .main-nav .active > a:hover { filter: brightness(1.08); color: #fff; }

.btn--sm { padding: .58rem 1.2rem; font-size: .98rem; }
/* Get in touch — warm amber CTA: outline by default, fills amber on hover/active. */
.nav-cta { flex: none; background: transparent; color: #fff; border-color: rgba(251,113,133,.6); box-shadow: none; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #1a1400; filter: none; transform: translateY(-1px); }
.nav-cta.active { background: var(--accent); border-color: var(--accent); color: #1a1400; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: #fff; margin-left: auto; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .nav-cta { display: none; }
    .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-deep); margin: 0;
        border-bottom: 1px solid rgba(255,255,255,.08); display: none; box-shadow: var(--shadow-sm); }
    .header-inner.nav-open .main-nav { display: block; }
    .main-nav ul { flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; gap: .7rem; }
}

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; color: #eef1fb; background: transparent; }
/* Hero sizes to its content with tight spacing top and bottom */
.hero .container { position: relative; z-index: 2; padding-top: clamp(1rem, 2vw, 1.6rem); padding-bottom: clamp(1rem, 2vw, 1.6rem);
    min-height: 0; align-content: center; }
.hero + .section { padding-top: clamp(1rem, 1.6vw, 1.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 3.5vw, 4rem); align-items: start; }
.hero-art { max-width: 560px; margin: 0 auto; }
.hero-art svg { width: 100%; height: auto; max-height: calc(100svh - 150px); filter: drop-shadow(0 26px 44px rgba(0,0,0,.45)); }
.hero-pin { transform-origin: 230px 102px; animation: geo-float 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero-pin { animation: none; } }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-art-wrap { display: none; } }
.net-bg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
    pointer-events: none; opacity: .9; }
.hero-topo { position: absolute; inset: 0; z-index: 0; opacity: .4;
    animation: topo-drift 40s linear infinite; }
@keyframes topo-drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-60px,-30px,0); } }
.hero-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem;
    border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .8rem;
    letter-spacing: .06em; margin-bottom: 1.4rem; color: #e0e4f8; }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 0 rgba(244,169,27,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(244,169,27,.55);} 70%{box-shadow:0 0 0 10px rgba(244,169,27,0);} 100%{box-shadow:0 0 0 0 rgba(244,169,27,0);} }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); margin: 0 0 1.1rem; color: #fff; max-width: 15ch; }
.hero p { font-size: 1.2rem; max-width: 60ch; color: #d3d9f2; }
.hero .actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn--ghost:hover { background: #fff; color: var(--brand-dark); }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.2rem 2rem; margin-top: 2rem;
    padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.16); }
.hero-stats .stat strong { display: block; font-size: 1.05rem; color: #fff; }
.hero-stats .stat span { font-size: .85rem; color: #b3bce0; }

/* Grids / cards ----------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.4rem, 1.8vw, 2.2rem); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 20vw, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 24vw, 360px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045)); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__body { padding: 1.5rem; }
.card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: .9rem; }
.card__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brand); }
.card__link .icon { transition: transform .2s; }
.card:hover .card__link .icon { transform: translateX(3px); }

/* Feature / project media header (gradient placeholder when no image) ------ */
.card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card__media { aspect-ratio: 16/9; position: relative; display: flex; align-items: flex-end;
    padding: 1rem; background: linear-gradient(135deg, #0e2a34, #0b1220); color: #fff; overflow: hidden; }
.card__media .card-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; z-index: 0; }
.card__media .icon { position: relative; z-index: 1; width: 32px; height: 32px; opacity: .95;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
/* Per-category media tints */
.media--ai-disaster { background: linear-gradient(135deg, #0e2a34, #0e2230); }
.media--data-systems { background: linear-gradient(135deg, #0e2a34, #0b1220); }
.media--business-solutions { background: linear-gradient(135deg, #135066, #0b1220); }
.media--article { background: linear-gradient(135deg, #0e2a34, #0b1220); }

.chip { display: inline-block; font-size: .72rem; font-weight: 600; background: var(--bg-alt);
    color: var(--brand-2); padding: .25rem .6rem; border-radius: 999px; margin: 0 .3rem .3rem 0; }
.chip--solid { background: rgba(255,255,255,.16); color: #fff; }

/* Featured post (Insights) ------------------------------------------------ */
.featured-post { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg);
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: transform .2s ease, box-shadow .25s ease; }
.featured-post:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.featured-post__media { position: relative; min-height: 260px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0e2a34, #0b1220); overflow: hidden; }
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.featured-post__media .card-pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.featured-post__media .fp-icon .icon { width: 62px; height: 62px; color: #fff; opacity: .95; position: relative; z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.featured-post__body { padding: 2.2rem; align-self: center; }
.featured-post__body h2 { margin: .6rem 0 .6rem; }
.featured-post__body p { color: var(--muted); }
@media (max-width: 760px) { .featured-post { grid-template-columns: 1fr; } .featured-post__media { min-height: 180px; } }

/* Value / info tiles with icons ------------------------------------------ */
.tile { background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow), 0 0 0 1px rgba(20,184,166,.4); border-color: rgba(20,184,166,.5); }
.tile h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; }
.tile .icon { color: var(--brand); }

/* Mission / Vision / Values ---------------------------------------------- */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.3rem, 1.8vw, 2rem); margin: 1.6rem 0; }
.mv-card { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045)); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.7rem; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow), 0 0 0 1px rgba(20,184,166,.4); border-color: rgba(20,184,166,.5); }
.mv-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand));
    background-size: 200% 100%; animation: bar-shimmer 5s linear infinite; }
.mv-card--vision::before { background: linear-gradient(90deg, var(--accent), #fda4af, var(--accent));
    background-size: 200% 100%; }
@keyframes bar-shimmer { to { background-position: -200% 0; } }
.mv-card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin: .3rem 0 .6rem; }
.mv-card p { color: var(--muted); margin: 0; }

.values-panel { background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(251,113,133,.06));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.values-panel > h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; }
.values-panel ul { list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: .9rem; }
.values-panel li { position: relative; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: .95rem 1rem .95rem 2.9rem; color: var(--muted);
    transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.values-panel li:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.values-panel li strong { color: var(--ink); }
.values-panel li::before { content: "✓"; position: absolute; left: .85rem; top: .95rem;
    width: 21px; height: 21px; display: flex; align-items: center; justify-content: center;
    font-size: .72rem; color: #fff; background: var(--brand); border-radius: 50%; }

/* About intro: text + illustration + stats --------------------------------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 3.5vw, 4rem); align-items: center; }
.about-intro .prose { font-size: 1.22rem; line-height: 1.72; color: #d3e0e8; }
.about-intro h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.about-stats .stat-pill strong { font-size: 1.3rem; }
.about-stats .stat-pill span { font-size: .9rem; }
/* Mirrored split — illustration to the left, text to the right (desktop only),
   so the page alternates with the text-left hero. Stacks text-first on mobile. */
@media (min-width: 861px) {
    .about-intro--reverse { direction: rtl; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .about-intro--reverse > * { direction: ltr; }
}
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; gap: 1.5rem; } }
.geo-art { max-width: 100%; margin: 0 auto; }
.geo-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(20,26,44,.22)); }
.geo-pin { transform-origin: 230px 112px; animation: geo-float 3.6s ease-in-out infinite; }
@keyframes geo-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.about-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.stat-pill { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem 1.1rem; }
.stat-pill strong { display: block; color: var(--brand); font-size: 1.15rem; }
.stat-pill span { font-size: .82rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .geo-pin { animation: none; } }

/* Why-Koimeret tiles ------------------------------------------------------ */
.why-tile h4 { margin: 0 0 .4rem; font-size: 1.1rem; }
.why-tile p { color: var(--muted); margin: 0; }

/* Team -------------------------------------------------------------------- */
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar--initials { display: inline-flex; align-items: center; justify-content: center;
    width: 84px; height: 84px; border-radius: 20px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 700; font-size: 1.8rem; box-shadow: var(--shadow-sm); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.4rem; }
.team-card { display: flex; gap: 1.3rem; background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.6rem; transition: transform .2s ease, box-shadow .25s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__aside .avatar { width: 84px; height: 84px; border-radius: 20px; }
.team-card__body h3 { margin: 0 0 .35rem; }
.team-card__body p { color: var(--muted); margin: .7rem 0; }

/* Filters ----------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.filters select { padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; color: var(--ink); }

/* Forms ------------------------------------------------------------------- */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.honeypot { position: absolute; left: -5000px; }

/* Multi-select checkboxes (e.g. the document-request list) — each option is a
   selectable row so the checkbox sits hand-in-hand with its document name. */
.form-field input[type="checkbox"], .form-field input[type="radio"] { width: auto; accent-color: var(--brand); }
#id_documents { display: grid; gap: .55rem; margin-top: .45rem; }
#id_documents label { display: flex; align-items: center; gap: .7rem; font-weight: 500; margin: 0;
    padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    cursor: pointer; transition: border-color .15s, background .15s; }
#id_documents label:hover { border-color: var(--brand); background: var(--bg-alt); }
#id_documents input[type="checkbox"] { width: auto; accent-color: var(--brand); flex: none; }
.messages .success { background: #e6e9f8; border: 1px solid var(--brand); padding: 1rem 1.25rem; border-radius: var(--radius-sm); }
.errorlist { color: #b00020; list-style: none; padding: 0; margin: .3rem 0; font-size: .9rem; }

/* Downloads — view / download actions ------------------------------------- */
.download-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.download-alt { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand-2); font-size: .95rem; }
.download-alt .icon { width: 1.05em; height: 1.05em; }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--accent); border-color: var(--accent); color: #14201b; }

/* Page header (interior pages) ------------------------------------------- */
.page-header { position: relative; color: #eef1fb; background: transparent;
    border-bottom: 1px solid rgba(255,255,255,.08); }
.page-header .container { position: relative; z-index: 2; padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 3vw, 2.75rem); }
.page-header h1 { margin: 0; color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
/* Pull the first content section up close to the page title */
.page-header + .section, .page-header + section { padding-top: clamp(1.5rem, 2.5vw, 2.25rem); }
.page-header .breadcrumb { color: #b3bce0; font-size: .9rem; margin-bottom: .4rem; }
.page-header .breadcrumb a { color: #d3d9f2; }
.page-header .hero-topo { opacity: .4; }

/* Prose ------------------------------------------------------------------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .4rem; }
.tools-list .chip { font-size: .8rem; }

/* Rich body (StreamField) — centered reading column for detail pages ------- */
.rich-body { max-width: 820px; margin: 0 auto; }
.rich-body > * + * { margin-top: 1.15rem; }
.rich-body .prose { max-width: none; }
.stream-heading { color: #fff; margin: 2.2rem 0 .4rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.pull-quote { position: relative; margin: 2rem 0; padding: 1.4rem 1.6rem 1.4rem 2.6rem;
    background: linear-gradient(135deg, rgba(20,184,166,.10), rgba(56,189,248,.06));
    border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.pull-quote p { font-size: 1.2rem; font-style: italic; color: #e7ebfb; margin: 0; }
.pull-quote::before { content: "\201C"; position: absolute; left: .7rem; top: .1rem;
    font-size: 2.4rem; line-height: 1; color: var(--accent); opacity: .7; }
.pull-quote cite { display: block; margin-top: .7rem; font-style: normal; font-weight: 600; color: var(--brand-2); font-size: .92rem; }
.content-image { margin: 1.8rem 0; }
.content-image img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.content-image figcaption { margin-top: .6rem; font-size: .86rem; color: var(--muted); text-align: center; }

/* Pagination -------------------------------------------------------------- */
.pagination { display: flex; align-items: center; gap: 1.2rem; justify-content: center; margin-top: 2.5rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer { position: relative; color: #aab2ce; flex-shrink: 0;
    padding: 1.7rem 0 .85rem; font-size: .84rem;
    background:
        radial-gradient(760px 220px at 12% 0%, rgba(20,184,166,.18), transparent 70%),
        linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 100%); }
/* Gradient accent bar along the top edge of the footer */
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent-2) 45%, var(--accent)); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.5fr; gap: 1.3rem 1.8rem; }
.footer-mark { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; }
.footer-emblem { height: 108px; width: auto; flex: none; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.footer-mark .brand-mark { filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.footer-name { color: #fff; font-size: 1.15rem; font-weight: 800; display: block; line-height: 1.1; }
.site-footer .brand-tag { color: #93a7b3; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-blurb { color: #9aa2c2; max-width: 34ch; margin: 0 0 .8rem; }
.site-footer h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 .6rem; position: relative; padding-bottom: .4rem; }
.site-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 24px; height: 2px; background: var(--accent); }
.site-footer p { margin: .3rem 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #aab2ce; transition: color .15s, padding-left .15s; }
.footer-links a:hover, .site-footer address a:hover { color: #fff; text-decoration: none; }
.footer-links a:hover { padding-left: 4px; color: #5eead4; }
.site-footer address { font-style: normal; display: grid; gap: .5rem; }
.site-footer address p { display: flex; align-items: flex-start; gap: .55rem; margin: 0; }
.site-footer address .icon { color: var(--accent); flex: none; margin-top: .15em; }
.site-footer .reg { color: #8790b0; margin-top: .5rem; font-size: .82rem; }
.footer-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
    color: #5eead4; font-weight: 600; }
.social { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; gap: .6rem; }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.social a:hover { background: var(--brand); border-color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 1rem; padding-top: .75rem; font-size: .8rem; color: #8a92b2; }
.footer-bottom p { margin: 0; }
.footer-made { opacity: .7; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* Dark-theme component adjustments --------------------------------------- */
.form-field input, .form-field textarea, .form-field select,
.filters select { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8790b0; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(170,180,224,.15); }
.icon-badge { background: rgba(20,184,166,.20); color: var(--brand-2); }
.card__link { color: var(--brand-2); }
.card:hover { border-color: rgba(255,255,255,.22); box-shadow: 0 16px 40px -18px rgba(0,0,0,.6); }
.chip { background: rgba(255,255,255,.07); color: var(--brand-2); }
.messages .success { background: rgba(20,184,166,.14); border-color: var(--brand); color: #e0e4f8; }
.section-head .lead, .prose { color: #ccd2e8; }
.prose strong, .prose h2, .prose h3, .prose h4 { color: #fff; }
.values-panel { background: linear-gradient(135deg, rgba(20,184,166,.12), rgba(251,113,133,.08)); }
.tools-list .chip, .filters select { color: var(--brand-2); }

/* Reveal-on-scroll animation --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
/* Auto-stagger grid children so cards cascade in without per-item classes */
.mv-grid > .reveal:nth-child(2), .grid > .reveal:nth-child(2), .team-grid > .reveal:nth-child(2) { transition-delay: .09s; }
.grid > .reveal:nth-child(3), .team-grid > .reveal:nth-child(3) { transition-delay: .18s; }
.grid > .reveal:nth-child(4) { transition-delay: .27s; }
.grid > .reveal:nth-child(5) { transition-delay: .36s; }
.grid > .reveal:nth-child(6) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-topo, .hero-chip .dot, .icon-badge, .mv-card::before { animation: none; }
}

/* =========================================================================
   LIGHT THEME — white content body, dark chrome/hero bands.
   Appended last so it wins the cascade over the dark-era rules above.
   ========================================================================= */
.site-bg { opacity: .6; }

/* Everything light — hero/header/footer transparent or light so the D3
   network background shows through globally. */
.hero { background: transparent; color: var(--ink); }
.page-header { background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); }
.hero-chip { border-color: rgba(18,28,42,.22); color: #34424f; }
.hero-stats { border-top-color: var(--line); }
.hero-stats .stat strong { color: var(--ink); }
.hero-stats .stat span { color: var(--muted); }
.page-header .breadcrumb { color: var(--muted); }
.page-header .breadcrumb a { color: var(--brand-dark); }

/* Navbar & footer — branded teal→slate chrome, identical in BOTH themes,
   framing the content. Applied unscoped so it holds in light and dark. */
.site-header { background: radial-gradient(680px 200px at 12% -35%, rgba(20,184,166,.32), transparent 70%),
        linear-gradient(180deg, #0e3b39 0%, #0a1720 100%);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px -14px rgba(0,0,0,.5); }
.brand-text { color: #fff; }
.brand-tag { color: #93c3bd; }
.main-nav a { color: #cfe6e2; }
.main-nav a:hover { color: #fff; background: rgba(20,184,166,.22); }
.nav-cta { color: #fff; }

.site-footer { background: radial-gradient(760px 240px at 12% 0%, rgba(20,184,166,.24), transparent 70%),
        linear-gradient(180deg, #0e3b39 0%, #0a1720 100%); color: #b7ccc8; }
.site-footer h4, .footer-name { color: #fff; }
.site-footer .brand-tag { color: #93c3bd; }
.footer-blurb { color: #a7bdb8; }
.site-footer a, .footer-links a { color: #b7ccc8; }
.footer-links a:hover { color: #5eead4; }
.site-footer .reg, .footer-bottom { color: #86a09a; }
.footer-bottom { border-top-color: rgba(255,255,255,.1); }
.social a { border-color: rgba(255,255,255,.16); color: #b7ccc8; }
.social a:hover { color: #fff; }
.site-footer address .icon, .footer-cta { color: #5eead4; }
.footer-emblem { filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }

/* Content surfaces → solid white cards with soft shadows */
.card, .tile, .mv-card, .team-card, .featured-post {
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 8px 24px -14px rgba(16,32,50,.18);
}
.card:hover, .tile:hover, .mv-card:hover, .team-card:hover, .featured-post:hover {
    border-color: rgba(20,184,166,.55);
    box-shadow: 0 18px 36px -16px rgba(16,32,50,.28), 0 0 0 1px rgba(20,184,166,.28);
}
.section--alt { background: #eef2f7; }
.values-panel { background: linear-gradient(135deg, rgba(20,184,166,.07), rgba(56,189,248,.05)); border-color: var(--line); }
.values-panel li { background: #fff; border-color: var(--line); color: var(--muted); }
.values-panel li:hover { background: #f3f7fb; border-color: rgba(20,184,166,.4); }
.stat-pill { background: #fff; border-color: var(--line); }
.stat-pill strong { color: var(--brand-dark); }
.stat-pill span, .about-stats .stat-pill span { color: var(--muted); }

/* Text / accents tuned for white */
h1, h2, h3, h4 { color: var(--ink); }
.card p, .mv-card p, .why-tile p, .tile p, .lead, .section-head .lead, .prose { color: var(--muted); }
.prose strong, .prose h2, .prose h3, .prose h4, .stream-heading { color: var(--ink); }
.about-intro .prose { color: #33475a; }
.eyebrow { color: var(--brand-dark); }
main a, .card__link, .download-alt, .pull-quote cite { color: var(--brand-dark); }
.chip { background: rgba(20,184,166,.10); color: var(--brand-dark); }
.icon-badge { color: var(--brand-dark); border-color: rgba(20,184,166,.28);
    background: linear-gradient(135deg, rgba(20,184,166,.14), rgba(56,189,248,.10)); }

/* Hero is light now → dark text */
.hero h1, .page-header h1 { color: var(--ink); }
.hero p { color: #40505f; }
.hero .eyebrow, .page-header .eyebrow { color: var(--brand-dark); }

/* Ghost button on light content (incl. hero) */
.btn--ghost, .hero .btn--ghost { color: var(--ink); border-color: rgba(18,28,42,.25); }
.btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(18,28,42,.05); border-color: rgba(18,28,42,.4); color: var(--ink); }

/* Forms + messages on light */
.form-field input, .form-field textarea, .form-field select, .filters select {
    background: #fff; color: var(--ink); border-color: var(--line); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a97a5; }
.filters select, .tools-list .chip { color: var(--brand-dark); }
.messages .success { background: rgba(20,184,166,.10); border-color: var(--brand-dark); color: var(--ink); }

/* Rich-body pull quote on light */
.pull-quote { background: linear-gradient(135deg, rgba(20,184,166,.08), rgba(56,189,248,.05)); }
.pull-quote p { color: #26333f; }

/* Theme toggle button (fixed corner) ------------------------------------- */
.theme-toggle { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 200;
    width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; background: #0b1220; color: #fff; border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 10px 26px -10px rgba(0,0,0,.55); transition: transform .15s ease, background .2s, color .2s; }
.theme-toggle:hover { transform: translateY(-2px); }
.theme-toggle .icon { width: 22px; height: 22px; }
.theme-toggle .th-sun { display: none; }

/* =========================================================================
   DARK THEME — activated by the corner toggle (data-theme="dark").
   ========================================================================= */
:root[data-theme="dark"] {
    --ink: #f3f7fb; --muted: #b3c1d0; --line: rgba(255,255,255,.15);
    --bg: rgba(255,255,255,.065); --bg-alt: rgba(255,255,255,.035);
}
:root[data-theme="dark"] body {
    background:
        radial-gradient(1200px 720px at 84% -12%, rgba(20,184,166,.28) 0%, transparent 60%),
        radial-gradient(900px 620px at 6% 8%, rgba(56,189,248,.08) 0%, transparent 55%),
        linear-gradient(165deg, #0b1220 0%, #0f1a2b 100%);
}
:root[data-theme="dark"] .site-bg { opacity: .6; }
:root[data-theme="dark"] .theme-toggle { background: #fff; color: #0b1220; border-color: rgba(0,0,0,.12); }
:root[data-theme="dark"] .theme-toggle .th-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .th-sun { display: inline-flex; }
:root[data-theme="dark"] .section--alt { background: var(--bg-alt); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .tile,
:root[data-theme="dark"] .mv-card,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .featured-post {
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
    border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
:root[data-theme="dark"] .card:hover,
:root[data-theme="dark"] .tile:hover,
:root[data-theme="dark"] .mv-card:hover,
:root[data-theme="dark"] .team-card:hover,
:root[data-theme="dark"] .featured-post:hover {
    border-color: rgba(20,184,166,.5); box-shadow: var(--shadow), 0 0 0 1px rgba(20,184,166,.35); }
:root[data-theme="dark"] .values-panel { background: linear-gradient(135deg, rgba(20,184,166,.10), rgba(56,189,248,.06)); }
:root[data-theme="dark"] .values-panel li { background: var(--bg); border-color: var(--line); color: var(--muted); }
:root[data-theme="dark"] .values-panel li:hover { background: rgba(255,255,255,.08); }
:root[data-theme="dark"] .stat-pill { background: var(--bg); border-color: var(--line); }
:root[data-theme="dark"] .stat-pill strong { color: var(--brand-2); }
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] main a,
:root[data-theme="dark"] .card__link,
:root[data-theme="dark"] .download-alt,
:root[data-theme="dark"] .filters select,
:root[data-theme="dark"] .tools-list .chip,
:root[data-theme="dark"] .pull-quote cite { color: var(--brand-2); }
:root[data-theme="dark"] .icon-badge { color: var(--brand-2); border-color: rgba(20,184,166,.25);
    background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(56,189,248,.12)); }
:root[data-theme="dark"] .chip { background: rgba(255,255,255,.07); color: var(--brand-2); }
:root[data-theme="dark"] .about-intro .prose { color: #d3e0e8; }
:root[data-theme="dark"] .pull-quote p { color: #e7ebfb; }
:root[data-theme="dark"] .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
:root[data-theme="dark"] .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
:root[data-theme="dark"] .form-field input,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .form-field select,
:root[data-theme="dark"] .filters select { background: rgba(255,255,255,.06); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .messages .success { background: rgba(20,184,166,.14); border-color: var(--brand); color: #e0e4f8; }

/* Dark theme: hero & page-header stay dark bands. The navbar & footer keep
   the branded teal chrome defined above (same in both themes). */
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-header {
    background: linear-gradient(160deg, #0b1220 0%, #12233a 100%); color: #eef4f8; border-bottom: 1px solid rgba(255,255,255,.06); }
:root[data-theme="dark"] .hero h1, :root[data-theme="dark"] .page-header h1 { color: #fff; }
:root[data-theme="dark"] .hero p { color: #d3d9f2; }
:root[data-theme="dark"] .hero .eyebrow, :root[data-theme="dark"] .page-header .eyebrow { color: #5eead4; }
:root[data-theme="dark"] .hero-chip { border-color: rgba(255,255,255,.28); color: #e0e4f8; }
:root[data-theme="dark"] .hero-stats { border-top-color: rgba(255,255,255,.16); }
:root[data-theme="dark"] .hero-stats .stat strong { color: #fff; }
:root[data-theme="dark"] .hero-stats .stat span { color: #b3bce0; }
:root[data-theme="dark"] .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
:root[data-theme="dark"] .hero .btn--ghost:hover { background: #fff; color: #0b1220; }
:root[data-theme="dark"] .page-header .breadcrumb { color: #b3bce0; }

/* =========================================================================
   Interior page redesigns — Services, Projects, Publications, Downloads, Contact
   ========================================================================= */
.page-intro { max-width: 720px; margin: -.5rem auto 3rem; text-align: center; font-size: 1.16rem; color: var(--muted); }
.page-intro p { margin: 0; }

/* Services — larger feature cards with a top accent bar ------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.3rem, 2vw, 1.9rem); }
.svc-card { position: relative; overflow: hidden; padding: 2.1rem 1.9rem; display: flex; flex-direction: column; }
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent-2)); }
.svc-card .icon-badge { width: 58px; height: 58px; }
.svc-card h3 { font-size: 1.28rem; margin: .1rem 0 .55rem; }
.svc-card h3 a { color: inherit; }
.svc-card p { flex: 1; margin-bottom: 1.15rem; }
.svc-card .card__link { margin-top: auto; }

/* Closing CTA band ------------------------------------------------------- */
.cta-wrap { padding: 0 0 clamp(3rem, 5vw, 5rem); }
.cta-band { position: relative; overflow: hidden; padding: clamp(2.4rem, 4vw, 3.4rem); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(600px 200px at 85% 120%, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 .5rem; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 52ch; margin: 0 auto 1.3rem; }

/* Publications — clean, scannable blog list ------------------------------ */
.blog-featured { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; background: var(--bg); margin-bottom: 1.6rem;
    box-shadow: 0 8px 24px -16px rgba(16,32,50,.18); transition: transform .2s ease, box-shadow .25s ease; }
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.blog-featured__media { position: relative; min-height: 280px; background: linear-gradient(135deg, #123a39, #0b1720);
    display: flex; align-items: center; justify-content: center; }
.blog-featured__media .icon { width: 60px; height: 60px; color: #5eead4; opacity: .9; }
.blog-featured__body { padding: clamp(1.6rem, 3vw, 2.6rem); align-self: center; }
.blog-featured__body h2 { margin: .5rem 0 .6rem; }
@media (max-width: 760px) { .blog-featured { grid-template-columns: 1fr; } .blog-featured__media { min-height: 170px; } }

.blog-list { display: grid; gap: 1rem; }
.blog-item { display: grid; grid-template-columns: 160px 1fr auto; gap: 1.4rem; align-items: center;
    padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
    transition: transform .18s ease, box-shadow .25s ease, border-color .2s; }
.blog-item:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -18px rgba(16,32,50,.28);
    border-color: rgba(20,184,166,.5); text-decoration: none; }
.blog-item__date { color: var(--brand-dark); font-weight: 700; font-size: .92rem; }
.blog-item__main h3 { font-size: 1.22rem; margin: 0 0 .35rem; color: var(--ink); }
.blog-item__main p { margin: 0; color: var(--muted); }
.blog-item__cta { display: inline-flex; align-items: center; gap: .35rem; color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.blog-item:hover .blog-item__cta .icon { transform: translateX(3px); }
.blog-item__cta .icon { transition: transform .2s; }
@media (max-width: 720px) { .blog-item { grid-template-columns: 1fr; gap: .5rem; } .blog-item__cta { justify-self: start; } }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 3.5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 1.8rem; }
.contact-card h3 { margin: 0 0 1.1rem; }
.contact-tiles { display: grid; gap: .7rem; }
.contact-tile { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: var(--bg-alt); }
.contact-tile .icon { color: var(--brand); flex: none; margin-top: .15em; width: 1.3em; height: 1.3em; }
.contact-tile strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-tile span, .contact-tile a { color: var(--muted); font-size: .95rem; word-break: break-word; }
.contact-map { width: 100%; height: 240px; border: 0; border-radius: var(--radius-sm); margin-top: 1.2rem; }

/* Downloads — profile card + request panel ------------------------------- */
.dl-card { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.7rem 1.8rem; }
.dl-card .icon-badge { margin: 0; flex: none; }
.dl-card__body { flex: 1; }
.dl-card__body h3 { margin: 0 0 .35rem; }
.dl-card__body p { margin: 0 0 1rem; }
@media (max-width: 520px) { .dl-card { flex-direction: column; } }

/* Publications — cover graphics & full article ---------------------------- */
.post-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-cover svg { width: 100%; height: 100%; display: block; }

.card__cover { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1720; }
.card__cover .card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,16,24,.35)); pointer-events: none; }
.card:hover .card__cover .post-cover svg,
.card:hover .card__cover .card__img { transform: scale(1.05); transition: transform .5s ease; }
.card__cover .post-cover svg, .card__cover .card__img { transition: transform .5s ease; }

.blog-featured__media .post-cover svg { transition: transform .6s ease; }
.blog-featured:hover .blog-featured__media .post-cover svg { transform: scale(1.04); }

/* Article detail */
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; color: var(--muted); font-size: .95rem; }
.article-cover { position: relative; z-index: 2; aspect-ratio: 2.5 / 1; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 24px 50px -24px rgba(3,8,18,.55); margin-top: clamp(-3rem, -3.5vw, -1.75rem); }
.article-cover .article-cover__img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .article-cover { aspect-ratio: 16 / 10; } }
.article-lead { font-size: 1.28rem; line-height: 1.55; color: var(--ink); margin-bottom: 1.6rem; }
.rich-body .stream-heading { scroll-margin-top: 90px; }

/* Services — animated feature cards --------------------------------------- */
.svc-card { position: relative; overflow: hidden; }
.svc-card::before { background: linear-gradient(90deg, var(--brand), var(--accent-2), var(--brand));
    background-size: 200% 100%; animation: bar-shimmer 5s linear infinite; }
/* decorative watermark glyph */
.svc-card__glyph { position: absolute; top: -14px; right: -10px; z-index: 0; color: var(--brand);
    opacity: .07; pointer-events: none; transition: transform .5s ease, opacity .3s ease; }
.svc-card__glyph .icon { width: 128px; height: 128px; stroke-width: 1.1; }
.svc-card:hover .svc-card__glyph { transform: rotate(-8deg) scale(1.14); opacity: .13; }
/* keep content above the glyph / sheen */
.svc-card .icon-badge, .svc-card h3, .svc-card p, .svc-card .card__link { position: relative; z-index: 2; }
.svc-card .icon-badge { transition: transform .25s ease, box-shadow .3s ease; }
.svc-card:hover .icon-badge { transform: translateY(-2px) scale(1.06); }
/* hover sheen sweep */
.svc-card::after { content: ""; position: absolute; top: 0; left: -70%; width: 55%; height: 100%; z-index: 1;
    background: linear-gradient(100deg, transparent, rgba(20,184,166,.12), transparent);
    transform: skewX(-18deg); transition: left .65s ease; pointer-events: none; }
.svc-card:hover::after { left: 130%; }
.svc-card .card__link { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .svc-card::before, .svc-card::after { animation: none; transition: none; } }

/* Services — cover-header feature cards (overrides the earlier svc styles) - */
.svc-card { padding: 0; }
.svc-card::before, .svc-card::after { content: none; }
.svc-card__glyph { display: none; }
.svc-card__cover { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b1720; }
.svc-card__cover .post-cover svg { transition: transform .5s ease; }
.svc-card:hover .svc-card__cover .post-cover svg { transform: scale(1.06); }
.svc-card__badge { position: absolute; left: 1.4rem; bottom: -24px; z-index: 2; width: 56px; height: 56px;
    border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
    box-shadow: 0 12px 26px -10px rgba(20,184,166,.75); transition: transform .25s ease; }
.svc-card__badge .icon { width: 26px; height: 26px; }
.svc-card:hover .svc-card__badge { transform: translateY(-3px) scale(1.06); }
.svc-card__body { padding: 2.2rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { font-size: 1.28rem; margin: .1rem 0 .55rem; }
.svc-card__body h3 a { color: inherit; }
.svc-card__body p { flex: 1; margin-bottom: 1.1rem; color: var(--muted); }
.svc-card__body .card__link { margin-top: auto; }

/* Process steps */
.step { position: relative; }
.step__num { display: inline-block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .2rem;
    background: linear-gradient(135deg, var(--brand), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h4 { margin: .1rem 0 .5rem; font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; }

/* Cover chip overlay (Projects / Publications) */
.card__cover-chip { position: absolute; top: 1rem; left: 1rem; z-index: 2;
    background: rgba(8,16,24,.7); color: #eafaf6; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
