@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --bg-primary: #111111;
  --bg-secondary: #161616;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --border-subtle: #222222;
  --sidebar-width: 240px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ── Layout ─────────────────────────────────────────────── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}
.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-content {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 48px 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.page-content.wide { max-width: 1100px; }
.page-content.narrow { max-width: 700px; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}
.page-section {
  animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.page-section:nth-child(1) { animation-delay: 0s; }
.page-section:nth-child(2) { animation-delay: 0.08s; }
.page-section:nth-child(3) { animation-delay: 0.16s; }
.page-section:nth-child(4) { animation-delay: 0.24s; }
.page-section:nth-child(5) { animation-delay: 0.32s; }
.page-section:nth-child(6) { animation-delay: 0.40s; }
.page-section:nth-child(7) { animation-delay: 0.48s; }

/* ── Stars BG ───────────────────────────────────────────── */
.stars-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 5s ease-in-out infinite;
  opacity: 0.5;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  padding: 32px 16px 24px;
  overflow-y: auto;
  z-index: 40;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding: 0 8px;
}
.sidebar-logo img { width: 32px; height: 32px; object-fit: contain; }
.sidebar-logo h1 { font-size: 14px; font-weight: 600; line-height: 1.2; }
.sidebar-logo p  { font-size: 12px; color: var(--text-secondary); line-height: 1.2; }
.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.nav-group-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 12px;
}
.nav-group ul { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  color: var(--text-secondary);
  opacity: 0.6;
}
.nav-item:hover { background: var(--bg-secondary); opacity: 1; color: var(--text-primary); }
.nav-item.active { background: var(--bg-secondary); opacity: 1; color: var(--text-primary); }
.nav-item-left { display: flex; align-items: center; gap: 12px; }
.nav-item-left svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item-left span { font-size: 13px; }
.nav-item-key {
  font-size: 10px;
  font-family: monospace;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.5;
}
.nav-item.active .nav-item-key { opacity: 0.5; }
.sidebar-search {
  margin-top: 32px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}
.sidebar-search svg { width: 18px; height: 18px; color: var(--text-secondary); opacity: 0.6; flex-shrink: 0; }
.sidebar-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
  width: 100%;
}
.sidebar-search input::placeholder { color: var(--text-secondary); }
.sidebar-search-key {
  font-size: 10px;
  font-family: monospace;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.6;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ── Mobile Header ──────────────────────────────────────── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
}
.mobile-header-logo { display: flex; align-items: center; gap: 12px; }
.mobile-header-logo img { width: 28px; height: 28px; object-fit: contain; }
.mobile-header-logo h1 { font-size: 13px; font-weight: 600; }
.mobile-header-logo p  { font-size: 11px; color: var(--text-secondary); }
.mobile-search-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}
.mobile-search-btn svg { width: 16px; height: 16px; color: var(--text-secondary); }

/* ── Mobile Bottom Nav ──────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
}
.mobile-bottom-nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  color: rgba(136,136,136,0.6);
  transition: color 0.15s;
  min-width: 0;
  background: none;
  border: none;
}
.mobile-nav-item svg { width: 20px; height: 20px; }
.mobile-nav-item span { font-size: 10px; white-space: nowrap; }
.mobile-nav-item.active { color: var(--text-primary); }
.mobile-more-panel {
  display: none;
  position: absolute;
  bottom: 100%; left: 0; right: 0;
  background: rgba(17,17,17,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 16px;
}
.mobile-more-panel.open { display: block; }
.mobile-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mobile-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  color: var(--text-secondary);
}
.mobile-more-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(22,22,22,0.5);
  display: flex; align-items: center; justify-content: center;
}
.mobile-more-item-icon svg { width: 20px; height: 20px; }
.mobile-more-item span { font-size: 11px; }
.mobile-more-item.active .mobile-more-item-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}
.mobile-more-item.active { color: var(--text-primary); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  margin-top: 96px;
  padding: 48px 32px 64px;
  background: rgba(22,22,22,0.5);
  position: relative;
  overflow: visible;
}
.footer-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.footer-col h3 { font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-secondary); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 900px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-status { display: flex; align-items: center; gap: 8px; }
.footer-status span { font-size: 13px; }
.footer-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.footer-reach { font-size: 13px; color: var(--text-secondary); transition: color 0.15s; }
.footer-reach:hover { color: var(--text-primary); }
.footer-time {
  font-size: 64px;
  font-weight: 300;
  color: rgba(136,136,136,0.2);
  line-height: 1;
  letter-spacing: -0.03em;
}
.footer-copy {
  max-width: 900px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}
.footer-made { display: flex; align-items: center; gap: 8px; }
.footer-made .dot { width: 12px; height: 12px; background: var(--text-primary); border-radius: 2px; display: inline-block; }

/* ── Pixar Mascot ────────────────────────────────────────── */
.pixar-mascot {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  height: 120px;        /* ← EDIT SIZE HERE */
  width: auto;
  display: none;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.pixar-mascot video {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
body.page-about .pixar-mascot { display: block; }

/* ── Typography ─────────────────────────────────────────── */
.page-h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.page-h2 { font-size: 18px; font-weight: 500; }
.page-h3 { font-size: 16px; font-weight: 500; }
.page-lead { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--text-secondary); }
.card-body { padding: 24px; }
.card-body.lg { padding: 32px; }
.card-img { position: relative; overflow: hidden; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: grayscale(1);
  transition: transform 0.7s ease-out;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(136,136,136,0.2), rgba(17,17,17,0.5));
  mix-blend-mode: overlay;
}
.aspect-16-9  { aspect-ratio: 16/9; }
.aspect-4-3   { aspect-ratio: 4/3; }
.aspect-21-9  { aspect-ratio: 21/9; }

/* ── Icon Box ───────────────────────────────────────────── */
.icon-box {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.icon-box svg { width: 18px; height: 18px; color: var(--text-secondary); }
.icon-box.on-secondary { background: var(--bg-secondary); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
}
.btn-primary:hover { background: var(--text-secondary); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.btn-secondary {
  background: var(--text-secondary);
  color: var(--bg-primary);
  border: none;
}
.btn-secondary:hover { background: var(--text-primary); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Forms ──────────────────────────────────────────────── */
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-secondary); }
.form-input:focus, .form-textarea:focus { border-color: var(--text-secondary); }
.form-textarea { resize: none; }
.form-input.sm { padding: 8px 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg-success { font-size: 13px; color: #22c55e; margin-top: 8px; }
.form-msg-error   { font-size: 13px; color: #ef4444; margin-top: 8px; }

/* ── Grid utilities ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-2-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  font-size: 8px;
  font-family: monospace;
  background: rgba(136,136,136,0.2);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-red {
  background: rgba(153,27,27,0.3);
  color: #f87171;
  border: 1px solid rgba(153,27,27,0.5);
  font-size: 9px;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-price {
  font-size: 10px;
  font-family: monospace;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ── List styles ─────────────────────────────────────────── */
.content-list {
  list-style: disc;
  padding-left: 20px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
}
.content-list li { padding-left: 4px; }

/* ── Tool row ────────────────────────────────────────────── */
.tool-row { display: flex; align-items: flex-start; gap: 16px; }
.tool-row-info h3 { font-size: 13px; font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tool-row-info p  { font-size: 12px; color: var(--text-secondary); }

/* ── Article card ────────────────────────────────────────── */
.article-row { display: flex; align-items: flex-start; gap: 16px; cursor: pointer; }
.article-row-info h3 { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 4px; transition: color 0.15s; }
.article-row:hover .article-row-info h3 { color: var(--text-secondary); }
.article-row-info p  { font-size: 12px; color: var(--text-secondary); }

/* ── Project card color strips ───────────────────────────── */
.project-strip {
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-strip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.1), transparent);
  mix-blend-mode: overlay;
}
.project-strip h3 {
  font-size: 24px; font-weight: 700; z-index: 1;
  transition: transform 0.7s ease-out;
}
.card:hover .project-strip h3 { transform: scale(1.05); }
.color-blue  { background: #2563eb; }
.color-white { background: #ffffff; }
.color-white h3 { color: #000; }
.color-orange { background: #f97316; }
.color-red    { background: #ef4444; }
.color-indigo { background: #1e1b4b; }

/* ── Dividers ────────────────────────────────────────────── */
.section-divider {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 32px;
}
.newsletter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.newsletter-bar-form { display: flex; align-items: center; gap: 8px; }

/* ── Feed milestone layout ───────────────────────────────── */
.milestone-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.milestone-meta { display: flex; flex-direction: column; gap: 8px; }
.milestone-meta .date { font-size: 12px; color: var(--text-secondary); }
.milestone-content { display: flex; flex-direction: column; gap: 16px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.milestone-content strong { color: var(--text-primary); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main-area { margin-left: 0; }
  .mobile-header { display: flex; }
  .mobile-bottom-nav { display: block; }
  .page-content { padding: 80px 20px 80px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  footer { margin-bottom: 64px; }
  .milestone-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-time { font-size: 48px; }
}
@media (max-width: 640px) {
  .page-h1 { font-size: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-bar { flex-direction: column; align-items: flex-start; }
  .newsletter-bar-form { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4,1fr); }
  .footer-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
