/* Variables */
:root {
  --bg: #F8F4EE;
  --fg: #0D0D0D;
  --accent: #E8661A;
  --teal: #0F4C5C;
  --muted: #7A6E63;
  --card-bg: #EDE8DF;
  --border: rgba(13,13,13,0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* Reset */
*, *::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: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
em { font-style: italic; font-weight: 300; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: flex; align-items: baseline; gap: 1rem; }
.nav__wordmark { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.nav__tag { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; }
.nav__right { display: flex; align-items: center; gap: 0.75rem; }
.nav__status { font-size: 0.75rem; color: var(--teal); display: flex; align-items: center; gap: 0.4rem; font-weight: 500; }
.nav__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 6rem 4rem 5rem;
  min-height: 88vh;
  align-items: center;
}
.hero__content {}
.hero__label {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero__headline {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--fg);
  margin-bottom: 3rem;
}
.hero__meta {
  display: flex;
  gap: 3rem;
}
.hero__meta-item { display: flex; flex-direction: column; }
.hero__meta-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero__meta-label { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero__quote {
  border-left: 3px solid var(--accent);
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
}
.hero__quote-credit { font-size: 0.75rem; color: var(--muted); margin-top: 1.5rem; font-family: var(--font-body); }

/* Philosophy */
.philosophy { padding: 7rem 4rem; border-top: 1px solid var(--border); }
.philosophy__inner {}
.philosophy__header { margin-bottom: 4rem; }
.philosophy__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 30ch;
  font-weight: 600;
}
.philosophy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.philosophy__card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.philosophy__card:last-child { border-right: none; }
.philosophy__card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.philosophy__card-title { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 600; }
.philosophy__card-body { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.philosophy__stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.philosophy__stat { padding-right: 3rem; }
.philosophy__stat-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--fg); display: block; }
.philosophy__stat-desc { font-size: 0.85rem; color: var(--muted); }

/* Machine */
.machine { padding: 7rem 4rem; background: var(--fg); color: var(--bg); }
.machine__inner {}
.machine__header { margin-bottom: 3rem; }
.machine__title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; color: var(--bg); }
.machine .section-eyebrow { color: var(--accent); }
.machine__canvas { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; align-items: start; }
.machine__panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.machine__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.machine__panel-title { font-size: 0.8rem; font-weight: 500; color: var(--bg); }
.machine__panel-ver { font-size: 0.7rem; color: var(--accent); font-weight: 500; }
.machine__projects { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.machine__project { margin-bottom: 0.75rem; }
.machine__project-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-bottom: 0.35rem; }
.machine__project-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.machine__project-bar--p1 .machine__project-fill { background: #E8661A; height: 100%; border-radius: 2px; }
.machine__project-bar--p2 .machine__project-fill { background: #0F4C5C; height: 100%; border-radius: 2px; }
.machine__project-bar--p3 .machine__project-fill { background: rgba(255,255,255,0.3); height: 100%; border-radius: 2px; }
.machine__team { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.machine__team-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.machine__task { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.machine__task-initial { font-size: 0.65rem; font-weight: 600; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.machine__task-name { font-size: 0.8rem; color: var(--bg); flex: 1; }
.machine__task-type { font-size: 0.65rem; color: rgba(255,255,255,0.4); padding: 0.15rem 0.5rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 2px; }
.machine__pending { padding: 1.25rem; }
.machine__pending-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.machine__pending-item { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.machine__sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.machine__sidebar-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }
.machine__integrations { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.machine__int {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  color: rgba(255,255,255,0.5);
}
.machine__sidebar-note { font-size: 0.75rem; font-style: italic; color: rgba(255,255,255,0.35); line-height: 1.5; margin-top: auto; }

/* Differentiators */
.diff { padding: 7rem 4rem; border-top: 1px solid var(--border); }
.diff__inner {}
.diff__header { margin-bottom: 3rem; }
.diff__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.diff__item {}
.diff__item-icon { color: var(--accent); margin-bottom: 1.25rem; }
.diff__item-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.diff__item-body { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Manifesto */
.manifesto { padding: 7rem 4rem; background: var(--card-bg); }
.manifesto__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.manifesto__quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--fg);
}
.manifesto__body { font-size: 0.95rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.manifesto__work-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1.5rem; font-weight: 500; }
.manifesto__cases { display: flex; flex-direction: column; gap: 0; }
.manifesto__case {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.manifesto__case:first-child { border-top: 1px solid var(--border); }
.manifesto__case-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.35rem; }
.manifesto__case-desc { font-size: 0.8rem; color: var(--muted); }

/* Footer */
.footer { padding: 5rem 4rem 4rem; border-top: 1px solid var(--border); }
.footer__inner {}
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4rem; }
.footer__brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer__wordmark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.footer__tagline { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.footer__meta { font-size: 0.85rem; color: var(--muted); line-height: 1.7; text-align: right; }
.footer__line { text-align: center; padding: 2rem 0 0; border-top: 1px solid var(--border); }
.footer__accent { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; font-style: italic; color: var(--fg); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 4rem 2rem 3rem; }
  .philosophy { padding: 5rem 2rem; }
  .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy__card { border-right: none; border-bottom: 1px solid var(--border); }
  .philosophy__stat-row { grid-template-columns: 1fr; gap: 2rem; }
  .machine { padding: 5rem 2rem; }
  .machine__canvas { grid-template-columns: 1fr; }
  .diff { padding: 5rem 2rem; }
  .diff__grid { grid-template-columns: 1fr 1fr; }
  .manifesto { padding: 5rem 2rem; }
  .manifesto__inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer { padding: 4rem 2rem 3rem; }
  .footer__top { flex-direction: column; gap: 2rem; }
  .footer__meta { text-align: left; }
  .nav { padding: 1.25rem 2rem; }
  .hero__meta { gap: 2rem; }
}
@media (max-width: 600px) {
  .hero__headline { font-size: 3rem; }
  .hero__quote { padding-left: 1.5rem; }
  .diff__grid { grid-template-columns: 1fr; }
  .philosophy__stat { padding-right: 0; }
}