@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@200;300;400;500;600&display=swap');

/* Typography and Design Tokens */
:root {
    /* Colors */
    --bg: #e3e3e3;
    --surface: #f5f5f7;
    --border: #d2d2d7;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #aeaeb2;
    --black: #000000;

    /* Typography Scale */
    --font-hero: 54px;
    --font-h1: 48px;
    --font-h2: 34px;
    --font-h3: 24px;
    --font-body-large: 19px;
    --font-body: 14px;
    --font-small: 12px;
    --font-caption: 10px;
    --font-label: 9px;

    /* System Font Stack */
    --font-display: 'Readex Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    --font-text: 'Readex Pro', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
    --bg: #141414;
    --surface: #1e1e1e;
    --border: #2e2e2e;
    --text-primary: #f0f0f0;
    --text-secondary: #8e8e93;
    --text-tertiary: #5a5a5f;
    --black: #f0f0f0;
}

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

/* scroll-behavior removed — Lenis handles smooth scrolling */

body {
    font-family: var(--font-text);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100%;
}

.logo {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: var(--font-small);
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 150ms ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.theme-icon {
    width: 14px;
    height: 14px;
    display: block;
}

/* Light mode: moon visible, sun hidden */
.theme-icon--sun {
    display: none;
}

.theme-icon--moon {
    display: block;
}

/* Dark mode: sun visible, moon hidden */
[data-theme="dark"] .theme-icon--sun {
    display: block;
}

[data-theme="dark"] .theme-icon--moon {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(ellipse 40% 50% at 80% 20%, rgba(255, 255, 255, 0.02), transparent),
        #000000;
}

/* Left Content Col */
.hero-left {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    padding-top: 52px;
    display: flex;
    align-items: center;
    padding-left: 80px;
    z-index: 2;
}

.label {
    display: block;
    font-size: var(--font-label);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.hero-title .greeting {
    font-weight: 200;
}

.hero-title .name {
    font-weight: 400;
    display: inline-block;
    position: relative;
}

/* Blinking Cursor */
.typing-cursor::after {
    content: '|';
    position: relative;
    margin-left: 2px;
    font-weight: 100;
    color: var(--text-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.tagline {
    font-size: var(--font-body);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 480px;
}

/* Buttons */
.hero-ctas {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-text);
    font-size: var(--font-small);
    letter-spacing: 0.01em;
    border-radius: 8px;
    font-weight: 500;
    transition: all 120ms ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--black);
    color: var(--bg);
    border: 1px solid var(--black);
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
    transform: scale(1.01);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: scale(1.01);
}

/* Right Spline Col — full bleed background */
.hero-right {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.spline-mask {
    display: none;
}

.hero-right iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    animation: scrollHintFade 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 20;
}

.scroll-hint-text {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.scroll-hint-arrow {
    width: 16px;
    height: 16px;
    animation: scrollHintBounce 1.5s ease-in-out infinite;
}

@keyframes scrollHintBounce {

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

    50% {
        transform: translateY(4px);
    }
}

@keyframes scrollHintFade {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Formatted entrance animation */
.fade-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 600ms cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    /* optional: add animation-delay if we want to stagger */
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Why VORY Strip
   ========================================================================== */
.why-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
}

.why-strip-inner {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.why-strip:hover .why-strip-inner {
    animation-play-state: paused;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.why-item {
    display: inline-flex;
    align-items: center;
    padding: 0 60px;
}

.why-item-value {
    font-family: var(--font-display);
    font-size: var(--font-body-large);
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.why-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    flex-shrink: 0;
}

[data-theme="dark"] .why-strip {
    background: #0d0d0d;
}

/* ==========================================================================
   Scroll Sections Base
   ========================================================================== */
.scroll-section {
    padding: 120px 80px;
    border-top: 1px solid var(--border);
}

.bg-primary {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(180, 180, 180, 0.25), transparent),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(160, 160, 160, 0.15), transparent),
        linear-gradient(160deg, #f7f7f8 0%, #ffffff 100%);
}

.bg-secondary {
    background:
        radial-gradient(ellipse 50% 50% at 100% 0%, rgba(200, 200, 200, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(180, 180, 180, 0.08), transparent),
        linear-gradient(160deg, #ffffff 0%, #f7f7f8 100%);
}

[data-theme="dark"] .bg-primary {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(255, 255, 255, 0.02), transparent),
        #000000;
}

[data-theme="dark"] .bg-secondary {
    background:
        radial-gradient(ellipse 50% 50% at 100% 0%, rgba(255, 255, 255, 0.025), transparent),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 255, 255, 0.015), transparent),
        #0a0a0a;
}

/* Contact section — teal accent gradient */
#contact.bg-secondary {
    background:
        radial-gradient(ellipse 55% 65% at 20% 80%, rgba(10, 182, 188, 0.22), transparent),
        radial-gradient(ellipse 45% 55% at 85% 15%, rgba(10, 182, 188, 0.12), transparent),
        linear-gradient(160deg, #ffffff 0%, #f7f7f8 100%);
}

[data-theme="dark"] #contact.bg-secondary {
    background:
        radial-gradient(ellipse 55% 65% at 20% 80%, rgba(10, 182, 188, 0.15), transparent),
        radial-gradient(ellipse 45% 55% at 85% 15%, rgba(10, 182, 188, 0.08), transparent),
        #0a0a0a;
}

.section-container {
    max-width: 1080px;
    margin: 0 auto;
    /* opacity/transform managed by GSAP — no CSS initial state needed */
}

.section-header {
    margin-bottom: 40px;
}

.experience-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-index {
    display: block;
    font-size: var(--font-label);
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-h1);
    font-weight: 500;
    max-width: 560px;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* About Section Specifics */
.about-text {
    font-size: var(--font-body-large);
    font-weight: 300;
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 64px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 32px;
}

.skill-group h3 {
    font-size: var(--font-small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.skill-group p {
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About V2 (Experimental) */
.about-v2-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
}

.about-v2-image-col {
    position: relative;
}

.about-v2-photo-wrap {
    width: 100%;
    max-width: 200px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
        box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.about-v2-photo-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.about-v2-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    display: block;
    filter: grayscale(10%);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
        width 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
        border-radius 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
        aspect-ratio 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.about-v2-photo-wrap:hover .about-v2-photo {
    transform: scale(1.03);
}

.about-v2-content-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-v2-content-col .section-index {
    display: block;
}

.about-v2-headline {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0;
}

.about-v2-body {
    font-size: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.about-v2-stats {
    display: flex;
    gap: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.about-v2-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-v2-stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.about-v2-stat-label {
    font-size: var(--font-small);
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Timeline specific styles (Case Studies) */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.timeline-item {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.timeline-meta {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-date {
    font-size: var(--font-small);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-company {
    font-size: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: var(--font-h3);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-list li {
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    padding-left: 16px;
}

.timeline-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

.timeline-summary {
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Products Section — Carousel
   ========================================================================== */

.carousel-wrapper {
    position: relative;
}

.carousel-viewport {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    /* transition removed — GSAP handles carousel animation */
    will-change: transform;
}

.product-card {
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    display: block;
    width: 28px;
    height: 28px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-tag {
    font-size: var(--font-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 10px;
    align-self: flex-start;
}

.card-title {
    font-size: var(--font-body-large);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.card-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-bullets li {
    font-size: var(--font-small);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-left: 14px;
    position: relative;
}

.card-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease, border-color 150ms ease;
    color: var(--text-primary);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #d8d8d8;
    border-color: var(--text-tertiary);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--text-tertiary);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 250ms ease, background 250ms ease;
}

.carousel-dot.active {
    width: 20px;
    background: var(--text-primary);
}

/* Contact specific styles */
.contact-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-header {
    flex: 1;
    margin-bottom: 0px;
}

.contact-content {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.key-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: rotate(-30deg);
    transform-origin: center center;
    padding: 60px 0;
}

.key-row {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: center;
}

/* Base key */
.key {
    width: var(--key-width, 150px);
    height: 130px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    position: relative;
    font-family: var(--font-display);
    font-size: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.key svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.15s ease;
}

.key svg.x-logo {
    fill: currentColor;
    stroke: none;
    width: 22px;
    height: 22px;
}

.key::before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

/* Light Row */
.row-light .key {
    background: linear-gradient(170deg, #f5f5f5 0%, #ececec 50%, #e1e1e1 100%);
    color: #b0b0b0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -4px 10px rgba(0, 0, 0, 0.07),
        0 8px 0 #b2b2b2,
        0 9px 1px rgba(0, 0, 0, 0.09),
        0 18px 40px rgba(0, 0, 0, 0.2);
}

/* Dark Row */
.row-dark .key {
    background: linear-gradient(170deg, #dadada 0%, #d0d0d0 50%, #c3c3c3 100%);
    color: #1a1a1a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -4px 10px rgba(0, 0, 0, 0.1),
        0 8px 0 #9c9c9c,
        0 9px 1px rgba(0, 0, 0, 0.14),
        0 18px 44px rgba(0, 0, 0, 0.32);
}

/* Interactions */
.key:active {
    transform: translateY(7px) !important;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.14),
        0 1px 0 #aaaaaa,
        0 3px 8px rgba(0, 0, 0, 0.14) !important;
    filter: brightness(0.96) !important;
}

.key:hover {
    filter: brightness(1.06);
}

/* ==========================================================================
   Hamburger Toggle (hidden on desktop)
   ========================================================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

/* Animated X when open */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Tablet Breakpoint (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-left {
        width: 70%;
        padding-left: 40px;
        padding-right: 40px;
    }

    .why-strip {
        padding: 28px 40px;
    }

    .why-item {
        padding: 0 24px;
    }

    .scroll-section {
        padding: 80px 40px;
    }

    .section-title {
        font-size: 34px;
    }

    .timeline-item {
        gap: 32px;
    }

    .timeline-meta {
        flex: 0 0 180px;
    }

    /* Carousel — tablet */
    .product-card {
        padding: 24px;
    }

    /* About V2 — tablet */
    .about-v2-layout {
        gap: 48px;
    }
}

/* ==========================================================================
   Mobile Breakpoint (≤768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* -- Why Strip -- */
    .why-strip {
        padding: 16px 0;
    }

    .why-strip-inner {
        animation-duration: 20s;
    }

    .why-item {
        padding: 0 28px;
    }

    .why-item-value {
        font-size: 13px;
    }

    .why-divider {
        height: 16px;
    }

    /* -- Navigation -- */
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 24px;
        font-size: var(--font-body);
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        margin: 8px auto 4px;
        border-color: var(--border);
    }

    .theme-icon {
        width: 16px;
        height: 16px;
    }

    /* -- Hero -- */
    .hero-left {
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-title {
        font-size: 31px;
        margin-bottom: 20px;
    }

    .tagline {
        font-size: 13px;
        margin-bottom: 32px;
    }

    .hero-ctas {
        flex-wrap: wrap;
    }

    /* -- Scroll Sections Base -- */
    .scroll-section {
        padding: 60px 24px;
    }

    .section-title {
        font-size: 24px;
        max-width: 100%;
    }

    .section-header {
        margin-bottom: 28px;
    }

    /* -- About -- */
    .about-text {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* About V2 — mobile */
    .about-v2-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-v2-image-col {
        display: flex;
        justify-content: center;
    }

    .about-v2-photo-wrap {
        width: 140px;
        border-radius: 50%;
    }

    .about-v2-photo {
        width: 140px;
        aspect-ratio: 1 / 1;
        object-position: center top;
        border-radius: 50%;
    }

    .about-v2-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    /* -- Timeline (Work & Case Studies) -- */
    .timeline-container {
        gap: 40px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 12px;
    }

    .timeline-meta {
        flex: none;
    }

    .timeline-content h3 {
        font-size: 19px;
    }

    /* -- Products Carousel -- */
    .carousel-controls {
        margin-top: 28px;
    }

    /* -- Contact -- */
    .contact-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .contact-header {
        margin-bottom: 24px;
    }

    .contact-content {
        justify-content: center;
        width: 100%;
    }

    .key-grid {
        transform: rotate(-15deg);
        padding: 40px 0;
    }

    .key {
        height: 100px;
        width: 120px !important;
        border-radius: 8px;
    }

    .key-row {
        gap: 12px;
    }

    .key svg {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   Small Phone Breakpoint (≤400px)
   ========================================================================== */
@media (max-width: 400px) {
    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 20px;
    }

    .key {
        height: 80px;
        width: 95px !important;
    }

    .key-grid {
        transform: rotate(-10deg);
        gap: 12px;
    }

    .key-row {
        gap: 10px;
    }

    .key svg {
        width: 22px;
        height: 22px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 11px;
    }
}

/* ==========================================================================
   Loader
   ========================================================================== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    opacity: 0;
    transform: scale(0.9);
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot,
.cursor-ring {
    display: none;
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    z-index: 200;
    background: var(--text-primary);
    transform-origin: left center;
    pointer-events: none;
}

/* ==========================================================================
   Nav Active Indicator
   ========================================================================== */
.nav-links {
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: -1px;
    height: 1.5px;
    width: 0;
    background: var(--text-primary);
    pointer-events: none;
    left: 0;
}

/* ==========================================================================
   Hero Text Reveal
   ========================================================================== */
.line-outer {
    display: block;
    overflow: hidden;
    line-height: 1.15;
}

.line-inner {
    display: block;
}

/* Section title word-by-word reveals — words flow inline */
.section-title .line-outer {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: inherit;
    margin-bottom: 0.05em;
}

/* ==========================================================================
   Skill Cards — Depth + Tilt
   ========================================================================== */
.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow:
        0 1px 0 1px rgba(255, 255, 255, 0.8) inset,
        0 6px 0 0 #c8c8c8,
        0 8px 20px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transform: perspective(600px) rotateX(0) rotateY(0);
    transition: box-shadow 0.2s ease;
    will-change: transform;
}

.skill-card:hover {
    box-shadow:
        0 1px 0 1px rgba(255, 255, 255, 0.8) inset,
        0 8px 0 0 #c0c0c0,
        0 12px 30px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   Work — Timeline Line + Nodes
   ========================================================================== */
.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 199px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    transform-origin: top center;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 193px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    top: 6px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.timeline-item.is-active::before {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

@media (max-width: 768px) {

    .timeline-line,
    .timeline-item::before {
        display: none;
    }
}

/* ==========================================================================
   Animated Counters
   ========================================================================== */
.counter {
    display: inline-block;
}

/* ==========================================================================
   Case Study Cards
   ========================================================================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.case-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
        box-shadow 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
        border-color 0.35s ease;
    will-change: transform;
    box-shadow: 0 0 0 1px transparent, 0 4px 32px rgba(0, 212, 180, 0.05);
    /* Light mode: slightly darker than default surface for better contrast */
    background: #ffffff;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 180, 0.3);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1), 0 0 40px rgba(0, 212, 180, 0.12);
}

.case-card-bg-text {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 102px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.04);
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    font-family: var(--font-display);
}

.case-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.case-card h3 {
    font-size: var(--font-h3);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.case-card p {
    font-size: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
    max-width: 640px;
    margin-bottom: 0;
}

.case-metrics {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
}

.metric-label {
    font-size: var(--font-caption);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Case card image */
.case-card-image {
    margin: -28px -28px 24px -28px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    line-height: 0;
    border-bottom: 1px solid var(--border);
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    flex-shrink: 0;
    flex-grow: 0;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.case-card:hover .case-card-image img {
    transform: scale(1.03);
}

/* Case card inner — grows to fill remaining height */
.case-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Case card read CTA — pinned to bottom */
.case-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-small);
    font-weight: 500;
    color: var(--text-primary);
    margin-top: auto;
    padding-top: 20px;
    transition: gap 150ms ease;
    text-decoration: none;
}

.case-card:hover .case-card-cta {
    gap: 10px;
}

/* Linked card */
a.case-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .case-card {
        padding: 28px 24px;
        border-radius: 8px;
    }

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

    .case-card-image {
        margin: -28px -28px 24px -28px;
        border-radius: 8px 8px 0 0;
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }

    .case-card-bg-text {
        font-size: 54px;
        right: 20px;
    }

    .metric-value {
        font-size: 20px;
    }

    .case-metrics {
        gap: 24px;
    }
}

/* ==========================================================================
   Product Cards — Spotlight + Tilt
   ========================================================================== */
.product-card {
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
    position: relative;
}

.card-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, 50%),
            rgba(255, 255, 255, 0.18),
            transparent 60%);
    border-radius: 8px;
}

.product-card:hover .card-spotlight {
    opacity: 1;
}

.product-card>*:not(.card-spotlight) {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Contact Key — Enhanced Hover
   ========================================================================== */
.row-light .key:hover {
    filter: brightness(1.04);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -4px 10px rgba(0, 0, 0, 0.07),
        0 11px 0 #b2b2b2,
        0 12px 1px rgba(0, 0, 0, 0.09),
        0 24px 44px rgba(0, 0, 0, 0.22);
}

.row-dark .key:hover {
    filter: brightness(1.04);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -4px 10px rgba(0, 0, 0, 0.1),
        0 11px 0 #9c9c9c,
        0 12px 1px rgba(0, 0, 0, 0.14),
        0 24px 50px rgba(0, 0, 0, 0.36);
}

.key:active {
    transform: translateY(7px) !important;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.14),
        0 1px 0 #aaaaaa,
        0 3px 8px rgba(0, 0, 0, 0.14) !important;
    filter: brightness(0.96) !important;
}

.row-light .key::after,
.row-dark .key::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.row-light .key:hover::after {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.row-dark .key:hover::after {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* =====================================================
   Dark Mode Overrides for Hardcoded Colors
   ===================================================== */

/* Navbar glassmorphism */
[data-theme="dark"] .navbar {
    background: rgba(20, 20, 20, 0.85);
}

/* Mobile nav dropdown */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-links {
        background: rgba(20, 20, 20, 0.97);
    }

    [data-theme="dark"] .nav-links a {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
}

/* Buttons */
[data-theme="dark"] .btn-primary:hover {
    background-color: #d0d0d0;
    border-color: #d0d0d0;
}

[data-theme="dark"] .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Carousel buttons */
[data-theme="dark"] .carousel-btn:hover {
    background: #2a2a2a;
}

/* Skill cards — neumorphic shadows retuned for dark surfaces */
[data-theme="dark"] .skill-card {
    box-shadow:
        0 1px 0 1px rgba(255, 255, 255, 0.05) inset,
        0 6px 0 0 #080808,
        0 8px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .skill-card:hover {
    box-shadow:
        0 1px 0 1px rgba(255, 255, 255, 0.05) inset,
        0 8px 0 0 #060606,
        0 12px 30px rgba(0, 0, 0, 0.6);
}

/* About photo */
[data-theme="dark"] .about-v2-photo-wrap:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

/* Case cards */
[data-theme="dark"] .case-card {
    background: #0c0c0c;
    box-shadow: 0 0 0 1px transparent, 0 4px 40px rgba(0, 212, 180, 0.06);
}

[data-theme="dark"] .case-card:hover {
    border-color: rgba(0, 212, 180, 0.35);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 212, 180, 0.18);
}

[data-theme="dark"] .case-card-bg-text {
    color: rgba(255, 255, 255, 0.04);
}

/* Product card spotlight */
[data-theme="dark"] .card-spotlight {
    background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, 50%),
            rgba(255, 255, 255, 0.10),
            transparent 60%);
}

/* Contact keyboard keys */
[data-theme="dark"] .row-light .key {
    background: linear-gradient(170deg, #2e2e2e 0%, #272727 50%, #222222 100%);
    color: #5a5a5f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -4px 10px rgba(0, 0, 0, 0.3),
        0 8px 0 #0a0a0a,
        0 9px 1px rgba(0, 0, 0, 0.4),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .row-dark .key {
    background: linear-gradient(170deg, #222222 0%, #1c1c1c 50%, #161616 100%);
    color: #8e8e93;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -4px 10px rgba(0, 0, 0, 0.4),
        0 8px 0 #060606,
        0 9px 1px rgba(0, 0, 0, 0.5),
        0 18px 44px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .key::before {
    border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .row-light .key:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -4px 10px rgba(0, 0, 0, 0.3),
        0 11px 0 #0a0a0a,
        0 12px 1px rgba(0, 0, 0, 0.4),
        0 24px 44px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .row-dark .key:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -4px 10px rgba(0, 0, 0, 0.4),
        0 11px 0 #060606,
        0 12px 1px rgba(0, 0, 0, 0.5),
        0 24px 50px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .key:active {
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.4),
        0 1px 0 #050505,
        0 3px 8px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .row-light .key:hover::after {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .row-dark .key:hover::after {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.service-card:hover {
    border-color: var(--text-tertiary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.service-card-num {
    font-size: var(--font-label);
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
}

.service-card-title {
    font-family: var(--font-display);
    font-size: var(--font-h3);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.service-card-body {
    font-size: var(--font-body);
    font-weight: 300;
    line-height: 1.65;
    color: var(--text-secondary);
    flex: 1;
}

.service-cta {
    font-size: var(--font-small);
    font-weight: 500;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 16px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    text-decoration: none;
    transition: gap 150ms ease, opacity 150ms ease;
}

.service-cta:hover {
    gap: 10px;
    opacity: 0.7;
}

.service-cta svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */


/* ==========================================================================
   Contact Subtext
   ========================================================================== */
.contact-subtext {
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 320px;
    margin-top: 16px;
}

/* ==========================================================================
   Responsive — Services + Process
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

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

    .contact-subtext {
        max-width: 100%;
    }
}



/* ==========================================================================
   Dark Mode — Services + Process
   ========================================================================== */
[data-theme="dark"] .service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-body {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.problem-body p {
    font-size: var(--font-body);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ==========================================================================
   Service Card — List + Price
   ========================================================================== */
.service-card-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card-list li {
    font-size: var(--font-small);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-left: 14px;
    position: relative;
}

.service-card-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-primary);
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
}

.service-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-price-label {
    font-size: var(--font-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.service-price-amount {
    font-family: var(--font-display);
    font-size: var(--font-h2);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ==========================================================================
   Section Subtext
   ========================================================================== */
.section-subtext {
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin-top: 16px;
}

/* ==========================================================================
   Is This For You (Fit Section)
   ========================================================================== */
.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.fit-col-title {
    font-family: var(--font-display);
    font-size: var(--font-body-large);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.fit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fit-list li {
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.fit-yes .fit-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 500;
    color: var(--text-primary);
}

.fit-no .fit-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    font-weight: 500;
    color: var(--text-tertiary);
}

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

/* ==========================================================================
   Showcase Grid
   ========================================================================== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    align-items: stretch;
}


.showcase-label {
    font-size: var(--font-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 10px;
    align-self: flex-start;
}

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

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    max-width: 720px;
}

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-text);
    font-size: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    gap: 16px;
}

.faq-question:hover {
    color: var(--text-secondary);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--text-secondary);
    transition: transform 250ms ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease, padding 300ms ease;
}

.faq-answer p {
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-bottom: 20px;
}

/* ==========================================================================
   Intake Form
   ========================================================================== */
.contact-form-wrap {
    max-width: 640px;
    margin-top: 48px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

[data-theme="dark"] .contact-form-wrap {
    background: #0c0c0c;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section-label {
    font-size: var(--font-small);
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: var(--font-small);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.required {
    color: #e53935;
    font-weight: 600;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
    transition: color 150ms ease;
    flex-shrink: 0;
}

.input-wrap:focus-within .input-icon {
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    font-family: var(--font-text);
    font-size: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px 12px 38px;
    outline: none;
    width: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
    background: var(--bg);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.1);
}

.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-captcha {
    display: flex;
    justify-content: flex-start;
}

.form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 4px;
}

.btn-submit {
    flex-shrink: 0;
}

.form-hint {
    font-size: var(--font-small);
    color: var(--text-tertiary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .section-subtext {
        max-width: 100%;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(200, 200, 200, 0.15), transparent),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(180, 180, 180, 0.08), transparent),
        linear-gradient(160deg, #f7f7f8 0%, #ffffff 100%);
}

[data-theme="dark"] .site-footer {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(255, 255, 255, 0.02), transparent),
        #000000;
}

.footer-inner {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    background: radial-gradient(35% 80% at 30% 0%, rgba(128, 128, 128, 0.08), transparent);
}

.footer-border-top,
.footer-border-bottom {
    height: 1px;
    width: 100%;
    background: var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr;
    gap: 24px;
    padding: 40px 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    opacity: 0.25;
    width: max-content;
}

.footer-description {
    font-family: var(--font-text);
    font-size: var(--font-body);
    color: var(--text-secondary);
    max-width: 380px;
    line-height: 1.6;
    text-wrap: balance;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: background 200ms ease, color 200ms ease;
}

.footer-social-link:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.footer-social-icon {
    width: 16px;
    height: 16px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-size: var(--font-small);
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links a {
    font-size: var(--font-body);
    color: var(--text-primary);
    padding: 4px 0;
    width: max-content;
    transition: text-decoration 200ms ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 12px 24px 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: var(--font-small);
    color: var(--text-tertiary);
    font-weight: 200;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 32px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* ==========================================================================
   Prefers-Reduced-Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}