@font-face {
    font-family: 'Cracker Grotesk';
    src: url('img/cracker-grotesk-modern-geometric-sans-serif-2026-03-23-03-41-20-utc/Cracker Grotesk/Web-TT/CRACKER REGULER.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #000000;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #FF4D2D;
    --accent-hover: #e64528;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cracker Grotesk', serif;
    --font-ui: 'Instrument Sans', sans-serif;
    --container-width: 1440px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow-x: hidden;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Background Lighting Effects */
.bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('img/Hero-section-bg.webp') no-repeat center center;
    background-size: cover;
    z-index: -2;
    pointer-events: none;
}

.light-beam {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 40%;
    height: 120vh;
    background: radial-gradient(ellipse at center, rgba(255, 77, 45, 0.05) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: -1;
}

/* White Section & Tech Stack */
.white-section {
    background-color: #ffffff;
    width: 100%;
    position: relative;
    z-index: 10;
}

.tech-stack {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 6rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.tech-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #000000;
    opacity: 0.8;
    transition: all 0.4s ease;
    cursor: default;
}

.tech-logo img,
.tech-logo svg {
    height: 35px;
    width: auto;
}

.tech-logo span {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-logo:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-width);
    z-index: 100;
}

.logo img {
    height: 18px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    opacity: 0.7;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-icon {
    cursor: pointer;
    opacity: 0.7;
}

.download-cv {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.download-cv:hover {
    background-color: var(--accent-hover);
}

.desktop-only {
    display: flex;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 2000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: right 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.close-menu {
    cursor: pointer;
    color: #fff;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    transition: 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--accent-color);
    padding-left: 1rem;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0 0 0;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-content {
    width: 100%;
    position: relative;
    margin-top: -20vh;
}

/* Typography Compositions */
.headline-container {
    position: relative;
    z-index: 5;
}

.headline {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--font-heading);
    line-height: 0.85;
    letter-spacing: -5px;
    margin: 0;
}

.headline.studio {
    margin-left: 25%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.headline-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.torus-gif {
    position: relative;
    width: clamp(200px, 15vw, 350px);
    transform: translateY(-1rem);
}

.torus-gif img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gif-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.description {
    max-width: 450px;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
    margin-left: 34.5%;
}

/* Floating Elements */
.main-card {
    position: absolute;
    top: 30%;
    left: 4%;
    width: 380px;
    aspect-ratio: 1/1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    transform: perspective(1000px) rotateY(15deg) rotateX(10deg);
    z-index: 2;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

/* .torus-element removed and replaced by .torus-gif */

.target-inline {
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
    animation: float 10s ease-in-out infinite reverse;
}

.target-inline img {
    width: 100%;
    height: auto;
}

/* Side Elements */
.service-list {
    position: absolute;
    right: 15%;
    top: 25%;
    list-style: none;
    text-align: right;
    z-index: 10;
}

.service-item {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.service-item.active {
    opacity: 1;
    color: var(--accent-color);
}

.social-sidebar {
    position: absolute;
    right: 2.5rem;
    bottom: calc(10% + 130px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.social-icon:hover,
.social-icon.active:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: translateY(-2px);
}

.social-icon.active {
    background: transparent;
    border-color: #fff;
}

/* Bottom Bar */
.bottom-info {
    position: absolute;
    bottom: 5%;
    left: 0;
    max-width: 300px;
}

.bottom-info p {
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.get-in-touch {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    cursor: pointer;
}

.touch-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #fff;
    transition: color 0.4s;
}

.touch-circle::before {
    content: '';
    position: absolute;
    bottom: -160%;
    /* Completely hidden */
    left: -50%;
    width: 200%;
    height: 150%;
    background: var(--accent-color);
    border-radius: 42%;
    z-index: -1;
    transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 3s linear;
}

.touch-circle:hover {
    /* Keeping text white as requested */
}

.touch-circle:hover::before {
    bottom: -10%;
    /* Fills the circle */
    transform: rotate(180deg);
}

.touch-circle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
    transition: opacity 0.3s;
}

.touch-circle:hover::after {
    opacity: 0;
}

.main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
    opacity: 0.8;
}

/* About Section */
.about-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 8rem 0;
    color: #000;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: flex-start;
}

.about-visual {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -3.5rem;
    /* Posunutí nahoru aby horní hrana terče lícovala s nadpisem */
}

.circles-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.circles-bg::before,
.circles-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.circles-bg::before {
    width: 300px;
    height: 300px;
}

.circles-bg::after {
    width: 200px;
    height: 200px;
}

.experience-count {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    z-index: 2;
    position: relative;
    letter-spacing: -5px;
}

.experience-count span {
    color: var(--accent-color);
    font-size: 0.6em;
    display: inline-block;
    vertical-align: top;
    margin-top: 0.15em;
    margin-left: -15px;
}

.badge {
    position: absolute;
    background: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    z-index: 3;
}

.badge span {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.badge-1 {
    top: 15%;
    left: 0;
}

.badge-2 {
    top: 25%;
    right: 5%;
}

.badge-3 {
    bottom: 25%;
    left: 5%;
}

.badge-4 {
    bottom: 15%;
    right: 10%;
}

.red-pill {
    display: inline-flex;
    align-items: center;
    height: 1.1em;
    margin-right: 1.5rem;
    vertical-align: middle;
    position: relative;
    top: -0.05em;
}

.red-pill img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.about-heading {
    font-family: var(--font-ui);
    /* Switched to the other font */
    font-size: 48px;
    font-weight: 800;
    /* Adjusted for Instrument Sans boldness */
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 4rem;
    letter-spacing: -1px;
    /* Tighter letter spacing for this font */
}

.about-details {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.center-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.image-box {
    background: #cccccc;
    border-radius: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-box.small {
    width: 140px;
    height: 180px;
}

.image-box.large {
    width: 320px;
    height: 380px;
}

.text-box p {
    font-family: var(--font-ui);
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    background: #000;
    color: #fff;
    border-radius: 3rem;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 800;
    gap: 1rem;
    transition: transform 0.3s;
}

.about-cta:hover {
    transform: scale(1.05);
}

.arrow-circle {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Queries */
@media (max-width: 1200px) {
    :root {
        --container-width: 90%;
    }

    .headline {
        font-size: 8rem;
    }

    .headline.studio {
        margin-left: 15%;
    }

    .description {
        margin-left: 20%;
    }

    .main-card {
        width: 320px;
        left: 0;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        padding: 150px 1.5rem 100px;
        max-width: 100%;
        margin: 0;
        background: url('img/Hero-section-bg.webp') no-repeat center center;
        background-size: cover;
    }

    .bg-glow {
        display: none;
    }

    .hero-content {
        margin-top: 0;
        text-align: center;
    }

    .headline {
        font-size: clamp(3.5rem, 15vw, 6rem);
        letter-spacing: -2px;
    }

    .headline-row {
        justify-content: center;
    }

    .headline.studio {
        margin-left: 0;
        justify-content: center;
    }

    .torus-gif {
        width: 150px;
    }

    .target-inline {
        width: 60px;
    }

    .description {
        margin: 2rem auto;
        text-align: center;
    }

    .main-card {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 220px;
        margin: 2rem auto 0;
        transform: none;
        aspect-ratio: 1/1;
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    .service-list,
    .social-sidebar,
    .bottom-info,
    .scroll-line {
        display: none;
    }

    .get-in-touch {
        position: relative;
        bottom: 0;
        left: auto;
        transform: none;
        margin: 2.5rem auto 0;
        order: 3;
    }

    /* About Section Responsive */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-heading {
        font-size: 32px;
        text-align: center;
    }

    .about-details {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .center-content {
        order: -1;
    }

    .image-box.large {
        margin-top: 2rem;
        width: 100%;
        height: 300px;
    }

    .experience-count {
        font-size: 7rem;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 3rem;
    }

    .mobile-nav-links a {
        font-size: 2rem;
    }

    .red-pill {
        margin-right: 0.5rem;
    }
}

@media (max-width: 600px) {
    .red-pill {
        display: none;
    }
}

/* Scroll Line */
.scroll-line {
    position: absolute;
    right: calc(2.5rem + 20px);
    bottom: 10%;
    height: 100px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2px;
    width: 5px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Sticky Services Section */
.services-sticky-section {
    background-color: var(--bg-color);
    padding: 10rem 0;
    position: relative;
    z-index: 20;
}

.services-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Top Column - Sticky */
.services-top {
    display: flex;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: 6rem;
    padding-bottom: 3rem;
    background-color: var(--bg-color);
}

/* Bottom Split Section */
.services-bottom-split {
    display: flex;
    width: 100%;
    gap: 6rem;
    position: relative;
    padding-top: 2rem;
}

/* Left Column - Sticky Pills */
.services-left-pills {
    width: 33%;
    position: sticky;
    top: var(--pills-sticky-top, 250px);
    height: calc(100vh - var(--pills-sticky-top, 250px) - 80px);
    display: flex;
    flex-direction: column;
}

.services-title-area {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.vertical-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-ui);
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 1rem;
}

.heading-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.heading-line-1 {
    font-family: var(--font-ui);
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.heading-line-2 {
    display: flex;
    align-items: center;
    gap: 4rem;
    /* Space between text and heading */
    margin-top: 0.5rem;
}

.heading-line-2 h2 {
    font-family: var(--font-ui);
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 2px;
}

.outline-text {
    color: var(--bg-color);
    text-shadow:
        -1px -1px 0 #fff,
        0 -1px 0 #fff,
        1px -1px 0 #fff,
        1px 0 0 #fff,
        1px 1px 0 #fff,
        0 1px 0 #fff,
        -1px 1px 0 #fff,
        -1px 0 0 #fff;
}

.services-desc {
    font-family: var(--font-ui);
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 450px;
    margin: 0;
    line-height: 1.5;
}

/* Floating Pills */
.services-floating-pills {
    position: relative;
    flex: 1;
    margin-left: 2rem;
    container-type: inline-size;
}

.big-bg-text {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 7.5vw, 10rem);
    font-size: 18cqi;
    color: rgba(255, 255, 255, 0.04);
    line-height: 0.8;
    position: absolute;
    right: -1rem;
    bottom: 0;
    writing-mode: vertical-rl;
    z-index: 0;
}

/* Scroll Indicator */
.services-scroll-indicator {
    position: absolute;
    right: -3rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.scroll-thumb {
    width: 100%;
    height: 15%;
    background-color: var(--accent-color);
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 2px;
}



.tabs-image-container {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    z-index: 2;
}

.tabs-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Right Column - Scrollable */
.services-right-list {
    width: 67%;
    display: flex;
    flex-direction: column;
    padding-bottom: 20vh;
    /* gives space to scroll past the last item */
}

.service-row {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding-bottom: 5rem;
    margin-bottom: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-row.align-right {
    justify-content: flex-end;
}

.service-row.align-left {
    justify-content: flex-start;
}

.service-info {
    flex: 1;
    position: relative;
    padding-left: 2.5rem;
}

.service-image-placeholder {
    width: 360px;
    height: 140px;
    background: transparent;
    border-radius: 9999px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.service-image-placeholder::after {
    content: '[Fotka/Video]';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-ui);
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
}

.service-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.service-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    display: block;
    line-height: 1.1;
}

.service-number {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 0.4rem;
    margin: 0;
}

.arrow-icon {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: 400;
    margin-left: auto;
    /* push arrow to the right if needed, but the design has it right next to text */
}

.service-desc {
    font-family: var(--font-ui);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.service-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.service-tags span {
    font-size: 0.65rem;
    font-family: var(--font-ui);
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.6;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.service-tags span:hover {
    opacity: 1;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.4rem 0.4rem 0.4rem 1.8rem;
    background-color: var(--accent-color);
    border-radius: 9999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 1.8rem;
    width: fit-content;
}

.cta-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(2px);
}

.cta-arrow {
    width: 42px;
    height: 42px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-cta:hover {
    transform: translateY(-3px);
}

.service-cta:hover .cta-text {
    transform: translateY(2px);
}

.service-cta:hover .cta-arrow {
    background-color: #ffffff;
    color: #000000;
    transform: rotate(45deg);
}

.service-cta:active {
    transform: translateY(-1px);
}

/* Responsive adjustments for the new section */
@media (max-width: 1200px) {
    .services-top {
        position: relative;
        top: 0;
        padding-top: 2rem;
    }

    .services-title-area {
        gap: 1rem;
    }

    .heading-line-2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .services-bottom-split {
        flex-direction: column;
        gap: 2rem;
    }

    .services-scroll-indicator {
        display: none;
    }

    .services-left-pills {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        margin-bottom: 5rem;
    }

    .big-bg-text {
        font-size: 20vw;
        writing-mode: horizontal-tb;
        transform: none;
        top: 50%;
        bottom: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
    }

    .services-floating-pills {
        height: 350px;
        margin-left: 0;
    }

    .services-right-list {
        width: 100%;
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding-bottom: 3rem;
        margin-bottom: 3rem;
    }

    .service-row.align-left {
        flex-direction: column;
    }

    .service-image-placeholder {
        width: 100%;
        height: 250px;
        border-radius: 2rem;
    }

    .heading-line-1,
    .heading-line-2 h2 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .services-desc {
        margin-left: 0;
    }

    .services-floating-pills {
        margin-left: 0;
    }

    .services-container {
        padding: 0 1.5rem;
    }

    .services-title-area {
        padding-right: 0.5rem;
    }
}

/* Extra-small screens — keep big outline headings within viewport */
@media (max-width: 480px) {
    .heading-line-1,
    .heading-line-2 h2 {
        font-size: 1.75rem;
        letter-spacing: 0.5px;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
        max-width: 100%;
    }

    .heading-wrapper,
    .heading-line-2 {
        width: 100%;
        min-width: 0;
    }

    .services-title-area,
    .results-title-area,
    .work-title-area,
    .contact-title-area {
        gap: 0.75rem;
    }

    .vertical-label {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
}

/* =========================================
   Results Section (Light Theme)
   ========================================= */
.results-section {
    background-color: #ffffff;
    padding: 10rem 0;
    position: relative;
    z-index: 21;
    color: #000;
}

.results-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

.results-title-area {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    margin-bottom: 5rem;
}

/* Scoped overrides for shared title classes on light bg */
.results-section .heading-line-1,
.results-section .heading-line-2 h2 {
    color: #000;
}

.results-section .outline-text {
    color: #ffffff;
    text-shadow:
        -1px -1px 0 #000,
        0 -1px 0 #000,
        1px -1px 0 #000,
        1px 0 0 #000,
        1px 1px 0 #000,
        0 1px 0 #000,
        -1px 1px 0 #000,
        -1px 0 0 #000;
}

.results-section .services-desc {
    color: #555;
}

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

.result-card {
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.result-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 45, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.result-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 45, 0.35);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.result-card:hover::before {
    opacity: 1;
}

.result-number {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1;
    font-weight: 700;
    color: #000;
    letter-spacing: -1px;
    display: flex;
    align-items: flex-start;
}

.result-unit {
    font-size: 0.5em;
    margin-left: 0.15em;
    margin-top: 0.4em;
    color: var(--accent-color);
}

.result-label {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.result-desc {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.55;
    color: #555;
    flex-grow: 1;
}

.result-desc strong {
    color: #000;
    font-weight: 600;
}

.result-source {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.results-disclaimer {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    margin: 0;
}

/* =========================================
   Work / Portfolio Section — Stacked Deck
   ========================================= */
.work-section {
    background-color: var(--bg-color);
    padding: 12rem 0;
    position: relative;
    z-index: 22;
    overflow: hidden;
}

.work-bg-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-ui);
    font-size: clamp(4rem, 11vw, 10rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--text-primary);
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    white-space: nowrap;
}

.work-bg-left {
    left: 3vw;
}

.work-bg-right {
    right: 3vw;
}

.work-stack-wrapper {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.work-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    perspective: 1200px;
}

.work-card-stack {
    position: absolute;
    inset: 0;
    background: #161616;
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    transform-origin: left center;
}

/* Stack positions — position 0 is front (active) */
.work-card-stack[data-position="0"] {
    transform: translateX(0) translateY(0) scale(1) rotate(0deg);
    opacity: 1;
    z-index: 4;
    pointer-events: auto;
}

.work-card-stack[data-position="1"] {
    transform: translateX(-22px) translateY(-18px) scale(0.97) rotate(-1.5deg);
    opacity: 0.85;
    z-index: 3;
}

.work-card-stack[data-position="2"] {
    transform: translateX(-44px) translateY(-36px) scale(0.94) rotate(-3deg);
    opacity: 0.55;
    z-index: 2;
}

.work-card-stack[data-position="3"] {
    transform: translateX(-66px) translateY(-54px) scale(0.91) rotate(-4.5deg);
    opacity: 0.3;
    z-index: 1;
}

.work-card-stack:not([data-position="0"]) {
    pointer-events: auto;
}

.work-card-stack:not([data-position="0"]) .work-card-body {
    pointer-events: none;
}

/* Card content layout */
.work-card-image {
    background: #d9d9d9;
    overflow: hidden;
    position: relative;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.work-card-stack[data-position="0"]:hover .work-card-image img {
    transform: scale(1.04);
}

.work-card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.work-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.work-card-title {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.work-card-desc {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.work-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.work-meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.work-meta-label {
    color: var(--text-secondary);
}

.work-meta-value {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.work-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.work-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.work-view-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.work-view-arrow {
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.work-view-btn:hover .work-view-arrow {
    background: var(--accent-hover);
}

.work-counter {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.work-counter-current {
    color: var(--text-primary);
}

.work-counter-total {
    color: var(--text-secondary);
    font-weight: 500;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
    background-color: var(--bg-color);
    padding: 10rem 0;
    position: relative;
    z-index: 23;
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.contact-title-area {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.contact-section .heading-line-1,
.contact-section .heading-line-2 h2 {
    color: var(--text-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 4rem;
    width: 100%;
}

/* --- Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.form-required {
    color: var(--accent-color);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
    width: 100%;
    appearance: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-ui);
    line-height: 1.5;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.07);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 77, 45, 0.4);
}

.form-field select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
        linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 15px) 50%;
    background-size: 7px 7px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.form-field select option {
    background: #161616;
    color: var(--text-primary);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.form-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
}

.form-consent a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent-color);
    color: #fff;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.form-submit:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-submit-arrow {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-status {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 1.5rem;
    padding: 0;
}

.form-status.is-success {
    color: #4ade80;
    padding: 1rem 1.2rem;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 12px;
}

.form-status.is-error {
    color: #fb7185;
    padding: 1rem 1.2rem;
    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.25);
    border-radius: 12px;
}

/* --- Side Info --- */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    align-self: flex-start;
    position: sticky;
    top: 2rem;
}

.contact-side-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-side-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.contact-side-text {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.contact-side-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.contact-side-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.contact-side-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.25s ease;
}

.contact-side-link:hover {
    opacity: 0.75;
}

.contact-side-link-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.contact-side-link-value {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
    background-color: #0a0a0a;
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 24;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    display: block;
    align-self: flex-start;
}

.footer-slogan {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0;
}

.footer-heading {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin: 0 0 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-meta {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-copyright {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

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

    .work-bg-text {
        font-size: clamp(3rem, 9vw, 7rem);
        opacity: 0.04;
    }
}

/* =========================================
   Responsive: Mobile
   ========================================= */
@media (max-width: 768px) {
    .work-section,
    .contact-section {
        padding: 5rem 0;
    }

    .contact-container,
    .footer-container {
        padding: 0 1.5rem;
    }

    .contact-container {
        gap: 3rem;
    }

    .contact-title-area {
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-side {
        position: static;
        padding: 1.5rem;
    }

    .work-stack-wrapper {
        padding: 0 1rem;
    }

    .work-bg-text {
        display: none;
    }

    .work-stack {
        aspect-ratio: 5 / 8;
    }

    .work-card-stack {
        grid-template-columns: 1fr;
        grid-template-rows: 38% 62%;
    }

    .work-card-stack[data-position="1"] {
        transform: translateX(-12px) translateY(-12px) scale(0.97) rotate(-1deg);
    }

    .work-card-stack[data-position="2"] {
        transform: translateX(-24px) translateY(-24px) scale(0.94) rotate(-2deg);
    }

    .work-card-stack[data-position="3"] {
        transform: translateX(-36px) translateY(-36px) scale(0.91) rotate(-3deg);
    }

    .work-card-body {
        padding: 1.5rem;
        gap: 1rem;
    }

    .work-card-title {
        font-size: 1.15rem;
    }

    .work-card-desc {
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 4rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Tablet */
@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .results-section {
        padding: 5rem 0;
    }

    .results-container {
        padding: 0 1.5rem;
    }

    .results-title-area {
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .result-card {
        padding: 2rem 1.5rem;
    }
}

/* Single-column form + results at extra-small screens */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* =========================================
   Legal Pages (privacy.html, cookies.html)
   ========================================= */
.legal-body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.legal-nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.legal-back:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.legal-page {
    flex: 1;
    padding: 6rem 2rem 6rem;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent-color);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.legal-title {
    font-family: var(--font-ui);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.legal-meta {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 2.5rem;
}

.legal-intro {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-primary);
    margin: 0 0 3rem;
    padding: 1.5rem 1.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.legal-content h2 {
    font-family: var(--font-ui);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 3rem 0 1rem;
    color: var(--text-primary);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 1.2rem;
}

.legal-content p strong,
.legal-content li strong {
    color: var(--text-primary);
    font-weight: 700;
}

.legal-content ul {
    margin: 0 0 1.5rem;
    padding: 0 0 0 1.4rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content ul.legal-data {
    list-style: none;
    padding: 1.2rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.legal-content ul.legal-data li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    transition: color 0.25s ease;
}

.legal-content a:hover {
    color: var(--accent-color);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 2rem;
    font-size: 0.95rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.legal-table th,
.legal-table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
    line-height: 1.5;
}

.legal-table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    font-weight: 800;
}

.legal-table tbody td {
    color: var(--text-secondary);
}

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

/* Footer override for legal pages — narrower, simpler */
.legal-body .site-footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
}

.legal-body .footer-container {
    padding: 0 4rem;
}

.legal-body .footer-bottom {
    padding-top: 0;
}

@media (max-width: 768px) {
    .legal-nav {
        padding: 1rem 1.5rem;
    }

    .legal-back {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .legal-page {
        padding: 3rem 1.5rem 3rem;
    }

    .legal-intro {
        font-size: 1rem;
        padding: 1.2rem 1.4rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
        margin-top: 2.5rem;
    }

    .legal-table {
        font-size: 0.85rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 0.7rem 0.8rem;
    }

    .legal-body .footer-container {
        padding: 0 1.5rem;
    }
}