/* ── iter8 service pages — shared styles ─────────────────────
   Used by service-apps.html, service-modernisation.html,
   service-automation.html, service-consultancy.html            */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: #0B0B0F; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  color: #FAF7F2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
::selection { background: #1428A0; color: #FAF7F2; }

/* ── ambience (matches contact page) ── */
.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.orb.a { width: 480px; height: 480px; top: -160px; left: -160px; background: rgba(20,40,160,0.16); }
.orb.b { width: 420px; height: 420px; bottom: -140px; right: -120px; background: rgba(20,40,160,0.10); }
.page { position: relative; z-index: 1; }

/* ── scroll reveal ── */
.rvl { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.6,.25,1); }
.rvl.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .rvl { opacity: 1; transform: none; transition: none; } }

/* ── hero ── */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 28px 40px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8FA0E8; margin-bottom: 16px; }
.hero h1 { font-weight: 500; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 18px; text-wrap: balance; }
.hero .sub { font-size: 16px; line-height: 1.6; color: #C5C2BA; max-width: 480px; margin-bottom: 26px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: linear-gradient(135deg, #1428A0, #2438C0); color: #FAF7F2; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; padding: 13px 24px; border-radius: 7px;
  box-shadow: 0 8px 28px rgba(20,40,160,0.4); display: inline-flex; align-items: center; gap: 8px; }
.btn-primary .arr { font-family: 'Geist Mono'; transition: transform 180ms ease; }
.btn-primary:hover .arr { transform: translateX(3px); }
.eta-chip { display: inline-flex; align-items: center; gap: 6px; font-family: 'Geist Mono';
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(250,247,242,0.45); border: 1px solid rgba(250,247,242,0.12); padding: 6px 11px; border-radius: 999px; }

/* ── demo frame (shared shell for all four heroes) ── */
.demo { position: relative; border-radius: 12px; border: 1px solid rgba(250,247,242,0.09);
  background: rgba(28,28,34,0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45); overflow: hidden; }
.demo-chrome { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid rgba(250,247,242,0.07); }
.demo-chrome span { width: 9px; height: 9px; border-radius: 50%; background: rgba(250,247,242,0.14); }
.demo-chrome .lbl { margin-left: auto; font-family: 'Geist Mono'; font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(250,247,242,0.35); width: auto; height: auto; border-radius: 0; background: none; }
.demo-cap { margin-top: 12px; text-align: center; font-family: 'Geist Mono'; font-size: 10.5px;
  letter-spacing: 0.07em; color: rgba(250,247,242,0.38); text-transform: uppercase; }

/* ══ DEMO 1 · custom apps — the app assembles itself ══ */
.da-stage { position: relative; height: 300px; padding: 14px; cursor: pointer; }
.da-piece { position: absolute; border-radius: 6px; background: rgba(250,247,242,0.06);
  border: 1px solid rgba(250,247,242,0.09);
  opacity: 0; animation: daIn 520ms cubic-bezier(.25,1.2,.4,1) forwards; animation-delay: var(--d); }
@keyframes daIn { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
.da-top { top: 14px; left: 14px; right: 14px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.da-dot { width: 14px; height: 14px; border-radius: 4px; background: #1428A0; }
.da-line { height: 5px; border-radius: 3px; background: rgba(250,247,242,0.16); }
.da-side { top: 56px; left: 14px; bottom: 14px; width: 86px; padding: 10px 9px; display: flex; flex-direction: column; gap: 8px; }
.da-side .da-line { width: 100%; }
.da-stat { top: 56px; height: 62px; width: calc((100% - 150px) / 3); padding: 10px 11px; }
.da-stat .num { font-family: 'Geist Mono'; font-size: 15px; font-weight: 600; color: #FAF7F2; animation: daPulse 3.2s ease-in-out infinite; }
.da-stat .cap { font-family: 'Geist Mono'; font-size: 8px; letter-spacing: 0.06em; color: rgba(250,247,242,0.4); text-transform: uppercase; margin-top: 4px; }
@keyframes daPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.da-chart { top: 130px; left: 112px; right: 14px; bottom: 14px; padding: 12px; display: flex; align-items: flex-end; gap: 7px; }
.da-bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3A55D9, #1428A0);
  transform-origin: bottom; transform: scaleY(0); animation: daGrow 700ms cubic-bezier(.25,1.1,.4,1) forwards; animation-delay: var(--d); }
@keyframes daGrow { to { transform: scaleY(1); } }

/* ══ DEMO 2 · modernisation — watch the data migrate ══
   Shared 10s timeline; each row/flight/landing offsets via --d. */
.dm-stage { position: relative; height: 300px; padding: 16px 14px;
  display: grid; grid-template-columns: 1fr 52px 1fr; align-items: stretch; }
.dm-win { border-radius: 9px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; }
/* legacy source — tired, grey, unsupported */
.dm-legacy { grid-column: 1; background: rgba(212,208,200,0.06); border: 1px solid rgba(212,208,200,0.18); }
.dm-lg-title { background: rgba(212,208,200,0.14); color: #B5B2AA; font-family: 'Geist Mono';
  font-size: 8.5px; letter-spacing: 0.07em; padding: 7px 10px; margin-bottom: 2px; }
.dm-lrow { display: flex; justify-content: space-between; align-items: center; margin: 0 10px;
  border: 1px solid rgba(212,208,200,0.16); border-radius: 5px; padding: 7px 9px;
  font-family: 'Geist Mono'; font-size: 9.5px; color: #B5B2AA; height: 30px;
  animation: dmLeave 10s linear infinite both; animation-delay: var(--d); }
.dm-lrow .ct { color: rgba(181,178,170,0.6); }
.dm-lg-foot { margin: auto 10px 0; font-family: 'Geist Mono'; font-size: 8px;
  letter-spacing: 0.06em; text-transform: uppercase; color: rgba(181,178,170,0.45); }
@keyframes dmLeave { 0%, 4% { opacity: 1; } 10%, 88% { opacity: 0.28; } 96%, 100% { opacity: 1; } }
/* records in flight — tiny two-brick (logo) pills */
.dm-fly { position: absolute; left: 0; display: flex; flex-direction: column; gap: 2px; z-index: 2;
  opacity: 0; animation: dmFly 10s linear infinite both; animation-delay: var(--d); pointer-events: none; }
.dm-fly i { display: block; width: 22px; height: 6px; border-radius: 2px; }
.dm-fly i:first-child { background: #FAF7F2; }
.dm-fly i:last-child { background: #3A55D9; }
@keyframes dmFly {
  0%, 3% { left: 12%; opacity: 0; transform: scale(0.85); }
  5% { opacity: 1; transform: scale(1); }
  13% { left: 58%; opacity: 1; }
  15%, 100% { left: 58%; opacity: 0; }
}
/* modern destination */
.dm-modern { grid-column: 3; background: rgba(20,40,160,0.09); border: 1px solid rgba(58,85,217,0.4); position: relative; }
.dm-mrow span:first-child { white-space: nowrap; }
.dm-md-title { display: flex; align-items: center; gap: 7px; padding: 7px 10px; margin-bottom: 2px;
  background: rgba(20,40,160,0.16); font-size: 10.5px; font-weight: 600; color: #FAF7F2; }
.dm-md-title .mk { width: 11px; height: 11px; border-radius: 3px; background: #1428A0; border: 1px solid #3A55D9; }
.dm-md-title .live { margin-left: auto; font-family: 'Geist Mono'; font-size: 8px; color: #2DBE7C; letter-spacing: 0.07em; }
.dm-mrow { display: flex; justify-content: space-between; align-items: center; margin: 0 10px;
  background: rgba(250,247,242,0.05); border: 1px solid rgba(250,247,242,0.1); border-radius: 5px;
  padding: 7px 9px; font-size: 10px; color: #E5E2DA; height: 30px;
  opacity: 0; animation: dmLand 10s linear infinite both; animation-delay: var(--d); }
.dm-mrow .ok { font-family: 'Geist Mono'; font-size: 8.5px; color: #2DBE7C; }
@keyframes dmLand { 0%, 13% { opacity: 0; transform: translateY(5px); } 17%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.dm-badge { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center;
  font-family: 'Geist Mono'; font-size: 8.5px; letter-spacing: 0.05em; padding: 6px 8px;
  border-radius: 999px; background: rgba(45,190,124,0.13); color: #2DBE7C;
  border: 1px solid rgba(45,190,124,0.4); opacity: 0; animation: dmDone 10s linear infinite both; }
@keyframes dmDone { 0%, 76% { opacity: 0; transform: translateY(4px); } 81%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* ══ DEMO 3 · automation — the pipeline runs ══ */
.dp-stage { padding: 26px 18px 22px; }
.dp-flow { display: flex; align-items: center; gap: 0; }
.dp-node { flex: 1; min-width: 0; background: rgba(250,247,242,0.05); border: 1px solid rgba(250,247,242,0.1);
  border-radius: 9px; padding: 12px 8px; text-align: center; animation: dpBreath 4.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes dpBreath { 0%, 100% { border-color: rgba(250,247,242,0.1); } 50% { border-color: rgba(58,85,217,0.55); } }
.dp-ico { height: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 7px; }
.dp-t { font-family: 'Geist Mono'; font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(250,247,242,0.55); }
.dp-wire { width: 34px; height: 2px; flex-shrink: 0; position: relative;
  background: repeating-linear-gradient(90deg, rgba(250,247,242,0.18) 0 5px, transparent 5px 10px); }
.dp-wire::after { content: ''; position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: #3A55D9; box-shadow: 0 0 10px rgba(58,85,217,0.9);
  animation: dpPulse 1.6s linear infinite; animation-delay: var(--d); }
@keyframes dpPulse { from { left: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 3px); opacity: 0; } }
/* bot face inside the agent node */
.dp-bot { display: inline-flex; flex-direction: column; align-items: center; gap: 2.5px; }
.dp-bot .h { width: 24px; height: 11px; border-radius: 3.5px; background: #FAF7F2; display: flex; align-items: center; justify-content: center; gap: 4px; }
.dp-bot .h i { width: 2.8px; height: 2.8px; border-radius: 50%; background: #0B0B0F; animation: ibotBlinkS 4.4s infinite; }
.dp-bot .b { width: 24px; height: 11px; border-radius: 3.5px; background: #1428A0; }
@keyframes ibotBlinkS { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.15); } }
.dp-counter { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Geist Mono'; font-size: 11px; color: rgba(250,247,242,0.55); letter-spacing: 0.05em; }
.dp-counter .n { color: #FAF7F2; font-size: 15px; font-weight: 600; }
.dp-counter .dot { width: 7px; height: 7px; border-radius: 50%; background: #2DBE7C; animation: daPulse 1.8s ease-in-out infinite; }

/* ══ DEMO 4 · consultancy — the audit scan ══ */
.dc-stage { position: relative; height: 300px; padding: 20px 16px 16px; overflow: hidden; }
.dc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; height: 100%; }
.dc-chip { position: relative; border-radius: 8px; background: rgba(250,247,242,0.045);
  border: 1px solid rgba(250,247,242,0.09); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 8px;
  animation: dcFlag 8s linear infinite; animation-delay: var(--d); }
.dc-chip .nm { font-family: 'Geist Mono'; font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(250,247,242,0.6); }
.dc-chip .finding { position: absolute; bottom: 7px; font-family: 'Geist Mono'; font-size: 8px;
  letter-spacing: 0.04em; padding: 2.5px 7px; border-radius: 999px; opacity: 0; white-space: nowrap;
  animation: dcPop 8s linear infinite; animation-delay: var(--d); }
.dc-chip.warn .finding { background: rgba(232,163,61,0.16); color: #E8A33D; border: 1px solid rgba(232,163,61,0.4); }
.dc-chip.good .finding { background: rgba(45,190,124,0.14); color: #2DBE7C; border: 1px solid rgba(45,190,124,0.4); }
@keyframes dcFlag { 0%, 12% { border-color: rgba(250,247,242,0.09); } 16%, 88% { border-color: rgba(58,85,217,0.5); } 96%, 100% { border-color: rgba(250,247,242,0.09); } }
@keyframes dcPop { 0%, 13% { opacity: 0; transform: translateY(5px); } 18%, 88% { opacity: 1; transform: translateY(0); } 96%, 100% { opacity: 0; } }
.dc-beam { position: absolute; top: 0; bottom: 0; width: 60px; left: -70px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(58,85,217,0.22), rgba(143,160,232,0.32), transparent);
  animation: dcSweep 8s linear infinite; }
@keyframes dcSweep { from { left: -70px; } to { left: 110%; } }

/* ── sections ── */
.sect { max-width: 1120px; margin: 0 auto; padding: 68px 28px 0; }
.sect .k { width: 40px; height: 4px; background: #1428A0; border-radius: 2px; margin-bottom: 18px; }
.sect h2 { font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; text-wrap: balance; }
.sect .lead { font-size: 15px; line-height: 1.6; color: #C5C2BA; max-width: 560px; }

/* pain cards */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.pain { background: rgba(28,28,34,0.72); border: 1px solid rgba(250,247,242,0.08); border-radius: 11px; padding: 22px 22px 20px; }
.pain .q { font-size: 16.5px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 10px; }
.pain .q::before { content: '“'; color: #8FA0E8; }
.pain .q::after { content: '”'; color: #8FA0E8; }
.pain .a { font-size: 13px; line-height: 1.55; color: #888785; }

/* deliverables */
.del-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 34px; }
.del { display: flex; gap: 16px; background: rgba(28,28,34,0.5); border: 1px solid rgba(250,247,242,0.07);
  border-radius: 11px; padding: 20px; }
.del .ix { font-family: 'Geist Mono'; font-size: 11px; color: #8FA0E8; padding-top: 3px; }
.del h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; }
.del p { font-size: 13px; line-height: 1.55; color: #888785; }

/* proof band */
.proof { background: #1428A0; color: #FAF7F2; border-radius: 14px; overflow: hidden; position: relative; }
.proof-in { padding: 44px 44px 40px; display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.proof .metric { font-family: 'Geist Mono'; font-weight: 600; font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1; }
.proof .mcap { font-family: 'Geist Mono'; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #C7D0F5; margin-top: 10px; max-width: 220px; }
.proof blockquote { font-size: 17.5px; line-height: 1.5; font-weight: 400; letter-spacing: -0.01em; }
.proof .who { margin-top: 14px; font-family: 'Geist Mono'; font-size: 11px; color: #C7D0F5; letter-spacing: 0.05em; }
/* proof checklist variant (consultancy) */
.proof-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.proof-list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.45; align-items: baseline; }
.proof-list li::before { content: '✓'; font-family: 'Geist Mono'; color: #7FE8B5; }

/* other services */
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.other { display: block; background: rgba(28,28,34,0.6); border: 1px solid rgba(250,247,242,0.08);
  border-radius: 11px; padding: 20px; transition: border-color 180ms ease, transform 180ms ease; }
.other:hover { border-color: rgba(58,85,217,0.6); transform: translateY(-2px); }
.other .tg { font-family: 'Geist Mono'; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8FA0E8; }
.other h3 { font-size: 15.5px; font-weight: 500; letter-spacing: -0.015em; margin: 8px 0 6px; }
.other p { font-size: 12.5px; line-height: 1.5; color: #888785; }
.other .go { display: inline-block; margin-top: 12px; font-family: 'Geist Mono'; font-size: 11px; color: #8FA0E8; }

/* final CTA */
.final { max-width: 1120px; margin: 0 auto; padding: 84px 28px 40px; text-align: center; }
.final h2 { font-weight: 500; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 14px; }
.final p { font-size: 15px; color: #C5C2BA; margin-bottom: 26px; }
.foot { text-align: center; padding: 44px 20px 40px; font-family: 'Geist Mono'; font-size: 11px;
  color: #44443F; letter-spacing: 0.05em; }
.foot a { color: #888785; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .pain-grid, .others { grid-template-columns: 1fr 1fr; }
  .proof-in { grid-template-columns: 1fr; gap: 26px; padding: 34px 28px 32px; }
}
@media (max-width: 560px) {
  .pain-grid, .others, .del-grid { grid-template-columns: 1fr; }
  .dp-flow { flex-direction: column; gap: 0; }
  .dp-node { width: 100%; }
  .dp-wire { width: 2px; height: 26px; background: repeating-linear-gradient(180deg, rgba(250,247,242,0.18) 0 5px, transparent 5px 10px); }
  .dp-wire::after { animation-name: dpPulseV; }
}
@keyframes dpPulseV { from { top: -4px; left: 50%; margin-left: -3.5px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 3px); left: 50%; margin-left: -3.5px; opacity: 0; } }

/* ── light (contrast) theme — driven by html.light from site-chrome ── */
html.light, html.light body { background: #FAF7F2; color: #0B0B0F; }
html.light .orb.a { background: rgba(20,40,160,0.10); }
html.light .orb.b { background: rgba(20,40,160,0.07); }
html.light .eyebrow { color: #2438C0; }
html.light .hero .sub, html.light .sect .lead, html.light .final p { color: #44443F; }
html.light .eta-chip { color: rgba(11,11,15,0.55); border-color: rgba(11,11,15,0.16); }
/* demos stay dark on purpose — they read as product screens */
html.light .demo { border-color: rgba(11,11,15,0.14); box-shadow: 0 22px 55px rgba(11,11,15,0.22); background: #14141B; }
html.light .demo-cap { color: rgba(11,11,15,0.45); }
html.light .pain, html.light .del, html.light .other { background: #FFFFFF; border-color: rgba(11,11,15,0.10); }
html.light .pain .a, html.light .del p, html.light .other p { color: #66655F; }
html.light .pain .q::before, html.light .pain .q::after,
html.light .del .ix, html.light .other .tg, html.light .other .go { color: #2438C0; }
html.light .other:hover { border-color: rgba(20,40,160,0.5); }
