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

:root {
  --bg: #ECEAE6;
  --bg-alt: #E4E1DB;
  --surface: #E8E5DF;
  --text: #1B1A18;
  --text-muted: #5C5852;
  --rule: #D3CFC8;
  --accent: #BF5430;
  --accent-dark: #9E4426;
  --on-accent: #FAF7F2;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Syne', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(236, 234, 230, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--rule);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--rule);
  padding-top: 5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
  border-right: 0.5px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.hero-number {
  position: absolute;
  bottom: -2rem;
  left: -1rem;
  font-family: var(--serif);
  font-size: clamp(14rem, 22vw, 22rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--rule);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-left-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

.hero-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 40ch;
  line-height: 1.85;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn-primary {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  text-decoration: none;
  padding: 0.85rem 2rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover { color: var(--text); border-color: var(--text-muted); }

.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 4rem;
}

.hero-principal {
  background: #F4F2EE;
  border: 0.5px solid var(--rule);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.principal-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.principal-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.principal-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.principal-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.hero-stat {
  padding: 1.75rem 1.5rem;
  border: 0.5px solid var(--rule);
  border-right: none;
}

.hero-stat:last-child { border-right: 0.5px solid var(--rule); }

.stat-num {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.stat-desc {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* SECTION SHARED */
section { padding: 7rem 4rem; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--rule);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.75rem;
}

.section-headline em { font-style: italic; font-weight: 700; color: var(--accent); }

/* SERVICES */
.services {
  background: var(--bg-alt);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.service-item {
  padding: 3rem;
  border: 0.5px solid var(--rule);
  border-top: none;
  border-left: none;
  transition: background 0.2s;
}

.service-item:hover { background: rgba(191, 84, 48, 0.06); }

.service-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.service-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.service-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.service-more:hover { color: var(--text); border-color: var(--text-muted); }

/* TRACK RECORD */
.track {
  border-bottom: 0.5px solid var(--rule);
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.track-item {
  display: grid;
  grid-template-columns: 10rem 1fr 1fr;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 0.5px solid var(--rule);
  align-items: start;
}

.track-item:last-child { border-bottom: none; }

.track-period {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
}

.track-company {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.track-role {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.track-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 0.5px solid var(--rule);
  padding: 0.3rem 0.7rem;
}

.tag-accent {
  color: var(--accent);
  border-color: var(--accent-dark);
}

/* CONTACT */
.contact-section {
  background: var(--surface);
  border-top: 2px solid var(--accent);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.contact-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-top: 0.5px solid var(--rule);
  text-decoration: none;
}

.contact-link-item:last-child { border-bottom: 0.5px solid var(--rule); }

.contact-link-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-link-value {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  transition: opacity 0.2s;
}

.contact-link-item:hover .contact-link-value { opacity: 0.6; }

.contact-arrow {
  font-size: 1rem;
  color: var(--accent);
  transition: transform 0.2s, color 0.2s;
}

.contact-link-item:hover .contact-arrow {
  color: var(--text);
  transform: translateX(5px);
}

/* FOOTER */
footer {
  padding: 1.75rem 4rem;
  border-top: 0.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
}

.footer-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-logo span { color: var(--accent); }
.footer-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── AI DETAIL PAGE ─────────────────────────────────────────────── */

/* Compact hero for interior pages — no full-viewport height, no split grid */
.page-hero {
  padding: 11rem 4rem 5rem;
  border-bottom: 0.5px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.page-hero-content { position: relative; z-index: 1; max-width: 62rem; }

.page-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

.page-headline em { font-style: italic; font-weight: 700; color: var(--accent); }

.page-lede {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 60ch;
}

.page-lede strong { color: var(--text); font-weight: 700; }

/* Metrics band — 4-up on desktop, collapses to 2-up */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
}

.metric {
  padding: 1.75rem 1.5rem;
  border: 0.5px solid var(--rule);
  border-right: none;
}

.metric:last-child { border-right: 0.5px solid var(--rule); }

.metric-num {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.metric-desc {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.metrics-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
}

/* Detail blocks — label column + prose, echoing .track-item */
.ai-list { display: flex; flex-direction: column; gap: 0; }

.ai-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 0.5px solid var(--rule);
  align-items: start;
}

.ai-item:last-child { border-bottom: none; }

.ai-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-top: 0.45rem;
}

.ai-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.ai-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 68ch;
}

.ai-body + .ai-body { margin-top: 1rem; }

.ai-points {
  list-style: none;
  margin-top: 1.5rem;
  max-width: 68ch;
}

.ai-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.ai-points li + li { margin-top: 0.85rem; }

.ai-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.75rem;
  height: 1px;
  background: var(--accent);
}

.ai-points strong { color: var(--text); font-weight: 700; }

/* Closing takeaway + stack */
.takeaway {
  background: var(--bg-alt);
  border-top: 0.5px solid var(--rule);
  border-bottom: 0.5px solid var(--rule);
}

.takeaway-body {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  max-width: 48ch;
}

.takeaway-body em { font-style: italic; color: var(--accent); }

.stack {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--rule);
}

.stack-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stack-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }
.d4 { animation-delay: 0.5s; }
.d5 { animation-delay: 0.65s; }
.d6 { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  nav { padding: 1.25rem 1.5rem; }
  section { padding: 4rem 1.5rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 4.5rem; }
  .hero-left { padding: 3rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--rule); }
  .hero-right { padding: 3rem 1.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-left: none; }
  .track-item { grid-template-columns: 1fr; gap: 1rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
  .page-hero { padding: 8rem 1.5rem 3.5rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { border-right: none; }
  .metric:nth-child(2n) { border-right: 0.5px solid var(--rule); }
  .metric:last-child { border-right: 0.5px solid var(--rule); }
  .ai-item { grid-template-columns: 1fr; gap: 1rem; }
  .ai-num { padding-top: 0; }
}

@media (max-width: 700px) {
  /* Mobile nav: logo + CTA only; the page is short enough to scroll */
  .nav-link { display: none; }
  /* Keep the 3-up stats band but let it fit narrow screens.
     Sized so a 6-character numeral (e.g. "1,800+") still fits a third of 375px. */
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stat { padding: 1.25rem 0.5rem; }
  .stat-num { font-size: 1.4rem; }
  .metric { padding: 1.25rem 0.9rem; }
  .metric-num { font-size: 1.6rem; }
}
