/* ==========================================================================
   V3 "Pixelcraft" Core Constraints & Variables & Themes
   ========================================================================== */
:root {
    /* --- Typography --- */
    --font-heading: 'Schibsted Grotesk', sans-serif;
    --font-body: 'Schibsted Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* --- Type Roles --- */
    --type-display: clamp(2.65rem, 7vw, 6rem);
    --type-section: clamp(2.15rem, 5vw, 4.75rem);
    --type-title: clamp(1.4rem, 2vw, 1.8rem);
    --type-lead: clamp(1.0625rem, 1.5vw, 1.125rem);
    --type-body: 1rem;
    --type-label: 0.75rem;

    /* --- Spacing Scale (4px base) --- */
    --space-0: 0px;
    --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: 96px;
    --space-10: 128px;

    /* --- Layout & Shapes --- */
    --container-width: 1400px;
    --radius-none: 0px;

    /* --- Motion & Shadows --- */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --easing-default: cubic-bezier(0.4, 0, 0.2, 1);

    --bg-dark: var(--brand-black, #111111);
    --bg-surface: #191919;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.2);

    --text-primary: var(--brand-white, #ffffff);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-tertiary: rgba(255, 255, 255, 0.58);

    --accent-blue: var(--brand-accent, #2563eb);
    --accent-yellow: #60a5fa;
    --accent-orange: #60a5fa;
    --shadow-glow: rgba(37, 99, 235, 0.16);

    /* --- Shadows (For Hover/Active States) --- */
    --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.08);
    --shadow-md: 0 4px 16px rgba(17, 17, 17, 0.1);
    --shadow-lg: 0 8px 24px rgba(17, 17, 17, 0.12);

}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

section[id] {
    scroll-margin-top: calc(var(--site-nav-height, 80px) + var(--space-5));
}

body {
    background-color: var(--bg-dark);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
}

/* Base Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    text-wrap: balance;
}

p {
    font-size: var(--type-body);
    color: var(--text-secondary);
    letter-spacing: 0;
    line-height: 1.65;
    text-wrap: pretty;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

ul {
    list-style: none;
}

.text-accent {
    color: var(--accent-yellow);
}

.color-blue {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.color-gray {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.color-black {
    background-color: var(--brand-black, #111111);
    color: #ffffff;
    border: 1px solid var(--border-light);
}

/* Common Structural */
.section-border-top {
    border-top: 1px solid var(--border-color);
}

section {
    position: relative;
    padding: 8rem 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* For sections that need full width containers inside */
.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.px-4 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.section-badge-container {
    position: absolute;
    top: -12px;
    left: 4rem;
    background-color: var(--bg-dark);
    padding: 0 16px;
}

.section-badge {
    font-family: var(--font-mono);
    color: var(--accent-yellow);
    font-size: var(--type-label);
    letter-spacing: 0.1em;
    font-weight: 700;
}

.section-header {
    margin-bottom: var(--space-8);
    max-width: 800px;
}

.section-title {
    max-width: 18ch;
    font-size: var(--type-section);
    line-height: 0.96;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.section-desc {
    max-width: 65ch;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* Secondary button */
.btn-ghost {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s var(--easing-default);
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.nav-ghost-link {
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-ghost-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(4rem, 10vh, 8rem) 4rem;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    overflow: clip;
}

.hero-scan {
    width: 1px;
    height: 72%;
    background: var(--accent-yellow);
    position: absolute;
    top: 14%;
    left: 50%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.28);
}

.hero-top-badge {
    font-family: var(--font-mono);
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
    padding: 4px 12px;
    font-size: var(--type-label);
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-bottom: 3rem;
}

.hero-title {
    max-width: 15ch;
    font-size: var(--type-display);
    line-height: 0.94;
    letter-spacing: -0.035em;
    margin-bottom: 2rem;
}

.hero-title-line {
    display: block;
}

.hero-title-line > span {
    display: block;
}

.hero-subtitle {
    font-size: var(--type-lead);
    letter-spacing: 0;
    line-height: 1.6;
    max-width: 62ch;
    margin-bottom: 4rem;
    color: var(--text-secondary);
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================================================
   Pain Grid
   ========================================================================== */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pain-item {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    transition: all 0.2s var(--easing-default);
}

.pain-item:hover {
    background-color: var(--bg-surface);
}

.pain-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    margin-bottom: 2.5rem;
}

.pain-icon-box svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-yellow);
}

.pain-icon-box.orange-box svg {
    fill: var(--accent-orange);
}

.pain-icon-box.white-box svg {
    fill: var(--text-primary);
}

.pain-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.pain-item p {
    flex-grow: 1;
    margin-bottom: 3rem;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    align-self: flex-start;
}

/* ==========================================================================
   Pixel Edge Grid (Services)
   ========================================================================== */
.pixel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pixel-card {
    background-color: var(--bg-dark);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: all 0.2s var(--easing-default);
}

.pixel-card:hover {
    background-color: var(--bg-surface);
}

.card-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2.5rem;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.card-text {
    margin-bottom: 3rem;
    flex-grow: 1;
}

/* ==========================================================================
   Process Flex -> Process Grid
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.process-card {
    padding: 3rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    transition: all 0.2s var(--easing-default);
}

.process-card:nth-child(2) {
    border-color: var(--accent-blue);
    background-color: #202020;
    color: var(--text-primary);
}

.process-card:nth-child(2) .process-desc {
    color: rgba(255, 255, 255, 0.72);
}

.process-card.active {
    border: 1px solid var(--accent-yellow);
    background-color: var(--bg-surface);
}

.process-number {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 4.75rem);
    font-weight: 700;
    line-height: 1;
    color: var(--accent-yellow);
    margin-bottom: 2rem;
}

.process-title {
    font-size: var(--type-title);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.process-desc {
    max-width: 65ch;
    font-family: var(--font-body);
    font-size: var(--type-body);
    line-height: 1.65;
    letter-spacing: 0;
    color: var(--text-secondary);
}

/* ==========================================================================
   Showcase Elements (Project Grid)
   ========================================================================== */
.header-with-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: 3rem;
}

.header-with-nav .section-title {
    margin-bottom: 0;
}

.header-with-nav .section-desc {
    max-width: 48ch;
}

.nav-arrow {
    padding: 12px 20px;
    font-size: 1.2rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.showcase-project {
    background-color: var(--bg-dark);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: all 0.2s var(--easing-default);
    text-decoration: none;
    color: inherit;
}

.showcase-project.active {
    border: 1px solid var(--accent-yellow);
}

.process-card.active,
.showcase-project.active,
.pain-item:hover,
.pixel-card:hover,
.showcase-project:hover,
.process-card:hover,
.testimonial-card:hover {
    position: relative;
    z-index: 1;
    transform: translateY(-4px);
    box-shadow: 0 4px 20px var(--shadow-glow);
}

.showcase-img-container {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.showcase-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid var(--border-color);
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-project:hover .showcase-img,
.showcase-project:hover .showcase-visual {
    transform: scale(1.015);
}

.showcase-visual span,
.showcase-visual small {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: var(--type-label);
    letter-spacing: 0.06em;
}

.showcase-visual strong {
    max-width: 14ch;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1;
}

.showcase-visual--bot {
    color: #eee2f8;
    background-color: #160b20;
}

.showcase-visual--admin {
    color: #e6edf5;
    background-color: #0d151e;
}

.showcase-visual--beauty {
    color: #171717;
    background-color: #ede8e4;
}

.showcase-visual--beauty span,
.showcase-visual--beauty small {
    color: #55504d;
}

.showcase-meta {
    padding: 0 0 1rem 0;
    display: flex;
    justify-content: space-between;
    font-size: var(--type-label);
    letter-spacing: 0.08em;
}

.meta-tag {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 4px 8px;
}

.meta-count {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.showcase-title {
    padding: 0 0 1.5rem 0;
    font-size: var(--type-title);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.showcase-desc {
    padding: 0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.showcase-result {
    max-width: 65ch;
    color: var(--text-secondary);
    font-size: var(--type-body);
    line-height: 1.65;
    margin-bottom: 2rem;
    text-wrap: pretty;
}

.project-index {
    margin-top: var(--space-8);
}

.project-index-label {
    margin-bottom: var(--space-5);
    font-family: var(--font-mono);
    font-size: var(--type-label);
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

.project-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.project-index-item {
    min-width: 0;
    padding: var(--space-6);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: background-color var(--duration-fast), color var(--duration-fast);
}

.project-index-item:last-child {
    border-right: 0;
}

.project-index-item:hover {
    background-color: var(--bg-surface);
}

.project-index-item:hover .project-index-type,
.project-index-item:hover .project-index-cta {
    color: var(--text-primary);
}

.project-index-type,
.project-index-cta {
    font-family: var(--font-mono);
    font-size: var(--type-label);
    letter-spacing: 0.05em;
}

.project-index-type {
    color: var(--accent-orange);
}

.project-index-item h3 {
    margin-top: var(--space-5);
    font-size: var(--type-title);
    line-height: 1.1;
}

.project-index-item p {
    max-width: 44ch;
    margin: var(--space-4) 0 var(--space-6);
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-index-cta {
    min-height: 44px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--accent-yellow);
}

.project-case-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-yellow);
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.project-case-link:hover {
    gap: 0.75rem;
}

.showcase-project-featured .showcase-img-container {
    max-width: 220px;
}

.showcase-project-featured .showcase-img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: var(--bg-surface);
    padding: 2rem;
}

.showcase-project-featured .meta-tag {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

.showcase-featured-cta {
    margin-top: 2rem;
}

/* ==========================================================================
   Results Table Format
   ========================================================================== */
.table-container {
    width: 100%;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 3rem;
}

.pixel-table {
    width: 100%;
    border-collapse: collapse;
}

.pixel-table th,
.pixel-table td {
    padding: 2rem 2.5rem;
    text-align: left;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.pixel-table th {
    color: var(--text-secondary);
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.pixel-table th:last-child,
.pixel-table td:last-child {
    border-right: none;
}

.pixel-table tr:last-child td {
    border-bottom: none;
}

.pixel-table tr td:nth-child(2) {
    color: var(--text-tertiary);
    text-decoration: line-through;
    text-decoration-color: rgba(17, 17, 17, 0.3);
}

.col-highlight {
    color: var(--accent-yellow);
    background-color: rgba(37, 99, 235, 0.04);
}

.table-check {
    color: var(--accent-yellow);
    font-weight: 700;
    margin-right: 8px;
    font-family: var(--font-mono);
}

/* Table Section Removed */
/* ==========================================================================
   Results / Use Cases
   ========================================================================== */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-card {
    display: flex;
    align-items: center;
    border: 1px solid var(--accent-yellow);
    background-color: var(--bg-dark);
}

.result-before,
.result-after {
    flex: 1;
    padding: 3rem;
}

.result-after.active {
    background-color: var(--bg-surface);
    border-left: 2px solid var(--accent-yellow);
}

.result-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.result-after .result-label {
    color: var(--accent-yellow);
}

.result-arrow {
    padding: 0 2rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--bg-dark);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: all 0.2s var(--easing-default);
}

.testimonial-card:hover {
    border-color: var(--accent-blue);
}

.testimonial-text {
    max-width: 65ch;
    font-size: var(--type-body);
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.author-icon.color-gray {
    color: var(--text-primary);
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.testimonial-author span {
    font-family: var(--font-mono);
    font-size: var(--type-label);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   About Me
   ========================================================================== */
.about-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    flex: 1;
    border: 1px solid var(--accent-yellow);
    padding: 1rem;
    background-color: var(--bg-surface);
    max-width: 400px;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) contrast(1.1);
}

.about-content {
    flex: 1.5;
}

.about-subtitle {
    font-size: 1rem;
    color: var(--accent-yellow);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* ==========================================================================
   Hero CTA Subtext
   ========================================================================== */
.hero-cta-subtext {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: var(--type-label);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   FAQ Overhaul
   ========================================================================== */
.faq-container {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-light);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 3rem 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.15s;
}

.faq-question:hover {
    color: var(--accent-yellow);
}

.faq-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--border-light);
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-family: var(--font-mono);
    transition: color 150ms, background-color 150ms, transform 150ms;
}

.faq-question.active {
    color: var(--accent-yellow);
}

.faq-question.active .faq-toggle {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer.is-open {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-answer p {
    max-width: 68ch;
    font-size: var(--type-body);
    line-height: 1.7;
    padding-bottom: 3rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    position: relative;
    padding: 8rem 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-desc {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--type-lead);
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 3rem;
    letter-spacing: 0;
    line-height: 1.65;
}

.contact-cta-group {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.contact-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media (max-width: 1024px) {

    .pain-grid,
    .pixel-grid,
    .process-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        flex-direction: column;
    }

    .result-arrow {
        transform: rotate(90deg);
        padding: 1rem 0;
    }

    .result-after.active {
        border-left: none;
        border-top: 2px solid var(--accent-yellow);
    }

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

    .about-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section,
    .contact-section {
        padding: 4rem 2rem;
    }

    .hero-subtitle {
        margin-bottom: 2.5rem;
        font-size: 1rem;
        letter-spacing: 0;
        line-height: 1.65;
    }

    .hero .hero-cta-group {
        width: 100%;
        max-width: 360px;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero .hero-cta-group .btn-primary,
    .hero .hero-cta-group .btn-ghost {
        width: 100%;
        min-height: 52px;
        padding: 14px 18px;
        line-height: 1.25;
    }

    .section-badge-container {
        left: 2rem;
    }

    .section-header {
        margin-bottom: var(--space-7);
    }

    .header-with-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-4);
    }

    .px-4 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .table-container {
        overflow-x: auto;
    }

    .brand-proof {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .solution-path {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 1rem;
    }

    .process-card,
    .testimonial-card {
        padding: var(--space-5);
    }

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

    .testimonial-text {
        margin-bottom: var(--space-6);
    }

    .faq-question {
        padding: var(--space-5) 0;
        gap: var(--space-4);
    }

    .faq-answer p {
        padding-bottom: var(--space-5);
    }

    .project-index-grid {
        grid-template-columns: 1fr;
    }

    .project-index-item,
    .project-index-item:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .project-index-item:last-child {
        border-bottom: 0;
    }

    .pixel-table th,
    .pixel-table td {
        padding: 1rem 1.2rem;
        font-size: 0.75rem;
    }

    .sticky-whatsapp .whatsapp-text {
        display: none;
    }

    .sticky-whatsapp {
        bottom: 20px;
        right: 20px;
        left: auto;
        padding: 12px;
    }
}

/* ==========================================================================
   Brand Logos / Social Proof Logos
   ========================================================================== */
.brand-section {
    padding: 3rem 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.brand-title {
    font-family: var(--font-mono);
    font-size: var(--type-label);
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.brand-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    transition: color 0.2s ease;
    cursor: pointer;
}

.brand-logo:hover {
    color: var(--accent-yellow);
}

.brand-proof {
    max-width: 760px;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: var(--type-body);
    line-height: 1.6;
    text-wrap: balance;
}

.brand-proof strong {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    color: var(--accent-yellow);
}

.brand-proof:hover span {
    color: var(--text-primary);
}

/* ==========================================================================
   Business Outcome Paths
   ========================================================================== */
.solution-paths {
    border-top: 1px solid var(--border-color);
}

.solution-path {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    transition: background-color var(--duration-fast);
}

.solution-arrow {
    color: var(--accent-yellow);
    font-family: var(--font-mono);
    font-size: 2rem;
    line-height: 1;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-path:hover .solution-arrow {
    transform: translateX(6px);
}

.solution-path h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.solution-path p {
    max-width: 65ch;
    font-size: var(--type-body);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.solution-path a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--accent-yellow);
    font-family: var(--font-mono);
    font-size: var(--type-label);
}

.solution-path a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Social Proof Metrics (Numbers)
   ========================================================================== */
.metrics-section {
    position: relative;
    padding: 8rem 4rem;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.metric-item {
    padding: 2.5rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--easing-default);
}

.metric-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px var(--shadow-glow);
    border-color: var(--accent-yellow);
    background-color: var(--bg-surface);
}

.metric-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--accent-yellow);
    line-height: 1;
    margin-bottom: 1rem;
}

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}

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

@media (max-width: 768px) {
    .brand-section {
        padding: 2.5rem 2rem;
    }
    .brand-container {
        gap: 2rem;
    }
    .brand-logo {
        font-size: 0.95rem;
    }
    .metrics-section {
        padding: 4rem 2rem;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Showcase Outcomes & Tech Stack Badges
   ========================================================================== */
.showcase-outcome {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px dashed var(--border-light);
    padding-top: 1.5rem;
}

.showcase-outcome div {
    display: block;
}

.showcase-outcome strong {
    font-family: var(--font-mono);
    color: var(--accent-yellow);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.about-tech-stack {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    background-color: var(--bg-dark);
    cursor: default;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* ==========================================================================
   Accessibility & Focus Rules
   ========================================================================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 4px;
}

/* ==========================================================================
   Tablet Responsive Refinements (769px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 768px) {
    .pain-grid,
    .pixel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-project:first-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
        grid-template-rows: auto auto 1fr auto;
        column-gap: var(--space-6);
    }

    .showcase-project:first-child .showcase-img-container {
        grid-column: 1;
        grid-row: 1 / 5;
        margin-bottom: 0;
    }

    .showcase-project:first-child .showcase-meta,
    .showcase-project:first-child .showcase-title,
    .showcase-project:first-child .showcase-result,
    .showcase-project:first-child .project-case-link {
        grid-column: 2;
    }
    
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

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

    .testimonial-card:last-child {
        grid-column: 1 / -1;
    }
    
    section,
    .contact-section {
        padding: 6rem 3rem;
    }

    .px-4 {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ==========================================================================
   Narrow Mobile Responsive Refinements (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
    section,
    .contact-section {
        padding: 3rem 1.25rem;
    }
    
    .hero {
        padding: 4rem 1.25rem;
    }

    .px-4 {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .section-badge-container {
        left: 1.25rem;
    }
    
    .hero-top-badge {
        margin-bottom: 2rem;
    }
    
    .pixel-table th,
    .pixel-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .brand-container {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Print Stylesheet Overrides
   ========================================================================== */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        background-image: none !important;
    }
    
    .navbar,
    .mobile-nav-overlay,
    .mobile-menu-btn,
    .hero-cta-group,
    .contact-cta-group,
    .btn-primary,
    .btn-ghost,
    .footer-links-col,
    .project-case-link,
    .sticky-cta,
    .topbar {
        display: none !important;
    }
    
    section,
    .contact-section,
    .footer {
        padding: 2rem 0 !important;
        border: none !important;
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-title {
        color: #000000 !important;
        font-size: 3rem !important;
    }
    
    .hero-subtitle,
    .section-desc,
    p {
        color: #333333 !important;
    }
    
    .pain-item,
    .pixel-card,
    .process-card,
    .showcase-project,
    .testimonial-card,
    .metric-item {
        border: 1px solid #cccccc !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        page-break-inside: avoid;
        box-shadow: none !important;
        transform: none !important;
    }
    
    .pixel-table th,
    .pixel-table td {
        border: 1px solid #cccccc !important;
        color: #000000 !important;
    }
    
    .col-highlight {
        background-color: #f9f9f9 !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    ::before,
    ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}
