/* =====================================================
   JOEK AGENCY  |  Calm, human stylesheet
   Brand: #0B0B0C base, #FFFFFF text, #D4AF37 gold accent, #4B4640 bronze
   ===================================================== */

:root {
    --bg: #0B0B0C;
    --bg-elev: #111113;
    --bg-card: #111113;
    --bg-card-hover: #16161A;
    --white: #FFFFFF;
    --text: #ECECEC;
    --text-muted: #9A9AA0;
    --text-dim: #6E6E74;
    --gold: #D4AF37;
    --gold-hover: #B89124;
    --gold-soft: rgba(212, 175, 55, 0.10);
    --bronze: #4B4640;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.10);
    --border-gold: rgba(212, 175, 55, 0.20);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --container: 1200px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t: 0.2s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px;
    position: relative;
    min-height: 100vh;
}

/* Subtle grain over the entire site */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--white); }
p { color: var(--text-muted); }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(11, 11, 12, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    padding: 12px 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* LOGO  |  clean text + small gold dot */
.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}
.logo-text {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.04em;
    color: var(--white);
}
.logo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--t);
    position: relative;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 101;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS  |  reliable hover, text never disappears ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--gold);
    color: #0B0B0C;
    border-color: var(--gold);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #0B0B0C;
}
.btn-primary:active {
    transform: scale(0.97);
}
.btn-secondary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--border-strong);
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

.btn-lg { padding: 14px 28px; font-size: 15px; }
.nav-cta { padding: 10px 18px; font-size: 13px; }

/* ============ HERO ============ */
.hero {
    position: relative;
    z-index: 2;
    padding: 150px 0 80px;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}
.hero-tag {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 28px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.hero-headline {
    font-size: clamp(38px, 5.4vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 22px;
    color: var(--white);
}
.hero-subheadline {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.hero-note {
    font-size: 14px;
    color: var(--text-dim);
    max-width: 480px;
}

/* SHOWCASE  |  3D auto-swipe deck */
.hero-showcase {
    position: relative;
}
.showcase-deck {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    perspective: 1900px;
    transform-style: preserve-3d;
}
.deck-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0C0C0E;
    backface-visibility: hidden;
    transition:
        transform 1.15s cubic-bezier(0.45, 0.05, 0.2, 1),
        opacity 1.15s cubic-bezier(0.45, 0.05, 0.2, 1),
        filter 1.15s cubic-bezier(0.45, 0.05, 0.2, 1),
        box-shadow 1.15s cubic-bezier(0.45, 0.05, 0.2, 1);
    will-change: transform, opacity, filter;
}
.deck-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0C0C0E;
    user-select: none;
    -webkit-user-drag: none;
}

/* Position 0  |  front, sharp, full presence */
.deck-card.pos-0 {
    transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
    opacity: 1;
    filter: brightness(1) blur(0px);
    z-index: 3;
    box-shadow:
        0 36px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* Position 1  |  mid, behind and to the right, dimmed */
.deck-card.pos-1 {
    transform: translate3d(7%, -7%, -200px) rotateY(-8deg) scale(0.96);
    opacity: 0.55;
    filter: brightness(0.6) blur(1.4px);
    z-index: 2;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}
/* Position 2  |  back, deepest, most recessed */
.deck-card.pos-2 {
    transform: translate3d(13%, -13%, -380px) rotateY(-13deg) scale(0.92);
    opacity: 0.28;
    filter: brightness(0.4) blur(3px);
    z-index: 1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Intro  |  back cards start hidden directly behind the front card */
.showcase-deck.deck-intro .deck-card.pos-1,
.showcase-deck.deck-intro .deck-card.pos-2 {
    transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
    opacity: 0;
}

/* Progress dots  |  thin visible bar, generous invisible tap area */
.deck-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}
.deck-dot {
    width: 30px;
    height: 3px;
    padding: 11px 0;
    border: none;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.14);
    background-clip: content-box;
    cursor: pointer;
    transition: background-color 0.5s var(--ease), transform 0.4s var(--ease);
}
.deck-dot:hover { background-color: rgba(255, 255, 255, 0.28); }
.deck-dot.is-active {
    background-color: var(--gold);
    transform: scaleX(1.15);
}

@media (prefers-reduced-motion: reduce) {
    .deck-card {
        transition: opacity 0.4s ease;
        filter: none !important;
    }
}


/* ============ SECTIONS ============ */
.section {
    position: relative;
    z-index: 2;
    padding: 110px 0;
}
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-tag {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* Subtle inline gold emphasis for key phrases in headings */
.accent {
    color: var(--gold);
    font-weight: inherit;
}

/* Inline emphasis inside body / supporting text , brighter and slightly heavier */
.hero-subheadline strong,
.section-sub strong,
.cta-sub strong,
.solution-sub strong,
.hero-note strong {
    color: var(--white);
    font-weight: 600;
}
.section-title {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}
.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ============ PROBLEM ============ */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.problem-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t), transform var(--t), background-color var(--t);
}
.problem-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}
.problem-num {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.06em;
}
.problem-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}
.problem-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ============ SOLUTION ============ */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.solution-grid .section-title { text-align: left; }
.solution-grid .section-tag { margin-bottom: 18px; }
.solution-sub {
    margin: 0 0 28px;
    max-width: none;
    text-align: left;
    font-size: 16px;
}
.solution-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
.solution-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}
.solution-list strong { color: var(--white); font-weight: 600; }
.check {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.10);
    color: var(--gold);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

/* Pillars visual */
.pillars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.pillar {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--t), background-color var(--t);
}
.pillar:hover {
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.03);
}
.pillar-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.10);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.pillar h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
}
.pillar p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ============ SERVICES ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        border-color 0.4s var(--ease),
        background-color 0.4s var(--ease),
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
    min-height: 200px;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: transform 0.5s var(--ease);
    transform-origin: center;
}
.service-card:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.service-card:hover::before {
    transform: translateX(-50%) scaleX(1);
}
.service-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: background-color var(--t);
}
.service-card:hover .service-icon {
    background: rgba(212, 175, 55, 0.15);
}
.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.service-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============ PROCESS ============ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.process-step {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        border-color 0.4s var(--ease),
        background-color 0.4s var(--ease),
        transform 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}
.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: transform 0.5s var(--ease);
    transform-origin: center;
}
.process-step:hover {
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.process-step:hover::before {
    transform: translateX(-50%) scaleX(1);
}
.process-num {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 16px;
}
.process-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
    letter-spacing: -0.015em;
}
.process-step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============ FAQ  |  editorial list, no accordion boxes ============ */
.faq {
    position: relative;
    z-index: 2;
}
.faq .section-head { margin-bottom: 56px; }

.faq-list {
    max-width: 920px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.faq-item {
    position: relative;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.5s var(--ease);
}
/* Subtle gold rail that draws in on the active row, the editorial accent */
.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease);
    z-index: 1;
}
.faq-item.is-open::before,
.faq-item:hover::before {
    transform: scaleX(1);
}
.faq-item.is-open {
    border-color: rgba(212, 175, 55, 0.22);
}

/* Question row */
.faq-q {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 28px;
    width: 100%;
    padding: 30px 8px 30px 4px;
    background: none;
    border: none;
    color: var(--white);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition:
        padding 0.5s var(--ease),
        color 0.4s var(--ease);
}
.faq-q:hover {
    padding-left: 14px;
}
.faq-q:focus { outline: none; }
.faq-q:focus-visible {
    outline: 1px solid var(--border-gold);
    outline-offset: 4px;
}

.faq-num {
    flex-shrink: 0;
    width: 28px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: opacity 0.4s var(--ease);
    line-height: 1.5;
}
.faq-q-text {
    flex: 1;
    font-size: clamp(17px, 1.85vw, 22px);
    font-weight: 500;
    letter-spacing: -0.012em;
    line-height: 1.45;
    color: var(--white);
    transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}
.faq-item.is-open .faq-q-text {
    color: var(--white);
}
.faq-q:hover .faq-q-text {
    color: var(--white);
}

/* Toggle indicator: a + that becomes a − by rotating the vertical line into the horizontal */
.faq-toggle {
    flex-shrink: 0;
    position: relative;
    width: 22px;
    height: 22px;
    transform: translateY(2px);
}
.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--gold);
    transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.faq-toggle::before {
    width: 14px;
    height: 1px;
    transform: translate(-50%, -50%);
}
.faq-toggle::after {
    width: 1px;
    height: 14px;
    transform: translate(-50%, -50%);
}
/* When open: vertical line rotates 90° to overlap the horizontal, leaving a − */
.faq-item.is-open .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}
.faq-item.is-open .faq-toggle::before {
    width: 16px;
}

/* Answer panel: collapsed by default, JS sets max-height for smooth height animation */
.faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.7s var(--ease);
}
.faq-a-inner {
    padding: 0 60px 36px 60px;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.55s var(--ease) 0.05s,
        transform 0.6s var(--ease) 0.05s;
}
.faq-item.is-open .faq-a-inner {
    opacity: 1;
    transform: translateY(0);
}
.faq-a p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 640px;
    margin: 0;
}

/* Reduced motion: keep things sane */
@media (prefers-reduced-motion: reduce) {
    .faq-item, .faq-q, .faq-q-text, .faq-toggle::before, .faq-toggle::after,
    .faq-a, .faq-a-inner, .faq-item::before
    { transition: none !important; }
}

/* Mobile rhythm */
@media (max-width: 768px) {
    .faq-q { gap: 16px; padding: 22px 4px; }
    .faq-q:hover { padding-left: 4px; }
    .faq-num { width: 24px; font-size: 11px; }
    .faq-q-text { font-size: 16px; }
    .faq-a-inner { padding: 0 0 28px 36px; }
}

/* ============ CTA ============ */
.cta-card {
    position: relative;
    padding: 70px 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
}
.cta-card .section-tag { margin-bottom: 18px; }
.cta-headline {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    color: var(--white);
}
.cta-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.cta-contacts {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}
.cta-email {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    transition: color var(--t);
}
.cta-email:hover { color: var(--gold-hover); }
.cta-sep {
    width: 1px;
    height: 16px;
    background: var(--border);
}
.cta-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--t);
}
.cta-social:hover { color: var(--gold); }
.cta-social svg { transition: stroke var(--t); }
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}
.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}
.footer-brand { max-width: 360px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 5px 0;
    transition: color var(--t);
}
.footer-col a:hover { color: var(--white); }
.footer-social {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
.footer-social svg { transition: transform var(--t); }
.footer-social:hover svg { transform: scale(1.08); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-dim);
}

/* ============ REVEAL ============ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1100px) {
    .hero-container { grid-template-columns: 1fr; gap: 56px; }
    .hero-showcase { max-width: 600px; margin: 0 auto; }
    .solution-grid { grid-template-columns: 1fr; gap: 50px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid  { grid-template-columns: 1fr; }
}

/* ---- Tablet portrait / large phone ---- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Slide-in mobile nav */
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        background: rgba(11, 11, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 104px 30px 32px;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        border-left: 1px solid var(--border);
        z-index: 99;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links .nav-link {
        font-size: 19px;
        padding: 18px 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .nav-cta { display: none; }
    .menu-toggle { display: flex; }

    /* Section rhythm */
    .hero { padding: 116px 0 64px; }
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 42px; }
    .hero-headline { font-size: clamp(30px, 8.4vw, 38px); }
    .hero-subheadline { font-size: 16px; }

    /* Single-column grids */
    .problem-grid, .services-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .cta-card { padding: 50px 24px; }
    .cta-contacts { gap: 14px; }
    .cta-sep { display: none; }

    /* DECK: simplify to a clean single-card carousel  |  full-bleed on mobile */
    .hero-showcase {
        margin-left: -20px;       /* counter container padding for edge-to-edge */
        margin-right: -20px;
        max-width: none;
        width: auto;
    }
    .showcase-deck {
        perspective: none;
        width: 100%;
        margin: 0;
        aspect-ratio: 3 / 2;       /* matches infographic exactly */
        border-radius: 0;
    }
    .deck-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        transition: opacity 0.9s var(--ease);
    }
    /* Per-card object-fit: infographic preserves text, analytics fill the card */
    .deck-card[data-i="0"] img { object-fit: contain; }
    .deck-card[data-i="1"] img,
    .deck-card[data-i="2"] img {
        object-fit: cover;
        object-position: center;
    }
    /* Only the active card is visible on mobile, full size, sharp */
    .deck-card.pos-0 {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
        filter: none;
        z-index: 3;
        box-shadow:
            0 28px 64px rgba(0, 0, 0, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    .deck-card.pos-1,
    .deck-card.pos-2 {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0;
        filter: none;
        z-index: 1;
        box-shadow: none;
        pointer-events: none;
    }
    .showcase-deck.deck-intro .deck-card.pos-1,
    .showcase-deck.deck-intro .deck-card.pos-2 {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0;
    }

    /* Larger, more comfortable dot rail */
    .deck-dots { gap: 14px; margin-top: 22px; }
    .deck-dot  { width: 38px; }
}

/* ---- Phone ---- */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero { padding: 104px 0 56px; }
    .section { padding: 60px 0; }

    /* Keep the deck full-bleed on phone */
    .hero-showcase { margin-left: -18px; margin-right: -18px; }

    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }

    /* Slightly larger dot rail for the smallest screens */
    .deck-dot { width: 42px; }
    .deck-dots { gap: 16px; }

    .cta-card { padding: 44px 20px; }
    .cta-email { font-size: 16px; }
}
