/* ============================================================
   AI-GMENTED.pm — v0.6
   Light theme, system fonts, WCAG AA+, < 150KB target
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --surface: #F5F5F0;
  --border: #E0E0E0;
  --text: #1A1A1A;
  --heading: #111111;
  --muted: #555555;
  --accent: #C2661A;
  --accent-light: #FFF3E8;
  --max-width: 1140px;
  --header-height: 72px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Skip nav */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}
.skip-nav:focus { top: 0; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Typography */
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.75rem; letter-spacing: -1px; }
h2 { font-size: 2rem; letter-spacing: -0.3px; margin-bottom: 16px; }
h3 { font-size: 1.0625rem; }
p { margin-bottom: 1rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus { color: var(--accent); }

.section-label, h3.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.section-text {
  font-size: 16px;
  color: var(--text);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 80px; }
section { padding: 80px 0; border-bottom: 1px solid var(--border); }

/* CTA link */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: gap var(--transition);
}
.cta:hover, .cta:focus { gap: 14px; text-decoration: none; }
.cta .arrow { font-size: 18px; }

/* NAV */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--header-height);
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.site-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--heading);
  text-transform: uppercase;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--heading); }
.pm { color: var(--accent); }
.site-logo .pm { color: var(--accent); }

.logo-block { display: flex; flex-direction: column; flex-shrink: 0; }
.logo-subtitle {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--heading);
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle svg { width: 24px; height: 24px; }

.site-nav { display: flex; gap: 28px; list-style: none; }
.site-nav a {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:hover, .site-nav a:focus { color: var(--accent); text-decoration: none; }

/* HERO */
.hero { padding: 100px 0 88px; border-bottom: 1px solid var(--border); }
.hero-logo { width: 200px; height: 180px; margin-bottom: 36px; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero h1 { margin-bottom: 12px; line-height: 1.12; }
.hero .tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 36px;
}
.hero .tagline .pm { color: var(--accent); }
.hero .value-prop {
  font-size: 19px;
  max-width: 600px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 40px;
}
.hero .value-prop strong { color: var(--accent); font-weight: 600; }

/* ETHICS CARDS */
.ethics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
}
.ethics-card { background: var(--bg); padding: 32px; }
.ethics-card .icon { font-size: 20px; margin-bottom: 12px; color: var(--accent); }
.ethics-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.ethics-card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }

/* FLYWHEEL */
.flywheel-section {
  margin-top: 48px;
  padding: 48px;
  border: 1px solid var(--border);
  text-align: center;
}
.flywheel-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 600;
}
.flywheel-circle { position: relative; width: 560px; height: 560px; margin: 0 auto; }
.flywheel-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.flywheel-center .fc-label { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); margin-bottom: 4px; }
.flywheel-center .fc-title { font-size: 20px; font-weight: 700; color: var(--heading); line-height: 1.2; }
.fw-node { position: absolute; width: 150px; text-align: center; z-index: 2; }
.fw-node .fw-num { font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.fw-node .fw-title { font-size: 12px; font-weight: 600; color: var(--heading); margin-bottom: 2px; }
.fw-node .fw-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.fw-top { top: -10px; left: 50%; transform: translateX(-50%); }
.fw-right { top: 50%; right: -40px; transform: translateY(-50%); }
.fw-bottom { bottom: -10px; left: 50%; transform: translateX(-50%); }
.fw-left { top: 50%; left: -40px; transform: translateY(-50%); }
.flywheel-ring { position: absolute; top: 50%; left: 50%; width: 57%; height: 57%; transform: translate(-50%, -50%); }

/* SERVICES — JOURNEY */
.journey-intro {
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-style: italic;
}
.journey-phase {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.journey-phase:first-child { border-top: 1px solid var(--border); }
.phase-marker { text-align: center; }
.phase-marker .phase-num { font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; }
.phase-marker .phase-label { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-top: 2px; }
.phase-content h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.phase-content .phase-desc { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 8px; }
.phase-content .phase-value { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 0; }

/* EXPERTISE */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
}
.expertise-cell { background: var(--bg); padding: 28px 24px; }
.expertise-cell h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.expertise-cell p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.expertise-subsection-label { margin-top: 40px; }
.expertise-subsection { margin-top: 48px; }

/* USE CASES */
.usecases-list { margin-top: 40px; }
.usecase-item {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.usecase-item:first-child { border-top: 1px solid var(--border); }
.usecase-item h3 { font-size: 15px; font-weight: 600; }
.usecase-item p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.usecase-kpi { text-align: right; }
.usecase-kpi .kpi-value { font-size: 22px; font-weight: 700; color: var(--accent); line-height: 1; }
.usecase-kpi .kpi-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* HOW WE WORK */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.approach-quote {
  font-size: 20px;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.5;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}
.approach-points { list-style: none; }
.approach-points li {
  font-size: 14px;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  line-height: 1.6;
}
.approach-points li:first-child { border-top: 1px solid var(--border); }
.approach-points li .mark { color: var(--accent); flex-shrink: 0; font-weight: 700; }
.senior-bar {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 20px;
}
.senior-bar .sn-number { font-size: 36px; font-weight: 700; color: var(--accent); line-height: 1; flex-shrink: 0; }
.senior-bar .sn-text { font-size: 15px; color: var(--text); line-height: 1.6; }
.senior-bar .sn-text strong { color: var(--heading); }

/* AGENTIC GOVERNANCE BAR */
.agentic-bar {
  margin-top: 24px;
  padding: 28px 32px;
  border: 1px solid var(--accent);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.agentic-bar .ab-icon { font-size: 32px; color: var(--accent); line-height: 1; }
.agentic-bar .ab-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.agentic-bar .ab-text { font-size: 14px; color: var(--text); line-height: 1.6; }

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 40px;
}
.contact-form-wrap { border: 1px solid var(--border); padding: 32px; }
.contact-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 16px;
  font-weight: 500;
}
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form textarea { height: 100px; resize: none; }
.required { color: var(--accent); }
.consent {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 24px;
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.consent label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  margin: 0 !important;
}
.hp-field { position: absolute; left: -9999px; }
.form-success { color: #2e7d32; font-size: 14px; margin-top: 16px; font-weight: 500; }
.form-error { color: #c62828; font-size: 14px; margin-top: 16px; font-weight: 500; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 20px; line-height: 1.6; }
.form-note strong { color: var(--text); font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: 14px; line-height: 1.5; }
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }
.contact-aside { padding-top: 8px; }
.contact-aside h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.contact-aside p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 24px; }
.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: gap var(--transition);
}
.linkedin-cta:hover, .linkedin-cta:focus { gap: 14px; text-decoration: none; }

/* FOOTER */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { font-size: 12px; color: var(--muted); }
.footer-left .pm { color: var(--accent); }
.footer-nav { display: flex; gap: 24px; align-items: center; }
.footer-nav a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--accent); text-decoration: none; }
.li-icon { display: flex; align-items: center; }
.li-icon svg { fill: var(--muted); transition: fill var(--transition); }
.li-icon:hover svg, .li-icon:focus svg { fill: var(--accent); }

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  text-decoration: none;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), border-color var(--transition), color var(--transition);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover, .back-to-top:focus { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* LEGAL PAGES */
.legal-page { padding: 80px 0; min-height: 60vh; }
.legal-page h1 { font-size: 2rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--heading); }
.legal-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-content p { color: var(--muted); }
.legal-content strong { color: var(--text); }
.legal-content ul, .legal-content ol { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.legal-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin: 1.5rem 0; font-style: italic; color: var(--text); }

/* RESPONSIVE — Tablet */
@media (max-width: 1024px) {
  .container, section { padding-left: 40px; padding-right: 40px; }
  .hero { padding-left: 0; padding-right: 0; }
  .ethics-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .usecase-item { grid-template-columns: 140px 1fr 140px; }
  .flywheel-circle { width: 440px; height: 440px; }
  .fw-node { width: 130px; }
  .fw-node .fw-desc { font-size: 10px; }
}

/* RESPONSIVE — Mobile */
@media (max-width: 1024px) and (min-width: 768px) {
  .container { padding: 0 32px; }
  .logo-subtitle { font-size: 7px; letter-spacing: 1.5px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; letter-spacing: 1.5px; }
}

@media (max-width: 767px) {
  .container, section { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 60px 0 48px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .logo-subtitle { font-size: 7px; letter-spacing: 1.5px; white-space: normal; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; }

  .ethics-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .usecase-item { grid-template-columns: 1fr; gap: 8px; }
  .usecase-kpi { text-align: left; }
  .senior-bar { flex-direction: column; align-items: flex-start; }
  .agentic-bar { grid-template-columns: 1fr; text-align: center; }
  .flywheel-section { padding: 32px 16px; }
  .flywheel-circle { width: 300px; height: 300px; }
  .fw-node { width: 110px; }
  .fw-node .fw-num { font-size: 16px; }
  .fw-node .fw-title { font-size: 10px; }
  .fw-node .fw-desc { font-size: 9px; }
  .fw-right { right: -30px; }
  .fw-left { left: -30px; }
  .footer-main { flex-direction: column; gap: 16px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}

/* Print */
@media print {
  .site-header, .back-to-top, .contact-form-wrap { display: none; }
  section { border: none; page-break-inside: avoid; }
}
