/* ─── Variables ─── */
:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECE5;
  --fg: #1C1C1C;
  --fg-muted: #6B6560;
  --fg-faint: #A8A39A;
  --accent: #C96A2A;
  --accent-dark: #A85620;
  --border: #D8D3C8;
  --border-light: #EAE7DF;
  --card-bg: #FFFFFF;
  --on-track: #3A7D44;
  --review-due: #C96A2A;
  --delayed: #B83232;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.site-header nav {
  display: flex;
  gap: 32px;
}

.site-header nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--fg); }

/* ─── Hero ─── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-grid-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.label-top {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid-line-v {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.label-side {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 460px;
}

/* ─── Hero Visual ─── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.architect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 300px;
}

.grid-cell {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  min-height: 80px;
}

.grid-cell.featured {
  background: var(--fg);
  border-color: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.cell-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: block;
}

.grid-cell.featured .cell-label { color: var(--fg-faint); }

.cell-value {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  display: block;
  margin-top: 2px;
}

.cell-meta {
  font-size: 0.65rem;
  color: var(--fg-faint);
  display: block;
  margin-top: 4px;
}

.grid-dimensions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.grid-dimensions span:first-child {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.grid-dimensions span:last-child {
  font-size: 0.7rem;
  color: var(--fg-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Section Shared ─── */
.section-header {
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
}

.section-sub {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ─── Features ─── */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
  background: var(--bg-alt);
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── Outcomes ─── */
.outcomes {
  background: var(--fg);
  padding: 64px 32px;
}

.outcomes-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.outcome-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 48px;
}

.outcome-divider {
  width: 1px;
  background: rgba(247,245,240,0.15);
  align-self: stretch;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(247,245,240,0.55);
  line-height: 1.5;
}

/* ─── Studio Panel ─── */
.studio {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
}

.studio-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 200px 1fr;
}

.panel-sidebar {
  background: var(--fg);
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: -0.01em;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

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

.nav-item {
  font-size: 0.8rem;
  color: rgba(247,245,240,0.45);
  padding: 6px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.nav-item.active {
  background: rgba(247,245,240,0.1);
  color: var(--bg);
}

.panel-main {
  padding: 28px 32px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.header-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.header-metric {
  font-size: 0.75rem;
  color: var(--fg-faint);
}

.metric-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}

.metric {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--border-light);
}

.metric:last-child { border-right: none; }

.metric-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  letter-spacing: -0.03em;
}

.metric.alert .metric-val { color: var(--delayed); }

.metric-key {
  font-size: 0.7rem;
  color: var(--fg-muted);
  display: block;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-table {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.table-head {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.table-row:last-child { border-bottom: none; }

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

.project-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg);
}

.project-phase {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.project-hours {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.status {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
}

.on-track {
  background: rgba(58, 125, 68, 0.1);
  color: var(--on-track);
}

.review-due {
  background: rgba(201, 106, 42, 0.1);
  color: var(--review-due);
}

.delayed {
  background: rgba(184, 50, 50, 0.1);
  color: var(--delayed);
}

.panel-footer {
  margin-top: 16px;
  text-align: right;
}

.footer-label {
  font-size: 0.7rem;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
}

/* ─── Closing ─── */
.closing {
  background: var(--bg-alt);
  padding: 96px 32px;
  text-align: center;
}

.closing-inner h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-inner p {
  font-size: 1.1rem;
  color: var(--fg-muted);
}

/* ─── Footer ─── */
footer {
  background: var(--fg);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand .wordmark {
  color: var(--bg);
  display: block;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(247,245,240,0.45);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-meta span {
  font-size: 0.75rem;
  color: rgba(247,245,240,0.4);
}

.separator { color: rgba(247,245,240,0.2); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 72px;
    gap: 48px;
  }

  .hero-visual { display: none; }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .outcomes-grid {
    flex-direction: column;
    gap: 0;
  }

  .outcome-stat {
    padding: 24px 0;
    border-bottom: 1px solid rgba(247,245,240,0.1);
  }

  .outcome-divider { display: none; }

  .studio-panel {
    grid-template-columns: 1fr;
  }

  .panel-sidebar { display: none; }

  .table-head,
  .table-row {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .table-head span:nth-child(2),
  .table-row .project-phase { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 20px; }

  .site-header nav { gap: 20px; }

  .features, .studio, .closing {
    padding: 64px 20px;
  }

  .section-header { margin-bottom: 40px; }

  .outcomes { padding: 48px 20px; }

  .metric-strip { flex-wrap: wrap; }

  .metric { flex: 1 1 50%; }

  .metric:nth-child(2) { border-right: none; }
}
