/* style.css - Swiss-influenced, minimal, structured design system */
:root {
    --color-primary: #A52422;
    --color-bg-light: #E6E1DD;
    --color-bg-dark: #1A1A1A;
    --color-text-light: #E6E1DD;
    --color-muted: #8C8986;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing scale */
    --space-10: 10px;
    --space-20: 20px;
    --space-20: 20px;
    --space-70: 70px;
    --space-100: clamp(50px, 4vw, 100px);
    --space-200: 200px;

    /* Global Layout Margin */
    --layout-margin: clamp(20px, 4vw, 20px);
}

/* ── Badge stacking rule merged below ─── */

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--color-bg-light);
    color: var(--color-bg-dark);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Base Typography Roles */
.hero-display {
    font-size: clamp(3rem, 7vw, 10rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--color-bg-dark);
    margin: 0;
    padding: 0;
    transform: translateY(-0.05em);
    /* Optical baseline/cap-height trim */
}

.section-heading {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    margin: 0;
    padding: 0;
    transform: translateY(-0.05em);
}

.small-text,
.supporting-text {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 700;
    line-height: 1.4;
    max-width: 450px;
    margin: 0;
    padding: 0;
    letter-spacing: -0.02em;
}



/* -------------------------------------
   Main Layout & Hero Section
   ------------------------------------- */

/* -------------------------------------
   Page Transition Overlay
   ------------------------------------- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg-light);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay.is-leaving {
    opacity: 1;
    pointer-events: auto;
}

.page-transition-overlay.is-entering {
    opacity: 1;
    pointer-events: auto;
}

.main-content {
    position: relative;
    width: 100%;
}

/* Hero Section Wrapper */
.hero-section {
    position: relative;
    /* Viewport-aware containment */
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
    width: 100%;
    padding: var(--layout-margin);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Contains background */
}

/* Full Hero Grid Background */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('design-resources/images/background grid.png');

    /* --- NEW ANIMATED RULES --- */
    background-size: 800px;
    /* Changed from cover to a strict size */
    background-repeat: repeat;
    /* Changed from no-repeat so it tiles endlessly */
    animation: slowPan 100s linear infinite;
    /* Applies the slow drift */

    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* Ensure the animation logic is present (if you removed it from the About section) */
@keyframes slowPan {
    0% {
        background-position: 0px 0px;
    }

    100% {
        background-position: 800px 800px;
    }
}

/* -------------------------------------
   Nav Bar (Fixed over Hero)
   ------------------------------------- */
.hero-nav {
    position: fixed;
    top: var(--layout-margin);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - (2 * var(--layout-margin)));
    max-width: 1820px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: var(--color-bg-light);
    mix-blend-mode: difference;

    /* Hidden on load */
    opacity: 0;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav Reveal Sequence */
.hero-nav.nav-reveal {
    opacity: 1;
}


.nav-logo .logo-svg {
    width: clamp(40px, 5vw, 50px);
    height: auto;
    display: block;
    filter: brightness(0) invert(92%) sepia(5%) saturate(415%) hue-rotate(334deg) brightness(96%) contrast(92%);
}

/* Explicit menu icon hidden on desktop */
.mobile-menu-icon {
    display: none;
    filter: brightness(0) invert(92%) sepia(5%) saturate(415%) hue-rotate(334deg) brightness(96%) contrast(92%);
}

.nav-links {
    display: flex;
    gap: var(--space-20);
}

.nav-link {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-bg-dark);
    text-decoration: none;
    position: relative;
    color: var(--color-bg-light);
    letter-spacing: normal;
}

/* Subtle line hover for nav links */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    /* Matches text color */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* -------------------------------------
   Hero Content Layout
   ------------------------------------- */
.hero-content {
    position: relative;
    z-index: 10;
    flex-grow: 1;
    /* Allow to fill hero-section */
    width: 100%;
    max-width: 1820px;
    /* Master 1920 less 100px total layout margin */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    /* Structured grid for viewport compression */
    /* top space prioritizes desktop offset but compresses; then content row; then flexible bottom space */
    grid-template-rows: minmax(clamp(100px, 15vh, 200px), 1fr) auto minmax(min-content, 2fr);
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
}

/* Left Vertical Indicator */
.vertical-indicator {
    position: fixed;
    /* Margin from the absolute left of the screen */
    left: var(--layout-margin);
    /* Vertically center relative to viewport height */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 50;

    /* Hidden initially */
    opacity: 0;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Final Reveal Step */
.vertical-indicator.reveal-final {
    opacity: 1;
}

/* Central Composition Wrapper */
.hero-main-composition {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    /* Scale down fluidly while capping at master spec */
    width: min(977px, 60vw);
    margin: 0 auto;
}

/* Headline Composition */
/* The headline exists as a structural block spreading full width of composition */
.hero-headline-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.headline-custom-i {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Eliminate extra SVG margin */
    line-height: 0;
    margin-right: 0px;
    /* Flush against text */

    /* Hidden initially */
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step 1 Reveal */
.hero-headline-container.reveal-step-1 .headline-custom-i {
    opacity: 1;
    transform: translateX(0);
}

.custom-i-svg {
    height: clamp(6.5rem, 15.2vw, 18.25rem);
    /* Scaled precisely relative to 10rem cap height */
    width: auto;
    display: block;
}

.headline-text-stack {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    /* Tie container to text content width so the line scales proportionally */
    width: max-content;
    max-width: 100%;
}

/* Initial Hidden States for text stack */
.headline-text-stack .hero-display {
    opacity: 0;
    transform: translateX(-10px);
    /* Clean left-to-right subtle intro */
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Precise spacing between nterface / red line / dentity. */
.headline-text-stack .hero-display:first-child {
    margin-bottom: 5px;
    /* Small delay so 'I' leads slightly before 'nterface' */
    transition-delay: 0.1s;
}

/* Step 1 Reveal only "nterface" */
.hero-headline-container.reveal-step-1 .headline-text-stack .hero-display:first-child {
    opacity: 1;
    transform: translateX(0);
}

.headline-text-stack .hero-display:last-child {
    margin-top: 5px;
}

/* Step 3 Reveal "dentity." */
.hero-headline-container.reveal-step-3 .headline-text-stack .hero-display:last-child {
    opacity: 1;
    transform: translateX(0);
}

/* The red architectural connecting line */
.headline-divider {
    height: clamp(2px, 0.25vw, 4px);
    width: 100%;
    background-color: var(--color-primary);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step 2 Reveal Red Line Left to Right */
.hero-headline-container.reveal-step-2 .headline-divider {
    transform: scaleX(1);
}

.headline-meets {
    margin-left: 10px;
    align-self: center;
    /* Hidden initially */
    opacity: 0;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step 2 Reveal "meets" just as line finishes */
.hero-headline-container.reveal-step-2 .headline-meets {
    opacity: 1;
    transition-delay: 0.36s;
    /* Wait for line to mostly finish extending */
}

.meets-text {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-bg-dark);
}

/* Supporting Paragraph & CTA Container */
.hero-supporting-group {
    /* Align perfectly to the right side of the shared wrapper */
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 4.6vh, 50px);
    /* 50px gap in master composition */
    width: 100%;
    min-width: 250px;
    /* Master desktop support + CTA block constraint */
    max-width: 430px;
    /* 70px target spacing away from the hero headline */
    margin-top: clamp(30px, 6.5vh, 70px);
    align-self: flex-end;
}

.supporting-text {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-bg-dark);
    /* Prevent flash before JS splits into spans */
    opacity: 0;
    letter-spacing: normal;
}


/* CTA Button Motif */
.cta-container {
    position: relative;
    width: 100%;

    /* Hidden initially */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Final Reveal Step */
.cta-container.reveal-final {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 2.5rem;
    background-color: var(--color-primary);
    color: #E6E1DD;
    text-decoration: none;
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    letter-spacing: normal;
    text-transform: uppercase;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid transparent;
    /* Smooth border transition init */
    line-height: 1.4;
}

.cta-button:hover {
    background-color: #E6E1DD;
    border-color: #E6E1DD;
}

.cta-icon {
    width: clamp(16px, 1.25vw, 24px);
    height: clamp(16px, 1.25vw, 24px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Split Text Hover Structural Logic */
.cta-text-wrapper {
    position: relative;
    display: flex;
    overflow: hidden;
    /* Cops vertical translating text exactly at font bounds */
}

.cta-text-layer {
    display: flex;
    flex-wrap: nowrap;
}

.cta-text-layer.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    color: #1A1A1A;
    /* Invert text to dark on physical hover */
}

.cta-text-layer span {
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-text-layer.hover-text span {
    transform: translateY(110%);
    /* Start hidden below */
}

/* Stagger transition delays for cinematic segmented feel */
.cta-text-layer span:nth-child(1) {
    transition-delay: 0.00s;
}

.cta-text-layer span:nth-child(2) {
    transition-delay: 0.04s;
}

.cta-text-layer span:nth-child(3) {
    transition-delay: 0.08s;
}

.cta-text-layer span:nth-child(4) {
    transition-delay: 0.12s;
}

/* Trigger the upward sweep on button hover */
.cta-button:hover .cta-text-layer.default-text span {
    transform: translateY(-110%);
}

.cta-button:hover .cta-text-layer.hover-text span {
    transform: translateY(0);
}

/* Subtle, controlled nudge of the arrow on hover, invert to match new #1A1A1A text */
.cta-button:hover .cta-icon {
    transform: translateX(4px);
    filter: brightness(0);
    /* Black arrow */
}

/* Bottom Left Badge */
.hero-bottom-badge {
    position: fixed;
    /* Force to exactly 50px offset from the bottom/left edge */
    bottom: var(--layout-margin);
    left: var(--layout-margin);
    width: clamp(70px, 7.81vw, 150px);
    /* Slightly reduced from 197px target */
    aspect-ratio: 1/1;
    z-index: 99999;
    /* maintain fix over dragging pills (was previously 50, but needed stacking context fix) */

    /* Hidden initially */
    opacity: 0;
    transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1);

    display: grid;
    place-items: center;
    pointer-events: none;
}

/* Final Reveal Step */
.hero-bottom-badge.reveal-final {
    opacity: 1;
}

/* Bottom Center Socials */
.hero-socials {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    justify-content: center;
    gap: var(--space-20);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: difference;
}

.hero-socials.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.social-link {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    font-family: var(--font-family);
    letter-spacing: normal;
    color: var(--color-bg-light);
    text-decoration: none;
    text-transform: lowercase;
    line-height: 1.4;
    transition: color 0.3s ease;
    position: relative;
}

.social-link:hover {
    color: rgba(230, 225, 221, 0.6);
}

.social-link::before {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: var(--color-bg-light);
    color: var(--color-bg-dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 2px;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    text-transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.social-link:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-link[href*="behance"]::before {
    content: "Behance";
}

.social-link[href*="dribbble"]::before {
    content: "Dribbble";
}

.social-link[href*="linkedin"]::before {
    content: "LinkedIn";
}

/* -------------------------------------
   Responsive Adjustments
   ------------------------------------- */

@media (max-width: 992px) {
    .vertical-indicator {
        display: none;
        /* Hide architectural lines on smaller screens to reduce clutter */
    }

    .hero-main-composition {
        /* Decrease top margin for 992px */
        margin-top: clamp(60px, 12vh, 100px);
    }

    .hero-supporting-group br {
        display: none;
        /* Let text flow naturally */
    }
}

@media (max-width: 768px) {
    .headline-text-stack {
        /* Relax the absolute max constraint for tablet reading */
        max-width: 100%;
        width: max-content;
        /* Allow to fill remaining space next to "I" */
        padding-right: 0;
    }

    .hero-main-composition {
        /* Relax mobile constraint but retain structure */
        max-width: 500px;
        margin: auto;
        /* Maintain narrowed tablet proportion */
        width: clamp(280px, 85vw, 500px);
        display: flex;
        flex-direction: column;
        gap: 40px;
        /* Wider gap for tablet */
    }

    .nav-links {
        display: none;
        /* Usually hidden behind a hamburger on mobile */
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero-socials {
        display: none;
        /* Hide socials per spec */
    }

    .cta-button {
        padding: 1.25rem 1.75rem;
        font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
        text-align: center;
        justify-content: center;
        gap: 15px;
        /* Add gap between text and arrow if centered */
    }
}

/* -------------------------------------
   Master Mobile Composition Frame constraints
   ------------------------------------- */
@media (max-width: 480px) {

    /* Strict Mobile Top Bar Overrides */
    .hero-nav {
        /* Override clamp fluidity to strictly enforce 20px top/sides from mobile reference */
        top: 20px;
        width: calc(100% - 40px);
        align-items: center;
    }

    .mobile-menu-icon {
        display: block;
        /* Exact pixel rule per mobile spec */
        width: 50px;
        height: auto;
    }

    .hero-section {
        /* Mobile Viewport height override for native app feel */
        height: 100dvh;
        min-height: 100dvh;

        /* Enforce absolute 20px outer margin frame designed on 390px wide */
        padding: 20px;

        /* Justify content down elegantly so it sits well within 844px bounds */
        justify-content: center;
    }

    .hero-main-composition {
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 50px;
        width: 100%;
        max-width: none;
        position: relative;
    }

    .hero-supporting-group {
        /* Rebox this wrapper to act as an explicit 250px right-aligned content group */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 280px;
        min-width: 0;
        align-self: flex-end;
        /* Right-align within the parent */
        gap: 20px;
        /* Internal spacing between text and CTA */
        margin-top: 0;
        padding-left: 0;
    }

    .supporting-text {
        font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
        font-weight: 500;
        font-style: normal;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .cta-container {
        /* Managed by hero-supporting-group gap, reset margins */
        margin-top: 0;
        width: 100%;
        /* Fill the 250px parent */
    }

    .cta-button {
        padding: 1rem 1.25rem;
        font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
        font-style: normal;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: normal;
        text-transform: uppercase;
        width: 100%;
    }

    .hero-bottom-badge {
        /* Explicit 20px anchors for the fixed elements inside the mobile frame */
        bottom: 20px;
        left: 20px;
        position: fixed;
        z-index: 99999;
    }
}

/* -------------------------------------
   Mission & Situation Section
   ------------------------------------- */

/* -------------------------------------
   Mission & Situation Section (V2 Editorial)
   ------------------------------------- */

.mission-v2-section {
    position: relative;
    width: 100%;
    background-color: var(--color-bg-light);
    padding: 100px 0;
    box-sizing: border-box;
}


/* Segmented rules row — shared pattern used for mission, process, works, FAQ */
.mission-rules-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: var(--space-20);
    /* Applies your 50px-to-30px fluid vertical gap */
    padding: 0 var(--layout-margin);
    /* Aligns the line edges to your global layout grid */
    box-sizing: border-box;
}

.mission-rule--full {
    flex: 1;
    height: 1px;
    background-color: var(--color-bg-dark);
}


.mission-v2-container {
    width: 100%;
    max-width: 1820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 80px;
    /* Controls spacing between the top mission text and the grid below */
    padding: 0 var(--layout-margin);
    /* Standardized padding */
    box-sizing: border-box;
}

/* NEW: Pushes the mission block to the right side seamlessly */
.mission-top-content-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
    /* Optical alignment to the grid */
}

.mission-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    /* Removed the hardcoded margin-left: 51.5% which was breaking the layout */
}

.mission-bottom-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Changed from flex-end to align with grid */
    align-self: stretch;
    gap: 30px;
    width: 100%;
}

.mission-situation-wrapper {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: var(--space-20);
    width: 100%;
    /* Removed the margin-left: 19.2% which was squishing the grid */
}

.mission-situation-heading {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}


.mission-heading-editorial {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    margin: 0;
    color: var(--color-bg-dark);
}

.mission-body {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-bg-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Pain Points Grid - Kept as regular grid for internal layout of cards */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 20px;
}

.pain-card {
    height: 60px;
    background-color: var(--color-bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.25s ease;
    position: relative;
}

/* row 3: Cards should follow the grid without manual positioning in v3 */
.pain-card[data-id="7"],
.pain-card[data-id="8"] {
    grid-column: auto;
}

.pain-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    flex: 1;
    min-width: 0;
}

.pain-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    background-color: var(--color-primary);
    border-radius: 50%;
    transition: background-color 0.25s ease;
}

.pain-label {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    font-weight: 500;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Pain action area — contains BOTH icons stacked absolutely */
.pain-action {
    width: 60px;
    flex-shrink: 0;
    height: 100%;
    background-color: var(--color-primary);
    position: relative;
    /* anchor for absolute children */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Both icons: always rendered, layered, animated */
.pain-icon-plus,
.pain-icon-minus {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    transition:
        opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.pain-icon-plus svg,
.pain-icon-minus svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Default — plus visible, minus hidden behind */
.pain-icon-plus {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.pain-icon-minus {
    opacity: 0;
    transform: rotate(-45deg) scale(0.6);
}

/* === SELECTED STATE === */
.pain-card.selected {
    background-color: var(--color-primary);
}

.pain-card.selected .pain-dot {
    background-color: var(--color-text-light);
}

.pain-card.selected .pain-label {
    color: var(--color-text-light);
}

/* Plus exits with a clockwise quarter-spin + fade */
.pain-card.selected .pain-icon-plus {
    opacity: 0;
    transform: rotate(45deg) scale(0.6);
}

/* Minus enters from counter-clockwise, snaps to rest */
.pain-card.selected .pain-icon-minus {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Action box turns black when selected */
.pain-card.selected .pain-action {
    background-color: var(--color-bg-dark);
}

/* Minus SVG fill also switches to dark */
.pain-card.selected .pain-icon-minus svg rect {
    fill: var(--color-bg-dark);
}

/* Hover (unselected) — very subtle darkening */
.pain-card:not(.selected):hover {
    background-color: #272727;
}

/* Form Area — Nested Flexbox layout per Figma */
.mission-form-area {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    max-width: 500px;
}

.mission-input-group {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0px 15px;
    border-bottom: 1px solid var(--color-bg-dark);
}

.mission-input-label {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 700;
    letter-spacing: normal;
    color: var(--color-bg-dark);
    display: block;
    line-height: 1.3;
}

.mission-email-field {
    background: transparent;
    border: none;
    width: 100%;
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    color: var(--color-muted);
    outline: none;
    padding: 0;
    line-height: 1.3;
    letter-spacing: normal;
}

.mission-form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.mission-form-note {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-bg-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.mission-submit-trigger {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    padding: 20px 40px;
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    width: fit-content;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    line-height: 1.4;
    letter-spacing: normal;
}

.mission-submit-trigger:hover {
    background-color: var(--color-bg-dark);
}

/* Responsive Overrides */
@media (max-width: 992px) {

    /*     .composition-center,
    .composition-right */


     .mission-block, .mission-situation-wrapper {
        margin-left: 0;
        width: 100%;
    }

    /* Switch pain grid to 2 columns on tablet */
    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset row-3 custom column positioning for 2-col layout */
    .pain-card[data-id="4"],
    .pain-card[data-id="5"],
    .pain-card[data-id="6"],
    .pain-card[data-id="7"],
    .pain-card[data-id="8"] {
        margin-top: 0;
        grid-column: auto;
    }

    /* Form area stacks on tablet */
    .mission-form-area {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    /* Single column on mobile */
    .pain-points-grid {
        grid-template-columns: 1fr;
    }

    .pain-card[data-id="4"],
    .pain-card[data-id="5"],
    .pain-card[data-id="6"],
    .pain-card[data-id="7"],
    .pain-card[data-id="8"] {
        margin-top: 0;
        grid-column: auto;
    }
}

/* -------------------------------------
   Scroll Reveal Animations
   ------------------------------------- */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Base reduced motion rule (redundant but safe) */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ═══════════════════════════════════════════════
   PROCESS SECTION (Desktop 12-Column Grid)
═══════════════════════════════════════════════ */

.process-section {
    position: relative;
    padding-top: calc(var(--layout-margin) + clamp(40px, 5vw, 50px) + 20px);
    padding-right: 0;
    padding-bottom: 100px;
    padding-left: 0;
    /* Standardized padding dynamically adjusted for nav */
    background-color: var(--color-bg-light);
    overflow: hidden;
    min-height: 100vh;
    /* Enforce screen height so the bottom edge sits flush */
    z-index: 1;
    /* Keep it below the Works section */
}

.process-inner {
    padding: 0 var(--layout-margin);
}

/* The Master 12-Column Track */
.process-content-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 50px;
    width: 100%;
    align-items: start;
}

/* Left Column */
.process-header-col {
    grid-column: 1 / span 3;
    margin-top: 0;
    /* Takes up the first 4 columns safely */
}

.process-cluster-right {
    grid-column: 7 / span 6;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
}

.process-heading-v2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    margin: 0;
    color: var(--color-bg-dark);
    white-space: nowrap;
    line-height: 0.85;
}

/* Middle Column (The Steps) */
.process-steps-col {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 0;
}

.process-step-v2 {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: var(--space-10);
    /* Initial opacity is managed by GSAP via script.js */
}


.process-step-v2__num {
    grid-column: 1;
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 700;
    margin: 0;
    width: max-content;
    flex-shrink: 0;
    line-height: 1.4;
    letter-spacing: normal;
}

.process-step-v2__title {
    grid-column: 2;
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--color-bg-dark);
    margin: 0;
}

.process-step-v2__content {
    grid-column: 2;
    overflow: hidden;
    /* Critical for the collapse animation */
}


/* Right Column (The Text) */
.process-step-v2__content .small-text {
    color: var(--color-bg-dark);
    font-weight: 500;
    line-height: 1.2;
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    margin: 20px 0 30px 0;
    /* MOVED margins to the inner text */
    max-width: 450px;
    letter-spacing: -0.02em;
}


/* Simplified Responsive Rule */
@media (max-width: 1024px) {
    .process-content-row {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .process-cluster-right {
        grid-column: 1 / -1;
        flex-direction: column;
        display: flex;
        gap: 40px;
        transform: translateY(0);
        width: 100%;
    }

    .process-header-col,
    .process-steps-col {
        width: 100%;
        max-width: 100%;
    }

    .process-heading-v2 {
        white-space: normal;
    }
}






/* ═══════════════════════════════════════════════
   WORKS SECTION (Dark Theme & Staggered Track)
═══════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════
   WORKS SECTION (Static Layout)
═══════════════════════════════════════════════ */

.works-section {
    height: 100vh;
    width: 100%;
    background-color: var(--color-bg-dark);
    /* Dark background */
    color: var(--color-bg-light);
    /* Light text */
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.works-stomp-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 50px;
    box-sizing: border-box;
    will-change: transform;
    transform-origin: center top;
}

.works-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.works-header {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 var(--layout-margin);
    box-sizing: border-box;
}

/* Force the text inside to be light against the new dark background */
.works-featured-text,
.works-projects-text,
.works-link-title,
.works-link-desc {
    color: var(--color-bg-light);
}

.works-featured-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 80px);
    line-height: 0.8;
    letter-spacing: -0.04em;
    margin: 0;
}

/* Ensure the image row doesn't wrap so we can scroll it horizontally */
.works-images-row {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: center;
    gap: 10px;
    padding-left: 50px;
}

.works-thumbs-row picture {
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}

.works-img {
    height: 63px;
    object-fit: cover;
    background-color: transparent;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), border-radius 0.6s ease;
    cursor: auto;
    position: relative;
    z-index: 1;
}

.works-img:hover {
    transform: scale(1.15) rotate(-2deg);
    border-radius: 8px;
    z-index: 2;
}

.works-img-1,
.works-img-4 {
    width: 100px;
}

.works-img-2,
.works-img-3 {
    width: 101px;
}

.works-projects-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 80px);
    line-height: 0.8;
    letter-spacing: -0.04em;
    margin: 0;
}

/* Central Preview Layer CSS */
.works-preview-container {
    width: 100%;
    height: calc(100vh - 280px);
    max-height: 60vh;
    margin-top: 50px;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.works-preview-container.is-active {
    opacity: 1;
    transform: scale(1.02);
    /* Slight pop effect */
}

.works-preview-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.works-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-bg-light);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.works-link-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 15px;
    flex: 1;
    text-align: center;
    padding: 50px 20px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.works-link-block:hover {
    opacity: 0.7;
}

.works-link-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 80px);
    line-height: 1.25;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    margin: 0;
}

.works-link-desc {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    text-transform: lowercase;
    margin: 0;
}

.works-divider {
    width: 1px;
    height: 240px;
    background-color: var(--color-bg-light);
}

@media (max-width: 992px) {
    .works-header {
        padding: 0;
    }

    .works-images-row {
        padding-left: 0;
    }

    .works-footer {
        flex-direction: column;
    }

    .works-divider {
        width: 100%;
        height: 1px;
    }
}

/* ═══════════════════════════════════════════════
   WORKS SECTION CUSTOM CURSOR
═══════════════════════════════════════════════ */
.works-custom-cursor {
    position: fixed;
    top: -999px;
    left: -999px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    background-color: var(--color-brand-primary);
    color: var(--color-bg-light);
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 99999;
    white-space: nowrap;
    text-align: center;
    transition: opacity 0.25s ease;
}

.works-custom-cursor.is-visible {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════ */

.faq-section {
    padding: var(--space-100) 0;
    background-color: var(--color-bg-light);
    position: relative;
    width: 100%;
}

/* Shared rules row layout for consistency */
.section-rules-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
    margin-bottom: var(--space-20);
    padding: 0 var(--layout-margin);
    box-sizing: border-box;
}

.section-rule--full {
    flex: 1;
    /* This tells the line to stretch fully across the available space */
    height: 1px;
    background-color: var(--color-bg-dark);
}

/* --- FAQ Inner Grid Layout --- */
.faq-inner {
    display: grid;
    grid-template-columns: minmax(200px, 350px) 1fr;
    gap: 80px;
    align-items: start;
    max-width: 1820px;
    margin: 0 auto;
    padding: 0 var(--layout-margin);
    box-sizing: border-box;
}

.faq-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.faq-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    color: var(--color-bg-dark);
    margin: 0;
}

/* --- FAQ Accordion List --- */
.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-muted);
}

.faq-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--color-muted);
    overflow: hidden;
}

.faq-question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease;
    gap: 20px;
}



.faq-question {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-bg-dark);
    flex: 1;
    letter-spacing: -0.02em;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-dark);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Rotate icon on active state */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Accordion Answer Styling */
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.4s ease;
}

.faq-item.active .faq-answer {
    opacity: 1;
    max-height: 300px;
}

.faq-answer-inner {
    padding-bottom: 28px;
    padding-right: 15%;
}

.faq-answer-inner p {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-muted);
    margin: 0;
    letter-spacing: -0.02em;
}

/* --- Bottom Portrait with Line --- */
.faq-bottom-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-20);
    margin-top: var(--space-100);
    padding: 20px;
    box-sizing: border-box;
    max-width: 1820px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.faq-portrait-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.faq-portrait-line {
    flex: 1;
    height: 1px;
    background-color: var(--color-muted);
    margin-left: 0;
}


/* --- FAQ Responsive Adjustments --- */
@media (max-width: 1200px) {
    .faq-inner {
        grid-template-columns: minmax(150px, 250px) 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .faq-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }



    .faq-bottom-portrait {
        justify-content: center;
    }

    .faq-portrait-wrapper {
        width: 80px;
        height: 80px;
    }

    .faq-portrait-line {
        flex: 0 1 200px;
    }
}


/* ═══════════════════════════════════════════════
   LAST CTA SECTION
═══════════════════════════════════════════════ */

.last-cta-section {
    padding: 0 0 150px 0;
    background-color: var(--color-bg-light);
    width: 100%;
    display: flex;
    justify-content: center;
}

.last-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--layout-margin);
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 50px;
    align-items: start;
}

.last-cta-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 300px;
}

.last-cta-headline {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-bg-dark);
    /* Switched back to dark text to match Figma */
    margin: 0;
    text-transform: none;
}

.last-cta-button-container {
    position: relative;
    display: inline-block;
    width: max-content;
}

.last-cta-override {
    width: max-content;
    /* Prevents the button from stretching across the whole column */
    gap: 30px;
    /* Ensures breathing room between the text and the arrow */
}


.last-cta-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 400px;
}

.last-cta-subtitle {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--color-bg-dark);
    margin: 0;
    text-transform: uppercase;
    line-height: 1.4;
}

.last-cta-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.last-cta-steps li {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-bg-dark);
    display: flex;
    gap: 10px;
    letter-spacing: -0.02em;
}

.last-cta-steps li span {
    color: var(--color-bg-dark);
    font-weight: 700;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .last-cta-inner {
        grid-template-columns: 1fr;
        /* Stacks to single column on tablet */
        gap: 50px;
    }

    .last-cta-left {
        gap: 20px;
    }


}

@media (max-width: 768px) {

    .last-cta-button-container {
        width: 100%;
        justify-content: center;
    }
}



/* --- About Page Hero Styles --- */
.about-page {
    background-color: var(--color-bg-dark);
}

/* Hide index-page fixed elements on about page */
.about-page .hero-bottom-badge,
.about-page .vertical-indicator {
    display: none;
}

/* Force nav to white on about page dark hero */
.about-page .nav-link {
    color: var(--color-text-light);
}

.about-page .nav-link::after {
    background-color: var(--color-text-light);
}

.about-page .logo-svg {
    filter: brightness(0) invert(1);
}

.about-page .mobile-menu-icon {
    filter: brightness(0) invert(92%) sepia(5%) saturate(415%) hue-rotate(334deg) brightness(96%) contrast(92%);
}

.about-master-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    height: 100vh;
    overflow: hidden;
}

/* --- New About Hero --- */
.about-hero-new {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--color-bg-dark);
    padding: calc(var(--layout-margin) + 40px + 20px) var(--space-20) var(--space-100);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Force the About hero and WEB DESIGNER header offscreen until we explicitly reveal them */
.about-page .about-hero-new,
.about-page .hero-top-group {
    display: none !important;
    opacity: 0 !important;
    background-color: transparent !important;
}

.about-page .about-hero-new.about-hero-active {
    display: flex !important;
    opacity: 1 !important;
    background-color: var(--color-bg-dark) !important;
}

.about-page .hero-top-group.about-hero-active {
    display: flex !important;
    opacity: 1 !important;
}

/* --- Entrance Animation Keyframes --- */
@keyframes swissFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base class we will apply to elements we want to animate */
.hero-entrance {
    opacity: 0;
    /* Hide initially */
    animation: swissFadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Stagger the timing so they come in one after another */
.entrance-delay-1 {
    animation-delay: 0.6s;
}

/* Waits for the red transition to open */
.entrance-delay-2 {
    animation-delay: 0.8s;
}

.entrance-delay-3 {
    animation-delay: 1.0s;
}


/* Inject the Panning Grid */
.about-hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('design-resources/images/background grid.png');
    background-size: 800px;
    /* Sets the scale of the grid boxes */
    background-repeat: repeat;
    opacity: 0.04;
    /* Incredibly subtle so it doesn't fight the typography */
    z-index: 0;
    pointer-events: none;
    filter: invert(1);
    opacity: 0.5;
    animation: slowPan 100s linear infinite;
}

/* The Animation Logic */
@keyframes slowPan {
    0% {
        background-position: 0px 0px;
    }

    /* Moves exactly the width of the background-size (800px) to create a seamless infinite loop */
    100% {
        background-position: 800px 800px;
    }
}

.hero-top-rule {
    width: 100%;
    height: 1px;
    background-color: rgba(230, 225, 221, 0.5);
    margin-bottom: 20px;
}

.hero-top-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-huge-title-svg {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.hero-lower-content {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: end;
    gap: 50px;
    width: 100%;
    max-width: 1820px;
    margin: 0 auto;
    padding-right: clamp(20px, 5vw, 50px);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.hero-image-container {
    width: clamp(150px, 30vw, 200px);
    margin: 0;
    /* Removed the auto margin */
    transform: none;
    /* Removed the transform */
}

.hero-svg-img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-bio-container {
    max-width: clamp(250px, 40vw, 440px);
    margin: 0;
    /* Removed the auto margins */
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

.hero-bio-text {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-light);
    margin: 0;
    letter-spacing: normal;
}

.about-bio-cta-wrapper {
    width: 100%;
}


/* On mobile, ensure it stretches the full width of the container */

/* --- Responsive Overrides for About Layout --- */
@media (max-width: 992px) {
    .hero-lower-content {
        grid-template-columns: 1fr;
        gap: var(--space-100);
    }

    .hero-image-container {
        margin-left: 0;
        width: clamp(200px, 40vw, 319px);
        transform: none;
    }

    .hero-bio-container {
        margin: 0;
        width: 100%;
        max-width: 440px;
    }
}

@media (max-width: 768px) {
    .about-hero-new {
        padding: 90px 20px 20px 20px;
        min-height: 100dvh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-lower-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        padding-right: 0;
    }

    .hero-image-container {
        width: 100%;
        max-width: clamp(150px, 60vw, 200px);
        margin: 0;
    }

    .hero-bio-container {
        width: 100%;
        max-width: 400px;
        margin: 0;
        gap: 20px;
    }

    .hero-bio-text {
        font-family: var(--font-family, "Helvetica Neue", sans-serif);
        font-size: 13px;
        line-height: 1.2;
        letter-spacing: -0.02em;
        margin: 0;
        width: 100%;
    }

    .about-bio-cta-wrapper {
        width: 100%;
    }
}

/* --- About Footer Sections --- */
.about-footer-wrapper {
    margin-top: 100vh;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    background-color: var(--color-bg-light);
    position: relative;
    z-index: 10;
    overflow-x: hidden;
}

/* --- About Introduction Section --- */
.about-introduction-section {
    background-color: #E6E1DD;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.introduction-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-100);
}

.introduction-label {
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-bg-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.introduction-statement {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-bg-dark);
    margin: 0;
    text-align: left;
    max-width: 1100px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .about-introduction-section {
        padding: var(--space-100) var(--layout-margin);
    }

    .introduction-container {
        gap: var(--space-20);
    }

    .introduction-statement {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        letter-spacing: -0.02em;
    }

    .introduction-statement br {
        display: none;
    }
}

/* --- Social Accounts Section --- */
.social-section {
    background-color: #E6E1DD;
    padding: var(--space-20) var(--layout-margin) calc(var(--space-20) + 150px);
    clear: both;
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.social-wordmark {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(95%, 1480px);
    height: auto;
    opacity: 0.74;
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

.social-top-rule {
    width: 100%;
    height: 1px;
    background-color: #1A1A1A;
}

/* Row layout: left label | right social cards */
.social-layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--space-20) 0 0;
    gap: clamp(24px, 3.2vw, 44px);
    position: relative;
    z-index: 1;
}

.social-note {
    color: #1a1a1a;
    text-transform: lowercase;
    font-size: clamp(13px, 0.68rem + 0.28vw, 15px);
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
    width: 132px;
    padding-top: 0;
    letter-spacing: normal;
}

/* Right column: the two social card stacks */
.social-container {
    display: flex;
    flex-direction: row;
    gap: 14px;
    flex: 1;
    max-width: 940px;
    overflow: visible;
    margin-top: 0;
    align-self: center;
}

.social-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(100%, 454px);
    flex: 1;
}

.social-image-area {
    width: 100%;
    line-height: 0;
}

.social-image-wrapper {
    width: 100%;
    display: block;
    line-height: 0;
}

.social-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.social-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.social-label {
    font-family: var(--font-family);
    font-size: clamp(13px, 1.3vw, 1.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #1A1A1A;
    margin: 0;
}

.social-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1A1A1A;
    transition: color 0.25s ease;
}

.social-action-text {
    font-size: clamp(0.88rem, 0.95vw, 0.98rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.social-action-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #9E1915;
    background-color: #9E1915;
    color: #E6E1DD;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.social-action-link:hover {
    color: #9E1915;
}

.social-action-link:hover .social-action-btn {
    background-color: transparent;
    color: #9E1915;
}

.social-label-line {
    width: 100%;
    height: 1px;
    background-color: #1A1A1A;
}

@media (max-width: 992px) {
    .social-layout {
        gap: 24px;
    }

    .social-container {
        max-width: 100%;
        gap: 16px;
        margin-top: 0;
    }

}



@media (max-width: 768px) {
    .social-layout {
        padding-right: 0;
        gap: 20px;
    }

    .social-note {
        width: 90px;
        font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
        font-weight: 700;
    }

    .social-container {
        flex-direction: column;
        margin-top: 0;
    }

    .social-label {
        font-size: clamp(1rem, 2.2vw, 1.25rem);
    }
}

@media (max-width: 480px) {
    .social-section {
        padding-bottom: calc(var(--space-20) + 100px);
        overflow: hidden;
    }

    .social-wordmark {
        bottom: 42px;
        width: 132%;
    }

    .social-layout {
        flex-direction: column;
        gap: var(--space-20);
    }

    .social-note {
        width: auto;
    }

    .social-meta-row {
        gap: 12px;
    }

    .social-action-link {
        gap: 8px;
    }

    .social-action-btn {
        width: 28px;
        height: 28px;
    }
}

/* --- Contact Section --- */
.about-contact-section {
    background-color: #E6E1DD;
    padding: 20px var(--layout-margin) 24px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    scroll-margin-top: 120px;
}

.about-contact-actions {
    width: 100%;
}

/* On About page, the portrait row should span full width */
.about-contact-section .faq-bottom-portrait {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.contact-grid {
    max-width: 1820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.32fr) minmax(0, 1fr);
    column-gap: clamp(40px, 8vw, 140px);
    align-items: start;
}

.contact-heading {
    grid-column: 1 / -1;
    color: #1a1a1a;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    margin: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-bg-dark);
}

.contact-form {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
}

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

.form-field label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-bg-dark);
    text-transform: uppercase;
}

.form-field input,
.form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.6);
    padding: 10px 0;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-bg-dark);
    outline: none;
    transition: border-bottom-color 0.3s ease;
}

.form-field textarea {
    min-height: 80px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-muted);
    font-weight: 400;
}

.form-field input:focus,
.form-field textarea:focus {
    border-bottom-color: var(--color-primary);
}


/* Keep existing dropdown logic, only reskin to new design */
.custom-select__trigger {
    border-bottom: 1px solid rgba(26, 26, 26, 0.6);
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 400;
}

.custom-select__trigger:focus,
.custom-select.is-open .custom-select__trigger {
    border-bottom-color: var(--color-primary);
}

.form-submit-container {
    position: relative;
    margin-top: 10px;
    padding-top: 20px;
    border-top: none;
    width: 100%;
}

/* Keep button interaction intact */
.form-submit-btn {
    position: relative;
    background: transparent;
    border: none;
    font-family: var(--font-family);
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    font-weight: 700;
    color: var(--color-bg-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 6px 0;
    text-transform: uppercase;
}

.form-submit-btn::after {
    content: "\2192";
    font-weight: 400;
}

.submit-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-bg-dark);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit-btn:hover .submit-underline {
    transform: scaleX(0);
    transform-origin: right;
}

.contact-form-success {
    display: none;
    margin: 8px 0 0;
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    line-height: 1.4;
    color: #1A1A1A;
    font-weight: 500;
    letter-spacing: normal;
}

.contact-form-success.is-visible {
    display: block;
}

.contact-form-error {
    display: none;
    margin: 8px 0 0;
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    line-height: 1.4;
    color: #9E1915;
    font-weight: 500;
    letter-spacing: normal;
}

.contact-form-error.is-visible {
    display: block;
}

.contact-email-display {
    max-width: 1820px;
    margin: 26px auto 0;
    font-size: clamp(2.5rem, 6.2vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--color-bg-dark);
    word-break: break-word;
    text-decoration: none;
    display: block;
}

/* Responsive Behaviour */
@media (max-width: 992px) {
    .about-contact-section {
        padding: 20px var(--layout-margin) 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-form {
        grid-column: 1;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .about-contact-section {
        padding: 20px var(--layout-margin) 20px;
    }

    .contact-heading {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        padding-bottom: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-field label {
        font-size: 0.8rem;
    }

    .form-field input,
    .form-field textarea,
    .custom-select__trigger {
        font-size: 0.95rem;
    }

}

/* -----------------------------------------------
   INTRODUCTION SECTION - MASKED TEXT REVEAL
   ----------------------------------------------- */
.introduction-statement {
    font-size: clamp(1.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-bg-dark);
    margin: 0;
    text-align: left;
    max-width: 1100px;
    box-sizing: border-box;
}

.word-text {
    /* Faded starting color, GSAP scrubs to solid */
    color: rgba(26, 26, 26, 0.15);
    transition: color 0.3s ease;
}

/* -----------------------------------------------
   CUSTOM BUDGET DROPDOWN
   ----------------------------------------------- */
.custom-select {
    position: relative;
    width: 100%;
}

/* --- Trigger Button (the visible "closed" field) --- */
.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-bg-dark);
    padding: var(--space-10) 0;
    font-family: var(--font-family);
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    font-weight: 400;
    color: var(--color-muted);
    cursor: pointer;
    text-align: left;
    transition: border-bottom-color 0.3s ease;
    outline: none;
    line-height: 1.4;
    letter-spacing: normal;
}

.custom-select__trigger:focus,
.custom-select.is-open .custom-select__trigger {
    border-bottom-color: var(--color-primary);
}

/* Contact section: keep budget line weight/color consistent with other inputs */
.about-contact-section .custom-select__trigger {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: rgba(26, 26, 26, 0.6);
}

.custom-select__value {
    flex: 1;
}

.custom-select__value.has-value {
    color: var(--color-bg-dark);
}

/* --- Arrow Icon --- */
.custom-select__arrow {
    flex-shrink: 0;
    margin-left: var(--space-10);
    color: var(--color-bg-dark);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.is-open .custom-select__arrow {
    transform: rotate(180deg);
}

/* --- Dropdown List --- */
.custom-select__list {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background-color: #E6E1DD;
    border: 1px solid var(--color-bg-dark);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;

    /* Hidden state */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.is-open .custom-select__list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Individual Options --- */
.custom-select__option {
    font-family: var(--font-family);
    font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
    font-weight: 500;
    font-weight: 400;
    color: var(--color-bg-dark);
    padding: 14px var(--space-20);
    cursor: pointer;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    transition: background-color 0.2s ease, color 0.2s ease;
    line-height: 1.4;
    letter-spacing: normal;
}

.custom-select__option:last-child {
    border-bottom: none;
}

.custom-select__option:hover {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.custom-select__option.is-selected {
    font-weight: 500;
}

/* -----------------------------------------------
   MOBILE FULLSCREEN MENU
   ----------------------------------------------- */
.mobile-fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #1A1A1A;
    color: var(--color-bg-light, #E6E1DD);
    z-index: 999999;
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-fullscreen-menu.is-active {
    clip-path: circle(150% at 50% 50%);
    pointer-events: auto;
}

.mobile-menu-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    box-sizing: border-box;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

.mobile-logo-link {
    display: block;
    width: clamp(40px, 5vw, 50px);
}

.mobile-logo-link .logo-svg {
    width: 100%;
    height: auto;
    display: block;
    /* Invert logo to beige/off-white color */
    filter: brightness(0) invert(92%) sepia(5%) saturate(415%) hue-rotate(334deg) brightness(96%) contrast(92%);
}

.mobile-menu-close {
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(230, 225, 221, 0.4);
    padding: 20px 0;
    text-decoration: none;
    color: var(--color-bg-light, #E6E1DD);
    font-family: var(--font-family, "Helvetica Neue", sans-serif);
    font-size: clamp(2rem, 8vw, 40px);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: lowercase;
}

.mobile-nav-link:first-child {
    border-top: 1px solid rgba(230, 225, 221, 0.4);
}

.mobile-nav-arrow {
    color: var(--color-bg-light, #E6E1DD);
}

.mobile-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}



.mobile-menu-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.mobile-social-circ {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--color-bg-light, #E6E1DD);
    color: var(--color-bg-light, #E6E1DD);
    text-decoration: none;
    font-family: var(--font-family, "Helvetica Neue", sans-serif);
    font-size: 14px;
    font-weight: 500;
    text-transform: lowercase;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-social-circ:hover {
    background-color: var(--color-bg-light, #E6E1DD);
    color: #1A1A1A;
}

@media (min-width: 769px) {
    .mobile-fullscreen-menu {
        display: none !important;
    }
}

/* -----------------------------------------------
   MOBILE WORKS SECTION — Figma node 1137:416
   ----------------------------------------------- */
@media (max-width: 768px) {
    .works-section {
        background-color: #1A1A1A !important;
        min-height: 100dvh;
        display: flex !important;
        flex-direction: column;
        box-sizing: border-box;
    }

    .works-stomp-wrapper {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 100dvh;
        justify-content: space-between;
        padding-top: 45px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .works-inner {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .works-header {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .works-featured-text {
        color: #E6E1DD !important;
        font-family: var(--font-family, 'Helvetica Neue', sans-serif);
        font-size: 40px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: -0.04em !important;
        margin: 0 !important;
    }

    .works-images-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 50px;
    }

    .works-images-row>*:not(.works-projects-text) {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    /* The 4 thumbnail images side by side */
    .works-img {
        width: 48px !important;
        height: 30px !important;
        object-fit: cover;
        display: inline-block;
    }

    /* Hide the desktop preview hover image */
    .works-preview-container {
        display: none !important;
    }

    .works-projects-text {
        color: E6E1DD !important;
        font-family: var(--font-family, 'Helvetica Neue', sans-serif);
        font-size: 40px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: -0.04em !important;
        text-align: center;
        margin: 0 !important;
    }

    /* Bottom footer: Behance & Dribble */
    .works-footer {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid #E6E1DD;
        padding: 30px 0;
        gap: 30px;
        box-sizing: border-box;
    }

    .works-link-block {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-decoration: none;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .works-link-title {
        color: #E6E1DD !important;
        font-family: var(--font-family, 'Helvetica Neue', sans-serif);
        font-size: 40px !important;
        font-weight: 800 !important;
        letter-spacing: -0.04em !important;
        text-transform: lowercase !important;
        text-align: center;
        margin: 0 !important;
        line-height: 1;
    }

    .works-link-desc {
        color: #E6E1DD !important;
        font-family: var(--font-family, 'Helvetica Neue', sans-serif);
        font-size: 13px;
        font-weight: 500;
        text-align: center;
        display: block;
    }

    .works-divider {
        width: 100%;
        height: 1px;
        background-color: #E6E1DD;
    }
}

/* -----------------------------------------------
   MOBILE PAIN CARDS / MISSION SECTION OVERFLOW FIX
   ----------------------------------------------- */
@media (max-width: 768px) {

    /* Prevent the whole mission section from overflowing */
    .mission-v2-section,
    .mission-v2-container,
    .mission-bottom-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Give the grid a consistent 20px side padding */
    .pain-points-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        gap: 12px !important;
    }

    /* Each card fills the padded width without escaping */
    .pain-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .pain-card-inner {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Prevent the label text from pushing the card wider */
    .pain-label {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
}

/* -----------------------------------------------
   MOBILE PROCESS SECTION SPACING
   ----------------------------------------------- */
@media (max-width: 768px) {
    .process-section {
        padding-top: calc(var(--layout-margin) + clamp(40px, 5vw, 50px) + 20px) !important;
    }

    .process-steps-col {
        gap: 40px;
    }
}



/* Responsive Sync Overrides */
@media (max-width: 1024px) {
    .process-content-row {
        display: flex;
        flex-direction: column;
        gap: 40px;
        /* Tighter gap for tablet */
    }

    .hero-bg-grid {
        background-size: cover;
        background-position: top center;
    }

}

@media (max-width: 768px) {
    .hero-content {
        grid-template-rows: 1fr auto 1fr !important;
    }
    .hero-main-composition {
        width: 100%;
        max-width: none;
    }

    .process-step-v2__title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        /* Smoother scaling for mobile */
    }

    /* Ensure the background texture acts purely as a visual layer, not a rigid grid */
    .hero-section {
        background-attachment: fixed;
    }
}

/* ═══════════════════════════════════════════════
   DIVIDER LINE ANIMATIONS (CSS FALLBACK)
═══════════════════════════════════════════════ */
/* Ensure all animated horizontal lines scale from the left edge */
.mission-rule--full,
.section-rule--full,
.faq-portrait-line {
    transform-origin: left center;
}

/* Ensure vertical lines scale from the top edge */
.works-divider {
    transform-origin: top center;
}
/* INLINED STYLES MERGED FROM HTML */

/* ═══════════════════════════════════════════════════
           CRITICAL CSS - HERO ANIMATIONS (INLINED)
           ═══════════════════════════════════════════════════ */
        :root {
            --color-primary: #A52422;
            --color-bg-light: #E6E1DD;
            --color-bg-dark: #1A1A1A;
            --color-text-light: #E6E1DD;
            --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            --layout-margin: clamp(20px, 4vw, 20px);
            --space-20: 20px;
            --color-muted: #8C8986;
        }

html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }

body {
            margin: 0;
            padding: 0;
            width: 100%;
            min-height: 100%;
            background-color: var(--color-bg-light);
            color: var(--color-bg-dark);
            font-family: var(--font-family);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

/* CRITICAL: Hero Text Animations - Reduced durations by 40% */
        .headline-custom-i {
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 0;
            margin-right: 0;
            opacity: 0;
            transform: translateX(-10px);
            transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
        }

.hero-display {
            font-size: clamp(3rem, 7vw, 10rem);
            font-weight: 800;
            line-height: 0.9;
            letter-spacing: -0.04em;
            color: var(--color-bg-dark);
            margin: 0;
            padding: 0;
            transform: translateX(-10px) translateY(-0.05em);
            opacity: 0;
            transition: opacity 0.48s cubic-bezier(0.4, 0, 0.2, 1), transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
        }

.hero-headline-container.reveal-step-1 .headline-text-stack .hero-display:first-child,
        .hero-headline-container.reveal-step-3 .headline-text-stack .hero-display:last-child {
            opacity: 1;
            transform: translateX(0);
        }

.hero-nav {
            position: fixed;
            top: var(--layout-margin);
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - (2 * var(--layout-margin)));
            max-width: 1820px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            color: var(--color-bg-light);
            mix-blend-mode: difference;
            opacity: 0;
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

.nav-link {
            font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
            font-weight: 400;
            line-height: 1.4;
            color: var(--color-bg-light);
            text-decoration: none;
            position: relative;
            letter-spacing: normal;
}

.hero-bg-grid {
            position: absolute;
            inset: 0;
            background-color: var(--color-bg-light);
            background-size: 800px;
            background-repeat: repeat;
            animation: slowPan 100s linear infinite;
            z-index: 0;
            pointer-events: none;
            opacity: 1;
        }

@keyframes slowPan {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: 800px 800px;
            }
        }

.hero-main-composition {
            grid-column: 1 / -1;
            grid-row: 2;
            display: flex;
            flex-direction: column;
            width: min(977px, 80vw);
            margin: 0 auto;
        }

.headline-custom-i {
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 0;
            margin-right: 0;
            opacity: 0;
            transform: translateX(-10px);
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

.hero-display {
            font-size: clamp(3rem, 7vw, 10rem);
            font-weight: 800;
            line-height: 0.9;
            letter-spacing: -0.04em;
            color: var(--color-bg-dark);
            margin: 0;
            padding: 0;
            transform: translateX(-10px) translateY(-0.05em);
            opacity: 0;
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

.headline-divider {
            height: clamp(2px, 0.25vw, 4px);
            width: 100%;
            background-color: var(--color-primary);
            transform-origin: left;
            transform: scaleX(0);
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

.headline-meets {
            margin-left: 10px;
            align-self: center;
            opacity: 0;
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

.hero-headline-container.reveal-step-2 .headline-meets {
            opacity: 1;
            transition-delay: 0.6s;
        }

.cta-container {
            position: relative;
            width: 100%;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

.cta-button {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 1.25rem 2.5rem;
            background-color: var(--color-primary);
            color: var(--color-text-light);
            text-decoration: none;
            font-size: clamp(13px, 0.6786rem + 0.3571vw, 15px);
            font-weight: 500;
            letter-spacing: normal;
            text-transform: uppercase;
            transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
            position: relative;
            z-index: 2;
            overflow: hidden;
            border: 1px solid transparent;
            line-height: 1.4;
}

@media (max-width: 768px) {
            .hero-content {
                grid-template-rows: 1fr auto 1fr !important;
            }
            .nav-links {
                display: none !important;
            }
        }

:root {
            --color-primary: #A52422;
            --color-bg-light: #E6E1DD;
            --color-bg-dark: #1A1A1A;
            --color-text-light: #E6E1DD;
            --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            --layout-margin: clamp(20px, 4vw, 20px);
            --space-20: 20px;
        }

html,
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            min-height: 100%;
            background-color: var(--color-bg-light);
            color: var(--color-bg-dark);
            font-family: var(--font-family);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

/* =========================================================
   DISABLE HOVER STATES ON TOUCH DEVICES (MOBILE)
   ========================================================= */
@media (hover: none) {
    .cta-button:hover {
        background-color: var(--color-primary) !important;
        border-color: transparent !important;
    }
    .cta-button:hover .cta-text-layer.default-text span {
        transform: translateY(0) !important;
    }
    .cta-button:hover .cta-text-layer.hover-text span {
        transform: translateY(110%) !important;
    }
    .cta-button:hover .cta-icon {
        transform: translateX(0) !important;
        filter: none !important;
    }
    .mission-submit-trigger:hover {
        background-color: var(--color-primary) !important;
    }
    .works-img:hover {
        transform: none !important;
        border-radius: 0 !important;
    }
    .works-link-block:hover {
        opacity: 1 !important;
    }
    .social-action-link:hover {
        color: #1A1A1A !important;
    }
    .social-action-link:hover .social-action-btn {
        background-color: transparent !important;
        color: #1A1A1A !important;
    }
    .form-submit-btn:hover .submit-underline {
        transform: scaleX(1) !important;
    }
    .mobile-social-circ:hover {
        background-color: transparent !important;
        color: var(--color-bg-light, #E6E1DD) !important;
    }
}
/* =========================================================
   MOBILE CLICK PREVIEW FOR WORKS IMAGES
   ========================================================= */
@media (max-width: 768px) {
    .works-inner {
        position: relative;
    }
    .works-preview-container.mobile-active {
        display: flex !important;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        height: auto;
        max-height: 50vh;
        z-index: 100;
        opacity: 1;
        justify-content: center;
        align-items: center;
        background: transparent;
        pointer-events: none;
    }
    .works-preview-container.mobile-active .works-preview-img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        border-radius: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
}