/* ============================================================
   CarlteQ — Global Stylesheet v2
   Dark premium design system with gold accents
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --bg-void: #04070e;
    --bg-surface: #07111c;
    --bg-elevated: #0c1a2b;
    --bg-card: rgba(9, 19, 32, 0.6);
    --gold-light: #f9df9f;
    --gold-main: #d4af37;
    --gold-dark: #aa7f1d;
    --gold-border: rgba(212, 175, 55, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #cec3c5;
    --text-faint: #555555;
    --text-muted: #8a8a8a;
    --font-main: 'Jost', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --border-soft: 1px solid rgba(255, 255, 255, 0.06);
    --border-gold: 1px solid rgba(212, 175, 55, 0.25);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: clip;
    line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
button { cursor: pointer; }
::selection { background: var(--gold-main); color: #000; }

/* ---------- Entrance Overlay ---------- */
#entrance {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg-void);
    display: flex; align-items: center; justify-content: center;
}
#entrance.done { pointer-events: none; }
.entrance-inner { text-align: center; }
.entrance-logo {
    height: 3rem; width: auto; margin: 0 auto;
    opacity: 0;
}

/* ---------- Utilities ---------- */
.container { max-width: 1250px; margin: 0 auto; padding: 0 5rem; }
.section-padding { padding: 8rem 0; position: relative; }
.gold-gradient {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; font-weight: 700; }
.section-subtitle { color: var(--text-secondary); font-size: 1.15rem; max-width: 640px; line-height: 1.8; }
.center { text-align: center; }
.center .section-subtitle { margin: 0 auto; }

/* ---------- Reveal animation (legacy pages) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Animated light-gold grid (stronger, slowly drifting) */
.grid-bg {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.065) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.065) 1px, transparent 1px),
        radial-gradient(1200px 600px at 50% 20%, rgba(212, 175, 55, 0.08), transparent 70%);
    background-size: 80px 80px, 80px 80px, 100% 100%;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}
.grid-animated {
    animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: -80px -80px, -80px -80px, 0 0; }
}

/* ---------- Navigation ---------- */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 1.5rem 5rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nav-scrolled {
    padding: 1rem 4rem;
    background: rgba(4, 7, 14, 0.92);
    border-bottom: var(--border-soft);
}
@supports (backdrop-filter: blur(1px)) {
    .nav-scrolled {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 2.1rem; width: auto; }
.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1.5px;
    position: relative; transition: color 0.3s;
}
.nav-links > a:not(.btn-primary)::after,
.dropdown > .dropdown-toggle::after {
    content: ''; position: absolute;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    width: 0%; height: 2px;
    background: var(--gold-main);
    transition: width 0.3s var(--ease-out-expo);
}
.nav-links > a:not(.btn-primary):hover::after,
.dropdown:hover > .dropdown-toggle::after { width: 100%; }
.nav-links a:hover { color: var(--gold-main); }
.nav-links .active { color: var(--gold-main); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > .dropdown-toggle { cursor: pointer; }
.dropdown-content {
    display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    background: var(--bg-elevated); min-width: 260px;
    border: var(--border-soft); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content { display: block; }
.dropdown-content a {
    display: block; padding: 1rem 1.5rem;
    border-bottom: var(--border-soft);
    transition: var(--transition-fast);
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background: rgba(212, 175, 55, 0.08); color: var(--gold-main); }
.dropdown-content a.active { color: var(--gold-main); border-left: 3px solid var(--gold-main); background: rgba(212, 175, 55, 0.06); }

/* Primary button */
.btn-primary {
    background: var(--gold-main); color: #000;
    padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px;
    transition: var(--transition-fast);
    display: inline-block;
    position: relative; overflow: hidden;
}
.nav-links .btn-primary,
.nav-links .btn-primary:hover { color: #000; }
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3); }
.btn-primary:hover::before { opacity: 1; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

.btn-ghost {
    color: var(--text-secondary);
    padding: 1rem 2.5rem; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition-fast);
    display: inline-block;
}
.btn-ghost:hover {
    color: var(--gold-main);
    border-color: var(--gold-border);
    background: rgba(212, 175, 55, 0.05);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column; gap: 6px;
    background: none; border: none;
    padding: 0.5rem; z-index: 110;
}
.nav-toggle span {
    display: block; width: 26px; height: 2px;
    background: var(--gold-main);
    transition: var(--transition-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; text-align: center;
}
#hero-code {
    position: absolute; inset: 0;
    z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(10, 20, 40, 0.28) 0%,
        rgba(6, 12, 26, 0.68) 55%,
        var(--bg-void) 100%
    );
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 1000px; padding: 0 3rem;
}
.hero-eyebrow {
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 4px; font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
}
.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800; line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 2rem;
    overflow: hidden;
}
.hero-line {
    display: block; overflow: hidden;
}
.hero-line-inner {
    display: block;
    transform: translateY(110%);
}
.hero-sub {
    font-size: 1.2rem; color: var(--text-secondary);
    max-width: 700px; margin: 0 auto 2.5rem;
    font-weight: 300; line-height: 1.8;
    opacity: 0;
}
.hero-cta {
    display: flex; gap: 1rem;
    justify-content: center;
    opacity: 0;
}
.hero-scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 0.75rem;
    z-index: 2;
    opacity: 0;
}
.hero-scroll-indicator span {
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 3px; color: var(--text-faint);
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(180deg, var(--gold-main), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Marquee ---------- */
.marquee-section {
    padding: 2rem 0;
    border-top: var(--border-soft);
    border-bottom: var(--border-soft);
    overflow: hidden;
    background: var(--bg-surface);
}
.marquee-track { display: flex; width: 100%; overflow: hidden; }
.marquee-content {
    display: flex; align-items: center; gap: 3rem;
    animation: marqueeScroll 25s linear infinite;
    padding-right: 3rem;
    white-space: nowrap;
}
.marquee-content span {
    font-size: 1rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--text-faint);
}
.marquee-content .marquee-dot {
    width: 4px; height: 4px;
    background: var(--gold-main);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    color: transparent;
    font-size: 0;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Sticky Scroll Section ---------- */
.sticky-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
    align-items: start;
}
.sticky-sticky {
    position: sticky; top: 8rem;
    padding-right: 2rem;
}
.sticky-right { padding: 2rem 0; }
.sticky-card {
    padding: 3rem;
    background: var(--bg-card);
    border: var(--border-soft);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.sticky-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; width: 3px; height: 0;
    background: var(--gold-main);
    transition: height 0.6s var(--ease-out-expo);
}
.sticky-card.active::before { height: 100%; }
.sticky-card:hover {
    border-color: var(--gold-border);
    transform: translateX(8px);
}
.sticky-card-number {
    font-size: 0.8rem; font-weight: 600;
    color: var(--gold-main);
    text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 1rem;
}
.sticky-card h3 {
    font-size: 1.8rem; margin-bottom: 1rem;
    font-weight: 600;
}
.sticky-card p {
    color: var(--text-secondary);
    font-size: 1.05rem; line-height: 1.8;
}
.stats-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    margin-top: 1rem;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 3rem; font-weight: 800;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem; color: var(--text-faint);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ---------- Vision / Glass Cards ---------- */
.vision-section { background: radial-gradient(1100px 520px at 50% 0%, #0d1f3a, var(--bg-void) 75%), var(--bg-surface); }
.vision-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.glass-card {
    background: rgba(13, 27, 45, 0.82);
    border: var(--border-soft);
    padding: 4rem; border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    transition: var(--transition-smooth);
}
.glass-card::after {
    content: ''; position: absolute;
    inset: 0; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.glass-card:hover::after { opacity: 1; }
.glass-card:hover { border-color: var(--gold-border); }
.glass-card-icon {
    width: 48px; height: 48px;
    color: var(--gold-main);
    margin-bottom: 2rem;
}
.glass-card-icon svg { width: 100%; height: 100%; }
.glass-card h3 {
    font-size: 2rem; margin-bottom: 1.5rem;
    color: var(--gold-main); font-weight: 600;
    position: relative; z-index: 1;
}
.glass-card p {
    color: var(--text-secondary); font-size: 1.1rem;
    line-height: 1.8; position: relative; z-index: 1;
}

/* ---------- Horizontal Scroll Section ---------- */
.hscroll-section {
    padding: 8rem 0 0;
    overflow: hidden;
}
.hscroll-header { text-align: center; padding: 0 3rem; margin-bottom: 4rem; }
.hscroll-wrapper {
    width: 100%; overflow: hidden;
}
.hscroll-track {
    display: flex; gap: 2rem;
    padding: 0 4rem 4rem;
    width: fit-content;
    will-change: transform;
}
.hscroll-card {
    width: 70vw; max-width: 900px; min-height: 550px;
    position: relative; border-radius: var(--radius-xl);
    overflow: hidden; flex-shrink: 0;
}
.hscroll-card-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: grayscale(80%);
    transition: filter 0.6s;
}
.hscroll-card:hover .hscroll-card-bg { filter: grayscale(40%); }
.hscroll-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,
        rgba(7, 15, 30, 0.94) 0%,
        rgba(9, 18, 36, 0.74) 50%,
        rgba(12, 24, 46, 0.5) 100%
    );
}
.hscroll-card-content {
    position: relative; z-index: 2;
    padding: 4rem;
    display: flex; flex-direction: column;
    justify-content: center;
    height: 100%;
}
.hscroll-card-content h3 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    font-weight: 700; line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hscroll-card-content p {
    color: var(--text-secondary); font-size: 1.1rem;
    max-width: 500px; margin-bottom: 2rem; line-height: 1.8;
}
.hscroll-card-list {
    list-style: none; margin-bottom: 2.5rem;
    display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.hscroll-card-list li {
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 999px;
    font-size: 0.85rem; color: var(--gold-light);
    text-transform: uppercase; letter-spacing: 1px;
}

/* ---------- Founder ---------- */
.founder-section { position: relative; }
.founder-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
}
.founder-portrait {
    position: relative;
    z-index: 1;
}
.founder-portrait img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    filter: grayscale(90%);
    border: var(--border-soft);
    transition: filter 0.6s, border-color 0.6s, transform 0.6s;
}
.founder-portrait:hover img {
    filter: grayscale(25%);
    border-color: var(--gold-border);
    transform: translate(-4px, -4px);
}
.founder-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 175, 55, 0.28);
    transform: translate(14px, 14px);
    z-index: -1;
}
.founder-info { min-width: 0; }
.founder-name {
    font-size: 1.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
}
.founder-role {
    font-size: 0.78rem;
    color: var(--gold-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-mono);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}
.founder-quote {
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 2rem 0;
    padding-left: 1.6rem;
    border-left: 3px solid var(--gold-main);
}
.founder-blurb {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 620px;
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative; padding: 10rem 0;
    text-align: center; overflow: hidden;
}
#cta-code {
    position: absolute; inset: 0;
}
.cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        var(--bg-void) 0%,
        rgba(9, 18, 36, 0.55) 30%,
        rgba(9, 18, 36, 0.55) 70%,
        var(--bg-void) 100%
    );
}
.cta-content {
    position: relative; z-index: 2;
}

/* ---------- Footer ---------- */
footer {
    background: linear-gradient(180deg, #07111c, #02050b 40%);
    padding: 5rem 0 2rem;
    border-top: var(--border-gold);
}
.footer-inner {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem; align-items: start;
}
.footer-logo { height: 2.5rem; width: auto; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-secondary); font-size: 1rem; }
.footer-socials { display: flex; gap: 0.9rem; margin-top: 1.5rem; }
.footer-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08); color: var(--text-secondary);
    transition: var(--transition-fast);
}
.footer-socials a:hover {
    color: var(--gold-main); border-color: var(--gold-border);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15);
}
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h4 {
    color: var(--gold-main); text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 1.25rem;
}
.footer-col a, .footer-col span {
    display: block; color: var(--text-secondary);
    font-size: 1rem; margin-bottom: 0.75rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold-main); }
.footer-copy {
    text-align: center; margin-top: 3rem;
    padding-top: 2rem; border-top: var(--border-soft);
    color: var(--text-faint); font-size: 0.85rem;
}

/* ============================================================
   Inner Page Styles (Service, Portfolio, Contact)
   ============================================================ */

/* Page Header */
.page-header {
    padding: 12rem 0 6rem;
    background: var(--bg-surface);
    text-align: center;
    border-bottom: var(--border-soft);
}
.page-header .eyebrow {
    color: var(--gold-main); text-transform: uppercase;
    letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 1rem;
}
.page-header h1 {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    line-height: 1.1; margin-bottom: 1.5rem;
}
.page-header .lead {
    color: var(--text-secondary); font-size: 1.2rem;
    max-width: 600px; margin: 0 auto;
}

/* Service Layout */
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.service-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.service-text p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.8; }
.service-list { list-style: none; margin-top: 2rem; }
.service-list li {
    margin-bottom: 1rem; font-size: 1.05rem;
    display: flex; align-items: center; gap: 1rem;
    color: var(--text-secondary);
}
.service-list li::before { content: '\25A0'; color: var(--gold-main); font-size: 0.7rem; flex-shrink: 0; }
.service-img {
    width: 100%; border-radius: var(--radius-md);
    border: var(--border-soft);
    filter: grayscale(80%); transition: var(--transition-smooth);
}
.service-img:hover { filter: grayscale(0%); border-color: var(--gold-border); }

/* Tech Strip */
.tech-strip {
    background: var(--bg-surface);
    padding: 4rem 0;
    border-top: var(--border-soft);
}
.tech-strip .container { text-align: center; }
.tech-strip h4 {
    margin-bottom: 2rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem;
}
.tech-strip-items {
    display: flex; justify-content: center; gap: 2rem;
    flex-wrap: wrap; font-size: 1.2rem; font-weight: 600; align-items: center;
}
.tech-strip-items .sep { color: rgba(255, 255, 255, 0.15); }

/* Portfolio */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.filter-btn {
    background: transparent; color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1); padding: 0.6rem 1.5rem;
    border-radius: 999px; font-family: inherit; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 1px;
    transition: var(--transition-fast);
}
.filter-btn:hover { color: var(--gold-main); border-color: var(--gold-border); }
.filter-btn.active { background: var(--gold-main); color: #000; border-color: var(--gold-main); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card {
    background: var(--bg-surface);
    border: var(--border-soft); border-radius: var(--radius-md);
    overflow: hidden; transition: var(--transition-smooth);
    display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--gold-border); }
.project-img { position: relative; height: 240px; overflow: hidden; }
.project-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(80%); transition: var(--transition-smooth);
}
.project-card:hover .project-img img { filter: grayscale(0%); transform: scale(1.05); }
.project-tag {
    position: absolute; top: 1rem; left: 1rem;
    background: rgba(5, 10, 20, 0.85); color: var(--gold-main);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
    padding: 0.35rem 0.9rem; border-radius: 999px;
    border: 1px solid var(--gold-border);
}
.project-info { padding: 1.75rem; flex: 1; }
.project-info h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.project-info p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.project-link {
    display: inline-block; margin-top: 1.1rem;
    color: var(--gold-main); font-size: 0.85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35); padding-bottom: 2px;
    transition: var(--transition-fast);
}
.project-link:hover { border-color: var(--gold-main); }
.project-credit {
    margin-top: 0.9rem; font-size: 0.78rem; color: var(--text-muted);
    font-family: var(--font-mono); letter-spacing: 0.5px;
}
.project-credit a {
    color: var(--gold-light); text-decoration: none;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
}
.project-credit a:hover { border-color: var(--gold-main); }

/* Portfolio placeholder thumbnails */
.project-thumb {
    position: relative; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1rem;
    background:
        radial-gradient(ellipse at 18% 25%, rgba(212, 175, 55, 0.09), transparent 60%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(212, 175, 55, 0.06) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(212, 175, 55, 0.06) 39px 40px),
        var(--bg-elevated);
}
.thumb-chrome {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    background: rgba(6, 12, 22, 0.65);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.thumb-chrome span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.thumb-chrome .thumb-url {
    margin-left: auto; width: auto; height: auto; border-radius: 0;
    background: transparent; color: var(--text-muted);
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.5px;
}
.thumb-name {
    font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.15;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.thumb-badge {
    align-self: flex-start; margin-top: 0.75rem;
    font-size: 0.64rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--gold-light); padding: 0.3rem 0.8rem;
    border: 1px dashed rgba(212, 175, 55, 0.4); border-radius: 999px;
}
.blank-shapes {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 0.9rem; flex-wrap: wrap; padding: 3rem 1rem 1rem;
}
.shape {
    border: 1.5px dashed rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.04);
}
.shape-logo { width: 58px; height: 58px; border-radius: 14px; }
.shape-sign { width: 92px; height: 140px; border-radius: 8px; }
.shape-banner { width: 140px; height: 56px; border-radius: 8px; }
.shape-labels {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.shape-labels span {
    font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 1px;
    color: var(--text-muted); text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

/* Screenshot thumbnails */
.project-thumb.shot { padding: 0; display: block; }
.project-thumb.shot img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(70%);
    transition: var(--transition-smooth);
}
.project-card:hover .project-thumb.shot img {
    filter: grayscale(0%); transform: scale(1.05);
}
.portfolio-cta { text-align: center; margin-top: 5rem; }

/* Contact */
.contact-section {
    padding: 12rem 0 8rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}
.contact-info h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; }
.contact-info > p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 3rem; line-height: 1.8; }
.info-block { margin-bottom: 2rem; }
.info-block h4 {
    color: var(--gold-main); text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 0.5rem;
}
.info-block p { font-size: 1.15rem; color: var(--text-primary); line-height: 1.7; }

.contact-form {
    background: var(--bg-surface);
    padding: 4rem; border-radius: var(--radius-lg);
    border: var(--border-soft);
}
.form-group { margin-bottom: 2rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    font-size: 0.85rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 1px;
}
.form-control {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff; font-family: inherit; font-size: 1.1rem;
    padding: 0.5rem 0; transition: border-color 0.3s;
}
.form-control:focus { outline: none; border-bottom-color: var(--gold-main); }
.form-control option { background: var(--bg-surface); color: #fff; }
textarea.form-control { resize: vertical; min-height: 100px; }

.btn-submit {
    width: 100%; background: var(--gold-main); color: #000;
    border: none; padding: 1rem; font-size: 1rem; font-weight: 600;
    font-family: inherit; border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition-fast); margin-top: 1rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-submit:hover { background: #f0c950; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 901px) {
    .hscroll-card { min-height: calc(100vh - 70px); }
}

@media (max-width: 1024px) {
    .container, nav { padding-left: 2rem; padding-right: 2rem; }
    .nav-scrolled { padding: 1rem 2rem; }
    .nav-links { gap: 2rem; }
    .section-padding { padding: 6rem 0; }
    .sticky-layout { gap: 3rem; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: min(320px, 80vw); height: 100vh;
        flex-direction: column; align-items: flex-start;
        background: var(--bg-surface);
        padding: 6rem 2rem; gap: 1.75rem;
        border-left: var(--border-soft);
        transition: right 0.4s var(--ease-out-expo);
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .dropdown { width: 100%; }
    .dropdown-content {
        position: static; display: none;
        transform: none; overflow: visible;
        background: transparent; border: none;
        box-shadow: none; padding: 0 0 0 1rem; min-width: 0;
    }
    .dropdown-content a { padding: 0.75rem 1rem; }
    .dropdown.open .dropdown-content { display: block; }

    .sticky-layout { grid-template-columns: 1fr; }
    .sticky-sticky { position: relative; top: 0; }
    .vision-grid { grid-template-columns: 1fr; }
    .founder-layout { grid-template-columns: 1fr; gap: 3rem; }
    .founder-portrait { max-width: 380px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .footer-brand { grid-column: 1 / -1; }
    .service-layout, .contact-section { grid-template-columns: 1fr; }
    .contact-section { gap: 4rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: clamp(2.5rem, 8vw, 4rem); }
    .hscroll-wrapper {
        overflow-x: auto; scroll-snap-type: x mandatory;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .hscroll-wrapper::-webkit-scrollbar { display: none; }
    .hscroll-card { width: 82vw; min-height: 450px; scroll-snap-align: start; scroll-snap-stop: always; }
    .hscroll-track { width: max-content; padding: 0 1rem 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
    .container, nav { padding-left: 1.5rem; padding-right: 1.5rem; }
    .section-title { font-size: 2.2rem; }
    .section-padding { padding: 5rem 0; }
    .sticky-card { padding: 2rem; }
    .glass-card { padding: 2.5rem; }
    .hscroll-card { width: 78vw; min-height: 400px; }
    .hscroll-card-content { padding: 2rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-col:nth-child(4) { grid-column: 1 / -1; }
    .footer-socials a { width: 38px; height: 38px; }
    .footer-socials { gap: 0.75rem; }
    .footer-copy { margin-top: 2rem; padding-top: 1.5rem; }
    footer { padding: 4rem 0 1.5rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero { height: auto; min-height: 92vh; padding: 8rem 0 3.5rem; }
    .hero-content { padding: 0; }
    .stat-number { font-size: 2.2rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 2.5rem; }
    .page-header { padding: 10rem 0 4rem; }
}

/* ============================================================
   Motion & No-GSAP Fallbacks
   ============================================================ */
/* Applied via JS when GSAP fails to load or reduced motion is set */
html.no-anim #entrance { display: none; }
html.no-anim .hero-eyebrow,
html.no-anim .hero-sub,
html.no-anim .hero-cta,
html.no-anim .hero-scroll-indicator { opacity: 1; }
html.no-anim .hero-line-inner { transform: none; }
html.no-anim .reveal { opacity: 1; transform: none; }
html.no-anim .marquee-content { animation: none; }
html.no-anim .grid-animated { animation: none; }
html.no-anim .scroll-line { animation: none; }

/* Users who have requested 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;
    }
    #entrance { display: none; }
    .hero-eyebrow,
    .hero-sub,
    .hero-cta,
    .hero-scroll-indicator { opacity: 1; }
    .hero-line-inner { transform: none; }
    .reveal { opacity: 1; transform: none; }
    .marquee-content { animation: none; }
    .grid-animated { animation: none; }
    .scroll-line { animation: none; }
}

/* ============================================================
   Accessibility
   ============================================================ */
.skip-link {
    position: fixed; top: -100%; left: 0; z-index: 10001;
    background: var(--gold-main); color: #000;
    padding: 0.75rem 1.5rem; font-weight: 600; font-size: 0.9rem;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 2px solid var(--gold-main);
    outline-offset: 2px;
}

/* Dropdown toggle <button> reset (matches .nav-links a styles) */
.dropdown-toggle {
    background: none; border: none;
    font-family: var(--font-main);
    font-size: 0.9rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-primary);
    padding: 0; cursor: pointer;
    position: relative; transition: color 0.3s;
}
.dropdown:hover > .dropdown-toggle,
.dropdown:focus-within > .dropdown-toggle { color: var(--gold-main); }
.dropdown.open > .dropdown-toggle,
.dropdown > .dropdown-toggle.active { color: var(--gold-main); }

body.nav-open { overflow: hidden !important; }
