/* SOPHIA CRE — Graphic Artist direction
   Cloud #F4F6F4 60% · Primary #1B4332 25% · Secondary #2D6A4F 10% · Sage #A3B18A 5% · Ink #16251F */

:root {
  --cloud: #F4F6F4;
  --primary: #1B4332;
  --secondary: #2D6A4F;
  --sage: #A3B18A;
  --ink: #16251F;
  --white: #ffffff;
  --line: rgba(22, 37, 31, 0.10);
  --line-strong: rgba(22, 37, 31, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; }
a:hover { color: var(--primary); }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; color: var(--primary); margin: 0 0 0.75rem; line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.125rem; line-height: 1.35; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 244, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--nav-h);
  padding: 0.65rem 0;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.3;
  font-weight: 500;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.88;
}
.nav-links a:not(.btn):hover { opacity: 1; color: var(--primary); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--secondary); color: var(--white) !important; }
.btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white) !important;
}
.btn-ghost-ink {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--sage);
}
.btn-ghost-ink:hover {
  background: rgba(163, 177, 138, 0.18);
  border-color: var(--secondary);
  color: var(--primary) !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.75rem;
}

/* ——— Eyebrow / pill ——— */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.eyebrow-ink { color: var(--secondary); }

/* ——— Hero (full-bleed photo + scrim + ken burns) ——— */
.hero-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  min-height: clamp(520px, 78vh, 720px);
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 5rem;
}
.hero-photo__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  animation: kenBurns 12s var(--ease) forwards;
  will-change: transform;
}
.hero-photo__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(27, 67, 50, 0.60); /* mid of 55–65% */
}
.hero-photo h1 { color: var(--white); max-width: 16ch; }
.hero-photo .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.55;
  margin: 0;
}
.hero-photo .eyebrow { color: var(--sage); }

@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

/* Compact page heroes (Mission Control etc.) */
.hero-photo--compact {
  min-height: clamp(360px, 52vh, 520px);
  padding: 3.5rem 0 3.75rem;
  align-items: flex-end;
}
.hero-photo--compact h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  max-width: 22ch;
}

/* Section opener with deal-desk still */
.section-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  padding: 5.5rem 0;
}
.section-photo__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.section-photo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.section-photo__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(27, 67, 50, 0.62);
}
.section-photo h1,
.section-photo h2 { color: var(--white); }
.section-photo .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 0;
}

/* ——— Sections ——— */
.section {
  padding: 100px 0;
}
.section--tight { padding: 72px 0; }
.section--cloud { background: var(--cloud); }
.section--white { background: var(--white); }
.section--ink {
  background: var(--ink);
  color: #c9d5ce;
}
.section--ink h2 { color: var(--white); }
.section--ink .muted { color: #a8b8b0; }

.lead-plain {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 40rem;
  margin: 0;
  opacity: 0.88;
}
.muted { color: #4a5c52; }
.one-liner {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 48rem;
  margin: 0;
  padding: 0;
  border: 0;
}
.one-liner strong { color: var(--primary); font-weight: 600; }

/* ——— Cards / grids ——— */
.grid-2x2 {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
.grid-steps {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
}
.card h3 { margin-top: 0; margin-bottom: 0.5rem; }
.card p { margin: 0; color: #4a5c52; font-size: 1rem; line-height: 1.55; }
.card--on-photo {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card--on-photo h3 { color: var(--white); }
.card--on-photo p { color: rgba(255, 255, 255, 0.88); }
.card--on-photo .step-num {
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.card--sage {
  border-color: rgba(163, 177, 138, 0.45);
  background: linear-gradient(180deg, rgba(163, 177, 138, 0.12), var(--white));
}

/* ——— Customer journey (A/B/C) ——— */
.grid-journey {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
.card--journey {
  position: relative;
  border-top: 3px solid var(--sage);
}
.card--journey .step-num--ink,
.step-num--ink {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

/* ——— Mission Control example ——— */
.mc-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.75rem 1.65rem;
  max-width: 560px;
  box-shadow: 0 18px 40px rgba(22, 37, 31, 0.06);
}
.mc-card .label-illust {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.85rem;
}
.mc-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.15rem;
}
.mc-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}
.mc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
}
.mc-row span { color: #4a5c52; }
.mc-row strong { color: var(--primary); font-weight: 600; }
.confidence {
  margin: 0.35rem 0 0.25rem;
}
.confidence-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}
.confidence-top span { color: #4a5c52; }
.confidence-top strong { color: var(--primary); font-variant-numeric: tabular-nums; }
.meter {
  height: 8px;
  background: #e6eee6;
  border-radius: 999px;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--secondary);
  border-radius: inherit;
  transition: none;
}
.meter.is-inview > span,
.meter.animate > span {
  width: var(--fill, 78%);
  transition: width 1.35s var(--ease);
}
.note {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #667a70;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ——— Community peer table ——— */
.peer-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.75rem;
  font-size: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.peer-table th,
.peer-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.peer-table th {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  background: rgba(163, 177, 138, 0.14);
}
.peer-table tr:last-child td { border-bottom: 0; }
.peer-table td:first-child { font-weight: 600; color: var(--primary); }

/* ——— Final CTA band ——— */
.cta-band {
  padding: 100px 0;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}
.cta-band h2 { color: var(--white); max-width: 18ch; margin-bottom: 0.85rem; }
.cta-band p { max-width: 34rem; margin: 0; color: rgba(255, 255, 255, 0.88); }

/* ——— Page intro (light pages) ——— */
.page-intro {
  padding: 88px 0 24px;
}
.page-intro h1 { margin-bottom: 1rem; }
.page-intro .lead-plain { max-width: 40rem; }

/* Security quiet */
.security-gate {
  border-left: 3px solid var(--sage);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin: 2rem 0 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 40rem;
}
.security-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.15rem;
  max-width: 40rem;
}
.security-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.security-list li:last-child { border-bottom: 1px solid var(--line); }
.security-list strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.security-list span { color: #4a5c52; font-size: 1rem; line-height: 1.55; }

/* Demo short */
.demo-block {
  padding: 100px 0 120px;
  max-width: 36rem;
}

/* ——— Footer ——— */
.footer {
  background: var(--ink);
  color: #a8b8b0;
  padding: 2.75rem 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
}
.footer a { color: #e8f0ea; }
.footer a:hover { color: var(--white); }
.footer .brand {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.footer p { margin: 0 0 0.5rem; }
.footer .note { color: #7a8c84; margin-top: 1rem; }

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .grid-2x2,
  .grid-3,
  .grid-steps,
  .grid-journey { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .logo img { height: 30px; }
  .section { padding: 80px 0; }
  .cta-band { padding: 80px 0; }
  .hero-photo { min-height: 480px; padding: 3.5rem 0 3.75rem; }
  .hero-photo h1 { max-width: 14ch; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo__media img { animation: none; }
  .meter > span,
  .meter.is-inview > span,
  .meter.animate > span {
    transition: none;
    width: var(--fill, 78%);
  }
}

/* ——— Case Studies ——— */
.cs-hero {
  padding-bottom: 0.5rem;
}
.cs-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.cs-hero .lead-plain {
  margin-bottom: 0.85rem;
  max-width: 40rem;
}
.cs-disclaimer {
  margin: 0 0 0.25rem;
  max-width: 44rem;
  padding: 0.65rem 0.9rem;
  border-left: 3px solid var(--sage);
  background: rgba(163, 177, 138, 0.12);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #4a5c52;
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.cs-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(22, 37, 31, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cs-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e6eee6;
}
.cs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-card__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.cs-card h2 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0;
}
.cs-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4a5c52;
}
.cs-metric {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(27, 67, 50, 0.06);
  border: 1px solid var(--line);
}
.cs-metric__times {
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.cs-metric__times strong {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cs-metric__pct {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background: rgba(45, 106, 79, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .cs-grid { grid-template-columns: 1fr; }
}
