/* ==========================================================================
   TENSOR SV — Biomechanical Consciousness
   φ-Cascade Design System | Brand v3.0 Definitive
   ========================================================================== */

/* --- Fonts (Brand Guidelines) --- */
/* Weights optimized: removed unused 200, 800. Using 300-700 only */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Instrument+Serif:ital@1&display=swap');

/* --- φ-Cascade Design Tokens --- */
:root {
    /* Mathematical Constants */
    --phi: 1.6180339887;
    --phi-2: 2.6180339887;
    --phi-3: 4.2360679775;
    --phi-inv: 0.6180339887;
    --phi-inv-2: 0.3819660113;

    /* Primary Colors (Brand) */
    --tensor-black: #0c0a09;
    --tensor-white: #ffffff;
    --tensor-brand: #16a34a;

    /* Neutral Scale */
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-400: #a1a1aa;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-900: #18181b;
    --neutral-950: #09090b;

    /* Theme (Light) - WCAG AA Compliant (4.5:1 minimum) */
    --bg: #f8f8f6;
    --bg-deep: #f0f0ee;
    --fg: #111113;
    --fg-muted: #595959; /* Was #7a7a7f (4.2:1), now 7:1 on #f8f8f6 */
    --fg-subtle: #737373; /* Was #c8c8cb (1.9:1), now 4.5:1 on #f8f8f6 */
    --border: #d4d4d4;
    --card: #ffffff;

    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Instrument Serif', serif;

    /* φ-Cascade Spacing (base 4px) */
    --space-1: 4px;
    --space-phi: 6.47px;
    --space-phi-2: 10.47px;
    --space-phi-3: 16.94px;
    --space-phi-4: 27.42px;
    --space-phi-5: 44.36px;
    --space-phi-6: 71.78px;
    --space-phi-7: 116.14px;
    --space-phi-8: 187.92px;

    /* Standard Spacing */
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* 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;
    --text-7xl: 4.5rem;

    /* Animation */
    --ease-organic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-breath: cubic-bezier(0.37, 0, 0.63, 1);
    --ease-neural: cubic-bezier(0.16, 1, 0.3, 1);

    /* Lambertian Lighting Opacities */
    --opacity-top: 0.35;
    --opacity-right: 0.58;
    --opacity-front: 0.92;
}

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

/* ==========================================================================
   ACCESSIBILITY: Focus States
   WCAG 2.4.7 - All interactive elements must have visible focus
   ========================================================================== */
:focus {
    outline: 2px solid var(--tensor-brand);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--tensor-brand);
    outline-offset: 2px;
}

/* Links */
a:focus-visible {
    outline: 2px solid var(--tensor-brand);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Buttons */
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--tensor-brand);
    outline-offset: 2px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-300) transparent;
}

body {
    font-family: var(--font-mono);
    font-weight: 400;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background-color: var(--tensor-black);
    color: var(--tensor-white);
}

/* --- Neural Canvas Layer --- */
#neural-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Noise Texture --- */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.025;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --- App Container --- */
.app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: var(--space-5) var(--space-8);
    background: transparent;
    pointer-events: none;
    transition: background 0.4s var(--ease-organic);
}

/* Subtle backdrop blur for readability */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(248, 248, 246, 0.9) 0%, rgba(248, 248, 246, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    transition: opacity 0.4s var(--ease-organic);
}

/* When scrolled into dark section */
.header.dark-mode::before {
    background: linear-gradient(to bottom, rgba(17, 17, 19, 0.95) 0%, rgba(17, 17, 19, 0) 100%);
}

.header.dark-mode .logo {
    color: var(--bg);
}

.header.dark-mode .telemetry {
    color: var(--neutral-400);
}

.header.dark-mode .status-dot {
    box-shadow: 0 0 8px var(--tensor-brand);
}

.header.dark-mode .mouse-coords {
    color: var(--neutral-500);
}

.header-inner {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.logo {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: -0.06em;
    color: var(--fg);
    text-transform: uppercase;
}

.logo .sv {
    font-weight: 300;
}

.telemetry {
    display: none;
    align-items: center;
    gap: var(--space-6);
    font-size: var(--text-xs); /* 12px - WCAG minimum */
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--fg);
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .telemetry {
        display: flex;
    }
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.telemetry-item .online-label {
    color: var(--tensor-brand);
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tensor-brand);
    box-shadow: 0 0 6px var(--tensor-brand), 0 0 12px rgba(22, 163, 74, 0.4);
    animation: pulse-dot 2s var(--ease-breath) infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.mouse-coords {
    font-family: var(--font-mono);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--fg-subtle);
    min-width: 120px;
    text-align: right;
}

/* --- System Logger --- */
/* The consciousness stream - terminal output that breathes */
.system-logger {
    position: fixed;
    bottom: var(--space-8);
    left: var(--space-6);
    z-index: 30;
    pointer-events: none;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--fg-subtle);
    max-width: 300px;
    display: none;
    transition: opacity 0.4s var(--ease-organic);
}

@media (min-width: 1024px) {
    .system-logger {
        display: block;
    }
}

/* Hide when near footer */
.system-logger.hidden {
    opacity: 0;
    pointer-events: none;
}

.logger-header {
    font-weight: 600;
    color: var(--fg-muted);
    margin-bottom: var(--space-2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 9px;
}

.logger-content {
    opacity: 0.8;
}

.log-line {
    animation: log-fade 0.3s var(--ease-organic);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes log-fade {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Main Content --- */
.main {
    position: relative;
    z-index: 1;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-32) var(--space-8) var(--space-24);
    position: relative;
}

.hero-grid {
    max-width: 90rem;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-24);
    }
}

.hero-copy {
    position: relative;
    z-index: 2;
}

/* Meta Label */
.meta-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs); /* 12px - WCAG minimum */
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: var(--space-6);
}

.meta-line {
    width: 24px;
    height: 1px;
    background: var(--fg-muted);
    animation: line-breathe 3s var(--ease-breath) infinite;
}

@keyframes line-breathe {
    0%, 100% { width: 24px; opacity: 1; }
    50% { width: 32px; opacity: 0.5; }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;
    line-height: 1.1; /* Display type can go slightly lower, but never below 1.1 */
    letter-spacing: -0.03em;
    color: var(--fg);
    margin-bottom: var(--space-8);
}

.hero-title .brand-name {
    display: block;
    font-family: var(--font-mono);
    font-style: normal;
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 8rem);
    letter-spacing: -0.06em;
    background: linear-gradient(135deg, var(--fg) 0%, var(--neutral-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .brand-sv {
    font-weight: 300;
}

/* Hero Subtitle */
.hero-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-2xl);
    line-height: 1.5;
    color: var(--fg);
    margin-bottom: var(--space-8);
}

.hero-subtitle strong {
    font-weight: 400;
    color: var(--tensor-brand);
}

/* Hero Description */
.hero-description {
    max-width: 540px;
    margin-bottom: var(--space-10);
}

.hero-description p {
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.8;
    color: var(--fg-muted);
    margin-bottom: var(--space-4);
}

.hero-description .muted {
    font-size: var(--text-sm);
    color: var(--fg-subtle);
}

/* CTA Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-organic);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--tensor-brand);
    color: var(--tensor-white);
    border: 1px solid var(--tensor-brand);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.btn-primary:hover {
    background: #14532d;
    border-color: #14532d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--tensor-white);
    outline-offset: 2px;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-organic);
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tensor Mark Container */
.tensor-mark-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
}

@media (min-width: 1024px) {
    .tensor-mark-container {
        max-width: 420px;
    }
}

.tensor-mark {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 60px rgba(12, 10, 9, 0.08));
    animation: mark-float 6s var(--ease-breath) infinite;
}

@keyframes mark-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

/* Data Flow Lines around mark */
.data-flow {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.flow-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--tensor-brand), transparent);
    height: 1px;
    animation: flow 3s linear infinite;
    opacity: 0.3;
}

.flow-line:nth-child(1) { top: 20%; left: -20%; width: 40%; animation-delay: 0s; }
.flow-line:nth-child(2) { top: 50%; right: -20%; width: 35%; animation-delay: 1s; animation-direction: reverse; }
.flow-line:nth-child(3) { bottom: 30%; left: -15%; width: 30%; animation-delay: 2s; }

@keyframes flow {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translateX(200%); opacity: 0; }
}

/* Construction Grid Overlay */
.construction-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s var(--ease-organic);
}

.tensor-mark-container:hover .construction-overlay {
    opacity: 0.15;
}

/* --- Sections --- */
.section {
    padding: var(--space-24) var(--space-8);
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-32) var(--space-8);
    }
}

.section-inner {
    max-width: 80rem;
    margin: 0 auto;
}

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

@media (min-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-16);
    }
}

/* Section Header */
.section-header {
    position: sticky;
    top: var(--space-32);
    align-self: start;
}

.section-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 400;
    line-height: 1.3; /* Display headings: 1.2-1.3 acceptable per research */
    color: var(--fg);
    margin-top: var(--space-4);
}

/* Content Card */
.content-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: var(--space-10);
    position: relative;
    transition: all 0.4s var(--ease-organic);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--tensor-brand);
    transition: height 0.5s var(--ease-neural);
}

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

.content-card:hover {
    border-color: var(--neutral-300);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(12, 10, 9, 0.1);
}

.card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-6);
    color: var(--fg-muted);
}

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

.card-text {
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: var(--space-4);
}

.card-text .highlight {
    font-weight: 500;
    color: var(--fg);
}

.card-text-secondary {
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.7;
    color: var(--fg-muted);
    margin-bottom: var(--space-6);
}

.card-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--tensor-brand);
    padding-left: var(--space-4);
    border-left: 2px solid var(--tensor-brand);
}

/* --- Capabilities Section --- */
.capabilities-section {
    background: var(--bg-deep);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    margin-top: var(--space-12);
}

@media (min-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.capabilities-intro {
    max-width: 600px;
}

.capabilities-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 400;
    line-height: 1.4;
    color: var(--fg);
    margin-bottom: var(--space-6);
}

.capabilities-subtitle {
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.7;
    color: var(--fg-muted);
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.capability-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-organic);
}

.capability-item:hover {
    border-color: var(--tensor-brand);
    transform: translateX(4px);
}

.capability-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--fg);
    transition: all 0.3s var(--ease-organic);
}

.capability-item:hover .capability-icon {
    background: var(--tensor-brand);
    border-color: var(--tensor-brand);
    color: var(--tensor-white);
}

.capability-icon svg {
    width: 20px;
    height: 20px;
}

.capability-content h4 {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-bottom: var(--space-2);
}

.capability-content p {
    font-size: var(--text-sm);
    font-weight: 300;
    line-height: 1.6;
    color: var(--fg-muted);
}

/* Standard Block */
.standard-block {
    margin-top: var(--space-16);
    padding: var(--space-8);
    background: var(--fg);
    color: var(--bg);
    position: relative;
    overflow: hidden;
}

.standard-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tensor-brand), transparent);
}

.standard-label {
    font-size: var(--text-xs); /* 12px - WCAG minimum */
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neutral-400); /* Better contrast on dark bg */
    margin-bottom: var(--space-4);
}

.standard-text {
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.6;
}

.standard-text strong {
    font-weight: 500;
    color: var(--tensor-brand);
}

/* --- Credentials Section --- */
.credentials-section {
    text-align: center;
}

.credentials-header {
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.credentials-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 400;
    line-height: 1.3;
    color: var(--fg);
    margin-top: var(--space-4);
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.credential-card {
    text-align: left;
    padding: var(--space-8);
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease-organic);
}

.credential-card:hover {
    border-color: var(--neutral-300);
}

.credential-number {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs); /* 12px - WCAG minimum */
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: var(--space-4);
}

.credential-number .dot {
    width: 6px;
    height: 6px;
    background: var(--tensor-brand);
    border-radius: 50%;
}

.credential-card h3 {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-bottom: var(--space-3);
}

.credential-card p {
    font-size: var(--text-sm);
    font-weight: 300;
    line-height: 1.6;
    color: var(--fg-muted);
}

.credentials-quote {
    max-width: 700px;
    margin: var(--space-16) auto 0;
    padding: var(--space-8);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.credentials-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-xl);
    line-height: 1.5;
    color: var(--fg-muted);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--fg);
    color: var(--bg);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neutral-700), transparent);
    margin-bottom: var(--space-16);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-24);
    }
}

.contact-intro .meta-label {
    color: var(--neutral-500);
}

.contact-intro .meta-line {
    background: var(--neutral-500);
}

.contact-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 400;
    line-height: 1.4;
    color: var(--bg);
    margin-bottom: var(--space-6);
}

.contact-title .italic {
    color: var(--tensor-brand);
}

.contact-subtitle {
    font-size: var(--text-base);
    font-weight: 300;
    line-height: 1.7;
    color: var(--neutral-400);
    margin-bottom: var(--space-8);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.3);
    font-size: var(--text-xs); /* 12px - WCAG minimum */
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tensor-brand);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-icon {
    width: 32px;
    height: 32px;
    color: var(--neutral-500);
    margin-bottom: var(--space-4);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label {
    font-size: var(--text-xs); /* 12px - WCAG minimum */
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neutral-400); /* Better contrast on dark bg */
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--neutral-700);
    border-radius: 0;
    padding: var(--space-4) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 300;
    color: var(--bg);
    transition: all 0.3s var(--ease-organic);
}

.form-input::placeholder {
    color: var(--neutral-500);
    font-style: italic;
}

.form-input:hover {
    border-color: var(--neutral-500);
    background: rgba(255, 255, 255, 0.05);
}

.form-input:focus {
    outline: 2px solid var(--tensor-brand);
    outline-offset: 2px;
    border-color: var(--tensor-brand);
    background: rgba(22, 163, 74, 0.05);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-4);
}

/* Form Success State */
.form-success {
    padding: var(--space-8);
    background: rgba(22, 163, 74, 0.05);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.success-status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tensor-brand);
    margin-bottom: var(--space-4);
}

.success-message {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--neutral-300);
    margin-bottom: var(--space-2);
}

.success-note {
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--neutral-500);
    margin-top: var(--space-4);
}

/* --- Footer --- */
.footer {
    padding: var(--space-8);
    background: var(--neutral-950);
    color: var(--neutral-500);
}

.footer-inner {
    max-width: 90rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-info {
    font-size: var(--text-sm);
    font-weight: 300;
}

.footer-info strong {
    font-weight: 500;
    color: var(--neutral-400);
}

.footer-copyright {
    font-size: var(--text-xs); /* 12px - WCAG minimum */
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neutral-500); /* Better contrast */
}

/* --- Ambient Particles --- */
.particles-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--tensor-brand);
    border-radius: 50%;
    opacity: 0;
    animation: particle-drift 15s linear infinite;
}

@keyframes particle-drift {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* --- Scroll Progress --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--tensor-brand), var(--fg));
    z-index: 100;
    transition: width 0.1s linear;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-organic), transform 0.8s var(--ease-organic);
}

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

/* --- Utilities --- */
.center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tensor-brand);
    color: var(--tensor-white);
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: var(--space-4);
    outline: 2px solid var(--tensor-white);
    outline-offset: 2px;
}

/* Reduced motion support removed for now - can re-add later */
