:root {
  --bg: #0a0c10;
  --surface: #11141a;
  --surface-2: #181c24;
  --border: #1f2535;
  --gold: #b8960c;
  --champagne: #f5e6a3;
  --human: #e8c57a;
  --agent: #6eb5ff;
  --script: #7de8a8;
  --data: #c47aff;
  --human-dim: rgba(232, 197, 122, 0.12);
  --agent-dim: rgba(110, 181, 255, 0.12);
  --script-dim: rgba(125, 232, 168, 0.12);
  --data-dim: rgba(196, 122, 255, 0.12);
  --text: #e2e8f0;
  --muted: #738197;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.35;
  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");
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.approach-hero {
  position: relative;
  padding: 0 clamp(22px, 5vw, 68px) clamp(44px, 8vw, 88px);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.96), rgba(10, 12, 16, 0.76)),
    url("assets/enterprise-command-center.png") center / cover;
}

.approach-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.approach-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  margin-bottom: clamp(42px, 8vw, 86px);
}

.wordmark {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.wordmark::first-letter {
  color: var(--gold);
}

.ribbon-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ribbon-links a:hover {
  color: var(--champagne);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(184, 150, 12, 0.9);
  border-radius: 4px;
  color: #0d0d0d;
  background: var(--gold);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow,
.layer-label {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 300;
  line-height: 0.92;
}

.hero-copy em {
  color: var(--champagne);
}

.hero-copy p {
  max-width: 680px;
  color: var(--champagne);
  font-size: clamp(0.9rem, 1.35vw, 1.12rem);
  line-height: 1.8;
}

.tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 clamp(22px, 5vw, 68px);
  border-bottom: 1px solid var(--border);
}

.tab-button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 24px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
}

.tab-button.active,
.tab-button:hover {
  color: var(--text);
}

.tab-button.active {
  border-color: var(--gold);
}

.approach-main {
  width: min(1400px, 100%);
  padding: clamp(28px, 5vw, 64px);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fade-in 220ms ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.layers-grid,
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.layer-card,
.principles-grid article {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 0;
  padding: clamp(22px, 2.8vw, 34px);
  color: var(--text);
  background: var(--surface);
  text-align: left;
}

.layer-card {
  cursor: pointer;
}

.layer-card:hover,
.layer-card.selected {
  background: var(--surface-2);
}

.layer-card[data-layer="human"].selected {
  background: var(--human-dim);
}

.layer-card[data-layer="agent"].selected {
  background: var(--agent-dim);
}

.layer-card[data-layer="script"].selected {
  background: var(--script-dim);
}

.layer-card[data-layer="data"].selected {
  background: var(--data-dim);
}

.layer-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.layer-card[data-layer="human"] .layer-icon,
.human {
  color: var(--human);
}

.layer-card[data-layer="agent"] .layer-icon,
.agent {
  color: var(--agent);
}

.layer-card[data-layer="script"] .layer-icon,
.script {
  color: var(--script);
}

.layer-card[data-layer="data"] .layer-icon,
.data {
  color: var(--data);
}

.layer-card strong,
.detail-header h2,
.flow-card h2,
.principles-grid h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
}

.layer-card strong {
  font-size: 1.45rem;
}

.layer-card > span:last-child,
.detail-panel p,
.detail-panel li,
.flow-card li,
.principles-grid p,
.matrix-table {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

.detail-panel {
  display: none;
  margin-top: 1px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  background: var(--surface);
}

.detail-panel.visible {
  display: block;
}

.detail-header {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.detail-header span,
.detail-panel h3,
.principles-grid span {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
}

.detail-panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-panel li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.flow-card {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--border);
  background: var(--surface);
}

.flow-card h2 {
  margin-bottom: 20px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.flow-card ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.step,
.tag {
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
}

.step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.68rem;
}

.matrix-wrap {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
  padding: 16px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  vertical-align: top;
}

.matrix-table th {
  color: var(--text);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.tag {
  padding: 3px 8px;
  font-size: 0.66rem;
  white-space: nowrap;
}

.tag.human,
.step.human {
  background: var(--human-dim);
}

.tag.agent,
.step.agent {
  background: var(--agent-dim);
}

.tag.script,
.step.script {
  background: var(--script-dim);
}

.tag.data,
.step.data {
  background: var(--data-dim);
}

.principles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles-grid article {
  min-height: 300px;
}

.principles-grid span {
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  opacity: 0.55;
}

.principles-grid h2 {
  font-size: clamp(1.22rem, 2vw, 1.75rem);
}

@media (max-width: 920px) {
  .layers-grid,
  .principles-grid,
  .flow-grid,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .ribbon-links a:not(.contact-button) {
    display: none;
  }
}

@media (max-width: 620px) {
  .approach-ribbon {
    align-items: flex-start;
    flex-direction: column;
  }

  .tabs {
    padding: 0;
  }

  .tab-button {
    padding: 16px;
  }

  .approach-main {
    padding: 20px;
  }
}
