/* =========================================================
   KULTURE CADENCE — SHARED DESIGN SYSTEM
   ========================================================= */

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    /* Palette */
    --bg: #000000;
    --surface: #111111;
    --surface-2: #1A1A1A;
    --accent: #4cb9f3;
    --accent-dim: rgba(76, 185, 243, 0.12);
    --accent-glow: rgba(76, 185, 243, 0.35);
    --accent-alt: #050566;
    --accent-alt-dim: rgba(5, 5, 102, 0.12);
    --text-primary: #FFFFFF;
    --text-muted: #888888;
    --text-faint: #444444;
    --border: #222222;
    --border-light: #2A2A2A;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing Rhythm */
    --section-pad-y: 120px;
    --section-pad-x: clamp(1.5rem, 5vw, 6rem);
    --header-pad-x: clamp(4rem, 15vw, 18rem);

    /* Grid */
    --grid-cols: 12;
    --grid-gap: clamp(1rem, 2vw, 1.5rem);
    --max-w: 1440px;
    --container: 1200px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 150ms;
    --dur-base: 280ms;
    --dur-slow: 500ms;
    --dur-lazy: 800ms;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

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

input, textarea, select { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

@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;
    }
}

::selection {
    background-color: var(--accent);
    color: var(--bg);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}

/* =========================================================
   GRAIN OVERLAY
   ========================================================= */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 9997;
}

/* =========================================================
   GRID & CONTAINER
   ========================================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--section-pad-x);
}

.container--wide { max-width: var(--max-w); }

section { padding-block: var(--section-pad-y); }

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.uppercase    { text-transform: uppercase; }

/* =========================================================
   LABEL / TAG CHIPS
   ========================================================= */
.label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.label--accent {
    background-color: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    color: var(--text-faint);
    transition: all var(--dur-base) var(--ease);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    transition: all var(--dur-base) var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn--primary { background-color: var(--accent); color: var(--bg); }
.btn--primary:hover {
    background-color: var(--accent-alt);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--accent);
    padding-inline: 0;
    border-radius: 0;
}
.btn--ghost .arrow {
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dur-base) var(--ease);
}
.btn--ghost:hover .arrow {
    background: var(--accent);
    color: var(--bg);
    transform: translateX(4px);
}

.btn .icon { width: 18px; height: 18px; }

@keyframes pulseBtn {
    0%   { box-shadow: 0 0 0 0 rgba(76, 185, 243, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(76, 185, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 185, 243, 0); }
}
@media (min-width: 1025px) {
    .btn--pulse { animation: pulseBtn 2s infinite; }
}

/* =========================================================
   SECTION HEADING
   ========================================================= */
.section-header { margin-bottom: 4rem; }
.section-header__eyebrow { margin-bottom: 1rem; }
.section-header__title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.section-header__subtitle {
    color: var(--text-muted);
    max-width: 54ch;
    margin-top: 1rem;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem var(--header-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--dur-slow) var(--ease), border-color var(--dur-slow) var(--ease);
    border-bottom: 1px solid transparent;
    background: transparent;
}
#navbar.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.nav__logo { display: flex; align-items: center; gap: 0.5rem; }
.nav__logo-img {
    height: 48px; width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: height var(--dur-fast) var(--ease);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav__links a {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--dur-fast) var(--ease);
    position: relative;
}
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%) scale(0);
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform var(--dur-base) var(--ease);
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: translateX(-50%) scale(1); }
.nav__links a.active { color: var(--accent); }

.nav__cta { margin-left: 1rem; }

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    cursor: pointer;
}
.nav__hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--dur-base) var(--ease);
}

#mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
}
#mobile-nav.open { transform: translateX(0); }
#mobile-nav a {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--text-primary);
    transition: color var(--dur-fast);
}
#mobile-nav a:hover { color: var(--accent); }

/* =========================================================
   TICKER / MARQUEE
   ========================================================= */
.ticker-strip {
    position: relative;
    width: calc(100% - (2 * var(--header-pad-x)));
    max-width: calc(var(--container-width) - (2 * var(--header-pad-x)));
    margin: 0 auto;
    overflow: hidden;
    padding: 1.1rem 0;
    background: var(--surface);
    transform: skewY(-2deg);
    transform-origin: left;
    margin-block: -2px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ticker-strip--dark {
    transform: skewY(2deg);
    background: var(--surface);
}
.ticker-strip--dark .ticker__track {
    animation-direction: reverse;
    animation-duration: 36s;
}
.ticker__track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: tickerScroll 28s linear infinite;
    width: max-content;
}
.ticker__item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-inline: 2rem;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}
.ticker-strip--dark .ticker__item { color: var(--text-muted); }
.ticker__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.6;
    flex-shrink: 0;
}
.ticker-strip--dark .ticker__dot { background: var(--accent); opacity: 0.6; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.ticker-strip:hover .ticker__track { animation-play-state: paused; }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6rem;
    padding-top: 10rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(76, 185, 243, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(76, 185, 243, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.page-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.page-hero__title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.page-hero__sub {
    max-width: 52ch;
    color: var(--text-muted);
    font-size: var(--text-lg);
    line-height: 1.75;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-primary); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-muted); }

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stats-bar__item {
    padding: 4rem 2rem;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__num {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stats-bar__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* =========================================================
   PORTFOLIO CARDS
   ========================================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    min-height: 400px;
    cursor: pointer;
}
.portfolio-card:nth-child(4n+1),
.portfolio-card:nth-child(4n+4) { grid-column: span 2; }
.portfolio-card:nth-child(4n+2),
.portfolio-card:nth-child(4n+3) { grid-column: span 1; }
.portfolio-card__bg {
    width: 100%; height: 100%;
    position: absolute; inset: 0;
    transition: transform var(--dur-lazy) var(--ease);
}
.portfolio-card:hover .portfolio-card__bg { transform: scale(1.03); }
.portfolio-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.2) 50%, transparent 100%);
    opacity: 0.6;
    transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
}
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
.portfolio-card__client {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #FFF;
    margin-bottom: 0;
    transition: margin-bottom 0.4s cubic-bezier(0.4,0,0.2,1);
}
.portfolio-card:hover .portfolio-card__client {
    margin-bottom: 0.5rem;
}
.portfolio-card__tags {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-card__tags {
    max-height: 20px;
    opacity: 1;
}
.portfolio-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), margin-top 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-card__link {
    max-height: 30px;
    margin-top: 1.5rem;
    opacity: 1;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--dur-lazy) var(--ease), transform var(--dur-lazy) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor {
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--ease), height 0.2s var(--ease);
    mix-blend-mode: difference;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(76,185,243,0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s var(--ease);
}
body.cursor-hover .cursor  { width: 48px; height: 48px; opacity: 0.3; }
body.cursor-hover .cursor-ring { width: 48px; height: 48px; opacity: 0; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
#back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    z-index: 99;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    cursor: pointer;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
#footer {
    background-color: #0A0A0A;
    border-top: 1px solid var(--border);
    padding-top: 4rem;
    padding-bottom: 2rem;
}
.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer__brand-tagline {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
    max-width: 30ch;
    margin-bottom: 1.5rem;
}
.footer__nav-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: #FFF;
    margin-bottom: 1rem;
}
.footer__nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer__nav-links a {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--dur-fast);
}
.footer__nav-links a:hover { color: var(--accent); }
.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}
.footer__copy {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: color var(--dur-fast);
}
.footer__legal a:hover { color: var(--accent); }

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-input,
.form-textarea,
.form-select {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color var(--dur-fast) var(--ease);
    width: 100%;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: var(--surface);
}
.form-select option { background: var(--surface); }

/* =========================================================
   ACCORDION (FAQ)
   ========================================================= */
.accordion { display: flex; flex-direction: column; }
.accordion-item {
    border-bottom: 1px solid var(--border);
}
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--dur-fast);
}
.accordion-header:hover { color: var(--accent); }
.accordion-icon {
    width: 24px; height: 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform var(--dur-base) var(--ease), background var(--dur-base);
    font-size: 1.2rem;
    line-height: 1;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--accent-dim); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-body p {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.75;
    padding-bottom: 1.5rem;
}

/* =========================================================
   PRICING CARDS
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.pricing-card--featured {
    border-color: var(--accent);
    background: linear-gradient(160deg, var(--surface) 0%, rgba(76,185,243,0.06) 100%);
}
.pricing-card__badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
}
.pricing-card__tier {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.pricing-card__price {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.pricing-card__price-note {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
    margin-bottom: 2rem;
}
.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
}
.pricing-card__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.pricing-card__feature-icon {
    width: 16px; height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* =========================================================
   TEAM CARD
   ========================================================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease), border-color var(--dur-base);
}
.team-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.team-card__photo {
    aspect-ratio: 3/4;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}
.team-card__info { padding: 1.25rem; }
.team-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}
.team-card__role {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   BLOG CARD
   ========================================================= */
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--dur-base) var(--ease), border-color var(--dur-base);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.blog-card__visual { aspect-ratio: 16/9; background: var(--surface-2); position: relative; }
.blog-card__content { padding: 1.5rem; }
.blog-card__meta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
}
.blog-card__category {
    color: var(--accent);
}
.blog-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.blog-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.blog-card__link {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-block: 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 300px;
    background: radial-gradient(ellipse at bottom, rgba(76,185,243,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.cta-band__title em { color: var(--accent); font-style: italic; }
.cta-band__sub {
    color: var(--text-muted);
    font-size: var(--text-lg);
    margin-bottom: 3rem;
    max-width: 48ch;
    margin-inline: auto;
}
.cta-band__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* =========================================================
   JOB CARD (Careers)
   ========================================================= */
.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
    cursor: pointer;
}
.job-card:hover { border-color: var(--accent); transform: translateX(8px); }
.job-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-xl);
    margin-bottom: 0.4rem;
}
.job-card__meta {
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.job-card__dept { color: var(--accent); }
.job-card__arrow { color: var(--accent); font-size: 1.5rem; flex-shrink: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    :root { --section-pad-y: 80px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .stats-bar  { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .cursor, .cursor-ring { display: none; }
}

@media (max-width: 768px) {
    :root {
        --section-pad-y: 60px;
        --section-pad-x: 1.25rem;
    }
    .nav__links, .nav__cta { display: none; }
    .nav__hamburger { display: flex; }
    .nav__logo-img { height: 36px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-card:nth-child(n) { grid-column: span 1; min-height: 300px; }
    .portfolio-card__overlay { transform: translateY(0); background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 80%); }
    .portfolio-card__content { transform: translateY(0); opacity: 1; padding: 1.5rem; }
    .footer__top { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stats-bar__item { padding: 3rem 1.5rem; border-bottom: 1px solid var(--border); }
    .stats-bar__item:nth-child(2n) { border-right: none; }
    .stats-bar__item:nth-last-child(-n+2) { border-bottom: none; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .page-hero { min-height: 50vh; }
}

/* =========================================================
   THEME TOGGLE BUTTON
   ========================================================= */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease);
    flex-shrink: 0;
    position: relative;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: rotate(15deg);
}
.theme-toggle__icon {
    width: 18px;
    height: 18px;
    position: absolute;
    transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
/* Dark mode: show sun (to switch to light), hide moon */
.theme-toggle__icon--sun  { opacity: 1; transform: scale(1); }
.theme-toggle__icon--moon { opacity: 0; transform: scale(0.5); }

/* Light mode: show moon (to switch back to dark), hide sun */
[data-theme="light"] .theme-toggle__icon--sun  { opacity: 0; transform: scale(0.5); }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 1; transform: scale(1); }

/* =========================================================
   LIGHT MODE OVERRIDES
   ========================================================= */
[data-theme="light"] {
    --bg: #F5F4F0;
    --surface: #FFFFFF;
    --surface-2: #EEEEEE;
    --accent: #0077B6;
    --text-primary: #111111;
    --text-muted: #555555;
    /* Accent — slightly deeper for contrast on white */
    --accent: #0077B6;
    --accent-dim: rgba(0, 119, 182, 0.10);
    --accent-glow: rgba(0, 119, 182, 0.25);
    --accent-alt: #023E8A;
    --accent-alt-dim: rgba(2, 62, 138, 0.10);
}

/* --- Grain overlay — lighter in light mode --- */
[data-theme="light"] body::after {
    opacity: 0.012;
}

/* --- Scrollbar --- */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }

/* --- Navbar scrolled state --- */
[data-theme="light"] #navbar.scrolled {
    background: rgba(245, 244, 240, 0.92);
    border-bottom-color: var(--border);
}

/* --- Mobile nav --- */
[data-theme="light"] #mobile-nav {
    background: var(--bg);
}

/* --- Footer hard-coded dark colour --- */
[data-theme="light"] #footer {
    background-color: var(--surface-2);
}

/* --- Portfolio card overlay (hard-coded dark gradients) --- */
[data-theme="light"] .portfolio-card__overlay {
    background: linear-gradient(to top, rgba(245,244,240,0.97) 0%, rgba(245,244,240,0.3) 50%, transparent 100%);
}
[data-theme="light"] .portfolio-card__client {
    color: #111111;
}

/* --- About section visual overlay --- */
[data-theme="light"] .about__visual-overlay {
    background: linear-gradient(to top, rgba(245,244,240,0.85) 0%, transparent 50%);
}

/* --- Stats bar --- */
[data-theme="light"] .stats-bar {
    background: var(--surface);
}

/* --- Service card hover shadow --- */
[data-theme="light"] .service-card:hover {
    box-shadow: 0 20px 48px rgba(0,0,0,0.10), 0 0 0 1px var(--accent);
}

/* --- Pricing card hover shadow --- */
[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* --- Why visual decorative element --- */
[data-theme="light"] .why__visual {
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
}

/* --- Form inputs (hard-coded in index.html) --- */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder {
    color: var(--text-faint);
}
[data-theme="light"] .form-select option {
    background: var(--surface);
    color: var(--text-primary);
}

/* --- Back to top button --- */
[data-theme="light"] #back-to-top {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-primary);
}
[data-theme="light"] #back-to-top:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* --- Page hero grid overlay --- */
[data-theme="light"] .page-hero::before {
    background-image:
        linear-gradient(rgba(0,119,182,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,119,182,0.05) 1px, transparent 1px);
}

/* --- CTA band glow --- */
[data-theme="light"] #cta::before,
[data-theme="light"] .cta-band::before {
    background: radial-gradient(ellipse at bottom, rgba(0,119,182,0.08) 0%, transparent 70%);
}

/* --- Pulse animation keyframe for light mode --- */
[data-theme="light"] .btn--primary {
    background-color: var(--accent);
    color: #fff;
}
[data-theme="light"] .btn--primary:hover {
    background-color: var(--accent-alt);
    color: #fff;
}

/* --- Blog card visual placeholder --- */
[data-theme="light"] .blog-card__visual,
[data-theme="light"] .team-card__photo {
    background: var(--surface-2);
}

/* --- Ticker strip separator --- */
[data-theme="light"] .ticker__dot {
    background: var(--text-faint);
}
[data-theme="light"] .ticker-strip--dark .ticker__dot {
    background: var(--accent);
}

/* --- Mobile (toggle button in nav still visible) --- */
@media (max-width: 768px) {
    .theme-toggle { display: flex; }
}

/* =========================================================
   FLOATING THEME TOGGLE & CANVAS
   ========================================================= */
.theme-toggle--floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.theme-toggle--floating:hover {
    transform: scale(1.1);
}

/* Smooth transition for the canvas background */
#bg-canvas {
    transition: filter 0.8s ease;
}

/* Invert the WebGL canvas to create a white background with dark ink */
[data-theme="light"] #bg-canvas {
    filter: invert(1) hue-rotate(180deg);
}

