/* =========================================================
   Royal Blue Services — site styles
   Aesthetic: flat, sharp edges, no shadows, no radii
   Brand: #0476BC
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #0a0d14;
  --surface: #ffffff;
  --tint: #f6f8fb;       /* card on white sections */
  --tint-deep: #eef1f6;  /* hover / nested */
  --ink: #0a0d14;
  --ink-2: #1d2230;
  --muted: #5b6478;
  --line: #ecedf2;
  --line-strong: #dfe2e9;

  --brand: #0476BC;
  --brand-2: #035c93;
  --brand-3: #a8d6f0;
  --brand-ink: #022e4a;
  --accent: #ffe45a;

  --radius: 4px;
  --radius-sm: 3px;

  --container: 1600px;

  --font-sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--brand-2); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
  position: relative;
}
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink {
  background: var(--bg-deep);
  color: #e9ecf2;
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink p, .section--ink .muted { color: #a4abbb; }
.section--ink .eyebrow { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.18); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--tint);
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
}
p { margin: 0 0 16px; color: var(--ink-2); }
.muted { color: var(--muted); }

.lead {
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }

/* ---------- Buttons (flat, sharp) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn--ghost {
  background: var(--tint);
  color: var(--ink);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--tint-deep); color: var(--ink); }
.btn--light {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}
.btn--light:hover { background: var(--brand); color: #fff; border-color: #fff; }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow:after {
  content: "→";
  transition: transform .2s ease;
}
.link-arrow:hover:after { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-size: 17px;
}
.brand:hover { color: var(--ink); }
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}
.site-footer .brand-logo {
  height: 52px;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  border-radius: var(--radius);
}
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a.is-active { color: var(--brand); background: var(--tint); }

.nav-cta { display: inline-flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: var(--tint);
  border: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-meta .pip {
  width: 8px; height: 8px;
  background: #22c55e;
}
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-stats .stat {
  padding: 22px 24px;
  background: var(--tint);
  border-radius: var(--radius);
}
.hero-stats .stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.hero-stats .stat span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Hero UI mockup ---------- */
.ui-window {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line-strong), 0 12px 32px rgba(11, 16, 32, 0.05);
  position: relative;
}
.ui-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-soft);
}
.ui-window-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d6dae3;
}
.ui-window-bar .url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 12px;
}
.ui-window-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 460px;
}
.ui-side {
  padding: 18px 0;
  background: #fafbfd;
  font-size: 13px;
}
.ui-side h5 {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 18px;
  margin: 12px 0 6px;
}
.ui-side h5:first-child { margin-top: 0; }
.ui-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--ink-2);
  font-weight: 500;
}
.ui-side a:hover { background: #fff; }
.ui-side a.is-active { background: #fff; color: var(--brand); border-left: 2px solid var(--brand); padding-left: 16px; }
.ui-side a .ico { width: 14px; height: 14px; background: currentColor; opacity: 0.45; }
.ui-side a.is-active .ico { opacity: 1; background: var(--brand); }

.ui-main { padding: 24px; }
.ui-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.ui-main-head h4 { margin: 0; font-size: 18px; }
.ui-main-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #16a34a;
}
.ui-main-head .live .pulse {
  width: 8px; height: 8px;
  background: #16a34a;
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.kpi {
  padding: 14px 16px;
  background: var(--tint);
  border-radius: var(--radius);
}
.kpi .lbl {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi .val {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.kpi .delta { font-size: 11px; font-weight: 600; color: #16a34a; }
.kpi .delta.neg { color: #dc2626; }

.chart {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.chart-svg { width: 100%; height: 110px; }
.chart-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 110px;
}
.chart-bars span {
  background: var(--brand);
  display: block;
}
.chart-bars span:nth-child(odd) { background: var(--brand-3); }

.ticket-list { font-size: 13px; display: grid; gap: 8px; }
.ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--tint);
  border-radius: var(--radius);
}
.ticket .who {
  width: 30px; height: 30px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.ticket .who.alt { background: #0a0d14; }
.ticket .who.alt2 { background: #16a34a; }
.ticket .who.alt3 { background: #f59e0b; }
.ticket .body strong { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.ticket .body span { color: var(--muted); font-size: 12px; }
.ticket .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--muted);
}
.ticket .tag.solved { color: #16a34a; background: #e8f6ec; }
.ticket .tag.open { color: var(--brand); background: var(--brand-3); }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--tint);
  padding: 36px;
  border-radius: var(--radius);
  transition: background .2s ease;
}
.section--soft .card,
.card.on-light {
  background: #fff;
}
.card:hover { background: var(--tint-deep); }
.section--soft .card:hover,
.card.on-light:hover { background: var(--tint); }
.card h3 { margin-bottom: 12px; }

.card .ico-square {
  width: 44px; height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-weight: 800;
  margin-bottom: 22px;
}

.card--feature .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  display: block;
}

/* Service preview cards */
.service-card { display: flex; flex-direction: column; gap: 14px; }
.service-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.service-card h3 { margin: 0; }
.service-card p { margin: 0; }
.service-card .link-arrow { margin-top: 6px; align-self: start; }
.service-card .ui-mini {
  margin-top: 18px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.section--soft .service-card .ui-mini { background: var(--tint); }
.service-card .ui-mini .k { color: var(--brand); }
.service-card .ui-mini .v { color: var(--ink); }

/* ---------- Section header ---------- */
.section-head { max-width: 820px; margin: 0 0 64px; }
.section-head.center { margin: 0 auto 64px; text-align: center; }

/* ---------- Process / steps (timeline) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.step {
  padding: 32px 28px;
  position: relative;
  background: var(--tint);
  border-radius: var(--radius);
}
.section--soft .step { background: #fff; }
.step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step .num::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--brand);
}
.step h4 { font-size: 17px; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Bullets list ---------- */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.bullets li {
  padding: 32px;
  background: var(--tint);
  border-radius: var(--radius);
}
.section--soft .bullets li { background: #fff; }
.bullets li strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}
.bullets li span { color: var(--muted); }

/* ---------- Featured (case study) ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.featured-art {
  background: var(--bg-deep);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  color: #fff;
}
.featured-art .art-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a4abbb;
}
.featured-art .art-head .who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.featured-art .art-head .who .mark {
  width: 22px; height: 22px;
  background: var(--brand);
  color: #fff;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.metric-grid .m {
  padding: 22px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
}
.metric-grid .m .lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a4abbb;
  margin-bottom: 8px;
}
.metric-grid .m .val {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.metric-grid .m .sub { font-size: 12px; color: #6cd1ff; margin-top: 6px; }

.feed {
  margin-top: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 4px 0;
}
.feed .row {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #cdd2dd;
}
.feed .row .when { font-family: var(--font-mono); font-size: 11px; color: #6cd1ff; }

.quote {
  margin-top: 28px;
  padding: 26px;
  background: var(--tint);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  color: var(--ink-2);
  font-style: italic;
  font-size: 17px;
}
.section--soft .quote { background: #fff; }
.quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--bg-deep);
  color: #fff;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.cta-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 25%, transparent 80%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #a4abbb; max-width: 700px; margin: 0 auto 36px; }
.cta-panel .btn-row { justify-content: center; }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 40px 0;
  background: var(--bg-soft);
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-strip-inner span:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-strip .logos {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-strip .logos div {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0.65;
}

/* ---------- Global presence (world) ---------- */
.world-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.world-map {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 24px;
}
.section--soft .world-map { background: #fff; }
.world-map svg { width: 100%; height: auto; }
.world-pins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.world-pins .pin {
  padding: 16px;
  font-size: 13px;
  background: var(--tint);
  border-radius: var(--radius);
}
.section--soft .world-pins .pin { background: #fff; }
.world-pins .pin strong { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* ---------- About specifics ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.principle {
  padding: 40px;
  background: var(--tint);
  border-radius: var(--radius);
}
.section--soft .principle { background: #fff; }
.principle .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--brand);
  display: block;
  margin-bottom: 16px;
}
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ---------- Services page specifics ---------- */
.service-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 1px 0 var(--line-strong), 0 12px 32px rgba(11, 16, 32, 0.04);
}
.section--soft .service-block { background: #fff; }
.service-block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  padding: 48px;
  background: var(--tint);
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-block-head h2 { margin-bottom: 8px; }
.service-block-head .tag {
  font-family: var(--font-mono);
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}
.service-block-body { padding: 48px; }
.service-block .pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.service-block .pillars > div {
  padding: 32px;
  background: var(--tint);
  border-radius: var(--radius);
}
.service-block ul.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.service-block ul.checklist li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--ink-2);
}
.service-block ul.checklist li::before {
  content: "→";
  position: absolute;
  left: 0; top: 8px;
  color: var(--brand);
  font-weight: 700;
}
.setup-callout {
  margin-top: 28px;
  padding: 24px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--ink-2);
}
.setup-callout strong { color: var(--ink); }

/* ---------- Service UI mockups (visual, per service) ---------- */
.svc-visual {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 28px;
}

/* Chat UI — for support service */
.chat-ui { font-size: 13px; }
.chat-ui .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.chat-ui .head strong { font-size: 14px; color: var(--ink); }
.chat-ui .head .status { font-family: var(--font-mono); font-size: 11px; color: #16a34a; }
.bubble { padding: 12px 14px; max-width: 80%; margin-bottom: 10px; background: #fff; border-radius: var(--radius); }
.bubble.user { background: var(--brand); color: #fff; margin-left: auto; }
.bubble.user span { color: rgba(255,255,255,0.8); }
.bubble .meta { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: var(--radius); }
.typing span {
  width: 6px; height: 6px;
  background: var(--muted);
  display: inline-block;
  animation: bounce 1.4s ease infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Code editor — for software service */
.code-ui { background: #0a0d14; color: #cdd2dd; font-family: var(--font-mono); font-size: 12.5px; padding: 0; border-radius: var(--radius); overflow: hidden; }
.code-ui .tabs { display: flex; }
.code-ui .tabs span { padding: 10px 14px; color: #6b7488; font-size: 11px; }
.code-ui .tabs span.active { color: #fff; background: #11151f; }
.code-ui pre { margin: 0; padding: 18px; line-height: 1.7; overflow: hidden; }
.code-ui .num { color: #3d4458; margin-right: 12px; user-select: none; }
.code-ui .kw { color: #6cd1ff; }
.code-ui .str { color: #ffd166; }
.code-ui .com { color: #5b6478; font-style: italic; }
.code-ui .fn { color: #b8e3fb; }

/* Ops table — for custom workforce */
.table-ui { font-size: 13px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table-ui .row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.table-ui .row + .row { box-shadow: inset 0 1px 0 var(--line); }
.table-ui .row.head {
  background: var(--tint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  box-shadow: none;
}
.table-ui .check {
  width: 16px; height: 16px;
  background: var(--tint-deep);
  border-radius: var(--radius-sm);
  position: relative;
}
.table-ui .check.done { background: var(--brand); }
.table-ui .check.done::after {
  content: "✓"; color: #fff; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 11px;
}
.table-ui .when { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.table-ui .who {
  width: 24px; height: 24px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.table-ui .who.alt { background: var(--ink); }
.table-ui .who.alt2 { background: #16a34a; }

/* ---------- FAQ ---------- */
.faq { max-width: 920px; margin: 0 auto; display: grid; gap: 8px; }
.faq-item {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: background .2s ease;
}
.section--soft .faq-item { background: #fff; }
.faq-item.is-open { background: var(--tint-deep); }
.section--soft .faq-item.is-open { background: var(--tint); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 0;
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .icon {
  width: 28px; height: 28px;
  background: #fff;
  border-radius: var(--radius-sm);
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
}
.faq-item.is-open .faq-q .icon {
  background: var(--brand);
  color: #fff;
}
.faq-item.is-open .faq-q .icon::before { content: "−"; }
.faq-q .icon::before { content: "+"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 0 22px; color: var(--muted); max-width: 760px; }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 1px 0 var(--line-strong), 0 12px 32px rgba(11, 16, 32, 0.04);
}
.section--soft .form-card { background: #fff; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.form-success {
  display: none;
  background: #e8f6ec;
  border-radius: var(--radius);
  padding: 24px;
}
.form-success.is-shown { display: block; }
.form-success h4 { color: var(--ink); margin-bottom: 6px; font-size: 18px; }
.form-success p { margin: 0; color: var(--muted); }

.contact-side .info-block {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
}
.section--soft .contact-side .info-block { background: #fff; }
.contact-side .info-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-side .info-block p { margin: 0; color: var(--ink-2); font-size: 16px; }
.contact-side .info-block a { font-weight: 600; }

/* ---------- Coming soon ---------- */
.coming-soon { text-align: center; padding: 40px 0; }
.coming-soon .badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tint);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.coming-soon .badge .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.role-list {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  max-width: 900px;
  display: grid;
  gap: 8px;
}
.role-list li {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
}
.section--soft .role-list li { background: #fff; }
.role-list li .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.14em;
}
.role-list li strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #a4abbb;
  padding: 96px 0 48px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.footer-grid a { color: #a4abbb; }
.footer-grid a:hover { color: #fff; }
.footer-tag { color: #fff; font-size: 14px; margin: 16px 0 18px; font-weight: 600; }
.footer-blurb { color: #6b7488; font-size: 14px; max-width: 420px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7488;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 25%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 1100px; }
.page-hero .lead { max-width: 760px; margin-top: 12px; }

/* ---------- Real images ---------- */
.hero-figure {
  position: relative;
}
.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--tint);
  box-shadow: 0 1px 0 var(--line-strong), 0 24px 60px rgba(11, 16, 32, 0.10);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-figure-pin {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 12px 32px rgba(11, 16, 32, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  min-width: 240px;
}
.hero-figure-pin .row { display: block; }
.hero-figure-pin .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 2px;
}
.hero-figure-pin strong {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-figure-pin .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #16a34a;
  margin-top: 2px;
}
.hero-figure-pin .live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulse 1.6s ease infinite;
}

.image-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
  box-shadow: 0 1px 0 var(--line-strong), 0 12px 32px rgba(11, 16, 32, 0.05);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-frame.tall { aspect-ratio: 3 / 4; }
.image-frame.square { aspect-ratio: 1 / 1; }
.image-frame.wide { aspect-ratio: 16 / 9; }
.image-frame.cover { aspect-ratio: 4 / 5; }
.image-frame.featured { aspect-ratio: 4 / 3; }

/* ---------- Image placeholder ---------- */
.image-ph {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      var(--tint),
      var(--tint) 14px,
      var(--tint-deep) 14px,
      var(--tint-deep) 28px
    );
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.image-ph.square { aspect-ratio: 1 / 1; }
.image-ph.tall { aspect-ratio: 3 / 4; }
.image-ph.wide { aspect-ratio: 16 / 7; }
.image-ph.portrait { aspect-ratio: 1 / 1.15; }
.image-ph .label {
  position: relative;
  background: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 600;
}
.image-ph .label::before {
  content: "[ image ] · ";
  color: var(--muted);
  font-weight: 400;
}
.section--soft .image-ph {
  background:
    repeating-linear-gradient(
      135deg,
      #fff,
      #fff 14px,
      var(--tint) 14px,
      var(--tint) 28px
    );
}

/* ---------- Partners ---------- */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.partner {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 18px;
  min-height: 220px;
}
.section--soft .partner { background: #fff; }
.partner .logo-ph {
  height: 56px;
  background:
    repeating-linear-gradient(
      135deg,
      #fff,
      #fff 10px,
      var(--tint-deep) 10px,
      var(--tint-deep) 20px
    );
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--soft .partner .logo-ph {
  background:
    repeating-linear-gradient(
      135deg,
      var(--tint),
      var(--tint) 10px,
      var(--tint-deep) 10px,
      var(--tint-deep) 20px
    );
}
.partner h3 { font-size: 20px; margin: 0; }
.partner p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Core values grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.value {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
}
.section--soft .value { background: #fff; }
.value .num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 0;
  text-align: center;
  align-self: start;
}
.section--soft .value .num { background: var(--tint); }
.value h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.015em; }
.value p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .container { padding: 0 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .featured { grid-template-columns: 1fr; gap: 40px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .world-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .bullets { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ui-window-body { grid-template-columns: 160px 1fr; min-height: 400px; }
  .service-block .pillars { grid-template-columns: 1fr; }
  .service-block-head { grid-template-columns: 1fr; padding: 32px; }
  .service-block-body { padding: 32px; }
  .cta-panel { padding: 56px 28px; }
  .partners { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav.is-open { position: relative; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    border-radius: var(--radius);
    padding: 8px;
    z-index: 60;
    box-shadow: 0 12px 32px rgba(11, 16, 32, 0.08);
  }
  .nav-cta .btn { padding: 12px 18px; font-size: 14px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 60px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
  .ui-window-body { grid-template-columns: 1fr; }
  .ui-side { display: none; }
  .kpi-row { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .world-pins { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; gap: 16px; }
  .value .num { width: 64px; }
}
