/* ==========================================================================
   EARENVAL DESIGN SYSTEM (ORACLE REDWOOD ENTERPRISE EDITION)
   ========================================================================== */

:root {
    /* Baseline Typography */
    --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-base: 460;
    --font-weight-medium: 575;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Scaled Type Units */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-body: 14.5px;
    --font-size-body-lg: 16px;
    --font-size-h3: 18px;
    --font-size-h2: clamp(22px, 2.4vw, 26px);
    --font-size-h1: clamp(24px, 2.5vw, 31px);

    /* Spacing Grid */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-14: 14px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-28: 28px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-64: 64px;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 9999px;

    /* Oracle Redwood Brand Colors */
    --redwood-amber: #c74634;
    --redwood-amber-hover: #b03828;
    --redwood-amber-active: #962f21;
    --redwood-amber-light: #e25d45;
    --redwood-amber-subtle: rgba(199, 70, 52, 0.08);

    /* Animation Timing */
    --motion-duration-fast: 150ms;
    --motion-duration-base: 220ms;
    --motion-ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

/* ==========================================================================
   THEME MATRICES
   ========================================================================== */

/* REDWOOD LIGHT (DEFAULT) */
[data-theme="light"] {
    --bg-page: #fbf9f6;
    --bg-sidebar: #f4efe9;
    --bg-surface: rgba(255, 255, 255, 0.92);
    --bg-surface-elevated: #ffffff;
    --bg-surface-hover: rgba(255, 255, 255, 0.99);
    --bg-input: #ffffff;
    --bg-tag: #eae4dc;
    --bg-tag-hover: #dfd8ce;

    --border-subtle: #e4ddd3;
    --border-strong: #cecaa8;
    --border-accent: rgba(199, 70, 52, 0.4);
    --border-inner-reflection: rgba(255, 255, 255, 0.9);

    --color-text-primary: #1a1917;
    --color-text-secondary: #4a4640;
    --color-text-muted: #746f66;

    --badge-text: #c74634;
    --sidebar-shadow: 1px 0 0 #e4ddd3;
    --card-shadow: 0 4px 18px -2px rgba(45, 36, 26, 0.04), 0 1px 3px rgba(45, 36, 26, 0.03);
    --card-shadow-hover: 0 12px 28px -4px rgba(45, 36, 26, 0.08), 0 2px 6px rgba(45, 36, 26, 0.04);

    --focus-ring: rgba(199, 70, 52, 0.35);
    
    --backdrop-opacity: 0.06;
    --backdrop-blend: multiply;
    --backdrop-filter: grayscale(100%) contrast(110%);
}

/* REDWOOD DARK */
[data-theme="dark"] {
    --bg-page: #141311;
    --bg-sidebar: #1b1917;
    --bg-surface: rgba(28, 26, 23, 0.86);
    --bg-surface-elevated: #24221f;
    --bg-surface-hover: rgba(38, 35, 31, 0.96);
    --bg-input: rgba(18, 17, 15, 0.8);
    --bg-tag: rgba(255, 255, 255, 0.07);
    --bg-tag-hover: rgba(255, 255, 255, 0.12);

    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-accent: rgba(226, 93, 69, 0.4);
    --border-inner-reflection: rgba(255, 255, 255, 0.04);

    --color-text-primary: #f6f5f2;
    --color-text-secondary: #cac6be;
    --color-text-muted: #959086;

    --badge-text: #e25d45;
    --sidebar-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.55);

    --focus-ring: rgba(226, 93, 69, 0.4);

    --backdrop-opacity: 0.12;
    --backdrop-blend: screen;
    --backdrop-filter: grayscale(100%) contrast(120%);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */

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

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

body {
    background-color: var(--bg-page);
    color: var(--color-text-secondary);
    font-family: var(--font-family-sans);
    font-weight: var(--font-weight-base);
    font-size: var(--font-size-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow-x: hidden;
}

:focus-visible {
    outline: 2px solid var(--redwood-amber);
    outline-offset: 2px;
}

.hidden-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   AMBIENT WATERMARK BACKDROP
   ========================================================================== */

.fixed-center-backdrop {
    position: fixed;
    top: 40%;
    left: min(720px, calc(280px + 36vw));
    transform: translate(-50%, -50%);
    width: 440px;
    max-width: 55vw;
    height: auto;
    border-radius: var(--radius-xl);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    opacity: var(--backdrop-opacity);
    mix-blend-mode: var(--backdrop-blend);
    filter: var(--backdrop-filter);
    transition: opacity var(--motion-duration-base) var(--motion-ease-standard);
}

/* ==========================================================================
   SIDEBAR ARCHITECTURE
   ========================================================================== */

.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    box-shadow: var(--sidebar-shadow);
    padding: var(--space-32) var(--space-20);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 20;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    gap: var(--space-28);
}

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.sidebar-logo-frame {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: #0b1118;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 19px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.brand-tagline {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: var(--font-weight-medium);
    margin-top: 2px;
}

/* Mobile Action Cluster - Hidden by Default on Desktop */
.mobile-actions {
    display: none;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    padding: 9px 12px;
    border-radius: var(--radius-md);
    position: relative;
    transition: color var(--motion-duration-fast), background-color var(--motion-duration-fast);
}

.nav-indicator {
    width: 3px;
    height: 14px;
    border-radius: var(--radius-pill);
    background-color: transparent;
    transition: background-color var(--motion-duration-fast), transform var(--motion-duration-fast);
    transform: scaleY(0.4);
}

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

.nav-link.active {
    color: var(--color-text-primary);
    background-color: var(--bg-surface-hover);
    font-weight: var(--font-weight-semibold);
}

.nav-link.active .nav-indicator {
    background-color: var(--redwood-amber);
    transform: scaleY(1);
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    padding-top: var(--space-20);
    border-top: 1px solid var(--border-subtle);
}

.btn-block {
    width: 100%;
}

.btn-external-icon {
    width: 13px;
    height: 13px;
    margin-left: 6px;
    opacity: 0.7;
}

.theme-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.theme-caption {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.05em;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    font-family: inherit;
    padding: 4px;
}

.theme-toggle-btn:hover {
    color: var(--redwood-amber);
}

.theme-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-icon-container svg {
    width: 13px;
    height: 13px;
}

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

/* ==========================================================================
   CONTENT LAYOUT & SECTION RHYTHM
   ========================================================================== */

.content-area {
    margin-left: 280px;
    flex: 1;
    padding: 0 var(--space-48);
    max-width: 980px;
    position: relative;
    z-index: 1;
}

section {
    min-height: 48vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-48);
    padding-bottom: var(--space-64);
    border-bottom: 1px solid var(--border-subtle);
    scroll-margin-top: 32px;
}

section:last-of-type {
    border-bottom: none;
    padding-bottom: var(--space-48);
}

/* ==========================================================================
   1. OVERVIEW & BALANCED HERO
   ========================================================================== */

.section-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 44px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eyebrow-container {
    margin-bottom: var(--space-12);
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    color: var(--badge-text);
}

.hero-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-16);
    max-width: 30ch;
}

.lead-text {
    font-size: var(--font-size-body-lg);
    color: var(--color-text-secondary);
    max-width: 62ch;
    line-height: 1.6;
    margin-bottom: var(--space-20);
}

/* 8-Card Balanced Matrix */
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-12);
    margin-top: auto;
    padding-top: var(--space-24);
}

.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(8px);
    transition: transform var(--motion-duration-fast), border-color var(--motion-duration-fast), background-color var(--motion-duration-fast);
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    background-color: var(--bg-surface-hover);
}

.metric-stat {
    font-size: 14.5px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.metric-label {
    font-size: 11.5px;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   2. CORE CAPABILITIES
   ========================================================================== */

#capabilities {
    padding-top: 56px;
}

.section-header {
    margin-bottom: var(--space-32);
}

.section-header h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-8);
}

.section-header p {
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.grid-cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-20);
}

.grid-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-20);
}

.card,
.profile-panel,
.story-box,
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--card-shadow), inset 0 1px 0 var(--border-inner-reflection);
    position: relative;
    transition: transform var(--motion-duration-base) var(--motion-ease-standard),
                border-color var(--motion-duration-base) var(--motion-ease-standard),
                background-color var(--motion-duration-base) var(--motion-ease-standard),
                box-shadow var(--motion-duration-base) var(--motion-ease-standard);
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    background-color: var(--bg-surface-hover);
    box-shadow: var(--card-shadow-hover), inset 0 1px 0 var(--border-inner-reflection);
}

.card h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-14);
}

.card p {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   THE TEAM
   ========================================================================== */

.profile-panel {
    border-top: 2px solid var(--redwood-amber);
    display: flex;
    flex-direction: column;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-16);
    margin-bottom: var(--space-20);
    flex-wrap: wrap;
}

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

.profile-name {
    font-size: 21px;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    letter-spacing: -0.015em;
}

.profile-role-title {
    font-size: var(--font-size-sm);
    color: var(--badge-text);
    font-weight: var(--font-weight-medium);
}

.profile-badge-link {
    text-decoration: none;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    padding: 5px 12px;
    background: var(--redwood-amber-subtle);
    color: var(--badge-text);
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background-color var(--motion-duration-fast), border-color var(--motion-duration-fast), transform var(--motion-duration-fast);
}

.profile-badge-link:hover .profile-badge {
    background-color: var(--badge-text);
    color: #ffffff;
    transform: translateY(-1px);
}

.profile-badge-icon {
    width: 11px;
    height: 11px;
}

.profile-bio {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-24);
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.tech-tag {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: 6px 12px;
    background: var(--bg-tag);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--color-text-primary);
}

/* ==========================================================================
   THE STORY & ACCENT LINKS
   ========================================================================== */

.story-box {
    border-top: 2px solid var(--border-accent);
}

.story-box p:not(:last-child) {
    margin-bottom: var(--space-16);
}

.story-box p {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.story-box strong {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.story-link {
    color: var(--redwood-amber);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--motion-duration-fast), text-decoration-color var(--motion-duration-fast);
}

.story-link:hover {
    color: var(--redwood-amber-hover);
    text-decoration-color: var(--redwood-amber-hover);
}

/* ==========================================================================
   CONTACT FORM & NETLIFY SUBMISSION (FULL WIDTH & LEFT-ALIGNED)
   ========================================================================== */

.form-card {
    width: 100%;
    margin: 0;
    text-align: left;
    border-top: 2px solid var(--border-accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-20);
    margin-bottom: var(--space-20);
}

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

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required-indicator {
    color: var(--redwood-amber);
}

input, textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--color-text-primary);
    font-family: inherit;
    font-size: var(--font-size-body);
    line-height: 1.5;
    outline: none;
    transition: border-color var(--motion-duration-fast), box-shadow var(--motion-duration-fast);
}

input:focus, textarea:focus {
    border-color: var(--redwood-amber);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

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

.form-status {
    padding: 0;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    display: none;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    padding: 12px 16px;
    margin-bottom: var(--space-20);
    background-color: rgba(46, 125, 50, 0.12);
    border: 1px solid rgba(46, 125, 50, 0.35);
    color: #2e7d32;
}

[data-theme="dark"] .form-status.success {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
    color: #81c784;
}

.form-status.error {
    display: block;
    padding: 12px 16px;
    margin-bottom: var(--space-20);
    background-color: rgba(199, 70, 52, 0.12);
    border: 1px solid rgba(199, 70, 52, 0.35);
    color: var(--redwood-amber);
}

.form-footer {
    display: flex;
    gap: var(--space-16);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.direct-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: color var(--motion-duration-fast);
}

.direct-email-link:hover {
    color: var(--color-text-primary);
}

.email-icon {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--motion-duration-fast),
                color var(--motion-duration-fast),
                border-color var(--motion-duration-fast),
                transform var(--motion-duration-fast);
}

.btn-primary {
    background: var(--redwood-amber);
    color: #ffffff;
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--redwood-amber-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--redwood-amber-active);
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--color-text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-text {
    opacity: 0.7;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

footer {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    padding-top: var(--space-40);
    text-align: left;
}

/* ==========================================================================
   RESPONSIVE DESIGN (ENTERPRISE MOBILE ERGONOMICS)
   ========================================================================== */

@media (max-width: 1100px) {
    .hero-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    body {
        flex-direction: column;
    }

    .fixed-center-backdrop {
        left: 50%;
        top: 35%;
        width: 75vw;
        max-width: 320px;
        opacity: calc(var(--backdrop-opacity) * 0.75);
    }

    /* Mobile Sticky Navigation Strip */
    .sidebar {
        width: 100%;
        position: sticky;
        top: 0;
        left: 0;
        bottom: auto;
        box-shadow: 0 1px 0 var(--border-subtle);
        padding: 10px 14px;
        gap: var(--space-8);
        z-index: 50;
        background-color: var(--bg-sidebar);
        overflow-y: visible;
    }

    .sidebar-top {
        gap: 8px;
    }

    .brand-header {
        padding: 0;
        gap: 10px;
    }

    .sidebar-logo-frame {
        width: 38px;
        height: 38px;
    }

    .sidebar-logo {
        width: 28px;
        height: 28px;
    }

    .brand-title {
        font-size: 17px;
    }

    .brand-tagline {
        font-size: 10px;
    }

    /* Display Top-Right Mobile Actions Cluster */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-action-btn {
        width: 34px;
        height: 34px;
        border-radius: var(--radius-md);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        color: var(--color-text-primary);
        text-decoration: none;
        cursor: pointer;
        padding: 0;
        transition: background-color var(--motion-duration-fast), border-color var(--motion-duration-fast), transform var(--motion-duration-fast);
    }

    .mobile-action-btn:active {
        transform: scale(0.94);
    }

    .mobile-action-primary {
        background-color: var(--redwood-amber);
        border-color: transparent;
        color: #ffffff;
    }

    .mobile-action-primary:active {
        background-color: var(--redwood-amber-active);
    }

    .mobile-btn-icon {
        width: 16px;
        height: 16px;
    }

    .mobile-action-btn .icon-sun,
    .mobile-action-btn .icon-moon {
        width: 15px;
        height: 15px;
    }

    /* Horizontal Nav Menu Strip */
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
        gap: var(--space-4);
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        white-space: nowrap;
        padding: 5px 10px;
        font-size: var(--font-size-xs);
    }

    .nav-indicator {
        display: none;
    }

    .nav-link.active {
        background-color: var(--bg-surface-elevated);
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    /* Desktop Bottom Dock Hidden on Mobile */
    .sidebar-bottom {
        display: none;
    }

    .content-area {
        margin-left: 0;
        padding: var(--space-20) var(--space-16);
    }

    .section-hero {
        min-height: auto;
        padding-top: var(--space-32);
        padding-bottom: var(--space-32);
        gap: var(--space-24);
    }

    .hero-metrics-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    section {
        min-height: auto;
        padding-top: var(--space-32);
        padding-bottom: var(--space-40);
        scroll-margin-top: 64px;
    }

    .grid-cards-2,
    .grid-cards-3,
    .form-grid {
        grid-template-columns: 1fr;
    }

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

    .form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}