/* ══════════════════════════════════════════════════════════════
   TOPHAT - Design System v2.0
   Agencja Kreatywna | Awwwards-level

   Paleta: Monochromatyczny base + fiolet accent + żółty CTA
   Typografia: Rubik Light (300), duża skala, elegancka
   Spacing: 8px grid
   ══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   FONT FACE
   ───────────────────────────────────────── */
@font-face {
    font-family: 'Rubik';
    src: url('../fonts/Rubik-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
   ───────────────────────────────────────── */
:root {
    /* ── Base - monochromatyczny ── */
    --white: #FFFFFF;
    --gray-50: #F8F8F8;
    --gray-200: #E0E0E0;
    --gray-300: #CCCCCC;
    --gray-500: #999999;
    --gray-700: #666666;
    --gray-800: #333333;
    --gray-900: #111111;
    --black: #000000;

    /* ── Akcenty ── */
    --purple: #8C52FF;
    --purple-light: #A77BFF;
    --yellow: #FAD02F;

    /* ── Typografia ── */
    --font-family: 'Rubik', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    --type-hero: clamp(2.15rem, 2.8vw + 0.5rem, 3.35rem);
    --type-h1: clamp(3rem, 5vw + 1rem, 6rem);
    --type-h2: clamp(2rem, 4vw + 0.5rem, 4rem);
    --type-h3: clamp(1.3rem, 2vw + 0.5rem, 2rem);
    --type-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    --type-small: 0.875rem;
    --type-label: 0.85rem;
    --type-xs: 0.75rem;

    /* ── Spacing (8px grid) ── */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* ── Section padding ── */
    --section-py-lg: 8rem;
    --section-py-md: 6rem;
    --section-py-sm: 4rem;

    /* ── Border radius ── */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-pill: 100px;
    --radius-full: 50%;

    /* ── Layout ── */
    --container-width: 1400px;
    --nav-height: 72px;
    --clients-height: 8.75rem;

    /* ── Transitions ── */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-medium: 0.4s;
    --duration-slow: 0.6s;

    /* ── Shadows ── */
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.08);
    --shadow-focus: 0 0 0 3px rgba(140, 82, 255, 0.25);

    /* ── Text on dark/purple backgrounds ── */
    --text-on-dark: rgba(255, 255, 255, 0.85);
    --text-on-dark-muted: rgba(255, 255, 255, 0.6);
    --text-on-dark-subtle: rgba(255, 255, 255, 0.4);
    --border-on-dark: rgba(255, 255, 255, 0.15);
    --bg-on-dark: rgba(255, 255, 255, 0.08);

    /* ── Feedback ── */
    --error: #e53e3e;

    /* ── Typography tracking ── */
    --letter-spacing-display: -0.03em;
    --letter-spacing-heading: -0.02em;
}

/* ─────────────────────────────────────────
   PAGE LOADER — Purple Curtain Wipe
   ───────────────────────────────────────── */
.th-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: all;
}

.th-loader__left,
.th-loader__right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--purple);
    overflow: hidden;
    will-change: transform;
    transition: transform 2s var(--ease-out-expo);
}

.th-loader__left  { left: 0; }
.th-loader__right { right: 0; }

/* Logo w każdym panelu — pozycjonowane tak, żeby razem tworzyły całość */
.th-loader__logo {
    position: absolute;
    top: 50%;
    width: 68vw;
    max-width: none;
    height: auto;
}

.th-loader__left .th-loader__logo {
    right: 0;
    transform: translate(50%, -50%);
}

.th-loader__right .th-loader__logo {
    left: 0;
    transform: translate(-50%, -50%);
}

/* Kurtyny rozjeżdżają się — logo jedzie z nimi */
.th-loader.is-opening .th-loader__left  { transform: translateX(-101%); }
.th-loader.is-opening .th-loader__right { transform: translateX(101%); }

.th-loader.is-done {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .th-loader__left,
    .th-loader__right {
        transition: none !important;
    }
    .th-loader { display: none; }
}

/* ─────────────────────────────────────────
   RESET
   ───────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-family);
    font-size: var(--type-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.8;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--nav-height);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ─────────────────────────────────────────
   BASE TYPOGRAPHY
   ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-light);
    line-height: 1.1;
    color: var(--gray-900);
}

h1 { font-size: var(--type-h1); letter-spacing: var(--letter-spacing-display); }
h2 { font-size: var(--type-h2); letter-spacing: var(--letter-spacing-heading); }
h3 { font-size: var(--type-h3); font-weight: var(--font-weight-regular); line-height: 1.3; }
h4 { font-size: 1rem; font-weight: var(--font-weight-medium); line-height: 1.4; }

p {
    color: var(--gray-700);
    max-width: 65ch;
}

/* ─────────────────────────────────────────
   REUSABLE COMPONENTS
   ───────────────────────────────────────── */

/* Section label (fioletowy, uppercase) */
.th-label {
    display: block;
    font-size: var(--type-label);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
}

/* Primary CTA button */
.th-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-default);
    min-height: 48px;
}

.th-btn--primary {
    background: var(--black);
    color: var(--white);
}

.th-btn--primary:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

.th-btn--secondary {
    background: transparent;
    border: 1.5px solid var(--gray-900);
    color: var(--gray-900);
}

.th-btn--secondary:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* Button on purple bg */
.th-section--purple .th-btn--primary { background: var(--white); color: var(--black); }
.th-section--purple .th-btn--primary:hover { background: var(--yellow); color: var(--black); }
.th-section--purple .th-btn--secondary { border-color: var(--white); color: var(--white); }
.th-section--purple .th-btn--secondary:hover { border-color: var(--yellow); color: var(--yellow); }

/* Button on dark bg */
.th-section--dark .th-btn--primary { background: var(--yellow); color: var(--black); }
.th-section--dark .th-btn--primary:hover { background: var(--white); color: var(--black); }
.th-section--dark .th-btn--secondary { border-color: var(--white); color: var(--white); }
.th-section--dark .th-btn--secondary:hover { border-color: var(--yellow); color: var(--yellow); }

/* 3D Button — wrapper */
.th-btn-3d {
    position: relative;
    display: inline-block;
}

.th-btn-3d::after {
    content: "";
    position: absolute;
    top: 3px;
    left: -3px;
    right: -3px;
    bottom: -6px;
    background: #3D2A7A;
    border-radius: var(--radius-sm);
}

/* 3D Button — face */
.th-btn-3d .th-btn {
    position: relative;
    z-index: 1;
    background: var(--purple);
    color: var(--white);
    overflow: hidden;
    box-shadow: inset 0 1px 0 var(--purple-light);
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
}

.th-btn-3d .th-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-25deg);
}

.th-btn-3d .th-btn:hover {
    transform: none;
    background: var(--purple);
    color: var(--white);
}

.th-btn-3d .th-btn:hover::before {
    left: 150%;
    transition: left 0.8s ease;
}

.th-btn-3d .th-btn:active {
    translate: 0 4px;
}

/* Bold Offset — Purple variant */
.th-btn--offset-purple {
    background: var(--purple);
    color: var(--white);
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0 0 var(--black);
    transform: translate(0, 0);
}
.th-btn--offset-purple:hover {
    background: var(--yellow);
    color: var(--black);
    box-shadow: 2px 2px 0 0 var(--black);
    transform: translate(2px, 2px);
}
.th-btn--offset-purple:active {
    box-shadow: 0 0 0 0 var(--black);
    transform: translate(4px, 4px);
}

/* Bold Offset — Yellow variant */
.th-btn--offset-yellow {
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0 0 var(--black);
    transform: translate(0, 0);
}
.th-btn--offset-yellow:hover {
    background: var(--white);
    box-shadow: 2px 2px 0 0 var(--black);
    transform: translate(2px, 2px);
}
.th-btn--offset-yellow:active {
    box-shadow: 0 0 0 0 var(--black);
    transform: translate(4px, 4px);
}

/* Hero CTA — smaller offset buttons */
.th-hero__cta {
    padding: 0.75rem 1.75rem;
    font-size: 0.8rem;
}

/* Input base */
.th-input {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-default);
}

.th-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: var(--shadow-focus);
}

.th-input::placeholder {
    color: var(--gray-500);
}

/* ─────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────── */

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container - constrains content within grid */
.th-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section vertical rhythm */
#main > section:not(.th-hero, .th-clients) {
    padding: var(--section-py-lg) 0;
}

/* ── Section color variants (Full Brand) ── */
.th-section--purple {
    background: var(--purple);
    color: var(--white);
}
.th-section--purple .th-label { color: var(--text-on-dark); }
.th-section--purple h2,
.th-section--purple h3 { color: var(--white); }
.th-section--purple p { color: var(--text-on-dark); }

.th-section--dark {
    background: var(--gray-900);
    color: var(--white);
}
.th-section--dark .th-label { color: var(--purple-light); }
.th-section--dark h2,
.th-section--dark h3 { color: var(--white); }
.th-section--dark p { color: var(--text-on-dark); }

/* ── Grain Texture (premium printed feel) ── */
section,
.th-footer {
    position: relative;
}

section::after,
.th-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.06;
    mix-blend-mode: multiply;
}

/* Grain: content above grain overlay */
section > .th-container,
.th-footer > .th-container,
.th-hero__inner,
.th-hero__content,
.th-hero__visual,
.th-hero__scroll,
.th-clients__track-wrap,
.th-testimonials__viewport,
.th-keyword-marquee__row,
.th-process-tl__timeline {
    position: relative;
    z-index: 2;
}

/* Dark: overlay blend */
.th-section--dark::after {
    opacity: 0.04;
    mix-blend-mode: overlay;
}

/* Purple: overlay, łagodniejszy */
.th-section--purple::after {
    opacity: 0.03;
    mix-blend-mode: overlay;
}

/* Yellow (Hero, About): overlay, subtelny */
.th-hero::after,
.th-about::after,
.th-about-v2::after {
    opacity: 0.03;
    mix-blend-mode: overlay;
}

/* ─────────────────────────────────────────
   SCROLL REVEAL (CSS only, JS adds .is-visible)
   ───────────────────────────────────────── */
.th-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.th-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.th-reveal-delay-1 { transition-delay: 0.08s; }
.th-reveal-delay-2 { transition-delay: 0.16s; }
.th-reveal-delay-3 { transition-delay: 0.24s; }
.th-reveal-delay-4 { transition-delay: 0.32s; }
.th-reveal-delay-5 { transition-delay: 0.48s; }
.th-reveal-delay-6 { transition-delay: 0.64s; }

/* ── Reveal — kierunkowe modyfikatory ── */
.th-reveal--left  { transform: translateX(-40px); }
.th-reveal--right { transform: translateX(40px); }
.th-reveal--scale { transform: scale(0.96); }
.th-reveal--fade  { transform: translateY(12px); }

/* Visible state dla wszystkich kierunków */
.th-reveal--left.is-visible,
.th-reveal--right.is-visible,
.th-reveal--scale.is-visible,
.th-reveal--fade.is-visible {
    opacity: 1;
    transform: none;
}

/* ── Reveal — prędkość ── */
.th-reveal--slow { transition-duration: 0.9s; }
.th-reveal--fast { transition-duration: 0.4s; }

/* ─────────────────────────────────────────
   ACCESSIBILITY
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .th-reveal {
        opacity: 1;
        transform: none;
    }

    .th-reveal--left,
    .th-reveal--right,
    .th-reveal--scale,
    .th-reveal--fade {
        opacity: 1;
        transform: none;
    }

}

/* Focus visible for keyboard users */
:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

/* Skip to content link */
.th-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--purple);
    color: var(--white);
    border-radius: var(--radius-xs);
    z-index: 9999;
    font-size: var(--type-small);
}

.th-skip-link:focus {
    top: 1rem;
}

/* ─────────────────────────────────────────
   NAWIGACJA
   ───────────────────────────────────────── */
.th-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--white);
    border-bottom: 2.5px solid var(--black);
    z-index: 1000;
}

.th-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo */
.th-nav__logo {
    display: flex;
    align-items: center;
    transition: opacity var(--duration-fast) var(--ease-default);
}

.th-nav__logo:hover {
    opacity: 0.7;
}

.th-nav__logo-img {
    height: 36px;
    width: auto;
}

/* Menu links */
.th-nav__menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.th-nav__link {
    font-size: var(--type-small);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.08em;
    color: var(--gray-700);
    transition: color var(--duration-fast) var(--ease-default);
    padding: 0.5rem 0;
    position: relative;
}

.th-nav__link:hover {
    color: var(--gray-900);
}

/* Subtle underline on hover */
.th-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width var(--duration-normal) var(--ease-default);
}

.th-nav__link:hover::after {
    width: 100%;
}

/* Nav CTA */
.th-nav__cta {
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
}

/* Dropdown item wrapper */
.th-nav__item {
    position: relative;
}

.th-nav__item .th-nav__link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.th-nav__arrow {
    display: inline-block;
    transition: transform var(--duration-fast) var(--ease-default);
}

.th-nav__item:hover .th-nav__arrow {
    transform: rotate(180deg);
}

/* ── Mega Dropdown ── */
.th-nav__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 560px;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-default);
    z-index: 100;
}

.th-nav__mega--small {
    width: 420px;
}

.th-nav__item--has-dropdown:hover .th-nav__mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.th-nav__mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.th-nav__mega-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease-default);
}

.th-nav__mega-item:hover {
    background: var(--gray-50);
}

.th-nav__mega-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: all var(--duration-fast) var(--ease-default);
}

.th-nav__mega-item:hover .th-nav__mega-icon {
    background: var(--purple);
    color: var(--white);
}

.th-nav__mega-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.th-nav__mega-content {
    flex: 1;
}

.th-nav__mega-title {
    font-size: var(--type-small);
    font-weight: var(--font-weight-medium);
    color: var(--gray-900);
    margin-bottom: 0.125rem;
}

.th-nav__mega-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.th-nav__mega-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.th-nav__mega-footer span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.th-nav__mega-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple);
    font-size: var(--type-small);
    font-weight: var(--font-weight-medium);
    transition: gap var(--duration-fast) var(--ease-default);
}

.th-nav__mega-cta:hover {
    gap: 0.75rem;
}

/* Hamburger */
.th-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 1001;
}

.th-nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-900);
    transition: all var(--duration-normal) var(--ease-default);
    transform-origin: center;
}

.th-nav__hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.th-nav__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.th-nav__hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* ─────────────────────────────────────────
   MOBILE MENU
   ───────────────────────────────────────── */
.th-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-default),
                visibility var(--duration-normal);
}

.th-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.th-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.th-mobile-menu__link {
    font-size: var(--type-h3);
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
    transition: color var(--duration-fast) var(--ease-default);
}

.th-mobile-menu__link:hover {
    color: var(--purple);
}

.th-mobile-menu__cta {
    margin-top: 2rem;
    justify-content: center;
}

.th-mobile-menu__social {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.th-mobile-menu__social a {
    color: var(--gray-500);
    transition: color var(--duration-fast) var(--ease-default);
}

.th-mobile-menu__social a:hover {
    color: var(--purple);
}

/* ─────────────────────────────────────────
   BACK TO TOP
   ───────────────────────────────────────── */
.th-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--duration-normal) var(--ease-default);
    z-index: 900;
    box-shadow: var(--shadow-subtle);
}

.th-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.th-back-to-top:hover {
    background: var(--purple);
    transform: translateY(-4px);
}

/* ─────────────────────────────────────────
   RESPONSIVE - MOBILE (768px)
   ───────────────────────────────────────── */

/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.th-hero {
    height: calc(100dvh - var(--nav-height) - var(--clients-height));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    position: relative;
    padding: 1rem 0 1.5rem;
    overflow: hidden;
    background: var(--yellow);
    border-bottom: 2px solid var(--black);
}

/* Dot grid with mouse spotlight */
.th-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--purple) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center;
    mask-image:
        radial-gradient(circle 300px at var(--cursor-x, 50%) var(--cursor-y, 50%), black 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.4) 100%),
        linear-gradient(to bottom, black 85%, transparent);
    -webkit-mask-image:
        radial-gradient(circle 300px at var(--cursor-x, 50%) var(--cursor-y, 50%), black 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.4) 100%),
        linear-gradient(to bottom, black 85%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    opacity: 0.6;
}

/* Split layout — lewa (tekst) + prawa (logo) */
.th-hero__inner {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: var(--space-2xl);
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: auto;
    padding: 0 2rem;
    flex: 1;
}

.th-hero__content {
    position: relative;
    z-index: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Karteczka z taśmą — lewy górny róg */
.th-hero__note {
    --note-bg: #FAFAF8;
    --note-dark: #e8e8e0;
    --note-transparent: rgba(250, 250, 248, 0);
    --tape-gray: #dbd8be;
    --tape-edge: #b7b49d;

    position: relative;
    align-self: flex-start;
    margin-bottom: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: auto;
    padding: 14px 30px;
    margin-left: -5.5rem;
    background:
        linear-gradient(to bottom right, var(--note-dark), 20%, var(--note-transparent)),
        var(--note-bg);
    box-shadow: 2px 2px 0 0 var(--note-dark);
    opacity: 0;
    animation: noteFadeIn 0.8s var(--ease-out-expo) 0.2s forwards;
}

.th-hero__note::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(var(--note-transparent), 50%, var(--note-dark), 51%, var(--note-transparent)),
        linear-gradient(to right, var(--note-transparent), 50%, var(--note-dark), 51%, var(--note-transparent));
    pointer-events: none;
}

.th-hero__note-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.th-hero__note-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--black);
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

/* Tape corners */
.th-hero__note-tape {
    position: absolute;
    width: 100%;
}

.th-hero__note-tape--top { top: 0; }
.th-hero__note-tape--bottom { bottom: 0; }

.th-hero__note-tape::before,
.th-hero__note-tape::after {
    content: "";
    width: 60px;
    height: 24px;
    position: absolute;
    background-color: var(--tape-gray);
    opacity: 0.5;
    border-right: 1px dotted var(--tape-edge);
    border-left: 1px dotted var(--tape-edge);
}

.th-hero__note-tape--top::before {
    transform: rotate(-45deg);
    left: -24px;
    top: -4px;
}

.th-hero__note-tape--top::after {
    transform: rotate(45deg);
    right: -24px;
    top: -4px;
}

.th-hero__note-tape--bottom::before {
    transform: rotate(45deg);
    left: -24px;
    bottom: -4px;
}

.th-hero__note-tape--bottom::after {
    transform: rotate(-45deg);
    right: -24px;
    bottom: -4px;
}

.th-hero__title {
    font-size: var(--type-hero);
    font-weight: var(--font-weight-light);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--gray-900);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out-expo) 0.4s forwards;
}

.th-hero__title em {
    font-weight: var(--font-weight-bold);
    font-style: normal;
    color: var(--purple);
    letter-spacing: -0.02em;
}

.th-hero__subtitle {
    font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.25rem);
    color: var(--gray-700);
    line-height: 1.6;
    max-width: 60ch;
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out-expo) 0.6s forwards;
}

/* Actions wrapper (CTA group) */
.th-hero__actions {
    display: flex;
    align-items: center;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: nowrap;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out-expo) 0.8s forwards;
}

.th-hero__secondary {
    font-size: var(--type-small);
    color: var(--yellow);
    text-decoration: none;
    border-bottom: 1px solid var(--yellow);
    padding-bottom: 2px;
    transition: opacity var(--duration-fast) var(--ease-default);
}

.th-hero__secondary:hover {
    opacity: 0.75;
}

/* Social proof */
.th-hero__proof {
    position: absolute;
    bottom: 1rem;
    left: max(2rem, calc((100% - var(--container-width)) / 2 + 2rem));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--type-body);
    color: var(--gray-700);
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out-expo) 1s forwards;
}

.th-hero__proof::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gray-900);
    flex-shrink: 0;
}

.th-hero__proof strong {
    color: var(--gray-900);
    font-weight: var(--font-weight-bold);
}

/* Prawa kolumna — holographic logo */
.th-hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: center center;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out-expo) 0.5s forwards,
               heroFloat 3s ease-in-out 1.3s infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Holographic wrapper */
.th-hero__holo {
    --holo-x: 50%;
    --holo-y: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    transform-style: preserve-3d;
    transform: rotateX(2deg) rotateY(-4deg);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    cursor: default;
}

.th-hero__logo {
    width: clamp(400px, 120%, 760px);
    height: auto;
    position: relative;
    z-index: 1;
}

/* Holographic gradient overlay — masked to logo shape */
.th-hero__holo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(140, 82, 255, 0.5) 0%,
        rgba(0, 200, 255, 0.4) 20%,
        rgba(255, 0, 150, 0.35) 40%,
        rgba(250, 208, 47, 0.4) 60%,
        rgba(140, 82, 255, 0.5) 80%,
        rgba(0, 200, 255, 0.4) 100%
    );
    background-size: 300% 300%;
    background-position: var(--holo-x) var(--holo-y);
    animation: holoShift 6s ease-in-out infinite;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
    -webkit-mask-image: url('../img/tophat-logo.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('../img/tophat-logo.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

/* On desktop, JS takes over gradient position immediately */
@media (pointer: fine) {
    .th-hero__holo::before {
        animation: none;
        transition: background-position 0.2s ease;
    }
}

/* Shimmer sweep — light streak across logo */
.th-hero__holo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.35) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.35) 55%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: holoSweep 4s ease-in-out infinite;
    animation-delay: 1s;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 3;
    -webkit-mask-image: url('../img/tophat-logo.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('../img/tophat-logo.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

@keyframes holoShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes holoSweep {
    0%   { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .th-hero__holo {
        transform: none;
        transition: none;
    }
    .th-hero__holo::before,
    .th-hero__holo::after {
        animation: none;
    }
}

/* Hero smile overlay — draws on CTA hover */
.th-hero__smile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    color: var(--gray-900);
}

.th-hero__smile-path {
    /* transition controlled by JS (different for draw/erase) */
}

@media (prefers-reduced-motion: reduce) {
    .th-hero__smile-path {
        transition: none;
    }
}

/* Rotating words */
.th-hero__rotate {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
}

.th-hero__word {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    opacity: 0;
    color: var(--purple);
    font-weight: var(--font-weight-medium);
    animation: rotateWords 7.5s infinite;
}

.th-hero__word:first-child {
    position: relative;
    opacity: 1;
    animation: rotateWordsFirst 7.5s infinite;
}

.th-hero__word:nth-child(2) { animation-delay: 2.5s; }
.th-hero__word:nth-child(3) { animation-delay: 5s; }

/* Scroll indicator */
.th-hero__scroll {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out-expo) 1.2s forwards;
}

.th-hero__scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.th-hero__scroll-line {
    width: 1px;
    height: 48px;
    background: var(--gray-300);
    position: relative;
    overflow: hidden;
}

.th-hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--purple);
    animation: scrollLine 2s var(--ease-default) infinite;
}

/* ── Hero keyframes ── */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes noteFadeIn {
    from { opacity: 0; transform: translateY(24px) rotate(-9deg); }
    to { opacity: 1; transform: translateY(0) rotate(-9deg); }
}

@keyframes rotateWordsFirst {
    0%, 25% { opacity: 1; transform: translateY(0); }
    30%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes rotateWords {
    0% { opacity: 0; transform: translateY(5px); }
    5%, 30% { opacity: 1; transform: translateY(0); }
    35%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ─────────────────────────────────────────
   CLIENTS MARQUEE
   ───────────────────────────────────────── */
.th-clients {
    height: var(--clients-height);
    display: flex;
    align-items: center;
    background: var(--white);
    border-bottom: 2px solid var(--black);
}

.th-clients .th-label {
    display: block;
    margin-bottom: 1.5rem;
}

.th-clients__track-wrap {
    width: 100%;
    position: relative;
    overflow-x: clip;
    padding-block: 0.75rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15vw, black calc(100% - 15vw), transparent);
    mask-image: linear-gradient(to right, transparent, black 15vw, black calc(100% - 15vw), transparent);
}

.th-clients__track {
    display: flex;
    align-items: center;
    gap: 8rem;
    width: max-content;
    animation: marquee 100s linear infinite;
}

.th-clients__track:hover {
    animation-play-state: paused;
}

.th-clients__logo {
    flex-shrink: 0;
    filter: grayscale(100%);
    transform: scale(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.th-clients__logo:hover {
    filter: grayscale(0%);
    transform: scale(1.2);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Clients tooltip (position: fixed to escape overflow:hidden) */
.th-clients__tooltip {
    position: fixed;
    z-index: 100;
    padding: 0.25rem 0.625rem;
    background: var(--black);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.th-clients__tooltip--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────
   DLA KOGO — Color-block reveal
   ───────────────────────────────────────── */
.th-dlakogo {
    overflow: hidden;
}

.th-dlakogo__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
    margin: 1rem 0 0;
}



/* ======================================== ACCORDION SPLIT — 2-kolumnowy akordeon + GIF ======================================== */
.th-accordion-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
    margin-top: 2rem;
}

.th-accordion-split__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    clip-path: inset(-4px -6px -6px -4px);
}

.th-accordion-split__item {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid var(--black);
    border-radius: var(--radius-lg);
    background: var(--white);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 2px 2px 0 0 var(--black);
    transition: background var(--duration-normal) var(--ease-default),
                flex-grow 0.5s var(--ease-out-expo);
}

.th-accordion-split__item.is-active {
    flex-grow: 3;
    justify-content: center;
    background: var(--yellow);
}

.th-accordion-split__item:hover:not(.is-active) {
    background: var(--yellow);
}

/* Header — numer + tytuł */
.th-accordion-split__header {
    flex: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.th-accordion-split__num {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--purple);
    opacity: 0.5;
}

.th-accordion-split__title {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    font-weight: var(--font-weight-light);
    line-height: 1.2;
    color: var(--gray-900);
    margin: 0;
}

/* Body — grid-template-rows 0fr → 1fr */
.th-accordion-split__body {
    flex: none;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease-out-expo);
}

.th-accordion-split__item.is-active .th-accordion-split__body {
    grid-template-rows: 1fr;
}

.th-accordion-split__desc {
    overflow: hidden;
    min-height: 0;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
    padding: 0 2rem;
    opacity: 0;
    transition: opacity 0.3s 0.1s;
}

.th-accordion-split__item.is-active .th-accordion-split__desc {
    opacity: 1;
    padding-bottom: 1.5rem;
}

/* GIF preview — prawa kolumna */
.th-accordion-split__preview {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0 0 var(--black);
}

.th-accordion-split__gif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.th-accordion-split__gif.is-active {
    opacity: 1;
}



/* ─────────────────────────────────────────
   PROBLEM → ROZWIĄZANIE — Chat Deluxe (V4)
   Dark bg, phone frame, scroll-triggered chat
   ───────────────────────────────────────── */
.th-problem {
    background: var(--gray-900);
    margin-top: -2px;
}

/* Two-column grid */
.th-problem__layout {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: var(--space-2xl);
    align-items: center;
}

/* Left column — text content */
.th-problem__content {
    position: sticky;
    top: 8rem;
    align-self: start;
}

.th-problem__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    color: var(--white);
    margin: 1rem 0 0;
    line-height: 1.15;
}

.th-problem__desc {
    color: var(--gray-500);
    font-size: var(--type-body);
    line-height: 1.7;
    margin: 1.5rem 0 2.5rem;
    max-width: 420px;
}

.th-problem .th-label {
    color: var(--text-on-dark-subtle);
}

/* Button on dark problem bg */
.th-problem .th-btn--primary {
    background: var(--yellow);
    color: var(--black);
    margin-bottom: 1.5rem;
}

.th-problem .th-btn--primary:hover {
    background: var(--white);
    color: var(--black);
}

/* Stacking cards — right column */
.th-problem__stack {
    /* cards are sticky inside this container */
}

/* Stacking card */
.th-problem__card {
    position: sticky;
    top: calc(6rem + var(--i, 0) * 2rem);
    margin-bottom: 2rem;
}

.th-problem__card:last-child {
    margin-bottom: 0;
}

.th-problem__card-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    border: 1px solid var(--bg-on-dark);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.th-problem__card--1 .th-problem__card-inner { transform: rotate(-0.3deg); }
.th-problem__card--2 .th-problem__card-inner { transform: rotate(0.2deg); }
.th-problem__card--3 .th-problem__card-inner { transform: rotate(-0.15deg); }

/* Card label */
.th-problem__card-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.th-problem__card-label--sol {
    color: var(--purple-light);
}

/* Problem side */
.th-problem__card-problem {
    padding-right: 2rem;
}

.th-problem__card-problem p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-500);
    margin: 0;
}

/* Divider */
.th-problem__card-divider {
    width: 1px;
    background: var(--bg-on-dark);
    margin: 0 0.5rem;
}

/* Solution side */
.th-problem__card-solution {
    padding-left: 2rem;
}

.th-problem__card-solution p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    margin: 0;
}

.th-problem__card-solution em {
    font-style: normal;
    font-weight: var(--font-weight-medium);
}

/* Color variants — border-left on solution */
.th-problem__card--purple .th-problem__card-solution {
    border-left: 3px solid var(--purple);
    margin-left: -0.5rem;
    padding-left: calc(2rem - 3px);
}
.th-problem__card--purple .th-problem__card-solution em { color: var(--yellow); }

.th-problem__card--dark .th-problem__card-solution {
    border-left: 3px solid var(--purple);
    margin-left: -0.5rem;
    padding-left: calc(2rem - 3px);
}
.th-problem__card--dark .th-problem__card-solution em { color: var(--purple-light); }

.th-problem__card--yellow .th-problem__card-solution {
    border-left: 3px solid var(--yellow);
    margin-left: -0.5rem;
    padding-left: calc(2rem - 3px);
}
.th-problem__card--yellow .th-problem__card-solution em { color: var(--purple); }

/* CTA text below button */
.th-problem__cta-text {
    font-size: var(--type-small);
    color: var(--gray-500);
}

.th-problem__cta-text strong {
    color: var(--gray-300);
    font-weight: var(--font-weight-medium);
}

/* -----------------------------------------
   HEADING ACCENT (reusable)
   ----------------------------------------- */
h2 em,
h3 em {
    font-style: normal;
    color: var(--purple);
}
.th-section--dark h2 em,
.th-section--dark h3 em {
    color: var(--yellow);
}
.th-section--purple h2 em,
.th-section--purple h3 em {
    color: var(--white);
}


/* -----------------------------------------
   VALUES — Dark Statement
   ----------------------------------------- */
.th-values {
    overflow: hidden;
}

.th-values .th-label {
    color: var(--yellow);
}

.th-values__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 700px;
}

/* ── Values: Statement ── */
.th-values__statement {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-light);
    color: var(--text-on-dark);
    max-width: 800px;
    line-height: 1.4;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid var(--bg-on-dark);
    letter-spacing: var(--letter-spacing-heading);
}

.th-values__statement em {
    color: var(--yellow);
    font-style: normal;
}

/* ── Values: Manifesto Layout ── */
.th-values__manifesto {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.th-values__manifesto-item {
    display: grid;
    grid-template-columns: 120px 1fr 160px;
    gap: var(--space-2xl);
    align-items: center;
    padding: clamp(3rem, 5vw, 5rem) 0;
    border-bottom: 1px solid var(--bg-on-dark);
    position: relative;
}

.th-values__manifesto-item--2 {
    padding-left: clamp(2rem, 6vw, 8rem);
}

.th-values__manifesto-item--3 {
    padding-left: clamp(4rem, 12vw, 16rem);
}

.th-values__manifesto-number {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: var(--font-weight-light);
    color: var(--yellow);
    opacity: 0.4;
    letter-spacing: var(--letter-spacing-display);
    line-height: 1;
    transition: opacity var(--duration-slow) var(--ease-out-expo);
    user-select: none;
}

.th-values__manifesto-item:hover .th-values__manifesto-number {
    opacity: 0.8;
}

.th-values__manifesto-title {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: var(--font-weight-light);
    color: var(--white);
    letter-spacing: var(--letter-spacing-heading);
    line-height: 1.05;
    margin-bottom: var(--space-sm);
}

.th-values__manifesto-desc {
    color: var(--text-on-dark-muted);
    font-size: var(--type-body);
    max-width: 55ch;
    line-height: 1.7;
}

.th-values__manifesto-accent svg {
    width: 160px;
    height: 160px;
    color: var(--yellow);
    opacity: 0.12;
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

.th-values__manifesto-item:hover .th-values__manifesto-accent svg {
    opacity: 0.3;
    transform: rotate(15deg) scale(1.05);
}


/* -----------------------------------------
   ABOUT — Team Intro
   ----------------------------------------- */
.th-about {
    padding-bottom: calc(var(--section-py-lg) + 4rem);
    background: var(--yellow);
}

.th-about__inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0 0 var(--black);
    padding: 4rem;
}

.th-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.th-about__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.th-about__desc {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.th-about__link {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--purple);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(140, 82, 255, 0.3);
    transition: text-decoration-color var(--duration-normal) var(--ease-default);
}

.th-about__link:hover {
    text-decoration-color: var(--purple);
}

.th-about__cards {
    display: flex;
    gap: var(--space-md);
}

.th-about__card {
    position: relative;
    flex: 1;
    min-height: 480px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    background: var(--gray-900);
    overflow: hidden;
    box-shadow: 2px 2px 0 0 var(--black);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.th-about__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.8;
    z-index: 0;
    transition: opacity var(--duration-medium) var(--ease-default),
                filter var(--duration-medium) var(--ease-default);
}

.th-about__card:hover .th-about__photo {
    opacity: 0.6;
    filter: grayscale(100%) blur(4px);
}

.th-about__card-top {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.th-about__card-bottom {
    position: relative;
    z-index: 1;
}

.th-about__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--yellow);
    flex-shrink: 0;
}

.th-about__role {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    color: var(--white);
}

.th-about__name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0;
    transition: transform var(--duration-medium) var(--ease-default);
}

.th-about__card:hover .th-about__name {
    transform: translateY(-0.5rem);
}

.th-about__card-desc {
    font-size: 0.85rem;
    color: var(--text-on-dark);
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--duration-medium) var(--ease-default),
                max-height var(--duration-medium) var(--ease-default);
    margin: 0;
}

.th-about__card:hover .th-about__card-desc {
    opacity: 1;
    max-height: 80px;
    margin-top: 0.5rem;
}


/* -----------------------------------------
   ABOUT V2 — React design (porównanie)
   ----------------------------------------- */
.th-about-v2 {
    position: relative;
    padding-bottom: calc(var(--section-py-lg) + 4rem);
    background: var(--yellow);
}

.th-about-v2__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18vw;
    font-weight: 900;
    color: var(--black);
    opacity: 0.04;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.th-about-v2__inner {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    box-shadow: 8px 8px 0 0 var(--black);
    padding: 80px;
}

.th-about-v2__grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--space-2xl);
    align-items: center;
}

.th-about-v2__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
    line-height: 1.1;
    letter-spacing: var(--letter-spacing-heading);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.th-about-v2__heading em {
    font-weight: 700;
    font-style: normal;
    color: var(--purple);
}

/* Name swap: "asz" → "ek" */
.th-about-v2__name-swap {
    position: relative;
    display: inline-block;
}

.th-about-v2__name-old {
    display: inline-block;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

.th-about-v2__name-new {
    position: absolute;
    left: 0;
    display: inline-block;
    opacity: 0;
    transform: translateY(16px) rotate(-5deg);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

.th-about-v2__name-swap.is-animating .th-about-v2__name-old {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(3px);
}

.th-about-v2__name-swap.is-animating .th-about-v2__name-new {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.th-about-v2__desc {
    font-size: 1.125rem;
    color: var(--gray-800);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: var(--space-lg);
}

/* Micro credentials */
.th-about-v2__tags {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.th-about-v2__tags span {
    position: relative;
    padding-bottom: 4px;
}

.th-about-v2__tags span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--purple);
    opacity: 0.2;
}

/* Portrait card */
.th-about-v2__portrait {
    height: 100%;
}

.th-about-v2__portrait-card {
    height: 100%;
    min-height: 480px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    box-shadow: 8px 8px 0 0 var(--black);
    background: var(--purple-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--duration-medium) var(--ease-out-expo),
                box-shadow var(--duration-medium) var(--ease-out-expo);
}

.th-about-v2__portrait-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 12px 12px 0 0 var(--black);
}

.th-about-v2__portrait-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shine sweep on hover */
.th-about-v2__portrait-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.5) 45%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.5) 55%,
        transparent 60%
    );
    transform: translateX(-150%);
    transition: none;
}

.th-about-v2__portrait-card:hover .th-about-v2__portrait-gradient {
    transform: translateX(150%);
    transition: transform 1.8s var(--ease-out-expo);
}


/* -----------------------------------------
   PROCESS V2 — Sticky Split + Timeline
   ----------------------------------------- */
.th-process-tl {
    position: relative;
    z-index: 2;
    background: var(--white);
    color: var(--gray-900);
}

/* Ghost Lottie icon (decorative background) */
.th-process-tl__ghost {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    opacity: 0.08;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.th-process-tl .th-label {
    color: var(--purple);
}

.th-process-tl__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
}

.th-process-tl__heading em {
    font-style: normal;
    color: var(--purple);
}

.th-process-tl__desc {
    font-size: var(--type-body);
    color: var(--gray-700);
    line-height: 1.75;
    max-width: 42ch;
}

/* ── Split grid layout ── */
.th-process-tl__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

/* ── Left: sticky panel ── */
.th-process-tl__left {
    position: sticky;
    top: calc(50vh - 5.5rem);
    align-self: start;
    padding-right: var(--space-2xl);
}

/* ── Right: scrolling timeline ── */
.th-process-tl__right {
    padding-top: 5.5rem;
    padding-bottom: 50vh;
}

/* ── Phase: flex row (step + items) ── */
.th-process-tl__phase {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: var(--space-sm);
}

.th-process-tl__phase + .th-process-tl__phase {
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-xl);
    margin-top: var(--space-sm);
}

/* ── Step number ── */
.th-process-tl__step {
    flex-shrink: 0;
    width: clamp(60px, 10vw, 90px);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--black);
    position: relative;
    -webkit-text-stroke: 1px var(--black);
    -webkit-text-fill-color: var(--white);
    transition: -webkit-text-fill-color var(--duration-normal) var(--ease-default);
}

.th-process-tl__step::after {
    content: attr(data-step);
    position: absolute;
    top: 2px;
    left: 2px;
    z-index: -1;
    -webkit-text-stroke: 1px var(--black);
    -webkit-text-fill-color: var(--black);
}

.th-process-tl__phase:hover .th-process-tl__step,
.th-process-tl__step.is-active {
    -webkit-text-fill-color: var(--yellow);
}

/* ── Items column ── */
.th-process-tl__items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Single item (dot-line + body) ── */
.th-process-tl__item {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: var(--space-xl);
}

/* ── Dot + Line marker ── */
.th-process-tl__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-xs);
}

.th-process-tl__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--purple);
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-default),
                background var(--duration-fast) var(--ease-default);
}

.th-process-tl__item:hover .th-process-tl__dot {
    transform: scale(1.4);
    background: var(--yellow);
}

.th-process-tl__line {
    flex: 1;
    width: 2px;
    background: color-mix(in srgb, var(--purple), transparent 80%);
    margin: var(--space-xs) 0;
}

/* ── Text body ── */
.th-process-tl__body {
    flex: 1;
}

.th-process-tl__title {
    font-size: var(--type-body);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    color: var(--gray-900);
}

.th-process-tl__text {
    font-size: var(--type-small);
    line-height: 1.7;
    color: var(--gray-700);
    max-width: 46ch;
}

.th-process-tl__tag {
    display: inline-block;
    font-size: var(--type-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: color-mix(in srgb, var(--purple), transparent 90%);
    color: var(--purple);
    padding: 0.25em 0.75em;
    border-radius: var(--radius-xs);
    margin-top: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

/* ── Last connector line hidden ── */
.th-process-tl__item:last-child .th-process-tl__line {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .th-process-tl__grid { gap: var(--space-lg); }
    .th-process-tl__left { padding-right: var(--space-lg); }
}

@media (max-width: 768px) {
    .th-process-tl__grid { grid-template-columns: 1fr; }
    .th-process-tl__left {
        position: static;
        transform: none;
        padding: 0 0 var(--space-lg) 0;
    }
    .th-process-tl__step {
        position: static;
        font-size: clamp(2rem, 5vw, 2.5rem);
        width: auto;
    }
    .th-process-tl__right {
        padding: var(--space-lg) 0;
    }
    .th-process-tl__phase { gap: var(--space-sm); }
}

@media (max-width: 480px) {
    .th-process-tl__step {
        writing-mode: vertical-lr;
        text-orientation: mixed;
        font-size: 2rem;
        width: 32px;
    }
}



/* -----------------------------------------
   STATS — Number Ticker
   ----------------------------------------- */
.th-stats {
    padding: clamp(6rem, 12vh, 10rem) 0;
}

.th-stats__header {
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

.th-stats__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
}

.th-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.th-stats__item {
    position: relative;
    padding: 2rem 0;
}

/* Separator: pionowa linia między itemami */
.th-stats__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -1rem;
    width: 1px;
    height: 60%;
    background: var(--bg-on-dark);
}

.th-stats__number {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: var(--font-weight-light);
    color: var(--white);
    line-height: 1;
    letter-spacing: var(--letter-spacing-heading);
    margin-bottom: 0.75rem;
}

.th-stats__suffix {
    font-size: 0.4em;
    color: var(--yellow);
    font-weight: var(--font-weight-medium);
    vertical-align: super;
}

.th-stats__label {
    font-size: var(--type-small);
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Ticker digit mechanics ── */
.th-stats__ticker {
    display: inline-flex;
    overflow: hidden;
    height: 1em;
    line-height: 1;
}

.th-stats__digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    position: relative;
}

.th-stats__strip {
    display: flex;
    flex-direction: column;
    transition: transform 1.5s var(--ease-out-expo);
}

.th-stats__num {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

/* ── Stats responsive ── */
@media (max-width: 768px) {
    .th-stats__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .th-stats__item:not(:last-child)::after {
        top: auto;
        bottom: -1.5rem;
        left: 20%;
        right: auto;
        width: 60%;
        height: 1px;
    }

    .th-stats__number {
        font-size: clamp(3.5rem, 15vw, 5rem);
    }
}

/* ── Stats reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .th-stats__strip {
        transition: none;
    }
}


/* -----------------------------------------
   PORTFOLIO — Clip-path Reveal Cards
   ----------------------------------------- */
.th-portfolio {
    background: var(--white);
}

.th-portfolio__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.th-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.th-portfolio__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0 0 var(--black);
    aspect-ratio: 16 / 10;
    text-decoration: none;
    cursor: pointer;
    transform: translate(0, 0);
    transition: box-shadow var(--duration-medium) var(--ease-out-expo),
                transform var(--duration-medium) var(--ease-out-expo);
}

.th-portfolio__card:hover {
    box-shadow: 0 0 0 0 var(--black);
    transform: translate(2px, 2px);
}

.th-portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info — zawsze widoczna warstwa z tytułem i klientem */
.th-portfolio__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: opacity 0.35s var(--ease-out-expo);
}

.th-portfolio__card:hover .th-portfolio__info {
    opacity: 0;
}

.th-portfolio__info-client {
    font-size: 0.72rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.th-portfolio__info-title {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: var(--font-weight-medium);
    color: var(--white);
    line-height: 1.2;
}

/* Reveal — clip-path circle na hover */
.th-portfolio__reveal {
    position: absolute;
    inset: 0;
    background: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.6s var(--ease-out-expo);
}

.th-portfolio__card:hover .th-portfolio__reveal {
    clip-path: circle(75% at 50% 50%);
}

.th-portfolio__reveal-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: var(--font-weight-medium);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.th-portfolio__reveal-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-width: 28ch;
    margin-bottom: 1.25rem;
}

.th-portfolio__reveal-cta {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--yellow);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .th-portfolio__reveal {
        transition: opacity 0.3s ease;
        clip-path: none;
        opacity: 0;
    }
    .th-portfolio__card:hover .th-portfolio__reveal { opacity: 1; }
    .th-portfolio__info { transition: opacity 0.3s ease; }
}


/* -----------------------------------------
   TESTIMONIALS — Carousel
   ----------------------------------------- */
.th-testimonials {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.th-testimonials.th-section--purple .th-label {
    color: var(--yellow);
}

/* Background number */
.th-testimonials__bg-number {
    position: absolute;
    right: -2vw;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(15rem, 30vw, 35rem);
    font-weight: var(--font-weight-light);
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: -0.05em;
    transition: transform 0.7s var(--ease-out-expo),
                opacity 0.7s var(--ease-out-expo);
}

.th-testimonials__bg-number.is-changing {
    transform: translateY(-50%) scale(1.1);
    opacity: 0;
}

/* Top bar */
.th-testimonials__topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-md);
}

/* Counter */
.th-testimonials__counter {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.th-testimonials__counter-current {
    font-size: 2rem;
    font-weight: var(--font-weight-light);
    color: var(--yellow);
    line-height: 1;
    letter-spacing: var(--letter-spacing-display);
}

.th-testimonials__counter-sep,
.th-testimonials__counter-total {
    font-size: var(--type-small);
    font-weight: var(--font-weight-regular);
    color: var(--text-on-dark-subtle);
}

/* Progress bar */
.th-testimonials__progress {
    width: 100%;
    height: 2px;
    background: var(--border-on-dark);
    border-radius: 1px;
    margin-bottom: var(--space-2xl);
    overflow: hidden;
}

.th-testimonials__progress-fill {
    height: 100%;
    background: var(--yellow);
    border-radius: 1px;
    width: 25%;
    transition: width var(--duration-slow) var(--ease-out-expo);
}

/* Carousel viewport — grid stacking (Swiper pattern) */
.th-testimonials__viewport {
    position: relative;
    display: grid;
}

/* Decorative quote mark */
.th-testimonials__quote-mark {
    grid-area: 1 / 1;
    align-self: start;
    margin-top: -2rem;
    margin-left: -1rem;
    font-size: clamp(8rem, 12vw, 14rem);
    font-weight: var(--font-weight-bold);
    line-height: 0.7;
    color: var(--yellow);
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Slide — all stacked in same grid cell */
.th-testimonials__slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    transform: translateX(120px);
    pointer-events: none;
    transition: opacity 0.55s var(--ease-out-expo),
                filter 0.55s var(--ease-out-expo),
                transform 0.55s var(--ease-out-expo),
                visibility 0s 0.55s;
}

.th-testimonials__slide--active {
    opacity: 1;
    visibility: visible;
    filter: blur(0);
    transform: translateX(0);
    pointer-events: auto;
    transition: opacity 0.55s var(--ease-out-expo),
                filter 0.55s var(--ease-out-expo),
                transform 0.55s var(--ease-out-expo),
                visibility 0s 0s;
}

/* Exit: slide going left (next direction) */
.th-testimonials__slide--exit {
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    transform: translateX(-120px);
    transition: opacity 0.55s var(--ease-out-expo),
                filter 0.55s var(--ease-out-expo),
                transform 0.55s var(--ease-out-expo),
                visibility 0s 0.55s;
}

/* Enter from left (prev direction) */
.th-testimonials__slide--enter-prev {
    transform: translateX(-120px);
}

/* Exit to right (prev direction) */
.th-testimonials__slide--exit-next {
    opacity: 0;
    visibility: hidden;
    filter: blur(8px);
    transform: translateX(120px);
    transition: opacity 0.55s var(--ease-out-expo),
                filter 0.55s var(--ease-out-expo),
                transform 0.55s var(--ease-out-expo),
                visibility 0s 0.55s;
}

/* Quote text — override .th-section--purple p */
.th-testimonials .th-testimonials__text {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem);
    font-weight: var(--font-weight-light);
    line-height: 1.45;
    color: var(--white);
    max-width: 720px;
    margin: 0 0 var(--space-xl) 0;
    letter-spacing: -0.01em;
}

/* Author row */
.th-testimonials__author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Avatar with initials */
.th-testimonials__avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--bg-on-dark);
    border: 2px solid var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 0.8rem;
    color: var(--yellow);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.th-testimonials__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.th-testimonials__name {
    font-style: normal;
    font-weight: var(--font-weight-medium);
    font-size: 1.05rem;
    color: var(--white);
    line-height: 1.3;
}

.th-testimonials__role {
    font-size: var(--type-small);
    font-weight: var(--font-weight-regular);
    color: var(--text-on-dark-muted);
    line-height: 1.3;
}

/* Separator line */
.th-testimonials__separator {
    width: 1px;
    height: 36px;
    background: var(--border-on-dark);
    flex-shrink: 0;
}

/* Metric badge */
.th-testimonials__metric {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.th-testimonials__metric-value {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--yellow);
    line-height: 1;
    letter-spacing: -0.02em;
}

.th-testimonials__metric-label {
    font-size: var(--type-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-on-dark-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

/* Navigation arrows */
.th-testimonials__arrows {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.th-testimonials__arrow {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-on-dark);
    background: transparent;
    color: var(--text-on-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-default);
    padding: 0;
}

.th-testimonials__arrow:hover,
.th-testimonials__arrow:focus-visible {
    border-color: var(--yellow);
    color: var(--yellow);
    background: var(--bg-on-dark);
}

.th-testimonials__arrow:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.th-testimonials__arrow:active {
    transform: scale(0.9);
}

/* Dot navigation — vertical, right side */
.th-testimonials__nav {
    position: absolute;
    right: clamp(1rem, 3vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    z-index: 2;
}

.th-testimonials__dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
}

.th-testimonials__dot::before {
    content: '';
    position: absolute;
    inset: -16px;
}

.th-testimonials__dot--active {
    width: 12px;
    height: 32px;
    border-radius: 6px;
    background: var(--yellow);
}

.th-testimonials__dot:hover:not(.th-testimonials__dot--active) {
    background: rgba(255, 255, 255, 0.5);
}

.th-testimonials__dot:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .th-testimonials__slide {
        filter: none;
        transform: none;
        transition: opacity var(--duration-normal),
                    visibility 0s var(--duration-normal);
    }
    .th-testimonials__slide--active {
        transition: opacity var(--duration-normal),
                    visibility 0s 0s;
    }
    .th-testimonials__slide--exit,
    .th-testimonials__slide--exit-next,
    .th-testimonials__slide--enter-prev {
        transform: none;
    }
    .th-testimonials__bg-number {
        transition: none;
    }
}


/* -----------------------------------------
   FAQ — Magazine-spread editorial
   ----------------------------------------- */
.th-faq-v2 {
    padding: 96px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Grain overlay */
.th-faq-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: multiply;
}

.th-faq-v2__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.th-faq-v2__grid {
    display: grid;
    grid-template-columns: 38% 62%;
    position: relative;
    overflow: hidden;
}

/* LEFT — sticky anchor */
.th-faq-v2__left {
    position: sticky;
    top: 96px;
    align-self: start;
    padding-right: 64px;
    border-right: 1px solid rgba(0,0,0,0.06);
    height: fit-content;
    overflow: visible;
}

/* Ghost question mark */
.th-faq-v2__ghost {
    position: absolute;
    top: 0;
    right: 68%;
    font-size: 24vw;
    font-weight: 900;
    color: var(--purple);
    opacity: 0.08;
    line-height: 0.8;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.th-faq-v2__heading {
    position: relative;
    z-index: 1;
}

.th-faq-v2__heading-line {
    font-size: clamp(2rem, 4vw + 0.5rem, 4rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}

.th-faq-v2__heading-line--light {
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
}

.th-faq-v2__heading-line--accent {
    font-weight: var(--font-weight-bold);
    color: var(--purple);
}

.th-faq-v2__subtext {
    font-size: 1rem;
    color: #999;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    margin: 48px 0 0;
    position: relative;
    z-index: 1;
}

/* RIGHT — accordion */
.th-faq-v2__right {
    padding-left: 64px;
}

.th-faq-v2__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.005em;
    color: var(--gray-900);
    transition: color var(--duration-normal) ease;
    text-align: left;
    line-height: 1.4;
    gap: 1rem;
}

.th-faq-v2__trigger:hover,
.th-faq-v2__item.is-open .th-faq-v2__trigger {
    color: var(--purple);
}

/* Divider line between items */
.th-faq-v2__divider {
    height: 1px;
    background: var(--gray-200);
    transition: background var(--duration-normal) ease;
}

.th-faq-v2__item:hover .th-faq-v2__divider,
.th-faq-v2__item.is-open .th-faq-v2__divider {
    background: rgba(140, 82, 255, 0.2);
}

/* Icon +/- */
.th-faq-v2__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
}

.th-faq-v2__icon::before,
.th-faq-v2__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    top: 50%;
    left: 50%;
    border-radius: 1px;
}

.th-faq-v2__icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.th-faq-v2__icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
    transition: transform var(--duration-normal) var(--ease-out-expo),
                opacity var(--duration-normal) var(--ease-out-expo);
}

.th-faq-v2__item.is-open .th-faq-v2__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* Expandable body */
.th-faq-v2__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-medium) var(--ease-out-expo);
}

.th-faq-v2__item.is-open .th-faq-v2__body {
    grid-template-rows: 1fr;
}

.th-faq-v2__inner {
    overflow: hidden;
}

.th-faq-v2__content {
    padding: 0 0 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s, padding var(--duration-medium) var(--ease-out-expo);
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
    max-width: 520px;
}

.th-faq-v2__item.is-open .th-faq-v2__content {
    opacity: 1;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .th-faq-v2__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .th-faq-v2__left {
        position: static;
        padding-right: 0;
        border-right: none;
        margin-bottom: 2.5rem;
    }

    .th-faq-v2__ghost {
        font-size: 30vw;
        right: -10px;
        top: -10px;
    }

    .th-faq-v2__right {
        padding-left: 0;
    }

    .th-faq-v2__subtext {
        margin-top: 1.5rem;
    }
}


/* -----------------------------------------
   CONTACT
   ----------------------------------------- */
.th-contact {
    background: var(--gray-50);
}

/* Split card */
.th-contact__card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    border: 2px solid var(--black);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 2px 2px 0 0 var(--black);
    background: var(--white);
    margin-top: clamp(2rem, 4vw, 3rem);
}

.th-contact__aside {
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--gray-900);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.th-contact__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    color: var(--white);
    line-height: 1.1;
}

.th-contact__heading em {
    font-style: normal;
    color: var(--purple-light);
}

.th-contact__aside-desc {
    color: var(--text-on-dark-muted);
    margin-top: 1.5rem;
    line-height: 1.7;
}

.th-contact__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-on-dark);
}

.th-contact__meta-item {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-default);
}

a.th-contact__meta-item:hover {
    color: var(--white);
}

/* Right panel */
.th-contact__panel {
    padding: clamp(2rem, 4vw, 3rem);
}

/* Progress stepper */
.th-contact__progress {
    display: flex;
    align-items: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.th-contact__progress-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.th-contact__progress-num {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: 0;
    color: var(--gray-300);
    transition: all var(--duration-normal) var(--ease-default);
    flex-shrink: 0;
}

.th-contact__progress-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-300);
    font-weight: var(--font-weight-medium);
    transition: color var(--duration-normal) var(--ease-default);
}

.th-contact__progress-item.is-active .th-contact__progress-num {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.th-contact__progress-item.is-active .th-contact__progress-label {
    color: var(--gray-900);
}

.th-contact__progress-item.is-done .th-contact__progress-num {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.th-contact__progress-item.is-done .th-contact__progress-label {
    color: var(--gray-700);
}

.th-contact__progress-line {
    height: 1px;
    background: var(--gray-200);
    flex: 1;
    margin: 0 0.75rem;
    transition: background var(--duration-normal) var(--ease-default);
}

.th-contact__progress-line.is-done {
    background: var(--black);
}

/* Steps — grid overlay so all share same height */
.th-contact__form {
    display: grid;
    grid-template-rows: auto 1fr;
}

.th-contact__progress {
    grid-row: 1;
    grid-column: 1;
}

.th-contact__step {
    grid-row: 2;
    grid-column: 1;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
    margin: 0;
    transition: opacity var(--duration-normal) var(--ease-default);
}

.th-contact__step.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.th-contact__step-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: var(--font-weight-light);
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.th-contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.th-contact__field {
    margin-bottom: 1rem;
}

.th-contact__field label {
    display: block;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.th-contact__field textarea.th-input {
    resize: vertical;
    min-height: 140px;
}

/* Group labels */
.th-contact__group-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-medium);
}

/* Service/budget options */
.th-contact__services,
.th-contact__budgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
    margin-bottom: 1.5rem;
}

.th-contact__option {
    cursor: pointer;
}

.th-contact__option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.th-contact__option span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    transition: all var(--duration-normal) var(--ease-default);
    user-select: none;
}

.th-contact__option span::after {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--gray-300);
    flex-shrink: 0;
    transition: all var(--duration-normal) var(--ease-default);
}

.th-contact__option:hover span {
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.th-contact__option input:checked + span {
    background: color-mix(in srgb, var(--purple), white 92%);
    border: 2.5px solid var(--black);
    color: var(--gray-900);
}

.th-contact__option input:checked + span::after {
    background: var(--black);
    border-color: var(--black);
}

/* Error state */
.th-input--error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

/* Success confirmation */
.th-contact__success {
    text-align: center;
    padding: 3rem 0;
}
.th-contact__success-title {
    color: var(--gray-900);
    font-weight: var(--font-weight-regular);
    margin-bottom: 0.5rem;
}
.th-contact__success-desc {
    color: var(--gray-700);
}

/* Navigation */
.th-contact__nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}



/* -----------------------------------------
   FOOTER V2 — "The Goodbye Statement"
   ----------------------------------------- */
.th-footer {
    position: relative;
    padding: var(--section-py-md) 0 0;
    overflow: hidden;
}

.th-footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    padding-bottom: 3rem;
}

.th-footer__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.th-footer__logo {
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.th-footer__tagline {
    color: var(--text-on-dark-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.th-footer__social {
    display: flex;
    gap: 1rem;
}

.th-footer__social a {
    color: var(--text-on-dark-muted);
    transition: color var(--duration-normal) var(--ease-default);
}

.th-footer__social a:hover {
    color: var(--purple);
}

.th-footer__column-title {
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.th-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.th-footer__links li {
    margin-bottom: 0.5rem;
}

.th-footer__links a {
    color: var(--text-on-dark-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--duration-normal) var(--ease-default);
    display: inline-flex;
    align-items: center;
}

/* Arrow reveal on hover */
.th-footer__links a::before {
    content: '\2192';
    display: inline-block;
    width: 0;
    opacity: 0;
    color: var(--yellow);
    transform: translateX(-8px);
    transition: all 0.25s var(--ease-default);
    overflow: hidden;
}

.th-footer__links a:hover {
    color: var(--white);
}

.th-footer__links a:hover::before {
    width: 1.2em;
    opacity: 1;
    transform: translateX(0);
}

.th-footer__links li:not(:has(a)) {
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
}

.th-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 2rem;
    position: relative;
}

.th-footer__bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: var(--border-on-dark);
}

.th-footer__copy {
    font-size: 0.8rem;
    color: var(--text-on-dark-subtle);
}

.th-footer__legal {
    display: flex;
    gap: 1.5rem;
}

.th-footer__legal a {
    font-size: 0.8rem;
    color: var(--text-on-dark-subtle);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-default);
}

.th-footer__legal a:hover {
    color: var(--white);
}


/* -----------------------------------------
   SERVICES — Grid 3×2
   ----------------------------------------- */
.th-services {
}

.th-services__header {
    max-width: var(--container-width);
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.th-services__heading {
    font-size: var(--type-h2);
    font-weight: var(--font-weight-light);
    line-height: 1.05;
    color: var(--gray-900);
    letter-spacing: var(--letter-spacing-heading);
    margin: 1rem 0 0;
}

.th-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.th-services__card-inner {
    height: 100%;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--black);
    box-shadow: 2px 2px 0 0 var(--black);
    transition: transform var(--duration-medium) var(--ease-default),
                box-shadow var(--duration-medium) var(--ease-default);
}

.th-services__card-inner:hover {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 0 var(--black);
}

.th-services__card-inner::before {
    content: attr(data-num);
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    font-size: 9rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.06;
    pointer-events: none;
    user-select: none;
    transition: opacity var(--duration-normal) var(--ease-default);
}

.th-services__card-inner:hover::before {
    opacity: 0.12;
}

.th-services__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.th-services__card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--duration-normal) var(--ease-default),
                transform var(--duration-normal) var(--ease-default);
}

.th-services__card-inner:hover .th-services__card-icon {
    transform: scale(1.1);
}

.th-services__card-icon svg {
    width: 24px;
    height: 24px;
    transition: stroke var(--duration-normal) var(--ease-default);
}

.th-services__card-title {
    font-size: var(--type-h3);
    font-weight: var(--font-weight-light);
    line-height: 1.2;
    margin: 0;
}

.th-services__card-desc {
    font-size: var(--type-small);
    line-height: 1.7;
    max-width: none;
    margin: 0;
    flex-grow: 1;
}

.th-services__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    transition: color var(--duration-fast) var(--ease-default),
                gap var(--duration-fast) var(--ease-default);
}

.th-services__card-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: transform var(--duration-fast) var(--ease-default);
}

.th-services__card-inner:hover .th-services__card-link {
    gap: 0.75rem;
}

.th-services__card-inner:hover .th-services__card-link svg {
    transform: translateX(3px);
}

/* Yellow variant */
.th-services__card-inner--yellow {
    background: var(--yellow);
}

.th-services__card-inner--yellow::before {
    color: var(--black);
}

.th-services__card-inner--yellow .th-services__card-icon {
    background: var(--black);
}

.th-services__card-inner--yellow .th-services__card-icon svg {
    stroke: var(--yellow);
}

.th-services__card-inner--yellow .th-services__card-title {
    color: var(--gray-900);
}

.th-services__card-inner--yellow .th-services__card-desc {
    color: var(--gray-800);
}

.th-services__card-inner--yellow .th-services__card-link {
    color: var(--gray-700);
}

.th-services__card-inner--yellow:hover .th-services__card-icon {
    background: var(--purple);
}

.th-services__card-inner--yellow:hover .th-services__card-icon svg {
    stroke: var(--white);
}

.th-services__card-inner--yellow:hover .th-services__card-link {
    color: var(--gray-900);
}

/* -----------------------------------------
   RESPONSIVE: 768px
   ----------------------------------------- */
@media (max-width: 768px) {
    .th-nav__menu,
    .th-nav__cta {
        display: none;
    }

    .th-nav__hamburger {
        display: flex;
    }

    .th-nav__logo-img {
        height: 30px;
    }

    .th-section {
        padding: 4rem 0;
    }

    .th-back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .th-hero {
        height: auto;
        min-height: calc(91dvh - var(--nav-height));
        padding: 1rem 5vw 1.5rem;
    }

    .th-hero__note {
        min-width: 140px;
        padding: 8px 20px;
        align-self: center;
    }

    .th-hero__note-title {
        font-size: 1.1rem;
    }

    .th-hero__note-sub {
        font-size: 0.7rem;
    }

    .th-hero__note-tape::before,
    .th-hero__note-tape::after {
        width: 44px;
        height: 18px;
    }

    .th-hero__note-tape--top::before { left: -18px; }
    .th-hero__note-tape--top::after { right: -18px; }
    .th-hero__note-tape--bottom::before { left: -18px; }
    .th-hero__note-tape--bottom::after { right: -18px; }

    .th-hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: 0;
    }

    .th-hero__content {
        text-align: center;
    }

    .th-hero__title {
        margin-bottom: 1.5rem;
    }

    .th-hero__subtitle {
        margin-bottom: 2rem;
    }

    .th-hero__actions {
        justify-content: center;
        flex-direction: column;
        gap: 1.5rem;
    }

    .th-hero__proof {
        justify-content: center;
        margin-top: 2rem;
    }

    .th-hero__visual {
        order: 2;
    }

    .th-hero__logo {
        width: clamp(160px, 60vw, 240px);
    }

    .th-hero__holo {
        transform: none;
    }

    .th-hero__scroll {
        bottom: 1.5rem;
    }

    .th-clients {
        height: 10dvh;
    }

    .th-clients__track {
        gap: 2.5rem;
        animation-duration: 50s;
        transform: scale(0.7);
        transform-origin: left center;
    }

    .th-clients__track-wrap {
        -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
        mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
    }

    .th-values {
        padding: 5rem 0;
    }

    .th-values__manifesto-item {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-left: 0;
    }

    .th-values__manifesto-item--2,
    .th-values__manifesto-item--3 {
        padding-left: 0;
    }

    .th-values__manifesto-number {
        font-size: clamp(3rem, 10vw, 4rem);
    }

    .th-values__manifesto-accent {
        display: none;
    }

    .th-about {
        padding: 5rem 0;
    }

    .th-about__inner {
        padding: 2rem;
        border-radius: var(--radius-lg);
    }

    .th-about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .th-about__cards {
        gap: 1rem;
    }

    .th-about__card-desc {
        opacity: 1;
        max-height: none;
        margin-top: 0.5rem;
    }

    /* About V2 responsive */
    .th-about-v2 {
        padding: 5rem 0;
    }

    .th-about-v2__inner {
        padding: 2rem;
    }

    .th-about-v2__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .th-about-v2__watermark {
        font-size: 25vw;
    }

    .th-about-v2__portrait-card {
        min-height: 320px;
    }


    .th-portfolio {
        padding: 5rem 0;
    }

    .th-portfolio__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .th-portfolio__card {
        aspect-ratio: 4 / 3;
    }

    .th-testimonials {
        min-height: auto;
        padding: var(--section-py-sm) 0;
    }

    .th-testimonials__bg-number {
        font-size: 10rem;
    }

    .th-testimonials .th-testimonials__text {
        font-size: clamp(1.1rem, 1.5vw + 0.75rem, 1.5rem);
    }

    .th-testimonials__slide {
        transform: translateX(60px);
    }
    .th-testimonials__slide--exit {
        transform: translateX(-60px);
    }
    .th-testimonials__slide--enter-prev {
        transform: translateX(-60px);
    }
    .th-testimonials__slide--exit-next {
        transform: translateX(60px);
    }

    .th-testimonials__nav {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: var(--space-lg);
    }

    .th-testimonials__dot--active {
        width: 32px;
        height: 8px;
    }

    .th-testimonials__separator,
    .th-testimonials__metric {
        display: none;
    }

    .th-testimonials__quote-mark {
        font-size: 6rem;
        top: -1rem;
        left: -0.5rem;
    }

    .th-contact__card {
        grid-template-columns: 1fr;
    }

    .th-contact__aside {
        border-bottom: 2.5px solid var(--black);
        padding: 2rem;
    }

    .th-contact__aside-desc,
    .th-contact__meta {
        display: none;
    }

    .th-contact__row {
        grid-template-columns: 1fr;
    }

    /* Footer — mobile */
    .th-footer__main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .th-footer__columns {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .th-footer__column {
        border-bottom: 1px solid var(--border-on-dark);
        padding: 1rem 0;
    }

    .th-footer__column:last-child {
        border-bottom: none;
    }

    .th-footer__column-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .th-footer__column-title::after {
        content: '+';
        font-size: 1.2rem;
        color: var(--text-on-dark-muted);
        transition: transform var(--duration-normal) var(--ease-default);
    }

    .th-footer__column.is-open .th-footer__column-title::after {
        content: '\2212';
    }

    .th-footer__column .th-footer__links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease-default);
    }

    .th-footer__column.is-open .th-footer__links {
        max-height: 300px;
    }

    /* Kontakt column — always visible on mobile */
    .th-footer__column:last-child .th-footer__links {
        max-height: none;
    }

    .th-footer__column:last-child .th-footer__column-title::after {
        display: none;
    }


    .th-footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Problem — mobile: single column */
    .th-problem__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .th-problem__content {
        position: static;
    }

    .th-problem__desc {
        max-width: none;
    }

    .th-problem__card {
        position: static;
    }

    .th-problem__card-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .th-problem__card-problem {
        padding-right: 0;
    }

    .th-problem__card-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .th-problem__card .th-problem__card-solution {
        margin-left: 0;
        padding-left: 1rem;
        border-left: 3px solid var(--purple);
    }

    .th-problem__cta-text {
        display: block;
        text-align: center;
    }

    /* Services grid mobile */
    .th-services__grid { grid-template-columns: 1fr; }

}


/* ═══════════════════════════════════════════════════════
   KEYWORD MARQUEE — link cloud below footer
   ═══════════════════════════════════════════════════════ */

.th-keyword-marquee {
    padding: 2.5rem 0;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

/* Row — single marquee strip */
.th-keyword-marquee__row {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Track — animated container */
.th-keyword-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: th-kwm-left 45s linear infinite;
    will-change: transform;
}

/* Reverse direction modifier */
.th-keyword-marquee__track--rev {
    animation-name: th-kwm-right;
    animation-duration: 55s;
}

/* Hover pauses the row */
.th-keyword-marquee__row:hover .th-keyword-marquee__track {
    animation-play-state: paused;
}

@keyframes th-kwm-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

@keyframes th-kwm-right {
    0%   { transform: translateX(-33.333%); }
    100% { transform: translateX(0); }
}

/* Item — clickable keyword link */
.th-keyword-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem);
    font-weight: 300;
    color: var(--text-on-dark-muted);
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.th-keyword-marquee__item:hover {
    color: var(--white);
}

/* Accent modifier — purple highlights */
.th-keyword-marquee__item--accent {
    color: var(--purple-light);
}

.th-keyword-marquee__item--accent:hover {
    color: var(--yellow);
}

/* Separator dot */
.th-keyword-marquee__sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--yellow);
    flex-shrink: 0;
    opacity: 0.7;
    margin: 0 1.25rem;
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    .th-keyword-marquee__row {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .th-keyword-marquee__track {
        animation: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .th-keyword-marquee {
        padding: 2rem 0;
        gap: 0.5rem;
    }

    .th-keyword-marquee__item {
        font-size: clamp(1rem, 4vw, 1.5rem);
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════
   DLA KOGO — Floating Shapes
   ═══════════════════════════════════════ */

.th-dlakogo__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    --margin: max(0px, (100% - 87.5rem) / 2);
}

.th-dlakogo__shape {
    position: absolute;
    will-change: transform;
}

/* Shape: circle */
.th-dlakogo__shape--circle {
    width: clamp(45px, 5.5vw, 120px);
    height: clamp(45px, 5.5vw, 120px);
    border-radius: var(--radius-full);
    border: 2px solid color-mix(in srgb, var(--purple), transparent 80%);
}

/* Shape: square (rotated 45deg, static — no float animation) */
.th-dlakogo__shape--square {
    width: clamp(30px, 3.5vw, 80px);
    height: clamp(30px, 3.5vw, 80px);
    border: 2px solid color-mix(in srgb, var(--purple), transparent 70%);
    transform: rotate(45deg);
}

/* Shape: triangle */
.th-dlakogo__shape--triangle {
    width: 0;
    height: 0;
    border-left: clamp(15px, 2vw, 40px) solid transparent;
    border-right: clamp(15px, 2vw, 40px) solid transparent;
    border-bottom: clamp(26px, 3.5vw, 70px) solid color-mix(in srgb, var(--yellow), transparent 72%);
}

/* Shape: dot */
.th-dlakogo__shape--dot {
    width: clamp(8px, 0.7vw, 12px);
    height: clamp(8px, 0.7vw, 12px);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--purple), transparent 62%);
}

/* Shape: dot-yellow */
.th-dlakogo__shape--dot-yellow {
    width: clamp(9px, 0.8vw, 14px);
    height: clamp(9px, 0.8vw, 14px);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--yellow), transparent 55%);
}

/* ── Float keyframes ── */
@keyframes th-dlakogo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-32px) rotate(4deg); }
}

@keyframes th-dlakogo-float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-45px) rotate(-3deg); }
}

.th-dlakogo__shape--float-1 { animation: th-dlakogo-float 6s ease-in-out infinite; }
.th-dlakogo__shape--float-3 { animation: th-dlakogo-float 7s ease-in-out infinite; animation-delay: -4s; }
.th-dlakogo__shape--float-4 { animation: th-dlakogo-float-slow 9s ease-in-out infinite; animation-delay: -1s; }
.th-dlakogo__shape--float-5 { animation: th-dlakogo-float 5s ease-in-out infinite; animation-delay: -3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .th-dlakogo__shapes { opacity: 0.5; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .th-dlakogo__shape--float-1,
    .th-dlakogo__shape--float-2,
    .th-dlakogo__shape--float-3,
    .th-dlakogo__shape--float-4,
    .th-dlakogo__shape--float-5 {
        animation: none;
    }
}

/* ── Testimonials 480px ── */
@media (max-width: 480px) {
    .th-testimonials__bg-number {
        font-size: 7rem;
    }

    .th-testimonials__arrows {
        justify-content: center;
    }

    .th-testimonials__author {
        gap: 0.75rem;
    }

    .th-testimonials__avatar {
        width: 44px;
        height: 44px;
    }
}
