/* ==========================================================
   Mepo Labs — premium enterprise theme
   ========================================================== */
:root {
    --bg: #0d1410;
    --bg-2: #121a15;
    --surface: #161f1a;
    --surface-2: #1c2620;
    --line: rgba(229, 234, 225, 0.09);
    --line-2: rgba(229, 234, 225, 0.16);
    --text: #e5eae1;
    --text-2: rgba(229, 234, 225, 0.66);
    --text-3: rgba(229, 234, 225, 0.42);
    --accent: #b9d8c2;
    --accent-2: #7fb59a;
    --warm: #e2683c;
    --warm-2: #f2b48f;
    --cream: #eef1e8;
    --ink: #0d1410;

    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius: 20px;
    --radius-lg: 28px;
    --max: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* subtle grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    background: var(--cream);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 999px;
}

.skip-link:focus {
    left: 16px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
.display,
.h2,
.trust-title,
.statement-text {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text);
}

.display {
    font-size: clamp(2.9rem, 7.2vw, 5.9rem);
    line-height: 1.02;
}

.h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.06;
}

em {
    font-style: italic;
    color: var(--accent);
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 20px;
}

.lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-2);
    max-width: 620px;
    margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font: 500 15px/1 var(--sans);
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s;
    white-space: nowrap;
}

.btn-light {
    background: var(--cream);
    color: var(--ink);
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(229, 234, 225, .04);
    color: var(--text);
    border-color: var(--line-2);
}

.btn-ghost:hover {
    border-color: rgba(229, 234, 225, .4);
    background: rgba(229, 234, 225, .08);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px var(--gutter);
    transition: background .4s, backdrop-filter .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(13, 20, 16, .72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-color: var(--line);
}

.nav {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(229, 234, 225, .03);
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-2);
    border-radius: 999px;
    transition: color .25s, background .25s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(229, 234, 225, .07);
}

.nav-cta {
    height: 40px;
    font-size: 14px;
    padding: 0 18px;
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: transparent;
    cursor: pointer;
    position: relative;
}

.menu-btn span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    background: var(--text);
    transition: transform .3s var(--ease);
}

.menu-btn span:first-child {
    top: 18px;
}

.menu-btn span:last-child {
    top: 25px;
}

.menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    margin-top: -77px;
    padding: calc(clamp(96px, 13vw, 176px) + 77px) 0 40px;
    overflow: hidden;
    isolation: isolate;
}

.hero-media {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(640px, 92vh, 940px);
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    filter: saturate(.8) contrast(1.05);
    animation: heroZoom 28s ease-out both;
}

@keyframes heroZoom {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1.02);
    }
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 55% at 50% 42%, rgba(13, 20, 16, .72), rgba(13, 20, 16, .25) 80%),
        linear-gradient(180deg, rgba(13, 20, 16, .75) 0%, rgba(13, 20, 16, .35) 30%, rgba(13, 20, 16, .55) 62%, var(--bg) 96%);
}

.hero-live {
    position: absolute;
    z-index: 1;
    top: 104px;
    right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px 7px 11px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text);
    background: rgba(13, 20, 16, .55);
    border: 1px solid rgba(229, 234, 225, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-live i {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7ee2a8;
}

.hero-live i::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #7ee2a8;
    animation: ping 1.8s ease-out infinite;
}

.hero .eyebrow {
    color: rgba(229, 234, 225, .78);
}

.hero .display {
    text-shadow: 0 2px 30px rgba(13, 20, 16, .6);
}

.hero-inner {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-sub {
    max-width: 640px;
    margin-top: 28px;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(229, 234, 225, .82);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* flow diagram */
.flow {
    position: relative;
    margin-top: clamp(56px, 8vw, 96px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(32px, 7vw, 120px);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(229, 234, 225, .03), rgba(229, 234, 225, 0)),
        var(--bg-2);
    overflow: hidden;
    isolation: isolate;
}

.flow::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(60% 70% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000 30%, transparent 80%);
    opacity: .6;
}

.flow-glow {
    position: absolute;
    z-index: -1;
    right: -8%;
    top: -20%;
    width: 55%;
    height: 140%;
    background: radial-gradient(closest-side, rgba(127, 181, 154, .28), rgba(91, 137, 170, .14) 55%, transparent);
    filter: blur(20px);
}

.flow-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.flow-lines path {
    fill: none;
    stroke: rgba(229, 234, 225, .22);
    stroke-width: 1;
}

.flow-lines path.pulse {
    stroke: var(--accent);
    stroke-width: 1.4;
    stroke-dasharray: 6 220;
    animation: pulse 3.6s linear infinite;
    opacity: .9;
}

@keyframes pulse {
    to {
        stroke-dashoffset: -226;
    }
}

.flow-col {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-in {
    align-items: flex-start;
}

.flow-out {
    align-items: flex-end;
}

.flow-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 4px;
}

.node {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text);
    background: rgba(22, 31, 26, .9);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    white-space: nowrap;
}

.node .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--warm);
    box-shadow: 0 0 10px var(--warm);
}

.node .sq {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}

.flow-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.core-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 28px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(160deg, #22302a, #141c18);
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06);
    color: var(--accent);
}

.core-card span {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
}

.core-card small {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--text-3);
}

.core-ring {
    position: absolute;
    width: 200%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(185, 216, 194, .18);
    animation: spin 40s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Trust ---------- */
.trust {
    padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
    text-align: center;
}

.trust-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 36px;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-track span {
    padding: 22px 36px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 36px;
}

.marquee-track span::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-3);
    margin-left: 36px;
    margin-right: -36px;
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Statement ---------- */
.statement {
    padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 128px);
}

.statement-panel {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}

.mesh {
    position: absolute;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(30% 40% at 20% 30%, #f2b48f 0%, transparent 70%),
        radial-gradient(35% 45% at 70% 60%, #e2683c 0%, transparent 70%),
        radial-gradient(30% 35% at 85% 20%, #f6d7c0 0%, transparent 70%),
        radial-gradient(40% 50% at 40% 80%, #c9532b 0%, transparent 70%),
        #e8a07a;
    filter: blur(30px) saturate(115%);
    animation: drift 22s ease-in-out infinite alternate;
}

.mesh-cool {
    background:
        radial-gradient(35% 45% at 15% 25%, #b9d8c2 0%, transparent 70%),
        radial-gradient(40% 50% at 80% 70%, #3f6f8f 0%, transparent 70%),
        radial-gradient(30% 40% at 60% 15%, #e9eadf 0%, transparent 70%),
        radial-gradient(40% 50% at 30% 90%, #22433a 0%, transparent 70%),
        #5f8f86;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate3d(-4%, 3%, 0) rotate(8deg) scale(1.08);
    }
}

.statement-copy {
    position: relative;
    padding: clamp(28px, 5vw, 56px);
    max-width: 920px;
}

.eyebrow-dark {
    color: rgba(13, 20, 16, .6);
}

.statement-text {
    color: var(--ink);
    font-size: clamp(1.7rem, 3.6vw, 2.9rem);
    line-height: 1.12;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    border-top: 1px solid var(--line);
}

.stat {
    padding: 32px 28px 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat+.stat {
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.stat-num {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    color: var(--text);
}

.stat-label {
    color: var(--text-2);
    font-size: 15px;
    max-width: 260px;
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(72px, 10vw, 128px) 0;
    border-top: 1px solid var(--line);
}

.section-head {
    margin-bottom: clamp(40px, 6vw, 64px);
}

/* ---------- Services ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service {
    position: relative;
    padding: clamp(28px, 3.5vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .4s, transform .4s var(--ease), background .4s;
    overflow: hidden;
}

.service::before {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 70%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(185, 216, 194, .12), transparent);
    opacity: 0;
    transition: opacity .5s;
}

.service:hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
}

.service:hover::before {
    opacity: 1;
}

.service-idx {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: .1em;
}

.service h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    line-height: 1.15;
    margin: 18px 0 12px;
}

.service p {
    color: var(--text-2);
    max-width: 440px;
}

.service ul {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service li {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-2);
}

/* ---------- Industries ---------- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.industry {
    position: relative;
    padding: 28px 26px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(229, 234, 225, .035), rgba(229, 234, 225, 0) 60%),
        var(--surface);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    isolation: isolate;
    transition: border-color .4s, transform .4s var(--ease);
}

.industry::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -40% -40% auto auto;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow, rgba(185, 216, 194, .18)), transparent);
    opacity: .7;
    transition: opacity .5s;
}

.industry:nth-child(1) { --glow: rgba(226, 104, 60, .22); }
.industry:nth-child(2) { --glow: rgba(185, 216, 194, .22); }
.industry:nth-child(3) { --glow: rgba(91, 137, 170, .26); }
.industry:nth-child(4) { --glow: rgba(242, 180, 143, .22); }

.industry:hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
}

.industry:hover::after {
    opacity: 1;
}

.industry-photo {
    position: relative;
    margin: -28px -26px 6px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface-2);
}

.industry-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85) contrast(1.05);
    transform: scale(1.02);
    transition: transform 1.2s var(--ease), filter .6s;
}

.industry-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 20, 16, 0) 45%, rgba(22, 31, 26, .9) 100%),
        linear-gradient(180deg, rgba(13, 20, 16, .15), rgba(13, 20, 16, 0) 30%);
    pointer-events: none;
}

.industry:hover .industry-photo img {
    transform: scale(1.07);
    filter: saturate(1) contrast(1.05);
}

.ai-badge {
    position: absolute;
    z-index: 1;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px 6px 9px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .02em;
    color: var(--text);
    background: rgba(13, 20, 16, .62);
    border: 1px solid rgba(229, 234, 225, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}

.ai-badge i {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7ee2a8;
    flex-shrink: 0;
}

.ai-badge i::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #7ee2a8;
    animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
    from {
        transform: scale(.4);
        opacity: 1;
    }

    to {
        transform: scale(1.6);
        opacity: 0;
    }
}

.industry h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.1;
}

.industry p {
    color: var(--text-2);
    font-size: 15px;
}

.industry ul {
    list-style: none;
    margin-top: 6px;
    border-top: 1px solid var(--line);
}

.industry li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.industry li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.industry-more {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.industry-more span {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-2);
    padding: 6px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
}

.industry-more span:first-child {
    margin-left: 8px;
}

/* ---------- Approach ---------- */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-2);
    counter-reset: step;
}

.step {
    position: relative;
    padding: 32px 24px 0 0;
}

.step::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--accent);
}

.step-tag {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.step h3 {
    font-weight: 500;
    font-size: 19px;
    margin: 12px 0 8px;
}

.step p {
    color: var(--text-2);
    font-size: 15px;
}

/* ---------- Principles ---------- */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.principle {
    padding: 32px 28px;
    background: var(--bg-2);
}

.principle+.principle {
    border-left: 1px solid var(--line);
}

.principle h3 {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 10px;
}

.principle p {
    color: var(--text-2);
    font-size: 15px;
}

/* ---------- Insights ---------- */
.posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.post {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .4s, transform .4s var(--ease);
}

.post:hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
}

.post time {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: .04em;
}

.post h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.15;
}

.post p {
    color: var(--text-2);
    font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq-wrap {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.faq-list {
    border-top: 1px solid var(--line-2);
}

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

.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 500;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-family: var(--mono);
    font-weight: 400;
    font-size: 20px;
    color: var(--accent);
    transition: transform .3s var(--ease);
    flex-shrink: 0;
}

.faq[open] summary::after {
    transform: rotate(45deg);
}

.faq p {
    color: var(--text-2);
    padding: 0 40px 24px 0;
    max-width: 640px;
}

.faq a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
}

/* ---------- CTA ---------- */
.cta {
    padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 120px);
}

.cta-panel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: clamp(56px, 9vw, 120px) clamp(24px, 5vw, 64px);
    text-align: center;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(13, 20, 16, .15), rgba(13, 20, 16, .55));
}

.cta-panel .eyebrow {
    color: rgba(238, 241, 232, .8);
}

.cta-title {
    color: #fff;
}

.cta-title em {
    color: #fff;
}

.cta-sub {
    max-width: 520px;
    margin-top: 20px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.1rem;
}

.cta-actions {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta .btn-ghost {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(13, 20, 16, .25);
    backdrop-filter: blur(6px);
    font-family: var(--mono);
    font-size: 14px;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding-top: clamp(56px, 8vw, 88px);
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(2, 1fr);
    gap: 40px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-2);
    max-width: 300px;
    font-size: 15px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--text-2);
    font-size: 15px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 64px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--text-3);
}

.footer-word {
    font-family: var(--serif);
    font-size: clamp(5rem, 20vw, 17rem);
    line-height: .8;
    letter-spacing: -0.03em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(229, 234, 225, .14), rgba(229, 234, 225, 0) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: -0.12em;
    user-select: none;
}

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

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

    .principle:nth-child(3) {
        border-left: 0;
    }

    .principle:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 2px;
        padding: 10px;
        border-radius: 20px;
        background: rgba(18, 26, 21, .97);
        border-color: var(--line-2);
        backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a {
        padding: 14px 16px;
        font-size: 16px;
    }

    .menu-btn {
        display: block;
    }

    .nav-cta {
        margin-left: auto;
    }

    .flow {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .flow-in,
    .flow-out {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .flow-label {
        width: 100%;
        text-align: center;
    }

    .flow-lines {
        display: none;
    }

    .core-ring {
        width: 150%;
    }

    .services,
    .posts {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat,
    .stat+.stat {
        padding: 24px 0;
        border-left: 0;
    }

    .stat+.stat {
        border-top: 1px solid var(--line);
    }

    .faq-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero-live {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .menu-btn {
        margin-left: auto;
    }

    .steps,
    .principle-grid,
    .industry-grid {
        grid-template-columns: 1fr;
    }

    .industry-more span:first-child {
        margin-left: 0;
    }

    .principle+.principle {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .statement-panel {
        min-height: 360px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        width: 100%;
    }

    .faq summary {
        font-size: 16px;
    }

    .faq p {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
