/* ============================================
   VARIABLES & RESET
============================================ */
:root {
  --bg:        #07090f;
  --bg-2:      #0d1018;
  --bg-3:      #131720;
  --surface:   #1a1f2e;
  --border:    rgba(255,255,255,0.07);
  --text:      #ddd8cc;
  --text-dim:  #7a7870;
  --text-muted:#3d3c38;
  --gold:      #c8922a;
  --gold-light:#e8b84b;
  --gold-dim:  rgba(200,146,42,0.12);
  --bureau:    #4ea8ff;
  --bureau-dim:rgba(78,168,255,0.10);
  --white:     #f0ece4;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   NAVIGATION
============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(7,9,15,0.97) 0%, rgba(7,9,15,0) 100%);
  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(7,9,15,0.97);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links .nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ============================================
   HERO
============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Radial atmosphere */
#hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(200,146,42,0.06) 0%,
    rgba(200,146,42,0.02) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Star field */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  background: var(--white);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: var(--opacity, 0.4); }
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.4s;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.55s;
}

.hero-description {
  max-width: 520px;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.85s;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}

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

.btn-ghost {
  padding: 14px 32px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

/* Live clock */
.hero-clock {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}

.clock-time {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.clock-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}

.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================
   SECTION COMMONS
============================================ */
section {
  padding: 100px 0;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

.section-intro {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 480px;
  line-height: 1.9;
  margin-bottom: 56px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ============================================
   ACTIVE PROJECT — THE BUREAU
============================================ */
#project {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%,
    var(--bureau-dim) 0%,
    transparent 60%);
  pointer-events: none;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--bureau-dim);
  border: 1px solid rgba(78,168,255,0.2);
  border-radius: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bureau);
  margin-bottom: 24px;
}

.project-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--bureau);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 32px;
}

.project-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--bureau);
  line-height: 1;
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-bureau {
  padding: 12px 28px;
  background: var(--bureau);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-bureau:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Bureau visual panel */
.project-visual {
  position: relative;
  height: 380px;
}

.bureau-panel {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border: 1px solid rgba(78,168,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bureau-panel-bar {
  height: 36px;
  background: rgba(78,168,255,0.08);
  border-bottom: 1px solid rgba(78,168,255,0.15);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(78,168,255,0.3);
}

.panel-dot.active { background: var(--bureau); }

.panel-title {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bureau);
  margin-left: 8px;
}

.bureau-panel-body {
  flex: 1;
  padding: 20px;
  font-size: 0.7rem;
  color: rgba(78,168,255,0.6);
  line-height: 2;
  overflow: hidden;
}

.bureau-panel-body .line { display: block; }
.bureau-panel-body .highlight { color: var(--bureau); }
.bureau-panel-body .dim { color: rgba(78,168,255,0.3); }

.bureau-panel-body .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--bureau);
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   UPDATES / BLOG
============================================ */
#updates {
  background: var(--bg);
}

.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.update-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.update-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.3s ease;
}

.update-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

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

.update-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.update-tag.tag-bureau { color: var(--bureau); }
.update-tag.tag-general { color: var(--text-dim); }

.update-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.update-excerpt {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.update-meta {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-read {
  color: var(--gold);
  transition: letter-spacing 0.2s;
}

.update-card:hover .update-read {
  letter-spacing: 0.15em;
}

.updates-footer {
  margin-top: 40px;
  text-align: center;
}

/* ============================================
   UPDATE CARD AS LINK
============================================ */
a.update-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ============================================
   SUBSCRIBE STRIP
============================================ */
#subscribe {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#subscribe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%,
    var(--gold-dim) 0%,
    transparent 60%);
  pointer-events: none;
}

.subscribe-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.subscribe-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.9;
  margin-top: 16px;
  max-width: 420px;
}

.subscribe-widget {
  display: flex;
  justify-content: center;
  align-items: center;
}

.widget-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  position: relative;
}

/* Tint the iframe to match dark theme */
.widget-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 15, 0.08);
  pointer-events: none;
}

.widget-wrapper iframe {
  display: block;
  width: 100%;
  height: 320px;
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.92;
}

@media (max-width: 900px) {
  .subscribe-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .widget-wrapper iframe {
    height: 280px;
  }
}

/* ============================================
   PLATFORMS / CONTENT HUB
============================================ */
#platforms {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.platform-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 28px 24px;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-card:hover {
  border-color: rgba(255,255,255,0.15);
  background: var(--surface);
}

.platform-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.platform-name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
}

.platform-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}

.platform-link {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: letter-spacing 0.2s;
}

.platform-card:hover .platform-link {
  letter-spacing: 0.18em;
}

/* ============================================
   SUPPORT
============================================ */
#support {
  background: var(--bg);
  text-align: center;
}

.support-inner {
  max-width: 560px;
  margin: 0 auto;
}

.support-inner .section-label {
  justify-content: center;
}

.support-inner .section-label::before { display: none; }

.support-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 40px;
  padding: 0 20px;
  position: relative;
}

.support-quote::before,
.support-quote::after {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-dim);
  position: absolute;
  line-height: 1;
}

.support-quote::before { top: -10px; left: 0; }
.support-quote::after { content: '\201D'; bottom: -20px; right: 0; }

.support-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-dim);
  font-style: italic;
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-dim); }

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-visual { height: 280px; }
  .updates-grid { grid-template-columns: 1fr 1fr; }
  .platforms-grid { grid-template-columns: 1fr 1fr; }
  .hero-clock { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .updates-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 3rem; }
}
