/* ============================================
   甫東科技 FullDot Technology — Style System v2
   Premium Redesign — Refined, Luminous, Cultural
   ============================================ */

:root {
    --primary: #2563eb;
    --accent: #d15b27;
    --accent-light: #fb923c;
    --accent-glow: rgba(209, 91, 39, 0.15);
    --bg-white: #fafaf9;
    --bg-dark: #0a0a0a;
    --bg-cream: #f5f2ee;
    --text-dark: #1c1917;
    --text-muted: #78716c;
    --text-light: #a8a29e;
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(255, 255, 255, 0.1);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', 'Noto Sans TC', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 60px rgba(209, 91, 39, 0.08);
}

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

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

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ---- Custom Cursor ---- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
    transition: transform 0.1s var(--ease-out);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -18px;
    left: -18px;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                top 0.3s var(--ease-out), left 0.3s var(--ease-out),
                border-color 0.3s, background 0.3s;
}

.cursor.cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    top: -28px;
    left: -28px;
    border-color: var(--accent-light);
    background: rgba(209, 91, 39, 0.08);
}

.cursor.cursor-hover .cursor-dot {
    transform: scale(0.5);
}

@media (hover: hover) and (pointer: fine) {
    /* Cursor: none removed to allow system cursor visibility */
}

@media (hover: none), (pointer: coarse) {
    .cursor { display: none !important; }
}

/* ---- Grain Overlay ---- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grainShift 0.5s steps(1) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, -5%); }
    50% { transform: translate(5%, 0); }
    75% { transform: translate(-2%, 5%); }
    100% { transform: translate(0, 0); }
}

/* ---- Skip Link (Accessibility) ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100001;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ---- Focus Styles (Accessibility) ---- */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ---- WebGL ---- */
#webgl-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.8s var(--ease-smooth);
    mix-blend-mode: screen;
    opacity: 0.12;
}

#webgl-container.webgl-dark {
    mix-blend-mode: screen;
}

#webgl-container.webgl-light {
    mix-blend-mode: multiply;
}



/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 48px;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    transition: padding 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s;
}

.navbar.scrolled {
    padding: 14px 48px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
    background: rgba(250, 250, 249, 0.97);
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

.btn-contact {
    border: 1.5px solid var(--text-dark);
    padding: 8px 24px;
    border-radius: 30px;
    transition: all 0.35s var(--ease-out);
}

.btn-contact:hover,
.btn-contact:focus-visible {
    background: var(--text-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(28, 25, 23, 0.15);
}

.btn-contact::after {
    display: none;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    position: absolute;
    left: 0;
    transition: all 0.4s var(--ease-out);
    border-radius: 2px;
}

.menu-toggle span:first-child { top: 2px; }
.menu-toggle span:last-child { bottom: 2px; }

.menu-toggle.active span {
    background: var(--text-dark);
}

.menu-toggle.active span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #f6f1eb;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(209, 91, 39, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.04), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 28px 40px;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.mm-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.mm-brand-en {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.mm-brand-zh {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.mm-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mm-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 14px;
    border-radius: 12px;
    transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    color: var(--text-dark);
    opacity: 0;
    transform: translateX(-16px);
}

.mobile-menu.active .mm-link {
    opacity: 1;
    transform: translateX(0);
}

.mm-link:hover,
.mm-link:focus-visible {
    background: rgba(28, 25, 23, 0.04);
}

.mm-link:active {
    transform: scale(0.98);
}

.mm-link-active {
    background: rgba(209, 91, 39, 0.07);
}

.mm-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.7;
}

.mm-icon svg {
    width: 100%;
    height: 100%;
}

.mm-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mm-label {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-light);
}

.mm-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-dark);
}

.mm-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-light);
    opacity: 0.4;
    transition: color 0.25s, transform 0.25s, opacity 0.25s;
}

.mm-link:hover .mm-arrow {
    color: var(--accent);
    opacity: 1;
    transform: translateX(3px);
}

.mm-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--text-dark);
    color: #fff;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    transform: translateY(8px);
}

.mobile-menu.active .mm-cta {
    opacity: 1;
    transform: translateY(0);
}

.mm-cta:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(209, 91, 39, 0.2);
}

.mm-cta-icon {
    width: 18px;
    height: 18px;
}

.mm-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(28, 25, 23, 0.06);
    opacity: 0;
}

.mobile-menu.active .mm-footer {
    opacity: 1;
}

.mm-footer a,
.mm-footer span {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    transition: color 0.25s;
}

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

.mm-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.3;
    display: inline-block;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 48px 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    will-change: transform;
    animation: heroPan 30s ease-in-out infinite alternate;
}

@keyframes heroPan {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.05) translate(-0.5%, -0.5%); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(160, 195, 225, 0.10) 0%,
            rgba(210, 190, 165, 0.06) 40%,
            rgba(230, 170, 120, 0.10) 100%
        );
    mix-blend-mode: multiply;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(15, 12, 10, 0.60) 0%, transparent 40%),
        linear-gradient(to right, rgba(15, 12, 10, 0.40) 0%, transparent 55%),
        linear-gradient(to bottom, rgba(15, 12, 10, 0.18) 0%, transparent 18%);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(10, 10, 10, 0.25) 100%);
}

.hero-content {
    max-width: 1280px;
    width: 100%;
    position: relative;
    z-index: 3;
}

.reveal-text {
    overflow: hidden;
}

.label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 28px;
    font-weight: 400;
}

.serif-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 400;
}

.italic {
    font-style: italic;
}

.main-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-top: 12px;
    color: #fff;
}

.reveal-text .serif-title,
.reveal-text .main-title,
.hero-footer {
    opacity: 0;
    transform: translateY(40px);
}

.char {
    display: inline-block;
    will-change: transform, opacity;
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 64px;
    gap: 40px;
}

.hero-desc {
    max-width: 420px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.85;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    display: inline;
    color: #fff;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.40);
    letter-spacing: 1px;
    margin-top: 6px;
}

.scroll-reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    height: 60px;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-light);
    animation: scroll-anim 2.5s infinite var(--ease-in-out);
}

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

.scroll-reveal span {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.30);
}

/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-strip {
    overflow: hidden;
    background: var(--bg-dark);
    padding: 20px 0;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.marquee-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
}

.marquee-track span {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.20);
    letter-spacing: 4px;
    padding: 0 24px;
    flex-shrink: 0;
}

.marquee-dot {
    display: inline-block;
    width: 5px !important;
    height: 5px !important;
    background: var(--accent);
    border-radius: 50%;
    vertical-align: middle;
    opacity: 0.4;
    padding: 0 !important;
    letter-spacing: 0 !important;
    font-size: 0 !important;
}

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

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
.section-intro {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    margin-bottom: 64px;
}

.counter {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.counter::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 200;
}

.section-title .en {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.6rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.35;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 500px;
}

/* ============================================
   SERVICES — 3D PERSPECTIVE CAROUSEL
   ============================================ */
.services-section {
    position: relative;
    background: #0a0a0a;
    overflow: hidden;
}

/* ---- Header ---- */
.s3d-wrapper {
    display: block;
    padding: 100px 0 0;
}

.s3d-header {
    text-align: center;
    padding: 0 48px 40px;
    position: relative;
    z-index: 5;
}

.s3d-header .counter {
    color: var(--accent-light);
}

.s3d-header .counter::before {
    background: var(--accent-light);
}

.s3d-header .section-title {
    color: #fff;
}

.s3d-header .section-title .en {
    color: rgba(255,255,255,0.45);
}

.s3d-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.45);
    max-width: 520px;
    margin: 16px auto 0;
    line-height: 1.8;
}

/* ---- Stage ---- */
.s3d-stage {
    position: relative;
    width: 100%;
    height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1600px;
    perspective-origin: 50% 45%;
    padding-bottom: 80px;
}

/* Ambient glow */
.s3d-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    transform: translate(-50%, -55%);
    background: radial-gradient(ellipse, rgba(209,91,39,0.12) 0%, rgba(209,91,39,0.04) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: s3dGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes s3dGlowPulse {
    0%   { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
    100% { opacity: 1;   transform: translate(-50%, -55%) scale(1.15); }
}

/* ---- 3D Scene ---- */
.s3d-scene {
    position: relative;
    width: 420px;
    height: 520px;
    transform-style: preserve-3d;
    z-index: 2;
}

.s3d-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Card ---- */
.s3d-card {
    position: absolute;
    width: 380px;
    height: 490px;
    top: 50%;
    left: 50%;
    margin-left: -190px;
    margin-top: -245px;
    border-radius: 20px;
    overflow: hidden;
    background: #151515;
    backface-visibility: hidden;
    transition: filter 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, filter, opacity;
    cursor: pointer;
    filter: brightness(0.45) blur(2px) saturate(0.6);
    opacity: 0.5;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.s3d-card.s3d-active {
    filter: brightness(1) blur(0) saturate(1);
    opacity: 1;
    box-shadow:
        0 25px 80px rgba(209,91,39,0.2),
        0 8px 30px rgba(0,0,0,0.6);
    z-index: 10;
}

.s3d-card.s3d-adjacent {
    filter: brightness(0.55) blur(1px) saturate(0.7);
    opacity: 0.7;
}

.s3d-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Card image */
.s3d-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.s3d-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.s3d-card.s3d-active .s3d-card-img img {
    transform: scale(1.05);
}

.s3d-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, #151515 100%);
    pointer-events: none;
}

/* Card body */
.s3d-card-body {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.s3d-card-num {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: -20px;
    right: 24px;
    line-height: 1;
    pointer-events: none;
    transition: color 0.6s ease;
}

.s3d-card.s3d-active .s3d-card-num {
    color: rgba(209,91,39,0.12);
}

.s3d-card-tag {
    font-size: 0.65rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--accent-light);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.s3d-card-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0;
}

.s3d-card-en {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.s3d-card-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 16px 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.s3d-card.s3d-active .s3d-card-line {
    transform: scaleX(1);
}

.s3d-card-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.s3d-card.s3d-active .s3d-card-desc {
    color: rgba(255,255,255,0.65);
}

.s3d-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-top: auto;
    padding-top: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.s3d-card.s3d-active .s3d-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.s3d-card-cta svg {
    transition: transform 0.3s ease;
}

.s3d-card.s3d-active:hover .s3d-card-cta svg {
    transform: translateX(4px);
}

/* ---- Navigation ---- */
.s3d-nav {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.s3d-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(8px);
}

.s3d-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(209,91,39,0.1);
    transform: scale(1.08);
}

.s3d-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.s3d-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.s3d-dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--accent);
}

/* ---- Counter ---- */
.s3d-counter {
    position: absolute;
    top: 20px;
    right: 48px;
    z-index: 10;
    font-family: var(--font-serif);
    font-style: italic;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: rgba(255,255,255,0.3);
}

.s3d-counter-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
    transition: all 0.3s ease;
    min-width: 2ch;
    text-align: right;
}

.s3d-counter-sep {
    font-size: 1rem;
    margin: 0 2px;
}

.s3d-counter-total {
    font-size: 1rem;
}

/* ---- Mobile: stacked cards ---- */
.services-mobile-stack {
    display: none;
    padding: 80px 0;
    background: var(--bg-white);
}

.mobile-cards {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.mobile-service-card {
    padding: 36px 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.mobile-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s var(--ease-out);
}

.mobile-service-card:hover::before {
    height: 100%;
}

.mobile-service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-service-card .card-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 20px;
}

.mobile-service-card .card-tag {
    font-size: 0.65rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.mobile-service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mobile-service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-section {
    padding: 120px 0 80px;
    background: #0f1923;
    color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.portfolio-section .counter {
    color: var(--accent-light);
}

.portfolio-section .counter::before {
    background: var(--accent-light);
}

.portfolio-section .section-title {
    color: #fff;
}

.portfolio-section .section-desc {
    color: rgba(180, 200, 220, 0.45);
}

.portfolio-carousel {
    position: relative;
    padding: 0 48px 40px;
}

.portfolio-carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-carousel-track {
    display: flex;
    transition: transform 0.7s var(--ease-out);
    will-change: transform;
}

.portfolio-slide {
    flex: 0 0 33.333%;
    padding: 0 16px;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.portfolio-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.carousel-btn:hover {
    border-color: var(--accent-light);
    background: rgba(209, 91, 39, 0.12);
    transform: scale(1.08);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    padding: 0;
}

.carousel-dot.active {
    background: var(--accent-light);
    transform: scale(1.3);
}

.carousel-dot:hover:not(.active) {
    background: rgba(255,255,255,0.35);
}

.portfolio-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 48px 40px;
    scroll-snap-type: x mandatory;
    cursor: grab;
}

.portfolio-scroll-wrapper:active {
    cursor: grabbing;
}

.portfolio-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.portfolio-track {
    display: flex;
    gap: 32px;
    width: max-content;
}

.portfolio-item, .portfolio-slide {
    width: 420px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.5s var(--ease-out);
}

.portfolio-item:hover, .portfolio-slide:hover {
    transform: translateY(-8px);
}

.portfolio-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #141f2b;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.portfolio-item:hover .portfolio-img-wrapper img,
.portfolio-slide:hover .portfolio-img-wrapper img {
    transform: scale(1.06);
}

.portfolio-info {
    padding: 20px 0;
}

.portfolio-category {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent-light);
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
    color: #fff;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: rgba(160, 195, 225, 0.40);
    margin-top: 4px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 140px 48px;
    background: #fff;
    position: relative;
    z-index: 2;
}

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

.about-text-content .serif-title {
    margin-top: 8px;
}

.large-para {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    line-height: 1.65;
    margin-top: 32px;
    color: var(--text-dark);
}

.about-detail {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 24px;
    line-height: 1.85;
    max-width: 600px;
}

.about-highlights {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
}

.highlight-item {
    text-align: left;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.highlight-number .plus {
    color: var(--accent);
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* ============================================
   PROCESS — ILLUSTRATED COMIC SVG
   ============================================ */
.proc-section {
    padding: 120px 0;
    background: var(--bg-cream);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.proc-container {
    max-width: 1280px;
    margin: 0 auto;
}

.proc-intro {
    margin-bottom: 60px;
}

/* Connector line between cards */
.proc-connector {
    display: block;
    width: 100%;
    height: 40px;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.proc-connector.visible {
    opacity: 1;
}

.proc-connector-path {
    stroke-dashoffset: 0;
}

/* Cards grid */
.proc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 0 48px;
}

/* Individual card */
.proc-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
}

.proc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.proc-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(209, 91, 39, 0.08),
        0 8px 24px rgba(0,0,0,0.06);
}

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

/* Illustration area */
.proc-card-illu {
    padding: 28px 20px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(209,91,39,0.03), rgba(209,91,39,0.01));
    position: relative;
    min-height: 180px;
}

.proc-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* SVG animation states — initial (hidden) */
.proc-card .svg-bubble-l,
.proc-card .svg-bubble-r { opacity: 0; transform: translateY(10px) scale(0.8); }
.proc-card .svg-blocks rect { opacity: 0; transform: scale(0.5); }
.proc-card .svg-check { stroke-dasharray: 20; stroke-dashoffset: 20; }
.proc-card .svg-code line { stroke-dasharray: 60; stroke-dashoffset: 60; }
.proc-card .svg-progress-fill { width: 0; }
.proc-card .svg-rocket { transform: translateY(20px); opacity: 0; }
.proc-card .svg-flame ellipse { transform: scaleY(0); transform-origin: top; }
.proc-card .svg-cloud-l { transform: translateX(-30px); }
.proc-card .svg-cloud-r { transform: translateX(30px); }
.proc-card .svg-stars .svg-star { transform: scale(0); }
.proc-card .svg-shield { opacity: 0; transform: scale(0.5); }
.proc-card .svg-gear { transform-origin: center; }
.proc-card .svg-pencil { opacity: 0; transform: translate(35px,155px) rotate(-45deg) translateX(-20px); }
.proc-card .svg-sparkle circle { opacity: 0; transform: scale(0); }
.proc-card .svg-design-panel { opacity: 0; transform: translateX(10px); }

/* SVG animation states — animated (visible) */
.proc-card.animated .svg-bubble-l { animation: bubblePop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }
.proc-card.animated .svg-bubble-r { animation: bubblePop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards; }
.proc-card.animated .svg-blocks rect { animation: blockReveal 0.5s ease forwards; }
.proc-card.animated .svg-blocks rect:nth-child(1) { animation-delay: 0.2s; }
.proc-card.animated .svg-blocks rect:nth-child(2) { animation-delay: 0.35s; }
.proc-card.animated .svg-blocks rect:nth-child(3) { animation-delay: 0.5s; }
.proc-card.animated .svg-blocks rect:nth-child(4) { animation-delay: 0.65s; }
.proc-card.animated .svg-blocks rect:nth-child(5) { animation-delay: 0.8s; }
.proc-card.animated .svg-check { animation: checkDraw 0.4s ease forwards 0.9s; }
.proc-card.animated .svg-code line { animation: codeLine 0.4s ease forwards; }
.proc-card.animated .svg-code line:nth-child(1) { animation-delay: 0.1s; }
.proc-card.animated .svg-code line:nth-child(2) { animation-delay: 0.2s; }
.proc-card.animated .svg-code line:nth-child(3) { animation-delay: 0.3s; }
.proc-card.animated .svg-code line:nth-child(4) { animation-delay: 0.4s; }
.proc-card.animated .svg-code line:nth-child(5) { animation-delay: 0.5s; }
.proc-card.animated .svg-code line:nth-child(6) { animation-delay: 0.6s; }
.proc-card.animated .svg-code line:nth-child(7) { animation-delay: 0.7s; }
.proc-card.animated .svg-code line:nth-child(8) { animation-delay: 0.8s; }
.proc-card.animated .svg-code line:nth-child(9) { animation-delay: 0.9s; }
.proc-card.animated .svg-code line:nth-child(10) { animation-delay: 1.0s; }
.proc-card.animated .svg-design-panel { animation: slideInRight 0.5s ease forwards 0.6s; }
.proc-card.animated .svg-rocket { animation: rocketLaunch 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; }
.proc-card.animated .svg-flame ellipse { animation: flameGrow 0.5s ease forwards 0.4s; }
.proc-card.animated .svg-cloud-l { animation: cloudDriftL 1.2s ease forwards 0.3s; }
.proc-card.animated .svg-cloud-r { animation: cloudDriftR 1.2s ease forwards 0.4s; }
.proc-card.animated .svg-stars .svg-star:nth-child(1) { animation: starPop 0.4s ease forwards 0.6s; }
.proc-card.animated .svg-stars .svg-star:nth-child(2) { animation: starPop 0.4s ease forwards 0.8s; }
.proc-card.animated .svg-shield { animation: shieldAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards; }
.proc-card.animated .svg-gear { animation: gearSpin 3s linear infinite; }
.proc-card.animated .svg-pencil { animation: pencilSlide 0.6s ease forwards 0.5s; }
.proc-card.animated .svg-sparkle circle:nth-child(1) { animation: sparklePop 0.5s ease forwards 0.8s; }
.proc-card.animated .svg-sparkle circle:nth-child(2) { animation: sparklePop 0.5s ease forwards 1s; }
.proc-card.animated .svg-sparkle circle:nth-child(3) { animation: sparklePop 0.5s ease forwards 1.1s; }

/* Hover re-triggers subtle motion */
.proc-card:hover .svg-person-l { animation: personBounce 0.5s ease; }
.proc-card:hover .svg-person-r { animation: personBounce 0.5s ease 0.1s; }
.proc-card:hover .svg-gear { animation: gearSpin 1.5s linear infinite; }
.proc-card:hover .svg-flame ellipse { animation: flamePulse 0.4s ease infinite alternate; }
.proc-card:hover .svg-rocket { animation: rocketHover 1.5s ease-in-out infinite alternate; }

/* ---- Keyframes ---- */
@keyframes bubblePop {
    0%   { opacity: 0; transform: translateY(10px) scale(0.8); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.05); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes blockReveal {
    0%   { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes codeLine {
    to { stroke-dashoffset: 0; }
}

@keyframes slideInRight {
    0%   { opacity: 0; transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes rocketLaunch {
    0%   { transform: translateY(20px); opacity: 0; }
    40%  { opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes flameGrow {
    0%   { transform: scaleY(0); }
    60%  { transform: scaleY(1.2); }
    100% { transform: scaleY(1); }
}

@keyframes flamePulse {
    0%   { transform: scaleY(0.85) scaleX(0.9); }
    100% { transform: scaleY(1.15) scaleX(1.1); }
}

@keyframes cloudDriftL {
    0%   { transform: translateX(-30px); opacity: 0.12; }
    100% { transform: translateX(0); opacity: 0.12; }
}

@keyframes cloudDriftR {
    0%   { transform: translateX(30px); opacity: 0.12; }
    100% { transform: translateX(0); opacity: 0.12; }
}

@keyframes starPop {
    0%   { transform: scale(0) rotate(0deg); }
    60%  { transform: scale(1.3) rotate(15deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes shieldAppear {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes gearSpin {
    to { transform: translate(195px, 35px) rotate(360deg); }
}

@keyframes pencilSlide {
    0%   { opacity: 0; transform: translate(35px,155px) rotate(-45deg) translateX(-20px); }
    100% { opacity: 1; transform: translate(35px,155px) rotate(-45deg) translateX(0); }
}

@keyframes sparklePop {
    0%   { opacity: 0; transform: scale(0); }
    50%  { opacity: 0.8; transform: scale(1.5); }
    100% { opacity: 0.6; transform: scale(1); }
}

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

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

/* Card body */
.proc-card-body {
    padding: 24px 28px 32px;
    position: relative;
}

.proc-num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    opacity: 0.08;
    position: absolute;
    top: 12px;
    right: 20px;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.proc-card:hover .proc-num {
    opacity: 0.18;
}

.proc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.proc-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ============================================
   TRUST
   ============================================ */
.trust-section {
    padding: 120px 48px;
    background: #f0ebe4;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(230, 170, 120, 0.10), transparent 55%),
        radial-gradient(ellipse at 75% 70%, rgba(160, 195, 225, 0.08), transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.35), transparent 70%);
}

.trust-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.trust-header {
    margin-bottom: 16px;
}

.trust-counter {
    color: var(--accent);
}

.trust-counter::before {
    background: var(--accent);
}

.trust-section .section-title {
    color: var(--text-dark);
}

.trust-lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.85;
    margin-bottom: 56px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trust-logo-card {
    position: relative;
    padding: 0;
    border: 1px solid rgba(28, 25, 23, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    text-align: center;
    aspect-ratio: 4 / 3;
}

.trust-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.7s var(--ease-out);
}

.trust-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: all 0.4s var(--ease-out);
}

.trust-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
}

.trust-logo-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.trust-logo-card:hover .trust-card-bg {
    transform: scale(1.06);
}

.trust-logo-card:hover .trust-card-overlay {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.trust-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(255,255,255,0.6);
}

.trust-industry {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}

.trust-quote {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(28, 25, 23, 0.08);
    text-align: center;
}

.trust-quote blockquote {
    max-width: 700px;
    margin: 0 auto;
}

.trust-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    text-align: center;
    padding: 140px 48px;
    background: var(--bg-white);
    position: relative;
    z-index: 1;
}

.cta-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0.7;
}

.cta .serif-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.magnetic-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 40px;
    background: var(--text-dark);
    color: #fff;
    border-radius: 50px;
    margin-top: 40px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.4s var(--ease-out);
    border: 2px solid var(--text-dark);
}

.magnetic-btn:hover,
.magnetic-btn:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(209, 91, 39, 0.30);
}

.magnetic-btn svg {
    width: 20px;
    fill: #fff;
    transition: transform 0.4s var(--ease-out);
}

.magnetic-btn:hover svg {
    transform: translateX(5px);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    padding: 120px 48px;
    background: #f5f5f4;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 24px;
    line-height: 1.85;
}

.contact-details {
    font-style: normal;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.contact-item a,
.contact-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-full {
    grid-column: 1 / -1;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 14px 16px;
    border: 1px solid #d6d3d1;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    color: var(--text-dark);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(209, 91, 39, 0.10), inset 0 1px 2px rgba(0,0,0,0.03);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    grid-column: 1 / -1;
    padding: 16px 40px;
    background: var(--text-dark);
    color: #fff;
    border: 2px solid var(--text-dark);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    justify-self: start;
}

.submit-btn:hover,
.submit-btn:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(209, 91, 39, 0.25);
}

.form-success-message {
    grid-column: 1 / -1;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 48px 40px;
    background: var(--bg-dark);
    color: #fff;
    position: relative;
    z-index: 2;
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-logo {
    font-size: clamp(4rem, 14vw, 12rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.85;
    text-align: center;
    margin-bottom: 60px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    position: relative;
    cursor: default;
    display: flex;
    justify-content: center;
    gap: 0;
}

.fl-char {
    display: inline-block;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    transition: color 0.5s ease, -webkit-text-stroke 0.5s ease,
                text-shadow 0.5s ease, transform 0.4s var(--ease-out);
    will-change: transform, color;
}

.fl-char:hover {
    color: rgba(255, 255, 255, 0.15);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
    text-shadow:
        0 0 40px rgba(230, 170, 120, 0.25),
        0 0 80px rgba(160, 195, 225, 0.15),
        0 0 120px rgba(230, 170, 120, 0.08);
    transform: translateY(-4px);
}

.fl-char.fl-glow-1 {
    color: rgba(255, 255, 255, 0.06);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
    text-shadow: 0 0 30px rgba(230, 170, 120, 0.08);
}

.fl-char.fl-glow-2 {
    color: rgba(255, 255, 255, 0.12);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.20);
    text-shadow:
        0 0 30px rgba(230, 170, 120, 0.15),
        0 0 60px rgba(160, 195, 225, 0.08);
}

.fl-char.fl-glow-3 {
    color: rgba(255, 255, 255, 0.20);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.30);
    text-shadow:
        0 0 40px rgba(230, 170, 120, 0.30),
        0 0 80px rgba(160, 195, 225, 0.15),
        0 0 120px rgba(230, 170, 120, 0.08);
    transform: translateY(-3px);
}

.fl-char {
    opacity: 0;
    transform: translateY(30px);
}

.footer-logo.fl-visible .fl-char {
    opacity: 1;
    transform: translateY(0);
}

.footer-logo.fl-visible .fl-char:nth-child(1) { transition-delay: 0.0s; }
.footer-logo.fl-visible .fl-char:nth-child(2) { transition-delay: 0.06s; }
.footer-logo.fl-visible .fl-char:nth-child(3) { transition-delay: 0.12s; }
.footer-logo.fl-visible .fl-char:nth-child(4) { transition-delay: 0.18s; }
.footer-logo.fl-visible .fl-char:nth-child(5) { transition-delay: 0.24s; }
.footer-logo.fl-visible .fl-char:nth-child(6) { transition-delay: 0.30s; }
.footer-logo.fl-visible .fl-char:nth-child(7) { transition-delay: 0.36s; }

/* ============================================================
   UPGRADED PREMIUM FOOTER — GLOBAL SYSTEM (DO NOT MODIFY)
   PROTECTED: This layout is optimized for global RWD & E-E-A-T.
   ============================================================ */
.footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #0f1923;
    color: rgba(255, 255, 255, 0.65);
    padding: 100px 0 0;
    font-family: var(--font-sans);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col-brand .footer-logo-small {
    height: 48px;
    width: auto;
    margin-bottom: 24px;
    display: block;
}

.brand-desc {
    font-size: 0.95rem;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 32px !important;
}

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

.footer-socials a {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
    color: #fff !important;
    margin: 0 !important;
}

.footer-socials a:hover {
    background: var(--accent) !important;
    transform: translateY(-3px) !important;
}

/* Titles */
.footer-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 32px !important;
    position: relative !important;
    padding-bottom: 12px !important;
    text-transform: none !important;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

/* Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.9rem !important;
    transition: all 0.25s !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-bottom: 0 !important;
    display: block !important;
}

.footer-links a:hover {
    color: var(--accent) !important;
    padding-left: 8px !important;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.contact-item a {
    color: inherit !important;
    display: inline !important;
    margin: 0 !important;
}

.contact-item a:hover {
    color: #fff !important;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    text-align: left !important;
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
    margin: 0 !important;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35) !important;
    transition: color 0.2s !important;
    display: inline !important;
    margin: 0 !important;
}

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

.footer-bottom-links .sep {
    color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@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;
    }

    .reveal-text .serif-title,
    .reveal-text .main-title,
    .hero-footer {
        opacity: 1;
        transform: none;
    }

    .char {
        opacity: 1 !important;
        transform: none !important;
    }

    #webgl-container,
    .grain-overlay {
        display: none;
    }

    .cursor { display: none; }
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .cursor { display: none !important; }

    .navbar {
        padding: 16px 24px;
    }

    .navbar.scrolled {
        padding: 12px 24px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .main-title {
        font-size: clamp(2.5rem, 7vw, 5rem);
    }

    .hero-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .scroll-reveal {
        display: none;
    }

    .marquee-strip {
        padding: 14px 0;
    }

    .s3d-wrapper {
        display: none !important;
    }

    .services-mobile-stack {
        display: block;
    }

    .services-section {
        background: var(--bg-white);
    }

    .section-intro {
        padding: 0 24px;
    }

    .portfolio-section {
        padding: 80px 0 60px;
    }

    .portfolio-carousel {
        padding: 0 24px 32px;
    }

    .portfolio-slide {
        flex: 0 0 50% !important;
    }

    .portfolio-scroll-wrapper {
        padding: 0 24px 32px;
    }

    .portfolio-item {
        width: 340px;
    }

    .about {
        padding: 80px 24px;
    }

    .proc-section { padding: 80px 0; }
    .proc-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 24px; }
    .proc-connector { display: none; }

    .trust-section { padding: 80px 24px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }

    .cta {
        padding: 80px 24px;
    }

    .contact-section {
        padding: 80px 24px;
    }

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

    .footer {
        padding: 60px 24px 32px;
    }

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

    #webgl-container {
        display: none;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 640px)
   ============================================ */
@media (max-width: 640px) {
    .hero {
        padding: 100px 16px 48px;
        min-height: 100svh;
    }

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

    .serif-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .main-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        letter-spacing: -1px;
    }

    .hero-footer {
        margin-top: 40px;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section-intro {
        padding: 0 16px;
        margin-bottom: 40px;
    }

    .marquee-strip { padding: 10px 0; }
    .marquee-track span { font-size: 0.9rem; letter-spacing: 2px; padding: 0 16px; }

    .services-mobile-stack {
        padding: 60px 0;
    }

    .portfolio-section {
        padding: 60px 0 40px;
    }

    .portfolio-carousel {
        padding: 0 16px 24px;
    }

    .portfolio-slide {
        flex: 0 0 100% !important;
        padding: 0 8px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

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

    .portfolio-scroll-wrapper {
        padding: 0 16px 24px;
    }

    .portfolio-item {
        width: 300px;
    }

    .portfolio-info h3 {
        font-size: 1.2rem;
    }

    .about {
        padding: 60px 16px;
    }

    .large-para {
        font-size: 1.15rem;
    }

    .about-detail {
        font-size: 0.95rem;
    }

    .about-highlights {
        flex-direction: column;
        gap: 24px;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .proc-section { padding: 60px 0; }
    .proc-cards { grid-template-columns: 1fr; padding: 0 16px; }
    .proc-card-illu { min-height: 150px; padding: 20px 16px 8px; }

    .trust-section { padding: 60px 16px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-logo-card { padding: 24px 20px; }
    .trust-lead { font-size: 0.95rem; margin-bottom: 40px; }

    .cta {
        padding: 60px 16px;
    }

    .cta .serif-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .magnetic-btn {
        padding: 16px 32px;
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 60px 16px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group,
    .form-full {
        grid-column: 1;
    }

    .footer {
        padding: 48px 16px 24px;
    }

    .footer-logo {
        font-size: 2.5rem;
        margin-bottom: 32px;
        letter-spacing: -1px;
    }

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

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (forced-colors: active) {
    .service-panel,
    .mobile-service-card {
        border: 2px solid;
    }

    .btn-contact,
    .magnetic-btn,
    .submit-btn {
        border: 2px solid;
    }
}
