/* ============================================================
   D4B Studio — Main Stylesheet
   Token source: design/assets/colors_and_type.css
   Approach: mobile-first; base = small screen, scale up with min-width queries
   Load order: main.css → components.css → blog.css (blog pages only)
   ============================================================ */

/* ------------------------------------------------------------
   1. FONT LOADING
   Plus Jakarta Sans is self-hosted from assets/fonts/.
   COPY: design/assets/fonts/PlusJakartaSans-VariableFont_wght.ttf
         → theme/assets/fonts/PlusJakartaSans-VariableFont_wght.ttf
   Google Fonts (Playfair Display + Urbanist) are enqueued
   via inc/enqueue.php — the <link> appears before this file.
   ------------------------------------------------------------ */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ------------------------------------------------------------
   2. DESIGN TOKENS  — exact names from design/assets/colors_and_type.css
   ------------------------------------------------------------ */

:root {
    /* Brand colors */
    --d4b-red-dark:  #601919;   /* burgundy — logo, headlines, pressed states */
    --d4b-red:       #df0a0a;   /* signal red — CTAs, accents, icons */
    --d4b-red-hover: #b80808;   /* CTA hover */
    --d4b-red-soft:  #fef2f2;   /* subtle tinted background */

    /* Neutrals */
    --d4b-bg:        #ffffff;
    --d4b-surface:   #ffffff;
    --d4b-wash:      #f5f5f5;   /* alternating section bg */
    --d4b-wash-2:    #fafafa;
    --d4b-ink:       #1a1a1a;   /* primary text */
    --d4b-ink-2:     #4a4a4a;   /* secondary text */
    --d4b-ink-3:     #8a8a8a;   /* tertiary / captions */
    --d4b-line:      #ececec;   /* borders and dividers */

    /* Dark panels */
    --d4b-navy:      #1a1330;   /* stats bar, CTA strip bg */
    --d4b-navy-2:    #130d24;   /* footer bg */
    --d4b-on-dark:   #ffffff;
    --d4b-on-dark-2: #b8b3c7;

    /* Semantic aliases */
    --accent:        var(--d4b-red);
    --accent-dark:   var(--d4b-red-dark);
    --fg1:           var(--d4b-ink);
    --fg2:           var(--d4b-ink-2);
    --fg3:           var(--d4b-ink-3);
    --bg1:           var(--d4b-bg);
    --bg2:           var(--d4b-wash);
    --bg3:           var(--d4b-wash-2);

    /* Font families */
    --font-serif:    'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-display:  'Urbanist', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans:     'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono:     ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* Type scale */
    --fs-xs:   12px;
    --fs-sm:   14px;
    --fs-base: 16px;
    --fs-md:   18px;
    --fs-lg:   20px;
    --fs-xl:   24px;
    --fs-2xl:  32px;
    --fs-3xl:  40px;
    --fs-4xl:  52px;
    --fs-5xl:  72px;

    /* Line heights */
    --lh-tight:   1.15;
    --lh-snug:    1.3;
    --lh-normal:  1.5;
    --lh-relaxed: 1.65;

    /* Letter spacing */
    --tracking-eyebrow: 0.08em;
    --tracking-caps:    0.12em;

    /* Spacing (4px base) */
    --space-0:   0;
    --space-1:   4px;
    --space-2:   8px;
    --space-3:   12px;
    --space-4:   16px;
    --space-5:   24px;
    --space-6:   32px;
    --space-7:   48px;
    --space-8:   64px;
    --space-9:   80px;    /* standard section break */
    --space-10: 120px;    /* large section break */

    /* Radii */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   12px;
    --radius-xl:   20px;
    --radius-pill: 999px;
    --radius-blob: 60px 12px 60px 12px;  /* signature organic image corner */

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 6px 18px rgba(0,0,0,0.06);
    --shadow-lg:  0 14px 40px rgba(0,0,0,0.10);
    --shadow-cta: 0 10px 24px rgba(223,10,10,0.28);  /* red glow for CTA buttons */

    /* Motion */
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur-fast: 150ms;
    --dur-base: 200ms;
    --dur-slow: 320ms;

    /* Layout */
    --content-max: 1200px;
    --header-h:    80px;
}

/* ------------------------------------------------------------
   3. RESET & BASE
   ------------------------------------------------------------ */

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

html {
    scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

img, video, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
}

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

/* ------------------------------------------------------------
   4. BASE TYPOGRAPHY
   ------------------------------------------------------------ */

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--fg1);
    background: var(--bg1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
}

h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--lh-snug);
}

h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: var(--lh-snug);
}

p {
    line-height: var(--lh-relaxed);
    color: var(--fg2);
}

/* ------------------------------------------------------------
   5. LAYOUT UTILITIES
   ------------------------------------------------------------ */

/* .wrap mirrors the design's max-width container */
.wrap {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--space-5);    /* 24px — grows at wider breakpoints */
}

@media (min-width: 768px) {
    .wrap { padding-inline: var(--space-8); }  /* 64px */
}

/* Generic section spacing */
.section {
    padding: var(--space-9) 0;    /* 80px top/bottom */
}

@media (min-width: 1024px) {
    .section { padding: var(--space-10) 0; }   /* 120px */
}

/* ------------------------------------------------------------
   6. ACCESSIBILITY HELPERS
   ------------------------------------------------------------ */

/* Screen-reader-only — hides visually but keeps in accessibility tree */
.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;
}

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

/* ------------------------------------------------------------
   7. BUTTONS
   ------------------------------------------------------------ */

/* Base pill button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 14px 26px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
    text-decoration: none;
    transition:
        background var(--dur-base) var(--ease-out),
        box-shadow  var(--dur-base) var(--ease-out),
        transform   var(--dur-base) var(--ease-out);
    box-shadow: var(--shadow-cta);
    white-space: nowrap;
}

.btn:hover {
    background: var(--d4b-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(223,10,10,0.35);
}

.btn:active {
    background: var(--accent-dark);
    transform: translateY(0);
}

/* Large variant */
.btn--lg {
    padding: 18px 34px;
    font-size: var(--fs-base);
}

/* Ghost (outlined) variant */
.btn--ghost {
    background: transparent;
    color: var(--fg1);
    box-shadow: none;
    border: 1.5px solid var(--d4b-line);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff;
    transform: none;
    box-shadow: none;
}

/* Glass variant — for use on dark/photo backgrounds */
.btn--glass {
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.btn--glass:hover {
    background: rgba(255,255,255,0.18);
    border-color: #fff;
    transform: none;
    box-shadow: none;
}

/* Dark variant — for use on light backgrounds, matches navy */
.btn--dark {
    background: var(--d4b-navy);
    box-shadow: none;
}

.btn--dark:hover {
    background: var(--d4b-red-dark);
    box-shadow: 0 10px 24px rgba(223,10,10,0.3);
}

/* Eyebrow label above headings */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: var(--accent);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--d4b-red-soft);
    margin-bottom: var(--space-5);
}

/* Eyebrow with leading line (used in services section) */
.eyebrow--line::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: var(--accent);
    flex-shrink: 0;
}

/* Section heading group — eyebrow + h2 + optional description */
.section-head {
    margin-bottom: var(--space-8);   /* 64px */
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-3xl);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: var(--fg1);
    margin: 0;
}

@media (min-width: 768px) {
    .section-title { font-size: var(--fs-4xl); }
}

/* Italic accent word inside a heading */
.section-title .mark {
    color: var(--accent);
    font-style: italic;
}

.section-desc {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--fg2);
    margin-top: var(--space-4);
}

/* ------------------------------------------------------------
   8. SITE HEADER  (sticky, white, border-bottom on scroll)
   ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--d4b-bg);
    border-bottom: 1px solid var(--d4b-line);
    transition: box-shadow var(--dur-base) var(--ease-out);
    height: var(--header-h);
    display: flex;
    align-items: center;
}

/* Added by JS when page scrolls past the header */
.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.site-header .wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-7);   /* 48px between logo / nav / right */
    height: 100%;
}

/* Logo */
.dh__logo {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Primary nav — hidden on mobile, flex on desktop */
.dh__nav {
    display: none;
    gap: var(--space-1);
    flex: 1;
}

@media (min-width: 768px) {
    .dh__nav {
        display: flex;
        align-items: center;
    }
}

.dh__nav a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--fg1);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    transition: all var(--dur-base) var(--ease-out);
    position: relative;
    white-space: nowrap;
}

.dh__nav a:hover {
    background: var(--d4b-red-soft);
    color: var(--accent);
}

/* Active nav item — red underline */
.dh__nav a.active {
    color: var(--accent);
}

.dh__nav a.active::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Right side of header: CTA + hamburger */
.dh__right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-left: auto;
}

/* Hide CTA button on mobile; show hamburger instead */
.dh__cta { display: none; }

@media (min-width: 768px) {
    .dh__cta { display: inline-flex; }
}

/* Hamburger toggle — only shown on mobile */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--d4b-line);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 8px;
    transition: border-color var(--dur-base) var(--ease-out);
    flex-shrink: 0;
}

.nav-toggle:hover { border-color: var(--accent); }

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--fg1);
    border-radius: 2px;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base);
    transform-origin: center;
}

/* Animated hamburger → X when open */
.nav-toggle.open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
}

/* ------------------------------------------------------------
   9. MOBILE NAV DRAWER
   ------------------------------------------------------------ */

.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 101;
    pointer-events: none;
}

/* Semi-transparent backdrop */
.nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out);
}

/* Slide-in panel from the right */
.nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--d4b-bg);
    display: flex;
    flex-direction: column;
    padding: var(--space-7) var(--space-6);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
}

/* Active state — triggered by JS adding .nav-open to <body> */
body.nav-open .nav-drawer {
    pointer-events: auto;
}

body.nav-open .nav-drawer__backdrop {
    opacity: 1;
}

body.nav-open .nav-drawer__panel {
    transform: translateX(0);
}

.nav-drawer__close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--d4b-line);
    border-radius: var(--radius-md);
    font-size: 18px;
    color: var(--fg2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-7);
    cursor: pointer;
}

.nav-drawer__close:hover { border-color: var(--accent); color: var(--accent); }

.nav-drawer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
}

.nav-drawer__links a {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--fg1);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--dur-base) var(--ease-out);
}

.nav-drawer__links a:hover {
    background: var(--d4b-red-soft);
    color: var(--accent);
}

.nav-drawer__cta {
    margin-top: var(--space-7);
}

.nav-drawer__cta .btn {
    width: 100%;
    justify-content: center;
}

/* ------------------------------------------------------------
   10. SITE FOOTER  (dark navy)
   ------------------------------------------------------------ */

.site-footer {
    background: var(--d4b-navy-2);
    color: var(--d4b-on-dark);
    padding: var(--space-9) 0 var(--space-5);
    position: relative;
    overflow: hidden;
}

/* Decorative hex SVG watermark, bottom-left */
.site-footer::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 40px;
    width: 340px;
    height: 340px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%234a3d6b' stroke-width='0.5' opacity='0.5'><polygon points='100,20 160,55 160,125 100,160 40,125 40,55'/><polygon points='100,40 145,65 145,115 100,140 55,115 55,65'/><polygon points='100,60 130,77 130,103 100,120 70,103 70,77'/><line x1='100' y1='20' x2='100' y2='160'/><line x1='40' y1='55' x2='160' y2='125'/><line x1='160' y1='55' x2='40' y2='125'/></g></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

/* "LET'S GET IN TOUCH" — large gradient headline at top of footer */
.ft__banner {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(36px, 8vw, 100px);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 var(--space-4);
    background: linear-gradient(90deg, #df0a0a 0%, #ff5a5a 25%, #ffb458 50%, #ff5a5a 75%, #df0a0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

/* Red gradient divider under the banner text */
.ft__divider {
    width: 60%;
    height: 3px;
    margin: 0 auto var(--space-8);
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    position: relative;
    z-index: 2;
}

/* 4-column footer grid (stacks on mobile) */
.ft__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-8);
}

@media (min-width: 540px) {
    .ft__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .ft__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-7); }
}

.ft__logo,
.site-footer .custom-logo {
    height: 44px;
    width: auto;
}

.ft__logo { margin-bottom: var(--space-4); }

.site-footer .custom-logo-link {
    display: inline-block;
    margin-bottom: var(--space-4);
    line-height: 0;
}

/* Column heading */
.ft__col h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--d4b-on-dark);
    margin: 0 0 var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
}

/* Red accent underline on column headings */
.ft__col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.ft__col p {
    font-size: var(--fs-sm);
    line-height: 1.7;
    color: var(--d4b-on-dark-2);
    margin-bottom: var(--space-4);
}

/* Footer nav lists */
.ft__col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ft__col ul li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    color: var(--d4b-on-dark-2);
}

.ft__col ul li i {
    color: var(--accent);
    font-size: 11px;
    flex-shrink: 0;
}

.ft__col ul li a {
    color: var(--d4b-on-dark-2);
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
    padding: 5px 0;
}

.ft__col ul li a:hover { color: var(--accent); }

/* Contact info items (icon + label + value) */
.ft__contact-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.ft__contact-item .ic {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(223,10,10,0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ft__contact-item .txt {
    font-size: var(--fs-sm);
    color: var(--d4b-on-dark);
    line-height: 1.5;
}

.ft__contact-item .txt .lbl {
    color: var(--d4b-on-dark-2);
    font-size: var(--fs-xs);
    display: block;
    margin-bottom: 2px;
}

/* Social icon row */
.ft__socials {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.ft__socials a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--d4b-on-dark-2);
    font-size: 13px;
    transition: all var(--dur-base) var(--ease-out);
}

.ft__socials a:hover {
    background: var(--accent);
    color: #fff;
}

/* Bottom copyright bar */
.ft__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    color: #7a7590;
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .ft__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ------------------------------------------------------------
   11. HERO SECTION
   ------------------------------------------------------------ */

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #0a0505;   /* very dark base */
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero { min-height: 720px; }
}

/* Gradient overlay — creates dark-left / lighter-right photographic feel */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10,5,5,0.96) 0%, rgba(26,6,6,0.88) 40%, rgba(42,6,6,0.75) 100%);
    z-index: 1;
}

/* Hexagon wireframe pattern, left side */
.hero__pattern {
    position: absolute;
    left: -80px;
    top: 60px;
    width: 500px;
    height: 500px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23df0a0a' stroke-width='0.6' opacity='0.4'><polygon points='100,20 160,55 160,125 100,160 40,125 40,55'/><polygon points='100,40 145,65 145,115 100,140 55,115 55,65'/><polygon points='100,60 130,77 130,103 100,120 70,103 70,77'/></g></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.7;
    pointer-events: none;
}

/* Two-column layout inside hero */
.hero__wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--space-5);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    padding-block: var(--space-9);
}

@media (min-width: 768px) {
    .hero__wrap {
        padding-inline: var(--space-8);
        grid-template-columns: 1.2fr 1fr;
        padding-block: 0;
    }
}

/* Left content column */
.hero__left { color: #fff; }

/* Eyebrow pill above the headline */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ff8a8a;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: rgba(223,10,10,0.15);
    border: 1px solid rgba(223,10,10,0.35);
    margin-bottom: var(--space-5);
}

/* Pulsing dot in the eyebrow */
.hero__eyebrow .pulse {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    animation: hero-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes hero-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(223,10,10,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(223,10,10,0); }
    100% { box-shadow: 0 0 0 0 rgba(223,10,10,0); }
}

/* H1 — the SEO-critical heading */
.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(38px, 6vw, 80px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0 0 var(--space-5);
    color: #fff;
    text-wrap: balance;
}

/* Red-accented word with underline */
.hero__title .accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero__title .accent::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0.85);
    transform-origin: left;
}

/* Sub-headline paragraph */
.hero__sub {
    font-size: var(--fs-md);
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 0 var(--space-7);
}

/* CTA button row */
.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

/* Stats row under the CTA buttons */
.hero__meta {
    margin-top: var(--space-7);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-7);
    align-items: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero__meta .stat { color: #fff; }

.hero__meta .stat .n {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-2xl);
    line-height: 1;
    color: var(--accent);
}

@media (min-width: 768px) {
    .hero__meta .stat .n { font-size: var(--fs-3xl); }
}

.hero__meta .stat .l {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* Right column — animated orb + floating chips */
.hero__right {
    position: relative;
    height: 420px;
    display: none;  /* hidden on mobile */
}

@media (min-width: 768px) {
    .hero__right { display: block; }
}

.hero__orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glowing red sphere */
.hero__orb-main {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-pill);
    background: radial-gradient(circle at 30% 30%, #ff3a3a 0%, #df0a0a 45%, #601919 100%);
    box-shadow:
        0 40px 100px rgba(223,10,10,0.45),
        inset 0 0 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__orb-main .code {
    font-family: var(--font-mono);
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
    letter-spacing: -0.03em;
}

/* Orbiting rings */
.hero__ring {
    position: absolute;
    border-radius: var(--radius-pill);
    border: 1.5px dashed rgba(255,255,255,0.2);
    animation: slow-spin 30s linear infinite;
}

.hero__ring--1 {
    width: 340px;
    height: 340px;
}

.hero__ring--2 {
    width: 420px;
    height: 420px;
    border-style: solid;
    border-color: rgba(223,10,10,0.3);
    animation-duration: 40s;
    animation-direction: reverse;
}

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

/* Floating info chips */
.hero__chip {
    position: absolute;
    background: rgba(255,255,255,0.95);
    color: var(--fg1);
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    font-size: var(--fs-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 3;
    backdrop-filter: blur(10px);
}

.hero__chip i { color: var(--accent); font-size: 14px; }

.hero__chip--1 { top: 20px; right: 10px; }
.hero__chip--2 { bottom: 40px; left: 0; }
.hero__chip--3 { top: 50%; right: -10px; font-size: 11px; padding: 10px 12px; }

/* ------------------------------------------------------------
   12. SERVICES SECTION
   ------------------------------------------------------------ */

.services {
    padding: var(--space-10) 0;
    background: var(--bg1);
}

/* Two-column header: title left, description right */
.svc-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    margin-bottom: var(--space-8);
    align-items: end;
}

@media (min-width: 1024px) {
    .svc-header { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

/* Section title specific to services (larger) */
.svc-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(var(--fs-2xl), 4vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--fg1);
    margin: 0;
}

.svc-title .mark {
    color: var(--accent);
    font-style: italic;
}

.svc-description {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--fg2);
    margin: 0 0 var(--space-5);
}

/* 6-column grid that collapses to 1 on mobile */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

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

@media (min-width: 1024px) {
    .svc-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Default card — spans 2 of 6 columns on desktop */
.svc-card {
    position: relative;
    background: var(--d4b-surface);
    border: 1px solid var(--d4b-line);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-6);
    overflow: hidden;
    transition: all var(--dur-slow) var(--ease-out);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .svc-card { grid-column: span 3; }
}

.svc-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(223,10,10,0.15);
}

/* Hero card (Web Design) — dark navy, spans 3 cols */
.svc-card--hero {
    background: linear-gradient(135deg, #1a1330 0%, #2d1f4d 100%);
    color: #fff;
    border: 0;
    padding: var(--space-7) var(--space-6);
}

@media (min-width: 1024px) {
    .svc-card--hero { grid-column: span 3; }
}

.svc-card--hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(26,19,48,0.4);
    border-color: transparent;
}

/* AI card — red gradient, spans 3 cols */
.svc-card--ai {
    background: linear-gradient(135deg, #601919 0%, #df0a0a 100%);
    color: #fff;
    border: 0;
    padding: var(--space-7) var(--space-6);
}

@media (min-width: 1024px) {
    .svc-card--ai { grid-column: span 3; }
}

.svc-card--ai:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(223,10,10,0.35);
    border-color: transparent;
}

/* "NEW" badge on AI card */
.svc-card--ai::after {
    content: 'NEW';
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--accent);
}

/* Card number label — e.g. "/ 01 — FLAGSHIP" */
.svc-card__num {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--fg3);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.svc-card--hero .svc-card__num,
.svc-card--ai .svc-card__num {
    color: rgba(255,255,255,0.55);
}

/* Icon tile */
.svc-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--d4b-red-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: var(--space-5);
    flex-shrink: 0;
}

.svc-card--hero .svc-card__icon { background: rgba(223,10,10,0.25); color: #ff8a8a; }
.svc-card--ai  .svc-card__icon { background: rgba(255,255,255,0.2); color: #fff; }

.svc-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-xl);
    line-height: var(--lh-snug);
    letter-spacing: -0.015em;
    margin: 0 0 var(--space-3);
    color: var(--fg1);
}

.svc-card--hero .svc-card__title,
.svc-card--ai  .svc-card__title {
    color: #fff;
    font-size: var(--fs-2xl);
}

.svc-card__body {
    font-size: var(--fs-sm);
    line-height: 1.65;
    color: var(--fg2);
    margin: 0 0 var(--space-5);
    flex: 1;
}

.svc-card--hero .svc-card__body,
.svc-card--ai  .svc-card__body {
    color: rgba(255,255,255,0.85);
}

/* "Explore →" link at bottom of card */
.svc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: var(--space-2) 0;
    margin-top: auto;
    transition: gap var(--dur-base) var(--ease-out);
}

.svc-card__cta:hover { gap: var(--space-4); }

.svc-card--hero .svc-card__cta,
.svc-card--ai  .svc-card__cta {
    color: #fff;
}

/* Tag pills on the hero/AI cards */
.svc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-4);
}

.svc-card__tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
}

/* ------------------------------------------------------------
   13. APPROACH SECTION (How we work — 4 steps)
   ------------------------------------------------------------ */

.approach {
    padding: var(--space-10) 0;
    background: var(--d4b-wash-2);
    position: relative;
    overflow: hidden;
}

.approach__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-9);
}

/* Horizontal steps grid */
.approach__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7) var(--space-5);
    position: relative;
}

@media (min-width: 768px) {
    .approach__steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    /* Dashed connecting line between steps — desktop only */
    .approach__steps::before {
        content: '';
        position: absolute;
        top: 42px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: repeating-linear-gradient(
            90deg,
            var(--d4b-line) 0 8px,
            transparent 8px 16px
        );
    }
}

.approach__step {
    text-align: center;
    padding: 0 var(--space-4);
    position: relative;
    z-index: 1;
}

.approach__num {
    width: 84px;
    height: 84px;
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-pill);
    background: var(--d4b-surface);
    border: 2px solid var(--d4b-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-2xl);
    color: var(--accent);
    transition: all var(--dur-slow) var(--ease-out);
}

.approach__step:hover .approach__num {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(223,10,10,0.3);
}

.approach__step-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-lg);
    margin: 0 0 var(--space-3);
    color: var(--fg1);
}

.approach__step-body {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--fg2);
    margin: 0;
}

/* ------------------------------------------------------------
   14. STATS BAR  (dark navy)
   ------------------------------------------------------------ */

.stats {
    background: var(--d4b-navy);
    color: var(--d4b-on-dark);
    padding: var(--space-8) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle wave pattern behind the numbers */
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'><g fill='none' stroke='%23df0a0a' stroke-width='0.5' opacity='0.15'><path d='M0,100 Q100,20 200,100 T400,100'/><path d='M0,120 Q100,40 200,120 T400,120'/></g></svg>");
    background-size: cover;
    pointer-events: none;
}

.stats__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7) var(--space-5);
}

@media (min-width: 768px) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-7); }
}

.stats__item {
    text-align: center;
    position: relative;
}

/* Vertical separator between items on desktop */
@media (min-width: 768px) {
    .stats__item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -20px;
        top: 10px;
        bottom: 10px;
        width: 1px;
        background: rgba(255,255,255,0.1);
    }
}

.stats__n {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(var(--fs-4xl), 6vw, 64px);
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stats__n sup {
    font-size: 50%;
    vertical-align: top;
    margin-left: 2px;
}

.stats__l {
    font-size: var(--fs-xs);
    color: var(--d4b-on-dark-2);
    margin-top: var(--space-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ------------------------------------------------------------
   15. TECH STACK  (logo row)
   ------------------------------------------------------------ */

.tech {
    padding: var(--space-9) 0;
    background: var(--bg1);
    border-top: 1px solid var(--d4b-line);
    border-bottom: 1px solid var(--d4b-line);
}

.tech__head {
    text-align: center;
    margin-bottom: var(--space-7);
}

.tech__head p {
    font-size: var(--fs-sm);
    color: var(--fg3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
}

.tech__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-7) var(--space-8);
    align-items: center;
}

.tech__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-xl);
    color: var(--fg3);
    opacity: 0.7;
    transition: all var(--dur-base) var(--ease-out);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tech__logo:hover { opacity: 1; color: var(--accent); }
.tech__logo i { font-size: 26px; }

/* ------------------------------------------------------------
   16. CTA STRIP  (dark navy with hex pattern)
   ------------------------------------------------------------ */

.cta-strip {
    background: var(--d4b-navy);
    color: var(--d4b-on-dark);
    padding: var(--space-9) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative hex pattern corners */
.cta-strip::before,
.cta-strip::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23df0a0a' stroke-width='0.6' opacity='0.25'><polygon points='100,20 160,55 160,125 100,160 40,125 40,55'/><polygon points='100,40 145,65 145,115 100,140 55,115 55,65'/></g></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.cta-strip::before { left: -100px; top: -80px; }
.cta-strip::after  { right: -100px; bottom: -80px; }

/* Two-column inner layout */
.cta-strip__wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    align-items: center;
}

@media (min-width: 768px) {
    .cta-strip__wrap { grid-template-columns: 1.4fr 1fr; gap: var(--space-8); }
}

.cta-strip__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(var(--fs-2xl), 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-4);
    color: var(--d4b-on-dark);
}

.cta-strip__title .mark { color: var(--accent); }

.cta-strip__body {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: var(--d4b-on-dark-2);
    margin: 0 0 var(--space-6);
    max-width: 520px;
}

.cta-strip__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Right card: "Ask Now" / schedule a call */
.cta-strip__ask {
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.cta-strip__play {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: var(--space-4);
    box-shadow: 0 16px 40px rgba(223,10,10,0.4);
    position: relative;
}

/* Pulse ring around the play button */
.cta-strip__play::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(223,10,10,0.5);
    animation: pulse-ring 2.4s infinite;
}

@keyframes pulse-ring {
    0%   { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.3);  opacity: 0; }
}

.cta-strip__ask-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-xl);
    margin: 0 0 var(--space-2);
    color: var(--d4b-on-dark);
}

.cta-strip__ask-sub {
    font-size: var(--fs-sm);
    color: var(--d4b-on-dark-2);
    margin: 0 0 var(--space-5);
}

/* ------------------------------------------------------------
   17. TESTIMONIAL / QUOTE
   ------------------------------------------------------------ */

.quote {
    padding: var(--space-10) 0;
    background: var(--bg1);
    text-align: center;
    position: relative;
}

.quote__mark {
    font-family: var(--font-display);
    font-size: clamp(80px, 15vw, 180px);
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -0.2em;
    user-select: none;
    pointer-events: none;
}

.quote__text {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(var(--fs-lg), 2.5vw, 36px);
    line-height: var(--lh-snug);
    letter-spacing: -0.01em;
    color: var(--fg1);
    max-width: 900px;
    margin: 0 auto var(--space-7);
    text-wrap: balance;
}

.quote__who {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
}

.quote__avatar {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent), var(--d4b-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-md);
    flex-shrink: 0;
}

.quote__who .name {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--fg1);
}

.quote__who .role {
    font-size: var(--fs-xs);
    color: var(--fg3);
    margin-top: 2px;
}

/* ------------------------------------------------------------
   18. PAGE BANNER  (inner pages — red gradient header)
   ------------------------------------------------------------ */

.page-banner {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a0606 0%, #601919 50%, #8a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .page-banner { min-height: 360px; }
}

.page-banner__pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'><path d='M30 0 L60 17 L60 52 L30 69 L0 52 L0 17 Z M30 52 L60 69 L60 104 L30 121 L0 104 L0 69 Z' fill='none' stroke='%23df0a0a' stroke-width='0.8' opacity='0.35'/></svg>");
    background-size: 80px 138px;
    opacity: 0.6;
    mask-image: radial-gradient(circle at 50% 50%, transparent 30%, black 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, black 80%);
}

.page-banner__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: var(--space-8) var(--space-5);
}

.page-banner__eyebrow {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
    color: #ff8a8a;
    margin: 0 0 var(--space-3);
}

.page-banner__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(var(--fs-4xl), 8vw, 80px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Breadcrumb row */
.page-banner__crumbs {
    margin-top: var(--space-4);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.75);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.page-banner__crumbs a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.page-banner__crumbs .sep { color: var(--accent); }

/* ------------------------------------------------------------
   19. GENERIC CARD  (reused across pages)
   ------------------------------------------------------------ */

.d4b-card {
    background: var(--d4b-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--dur-slow) var(--ease-out);
}

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

/* Icon tile for cards */
.d4b-icon-tile {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--d4b-red-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   20. RESPONSIVE UTILITIES
   ------------------------------------------------------------ */

/* Hide on mobile, show above 768px */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: revert; } }

/* Hide on desktop */
.hide-desktop { display: revert; }
@media (min-width: 768px) { .hide-desktop { display: none; } }

/* ------------------------------------------------------------
   21. SCROLL REVEAL UTILITY
   Elements marked with [data-reveal] start invisible and
   transition in when IntersectionObserver adds .revealed.
   Only opacity + transform — no layout, no reflow, GPU only.
   Stagger variants via transition-delay on the data value.
   ------------------------------------------------------------ */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  480ms var(--ease-out),
        transform 480ms var(--ease-out);
}

[data-reveal="delay-1"] { transition-delay:  80ms; }
[data-reveal="delay-2"] { transition-delay: 160ms; }
[data-reveal="delay-3"] { transition-delay: 240ms; }
[data-reveal="delay-4"] { transition-delay: 320ms; }

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Respect the OS "reduce motion" setting — show everything immediately */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal].revealed {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
