/* ==========================================================================
   Gavier Tech Ltd: Site Stylesheet
   Framework-free. Mobile-first. Organised as:
   1. Tokens  2. Base  3. Layout  4. Components  5. Sections  6. Pages
   7. Utilities  8. Motion
   ========================================================================== */

/* 1. Tokens
   ------------------------------------------------------------------------ */
:root {
    /* Brand */
    --brand: #0bb3b8;          /* teal for text/UI on light surfaces */
    --brand-600: #08959a;
    --brand-bright: #2fe6ea;   /* glow teal for dark surfaces */
    --brand-soft: #e3f8f8;

    /* Neutrals */
    --ink: #0a1628;            /* deep navy */
    --ink-2: #10213a;
    --ink-3: #1a2e4d;
    --text: #1f2a3a;
    --muted: #5b6678;
    --line: #e3e8ee;
    --surface: #f4f7fa;
    --white: #ffffff;

    /* Type */
    --font-head: "Sora", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, .06), 0 2px 8px rgba(10, 22, 40, .04);
    --shadow: 0 10px 30px -12px rgba(10, 22, 40, .18);
    --shadow-lg: 0 30px 60px -20px rgba(10, 22, 40, .35);

    /* Layout */
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 120px);
    --header-h: 76px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base
   ------------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Nothing may widen the page sideways (clip, unlike hidden, keeps the sticky header working) */
html { overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }
html.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1em; }

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color .2s var(--ease);
}
a:hover { color: var(--ink); }

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

ul { margin: 0; padding: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--brand-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--brand-bright); color: var(--ink); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 3. Layout
   ------------------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--surface { background: var(--surface); }
.section--dark {
    background: var(--ink);
    color: #c6d0de;
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.split {
    display: grid;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (min-width: 960px) {
    .split { grid-template-columns: 1fr 1fr; }
}

/* 4. Components
   ------------------------------------------------------------------------ */

/* Eyebrow + section heading */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-600);
}
.section--dark .eyebrow,
.on-dark .eyebrow { color: var(--brand-bright); }

.section-head {
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head p {
    font-size: 1.075rem;
    color: var(--muted);
    margin: 0;
}
.section--dark .section-head p { color: #9fb0c6; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), background-color .2s var(--ease),
                color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--brand);
    color: var(--white);
}
.btn--primary:hover { background: var(--brand-600); color: var(--white); }


.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.btn--outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

.btn--lg { padding: 18px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .925rem;
    color: var(--brand-600);
}
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover i { transform: translateX(4px); }

/* Icon tile */
.icon-tile {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-600);
    font-size: 1.2rem;
}
.icon-tile--dark { background: var(--ink); color: var(--brand-bright); }
.icon-tile--lg { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 16px; }

/* Check list */
.check-list {
    list-style: none;
    display: grid;
    gap: 12px;
}
.check-list li {
    position: relative;
    padding-left: 32px;
}
.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    font-size: .65rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-600);
}


/* Tags / chips */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    padding: 8px 14px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* Cards */
.card {
    position: relative;
    height: 100%;
    padding: clamp(24px, 3vw, 36px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.card h3 { margin-top: 20px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

/* Form */
.form-grid {
    display: grid;
    gap: 18px;
}
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .full { grid-column: 1 / -1; }
}
.field label {
    display: block;
    margin-bottom: 8px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
}
.field label span { color: var(--brand-600); }
.input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.input::placeholder { color: #98a2b3; }
.input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(11, 179, 184, .15);
}
textarea.input { min-height: 160px; resize: vertical; }
select.input {
    padding-right: 44px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6678' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* 5. Sections
   ------------------------------------------------------------------------ */

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Blur lives on a layer: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -12px rgba(10, 22, 40, .15);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand__mark { height: 42px; width: auto; }
.brand__word { height: 26px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav__link {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-family: var(--font-head);
    font-size: .925rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__cta { margin-left: 12px; }

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

@media (max-width: 991px) {
    .nav-toggle { display: block; }
    .brand__mark { height: 36px; }
    .brand__word { height: 22px; }

    .site-header:has(.nav.is-open)::before { background: var(--white); }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding: 24px var(--gutter) 40px;
        background: var(--white);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }
    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__link {
        padding: 16px 4px;
        font-size: 1.15rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }
    .nav__link::after { display: none; }
    .nav__link.is-active { color: var(--brand-600); }
    .nav__cta { margin-left: 0; width: 100%; }
}

/* Hero (home) */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 820px);
    padding-block: 120px 160px;
    color: #c6d0de;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    animation: heroZoom 18s var(--ease) both;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 22, 40, .97) 0%, rgba(10, 22, 40, .88) 40%, rgba(10, 22, 40, .35) 100%),
        linear-gradient(0deg, rgba(10, 22, 40, .9) 0%, transparent 40%);
}
.hero__content { max-width: 720px; }
.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
}
.hero h1 .accent {
    background: linear-gradient(90deg, var(--brand-bright), #7af3f5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    max-width: 560px;
    margin-bottom: 36px;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: #b7c3d4;
}

/* Trust bar overlapping the hero */
.trust-bar {
    position: relative;
    z-index: 2;
    margin-top: -80px;
}
.trust-bar__inner {
    display: grid;
    gap: 1px;
    background: var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
@media (min-width: 768px) { .trust-bar__inner { grid-template-columns: repeat(3, 1fr); } }
.trust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px;
    background: var(--white);
}
.trust-item h3 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}
.trust-item p {
    margin: 0;
    font-size: .925rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    padding-block: clamp(80px, 12vw, 140px) clamp(64px, 9vw, 110px);
    color: #b7c3d4;
    background: var(--ink);
    overflow: hidden;
    isolation: isolate;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(10, 22, 40, .97) 20%, rgba(10, 22, 40, .7) 100%);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 230, 234, .25), transparent 65%);
}
.page-hero h1 {
    color: var(--white);
    margin-bottom: 16px;
}
.page-hero p {
    max-width: 620px;
    font-size: 1.1rem;
    margin-bottom: 0;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: .875rem;
}
.breadcrumb a { color: var(--brand-bright); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #5c6f8a;
}
.breadcrumb [aria-current] { color: #8fa0b8; }

/* Home: client logo strip under the hero */
.client-strip {
    padding-block: 40px 44px;
    border-bottom: 1px solid var(--line);
}
.client-strip__title {
    margin: 0 0 24px;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    color: var(--muted);
}

/* Home: who we are */
.intro-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
@media (max-width: 959px) { .intro-media img { aspect-ratio: 3 / 2; } }
.intro-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
    padding-block: 24px;
    border-block: 1px solid var(--line);
}
@media (min-width: 560px) { .intro-stats { grid-template-columns: repeat(4, 1fr); } }
.intro-stats div { display: flex; flex-direction: column; gap: 4px; }
.intro-stats dt { order: 2; font-size: .85rem; color: var(--muted); }
.intro-stats dd {
    order: 1;
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}

/* Plain list separated by lines (home: why choose us) */
.line-list { margin-top: 28px; border-top: 1px solid var(--line); }
.line-list__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.line-list__item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.line-list__item p { margin: 0; color: var(--muted); }

/* Service cards (home & services overview) */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    color: var(--text);
}
.service-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 28px 28px;
}
.service-card__body h3 { margin: 0 0 10px; }
.service-card__body p { color: var(--muted); }
.service-card__body .link-arrow { margin-top: auto; }

/* Media with play button */
.media-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.media-frame img {
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
}
.media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 22, 40, .5), transparent 50%);
    pointer-events: none;
}


/* Projects */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 20px;
    font-family: var(--font-head);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.project-grid {
    display: grid;
    gap: 24px;
}
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

.project {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink);
    aspect-ratio: 4 / 3.4;
    animation: fadeUp .5s var(--ease) both;
}
.project[hidden] { display: none; }
.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease), opacity .3s;
}
.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 22, 40, .95) 0%, rgba(10, 22, 40, .35) 55%, transparent 100%);
    transition: opacity .3s var(--ease);
}
.project__info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 24px;
}
.project__client {
    display: block;
    margin-bottom: 6px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-bright);
}
.project__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
    color: var(--white);
}
.project:hover img { transform: scale(1.07); }

/* Projects page: intro numbers */
.work-intro {
    display: grid;
    gap: 32px;
    align-items: end;
}
@media (min-width: 960px) { .work-intro { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.work-intro h2 { margin-bottom: 14px; }
.work-intro .lead { margin: 0; }
.work-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.work-stats > div { padding: clamp(16px, 2.5vw, 24px); }
.work-stats > div + div { border-left: 1px solid var(--line); }
.work-stats dt { order: 2; font-size: .85rem; color: var(--muted); }
.work-stats div { display: flex; flex-direction: column; gap: 6px; }
.work-stats dd {
    order: 1;
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}

/* Projects page: featured case study */
.case-study__media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.case-study__client {
    margin: 0 0 8px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--brand-bright);
}
.case-study h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 16px; }
.case-study__summary { font-size: 1.075rem; color: #c6d0de; }
.case-study__tags,
.work-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.case-study__tags li {
    padding: 6px 12px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand-bright);
    background: rgba(47, 230, 234, .1);
    border: 1px solid rgba(47, 230, 234, .25);
    border-radius: 999px;
}
.case-study__quote {
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.case-study__quote blockquote {
    margin: 0 0 12px;
    font-size: 1rem;
    font-style: italic;
    color: #c6d0de;
}
.case-study__quote figcaption { font-size: .9rem; color: #9fb0c6; }
.case-study__quote strong { color: var(--white); }

/* Projects page: portfolio grid */
.filters--start { justify-content: flex-start; margin-bottom: 0; }
.work-grid {
    display: grid;
    gap: 24px;
}
@media (min-width: 640px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeUp .5s var(--ease) both;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.work-card[hidden] { display: none; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.work-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.work-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}
.work-card__client {
    margin: 0 0 6px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand-600);
}
.work-card h3 { margin: 0 0 10px; font-size: 1.1rem; line-height: 1.35; }
.work-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.work-card__tags li {
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border-radius: 999px;
}
.work-card__location { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.work-card__location i { color: var(--brand); }

/* Client logo marquee */
.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-card {
    display: grid;
    place-items: center;
    width: 200px;
    height: 110px;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.logo-card img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logo-card:hover img { filter: none; opacity: 1; }

/* Testimonials */
.testimonials {
    display: grid;
    gap: 24px;
}
@media (min-width: 960px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 959px) {
    .testimonials {
        grid-auto-flow: column;
        grid-auto-columns: min(86%, 440px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 16px;
        scrollbar-width: thin;
    }
    .testimonials > * { scroll-snap-align: start; }
}
.quote {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.quote blockquote {
    margin: 0 0 28px;
    font-size: .975rem;
    color: var(--text);
}
.quote figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.quote figcaption img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.quote figcaption strong {
    display: block;
    font-family: var(--font-head);
    color: var(--ink);
}
.quote figcaption span {
    font-size: .85rem;
    color: var(--muted);
}

/* CTA band */
.cta {
    position: relative;
    padding: clamp(48px, 7vw, 80px) clamp(24px, 6vw, 72px);
    color: #b7c3d4;
    background: var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(47, 230, 234, .28), transparent 70%),
        radial-gradient(400px 220px at 0% 100%, rgba(11, 179, 184, .2), transparent 70%);
}
.cta__inner {
    display: grid;
    gap: 32px;
    align-items: center;
}
@media (min-width: 960px) { .cta__inner { grid-template-columns: 1.4fr 1fr; } }
.cta h2 { color: var(--white); margin-bottom: 12px; }
.cta p { margin: 0; font-size: 1.075rem; }
.cta .btn-row { justify-content: flex-start; }
@media (min-width: 960px) { .cta .btn-row { justify-content: flex-end; } }

/* Footer */
.site-footer {
    padding-top: clamp(64px, 8vw, 96px);
    color: #8fa0b8;
    background: #07111f;
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    gap: 40px;
    padding-bottom: 56px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 48px; } }
.footer-grid > * { min-width: 0; }
.footer-about { max-width: 380px; }
.footer-about .newsletter { margin-top: 26px; }

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--white);
}
.footer-brand img { height: 44px; width: auto; }
.footer-brand span {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.1;
}
.footer-brand small {
    display: block;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    color: var(--brand-bright);
}
.site-footer h3 {
    margin-bottom: 22px;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6f819b;
}
.footer-links {
    display: grid;
    gap: 10px;
    list-style: none;
}
.footer-links a { color: #8fa0b8; }
.footer-links a:hover { color: var(--brand-bright); }
.footer-contact { margin: 0; }
.footer-contact dt {
    margin-bottom: 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-bright);
}
.footer-contact dd {
    margin: 0 0 16px;
    color: #c6d0de;
    overflow-wrap: anywhere;
}
.footer-contact a { color: #c6d0de; }
.footer-contact a:hover { color: var(--brand-bright); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.socials a:hover {
    color: var(--ink);
    background: var(--brand-bright);
    transform: translateY(-2px);
}

.newsletter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    margin-top: 18px;
    padding: 6px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
}
.newsletter input {
    flex: 999 1 170px; /* takes the spare width; wraps the button below when narrower than this */
    min-width: 0;
    padding: 10px 12px;
    font-size: 1rem;
    color: var(--white);
    background: transparent;
    border: 0;
}
.newsletter .btn { flex: 1 0 auto; }
.newsletter input::placeholder { color: #6f819b; }
.newsletter input:focus { outline: none; }
.newsletter:focus-within { border-color: var(--brand-bright); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 24px;
    font-size: .875rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c6d0de; }
.footer-bottom a:hover { color: var(--brand-bright); }

/* Floating actions */
.fab-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.fab {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .25s var(--ease), opacity .25s var(--ease), visibility .25s;
}
.fab:hover { transform: translateY(-3px); }
.fab--whatsapp {
    width: 58px;
    height: 58px;
    font-size: 1.75rem;
    color: var(--white);
    background: #25d366;
}
.fab--whatsapp:hover { color: var(--white); }
.fab--top {
    width: 44px;
    height: 44px;
    color: var(--white);
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}
.fab--top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* 6. Pages
   ------------------------------------------------------------------------ */

/* About: stats card overlapping the hero */
.page-hero--overlap { padding-bottom: calc(clamp(64px, 9vw, 110px) + 72px); }
.about-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: -72px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.about-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(20px, 3vw, 32px);
}
.about-stat:nth-child(odd) { border-right: 1px solid var(--line); }
.about-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
    .about-stats { grid-template-columns: repeat(4, 1fr); }
    .about-stat { border: 0 !important; }
    .about-stat + .about-stat { border-left: 1px solid var(--line) !important; }
}
.about-stat__num {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}
.about-stat__plus { color: var(--brand); }
.about-stat__label { color: var(--muted); }

/* About: story */
.story-media {
    position: relative;
    padding-bottom: 60px;
}
.story-media img:first-child {
    width: 86%;
    height: clamp(300px, 34vw, 420px);
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.story-media img:last-child {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: clamp(180px, 20vw, 260px);
    object-fit: cover;
    border: 8px solid var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}
.story-sectors {
    margin: 28px 0 14px;
    font-size: 1.05rem;
}
.story-sectors + .tag-list { list-style: none; padding: 0; margin: 0; }
.story-sectors + .tag-list .tag { background: var(--surface); }

/* About: philosophy, vision & mission */
.philosophy-quote {
    margin: 0 0 24px;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
}
.philosophy-tag {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-bright);
}
.mv-list { display: grid; gap: 20px; }
.mv-card {
    display: flex;
    gap: 18px;
    padding: clamp(22px, 3vw, 28px);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
}
.mv-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.mv-card p { margin: 0; color: #9fb0c6; }
.icon-tile--glow { background: rgba(47, 230, 234, .12); color: var(--brand-bright); }

/* About: how we work */
.steps {
    position: relative;
    display: grid;
    gap: 40px 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .steps::before {
        content: "";
        position: absolute;
        left: 12.5%;
        right: 12.5%;
        top: 36px;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--brand) 0 10px, transparent 10px 18px);
    }
}
.step { position: relative; text-align: center; }
.step__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    color: var(--brand-bright);
    background: var(--ink);
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--surface);
}
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* About: what sets us apart */
@media (min-width: 960px) {
    .split--apart { grid-template-columns: 1fr 1.4fr; align-items: stretch; }
}
.apart-media {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.apart-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.apart-media p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 28px;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
    background: linear-gradient(0deg, rgba(10, 22, 40, .9), rgba(10, 22, 40, 0));
}
.apart-list {
    display: grid;
    column-gap: 40px;
    margin-top: 32px;
}
@media (min-width: 640px) { .apart-list { grid-template-columns: 1fr 1fr; } }
.apart-item { padding: 20px 0; border-top: 1px solid var(--line); }
.apart-item h3 { margin: 0 0 6px; font-size: 1.1rem; }
.apart-item p { margin: 0; color: var(--muted); }

/* FAQ accordion */
.faq-layout {
    display: grid;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
@media (min-width: 960px) {
    .faq-layout { grid-template-columns: 1fr 1.6fr; }
    .faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
}
.faq-list { display: grid; gap: 12px; }
.faq {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius); }
.faq summary h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}
.faq summary i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: .8rem;
    color: var(--brand-600);
    background: var(--brand-soft);
    border-radius: 50%;
    transition: transform .25s var(--ease), background-color .2s, color .2s;
}
.faq[open] summary i { transform: rotate(45deg); color: var(--white); background: var(--brand); }
.faq__answer {
    padding: 0 24px 22px;
    color: var(--muted);
}

/* Services */
.svc-overview {
    display: grid;
    gap: 32px;
    align-items: end;
}
@media (min-width: 960px) { .svc-overview { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.svc-overview .lead { margin: 0; }
.svc-index { border-top: 1px solid var(--line); }
.svc-index a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: color .2s, padding-left .25s var(--ease);
}
.svc-index a:hover { color: var(--brand-600); padding-left: 8px; }
.svc-index__note { font-family: var(--font-body); font-size: .9rem; font-weight: 400; color: var(--muted); }

.svc { scroll-margin-top: var(--header-h); }
.svc-block {
    display: grid;
    gap: 40px;
    align-items: start;
}
@media (min-width: 1024px) {
    .svc-block { grid-template-columns: 5fr 7fr; gap: 72px; }
    .svc-block__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.svc-block__intro h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.svc-block__intro p { color: var(--muted); }
.svc-block__intro img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin: 12px 0 20px;
    border-radius: var(--radius-lg);
}
.svc-brands { margin: 0; font-size: .9rem; }
.svc-brands strong { color: var(--ink); }

.svc-list { border-top: 1px solid var(--line); }
.svc-row {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.svc-row h3 { margin-bottom: 8px; font-size: 1.2rem; }
.svc-row p { margin: 0; color: var(--muted); }
.svc-row p + p { margin-top: 10px; }
.svc-row p.svc-row__features { font-size: .9rem; color: var(--text); }
.svc-row__features strong { color: var(--ink); }

/* Contact */
.info-card {
    text-align: left;
}
.info-card h3 { margin-top: 20px; margin-bottom: 8px; font-size: 1.15rem; }
.info-card p { margin-bottom: 4px; }
.info-card a:not(.link-arrow) { color: var(--text); }
.info-card a:not(.link-arrow):hover { color: var(--brand-600); }
.info-card .link-arrow { margin-top: 16px; }

.contact-panel {
    display: grid;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
@media (min-width: 960px) { .contact-panel { grid-template-columns: 1fr 1.5fr; } }
.contact-panel__aside {
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    color: #b7c3d4;
    background: var(--ink);
    isolation: isolate;
    overflow: hidden;
}
.contact-panel__aside::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -100px;
    z-index: -1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 230, 234, .25), transparent 65%);
}
.contact-panel__aside h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.contact-panel__aside .check-list { margin-top: 28px; }
.contact-panel__aside .check-list li::before { background: rgba(47, 230, 234, .15); color: var(--brand-bright); }
.contact-panel__form { padding: clamp(28px, 4vw, 48px); }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

.map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    line-height: 0;
}
.map iframe { width: 100%; height: clamp(320px, 45vw, 460px); border: 0; filter: saturate(.9); }

/* Status pages (thank-you / contact-success) */
.status-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    text-align: center;
    color: #b7c3d4;
    background: var(--ink);
    isolation: isolate;
    position: relative;
    overflow: hidden;
}
.status-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(600px 400px at 50% 30%, rgba(47, 230, 234, .18), transparent 70%);
}
.status-page__card { max-width: 520px; }
.status-page__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 28px;
    font-size: 2rem;
    color: var(--ink);
    background: var(--brand-bright);
    border-radius: 50%;
    box-shadow: 0 0 0 12px rgba(47, 230, 234, .15);
}
.status-page h1 { color: var(--white); font-size: clamp(2rem, 5vw, 2.75rem); }
.status-page p { font-size: 1.1rem; margin-bottom: 32px; }
.status-page p.redirect-note { margin: 28px 0 0; font-size: .9rem; color: #8fa0b8; }
.empty-state .redirect-note { margin: 24px 0 0; font-size: .9rem; color: var(--muted); }
.status-page .btn-row { justify-content: center; }

/* Testimonial without photo */
.quote__initial {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brand-bright);
    background: var(--ink);
    border-radius: 50%;
}

/* Forms: honeypot + alerts */
.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 14px 16px;
    font-size: .95rem;
    border-radius: 10px;
}
.alert i { margin-top: 4px; }
.alert--error { color: #8a1c1c; background: #fdecec; border: 1px solid #f6caca; }

/* Blog */
.section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
}
.section-head--split h2 { margin-bottom: 0; }

/* Post cards */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.post-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface);
}
.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__topic {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 12px;
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
}
.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}
.post-card__title { margin: 0 0 10px; font-size: 1.15rem; line-height: 1.35; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--brand-600); }
.post-card p { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.post-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* Featured: large horizontal card */
@media (min-width: 900px) {
    .post-card--featured { flex-direction: row; }
    .post-card--featured .post-card__media { flex: 1.25; aspect-ratio: auto; min-height: 420px; }
    .post-card--featured .post-card__body { flex: 1; justify-content: center; padding: clamp(32px, 4vw, 56px); }
}
.post-card--featured .post-card__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2; margin-bottom: 16px; }
.post-card--featured p { font-size: 1.05rem; }
.post-card--featured .post-card__foot { margin-top: 8px; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: .825rem;
    color: var(--muted);
}
.post-meta span, .post-meta time { display: inline-flex; align-items: center; gap: 6px; }

/* Insights listing */
.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}
.blog-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-topics .filter-btn { display: inline-block; }
.blog-count { margin: 0; font-size: .9rem; color: var(--muted); }
.blog { padding-bottom: calc(var(--section) * .4); }
.blog-featured { margin-bottom: clamp(48px, 6vw, 72px); }
.blog-featured:last-child { margin-bottom: 0; }
.blog-subhead { margin-bottom: 28px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.pagination a {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination a.is-active { color: var(--white); background: var(--ink); border-color: var(--ink); }

.empty-state {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
}
.empty-state > i { font-size: 2.5rem; color: var(--brand); margin-bottom: 18px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

/* Article: reading progress */
.read-progress {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 101;
    height: 3px;
    pointer-events: none;
}
.read-progress span {
    display: block;
    height: 100%;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
}

/* Article: header */
.article-hero {
    padding-block: clamp(56px, 8vw, 96px) clamp(140px, 16vw, 200px);
    color: #b7c3d4;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(47, 230, 234, .18), transparent 70%),
        var(--ink);
}
.article-hero--plain { padding-bottom: clamp(56px, 7vw, 80px); }
.article-hero__inner { max-width: calc(1080px + var(--gutter) * 2); }
.article-hero__inner > * { max-width: 820px; }
.article-topic {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    color: var(--brand-bright);
    background: rgba(47, 230, 234, .12);
    border: 1px solid rgba(47, 230, 234, .3);
    border-radius: 999px;
}
.article-topic:hover { color: var(--ink); background: var(--brand-bright); }
.article-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    line-height: 1.12;
    margin-bottom: 18px;
}
.article-dek {
    max-width: 720px;
    margin: 0 0 32px;
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: #c6d0de;
}
.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    font-size: .9rem;
}
.article-byline__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
}
.article-byline__avatar img { width: 28px; height: auto; }
.article-byline__who { display: flex; flex-direction: column; line-height: 1.35; color: #9fb0c6; }
.article-byline__who strong { color: var(--white); font-family: var(--font-head); font-weight: 600; }
.article-byline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, .15);
    color: #9fb0c6;
}
.article-byline__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-byline__meta i { color: var(--brand-bright); }
@media (max-width: 559px) { .article-byline__meta { flex-basis: 100%; padding-left: 0; border-left: 0; } }

.article-cover-wrap { max-width: calc(1080px + var(--gutter) * 2); }
.article-cover {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    margin-top: clamp(-170px, -13vw, -100px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Article: body + sidebar */
.article-layout {
    display: grid;
    gap: 40px;
    max-width: calc(1080px + var(--gutter) * 2);
    padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px);
}
@media (min-width: 1024px) {
    .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; }
    .article-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.article-main { min-width: 0; }

.prose {
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.prose > p:first-child { font-size: 1.2rem; color: var(--ink); }
.prose h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    margin: 1.9em 0 .6em;
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { margin: 1.4em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); }
.prose blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--ink);
    background: var(--brand-soft);
    border-radius: var(--radius);
}
.prose blockquote p { margin: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); text-align: center; }

.author-box {
    display: flex;
    gap: 18px;
    max-width: 720px;
    margin-top: 48px;
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
}
.author-box__avatar {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
}
.author-box__avatar img { width: 40px; height: auto; }
.author-box p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.author-box .author-box__name { margin-bottom: 4px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1rem; }

.article-aside { display: grid; gap: 20px; }
.aside-card {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.aside-card__title {
    margin: 0 0 14px;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.aside-card--dark { color: #b7c3d4; background: var(--ink); border-color: var(--ink); }
.aside-card--dark .icon-tile { margin-bottom: 16px; }
.aside-card--dark .aside-card__title {
    margin-bottom: 8px;
    font-size: 1.1rem;
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--white);
}
.aside-card--dark p:not(.aside-card__title) { margin: 0 0 20px; font-size: .95rem; }
.aside-card--dark .btn { width: 100%; }
@media (max-width: 1023px) { .aside-card--dark { display: none; } }

.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
    display: block;
    padding: 7px 0 7px 14px;
    font-size: .9rem;
    line-height: 1.4;
    color: var(--muted);
    border-left: 2px solid var(--line);
    transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--brand); }
@media (max-width: 1023px) { .toc { display: none; } }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a,
.share__copy {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.share a:hover,
.share__copy:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.share__copy.is-copied { color: var(--white); background: var(--brand); border-color: var(--brand); }

/* 7. Utilities
   ------------------------------------------------------------------------ */
.muted { color: var(--muted); }

/* 8. Motion
   ------------------------------------------------------------------------ */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0s);
}
/* Side-slides only where there's room; on smaller screens they rise like the rest */
@media (min-width: 1100px) {
    .js [data-reveal="left"] { transform: translateX(-32px); }
    .js [data-reveal="right"] { transform: translateX(32px); }
}
.js [data-reveal="zoom"] { transform: scale(.95); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroZoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}
@keyframes ping {
    0% { transform: scale(.9); opacity: .7; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
}
@keyframes marquee {
    to { transform: translateX(calc(-50% - 12px)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
