/* AM Nusantara - Dark & Light Theme */

/* CSS Variables - Dark Theme (Default) */
:root {
    --bg-primary: #0B0C0E;
    --bg-secondary: #131518;
    --bg-tertiary: rgba(11, 12, 14, 0.72);
    --text-primary: #F3EFE6;
    --text-secondary: #A9A69E;
    --text-muted: #8C8982;
    --accent-gold: #E9A820;
    --accent-gold-dark: #C48E1A;
    --border-color: #2A2D31;
    --success: #8FD6AE;
    --error: #F2A48C;
    --logo-bg: #F5F5F5;
    --card-bg: #0B0C0E;
    --font-main: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F6F3;
    --bg-tertiary: rgba(248, 246, 243, 0.9);
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #777777;
    --accent-gold: #D4940A;
    --accent-gold-dark: #B37D08;
    --border-color: #E5E2DD;
    --logo-bg: transparent;
    --card-bg: #FFFFFF;
}

/* Light theme specific overrides */
[data-theme="light"] .logo img,
[data-theme="light"] .footer-brand img {
    background: transparent;
    padding: 0;
}

[data-theme="light"] .section-light {
    background: #F0EDE8;
}

[data-theme="light"] .section-dark {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Light theme - Cards & Boxes */
[data-theme="light"] .card,
[data-theme="light"] .process-card,
[data-theme="light"] .insight-card,
[data-theme="light"] .contact-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .ticker-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
}

[data-theme="light"] .signal-gauge {
    background: #FFFFFF;
}

[data-theme="light"] .indicator-item {
    background: #FFFFFF;
}

[data-theme="light"] .featured-chart {
    background: var(--bg-secondary);
}

[data-theme="light"] .grid-3,
[data-theme="light"] .grid-6,
[data-theme="light"] .indicators-grid {
    background: var(--border-color);
}

/* Light theme - SVG colors */
[data-theme="light"] .sunburst-bg {
    opacity: 0.3;
}

/* Light theme - Text adjustments */
[data-theme="light"] .text-muted {
    color: #666666;
}

[data-theme="light"] .card-desc,
[data-theme="light"] .process-desc,
[data-theme="light"] .insight-excerpt,
[data-theme="light"] .contact-desc {
    color: #555555;
}

[data-theme="light"] .ticker-label,
[data-theme="light"] .indicator-label {
    color: #777777;
}

/* Light theme - Capability list */
[data-theme="light"] .capability-list {
    border-color: #D5D0C8;
}

[data-theme="light"] .capability-item {
    border-color: #D5D0C8;
}

/* Light theme - Footer */
[data-theme="light"] .site-footer {
    background: var(--bg-secondary);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-gold);
}

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

/* Container */
.container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5.5vw, 88px);
}

/* Typography */
.label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 12px;
}

.label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
}

.label-muted {
    color: var(--text-secondary);
}

.label-muted::before {
    display: none;
}

h1, h2, h3 {
    font-family: var(--font-main);
    font-weight: 200;
    letter-spacing: -0.04em;
    line-height: 1;
}

h1 {
    font-size: clamp(56px, 10.6vw, 176px);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(40px, 5.6vw, 84px);
    letter-spacing: -0.035em;
}

h3 {
    font-size: clamp(28px, 3.3vw, 46px);
    font-weight: 300;
    letter-spacing: -0.03em;
}

.text-gold {
    color: var(--accent-gold);
}

.text-muted {
    color: var(--text-muted);
}

/* Header */
.site-header {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(20px, 5.5vw, 88px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo .logo-full {
    height: 70px;
    width: 70px;
    object-fit: contain;
    object-position: top;
}

.logo .logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--accent-gold);
}

.logo-tagline {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 14px;
    list-style: none;
    background: rgba(40, 44, 52, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-menu a {
    padding: 10px 18px;
    border-radius: 999px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu .btn-outline {
    padding: 10px 22px;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 999px;
    margin-left: 8px;
}

.nav-menu .btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Light theme nav */
[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-color);
}

[data-theme="light"] .nav-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 17px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #E7C576;
    color: var(--bg-primary);
}

.btn-outline {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-ghost {
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-dark {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.link-underline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--accent-gold);
}

/* Arrow Icon */
.arrow-icon {
    width: 22px;
    height: 10px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-content {
    position: relative;
    max-width: 1264px;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 48px) clamp(20px, 5.5vw, 88px) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

.hero-content p {
    max-width: 30em;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 300;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Sunburst SVG Background */
.sunburst-bg {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: max(100%, 1400px);
    height: auto;
    transform: translateX(-50%);
    opacity: 0.8;
    pointer-events: none;
}

/* Market Ticker */
.market-ticker {
    position: relative;
    max-width: 1264px;
    margin: 0 auto;
    padding: clamp(80px, 12vw, 180px) clamp(20px, 5.5vw, 88px) clamp(40px, 5vw, 80px);
}

.ticker-grid {
    max-width: 1264px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    border: 1px solid var(--border-color);
    border-left: 0;
    border-bottom: 0;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: rgba(11, 12, 14, 0.72);
    border-left: 1px solid var(--border-color);
}

.ticker-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.ticker-value {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.ticker-change {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0;
}

.ticker-up {
    color: var(--success);
}

.ticker-down {
    color: var(--error);
}

/* Section Styles */
section {
    padding: clamp(80px, 10vw, 160px) clamp(20px, 5.5vw, 88px);
}

.section-border {
    border-top: 1px solid var(--border-color);
}

.section-dark {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section-light .label {
    color: var(--accent-gold-dark);
}

.section-light .text-muted {
    color: #55524B;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 32px 64px;
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

/* Cards */
.card {
    background: var(--bg-primary);
    padding: 32px 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.card-title {
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.card-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Process Card */
.process-card {
    background: var(--bg-primary);
    padding: 36px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 300px;
}

.process-number {
    font-weight: 100;
    font-size: 96px;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--accent-gold);
}

.process-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    padding-top: 12px;
}

.process-desc {
    font-size: 17px;
    font-weight: 300;
}

.process-output {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.process-output-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding-right: 10px;
}

/* Insight Cards */
.insight-card {
    background: var(--bg-secondary);
    padding: 32px 30px 34px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--accent-gold);
}

.insight-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.insight-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.insight-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
}

.insight-link {
    margin-top: auto;
    padding-top: 12px;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

/* Capability List */
.capability-list {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #D5CFC2;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid #D5CFC2;
}

.capability-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold-dark);
    flex: 0 0 36px;
}

.capability-title {
    flex: 1;
    font-size: clamp(28px, 3.3vw, 46px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.capability-arrow {
    flex: 0 0 48px;
    height: 48px;
    border: 1px solid var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Cards */
.contact-card {
    background: rgba(19, 21, 24, 0.86);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border-color);
}

.contact-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.contact-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, auto));
    gap: 20px 64px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 24px;
    font-weight: 300;
}

/* Signal Gauge */
.signal-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: clamp(28px, 3.4vw, 48px);
}

.signal-value {
    font-weight: 200;
    font-size: clamp(52px, 6vw, 88px);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent-gold);
    padding-top: 12px;
}

.signal-range {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 440px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-top: 14px;
}

/* Indicators Grid */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.indicator-item {
    background: var(--bg-secondary);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.indicator-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.indicator-value {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1;
}

/* Governance Steps */
.governance-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 32px 6px;
}

.governance-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.governance-step-bar {
    height: 3px;
    background: var(--accent-gold);
}

.governance-step-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.governance-step-title {
    font-size: 19px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: clamp(48px, 5vw, 80px) clamp(20px, 5.5vw, 88px) 32px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 40px 48px;
    color: var(--text-primary);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

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

.footer-logo img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    object-position: top;
}

.footer-logo .logo-name {
    font-size: 28px;
}

.footer-logo .logo-tagline {
    font-size: 13px;
}

.footer-tagline {
    font-size: 20px;
    font-weight: 300;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    font-size: 15px;
}

.footer-nav-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding-bottom: 8px;
}

.footer-nav a {
    padding: 10px 0;
}

.footer-disclaimer {
    max-width: 76em;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
}

.footer-links a {
    padding: 12px 0;
}

/* Featured Article */
.featured-article {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    border: 1px solid var(--border-color);
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(28px, 4vw, 60px);
}

.featured-title {
    font-weight: 200;
    font-size: clamp(36px, 4.2vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.featured-excerpt {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 30em;
}

.featured-chart {
    background: var(--bg-secondary);
    padding: clamp(28px, 3.4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 320px;
}

/* Theme Toggle & Language Switcher */
.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--border-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--accent-gold);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
    transition: fill 0.3s;
}

.theme-toggle:hover svg {
    fill: var(--bg-primary);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--border-color);
    border-radius: 999px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

/* Hamburger Button - Hidden by default */
.mobile-menu-toggle {
    display: none;
    background: var(--border-color);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: var(--accent-gold);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--bg-primary);
}

/* Hamburger animation when open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    z-index: 999;
    padding: 100px 32px 40px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    border-radius: 12px;
    transition: all 0.3s;
}

.mobile-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-gold);
}

.mobile-menu .btn-outline {
    margin-top: 16px;
    text-align: center;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.mobile-menu .btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Light Theme Mobile Menu */
[data-theme="light"] .mobile-menu {
    background: #FFFFFF;
}

[data-theme="light"] .mobile-menu a:hover {
    background: var(--bg-secondary);
}

/* Show mobile menu toggle on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
}

/* ============================================
   GOVERNANCE PAGE STYLES
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    padding: 20px clamp(20px, 5.5vw, 88px);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb .separator {
    margin: 0 12px;
    color: var(--text-muted);
}

/* Page Hero */
.page-hero {
    padding: clamp(80px, 10vw, 140px) 0;
    border-bottom: 1px solid var(--border-color);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px 88px;
    align-items: end;
}

.page-hero-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.page-hero-content h1 {
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 200;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.page-hero-desc {
    max-width: 28em;
}

.page-hero-desc p {
    font-size: 19px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .page-hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Decision Path Section */
.decision-path {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.decision-path h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 14em;
}

.section-desc {
    max-width: 48em;
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Decision Tabs */
.decision-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.decision-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
}

.decision-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.decision-tab.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.tab-icon {
    font-size: 16px;
    font-weight: 300;
}

/* Decision Content */
.decision-content {
    padding: 40px 0;
}

.decision-panel {
    display: none;
}

.decision-panel.active {
    display: block;
}

.decision-panel h3 {
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.decision-panel p {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 44em;
    margin-bottom: 24px;
}

.output-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.output-label strong {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding-right: 10px;
}

/* Capital Architecture Section */
.capital-architecture {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.capital-architecture h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 14em;
}

.architecture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-top: 32px;
}

@media (max-width: 900px) {
    .architecture-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-box {
    position: relative;
    width: 280px;
    height: 280px;
}

.diagram-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 160px;
    height: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.diagram-center span {
    transform: rotate(45deg);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
    padding: 12px;
}

.diagram-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 240px;
    height: 240px;
    border: 1px dashed var(--border-color);
}

/* Architecture List */
.architecture-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.arch-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.arch-item:first-child {
    border-top: 1px solid var(--border-color);
}

.arch-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--accent-gold);
    margin-top: 4px;
}

.arch-label {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.arch-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 4px;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    margin-top: 48px;
}

.principle-card {
    background: var(--bg-primary);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.principle-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
}

.principle-card h3 {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.principle-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
}

[data-theme="light"] .principle-card {
    background: #FFFFFF;
}

[data-theme="light"] .principles-grid {
    background: #D5D0C8;
    border-color: #D5D0C8;
}

/* Risk Section */
.risk-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.risk-section h2 {
    font-size: clamp(42px, 5.5vw, 80px);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.04em;
}

.risk-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    padding-top: 40px;
}

@media (max-width: 900px) {
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Risk Triangle Diagram */
.risk-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.risk-triangle {
    position: relative;
    width: 260px;
    height: 240px;
}

.triangle-point {
    position: absolute;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
}

.triangle-point.top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.triangle-point.left {
    bottom: 0;
    left: 0;
}

.triangle-center {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 32px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 500;
    border-radius: 999px;
}

/* Risk Content */
.risk-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.risk-lead {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.risk-content > p {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 48em;
}

.risk-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.risk-detail h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.risk-detail p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Shariah Section */
.shariah-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

@media (max-width: 900px) {
    .shariah-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.shariah-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shariah-content h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.shariah-content p {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Shariah List */
.shariah-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.shariah-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 17px;
    font-weight: 300;
}

.shariah-item .status {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    white-space: nowrap;
}

/* Approval Grid */
.approval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.approval-card {
    background: var(--bg-secondary);
    padding: 28px;
    border: 1px solid var(--border-color);
}

.approval-card h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.approval-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

[data-theme="light"] .approval-card {
    background: #F8F6F3;
}

/* Important Info */
.important-info {
    padding: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.important-info h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.important-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

[data-theme="light"] .important-info {
    background: #F8F6F3;
}

/* Contact CTA */
.contact-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 80px;
    align-items: end;
}

@media (max-width: 900px) {
    .contact-cta {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.contact-cta-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-cta-content h2 {
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.contact-cta-action {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-cta-action p {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 28em;
}

/* ============================================
   END GOVERNANCE PAGE STYLES
   ============================================ */

/* ============================================
   INVESTMENT APPROACH PAGE STYLES
   ============================================ */

/* Hero Quote */
.hero-quote {
    margin-top: 24px;
    padding-left: 20px;
    border-left: 2px solid var(--accent-gold);
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Approach Intro */
.approach-intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.approach-intro h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 14em;
}

/* Approach Tabs */
.approach-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.approach-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
}

.approach-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.approach-tab.active {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

.approach-tab .tab-icon {
    opacity: 0.6;
}

.approach-tab.active .tab-icon {
    opacity: 1;
}

/* Approach Tab Content */
.approach-tab-content {
    padding: 40px 0 20px;
}

.approach-panel {
    display: none;
}

.approach-panel.active {
    display: block;
}

.approach-panel p {
    font-size: 19px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 52em;
}

/* Process Section */
.process-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.process-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-header h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

/* Process Diagram */
.process-diagram {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.diagram-visual {
    position: relative;
    width: 100%;
    max-width: 600px;
    opacity: 0.6;
}

/* Process Steps Vertical */
.process-steps-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.process-step-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .process-step-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.step-number {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.step-content h3 {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 300;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.step-content > p:first-of-type {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
}

.step-detail {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 48em;
}

/* Accordion List */
.accordion-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.accordion-title {
    font-size: clamp(20px, 2.4vw, 32px);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.accordion-icon {
    font-size: 24px;
    font-weight: 200;
    color: var(--accent-gold);
    transition: transform 0.3s;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    display: none;
    padding: 0 0 32px;
}

.accordion-item.open .accordion-content {
    display: block;
}

.accordion-content p {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 52em;
}

[data-theme="light"] .accordion-header {
    color: var(--text-primary);
}

[data-theme="light"] .accordion-title {
    color: var(--text-primary);
}

/* Resilience Section */
.resilience-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.resilience-section h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.resilience-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 900px) {
    .resilience-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Triangle Diagram */
.resilience-diagram {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.triangle-diagram {
    position: relative;
    width: 280px;
    height: 260px;
}

.triangle-vertex {
    position: absolute;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
}

.triangle-vertex.top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.triangle-vertex.left {
    bottom: 0;
    left: 0;
}

.triangle-vertex.right {
    bottom: 0;
    right: 0;
}

.triangle-center-badge {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 28px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 999px;
}

/* Resilience Text */
.resilience-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resilience-text .lead-text {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.resilience-text p {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.info-section h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

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

.info-card h3 {
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.info-card p {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ============================================
   END INVESTMENT APPROACH PAGE STYLES
   ============================================ */

/* ============================================
   STRATEGIES PAGE STYLES
   ============================================ */

/* Principles Row */
.principles-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.principle-item {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

/* Universe Section */
.universe-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.universe-header h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

/* Universe Grid */
.universe-grid {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 48px;
    min-height: 500px;
}

@media (max-width: 1100px) {
    .universe-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Capability Sidebar */
.capability-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.capability-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
}

.capability-btn:hover {
    background: var(--bg-secondary);
}

.capability-btn.active {
    border-left-color: var(--accent-gold);
    background: var(--bg-secondary);
}

.cap-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.capability-btn.active .cap-number {
    color: var(--accent-gold);
}

.cap-name {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
}

.capability-btn.active .cap-name {
    color: var(--text-primary);
}

/* Capability Diagram */
.capability-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-canvas {
    position: relative;
    width: 260px;
    height: 260px;
}

.canvas-node {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-primary);
    transition: all 0.3s;
}

.canvas-node.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: var(--bg-secondary);
}

.canvas-node.node-1 { top: 20%; left: 10%; }
.canvas-node.node-2 { top: 5%; left: 45%; }
.canvas-node.node-3 { top: 20%; right: 10%; }
.canvas-node.node-4 { top: 50%; right: 5%; }
.canvas-node.node-5 { bottom: 15%; right: 20%; }
.canvas-node.node-6 { bottom: 10%; left: 35%; }
.canvas-node.node-7 { top: 50%; left: 5%; }

.canvas-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

/* Capability Detail */
.capability-detail {
    position: relative;
}

.cap-detail-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.cap-detail-panel.active {
    display: flex;
}

.cap-status {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cap-detail-panel h3 {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 300;
    letter-spacing: -0.025em;
    color: var(--accent-gold);
}

.cap-tagline {
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
}

/* Capability Considerations */
.cap-considerations {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.considerations-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.cap-considerations ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cap-considerations li {
    font-size: 15px;
    color: var(--text-primary);
}

/* Capability Markets */
.cap-markets {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.markets-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 16px;
}

.markets-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.market-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.market-value {
    font-size: 15px;
    font-weight: 400;
}

.market-change {
    font-family: var(--font-mono);
    font-size: 12px;
}

.market-change.up {
    color: var(--success);
}

.market-change.down {
    color: var(--error);
}

.market-note {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Capability Insight */
.cap-insight {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.insight-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.insight-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-primary);
}

.insight-link-card:hover {
    color: var(--accent-gold);
}

/* More Detail Button */
.more-detail-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    margin-top: 16px;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
}

.more-detail-btn:hover {
    color: var(--text-primary);
}

.plus-icon {
    font-size: 20px;
    color: var(--accent-gold);
}

/* Status Section */
.status-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.status-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 32em;
}

.status-header h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.status-header p {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.status-item {
    background: var(--bg-primary);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-name {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: 500;
}

.status-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.status-count {
    font-size: 14px;
    color: var(--accent-gold);
    margin-top: auto;
}

.status-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: auto;
}

[data-theme="light"] .status-item {
    background: #FFFFFF;
}

[data-theme="light"] .status-grid {
    background: #D5D0C8;
    border-color: #D5D0C8;
}

/* Notice Box */
.notice-box {
    padding: 28px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.notice-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 12px;
}

.notice-box p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

[data-theme="light"] .notice-box {
    background: #F8F6F3;
}

/* ============================================
   END STRATEGIES PAGE STYLES
   ============================================ */

/* ============================================
   INSIGHTS PAGE STYLES
   ============================================ */

/* Insights Hero */
.insights-hero {
    padding-bottom: 48px;
}

.insights-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 64px;
}

.insights-hero-content h1 {
    font-size: clamp(64px, 10vw, 140px);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.045em;
}

/* Insights Pillars */
.insights-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .insights-pillars {
        grid-template-columns: 1fr;
    }
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pillar-icon {
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.pillar-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pillar-desc {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
}

/* Featured Research */
.featured-research {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.featured-label {
    padding-bottom: 16px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-content h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.featured-content > p {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

.featured-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

.featured-points li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: var(--text-secondary);
}

.featured-points li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.featured-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Featured Chart Area */
.featured-chart-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.chart-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.chart-placeholder {
    flex: 1;
    min-height: 200px;
}

.chart-legend {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Signals Section */
.signals-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.signals-header h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.signals-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.link-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--accent-gold);
}

/* Signals Grid */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.signal-card {
    background: var(--bg-primary);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.signal-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.signal-card h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.signal-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.signal-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.signal-ticker .ticker-name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.signal-ticker .ticker-value {
    font-size: 18px;
    font-weight: 400;
}

.signal-ticker .ticker-change {
    font-family: var(--font-mono);
    font-size: 12px;
}

.signal-ticker .ticker-change.up {
    color: var(--success);
}

.signal-ticker .ticker-change.down {
    color: var(--error);
}

.signal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--accent-gold);
}

[data-theme="light"] .signal-card {
    background: #FFFFFF;
}

[data-theme="light"] .signals-grid {
    background: #D5D0C8;
    border-color: #D5D0C8;
}

/* Library Section */
.library-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.library-header h2 {
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

/* Library Filters */
.library-filters {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tab {
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.filter-tab.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.filter-search {
    flex-shrink: 0;
}

.search-input {
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    width: 200px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Research List */
.research-list {
    display: flex;
    flex-direction: column;
}

.research-item {
    display: grid;
    grid-template-columns: 50px 180px 1fr auto;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

@media (max-width: 900px) {
    .research-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.research-item:hover {
    background: var(--bg-secondary);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.research-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.research-category {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
}

.research-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.research-content h3 {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.research-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.research-content h3 a:hover {
    color: var(--accent-gold);
}

.research-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Threads Section */
.threads-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.threads-header h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-top: 16px;
}

.threads-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
}

@media (max-width: 900px) {
    .threads-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Threads List */
.threads-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
}

.thread-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.thread-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
}

.thread-name {
    font-size: 18px;
    font-weight: 400;
}

/* Threads Content */
.threads-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.threads-content blockquote {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
    font-style: italic;
}

.threads-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.threads-articles-label,
.threads-data-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.thread-article {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.thread-article:hover {
    color: var(--accent-gold);
}

/* Threads Data */
.threads-data {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.threads-tickers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thread-ticker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.thread-ticker span:first-child {
    color: var(--text-secondary);
}

.thread-ticker span:nth-child(2) {
    font-weight: 400;
}

.thread-ticker .up {
    color: var(--success);
}

.thread-ticker .down {
    color: var(--error);
}

/* ============================================
   END INSIGHTS PAGE STYLES
   ============================================ */

/* ============================================
   MARKET VIEW PAGE STYLES
   ============================================ */

/* Signal Section */
.signal-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

@media (max-width: 1000px) {
    .signal-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.signal-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.signal-gauge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 480px;
}

.signal-value-large {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 200;
    letter-spacing: -0.04em;
    color: var(--accent-gold);
}

.signal-range-large {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-top: 12px;
}

.signal-commentary {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 32em;
}

.signal-updated {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Signal Factors */
.signal-factors {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.factors-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.factor-item {
    background: var(--bg-primary);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.factor-name {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.factor-status {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.factor-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Market Section */
.market-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.market-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-header h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

/* Market Table */
.market-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 150px 120px;
    gap: 24px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 150px 120px;
    gap: 24px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

.table-row:hover {
    background: var(--bg-secondary);
}

.market-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-ticker {
    font-size: 18px;
    font-weight: 400;
}

.market-fullname {
    font-size: 13px;
    color: var(--text-muted);
}

.market-value {
    font-size: 18px;
    font-weight: 400;
    text-align: right;
}

.market-change {
    font-family: var(--font-mono);
    font-size: 14px;
    text-align: right;
}

.market-change.up {
    color: var(--success);
}

.market-change.down {
    color: var(--error);
}

@media (max-width: 600px) {
    .table-header,
    .table-row {
        grid-template-columns: 1fr auto auto;
        gap: 16px;
    }
}

/* Market Chart Area */
.market-chart-area {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Market Grid Cards */
.market-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.market-card {
    background: var(--bg-primary);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-card-name {
    font-size: 15px;
    color: var(--text-secondary);
}

.market-card-value {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.market-card-change {
    font-family: var(--font-mono);
    font-size: 14px;
}

.market-card-change.up {
    color: var(--success);
}

.market-card-change.down {
    color: var(--error);
}

/* Yield Grid */
.yield-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.yield-card {
    background: var(--bg-primary);
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yield-name {
    font-size: 16px;
    color: var(--text-secondary);
}

.yield-data {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yield-value {
    font-size: 24px;
    font-weight: 400;
}

.yield-change {
    font-family: var(--font-mono);
    font-size: 12px;
}

.yield-change.up {
    color: var(--error);
}

.yield-change.down {
    color: var(--success);
}

/* Currency Grid */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.currency-card {
    background: var(--bg-primary);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.currency-pair {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.currency-value {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.currency-change {
    font-family: var(--font-mono);
    font-size: 13px;
}

.currency-change.up {
    color: var(--error);
}

.currency-change.down {
    color: var(--success);
}

/* Commodity Grid */
.commodity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.commodity-card {
    background: var(--bg-primary);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commodity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.commodity-name {
    font-size: 16px;
}

.commodity-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.commodity-data {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
}

.commodity-value {
    font-size: 22px;
    font-weight: 400;
}

.commodity-change {
    font-family: var(--font-mono);
    font-size: 13px;
}

.commodity-change.up {
    color: var(--success);
}

.commodity-change.down {
    color: var(--error);
}

/* Commentary Section */
.commentary-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.commentary-header h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-top: 16px;
}

.commentary-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
}

@media (max-width: 900px) {
    .commentary-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.commentary-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.commentary-main h3 {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.commentary-main p {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Commentary Points */
.commentary-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.point-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.point-icon {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-gold);
}

.point-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.point-content h4 {
    font-size: 17px;
    font-weight: 500;
}

.point-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

[data-theme="light"] .point-item {
    background: #FFFFFF;
}

/* Disclaimer Box */
.disclaimer-box {
    padding: 28px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.disclaimer-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 12px;
}

.disclaimer-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

[data-theme="light"] .disclaimer-box {
    background: #F8F6F3;
}

[data-theme="light"] .factor-item,
[data-theme="light"] .market-card,
[data-theme="light"] .yield-card,
[data-theme="light"] .currency-card,
[data-theme="light"] .commodity-card {
    background: #FFFFFF;
}

[data-theme="light"] .factors-grid,
[data-theme="light"] .market-grid-cards,
[data-theme="light"] .yield-grid,
[data-theme="light"] .currency-grid,
[data-theme="light"] .commodity-grid {
    background: #D5D0C8;
    border-color: #D5D0C8;
}

/* ============================================
   END MARKET VIEW PAGE STYLES
   ============================================ */

/* Responsive - Tablet */
@media (max-width: 1100px) {
    .nav-menu {
        font-size: 13px;
        padding: 6px 10px;
        gap: 2px 4px;
    }

    .nav-menu a {
        padding: 8px 12px;
    }

    .nav-menu .btn-outline {
        padding: 8px 14px;
        margin-left: 4px;
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 10px 16px;
        border-radius: 12px;
        gap: 4px 8px;
    }

    .nav-menu a {
        padding: 10px 14px;
    }

    .nav-menu .btn-outline {
        margin-left: 0;
    }

    .header-controls {
        order: 2;
    }

    .logo {
        order: 1;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 16px;
    }

    .logo .logo-full {
        height: 50px;
        width: 50px;
    }

    .logo .logo-img {
        height: 44px;
    }

    .logo-name {
        font-size: 18px;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .header-controls {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }

    .header-controls {
        gap: 8px;
    }

    .theme-toggle,
    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Fix hero title overflow */
    h1 {
        font-size: clamp(32px, 9vw, 56px);
        word-break: break-word;
    }

    h2 {
        font-size: clamp(28px, 7vw, 40px);
    }

    /* Page hero mobile fixes */
    .page-hero {
        padding: 60px 0;
    }

    .page-hero h1 {
        font-size: clamp(28px, 8vw, 48px);
    }

    /* Container tighter padding on small screens */
    .container {
        padding: 0 16px;
    }

    /* Fix text overflow */
    p, .vision-desc, .value-desc, .team-bio {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Mobile menu adjustments for small screens */
    .mobile-menu {
        width: 100%;
        padding: 90px 24px 40px;
    }
}

/* ============================================
   ABOUT US PAGE STYLES
   ============================================ */

/* Stat Cards */
.stat-card {
    padding: 28px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--accent-gold);
}

.stat-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}

[data-theme="light"] .stat-card {
    background: #F8F6F3;
}

/* Vision & Mission Cards */
.vision-card {
    padding: clamp(32px, 4vw, 48px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vision-icon {
    color: var(--accent-gold);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
}

.vision-title {
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.vision-desc {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

[data-theme="light"] .vision-card {
    background: #F8F6F3;
}

/* Value Cards */
.value-card {
    padding: clamp(24px, 3vw, 36px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-number {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
}

.value-title {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.value-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
}

[data-theme="light"] .value-card {
    background: #FFFFFF;
    border-color: #D5D0C8;
}

/* Team Cards */
.team-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo::after {
    content: 'Photo';
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.team-name {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.team-role {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-top: -8px;
}

.team-bio {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.55;
}

[data-theme="light"] .team-card {
    background: #FFFFFF;
}

[data-theme="light"] .team-photo {
    background: #F8F6F3;
}

/* Regulatory Items */
.regulatory-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.regulatory-item:first-child {
    border-top: 1px solid var(--border-color);
}

.regulatory-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.regulatory-value {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
}

/* About Page Responsive */
@media (max-width: 768px) {
    .stat-card {
        padding: 20px 24px;
    }

    .stat-number {
        font-size: 24px;
    }

    .vision-card {
        padding: 24px;
    }

    .vision-title {
        font-size: 22px;
    }

    .value-card {
        padding: 20px;
    }

    .team-card {
        padding: 20px;
    }

    .team-photo {
        aspect-ratio: 4 / 3;
    }

    .team-name {
        font-size: 18px;
    }
}

/* ============================================
   END ABOUT US PAGE STYLES
   ============================================ */

/* Current page in navigation */
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-gold);
}

[data-theme="light"] .nav-menu a.active {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu a.active {
    color: var(--accent-gold);
}

/* Article opened from a link on another page */
.research-item.is-linked {
    background: var(--bg-secondary);
    box-shadow: inset 3px 0 0 var(--accent-gold);
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Keep each menu item on one line */
.nav-menu a {
    white-space: nowrap;
}

@media (max-width: 1440px) {
    .nav-menu {
        gap: 2px;
        padding: 6px 8px;
    }

    .nav-menu a {
        padding: 9px 11px;
    }

    .nav-menu .btn-outline {
        padding: 9px 14px;
        margin-left: 4px;
    }
}

/* Use the menu button whenever the full menu no longer fits on one line
   (Malay labels are longer, so it switches sooner) */
@media (max-width: 1280px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle,
    .mobile-menu {
        display: flex;
    }
}

@media (max-width: 1380px) {
    html[lang="ms"] .nav-menu {
        display: none;
    }

    html[lang="ms"] .mobile-menu-toggle,
    html[lang="ms"] .mobile-menu {
        display: flex;
    }
}

/* Light theme logo: the dark-theme logo has white lettering, so swap to the black-lettered version */
.logo-img-light { display: none !important; }
[data-theme="light"] .logo-img:not(.logo-img-light),
[data-theme="light"] .footer-logo-img:not(.logo-img-light) { display: none !important; }
[data-theme="light"] .logo-img-light { display: block !important; }
[data-theme="light"] .footer-logo img.logo-img-light { height: 64px; width: auto; }

/* Market indicators: six items as a 3x2 grid so long words (Moderating, Menyederhana) never spill into the next cell */
.indicators-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.indicator-item { min-width: 0; }
.indicator-value { font-size: clamp(22px, 2.4vw, 32px); overflow-wrap: anywhere; }
@media (max-width: 768px) {
    .indicators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .indicator-item { padding: 20px; }
}

/* ---------- Contact form ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.contact-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.contact-type {
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.contact-type input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-type:hover { border-color: var(--text-muted); }

.contact-type .contact-type-check { opacity: 0.35; transition: opacity 0.2s, transform 0.2s; }

.contact-type:has(input:checked) {
    border-color: var(--accent-gold);
    box-shadow: inset 0 0 0 1px var(--accent-gold);
}

.contact-type:has(input:checked) .contact-type-check { opacity: 1; transform: translateX(4px); }

.contact-type:has(input:focus-visible) { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

.contact-panel {
    background: rgba(19, 21, 24, 0.86);
    border: 1px solid var(--border-color);
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

[data-theme="light"] .contact-panel { background: #FFFFFF; }

.contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-field-wide { grid-column: 1 / -1; }

.form-field label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.field-optional {
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    font: inherit;
    font-size: 17px;
    font-weight: 300;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 10px 0;
    transition: border-color 0.2s;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.form-field.has-error input,
.form-field.has-error textarea { border-bottom-color: var(--error); }

[data-theme="light"] .form-field.has-error input,
[data-theme="light"] .form-field.has-error textarea { border-bottom-color: #C0392B; }

.field-error {
    font-size: 13px;
    color: var(--error);
}

[data-theme="light"] .field-error { color: #C0392B; }

.field-error:empty { display: none; }

/* Hidden from people, visible to form-filling bots */
.form-field-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}

.form-consent {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.form-consent label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.form-consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-gold);
}

.form-consent a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-submit:disabled { opacity: 0.6; cursor: progress; }

.contact-status:empty { display: none; }

.contact-status {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    line-height: 1.5;
}

.contact-status.is-success { border-color: var(--success); color: var(--success); }
.contact-status.is-error { border-color: var(--error); color: var(--error); }

[data-theme="light"] .contact-status.is-success { border-color: #1E7F4F; color: #1E7F4F; }
[data-theme="light"] .contact-status.is-error { border-color: #C0392B; color: #C0392B; }

.contact-note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .contact-fields { grid-template-columns: minmax(0, 1fr); }
    .contact-submit { width: 100%; justify-content: center; }
    .contact-type { padding: 22px; }
    .contact-type .contact-title { font-size: 22px; }
}

/* Firm intro: avoid an implicit second column on narrow screens */
@media (max-width: 760px) { .firm-copy { grid-column: auto !important; } }

/* Page heroes contain their sunburst background */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; }

/* Approach: the decorative sunburst above the process diagram must not widen the page */
section:has(.diagram-visual) { overflow-x: clip; }

/* Contact form: folded away until an enquiry type is chosen */
.contact-panel-wrap {
    display: grid;
    grid-template-rows: 1fr;
}

.contact-panel-inner { min-height: 0; }

.contact-hint {
    display: none;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-form.is-collapsed .contact-hint { display: block; }

.contact-form.is-collapsed .contact-panel-wrap {
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    margin-top: -16px;
}

.contact-form.is-collapsed .contact-panel-inner,
.contact-form.is-opening .contact-panel-inner { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
    .contact-panel-wrap {
        transition:
            grid-template-rows 0.6s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.5s ease 0.1s,
            margin-top 0.6s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s;
    }

    .contact-form.is-collapsed .contact-panel-wrap {
        transition: none;
    }
}

/* Market: six currency pairs sit as 3x2 (or 2x3, 1x6) so no empty cell shows */
.currency-grid { grid-template-columns: repeat(auto-fit, minmax(max(180px, calc((100% - 2px) / 3)), 1fr)); }
.commodity-grid { grid-template-columns: repeat(auto-fit, minmax(max(180px, calc((100% - 2px) / 3)), 1fr)); }

/* ============================================
   PAGE HERO BACKGROUND
   One shared background for every inner-page hero (pageHeroMedia()): a dark brass
   lattice still that drifts slowly, cross-faded to a looping video when it plays.
   The hero stays dark in both themes, so its own text colours are fixed here.
   ============================================ */
.page-hero {
    --text-primary: #F3EFE6;
    --text-secondary: rgba(243, 239, 230, .78);
    --text-muted: rgba(243, 239, 230, .6);
    --accent-gold: #E9A820;
    --border-color: rgba(233, 168, 32, .22);
    --card-bg: rgba(11, 12, 14, .55);
    isolation: isolate;
    background: #0B0C0E;
    color: var(--text-primary);
}
.page-hero h1 { color: var(--text-primary); }

.page-hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-hero-media picture, .page-hero-media img, .page-hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 75% 50%;
}
.page-hero-video { opacity: 0; transition: opacity 1.4s ease; }
.page-hero-video.is-playing { opacity: 1; }

/* Scrim: keeps the copy on the left readable, lets the lattice glow on the right. */
.page-hero-media::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 12, 14, .92) 0%, rgba(11, 12, 14, .78) 45%, rgba(11, 12, 14, .5) 75%, rgba(11, 12, 14, .3) 100%),
        linear-gradient(0deg, rgba(11, 12, 14, .85) 0%, rgba(11, 12, 14, 0) 40%);
}
@media (max-width: 760px) {
    .page-hero-media::after { background: linear-gradient(0deg, rgba(11, 12, 14, .94) 0%, rgba(11, 12, 14, .72) 55%, rgba(11, 12, 14, .55) 100%); }
}

/* Gold hairline at the base of every hero */
.page-hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 168, 32, .55) 50%, transparent);
    transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
    .page-hero-media img { animation: page-hero-drift 32s ease-in-out infinite alternate; transform-origin: 70% 50%; }
    .page-hero-media.has-video img { animation: none; }
    .page-hero-media { animation: page-hero-fade 1.6s ease both; }
    .page-hero::after { animation: page-hero-line 1.8s cubic-bezier(.22, 1, .36, 1) .3s both; }
}
@keyframes page-hero-drift {
    from { transform: scale(1.02); }
    to { transform: scale(1.1) translate(-1.5%, -1%); }
}
@keyframes page-hero-fade {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: none; }
}
@keyframes page-hero-line {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Light theme: the hero keeps its dark look. */
[data-theme="light"] .page-hero { border-bottom-color: transparent; }

/* ============================================
   SECTION PHOTO BACKGROUNDS
   Homepage-style photos behind content sections on every page (sectionBg()).
   section-media.js fades each one in as it enters view and moves it gently
   with the scroll; the homepage's own section photos share the same motion.
   ============================================ */
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.has-bg > .container { position: relative; }
.section-bg { --sb: var(--bg-primary); position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.section-dark > .section-bg { --sb: var(--bg-secondary); }
.section-bg picture, .section-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Full-bleed: faded photo that dissolves into the section colour at both edges */
.section-bg-full img { opacity: .34; }
.section-bg-full::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--sb) 0%, transparent 30%, transparent 62%, var(--sb) 100%),
                linear-gradient(90deg, var(--sb) 0%, transparent 55%);
    opacity: .9;
}
[data-theme="light"] .section-bg-full img { opacity: .14; }

/* Side: masked into the top-right corner, where headings leave space */
.section-bg-side {
    inset: 0 0 auto auto;
    width: min(46%, 640px); height: min(100%, 760px);
    opacity: .42;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 40%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 40%);
    mask-composite: intersect;
}
[data-theme="light"] .section-bg-side { opacity: .22; }
@media (max-width: 760px) {
    .section-bg-side { width: 100%; height: 420px; opacity: .25; }
}

/* Motion: reveal on the picture, scroll parallax on the image (via --bg-shift) */
html.bg-motion .section-bg picture,
html.bg-motion .section-media picture,
html.bg-motion .approach-media picture {
    opacity: 0; transform: scale(1.06);
    transition: opacity 1.4s ease, transform 2.2s cubic-bezier(.22, 1, .36, 1);
}
html.bg-motion .is-bg-shown picture { opacity: 1; transform: none; }
html.bg-motion .section-bg img,
html.bg-motion .section-media img,
html.bg-motion .approach-media img {
    transform: translate3d(0, var(--bg-shift, 0px), 0) scale(1.14);
    will-change: transform;
}

/* The Firm: four core values sit in one row, then 2 x 2, then one column */
.values-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .values-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================
   APPROACH PAGE
   ============================================ */

/* Stage track: six stages on one line, Govern marked as the centre.
   Each node jumps to its stage below; hovering one lights the matching stage. */
.stage-track {
    --dot: 14px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 8px 0 0;
}
.stage-track::before,
.stage-track::after {
    content: ""; position: absolute; top: calc(8px + var(--dot) / 2); height: 1px;
    left: calc(100% / 12); right: calc(100% / 12);
}
.stage-track::before { background: var(--border-color); }
.stage-track::after {
    background: linear-gradient(90deg, var(--accent-gold), rgba(233, 168, 32, .35));
    transform-origin: left center;
}
.stage-node {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 0 8px 12px; text-align: center; color: var(--text-primary);
}
.stage-node:hover { color: var(--text-primary); }
.stage-node-dot {
    width: var(--dot); height: var(--dot); border-radius: 50%;
    background: var(--bg-primary); border: 1px solid var(--accent-gold);
    transition: background-color .3s, transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s;
}
.stage-node-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--accent-gold); }
.stage-node-name {
    font-size: clamp(17px, 1.7vw, 22px); font-weight: 300; letter-spacing: -0.01em;
    transition: color .3s, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.stage-node.is-centre .stage-node-dot { background: var(--accent-gold); box-shadow: 0 0 0 6px rgba(233, 168, 32, .15); }
.stage-node.is-centre .stage-node-name { color: var(--accent-gold); }
.stage-node:hover .stage-node-dot,
.stage-node:focus-visible .stage-node-dot { background: var(--accent-gold); transform: scale(1.35); box-shadow: 0 0 0 8px rgba(233, 168, 32, .14); }
.stage-node:hover .stage-node-name,
.stage-node:focus-visible .stage-node-name { color: var(--accent-gold); transform: translateY(-3px); }
.process-step-item { scroll-margin-top: calc(var(--header-h, 80px) + 24px); transition: background-color .4s ease; }
.process-step-item.is-highlight { background-color: rgba(233, 168, 32, .05); }
.process-step-item.is-highlight .step-number { color: var(--accent-gold); }

@media (max-width: 760px) {
    .stage-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .stage-track::before, .stage-track::after { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    html.motion .stage-track::after { transform: scaleX(0); transition: transform 1.6s cubic-bezier(.22, 1, .36, 1) .2s; }
    html.motion .stage-track.is-lit::after { transform: scaleX(1); }
    html.motion .stage-node { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .7s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i) * 120ms + .2s); }
    html.motion .stage-track.is-lit .stage-node { opacity: 1; transform: none; }
    .stage-node.is-centre .stage-node-dot { animation: stage-pulse 2.8s ease-in-out infinite; }
}
@keyframes stage-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(233, 168, 32, .15); }
    50% { box-shadow: 0 0 0 12px rgba(233, 168, 32, .04); }
}

/* Step links: only as wide as their text, not the whole column */
.step-content .link-underline { align-self: flex-start; }

/* Accordion: buttons take the site font; titles slide and turn gold on hover */
.accordion-header { font: inherit; color: inherit; }
.accordion-title { transition: color .3s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.accordion-icon { transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.accordion-header:hover .accordion-title,
.accordion-item.open .accordion-title { color: var(--accent-gold); }
@media (hover: hover) {
    .accordion-header:hover .accordion-title { transform: translateX(10px); }
    .accordion-item:not(.open) .accordion-header:hover .accordion-icon { transform: rotate(90deg); }
}

/* Balance triangle: the edges and spokes behind the three labels */
.triangle-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.triangle-edge { stroke: var(--accent-gold); stroke-width: 1; opacity: .7; }
.triangle-spoke { stroke: var(--accent-gold); stroke-width: 1; stroke-dasharray: .015 .015; opacity: .45; }
.triangle-vertex { z-index: 1; padding: 0 6px; background: var(--bg-primary); transition: color .3s; }
.triangle-vertex:hover { color: var(--accent-gold); }
.triangle-center-badge { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
    html.motion .triangle-edge { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.22, 1, .36, 1); }
    html.motion .is-lit .triangle-edge { stroke-dashoffset: 0; }
    html.motion .triangle-spoke { opacity: 0; transition: opacity 1s ease 1.2s; }
    html.motion .is-lit .triangle-spoke { opacity: .45; }
    .triangle-center-badge { animation: stage-badge 3.2s ease-in-out infinite; }
}
@keyframes stage-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 168, 32, .35); }
    50% { box-shadow: 0 0 0 14px rgba(233, 168, 32, 0); }
}

/* ============================================
   MARKET PAGE
   ============================================ */
/* .market-ticker is also the homepage ticker section; inside the table it is only a label */
.market-name-cell .market-ticker {
    position: static;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Yields: name above, figure and change below, so long names do not squeeze the numbers */
.yield-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}

.yield-data {
    align-items: baseline;
    gap: 12px;
}

.yield-change,
.market-card-change,
.currency-change,
.commodity-change,
.market-change {
    white-space: nowrap;
}

.commentary-main .link-underline {
    align-self: flex-start;
}

.signal-updated {
    line-height: 1.6;
}

/* Signal gauge: needle and band turn together by --needle (set on the svg).
   They sweep up from Defensive on arrival, then follow the hovered factor. */
.gauge-needle,
.gauge-band-wrap {
    transform-box: view-box;
    transform-origin: 200px 200px;
    transform: rotate(var(--needle, 0deg));
}

html.motion .signal-gauge-large .gauge-needle,
html.motion .signal-gauge-large .gauge-band-wrap {
    transition: transform 1.6s cubic-bezier(.34, 1.3, .5, 1) .2s;
}

html.motion .signal-gauge-large:not(.is-lit) .gauge-needle,
html.motion .signal-gauge-large:not(.is-lit) .gauge-band-wrap {
    transform: rotate(-90deg);
}

html.motion .signal-gauge-large.is-live .gauge-needle,
html.motion .signal-gauge-large.is-live .gauge-band-wrap {
    transition: transform .8s cubic-bezier(.34, 1.35, .5, 1);
}

html.motion .signal-gauge-large .gauge-band {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1s ease-out 1s;
}

html.motion .signal-gauge-large.is-lit .gauge-band { stroke-dashoffset: 0; }

.signal-value-large,
.signal-composite > * {
    display: inline-block;
    transition: opacity .18s ease, transform .18s ease;
}

.signal-gauge-large.is-swapping .signal-value-large,
.signal-gauge-large.is-swapping .signal-composite > * {
    opacity: 0;
    transform: translateY(6px);
}

.signal-gauge-large:not(.is-live) .signal-value-large {
    transition: opacity .6s ease .9s, transform .6s ease .9s;
}

html.motion .signal-gauge-large:not(.is-lit) .signal-value-large {
    opacity: 0;
    transform: translateY(8px);
}

/* Market chart: revealed left to right (a clip, since the line keeps a non-scaling stroke) */
html.motion .market-chart-area svg,
html.motion .featured-chart-area svg {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.8s cubic-bezier(.65, 0, .35, 1) .15s;
}

html.motion .market-chart-area.is-lit svg,
html.motion .featured-chart-area.is-lit svg { clip-path: inset(0 0 0 0); }

/* Market table rows: gold bar and ticker colour on hover */
.table-row {
    position: relative;
    transition: background-color .3s ease;
}

.table-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gold);
    transform: scaleY(0);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.table-row:hover::before { transform: scaleY(1); }

.table-row .market-ticker,
.table-row .market-value {
    transition: color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.table-row:hover .market-ticker { color: var(--accent-gold); }
.table-row:hover .market-name-cell { transform: translateX(6px); }
.market-name-cell { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }

@media (prefers-reduced-motion: reduce) {
    .table-row::before,
    .market-name-cell { transition: none; }
}

/* Signal factors drive the gauge: each factor is a marker on the dial and a lean bar on its card */
.signal-composite {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.signal-composite strong {
    color: var(--accent-gold);
    font-weight: 400;
}

.gauge-marker {
    fill: var(--bg-primary);
    stroke: #A9A69E;
    stroke-width: 1.5;
    transition: fill .3s ease, stroke .3s ease, opacity .3s ease, r .3s ease;
}

.signal-section.has-focus .gauge-marker { opacity: .25; }

.signal-section.has-focus .gauge-marker.is-focus {
    opacity: 1;
    fill: var(--accent-gold);
    stroke: var(--accent-gold);
    r: 7px;
}

.factor-lean {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    width: 88px;
    margin: 2px 0 4px;
}

.factor-lean span {
    height: 3px;
    background: var(--border-color);
}

.factor-lean .is-mid { background: rgba(169, 166, 158, .35); }
.factor-lean .is-on { background: var(--accent-gold); }

.factor-item { transition: background-color .3s ease; }
.factor-item .factor-status { transition: color .3s ease; }
.factor-item.is-focus .factor-status { color: var(--accent-gold); }

html.motion .gauge-markers .gauge-marker {
    opacity: 0;
    transition: opacity .5s ease, fill .3s ease, stroke .3s ease, r .3s ease;
}

html.motion .signal-gauge-large.is-lit .gauge-marker { opacity: 1; }
html.motion .signal-section.has-focus .signal-gauge-large.is-lit .gauge-marker { opacity: .25; }
html.motion .signal-section.has-focus .signal-gauge-large.is-lit .gauge-marker.is-focus { opacity: 1; }

/* ============================================
   INSIGHTS PAGE
   ============================================ */
/* Featured chart fills its card instead of leaving a gap above the axis */
.chart-placeholder {
    display: flex;
    flex-direction: column;
}

/* Library rows: same padding at rest and on hover, so nothing shifts; the whole row links */
.research-item,
.research-item:hover {
    position: relative;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.research-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-gold);
    transform: scaleY(0);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}

.research-item:hover::before { transform: scaleY(1); }

.research-item h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
}

.research-item h3,
.research-content p {
    transition: color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.research-item:hover h3 { color: var(--accent-gold); transform: translateX(6px); }
.research-item:hover .research-content p { transform: translateX(6px); }

/* Threads: each theme swaps the quote and its notes */
.thread-item {
    width: 100%;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.thread-item .thread-name { transition: color .3s ease; }
.thread-item.is-active .thread-name { color: var(--accent-gold); }
.thread-item.is-active::before { transform: scaleY(1) !important; }
.thread-item:not(.is-active) .thread-number { color: var(--text-muted); }

.thread-panels { display: grid; }

.thread-panel {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1), visibility 0s .4s;
}

.thread-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .4s ease .1s, transform .5s cubic-bezier(.22, 1, .36, 1) .1s, visibility 0s;
}

.thread-article .arrow-icon,
.thread-article svg { transition: transform .3s ease; }
.thread-article:hover svg { transform: translateX(4px); }

/* Snapshot rows: fixed columns so the figures line up */
.thread-ticker {
    display: grid;
    grid-template-columns: 1fr auto 72px;
    gap: 16px;
}

.thread-ticker span:nth-child(n+2) { text-align: right; }
.thread-ticker .thread-ticker-wide { grid-column: 2 / 4; }

@media (prefers-reduced-motion: reduce) {
    .thread-panel,
    .thread-panel.is-active { transition: none; }
}

/* ============================================
   INVESTOR RELATIONS PAGE
   ============================================ */
.ir-updates {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
}

@media (max-width: 860px) {
    .ir-updates { grid-template-columns: 1fr; gap: 24px; }
}

.ir-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.ir-feed-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ir-feed-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
}

.ir-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.ir-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
}

.ir-feed-note {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Draft → Review → Approval → Published, with a marker that keeps walking the route */
.ir-pipeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color);
}

.ir-pipeline::before {
    content: '';
    position: absolute;
    left: 5px;
    right: calc(25% - 5px);
    top: 25px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), rgba(233, 168, 32, .15));
}

.ir-pipeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ir-pipeline-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    background: var(--bg-secondary);
    z-index: 1;
}

.ir-pipeline li:last-child .ir-pipeline-dot { border-style: dashed; border-color: var(--text-muted); }

.ir-pipeline-name {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ir-links-label {
    display: inline-flex;
    margin-bottom: 32px;
}

.ir-link-card { position: relative; }

.ir-link-arrow {
    margin-top: auto;
    padding-top: 12px;
    color: var(--accent-gold);
    display: inline-flex;
}

.ir-link-arrow svg { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.ir-link-card:hover .ir-link-arrow svg { transform: translateX(8px); }
.ir-link-card .card-title { transition: color .3s ease; }
.ir-link-card:hover .card-title { color: var(--accent-gold); }

@media (prefers-reduced-motion: no-preference) {
    .ir-pulse::after { animation: ir-pulse 2.4s ease-out infinite; }

    /* Each stage lights in turn, then the route rests before starting again */
    .ir-pipeline-dot { animation: ir-stage 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
    .ir-pipeline li .ir-pipeline-name { animation: ir-stage-name 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
    /* Nothing is published yet, so the walk stops short of the last stage */
    .ir-pipeline li:last-child .ir-pipeline-dot,
    .ir-pipeline li:last-child .ir-pipeline-name { animation: none; }
}

@keyframes ir-pulse {
    0% { transform: scale(1); opacity: .9; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes ir-stage {
    0%, 22%, 100% { background: var(--bg-secondary); box-shadow: none; }
    8%, 14% { background: var(--accent-gold); box-shadow: 0 0 0 5px rgba(233, 168, 32, .15); }
}

@keyframes ir-stage-name {
    0%, 22%, 100% { color: var(--text-muted); }
    8%, 14% { color: var(--accent-gold); }
}

/* ============================================
   MOBILE REFINEMENTS (new components)
   ============================================ */
@media (max-width: 1000px) {
    /* Market: the factors sit straight under the gauge, so a tap shows its effect on screen */
    .signal-section { display: flex; flex-direction: column; gap: 24px; }
    .signal-main { display: contents; }
    .signal-main > .label-muted { order: 1; align-self: center; }
    .signal-gauge-large { order: 2; align-self: center; }
    .signal-factors { order: 3; width: 100%; }
    .signal-commentary { order: 4; align-self: center; text-align: center; }
    .signal-updated { order: 5; align-self: center; text-align: center; }
}

@media (max-width: 600px) {
    .signal-gauge-large { padding: 24px 16px; }
    .signal-composite { font-size: 10px; letter-spacing: .06em; text-align: center; }
    .signal-composite strong { white-space: nowrap; }

    .factors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .factor-item { padding: 16px 14px; gap: 6px; }
    .factor-status { font-size: 19px; }
    .factor-desc { font-size: 12px; }
    .factor-lean { width: 70px; }

    /* Market figures two to a row instead of one long column */
    .market-grid-cards,
    .yield-grid,
    .currency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .market-card,
    .yield-card,
    .currency-card { padding: 18px 16px; }
    .market-card-value { font-size: 22px; }
    .yield-value { font-size: 20px; }
    .yield-name { font-size: 14px; }
    .yield-data { flex-wrap: wrap; gap: 2px 10px; }

    /* Approach: shorter stage names in the 3 x 2 track */
    .stage-node-name { font-size: 13px; }

    /* Investor Relations: the publishing route runs downwards */
    .ir-feed { padding: 24px 20px; }
    .ir-feed-note { font-size: 16px; }
    .ir-pipeline { grid-template-columns: 1fr; gap: 14px; }
    .ir-pipeline::before { left: 5px; right: auto; top: 26px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(var(--accent-gold), rgba(233, 168, 32, .15)); }
    .ir-pipeline li { flex-direction: row; align-items: center; }
}


/* Market view: illustrative note under the Defensive / Expansive range */
.signal-note {
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

/* Market page: data provenance notes (indicative / fallback values) */
.data-note {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
