/* ==========================================================================
   Comfinion - Ideas for Profit
   Design system & site styles.
   Direction: clean, modern, neutral grey scale with a single brand-blue accent,
   built on the original logo wordmark. Highly legible, airy, 2026.
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
    /* Neutrals (cool grey) */
    --bg:            #ffffff;
    --bg-alt:        #f5f7f9;   /* light section wash */
    --panel:         #eef4f9;   /* tinted panel (hero figure, case visual) */
    --surface:       #ffffff;
    --border:        #e6e9ed;
    --border-strong: #d4dadf;

    /* Text */
    --text:    #474e57;
    --heading: #1c2227;
    --muted:   #79808a;

    /* Charcoal (footer / dark accents) */
    --ink-900: #1b2026;
    --ink-800: #242a31;
    --ink-700: #323941;

    /* Brand blue accent */
    --accent:        #3ca6e6;   /* fills, rules, chart */
    --accent-ink:    #16719e;   /* accessible text / links on light */
    --accent-soft:   #e3f0fa;   /* faint blue wash */
    --accent-bright: #7cc4f0;   /* accent on dark */

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(28, 34, 39, 0.05);
    --shadow-md: 0 12px 30px -18px rgba(28, 34, 39, 0.25);
    --shadow-lg: 0 30px 60px -30px rgba(28, 34, 39, 0.35);

    /* Geometry */
    --radius: 8px;
    --radius-sm: 6px;

    /* Layout */
    --container: 1180px;
    --container-narrow: 760px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --section-y: clamp(4.5rem, 9vw, 8rem);

    /* Type */
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Inter Tight", var(--font-body);

    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* -------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-ink); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--heading); }

ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--heading);
    line-height: 1.13;
    font-weight: 700;
    letter-spacing: -0.022em;
}

strong { color: var(--heading); font-weight: 600; }
em { font-style: italic; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 3px; }

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.center { text-align: center; }

/* Eyebrow */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.65rem;
    font-family: var(--font-body);
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 1.9rem; height: 2px; background: var(--accent); }
.eyebrow.center-line { justify-content: center; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.15rem; color: var(--muted); }

.lead { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--muted); }

/* -------------------------------------------------------------------------
   4. Buttons & links
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer;
    transition: background 0.22s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary { background: var(--heading); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--heading); color: var(--heading); }

.btn-accent { background: var(--accent-ink); color: #fff; }
.btn-accent:hover { background: var(--heading); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Text link with hover underline (no icons) */
.text-link {
    position: relative; display: inline-block;
    font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
    color: var(--accent-ink);
}
.text-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform 0.28s var(--ease);
}
.text-link:hover { color: var(--accent-ink); }
.text-link:hover::after { transform: scaleX(1); }

.ext-arrow { display: inline-block; margin-left: 0.1rem; transition: transform 0.25s var(--ease); }
.btn:hover .ext-arrow { transform: translate(2px, -2px); }

/* Reveal-as-link button (email) styled inline */
.link-btn {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    font: inherit; color: var(--accent-ink); font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* -------------------------------------------------------------------------
   5. Header / navigation
   ------------------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.75rem; }

/* Brand wordmark (recreated logo, no swoosh) */
.brand { display: inline-flex; align-items: baseline; gap: 0.5rem; color: var(--heading); white-space: nowrap; }
.brand:hover { color: var(--heading); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.025em; color: var(--heading); line-height: 1; }
.brand-tag { font-family: var(--font-body); font-weight: 400; font-size: 0.98rem; color: var(--muted); letter-spacing: 0; }

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
    position: relative; color: var(--muted);
    font-family: var(--font-body); font-weight: 500; font-size: 0.92rem;
    padding: 0.5rem 0.85rem;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--heading); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--heading); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; align-items: center; gap: 0.75rem; }
.menu-cta { display: none; }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--heading); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   6. Hero (home)
   ------------------------------------------------------------------------- */
.hero { background: var(--bg); border-bottom: 1px solid var(--border); padding-top: clamp(8rem, 13vw, 10.5rem); padding-bottom: clamp(4.5rem, 9vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.05rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.4rem; }
.hero .lead { max-width: 34rem; margin-bottom: 2.2rem; }
.hero .btn-row { margin-bottom: 2.3rem; }

.hero-meta {
    display: flex; flex-wrap: wrap; gap: 0.45rem 1rem;
    padding-top: 1.6rem; border-top: 1px solid var(--border);
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.hero-meta span { color: var(--border-strong); }

/* Hero figure: tinted panel with growth chart */
.hero-figure { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.75rem 1.4rem; color: var(--heading); box-shadow: var(--shadow-md); }
.figure-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.figure-head .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
/* "How we work" steps inside the hero panel */
.steps { list-style: none; display: grid; margin-top: 0.4rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem 0; }
.step + .step { border-top: 1px solid var(--border-strong); }
.step:first-child { padding-top: 0.1rem; }
.step:last-child { padding-bottom: 0.1rem; }
.step-num { flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.3; color: var(--accent-ink); min-width: 1.9rem; }
.step-text { display: flex; flex-direction: column; gap: 0.2rem; }
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--heading); }
.step-desc { font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

/* -------------------------------------------------------------------------
   7. Cards & grids
   ------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

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

.service-card { display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon { color: var(--accent-ink); margin-bottom: 1.25rem; }
.card-icon svg { width: 1.85rem; height: 1.85rem; }
.service-card .idx { font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 0.85rem; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); margin-bottom: 1.4rem; flex: 1; }

.feature-list { display: grid; gap: 0.7rem; margin-bottom: 1.5rem; }
.feature-list li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.feature-list li::before {
    content: ""; flex: none; width: 1.05rem; height: 1.05rem; margin-top: 0.3rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316719e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* -------------------------------------------------------------------------
   8. Split / feature sections
   ------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-body h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 1.2rem; }
.split-body p { color: var(--muted); margin-bottom: 1.2rem; }

/* Statement figure (light) */
.figure { position: relative; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(2rem, 4vw, 2.8rem); }
.figure::before { content: ""; position: absolute; left: 0; top: clamp(2rem, 4vw, 2.8rem); bottom: clamp(2rem, 4vw, 2.8rem); width: 3px; background: var(--accent); border-radius: 3px; }
.figure .figure-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.9rem; padding-left: 1.4rem; }
.figure .figure-statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--heading); padding-left: 1.4rem; }
.figure .figure-sub { color: var(--muted); margin-top: 1rem; padding-left: 1.4rem; font-size: 0.98rem; }

/* Pull statement on plain bg */
.principle { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1.4rem; margin: 1.8rem 0; }
.principle p { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--heading); margin: 0; }

/* -------------------------------------------------------------------------
   9. Pillars
   ------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.75rem); }
.pillar { padding-top: 1.3rem; border-top: 2px solid var(--accent); }
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

/* -------------------------------------------------------------------------
   10. CTA band
   ------------------------------------------------------------------------- */
.cta-band { background: var(--bg-alt); border-block: 1px solid var(--border); }
.cta-card { max-width: 48rem; margin-inline: auto; text-align: center; }
.cta-card .eyebrow { justify-content: center; }
.cta-card h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.cta-card p { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; max-width: 42ch; margin-inline: auto; }
.cta-card .btn-row { justify-content: center; }

/* -------------------------------------------------------------------------
   11. Page hero (interior)
   ------------------------------------------------------------------------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding-top: clamp(8rem, 12vw, 10rem); padding-bottom: clamp(3.5rem, 6vw, 5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 20ch; margin-bottom: 1.1rem; }
.page-hero p { color: var(--muted); font-size: 1.18rem; max-width: 54ch; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb span { color: var(--accent-ink); }

/* -------------------------------------------------------------------------
   12. Prose (case study)
   ------------------------------------------------------------------------- */
.prose { max-width: 680px; }
.prose > * + * { margin-top: 1.4rem; }
.prose p { color: var(--text); font-size: 1.1rem; line-height: 1.8; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.8rem; }
.prose h2 + p { margin-top: 1rem; }
.prose .drop-lead { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.45; letter-spacing: -0.02em; color: var(--heading); }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1.35; letter-spacing: -0.02em; color: var(--heading); }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.5rem 0; }
.highlight { background: var(--bg-alt); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.highlight .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.5rem; }
.highlight p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------------------
   13. Case cards
   ------------------------------------------------------------------------- */
.case-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; }
.case-visual { position: relative; background: var(--panel); min-height: 300px; display: grid; place-items: center; border-right: 1px solid var(--border); }
.case-monogram { text-align: center; padding: 2rem; }
.case-monogram .mono { font-family: var(--font-display); font-size: 3.6rem; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.case-monogram .nm { margin-top: 0.5rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--heading); }
.case-monogram .url { margin-top: 0.35rem; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }

.case-body { padding: clamp(1.8rem, 4vw, 2.8rem); align-self: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.tag { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 0.3rem 0.7rem; border-radius: var(--radius-sm); }
.case-body h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.8rem; }
.case-body p { color: var(--muted); margin-bottom: 1.4rem; }

.more-card { text-align: center; border-style: dashed; background: var(--bg-alt); }
.more-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.more-card p { margin: 0 auto 1.5rem; color: var(--muted); max-width: 48ch; }

/* -------------------------------------------------------------------------
   14. Contact / people
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.contact-card { padding: 2rem; }
.contact-card .org { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--heading); margin-bottom: 0.15rem; letter-spacing: -0.02em; }
.contact-card .person { color: var(--accent-ink); font-weight: 600; font-size: 0.95rem; margin-bottom: 1.3rem; }
.contact-card .rows { display: grid; gap: 0.8rem; }
.contact-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.98rem; color: var(--text); }
.contact-row svg { width: 1.05rem; height: 1.05rem; color: var(--accent-ink); flex: none; }
.contact-row a { color: var(--text); }
.contact-row a:hover { color: var(--accent-ink); }

.person-card { display: flex; gap: 1.25rem; align-items: center; }
.person-avatar { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--accent-ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.person-card h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.person-card p { margin: 0; color: var(--muted); }

/* -------------------------------------------------------------------------
   15. Footer (charcoal)
   ------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: rgba(255, 255, 255, 0.68); border-top: 3px solid var(--accent); padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand .brand { margin-bottom: 1.2rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255, 255, 255, 0.55); }
.footer-brand p { color: rgba(255, 255, 255, 0.62); max-width: 32ch; font-size: 0.96rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col .link-btn { color: rgba(255, 255, 255, 0.68); font-size: 0.96rem; }
.footer-col a:hover, .footer-col .link-btn:hover { color: #fff; }
.footer-contact .contact-row { color: rgba(255, 255, 255, 0.68); font-size: 0.94rem; }
.footer-contact .contact-row svg { color: var(--accent-bright); }
.footer-contact .contact-row a, .footer-contact .contact-row .link-btn { color: rgba(255, 255, 255, 0.68); }
.footer-contact .contact-row a:hover, .footer-contact .contact-row .link-btn:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.8rem; font-size: 0.86rem; color: rgba(255, 255, 255, 0.45); }
.footer-bottom a { color: rgba(255, 255, 255, 0.45); }
.footer-bottom a:hover { color: #fff; }

/* -------------------------------------------------------------------------
   16. Reveal on scroll (progressive enhancement)
   ------------------------------------------------------------------------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
    .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* -------------------------------------------------------------------------
   17. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-figure { max-width: 520px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pillars { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .case-card { grid-template-columns: 1fr; }
    .case-visual { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-cta .btn:not(.nav-toggle) { display: none; }
    .brand-tag { display: none; }
    .nav-links {
        position: fixed; inset: 4.75rem 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0.1rem;
        background: var(--bg); padding: 1rem var(--gutter) 1.5rem;
        border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
    }
    .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
    .nav-links a::after { display: none; }
    .nav-links a.active { color: var(--accent-ink); }
    .nav-links .menu-cta { display: inline-flex; justify-content: center; margin-top: 1rem; border-bottom: 0; }
    .site-header.menu-open { background: var(--bg); border-bottom-color: var(--border); }
}

@media (max-width: 600px) {
    .grid-3, .grid-2, .split, .contact-grid, .highlights { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .btn-row .btn { width: 100%; }
}
