/* ═══════════════════════════════════════════════
   IPeritus V6 — main.css
   ═══════════════════════════════════════════════ */

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

:root {
  --blue:      #1e5c7f;
  --blue-dk:   #124460;
  --blue-lt:   #2e7aaa;
  --blue-pale: #eef4f8;
  --blue-mid:  #cde0ec;
  --red:       #e82020;
  --ink:       #0c0c0a;
  --ink-mid:   #3a3830;
  --ink-dim:   #7a7670;
  --ink-faint: #c2bdb5;
  --paper:     #fafaf8;
  --cream:     #f2efe9;
  --rule:      rgba(12,12,10,.09);
  --rule-b:    rgba(30,92,127,.16);
  --green:     #287a4f;
  --amber:     #b86a00;
  --fs:        "Libre Baskerville", serif;
  --fss:       "Libre Franklin", sans-serif;
  --fm:        "DM Mono", monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--fss);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 60px;
  background: rgba(250,250,248,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(12,12,10,.07); }
.header-logo { height: 36px; display: block; }
.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 24px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--blue); transition: background .25s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--blue-dk); }

/* ── Hero ────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 70px;
}

/* ── Carousel Left ───────────────────────────── */
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 72px 56px 56px;
}

.carousel-overline {
  font-family: var(--fm); font-size: 10px; font-weight: 300;
  letter-spacing: .32em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 24px; display: flex; align-items: center; gap: 10px;
  min-height: 18px; transition: opacity .4s ease;
}
.carousel-overline::before {
  content: ""; width: 26px; height: 1.5px;
  background: var(--red); flex-shrink: 0;
}

.slides { position: relative; min-height: 420px; }

.slide {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(18px);
  visibility: hidden; pointer-events: none;
  transition: opacity .6s ease, transform .6s ease, visibility 0s .6s;
}
.slide.slide-active {
  opacity: 1; transform: translateY(0);
  visibility: visible; pointer-events: auto;
  transition: opacity .6s ease, transform .6s ease;
  position: relative;
}
.slide.slide-exit {
  opacity: 0; transform: translateY(-18px);
  visibility: visible; pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
  position: absolute; top: 0; left: 0; right: 0;
}

.slide-h1 {
  font-family: var(--fs);
  font-size: clamp(28px, 3.2vw, 50px); font-weight: 700;
  line-height: 1.09; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 16px;
}
.slide-h1 em     { font-style: italic; color: var(--red); }
.slide-h1 strong { color: var(--blue); font-style: normal; }

.slide-body {
  font-size: 16px; font-weight: 300; line-height: 1.78;
  color: var(--ink-mid); max-width: 460px; margin-bottom: 32px;
}
.slide-body strong { font-weight: 600; color: var(--ink); }

.slide-rule { width: 42px; height: 2.5px; background: var(--blue); margin-bottom: 18px; }

.slide-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--blue); transition: background .25s;
}
.btn-primary:hover { background: var(--blue-dk); }
.btn-primary svg { flex-shrink: 0; transition: transform .3s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none; transition: color .25s;
}
.btn-ghost:hover { color: var(--blue); }
.btn-ghost svg { flex-shrink: 0; transition: transform .3s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* Carousel nav */
.carousel-nav { display: flex; align-items: center; margin-top: 36px; }
.car-dots { display: flex; align-items: center; gap: 7px; margin-right: 18px; }
.car-dot {
  width: 22px; height: 3px; background: var(--ink-faint);
  cursor: pointer; border: none; padding: 0; flex-shrink: 0;
  transition: background .3s, width .3s;
}
.car-dot.dot-active { background: var(--blue); width: 38px; }
.car-dot:hover:not(.dot-active) { background: var(--blue-mid); }
.progress-track { flex: 1; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
.progress-fill  { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); width: 0%; }
.car-btns { display: flex; gap: 6px; margin-left: 16px; }
.car-btn {
  width: 34px; height: 34px; border: 1px solid var(--rule-b);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); transition: background .2s, border-color .2s;
}
.car-btn:hover { background: var(--blue-pale); border-color: var(--blue); }
.car-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Hero Right — Visual Panel ───────────────── */
.hero-right {
  background: var(--blue-dk);
  border-left: 1px solid rgba(30,92,127,.3);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* Canvas fills the panel */
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .85;
}

/* Subtle gradient overlay — keeps left edge clean */
.hero-right::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(18,68,96,.35) 0%, transparent 30%);
  pointer-events: none; z-index: 1;
}

/* ── Context Cards Section ───────────────────── */
#context-cards {
  padding: 88px 60px;
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.cc-outer { display: grid; grid-template-columns: 1fr 2.2fr; gap: 64px; align-items: start; }

.cc-left { padding-top: 4px; }
.cc-eyebrow {
  font-family: var(--fm); font-size: 9px; font-weight: 300;
  letter-spacing: .32em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px; display: block;
}
.cc-headline {
  font-family: var(--fs); font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 16px;
}
.cc-headline em { font-style: italic; color: var(--blue); }
.cc-body {
  font-size: 14px; font-weight: 300; line-height: 1.78;
  color: var(--ink-mid);
}

.cc-right { display: flex; flex-direction: column; gap: 10px; }

/* Featured IPeritus card */
.cc-featured {
  background: var(--cream); border: 1px solid var(--rule-b);
  border-left: 3.5px solid var(--blue);
  padding: 24px 28px; text-decoration: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: border-color .25s, background .25s, transform .2s;
}
.cc-featured:hover { border-color: var(--blue); background: var(--blue-pale); transform: translateX(3px); }
.ccf-body { flex: 1; }
.cc-card-eyebrow {
  font-family: var(--fm); font-size: 8.5px; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 7px; display: block;
}
.ccf-title { font-family: var(--fs); font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 5px; }
.ccf-desc  { font-size: 12.5px; font-weight: 300; line-height: 1.65; color: var(--ink-mid); }
.ccf-meta  { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fm); font-size: 8.5px; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 10px; border: 1px solid; white-space: nowrap;
}
.status-badge.live  { color: var(--green); border-color: rgba(40,122,79,.3); background: rgba(40,122,79,.06); }
.status-badge.soon  { color: var(--amber); border-color: rgba(184,106,0,.3); background: rgba(184,106,0,.06); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-badge.live .badge-dot { animation: pulse-dot 2.4s ease infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

.cc-arrow { width: 32px; height: 32px; border: 1px solid var(--rule-b); display: flex; align-items: center; justify-content: center; color: var(--blue); transition: background .2s, border-color .2s, color .2s; flex-shrink: 0; }
.cc-featured:hover .cc-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }
.cc-arrow svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 2×2 product cards */
.cc-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-card {
  background: #fff; border: 1px solid var(--rule-b); padding: 22px 24px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .25s, background .25s, transform .2s;
}
.cc-card:hover { border-color: var(--blue); background: var(--blue-pale); transform: translateY(-2px); }
.cc-card-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-card-title { font-family: var(--fs); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.cc-card-desc  { font-size: 12px; font-weight: 300; line-height: 1.65; color: var(--ink-mid); flex: 1; }
.cc-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); }
.cc-card-action { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 5px; font-family: var(--fm); }
.cc-card-action svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Positioning Band ────────────────────────── */
#positioning {
  background: var(--blue-dk); color: #fff;
  padding: 88px 60px; position: relative; overflow: hidden;
}
#positioning::before {
  content: "\201C"; position: absolute; top: -80px; left: 10px;
  font-family: var(--fs); font-size: 360px; font-weight: 700;
  color: rgba(255,255,255,.04); line-height: 1;
  pointer-events: none; user-select: none;
}
.pos-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.pos-quote {
  font-family: var(--fs); font-size: clamp(18px, 2.6vw, 36px);
  font-weight: 400; font-style: italic;
  line-height: 1.55; letter-spacing: -.01em;
  color: rgba(238,244,248,.88); margin-bottom: 28px;
}
.pos-quote strong { font-style: normal; font-weight: 700; color: #fff; }
.pos-quote .accent { font-style: normal; color: #ff8080; }
/* V6 fix: attribution opacity increased to 68% */
.pos-sub {
  font-family: var(--fm); font-size: 9.5px; font-weight: 300;
  letter-spacing: .32em; text-transform: uppercase;
  color: rgba(238,244,248,.68);
}

/* ── Section Commons ─────────────────────────── */
.section { padding: 88px 60px; }
.section-label {
  font-family: var(--fm); font-size: 9px; font-weight: 300;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px; display: block;
}
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; padding-bottom: 20px; border-bottom: 1px solid var(--rule);
}
.section-h2 {
  font-family: var(--fs); font-size: clamp(24px, 2.6vw, 40px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink);
}
.section-h2 em { font-style: italic; color: var(--blue); }
/* V6 fix: section aside opacity increased */
.section-aside {
  max-width: 320px; font-size: 13.5px; font-weight: 300;
  line-height: 1.75; color: var(--ink-mid);
}

/* ── Capabilities — V6: 3 cells 1×3 ─────────── */
#capabilities { background: var(--paper); }
.cap-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; border: 1px solid var(--rule); background: var(--rule);
}
.cap-cell {
  padding: 36px 32px; border-right: 1px solid var(--rule);
  background: var(--paper); transition: background .3s;
}
.cap-cell:hover { background: var(--blue-pale); }
.cap-cell:last-child { border-right: none; }
.cap-label {
  font-family: var(--fm); font-size: 9px; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.cap-title {
  font-family: var(--fs); font-size: 17px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px; line-height: 1.3;
}
.cap-body { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--ink-mid); }

/* ── Who We Serve — V6: 3 cells 1×3 ─────────── */
#serve { background: var(--cream); }
.serve-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; border: 1px solid var(--rule); background: var(--rule);
}
.serve-cell {
  background: var(--cream); padding: 36px 32px;
  border-right: 1px solid var(--rule);
  transition: background .3s;
}
.serve-cell:hover { background: var(--paper); }
.serve-cell:last-child { border-right: none; }
.serve-label {
  font-family: var(--fm); font-size: 9px; font-weight: 300;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.serve-h3 {
  font-family: var(--fs); font-size: 17px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px; line-height: 1.3;
}
.serve-body { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--ink-mid); }

/* ── Centurion One Section ───────────────────── */
#centurion { background: var(--blue-pale); }
.c1-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

.arch-flow { display: flex; flex-direction: column; }
.arch-node {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px 0; border-bottom: 1px solid var(--rule-b);
  opacity: 0; transform: translateX(-14px);
  transition: opacity .6s ease, transform .6s ease;
}
.arch-node:last-child { border-bottom: none; padding-bottom: 0; }
.arch-node.in-view    { opacity: 1; transform: translateX(0); }
.arch-idx {
  font-family: var(--fm); font-size: 10px; font-weight: 300;
  letter-spacing: .2em; color: var(--blue); flex-shrink: 0; width: 24px; margin-top: 2px;
}
.arch-title  { font-family: var(--fs); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.arch-body   { font-size: 12.5px; font-weight: 300; line-height: 1.65; color: var(--ink-mid); }
/* V6: practitioner sentence styling */
.arch-practitioner {
  font-size: 12.5px; font-weight: 300; line-height: 1.65;
  color: var(--blue-dk); margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--rule-b);
  font-style: italic;
}
.arch-badge {
  display: inline-block; font-family: var(--fm); font-size: 7.5px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 2px 9px; background: var(--blue); color: #fff; margin-top: 7px;
}

/* CTA side */
.c1-eyebrow {
  font-family: var(--fm); font-size: 9px; font-weight: 300;
  letter-spacing: .3em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px; display: block;
}
.c1-h2 {
  font-family: var(--fs); font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.015em;
  color: var(--ink); margin-bottom: 14px;
}
.c1-body {
  font-size: 14.5px; font-weight: 300; line-height: 1.78;
  color: var(--ink-mid); margin-bottom: 28px;
}

.prompt-cats { margin-bottom: 28px; }
.prompt-cat-label {
  font-family: var(--fm); font-size: 8.5px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim); margin-bottom: 8px; margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
}
.prompt-cat-label:first-child { margin-top: 0; }
.prompt-cat-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; background: #fff;
  border: 1px solid var(--rule-b); cursor: pointer;
  font-size: 11.5px; font-weight: 400; color: var(--ink-mid);
  transition: border-color .22s, background .22s, color .22s;
  font-family: var(--fss);
}
.chip:hover { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dk); }

.c1-cta-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 16px 32px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--blue); transition: background .25s;
}
.c1-cta-btn:hover { background: var(--blue-dk); }
.c1-cta-btn svg { flex-shrink: 0; transition: transform .3s; }
.c1-cta-btn:hover svg { transform: translateX(3px); }

/* V6 fix: note opacity increased to 62% */
.c1-note {
  display: block; font-family: var(--fm); font-size: 9px; font-weight: 300;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(12,12,10,.62); margin-top: 10px;
}

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--blue-dk); padding: 44px 60px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.f-logo { height: 26px; filter: brightness(0) invert(1); opacity: .85; }
.f-sub  {
  font-family: var(--fm); font-size: 8.5px; font-weight: 300;
  letter-spacing: .24em; text-transform: uppercase;
  /* V6 fix: was .3 now .58 */
  color: rgba(238,244,248,.58); margin-top: 4px;
}
.f-links { display: flex; gap: 24px; list-style: none; }
/* V6 fix: footer links opacity was .38 now .68 */
.f-links a {
  font-size: 10px; font-weight: 400; letter-spacing: .17em; text-transform: uppercase;
  color: rgba(238,244,248,.68); text-decoration: none; transition: color .25s;
}
.f-links a:hover { color: rgba(238,244,248,.95); }
/* V6 fix: copyright opacity was .20 now .52 */
.f-copy {
  font-family: var(--fm); font-size: 9px; font-weight: 300;
  letter-spacing: .16em; color: rgba(238,244,248,.52);
}

/* ── Scroll Reveal ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .72s ease, transform .72s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .09s; }
.rd2 { transition-delay: .18s; }
.rd3 { transition-delay: .27s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1100px) {
  .site-header { padding: 14px 32px; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 56px 32px; }
  .section, #context-cards, #positioning, #centurion { padding: 64px 32px; }
  .cap-grid  { grid-template-columns: 1fr; }
  .cap-cell  { border-right: none; border-bottom: 1px solid var(--rule); }
  .cap-cell:last-child { border-bottom: none; }
  .serve-grid { grid-template-columns: 1fr; }
  .serve-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .serve-cell:last-child { border-bottom: none; }
  .c1-grid  { grid-template-columns: 1fr; gap: 48px; }
  .cc-outer { grid-template-columns: 1fr; gap: 36px; }
  .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  footer { padding: 36px 32px; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px 20px; }
  .hero-left { padding: 48px 20px; }
  .section, #context-cards, #positioning, #centurion { padding: 52px 20px; }
  .cc-cards-grid { grid-template-columns: 1fr; }
  .slides { min-height: 460px; }
  .f-links { display: none; }
  footer { padding: 32px 20px; }
}
