/* Skafld × Beats brand system — B-Combinator portfolio explorer */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  /* Skafld brand */
  --brand-orange: #E07800;
  --brand-orange-mid: #EF8B2E;
  --brand-orange-light: #FFB168;
  --brand-orange-deep: #9E642E;
  --brand-dark: #050505;
  --brand-dark-2: #171717;
  --brand-charcoal: #262626;
  --brand-gray-dark: #3D3D3D;
  --brand-text-dark: #1A1A1A;
  --brand-body: #333333;
  --brand-text-sec: #555555;
  --brand-gray-muted: #626262;
  --brand-gray: #919191;
  --brand-gray-light: #DEDEDE;
  --brand-cream: #FAF6F1;
  --brand-white: #FFFFFF;

  /* Beats brand */
  --beats-red: #E31837;
  --beats-red-dark: #B81429;

  /* Initiative colors (derived from purpose) */
  --foundry: #E07800;       /* Skafld orange — visual identity production */
  --signal:   #4FC3F7;       /* Cyan blue — observation, signal */
  --pulse:   #E31837;       /* Beats red — cultural voice */
  --relay:   #66BB6A;       /* Green — ops throughput */
  --cortex:  #BA68C8;       /* Violet — institutional knowledge */

  /* Status colors */
  --status-greenlit: #66BB6A;
  --status-active:   #4FC3F7;
  --status-discovery: #E07800;
  --status-hold:     #FFB168;
  --status-kill:     #E31837;
  --status-done:     #888888;
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  background: var(--brand-dark);
  color: var(--brand-white);
  line-height: 1.5;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, .display { font-family: 'Manrope', Arial, sans-serif; }
h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; }

.label, .eyebrow {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.tagline { font-style: italic; color: var(--brand-gray); }
.muted { color: var(--brand-gray); }

p { margin-bottom: 0.75rem; }
a { color: var(--brand-orange); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-orange-light); }

/* Layout containers */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 4rem 0; }
.section-tight { padding: 2rem 0; }

/* Top bar / hero header */
.topbar {
  background: var(--brand-dark);
  border-bottom: 1px solid var(--brand-charcoal);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 5, 0.92);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.brand-mark .x { color: var(--brand-gray-muted); margin: 0 0.5rem; font-weight: 400; }
.brand-mark .skafld { color: var(--brand-orange); }
.brand-mark .beats { color: var(--beats-red); }

.topbar nav { display: flex; gap: 1.5rem; align-items: center; }
.topbar nav a {
  color: var(--brand-gray);
  font-size: 0.875rem;
  font-weight: 500;
}
.topbar nav a.active, .topbar nav a:hover { color: var(--brand-white); }

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse at top, var(--brand-dark-2) 0%, var(--brand-dark) 70%);
  border-bottom: 1px solid var(--brand-charcoal);
}
.hero h1 { color: var(--brand-white); margin-bottom: 1rem; max-width: 60ch; }
.hero h1 .accent { color: var(--brand-orange); }
.hero .lede { font-size: 1.25rem; color: var(--brand-gray); max-width: 60ch; }

/* KPI strip */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--brand-gray-dark);
  border: 1px solid var(--brand-gray-dark);
  margin-top: 3rem;
}
.kpi { background: var(--brand-dark-2); padding: 1.5rem; }
.kpi .num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--brand-orange);
  line-height: 1;
}
.kpi .lab {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: var(--brand-gray);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Initiative grid */
.initiative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--brand-gray-dark);
  border: 1px solid var(--brand-gray-dark);
}
.init-card {
  background: var(--brand-dark-2);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  border-top: 4px solid transparent;
}
.init-card:hover { background: var(--brand-charcoal); }
.init-card.foundry { border-top-color: var(--foundry); }
.init-card.signal   { border-top-color: var(--signal); }
.init-card.pulse   { border-top-color: var(--pulse); }
.init-card.relay   { border-top-color: var(--relay); }
.init-card.cortex  { border-top-color: var(--cortex); }

.init-card .ico { font-size: 1.5rem; }
.init-card h3 { color: var(--brand-white); }
.init-card .count {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--brand-white);
  line-height: 1;
}
.init-card .focus { color: var(--brand-gray); font-size: 0.9rem; line-height: 1.5; }
.init-card .lead { color: var(--brand-orange); font-size: 0.875rem; font-weight: 600; }

/* Project tables */
.proj-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--brand-dark-2);
  border: 1px solid var(--brand-gray-dark);
  font-size: 0.9375rem;
}
.proj-table thead {
  background: var(--brand-charcoal);
  text-align: left;
}
.proj-table th, .proj-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--brand-gray-dark);
}
.proj-table th {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-gray);
}
.proj-table tbody tr:hover { background: var(--brand-charcoal); }
.proj-table tbody tr:last-child td { border-bottom: none; }
.proj-table .bea {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  color: var(--brand-orange);
  font-weight: 600;
  white-space: nowrap;
}
.proj-table .priority { font-weight: 700; }

/* Status pill */
.pill {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-greenlit  { background: rgba(102,187,106,0.15); color: var(--status-greenlit); border: 1px solid var(--status-greenlit); }
.pill-active    { background: rgba(79,195,247,0.15); color: var(--status-active); border: 1px solid var(--status-active); }
.pill-discovery { background: rgba(224,120,0,0.15); color: var(--status-discovery); border: 1px solid var(--status-discovery); }
.pill-hold      { background: rgba(255,177,104,0.15); color: var(--status-hold); border: 1px solid var(--status-hold); }
.pill-kill      { background: rgba(227,24,55,0.15); color: var(--status-kill); border: 1px solid var(--status-kill); }
.pill-done      { background: rgba(136,136,136,0.15); color: var(--status-done); border: 1px solid var(--status-done); }
.pill-postengagement { background: rgba(136,136,136,0.10); color: var(--brand-gray); border: 1px solid var(--brand-gray-dark); }

/* Initiative ribbon */
.init-ribbon {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--brand-orange);
  background: var(--brand-dark-2);
}
.init-ribbon.foundry { border-left-color: var(--foundry); }
.init-ribbon.signal   { border-left-color: var(--signal); }
.init-ribbon.pulse   { border-left-color: var(--pulse); }
.init-ribbon.relay   { border-left-color: var(--relay); }
.init-ribbon.cortex  { border-left-color: var(--cortex); }
.init-ribbon .num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--brand-white);
}
.init-ribbon .name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}
.init-ribbon.foundry .name { color: var(--foundry); }
.init-ribbon.signal   .name { color: var(--signal); }
.init-ribbon.pulse   .name { color: var(--pulse); }
.init-ribbon.relay   .name { color: var(--relay); }
.init-ribbon.cortex  .name { color: var(--cortex); }

/* Sequence timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--brand-gray-dark);
  border: 1px solid var(--brand-gray-dark);
  margin-top: 2rem;
}
.tl-month {
  background: var(--brand-dark-2);
  padding: 1.5rem;
}
.tl-month .lab {
  color: var(--brand-orange);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.tl-month ul { list-style: none; }
.tl-month li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--brand-charcoal);
  font-size: 0.875rem;
  color: var(--brand-gray);
}
.tl-month li:last-child { border-bottom: none; }

/* Footer */
.footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--brand-charcoal);
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--brand-gray);
}
.footer a { color: var(--brand-gray); }
.footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer hr { border: none; height: 1px; background: var(--brand-orange); width: 60px; margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8125rem;
  border-radius: 2px;
  background: var(--brand-orange);
  color: var(--brand-dark);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--brand-orange-mid); color: var(--brand-dark); }
.btn-ghost {
  background: transparent;
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
}
.btn-ghost:hover { background: var(--brand-orange); color: var(--brand-dark); }

/* Prototype-page specific */
.proto-shell {
  background: var(--brand-cream);
  color: var(--brand-text-dark);
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100vh;
}
.proto-shell .topbar { background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--brand-gray-light); }
.proto-shell .topbar nav a { color: var(--brand-gray-muted); }
.proto-shell h1, .proto-shell h2, .proto-shell h3 { color: var(--brand-text-dark); }
.proto-shell .muted { color: var(--brand-gray-muted); }
.proto-shell .panel {
  background: var(--brand-white);
  border: 1px solid var(--brand-gray-light);
  border-radius: 4px;
  padding: 1.5rem;
}

/* Banner */
.banner {
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--brand-orange-deep) 0%, var(--brand-orange) 100%);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.banner .lab {
  background: var(--brand-dark);
  color: var(--brand-orange);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Architecture diagram (simple ASCII-feel block diagram) */
.arch {
  background: var(--brand-dark-2);
  padding: 2rem;
  border: 1px solid var(--brand-gray-dark);
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-size: 0.875rem;
  color: var(--brand-gray);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.5;
}
.arch .accent { color: var(--brand-orange); font-weight: 700; }
.arch .green { color: var(--status-greenlit); font-weight: 700; }
.arch .blue { color: var(--signal); font-weight: 700; }
.arch .red { color: var(--beats-red); font-weight: 700; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .kpis, .timeline { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1rem; }
}
