/* AC06 Consulting — Growth Operating System
   Design tokens -------------------------------------------------- */
:root {
  --ink: #101312;
  --ink-2: #181c1a;
  --ink-3: #232724;
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --line-dark: rgba(245, 243, 238, 0.14);
  --line-dark-strong: rgba(245, 243, 238, 0.28);
  --line-light: rgba(16, 19, 18, 0.12);
  --line-light-strong: rgba(16, 19, 18, 0.24);
  --brass: #b8862f;
  --brass-bright: #d9a13f;
  --teal: #1f3d3a;
  --text-on-ink: #f3f1ea;
  --text-on-ink-dim: rgba(243, 241, 234, 0.66);
  --text-on-paper: #14181a;
  --text-on-paper-dim: rgba(20, 24, 26, 0.62);
  --font-display: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--text-on-paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.005em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.section-dek {
  font-size: 1.1rem;
  max-width: 56ch;
}

/* Sections ---------------------------------------------------------- */
.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--dark {
  background: var(--ink);
  color: var(--text-on-ink);
}
.section--dark p, .section--dark .section-dek { color: var(--text-on-ink-dim); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-ink); }
.section--paper { background: var(--paper); }
.section--paper-2 { background: var(--paper-2); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 28px;
}
.section--dark .section-head { border-bottom-color: var(--line-dark); }
.section-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  display: block;
  margin-bottom: 10px;
}

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 19, 18, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  color: var(--text-on-ink);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand strong { color: var(--brass-bright); font-weight: 500; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-on-ink-dim);
  border-radius: var(--radius);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.open > a { color: var(--text-on-ink); }

.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark-strong);
  padding: 10px;
  display: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.main-nav > ul > li.open .nav-panel { display: block; }
.nav-panel a {
  display: block;
  padding: 9px 12px;
  font-size: 0.86rem;
  color: var(--text-on-ink-dim);
  border-radius: var(--radius);
}
.nav-panel a:hover { background: var(--ink-3); color: var(--text-on-ink); }

.header-cta {
  display: none;
}
@media (min-width: 980px) {
  .main-nav { display: block; }
  .header-cta {
    display: inline-block;
    font-size: 0.82rem;
    padding: 9px 18px;
    border: 1px solid var(--line-dark-strong);
    color: var(--text-on-ink);
  }
  .header-cta:hover { border-color: var(--brass); color: var(--brass-bright); }
}

.nav-toggle {
  background: none;
  border: 1px solid var(--line-dark-strong);
  color: var(--text-on-ink);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  padding: 8px 0 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav details { border-top: 1px solid var(--line-dark); }
.mobile-nav summary {
  padding: 14px 0;
  color: var(--text-on-ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .sub-links { padding: 0 0 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav .sub-links a { color: var(--text-on-ink-dim); font-size: 0.92rem; }
.mobile-nav .top-link { display: block; padding: 14px 0; border-top: 1px solid var(--line-dark); color: var(--text-on-ink); }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-bright); }
.btn-outline-dark { border-color: var(--line-dark-strong); color: var(--text-on-ink); }
.btn-outline-dark:hover { border-color: var(--brass); color: var(--brass-bright); }
.btn-outline-light { border-color: var(--line-light-strong); color: var(--text-on-paper); }
.btn-outline-light:hover { border-color: var(--brass); color: var(--brass); }

/* Hero ------------------------------------------------------------ */
.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}
.hero h1 { color: var(--text-on-ink); margin-bottom: 22px; }
.hero .section-dek { color: var(--text-on-ink-dim); font-size: 1.2rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-visual {
  position: relative;
  aspect-ratio: 4/3.2;
  overflow: hidden;
  border: 1px solid var(--line-dark-strong);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(28%) contrast(1.05); }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,19,18,0) 40%, rgba(16,19,18,0.55) 100%);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.hero-stats div { padding: 22px 0; border-right: 1px solid var(--line-dark); }
.hero-stats div:last-child { border-right: none; }
.hero-stats .stat-value { font-family: var(--font-mono); font-size: 1.6rem; color: var(--brass-bright); display: block; }
.hero-stats .stat-label { font-size: 0.82rem; color: var(--text-on-ink-dim); }

/* Page hero (non-home) --------------------------------------------- */
.page-hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 64px 0 72px;
}
.page-hero .crumbs { margin-bottom: 24px; }
.page-hero h1 { color: var(--text-on-ink); margin-bottom: 18px; }
.page-hero .section-dek { color: var(--text-on-ink-dim); font-size: 1.15rem; }
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-on-ink-dim); }
.crumbs a { color: var(--text-on-ink-dim); }
.crumbs a:hover { color: var(--brass-bright); }
.crumbs span { margin: 0 6px; }
.section--paper .crumbs, .section--paper-2 .crumbs { color: var(--text-on-paper-dim); }
.section--paper .crumbs a, .section--paper-2 .crumbs a { color: var(--text-on-paper-dim); }

/* Navigator (challenge selector) ------------------------------------ */
.navigator-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.navigator-tab {
  padding: 10px 18px;
  border: 1px solid var(--line-light-strong);
  font-size: 0.86rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-on-paper-dim);
  font-family: var(--font-sans);
}
.navigator-tab.active { border-color: var(--brass); color: var(--ink); background: rgba(184,134,47,0.1); }
.navigator-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border: 1px solid var(--line-light);
  padding: 32px;
  background: #fff;
}
.navigator-panel.active { display: grid; }
@media (max-width: 720px) { .navigator-panel { grid-template-columns: 1fr; } }
.navigator-panel .label-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brass); letter-spacing: 0.06em; display: block; margin-bottom: 10px; }

/* Timeline (growth system) ------------------------------------------ */
.timeline { display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.timeline-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
@media (min-width: 720px) {
  .timeline-row { grid-template-columns: 60px 220px 1fr auto; align-items: center; }
}
.timeline-n { font-family: var(--font-mono); font-size: 1.6rem; color: var(--brass); }
.timeline-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--text-on-ink); }
.timeline-text { color: var(--text-on-ink-dim); margin: 0; }
.timeline-link { font-size: 0.82rem; color: var(--brass-bright); white-space: nowrap; }

/* Card grids ---------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
.grid-cell { background: var(--paper); padding: 32px; }
.section--dark .grid { background: var(--line-dark); border-color: var(--line-dark); }
.section--dark .grid-cell { background: var(--ink); }
.grid-cell h3 { margin-bottom: 10px; }
.grid-cell p { color: var(--text-on-paper-dim); font-size: 0.96rem; }
.section--dark .grid-cell p { color: var(--text-on-ink-dim); }
.grid-cell .cell-index { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass); display: block; margin-bottom: 14px; }
.grid-cell a.cell-link { font-size: 0.82rem; color: var(--brass); display: inline-block; margin-top: 14px; }

/* Photo tiles */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .photo-grid { grid-template-columns: 1fr; } }
.photo-tile { position: relative; background: var(--ink); aspect-ratio: 4/3; overflow: hidden; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); transition: filter 0.3s ease; }
.photo-tile:hover img { filter: grayscale(0%); }
.photo-tile .tile-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(16,19,18,0.85), rgba(16,19,18,0));
  color: var(--text-on-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* Article / listing cards */
.article-list { display: flex; flex-direction: column; }
.article-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-light);
}
@media (min-width: 720px) {
  .article-row { grid-template-columns: 140px 1fr 120px; gap: 24px; align-items: baseline; }
}
.article-row .cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--brass); letter-spacing: 0.04em; }
.article-row h3 { font-size: 1.15rem; }
.article-row p { color: var(--text-on-paper-dim); font-size: 0.92rem; margin: 4px 0 0; }
.article-row .cta { font-size: 0.8rem; text-align: right; color: var(--text-on-paper-dim); }

/* CTA band */
.cta-band {
  background: var(--teal);
  color: var(--text-on-ink);
  padding: 80px 0;
}
.cta-band h2 { color: var(--text-on-ink); margin-bottom: 18px; }
.cta-band .section-dek { color: rgba(243,241,234,0.72); margin-bottom: 28px; }
.cta-band ul { margin: 0 0 32px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cta-band li { padding-left: 20px; position: relative; color: rgba(243,241,234,0.85); font-size: 0.95rem; }
.cta-band li::before { content: "—"; position: absolute; left: 0; color: var(--brass-bright); }

/* Forms ---------------------------------------------------------------- */
form.contact-form { display: grid; gap: 18px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--text-on-paper-dim); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line-light-strong);
  background: #fff;
  color: var(--text-on-paper);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--text-on-ink); padding: 72px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 24px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(6, 1fr); } }
.footer-col h4 { font-size: 0.78rem; text-transform: none; color: var(--brass-bright); margin-bottom: 16px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-on-ink-dim); }
.footer-col a:hover { color: var(--text-on-ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-size: 0.82rem;
  color: var(--text-on-ink-dim);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-address { max-width: 40ch; }

/* Utilities ------------------------------------------------------------- */
.mono { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.body-copy p { color: inherit; }
.body-copy { max-width: 68ch; }
.body-copy p { font-size: 1.02rem; }
.deliverables { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.deliverables li { padding-left: 22px; position: relative; font-size: 0.96rem; }
.deliverables li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.legal-section { padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-section p { color: var(--text-on-paper-dim); }
.updated-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-on-paper-dim); margin-bottom: 8px; display: block; }
