@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --font-primary: 'Playfair Display', serif;
  --font-body: var(--font-primary);
  --font-heading: var(--font-primary);
  --color-bg-light: #ffffff;
  --color-bg-dark: #0f172a;
  --color-card-dark: #1e293b;
  --color-primary: #3AA0FF;
  --color-primary-dark: #2563eb;
  --color-accent: #C9A227;
  --color-accent-dark: #FACC15;
  --glass-light: rgba(255, 255, 255, 0.40);
  --glass-light-strong: rgba(255, 255, 255, 0.55);
  --glass-dark: rgba(30, 41, 59, 0.40);
  --glass-dark-strong: rgba(15, 23, 42, 0.45);
  --navy-bar: rgba(10, 34, 64, 0.85);
  --text-white: #ffffff;
  --text-black: #000000;
  --text-dark-navy: #0A2240;
  --text-dark-gray: #444444;
  --text-light-gray: #cccccc;
  --text-light-gray-alt: #F9FAFB;
  --text-blue: #3AA0FF;
  --text-light-blue: #2563EB;
  --text-gold: #C9A227;
}

html, body, button, .nav-link, .btn-primary { font-family: var(--font-primary) !important; }
* { box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; margin: 0; padding: 0; }
html { box-sizing: border-box; }

#spotlight, #market, #philosophy, #about, .section, section[id] { scroll-margin-top: 80px; }

.hero-bg {
  position: fixed; top: 80px; left: 0; width: 100vw; height: 100vh;
  background-size: 100vw auto; background-position: center top; background-repeat: no-repeat;
  z-index: -1; pointer-events: none; background-image: url('./static/images/cityscape.svg');
}
.dark .hero-bg { background-image: url('./static/images/cityscape-dark.svg'); }
body.dark { background-color: transparent; color: var(--text-light-gray-alt); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.5px; line-height: 1.2; }
#hero-text .container { max-width: 1600px; width: 98%; margin: 0 auto; padding: clamp(2rem, 8vh, 2rem) 0.5rem; text-align: center; }
.hero-title { max-width: 1150px; margin: 0 auto 1.5rem auto; text-wrap: balance; font-size: clamp(2.2rem, 5.5vw, 5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-dark-navy); display: block; }
.hero-title .highlight { font-family: var(--font-heading); color: var(--color-accent); font-size: 1.15em; display: inline-block; line-height: 1; text-shadow: none; }
.hero-title span { display: inline-block; white-space: nowrap; }
body.dark .hero-title { color: var(--text-white); }
body.dark .hero-title .highlight { color: var(--text-gold); }
@media (max-width: 380px) { .hero-title { font-size: 1.6rem; letter-spacing: -0.02em; } }
.hero-subtitle { font-family: var(--font-body); font-size: clamp(1.05rem, 3vw, 1.25rem); max-width: 800px; margin: 0 auto; line-height: 1.6; text-align: center; word-wrap: break-word; overflow-wrap: break-word; color: var(--text-dark-gray); font-style: italic; font-weight: 400; opacity: 0.9; }
body.dark .hero-subtitle { color: var(--text-light-gray); }
a { transition: all 0.3s ease; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.navbar { position: fixed; top: 0; height: 80px; width: 100%; min-height: 80px; z-index: 1000; background: var(--navy-bar); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.12); transition: background-color 0.4s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(12px, 3vw, 24px) 1rem; box-sizing: border-box; }
.brand-name { font-weight: 700; font-size: 1rem; color: var(--text-white); }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-link { color: var(--text-white); text-decoration: none; transition: all 220ms ease; padding: 0.5rem 0.4rem; }
.nav-link:hover { color: var(--text-gold); border-bottom: 2px solid var(--text-gold); }
.hero-image-wrap { width: 100%; margin-top: 80px; overflow: hidden; position: relative; z-index: 1; }
.hero-image { width: 100%; height: auto; display: block; }
#glass-shell { position: relative; width: 100%; background: linear-gradient(to bottom, transparent 0%, rgba(229, 231, 235, 0.45) 10%, rgba(229, 231, 235, 0.45) 100%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body.dark #glass-shell { background: var(--glass-dark-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.break-lg { display: none; }
@media (min-width: 1400px) { .break-lg { display: inline; } }

.section-text, .bio-text, .spotlight-desc { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
#about, .spotlight-market, #philosophy { padding-top: 0rem !important; padding-bottom: 1rem !important; }
.container.spotlight-market { margin-top: 0 !important; padding-top: 0 !important; }
.section { padding: clamp(0rem, 0vw, 0rem) 1rem; }
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: clamp(0px, 0vw, 0px) 0rem; box-sizing: border-box; }
.section-title { font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--text-dark-navy); margin-bottom: 2rem; text-align: center; }
body.dark .section-title { color: var(--text-light-gray-alt); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.card { background: var(--glass-light); backdrop-filter: blur(12px); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-12px); }
body.dark .card { background: var(--glass-dark); box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(12px); }

.spotlight-title { font-weight: 700; font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: 0.5rem; color: var(--text-light-blue); }
.spotlight-role { font-size: clamp(0.85rem, 2vw, 1rem); font-weight: 500; margin-bottom: 0.5rem; color: var(--text-dark-navy); }
.spotlight-desc { font-size: clamp(0.85rem, 2vw, 1rem); line-height: 1.4; max-width: 640px; margin: 0 auto; color: var(--text-dark-gray); }
body.dark .spotlight-title { color: var(--text-gold); }
body.dark .spotlight-role { color: var(--text-white); }
body.dark .spotlight-desc { color: var(--text-light-gray); }
.spotlight-market { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 1025px) { .spotlight-market { grid-template-columns: 1fr 2fr; align-items: center; } #spotlightContainer { display: flex; flex-direction: column; width: 100%; gap: 1rem; align-items: center; padding: 2rem 0; } #spotlightContainer img { max-width: 100%; height: auto; display: block; } #spotlightContainer > a { width: 100%; max-width: 420px; transform: scale(0.85); transform-origin: top center; } #spotlightContainer > a:hover { transform: scale(0.85) translateY(-10px); } #spotlightContainer .spotlight-title { font-size: clamp(1.25rem, 2.5vw, 1.5rem); } #spotlightContainer .spotlight-role, #spotlightContainer .spotlight-desc { font-size: clamp(0.85rem, 2vw, 1rem); } #spotlightContainer .card { padding: 1.8rem 2rem; } .market-block { display: flex; flex-direction: column; justify-content: center; min-height: 100%; } }
@media (max-width: 1024px) { .spotlight-market { grid-template-columns: 1fr; } #spotlightContainer { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

section#philosophy .philosophy-title { font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.75rem); margin-bottom: 0.5rem; color: var(--text-light-blue); }
section#philosophy .philosophy-desc { font-size: clamp(0.95rem, 2.2vw, 1.1rem); line-height: 1.4; max-width: 640px; margin: 0 auto; color: var(--text-dark-gray); }
body.dark section#philosophy .philosophy-title { color: var(--text-white); }
body.dark section#philosophy .philosophy-desc { color: var(--text-light-gray); }
.philosophy-icon { width: 3rem; height: 3rem; color: var(--text-light-blue); display: block; margin: 0 auto 1rem auto; }
body.dark .philosophy-icon { color: var(--text-gold); }

#market .card { background: var(--glass-light); backdrop-filter: blur(12px); border-radius: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); padding: 2.5rem; text-align: left; }
#market .card h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; font-family: var(--font-heading); color: var(--text-dark-navy); opacity: 0.95; }
#market .card ul { list-style: none; padding-left: 0; margin: 0; }
#market .card li { margin-bottom: 1rem; line-height: 1.6; }
#market .card li span { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-dark-gray); margin-bottom: 0.25rem; }
#market .card li a { font-size: 1rem; font-weight: 500; color: var(--text-dark-navy); text-decoration: none; transition: color 0.3s ease; }
#market .card li a:hover { color: var(--text-black); text-decoration: underline; }
body.dark #market .card { background: var(--glass-dark); color: var(--text-light-gray-alt); }
body.dark #market .card h3 { color: var(--text-light-gray-alt); }
body.dark #market .card li span { color: var(--text-light-gray); }
body.dark #market .card li a { color: var(--text-light-gray-alt); }
body.dark #market .card li a:hover { color: var(--text-white); }

.btn-primary { background-color: var(--color-primary); color: var(--text-white); padding: clamp(0.8rem, 2vw, 1rem) clamp(1.4rem, 4vw, 2rem); border-radius: 0.6rem; text-decoration: none; font-weight: 600; display: inline-block; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: all 220ms ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); background-color: var(--color-primary-dark); }
.btn-outline { border: 1.5px solid var(--color-primary); color: var(--color-primary); padding: 4px 12px; font-size: 0.95rem; line-height: 1; border-radius: 6px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; transition: all 220ms ease; }
.btn-outline:hover { background: var(--color-primary); color: var(--text-white); transform: translateY(-2px); }
body.dark .btn-outline { border-color: var(--text-gold); color: var(--text-gold); }
body.dark .btn-outline:hover { background: var(--text-gold); color: var(--text-black); }

footer { background: linear-gradient(180deg, var(--text-dark-navy) 0%, var(--color-bg-dark) 100%); color: var(--text-light-gray); text-align: center; padding: 0.75rem 0.5rem; box-shadow: inset 0 2px 6px rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.10); transition: background-color 0.4s ease, color 0.4s ease; }
footer a { color: var(--text-light-gray); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
footer a:hover { color: var(--text-white); text-decoration: underline; }
.footer-brand { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer-copy { font-size: clamp(0.8rem, 1.8vw, .95rem); line-height: 1.4; opacity: 0.85; margin-bottom: 0.25rem; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: clamp(0.5rem, 1vw, 0.75rem); margin: 0 auto 0.25rem; max-width: 1200px; }
.footer-links a, .footer-link, .footer-privacy { color: inherit; text-decoration: none; transition: color 0.3s ease; font-weight: 500; }
.footer-link:hover, .footer-privacy:hover { text-decoration: underline; color: var(--text-blue); }
.privacy-hover { position: relative; display: inline-block; }
.privacy-tooltip { visibility: hidden; opacity: 0; position: absolute; bottom: 125%; left: 50%; transform: translateX(-50%); background-color: rgba(10,34,64,0.95); color: var(--text-white); padding: 0.75rem; border-radius: 0.5rem; width: 240px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: opacity 0.3s ease; z-index: 10; }
.privacy-hover:hover .privacy-tooltip { visibility: visible; opacity: 1; }

#themeToggle { position: fixed; bottom: 0.75rem; right: 0.75rem; border: 1.5px solid var(--color-primary); background: transparent; color: var(--color-primary); border-radius: 999px; padding: 0.4rem 0.5rem; font-size: 0.9rem; cursor: pointer; transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease; }
#themeToggle:hover { transform: scale(1.08); color: var(--color-accent); border-color: var(--color-accent); }

#news { background-color: transparent; background-image: none; }
body.dark #news { background-color: transparent; background-image: none; }
#news .site { color: var(--text-dark-navy); }
#news a { color: var(--text-light-blue); }
#news a:hover { color: var(--text-gold); }
#news .footer { color: var(--text-dark-gray); }
#news .loading { color: var(--text-light-gray-alt); }
#news li { border-bottom-color: #eee; }
body.dark #news .site { color: var(--text-gold); }
body.dark #news a { color: var(--text-white); }
body.dark #news a:hover { color: var(--text-light-blue); }
body.dark #news .footer { color: var(--text-light-gray-alt); }
body.dark #news .loading { color: var(--text-dark-gray); }
body.dark #news li { border-bottom-color: #334155; }
#market .card.frosted-news { background: linear-gradient(180deg, var(--glass-light-strong), var(--glass-light)); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); border-radius: 0.9rem; border: 1px solid rgba(10,34,64,0.12); box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 0; overflow: hidden; }
body.dark #market .card.frosted-news { background: linear-gradient(180deg, rgba(245,245,245,0.65), rgba(220,220,220,0.45)); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); border: 1px solid rgba(255,255,255,0.20); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

#about .grid { gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; justify-items: center; }
#about .card { margin-top: 0 !important; overflow: hidden !important; display: flex; flex-direction: column; padding: clamp(1.5rem, 5vw, 2.5rem); height: 100%; min-height: 100%; }
.team-card-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.headshot-frame { position: relative; width: 160px; height: 160px; margin-bottom: 1.5rem; border-radius: 50%; background-color: transparent !important; border: 2px solid var(--text-light-blue); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); overflow: hidden; transition: border-color 0.3s ease; }
body.dark .headshot-frame { border: 2px solid var(--text-gold); }
.headshot-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease-in-out; }
.headshot-frame img.loaded { opacity: 1; }
.section-grid-gap { gap: clamp(1.5rem, 3vw, 2.5rem) !important; }
#about h3 { color: var(--text-dark-navy); }
body.dark #about h3 { color: var(--text-light-gray-alt); }
.role-text { color: var(--text-light-blue); }
body.dark .role-text { color: var(--text-gold); }
.bio-text { color: var(--text-dark-gray); text-align: center; margin: 0 auto; max-width: 640px; }
body.dark .bio-text { color: var(--text-light-gray-alt); }
.bio-text.line-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.read-more-btn { background: none; border: none; color: var(--text-light-blue); font-weight: 600; cursor: pointer; padding: 0; margin-top: 0.5rem; font-size: 0.9rem; display: inline-flex; align-items: center; }
body.dark .read-more-btn { color: var(--text-gold); }
.read-more-btn:hover { text-decoration: underline; }

#hero-text .card:hover, section#about .card:hover, section#philosophy .card:hover, .no-bounce:hover { transform: none !important; }
section#spotlight .card:hover { transform: translateY(-8px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }

@media (max-width: 768px) { .market-block { margin-bottom: 3rem; } #ticker { padding-top: 2rem; } }
@media (min-width: 768px) { #about .grid { grid-template-columns: repeat(2, 1fr); } #spotlight-market { padding-bottom: 1.5rem; } #ticker { padding-top: 1rem; margin-top: 0; } }
@media (max-width: 1024px) { .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); } .hero-subtitle { font-size: clamp(0.95rem, 2.5vw, 1.1rem); } .card { padding: 1.5rem; } #about picture img { display: block; margin: 0 auto; max-width: 300px; height: auto; border-radius: 50%; } }
@media (max-width: 768px) { h1, h2 { font-size: 2rem; } section { padding: 2rem 5vw; } .container { padding: 0 1rem; width: 100%; } .navbar { padding: 0.25rem 0; } .nav-inner { padding: 0.5rem 1rem; } .nav-links { gap: 0.5rem; } .hero-title { font-size: clamp(1.8rem, 8vw, 2.5rem); padding: 0 0.5rem; } .card { padding: 1.25rem; } }
@media (max-width: 480px) { h1, h2 { font-size: 1.5rem; } .hero-title { font-size: clamp(1.75rem, 6vw, 2rem); } .hero-subtitle { font-size: clamp(0.9rem, 3vw, 1rem); } .card { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; } }
