/* ============================================================
   AI Results Group — editorial / operator aesthetic
   Cream + ink + burnt amber. No gradients, no glow.
   ============================================================ */

:root {
  --bg:        #F4F0E8;
  --bg-alt:    #EBE5D8;
  --paper:    #FBF8F1;
  --ink:       #171513;
  --ink-2:     #2C2823;
  --muted:     #6B6358;
  --faint:     #A8A095;
  --rule:      #D6CFC0;
  --accent:    #B8531A;        /* burnt amber */
  --accent-2:  #8E3F12;
  --dark:      #14110E;
  --dark-alt:  #1E1A16;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);

  --r-sm: 4px;
  --r-md: 8px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: var(--paper); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Typography
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
}
.eyebrow--inverse { color: #E9A064; }
.eyebrow--inverse::before { background: #E9A064; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
.h2--inverse { color: var(--paper); }

.pnl-emphasis {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  display: inline-block;
  letter-spacing: -0.055em;
}
.pnl-emphasis::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0;
  bottom: 0.06em;
  height: 0.075em;
  background: var(--accent);
  opacity: 0.85;
  z-index: -1;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 1em;
}
.lede--inverse { color: #D8CFC1; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 240, 232, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 32px;
  height: 32px;
  color: var(--ink);
  flex: 0 0 32px;
}
.brand__wordmark {
  white-space: nowrap;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 16px !important;
  border-radius: var(--r-sm);
  transition: background 160ms ease;
}
.nav__cta:hover { background: var(--accent-2); }

@media (max-width: 820px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 80ms ease;
  cursor: pointer;
  text-align: center;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent-2); }
.btn--primary:active { transform: translateY(1px); }
.btn--on-dark {
  background: var(--accent);
  color: var(--paper);
}
.btn--on-dark:hover { background: #D26323; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg {
  font-size: 17px;
  padding: 18px 28px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(64px, 11vw, 140px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(46px, 7.5vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin: 0.1em 0 0.5em;
  color: var(--ink);
}
.hero__lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 2em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(56px, 9vw, 110px);
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  max-width: 980px;
}
@media (max-width: 860px) {
  .hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  color: var(--ink);
  font-feature-settings: "tnum", "lnum";
  letter-spacing: -0.01em;
}
.meta-lbl {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hero__rule {
  margin-top: clamp(40px, 6vw, 72px);
  color: var(--rule);
  height: 60px;
}
.hero__rule svg { width: 100%; height: 100%; }



/* ============================================================
   Section base
   ============================================================ */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--rule);
}
.section__head {
  max-width: 760px;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
.section__sub {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  margin: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.grid-2__lhs { position: sticky; top: 96px; }
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2__lhs { position: static; }
}

/* ============================================================
   Problem
   ============================================================ */
.section--problem .checklist {
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}
.section--problem .checklist li {
  font-size: 16px;
  padding: 14px 0 14px 32px;
  border-top: 1px solid var(--rule);
  position: relative;
  color: var(--ink-2);
}
.section--problem .checklist li:last-child { border-bottom: 1px solid var(--rule); }
.section--problem .checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   Outcomes — three operating levers
   ============================================================ */
.section--outcomes {
  background: var(--ink);
  color: var(--paper);
  border-top-color: var(--ink);
}
.section--outcomes .h2 { color: var(--paper); }
.section--outcomes .section__sub { color: #C7BFB1; }
.section--outcomes .eyebrow { color: #E9A064; }
.section--outcomes .eyebrow::before { background: #E9A064; }

.outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 1100px) {
  .outcomes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .outcomes { grid-template-columns: 1fr; }
}
.outcome {
  background: var(--ink);
  padding: 36px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.outcome--feature {
  background: var(--dark-alt);
  position: relative;
}
.outcome--feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.outcome__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 6px;
}
.outcome__icon svg { width: 100%; height: 100%; display: block; }
.outcome__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--paper);
}
.outcome__lede {
  font-size: 15.5px;
  line-height: 1.5;
  color: #D8CFC1;
  margin: 0 0 6px;
}
.outcome__list {
  list-style: none;
  padding: 12px 0 0;
  margin: 6px 0 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.outcome__list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #C7BFB1;
}
.outcome__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ============================================================
   Services
   ============================================================ */
.section--services { background: var(--bg-alt); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #BFB7A6;
  box-shadow: 0 12px 32px -20px rgba(20, 17, 14, 0.25);
}
.card--feature {
  background: #2A241E;
  color: var(--paper);
  border-color: #3A3128;
}
.card--feature .card__title,
.card--feature .card__meta,
.card--feature .card__list { color: var(--paper); }
.card--feature .card__meta { color: #E9A064; }
.card--feature .card__num { color: var(--accent); border-color: rgba(255,255,255,0.18); }
.card--feature .card__list li::before { background: var(--accent); }
.card--feature p { color: #EFE7DA; }

.card__num {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.card__meta {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.card p { color: var(--ink-2); margin: 0; }
.card__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.card--feature .card__list { border-top-color: rgba(255,255,255,0.12); }
.card__list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.card--feature .card__list li { color: #F4EEE3; }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ============================================================
   Clients
   ============================================================ */
.client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 1.4em;
}
@media (max-width: 640px) {
  .client-grid { grid-template-columns: 1fr; }
}
.client-tile {
  padding: 24px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.client-tile h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}
.client-tile p {
  font-size: 15px;
  margin: 0;
  color: var(--ink-2);
}

/* ============================================================
   Process
   ============================================================ */
.section--process { background: var(--paper); }
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 920px) {
  .process { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .process { grid-template-columns: 1fr; }
}
.process li {
  padding: 32px 24px 36px;
  border-right: 1px solid var(--rule);
  position: relative;
}
.process li:last-child { border-right: none; }
@media (max-width: 920px) {
  .process li { border-bottom: 1px solid var(--rule); }
  .process li:nth-child(2n) { border-right: none; }
}
.process__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.process h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.process p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Team
   ============================================================ */
.section--team { background: var(--bg); }
.bio-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 26px 26px 24px;
}
.bio-card--lead {
  padding: 32px 32px 30px;
}
.bio-card .role {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bio-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.bio-card p {
  color: var(--ink-2);
}
.bio-card p:last-child {
  margin-bottom: 0;
}
.team-placeholders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 720px) {
  .team-placeholders { grid-template-columns: 1fr; }
}

/* ============================================================
   Credibility / pull quote
   ============================================================ */
.pullquote {
  margin: 32px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
.pullquote p {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}
.pullquote em {
  color: var(--accent);
  font-style: italic;
}

/* ============================================================
   Referral / dark band
   ============================================================ */
.section--referral { background: var(--bg); padding: clamp(48px, 7vw, 96px) 0; }
.referral {
  background: var(--dark);
  color: var(--paper);
  border-radius: 14px;
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  position: relative;
  overflow: hidden;
}
.referral::before {
  /* subtle diagonal rule, not a gradient */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
@media (max-width: 860px) {
  .referral { grid-template-columns: 1fr; }
}
.referral .btn { margin-top: 8px; }

/* ============================================================
   CTA
   ============================================================ */
.section--cta {
  padding: clamp(80px, 11vw, 144px) 0;
  text-align: center;
}
.cta {
  max-width: 760px;
}
.cta__title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 auto 0.5em;
}
.cta__sub {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 auto 2em;
  max-width: 56ch;
}
.cta .btn { font-family: var(--sans); font-size: 18px; }
.cta__fineprint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--dark);
  color: #C7BFB1;
  padding: 48px 0 56px;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; text-align: left; gap: 18px; }
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
}
.footer__brand .brand__mark { color: var(--paper); }
.footer__meta p { margin: 0; font-size: 14px; }
.footer__addr { color: #E9A064 !important; }
.footer__legal p { margin: 0; font-size: 13px; color: #8C8474; }

/* ============================================================
   Motion — restrained, respecting prefers-reduced-motion
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* focus styles */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
