:root {
    --bg: #eaf3f9;
    --surface: #ffffff;
    --dark: #0a3a5c;
    --dark-soft: #0d4f7a;
    --text: #12293a;
    --muted: #4a6678;
    --border: #b7d3e6;
    --accent: #0f6dad;
    --accent-hover: #0c5890;
    --accent-light: #d9ebf7;
    --accent-secondary: #2f8fc4;
    --accent-mint: #7eb8e0;
    --accent-green: #4a9fd4;
    --accent-coral: #2f8fc4;
    --accent-gold: #f0c24b;
    --success: #166534;
    --error: #991b1b;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 6px 28px rgba(10, 58, 92, 0.08);
    --shadow-lg: 0 22px 50px rgba(10, 58, 92, 0.14);
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-serif: "DM Sans", system-ui, sans-serif;
    --container: min(1140px, calc(100% - 2.5rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background:
        radial-gradient(ellipse 70% 45% at 10% -10%, rgba(126, 184, 224, 0.45), transparent 55%),
        radial-gradient(ellipse 55% 40% at 95% 5%, rgba(47, 143, 196, 0.18), transparent 50%),
        radial-gradient(ellipse 50% 35% at 70% 100%, rgba(74, 159, 212, 0.18), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    transition: color 0.2s;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }
h4 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75rem; color: var(--muted); }

p { margin: 0 0 1rem; }

.container {
    width: var(--container);
    margin: 0 auto;
}

/* ── Header ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 3px 0 0 var(--accent-secondary);
    overflow: visible;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
}

.site-logo-image {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-logo--wide {
    gap: 0;
}

.site-logo-image--brand {
    width: auto;
    height: 58px;
    max-width: 340px;
    border-radius: 0;
}

.site-logo-image--on-media {
    display: none;
}

.logo-text {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin-left: auto;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-tools .i18n-switcher {
    margin-left: 0;
}

.header-tools--desktop .site-search-form.site-search-form--header-desktop {
    flex: 1 1 auto;
    min-width: 0;
}

.header-search,
.site-search-form.site-search-form--header-desktop,
.header-tools .site-search-form.site-search-form--header-desktop {
    flex-shrink: 0;
    width: 12.5rem;
    max-width: 12.5rem;
    margin-left: 0;
}

.header-tools--mobile {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.header-tools--mobile .site-search-form,
.header-tools--mobile .site-search-form.site-search-form--compact {
    flex: none;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1.5px solid rgba(15, 109, 173, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
    box-shadow:
        0 4px 18px rgba(10, 58, 92, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.header-tools--mobile .site-search-form input[type="search"] {
    padding: 0.85rem 0.65rem 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
}

.header-tools--mobile .site-search-form input[type="search"]::placeholder {
    color: rgba(74, 102, 120, 0.72);
}

.header-tools--mobile .site-search-submit {
    width: 3.1rem;
    margin: 0.3rem;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--accent-secondary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 109, 173, 0.28);
}

.header-tools--mobile .site-search-submit:hover {
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #fff;
}

.header-tools--mobile .site-search-submit:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.header-tools--mobile .i18n-switcher {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-left: 0;
}

.header-tools--mobile .i18n-switcher--flags .i18n-switcher-link {
    min-width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.35rem 0.45rem;
}

.header-search input[type="search"],
.site-search-form.site-search-form--header-desktop input[type="search"] {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.85rem;
}

.site-search-form.site-search-form--mobile {
    width: 100%;
    max-width: none;
}

@media (max-width: 1024px) {
    .header-inner > .header-tools--desktop {
        display: none;
    }

    .header-tools--mobile {
        display: flex;
    }

    .header-inner > .nav-toggle {
        margin-left: auto;
    }

    .header-inner:not(:has(.header-tools--desktop)) > .nav-toggle {
        margin-left: auto;
    }
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav a.is-active,
.site-nav--desktop .nav-item--has-children.is-active > a {
    color: var(--text);
    font-weight: 600;
}

.site-nav--desktop > a.is-active,
.site-nav--desktop .nav-item--has-children.is-active > a {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-item--has-children > a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.925rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-nav--desktop .nav-item--has-children:hover > a,
.site-nav--desktop .nav-item--has-children:focus-within > a {
    color: var(--text);
}

.site-nav--desktop .nav-submenu-indicator {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.1rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-0.1rem);
    opacity: 0.7;
    flex-shrink: 0;
}

.site-nav--desktop .nav-item--has-children.is-active .nav-submenu-indicator,
.site-nav--desktop .nav-item--has-children:hover .nav-submenu-indicator,
.site-nav--desktop .nav-item--has-children:focus-within .nav-submenu-indicator {
    opacity: 1;
}

.site-nav--desktop .nav-submenu-toggle {
    display: none;
}

.nav-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.nav-submenu-toggle span {
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.nav-item--has-children.is-open > .nav-submenu-toggle span,
.nav-mobile-item.is-open > .nav-mobile-row .nav-submenu-toggle span {
    transform: rotate(-135deg);
}

.site-nav--desktop .nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.35rem;
    min-width: 11rem;
    padding: 0.45rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0.1rem;
    z-index: 120;
}

.site-nav--desktop .nav-submenu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.35rem;
}

.site-nav--desktop .nav-item--has-children:hover .nav-submenu,
.site-nav--desktop .nav-item--has-children:focus-within .nav-submenu {
    display: flex;
}

.nav-submenu a {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-submenu a:hover {
    color: var(--text);
    background: var(--accent-light);
}

.nav-submenu a.is-active {
    color: var(--accent);
    background: var(--accent-light);
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--text);
}

.header-cta {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 0.35rem;
    padding: 0;
    border: 1px solid rgba(15, 109, 173, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav-toggle:hover {
    border-color: rgba(15, 109, 173, 0.45);
    background: var(--accent-light);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark);
    transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

body.nav-open .nav-toggle {
    border-color: rgba(15, 109, 173, 0.35);
    background: #fff;
    box-shadow: 0 2px 10px rgba(10, 58, 92, 0.08);
}

body.nav-open .nav-toggle-bar {
    background: var(--dark);
}

body.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-mobile {
    border-top: 1px solid var(--border);
    background: rgba(234, 243, 249, 0.98);
    backdrop-filter: blur(12px);
}

.site-nav-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem 0 1.5rem;
}

.site-nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.site-nav-mobile-links a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.nav-mobile-item {
    border-bottom: 1px solid var(--border);
}

.nav-mobile-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-mobile-row > a {
    flex: 1;
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: none;
}

.nav-mobile-row .nav-submenu-toggle {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--text);
}

.site-nav-mobile-links .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 0.5rem 0.75rem;
}

.site-nav-mobile-links .nav-submenu[hidden] {
    display: none;
}

.site-nav-mobile-links .nav-submenu-link {
    display: block;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.site-nav-mobile-links .nav-submenu-link:hover {
    color: var(--accent);
}

.site-nav-mobile-links a.is-active,
.site-nav-mobile-links .nav-submenu-link.is-active {
    color: var(--accent);
    font-weight: 600;
}

.site-nav-mobile-links .nav-mobile-item.is-active > .nav-mobile-row > a {
    color: var(--accent);
}

.site-nav-mobile-links a:hover {
    color: var(--accent);
}

body.nav-open {
    overflow: hidden;
}

/* ── Buttons ── */

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.925rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.button:hover,
button.button:hover {
    background: var(--accent-hover);
    color: #fff;
}

.button-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
}

.button-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.button-light {
    background: #fff;
    color: var(--accent);
}

.button-light:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
}

.button-secondary {
    background: var(--accent-light);
    color: var(--accent);
}

.button-secondary:hover {
    background: #ddd9fc;
}

.button-full {
    width: 100%;
}

.text-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--accent);
}

.text-link:hover {
    color: var(--accent-hover);
}

/* ── Hero ── */

.hero-home {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 17, 24, 0.88) 0%, rgba(17, 17, 24, 0.55) 60%, rgba(15, 109, 173, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    max-width: 720px;
    color: #fff;
}

.hero-content h1 {
    color: #fff;
}

.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.eyebrow-light {
    color: rgba(255, 255, 255, 0.6);
}

/* ── Page hero (inner pages) ── */

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 80% at 15% 20%, rgba(126, 184, 224, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 80%, rgba(47, 143, 196, 0.22), transparent 50%),
        linear-gradient(135deg, #0a3a5c 0%, #0f6dad 55%, #2f8fc4 100%);
    color: #fff;
    padding: 5rem 0 4rem;
}

.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 58, 92, 0.72), rgba(15, 109, 173, 0.55));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-short {
    padding: 4rem 0 3rem;
}

.page-hero h1 {
    color: #fff;
    max-width: 680px;
}

.page-hero-lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin-bottom: 0;
}

.page-hero-lead a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ── Sections ── */

.section {
    padding: 5rem 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(217, 235, 247, 0.7), #fff 85%);
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-dark h2,
.section-dark h3 {
    color: #fff;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.section-header {
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-cta {
    margin-top: 2.5rem;
}

/* ── Stats ── */

.stats-bar {
    background: var(--surface);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat span {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ── Service cards (home) ── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.service-icon {
    font-family: var(--font-sans);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.service-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Split layout ── */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.check-list-light li {
    color: var(--text);
}

.text-link-light {
    color: rgba(255, 255, 255, 0.85);
}

.text-link-light:hover {
    color: #fff;
}

/* ── Work grid ── */

.work-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.work-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.work-card-large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.work-card:hover img {
    transform: scale(1.04);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 17, 24, 0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
}

.work-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.35rem;
}

.work-overlay h3 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
}

.work-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* ── Post cards ── */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-grid--cols-1 {
    grid-template-columns: 1fr;
}

.post-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.post-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.post-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.post-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 109, 173, 0.06);
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
}

.post-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent-mint);
    transform: translateY(-2px);
}

.post-card-image {
    display: block;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.post-card-body h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.post-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card-body h3 a:hover {
    color: var(--accent);
}

.post-card-body p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.post-meta {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

.post-taxonomy,
.blog-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.post-header .post-taxonomy {
    margin-bottom: 1rem;
}

.taxonomy-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}

.taxonomy-pill:hover {
    background: #ddd9fc;
    color: var(--accent-hover);
}

.taxonomy-pill.is-active {
    background: var(--accent);
    color: #fff;
}

.taxonomy-pill-category {
    background: #ede9fe;
    color: #5b21b6;
}

.taxonomy-pill-category:hover {
    background: #ddd6fe;
    color: #4c1d95;
}

.taxonomy-pill-category.is-active {
    background: #5b21b6;
    color: #fff;
}

.taxonomy-pill-tag {
    background: #f1f5f9;
    color: #475569;
}

.taxonomy-pill-tag:hover {
    background: #e2e8f0;
    color: #334155;
}

.taxonomy-pill-tag.is-active {
    background: #334155;
    color: #fff;
}

.blog-filters-section {
    padding: 1.5rem 0 0;
}

.blog-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}

.blog-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.blog-filters--minimal {
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.75rem;
}

.blog-filters--minimal .blog-filter-label {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
}

.blog-filters--tabs {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.blog-filters--tabs .blog-filter-group {
    border-bottom: 1px solid var(--border);
}

.blog-filters--tabs .blog-filter-group:last-child {
    border-bottom: none;
}

.blog-filters--tabs .blog-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0.5rem;
    scrollbar-width: none;
}

.blog-filters--tabs .blog-filter-pills::-webkit-scrollbar {
    display: none;
}

.blog-filters--tabs .taxonomy-pill {
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
}

.blog-filters--tabs .taxonomy-pill:hover {
    background: transparent;
    color: var(--accent);
}

.blog-filters--tabs .taxonomy-pill.is-active {
    background: transparent;
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.blog-filters--tabs .taxonomy-pill-category.is-active {
    background: transparent;
    color: #5b21b6;
    border-bottom-color: #5b21b6;
}

.blog-filters--tabs .taxonomy-pill-tag.is-active {
    background: transparent;
    color: var(--text);
    border-bottom-color: var(--text);
}

.blog-filters--compact {
    padding: 0.85rem 1rem;
}

.blog-filters--compact .blog-filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.blog-filters--compact .taxonomy-pill {
    flex-shrink: 0;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
}

.blog-filters--dropdown {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.blog-filter-dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(100%, 220px);
    flex: 1;
}

.blog-filter-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.blog-filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── Blog page ── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.blog-card-featured .blog-card-image img {
    height: 100%;
    aspect-ratio: unset;
    min-height: 320px;
}

.blog-card-image {
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 1.75rem 2rem;
}

.blog-card-body h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.blog-card-featured .blog-card-body h2 {
    font-size: 1.6rem;
}

.blog-card-body h2 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-body h2 a:hover {
    color: var(--accent);
}

.blog-card-body p {
    color: var(--muted);
    font-size: 0.95rem;
}

.blog-grid--grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.blog-grid--grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-grid--grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.blog-grid--grid-4 .blog-card-body {
    padding: 1.25rem 1.5rem;
}

.blog-grid--grid-4 .blog-card-body h2 {
    font-size: 1rem;
}

.page-blog-archive .blog-grid--grid-3 .blog-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.page-blog-archive .blog-grid--grid-3 .blog-card:hover {
    box-shadow: none;
}

.page-blog-archive .blog-grid--grid-3 .blog-card-image {
    border-radius: var(--radius);
    overflow: hidden;
}

.page-blog-archive .blog-grid--grid-3 .blog-card-body {
    padding: 0.9rem 0 0;
}

.page-blog-archive .blog-grid--grid-3 .blog-card-body h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.page-blog-archive .blog-grid--grid-3 .blog-card-body p {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 980px) {
    .blog-grid--grid-3,
    .blog-grid--grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .blog-grid--grid-3,
    .blog-grid--grid-4 {
        grid-template-columns: 1fr;
    }
}

.blog-grid--stack {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-grid--list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.blog-grid--list .blog-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: stretch;
}

.blog-grid--list .blog-card-image img {
    height: 100%;
    min-height: 140px;
    aspect-ratio: unset;
}

.blog-grid--list .blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-grid--magazine {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card-hero {
    grid-column: 1 / -1;
}

.blog-card-hero .blog-card-image img {
    aspect-ratio: 21/9;
    max-height: 420px;
}

.blog-card-hero .blog-card-body h2 {
    font-size: 1.75rem;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
}

.blog-page-link,
.blog-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-page-link {
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.blog-page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.blog-page-current {
    background: var(--accent);
    color: #fff;
}

/* ── Single post ── */

.page-post ::selection {
    background: rgba(15, 109, 173, 0.22);
    color: var(--dark);
}

.post-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.post-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-secondary) 55%, var(--accent-green) 100%);
    transition: transform 0.08s linear;
}

.post-single {
    padding-bottom: 4.5rem;
}

.post-top {
    position: relative;
    z-index: 0;
    padding: 1.5rem 0 4.5rem;
    background:
        radial-gradient(ellipse 70% 90% at 0% 0%, rgba(126, 184, 224, 0.55), transparent 55%),
        radial-gradient(ellipse 50% 70% at 100% 10%, rgba(47, 143, 196, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(217, 235, 247, 0.9), transparent 100%);
    border-bottom: none;
}

.page-post-has-featured .post-top {
    padding-bottom: 5.5rem;
}

.post-breadcrumbs {
    margin: 0 0 1.35rem;
}

.post-breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.post-breadcrumbs-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.post-breadcrumbs-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.2rem;
    color: var(--accent-mint);
    opacity: 0.9;
}

.post-breadcrumbs-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.post-breadcrumbs-list a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.post-breadcrumbs-list [aria-current="page"] span {
    color: var(--dark-soft);
    font-weight: 500;
    max-width: 42ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-header {
    background: transparent;
    color: var(--text);
    padding: 0;
    max-width: 46rem;
}

.post-kicker {
    margin: 0 0 0.9rem;
}

.post-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.post-cat-pill:hover {
    background: var(--accent-hover);
}

.post-header h1 {
    color: var(--dark);
    max-width: 18ch;
    font-size: clamp(2.1rem, 4.4vw, 3.15rem);
    margin: 0 0 0.85rem;
    line-height: 1.12;
    text-wrap: balance;
}

.post-excerpt {
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.55;
    max-width: 40rem;
    margin: 0 0 0.85rem;
}

.post-read-meta {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-tag-row a {
    display: inline-flex;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    color: var(--dark-soft);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.post-tag-row a:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    background: var(--accent-light);
}

.post-featured-image {
    position: relative;
    z-index: 1;
    margin: -3.25rem 0 2.75rem;
    padding: 1.75rem 0 2rem;
    background:
        radial-gradient(ellipse 55% 80% at 15% 40%, rgba(126, 184, 224, 0.35), transparent 60%),
        linear-gradient(180deg, #0f6dad 0%, #2f8fc4 55%, #7eb8e0 100%);
}

.post-featured-image .container {
    max-width: 960px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: transparent;
}

.post-featured-image .photo-credit {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
}

.post-featured-image .photo-credit a {
    color: #fff;
}

.post-body-wrap {
    max-width: 1140px;
}

.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/*
 * Stick the whole sidebar (TOC + Topics) as one unit.
 * Sticking only .post-toc made Topics scroll up underneath it,
 * and full-width .post-related could slide under the floating TOC.
 */
.page-post-has-toc-sidebar .post-sidebar {
    position: sticky;
    top: var(--toc-sticky-top, 5.75rem);
    align-self: start;
    z-index: 10;
    max-height: calc(100vh - var(--toc-sticky-top, 5.75rem) - 1.5rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 0.25rem;
}

.page-post-has-toc-sidebar .post-toc {
    position: static;
    z-index: auto;
    align-self: auto;
}

.page-post-has-toc-sidebar .post-toc-desktop {
    max-height: none;
}

.post-body-layout--no-toc .post-content,
.post-footer {
    max-width: 720px;
}

.page-post-has-sidebar .post-footer,
.page-post-has-sidebar .post-related,
.page-post-has-sidebar .post-explore {
    max-width: none;
}

.post-content {
    max-width: none;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    counter-reset: post-h2;
}

.post-content > p:first-of-type {
    font-size: 1.22rem;
    line-height: 1.7;
    color: var(--dark-soft);
}

.post-content > p:first-of-type::first-letter {
    float: left;
    margin: 0.12em 0.12em 0 0;
    padding-right: 0.05em;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 0.85;
    color: var(--accent);
}

.post-content h1 {
    margin-top: 2.75rem;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--dark);
}

.post-content h2 {
    position: relative;
    counter-increment: post-h2;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.65rem 0.85rem;
    margin-top: 3.25rem;
    margin-bottom: 1rem;
    padding: 0 0 0.85rem;
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    line-height: 1.25;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
}

.post-content h2::before {
    content: counter(post-h2, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    transform: translateY(-0.1rem);
}

.post-content h3 {
    margin-top: 2.1rem;
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
    line-height: 1.35;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--dark-soft);
}

.post-content p,
.post-content ul,
.post-content ol {
    margin-bottom: 1.35rem;
}

.post-content ul,
.post-content ol {
    padding-left: 0;
    list-style: none;
}

.post-content ul > li,
.post-content ol > li {
    position: relative;
    margin-bottom: 0.55rem;
    padding-left: 1.4rem;
}

.post-content ul > li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.7em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent-secondary);
}

.post-content ol {
    counter-reset: post-ol;
}

.post-content ol > li {
    counter-increment: post-ol;
}

.post-content ol > li::before {
    content: counter(post-ol);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
}

.post-content li > ul,
.post-content li > ol {
    margin-top: 0.45rem;
    margin-bottom: 0.25rem;
}

.post-content a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(15, 109, 173, 0.35);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.2em;
    transition: color 0.15s, text-decoration-color 0.15s;
}

.post-content a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent);
}

.post-content blockquote {
    position: relative;
    margin: 2.25rem 0;
    padding: 1.35rem 1.35rem 1.35rem 1.5rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    background:
        radial-gradient(ellipse 80% 120% at 0% 0%, rgba(126, 184, 224, 0.28), transparent 55%),
        #fff;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--dark);
    font-size: 1.12rem;
    font-style: normal;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(10, 58, 92, 0.05);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content hr {
    border: 0;
    height: 1px;
    margin: 2.75rem 0;
    background: linear-gradient(90deg, transparent, var(--accent-mint), transparent);
}

.post-content table {
    width: 100%;
    margin: 1.75rem 0 2rem;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.post-content th,
.post-content td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.post-content th {
    background: var(--accent-light);
    color: var(--dark);
    font-weight: 700;
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:nth-child(even) td {
    background: rgba(217, 235, 247, 0.35);
}

.post-content pre,
.post-content pre.ql-syntax {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    background: #0a3a5c;
    color: #eaf3f9;
    border-radius: 12px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: var(--accent-light);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.75rem 0 0.5rem;
    box-shadow: var(--shadow);
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption,
.post-content .wp-caption-text {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.post-content .ql-align-center {
    text-align: center;
}

.post-content .ql-align-right {
    text-align: right;
}

.post-content .ql-align-justify {
    text-align: justify;
}

.post-content img.ql-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content img.ql-align-right {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

@media (prefers-reduced-motion: reduce) {
    .post-progress-bar {
        transition: none;
    }

    .post-content > p:first-of-type::first-letter {
        float: none;
        font-size: inherit;
        margin: 0;
        padding: 0;
        color: inherit;
        font-weight: inherit;
        line-height: inherit;
    }
}

.post-related {
    margin: 3.5rem 0 0;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(74, 159, 212, 0.22), transparent 55%),
        linear-gradient(160deg, #fff 0%, var(--accent-light) 100%);
    border: 1px solid var(--border);
}

.post-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.post-related-head h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--dark);
}

.post-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.post-related-card {
    display: grid;
    grid-template-rows: auto auto;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.post-related-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-secondary);
    box-shadow: var(--shadow);
}

.post-related-media {
    display: block;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-green));
}

.post-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-related-media--empty {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.post-related-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 0.95rem 1rem;
}

.post-related-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
}

.post-related-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}

.post-explore {
    margin: 2.75rem 0 0;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(47, 143, 196, 0.18), transparent 50%),
        #fff;
    border: 1px solid var(--border);
}

.post-explore h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    color: var(--dark);
}

.post-explore-lead {
    margin: 0 0 1.1rem;
    color: var(--muted);
}

.post-explore-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-explore-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s, filter 0.15s;
}

.post-explore-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #fff;
}

.post-explore-link--0 { background: var(--accent); }
.post-explore-link--1 { background: var(--accent-secondary); }
.post-explore-link--2 { background: #0c5890; }
.post-explore-link--3 { background: #0f6dad; }
.post-explore-link--all {
    background: var(--dark);
    color: #fff;
}

.post-footer {
    max-width: 100%;
    margin: 2.75rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-nav-spacer {
    display: block;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    text-decoration: none;
    color: var(--text);
    box-shadow: none;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.post-nav-link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
    color: var(--accent);
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
    margin-left: auto;
}

.post-nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.post-nav-prev .post-nav-label::before {
    content: '← ';
}

.post-nav-next .post-nav-label::after {
    content: ' →';
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
}

.post-nav-link:hover .post-nav-title {
    color: var(--accent-hover);
}

.post-back-link {
    display: inline-flex;
}

@media (max-width: 720px) {
    .post-related-grid {
        grid-template-columns: 1fr;
    }

    .post-related-card {
        grid-template-rows: auto auto;
    }

    .post-related-media,
    .post-related-media--empty {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .page-post-has-featured .post-top {
        padding-bottom: 4rem;
    }

    .post-featured-image {
        margin-top: -2.25rem;
        padding: 1.25rem 0 1.5rem;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
        margin-left: 0;
    }

    .post-header h1 {
        max-width: none;
    }
}

/* ── Services page ── */

.services-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.service-block-reverse {
    direction: rtl;
}

.service-block-reverse > * {
    direction: ltr;
}

.service-block-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.service-number {
    display: block;
    font-family: var(--font-sans);
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.service-block h2 {
    margin-bottom: 1rem;
}

.service-block p {
    color: var(--muted);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-price {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.service-price strong {
    color: var(--text);
    font-size: 1.1rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.process-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
}

.process-step p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Contact ── */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.contact-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.contact-card a {
    font-weight: 600;
    text-decoration: none;
}

.contact-hours {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0.25rem 0 0;
}

.contact-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 0.5rem;
}

.contact-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.contact-form-wrap {
    min-width: 0;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.content-access-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.content-access-gate {
    max-width: 28rem;
    margin: 0 auto;
}

.content-access-gate-title {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.content-access-gate-lead {
    color: var(--text-muted, #5c5c6f);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.content-access-gate-error {
    margin-bottom: 1rem;
}

.content-access-gate-form {
    margin-top: 0;
}

.contact-form-wrap .contact-notice {
    margin-bottom: 1rem;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
    min-width: 0;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group--half {
    grid-column: span 1;
}

.form-group--checkbox {
    display: block;
}

.form-group--checkbox-group {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem;
    min-width: 0;
}

.form-group--checkbox-group legend {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
    padding: 0;
}

.contact-checkbox-group-options {
    display: grid;
    gap: 0.75rem;
}

.contact-checkbox-group-options--vertical {
    grid-template-columns: 1fr;
}

.contact-checkbox-group-options--horizontal {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}

.contact-checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact-checkbox-option:hover {
    border-color: #cbd5e1;
}

.contact-checkbox-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.contact-checkbox-option:focus-within {
    outline: none;
    border-color: var(--accent);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.form-group .checkbox-label {
    display: inline-flex;
}

.checkbox-label input[type="checkbox"],
.form-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.45;
}

.form-group > label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-required {
    color: var(--error);
    font-weight: 700;
    margin-left: 0.15em;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    transition: border-color 0.2s;
}

.form-group input:not([type="checkbox"]):focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ── CTA banner ── */

.cta-banner {
    background: var(--accent);
    padding: 4rem 0;
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-banner h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 480px;
}

/* ── Newsletter ── */

.newsletter-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
    min-width: 240px;
    background: var(--bg);
}

/* ── Footer ── */

.site-footer {
    position: relative;
    margin-top: 4rem;
    color: rgba(234, 243, 249, 0.82);
    background:
        radial-gradient(ellipse 55% 40% at 10% 20%, rgba(240, 194, 75, 0.16), transparent 55%),
        radial-gradient(ellipse 45% 50% at 95% 10%, rgba(56, 189, 168, 0.22), transparent 50%),
        radial-gradient(ellipse 60% 45% at 70% 90%, rgba(47, 143, 196, 0.35), transparent 55%),
        linear-gradient(165deg, #06253d 0%, #0a3a5c 38%, #0d5f8f 78%, #0a4a72 100%);
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    line-height: 0;
    transform: translateY(-99%);
    pointer-events: none;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 48px;
}

.footer-wave-fill {
    fill: #06253d;
}

.footer-wave-fill--soft {
    fill: rgba(56, 189, 168, 0.35);
}

.footer-cta-band {
    position: relative;
    padding: 2.75rem 0 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 1.5rem 2.5rem;
    align-items: end;
    padding-bottom: 2rem;
}

.footer-cta-eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.footer-cta-copy h2 {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    max-width: 22ch;
}

.footer-cta-copy p:last-child {
    margin: 0;
    max-width: 40rem;
    color: rgba(234, 243, 249, 0.72);
    font-size: 0.98rem;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.button-gold {
    background: linear-gradient(135deg, #f5d06a, #e8b53a);
    color: #163246;
    border: none;
    box-shadow: 0 8px 24px rgba(240, 194, 75, 0.28);
}

.button-gold:hover {
    background: linear-gradient(135deg, #ffe08a, #f0c24b);
    color: #0a3a5c;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
    gap: 2.5rem 2rem;
    padding: 3rem 0 2.75rem;
}

.footer-brand .site-logo {
    margin-bottom: 0.85rem;
}

.footer-brand .logo-text {
    color: #fff;
}

.site-logo-image--footer {
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.footer-tagline {
    margin: 0 0 0.65rem;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-about {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 30rem;
    color: rgba(234, 243, 249, 0.72);
}

.footer-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(56, 189, 168, 0.18);
    border: 1px solid rgba(56, 189, 168, 0.35);
    color: #dff8f2;
    font-size: 0.85rem;
}

.footer-stat strong {
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-links,
.footer-contact,
.footer-start {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.site-footer h3 {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links a,
.footer-contact a,
.footer-meta-links a {
    color: rgba(234, 243, 249, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s, transform 0.2s;
    width: fit-content;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-meta-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-contact p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-start-lead {
    margin: -0.15rem 0 0.65rem;
    font-size: 0.88rem;
    color: rgba(234, 243, 249, 0.6);
}

.footer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.15rem;
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.footer-chip:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.footer-chip--teal {
    background: linear-gradient(135deg, #1a9a88, #2bb8a3);
}

.footer-chip--blue {
    background: linear-gradient(135deg, #0f6dad, #2f8fc4);
}

.footer-chip--deep {
    background: linear-gradient(135deg, #155e91, #0d4f7a);
}

.footer-chip--green {
    background: linear-gradient(135deg, #2f8a6a, #4caf8b);
}

.footer-chip--gold {
    background: linear-gradient(135deg, #d9a72e, #f0c24b);
    color: #1a3346;
}

.footer-chip--cyan {
    background: linear-gradient(135deg, #1f8bb8, #5eb8dc);
}

.footer-meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-meta-links a {
    font-size: 0.84rem;
    color: rgba(234, 243, 249, 0.55);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 24, 40, 0.35);
    padding: 1.1rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.84rem;
    margin: 0;
    color: rgba(234, 243, 249, 0.48);
}

.footer-bottom-note {
    color: rgba(234, 243, 249, 0.38) !important;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-link svg {
    width: 1.05rem;
    height: 1.05rem;
}

.footer-social-link:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--dark);
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-cta-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .footer-main {
        grid-template-columns: 1fr;
        padding-top: 2.25rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── 404 ── */

.error-page {
    text-align: center;
    padding: 6rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

/* ── Scroll reveal & motion ── */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.hero-animate > * {
    opacity: 0;
    animation: hero-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.1s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.22s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.34s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.46s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.58s; }

.hero-bg {
    animation: hero-ken-burns 20s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-animate > * {
        opacity: 1;
        animation: none;
    }

    .hero-bg {
        animation: none;
    }
}

/* ── Trust bar ── */

.trust-bar {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.trust-bar-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem 3rem;
}

.trust-logo {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--muted);
    opacity: 0.55;
    transition: opacity 0.25s, color 0.25s;
}

.trust-logo:hover {
    opacity: 1;
    color: var(--text);
}

/* ── Testimonials ── */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 1.5rem;
    flex: 1;
}

.testimonial-quote::before {
    content: "\201C";
    display: block;
    font-family: var(--font-sans);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
}

/* ── Values grid ── */

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent-light);
}

.value-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.value-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ── Team grid ── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 3/4;
    background: var(--border);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.team-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Timeline ── */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--border);
}

.timeline-item {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.timeline-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.timeline-item h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.timeline-item p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

/* ── FAQ accordion ── */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.2s;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* ── Why choose us ── */

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.3s, transform 0.3s;
}

.why-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.why-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.why-card h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.why-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 1024px) {
    .testimonial-grid,
    .values-grid,
    .team-grid,
    .why-grid,
    .post-grid--cols-3,
    .post-grid--cols-4 {
        grid-template-columns: 1fr 1fr;
    }

    .timeline {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .timeline::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .testimonial-grid,
    .values-grid,
    .team-grid,
    .why-grid,
    .timeline,
    .contact-layout,
    .contact-form-fields,
    .post-grid--cols-2,
    .post-grid--cols-3,
    .post-grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .form-group--half {
        grid-column: 1 / -1;
    }
}

/* Responsive layout rules: generated from Admin → Options → Layout breakpoints */


/* ── Shared notices (contact form; admin notices live in admin.css) ── */

.notice {
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.notice-success {
    background: #dcfce7;
    color: var(--success);
}

.notice-error {
    background: #fee2e2;
    color: var(--error);
}

.notice ul {
    margin: 0;
    padding-left: 1.2rem;
}

.contact-notice {
    align-self: start;
}

    .contact-layout .notice ul {
    margin: 0;
    padding-left: 1.1rem;
}

/* Page builder preview (admin logged in + ?builder=1) */
body.page-builder-mode [data-easy-block-id] {
    position: relative;
    cursor: pointer;
    outline: 2px dashed transparent;
    outline-offset: 4px;
    transition: outline-color 0.15s ease;
}

body.page-builder-mode [data-easy-block-id]:hover {
    outline-color: rgba(99, 102, 241, 0.55);
}

body.page-builder-mode [data-easy-block-id].is-builder-selected {
    outline: 2px solid #6366f1;
    outline-offset: 4px;
}

body.page-builder-mode [data-easy-block-id].is-builder-pending-remove,
[data-easy-block-id].is-builder-pending-remove {
    opacity: 0.38;
    filter: grayscale(0.35);
    pointer-events: none;
    outline: 2px dashed rgba(244, 63, 94, 0.55) !important;
    outline-offset: 4px;
    transition: opacity 0.25s ease, filter 0.25s ease, outline-color 0.25s ease;
}

/* ── Fishy Friends — homepage ── */

.page-home {
    --home-ink: #0a2f4a;
    --home-depth: #0d3d5c;
    --home-foam: #eaf3f9;
}

.page-home .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.page-home .site-header.is-solid {
    background: rgba(244, 248, 247, 0.92);
    border-bottom-color: var(--border);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 3px 0 0 var(--accent-secondary);
}

/* Keep top-level nav readable over the hero before scroll.
   Do NOT paint submenu links white — they sit on a light panel. */
.page-home .site-header:not(.is-solid) {
    color: #fff;
    background: linear-gradient(180deg, rgba(4, 22, 36, 0.55) 0%, rgba(4, 22, 36, 0.22) 62%, transparent 100%);
    backdrop-filter: blur(10px);
}

.page-home .site-header:not(.is-solid) .site-nav--desktop > a,
.page-home .site-header:not(.is-solid) .nav-item--has-children > a,
.page-home .site-header:not(.is-solid) .nav-submenu-indicator,
.page-home .site-header:not(.is-solid) .nav-toggle {
    color: rgba(255, 255, 255, 0.94);
}

.page-home .site-header:not(.is-solid) .nav-toggle {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(4, 22, 36, 0.28);
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.page-home .site-header:not(.is-solid) .nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(4, 22, 36, 0.42);
}

.page-home .site-header:not(.is-solid) .nav-toggle-bar {
    background: #fff;
}

body.nav-open.page-home .site-header:not(.is-solid) {
    color: var(--text);
    background: rgba(244, 248, 247, 0.98);
    border-bottom-color: var(--border);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 3px 0 0 var(--accent-secondary);
}

body.nav-open.page-home .site-header:not(.is-solid) .site-logo-image--default {
    display: block;
}

body.nav-open.page-home .site-header:not(.is-solid) .site-logo-image--on-media {
    display: none;
}

.page-home .site-header:not(.is-solid) .site-nav--desktop > a:hover,
.page-home .site-header:not(.is-solid) .site-nav--desktop > a[aria-current="page"],
.page-home .site-header:not(.is-solid) .site-nav--desktop > a.is-active,
.page-home .site-header:not(.is-solid) .nav-item--has-children:hover > a,
.page-home .site-header:not(.is-solid) .nav-item--has-children:focus-within > a,
.page-home .site-header:not(.is-solid) .site-nav--desktop .nav-item--has-children:hover > a,
.page-home .site-header:not(.is-solid) .site-nav--desktop .nav-item--has-children:focus-within > a {
    color: #fff;
}

.page-home .site-header:not(.is-solid) .site-nav--desktop > a.is-active,
.page-home .site-header:not(.is-solid) .site-nav--desktop .nav-item--has-children.is-active > a {
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.85);
}

.page-home .site-header:not(.is-solid) .nav-submenu a {
    color: var(--muted);
}

.page-home .site-header:not(.is-solid) .nav-submenu a:hover {
    color: var(--text);
    background: var(--accent-light);
}

.page-home .site-header:not(.is-solid) .nav-submenu a.is-active {
    color: var(--accent);
    background: var(--accent-light);
}

.page-home .site-header:not(.is-solid) .header-tools--desktop .site-search-form {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    box-shadow: none;
}

.page-home .site-header:not(.is-solid) .header-tools--desktop .site-search-form input[type="search"] {
    color: #fff;
}

.page-home .site-header:not(.is-solid) .header-tools--desktop .site-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-home .site-header:not(.is-solid) .header-tools--desktop .site-search-submit {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.page-home .site-header:not(.is-solid) .header-tools--desktop .site-search-submit:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-home .site-header:not(.is-solid) .header-tools--desktop .i18n-switcher--flags .i18n-switcher-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.page-home .site-header:not(.is-solid) .i18n-switcher--flags .i18n-switcher-link.is-current {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

/* Swap to light logo over the hero — never invert a dark-backed PNG */
.page-home .site-header:not(.is-solid) .site-logo-image--default {
    display: none;
}

.page-home .site-header:not(.is-solid) .site-logo-image--on-media {
    display: block;
}

.page-home .site-main {
    padding-top: 0;
}

.page-home .header-cta {
    display: none;
}

.home-hero {
    position: relative;
    /* Banner height — short enough to peek the next story, tall enough for CTAs */
    min-height: clamp(24rem, 56vh, 36rem);
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.home-hero-media {
    position: absolute;
    inset: 0;
}

.home-hero-photo {
    position: absolute;
    inset: -2%;
    background-size: cover;
    background-position: 58% 42%;
    transform: scale(1.03);
    animation: home-drift 40s ease-in-out infinite alternate;
}

.home-hero-wash {
    position: absolute;
    inset: 0;
    background:
        /* Strong left reading lane */
        linear-gradient(90deg, rgba(4, 22, 36, 0.94) 0%, rgba(4, 22, 36, 0.78) 26%, rgba(4, 22, 36, 0.35) 46%, transparent 68%),
        /* Top for nav + bottom blend */
        linear-gradient(180deg, rgba(4, 22, 36, 0.55) 0%, transparent 28%, rgba(4, 22, 36, 0.25) 70%, rgba(4, 22, 36, 0.9) 100%);
}

.home-hero-caustic {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background:
        radial-gradient(ellipse 42% 36% at 78% 30%, rgba(126, 184, 224, 0.14), transparent 70%),
        radial-gradient(ellipse 34% 28% at 22% 72%, rgba(120, 196, 160, 0.1), transparent 72%);
    animation: home-shimmer 16s ease-in-out infinite alternate;
}

.home-hero-content.hero-animate > * {
    /* Brand stays readable — no fade-from-empty on a planted hero */
    opacity: 1;
    transform: none;
    animation: none;
}

.home-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 5.5rem 0 3.25rem;
    max-width: 34rem;
}

.home-hero-content::before {
    content: "";
    position: absolute;
    left: -1.5rem;
    right: -1rem;
    top: 4.25rem;
    bottom: 1.75rem;
    z-index: -1;
    border-radius: 1.25rem;
    background: radial-gradient(ellipse 70% 65% at 30% 55%, rgba(4, 22, 36, 0.55), transparent 72%);
    pointer-events: none;
}

.home-hero-eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b7dff4;
    text-shadow: 0 1px 12px rgba(4, 22, 36, 0.7);
}

.home-hero-content h1 {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: clamp(2.65rem, 6.5vw, 4.35rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(4, 22, 36, 0.75), 0 0 40px rgba(4, 22, 36, 0.45);
}

.home-hero-tagline {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.4;
    font-weight: 500;
    color: #eaf3f9;
    max-width: 24rem;
    text-shadow: 0 1px 14px rgba(4, 22, 36, 0.7);
}

.home-hero-lead,
.home-hero-content .home-hero-lead,
.home-hero-content p:not(.home-hero-eyebrow):not(.home-hero-tagline) {
    display: none; /* brand + tagline + CTAs only */
}

.home-hero-actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.home-hero-cta {
    background: #7eb8e0;
    color: var(--home-ink);
    border: none;
    min-width: 10.25rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(6, 28, 44, 0.35);
}

.home-hero-cta:hover {
    background: #a8cfe8;
    color: var(--home-ink);
}

.home-hero-cta-secondary {
    background: rgba(6, 28, 44, 0.45);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    font-weight: 600;
}

.home-hero-cta-secondary:hover {
    background: rgba(6, 28, 44, 0.62);
    color: #fff;
}

.home-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    z-index: 2;
    width: 1.5rem;
    height: 1.5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: home-scroll-dot 1.8s ease-in-out infinite;
}

.home-hero-scroll span {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    border-bottom: 2px solid rgba(255, 255, 255, 0.75);
    transform: rotate(45deg) translateY(-2px);
}

.home-featured {
    background: var(--home-ink);
    position: relative;
    z-index: 1;
    margin-top: -0.5rem;
}

.home-featured-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: min(42vh, 440px);
}

.home-feature {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    min-height: 360px;
    background: linear-gradient(145deg, #0f6dad, #0d4f7a);
}

.home-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s ease;
}

.home-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(10, 47, 74, 0.88) 100%);
}

.home-feature:hover img {
    transform: scale(1.04);
}

.home-feature-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.home-feature-copy span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-mint);
}

.home-feature-copy strong {
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 18ch;
}

.home-spotlight {
    padding: 4.5rem 0;
    background:
        radial-gradient(ellipse 50% 70% at 0% 50%, rgba(126, 184, 224, 0.28), transparent 55%),
        linear-gradient(180deg, #0a2f4a 0%, #0d4f7a 100%);
    color: #fff;
}

.home-spotlight-intro {
    margin-bottom: 2rem;
    max-width: 36rem;
}

.home-spotlight-intro h2 {
    margin: 0 0 0.55rem;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

.home-spotlight-intro p {
    margin: 0;
    color: rgba(234, 243, 249, 0.75);
}

.home-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-spotlight-card {
    display: grid;
    grid-template-rows: 200px auto;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(126, 184, 224, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.home-spotlight-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-mint);
    background: rgba(255, 255, 255, 0.1);
}

.home-spotlight-media {
    display: block;
    overflow: hidden;
}

.home-spotlight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-spotlight-card:hover .home-spotlight-media img {
    transform: scale(1.05);
}

.home-spotlight-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1.15rem;
}

.home-spotlight-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-mint);
}

.home-spotlight-copy strong {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-start {
    padding: 3.5rem 0;
    background:
        radial-gradient(ellipse 40% 80% at 100% 0%, rgba(74, 159, 212, 0.25), transparent 55%),
        var(--accent-light);
}

.home-start-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

.home-start-copy h2 {
    margin: 0 0 0.5rem;
    color: var(--home-ink);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.home-start-copy p {
    margin: 0;
    color: var(--muted);
}

.home-start-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-start-link {
    display: inline-flex;
    padding: 0.7rem 1.05rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s, filter 0.15s;
}

.home-start-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    color: #fff;
}

.home-start-link--0 { background: var(--accent); }
.home-start-link--1 { background: var(--accent-secondary); }
.home-start-link--2 { background: #0f6dad; }
.home-start-link--3 { background: var(--dark); }

.home-topics {
    padding: 4.5rem 0 0;
    background: linear-gradient(180deg, var(--home-foam) 0%, var(--bg) 100%);
}

.home-topics-intro {
    margin-bottom: 2rem;
    max-width: 34rem;
}

.home-topics-intro h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    color: var(--home-ink);
}

.home-topics-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.home-topic-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0 0.5rem 0.5rem;
}

.home-topic {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px;
    padding: 1.25rem;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.35s ease;
}

.home-topic::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(10, 47, 74, 0.82) 100%);
    transition: background 0.35s ease;
}

.home-topic span {
    position: relative;
    z-index: 1;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    line-height: 1.2;
}

.home-topic:hover {
    transform: translateY(-2px);
}

.home-topic:hover::before {
    background: linear-gradient(180deg, transparent 10%, rgba(10, 47, 74, 0.9) 100%);
}

.home-topic:nth-child(1),
.home-topic:nth-child(6) {
    grid-row: span 2;
    min-height: 450px;
}

.home-latest {
    padding: 5rem 0 6rem;
    background:
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(126, 184, 224, 0.28), transparent 70%),
        var(--bg);
}

.home-latest-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.home-latest-intro h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    color: var(--home-ink);
}

.home-latest-intro p {
    margin: 0;
    color: var(--muted);
}

.home-latest-all {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.1rem;
}

.home-latest-all:hover {
    color: var(--accent-hover);
}

.home-latest-list {
    display: flex;
    flex-direction: column;
}

.home-latest-item {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.home-latest-item:last-child {
    border-bottom: 1px solid var(--border);
}

.home-latest-item:hover {
    opacity: 0.82;
}

.home-latest-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
}

.home-latest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.home-latest-item:hover .home-latest-media img {
    transform: scale(1.03);
}

.home-latest-copy {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.home-latest-cat {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-secondary);
}

.home-latest-copy strong {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--home-ink);
}

.home-latest-excerpt {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 40rem;
}

.home-depth {
    padding: 4.5rem 0;
    background:
        radial-gradient(ellipse 45% 80% at 10% 30%, rgba(126, 184, 224, 0.22), transparent 55%),
        linear-gradient(120deg, #0a3a5c 0%, #0f6dad 55%, #2f8fc4 100%);
    color: #fff;
}

.home-depth-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.home-depth-copy h2 {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}

.home-depth-copy p {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    color: rgba(234, 243, 249, 0.82);
    font-size: 1.05rem;
}

.home-depth-cta {
    background: #7eb8e0;
    color: var(--home-ink);
}

.home-depth-cta:hover {
    background: #a8cfe8;
    color: var(--home-ink);
}

.home-depth-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.home-depth-stats li {
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(126, 184, 224, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.home-depth-stats strong {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
}

.home-depth-stats span {
    font-size: 0.88rem;
    color: rgba(234, 243, 249, 0.75);
}

@keyframes home-drift {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@keyframes home-shimmer {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

@keyframes home-scroll-dot {
    0% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
    45% { opacity: 1; }
    100% { opacity: 0.25; transform: translateX(-50%) translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-photo,
    .home-hero-caustic,
    .home-hero-scroll {
        animation: none;
    }

    .home-hero-content.hero-animate > * {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .home-feature img,
    .home-latest-media img,
    .home-topic {
        transition: none;
    }
}

@media (max-width: 980px) {
    .home-topic-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-topic:nth-child(1),
    .home-topic:nth-child(6) {
        grid-row: span 1;
        min-height: 240px;
    }

    .home-spotlight-grid {
        grid-template-columns: 1fr;
    }

    .home-start-inner,
    .home-depth-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .home-featured-pair {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-feature {
        min-height: 280px;
    }

    .home-hero-content {
        padding: 5.75rem 0 2.5rem;
        max-width: 100%;
    }

    .home-hero {
        min-height: clamp(20rem, 58vh, 28rem);
    }

    .home-hero-photo {
        background-position: 62% 40%;
    }

    .home-latest-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-latest-item {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 1rem;
    }

    .home-spotlight-card {
        grid-template-rows: 180px auto;
    }

    .page-home .site-header:not(.is-solid) .site-logo-image--brand {
        max-width: 260px;
        height: 46px;
    }
}

@media (max-width: 560px) {
    .home-topic-mosaic {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0;
    }

    .home-topic {
        min-height: 180px;
    }

    .home-latest-item {
        grid-template-columns: 1fr;
    }

    .home-latest-media {
        aspect-ratio: 16 / 9;
    }
}


/* Shared Fishy bits (posts, blogs) */

.fish-type-chips-section {
    padding: 1.75rem 0 0.25rem;
}

.fish-type-chips-head {
    margin-bottom: 1rem;
    max-width: 40rem;
}

.fish-type-chips-head h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    color: var(--dark);
}

.fish-type-chips-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.fish-type-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.fish-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem 0.45rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 650;
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fish-type-chip:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 18px rgba(10, 58, 92, 0.16);
    color: #fff;
}

.fish-type-chip.is-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

.fish-type-chip-count {
    display: inline-flex;
    min-width: 1.4rem;
    justify-content: center;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
    font-weight: 700;
}

.fish-type-chip--0 { background: linear-gradient(135deg, #0f6dad, #2f8fc4); }
.fish-type-chip--1 { background: linear-gradient(135deg, #1a9a88, #2bb8a3); }
.fish-type-chip--2 { background: linear-gradient(135deg, #155e91, #0d4f7a); }
.fish-type-chip--3 { background: linear-gradient(135deg, #2f8a6a, #4caf8b); }
.fish-type-chip--4 { background: linear-gradient(135deg, #d9a72e, #f0c24b); color: #1a3346; }
.fish-type-chip--4 .fish-type-chip-count { background: rgba(26, 51, 70, 0.15); }
.fish-type-chip--4:hover { color: #1a3346; }
.fish-type-chip--5 { background: linear-gradient(135deg, #1f8bb8, #5eb8dc); }

.blog-card-meta {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-secondary);
}

.blog-card-body h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.blog-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-body h3 a:hover {
    color: var(--accent);
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figure img,
.post-content p img {
    border-radius: var(--radius);
}

.page-post .post-taxonomy {
    display: none;
}

.prose-page {
    max-width: 46rem;
}

.prose-page h2 {
    margin-top: 2rem;
    font-size: 1.35rem;
}

.site-logo-image--brand {
    width: auto;
    height: 58px;
    max-width: 340px;
    border-radius: 0;
}

@media (max-width: 700px) {
    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .site-logo-image--brand {
        height: 44px;
        max-width: 250px;
    }
}


/* Colourful category archive heroes */
.page-blog-archive .page-hero,
.page-blog .page-hero {
    background:
        radial-gradient(ellipse 60% 80% at 20% 30%, rgba(74, 159, 212, 0.35), transparent 55%),
        radial-gradient(ellipse 50% 70% at 95% 70%, rgba(47, 143, 196, 0.28), transparent 50%),
        linear-gradient(125deg, #0a3a5c 0%, #0f6dad 50%, #2f8fc4 100%);
}
