/* P-CS · Panja Consultancy Services
   Design system v2. Native system typography (SF Pro on Apple devices, Segoe UI Variable on Windows),
   a neutral canvas, one brand blue from the logo, a strict 12-column grid, and depth only where UI floats. */

:root {
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --ink: #1D1D1F;
  --ink-2: #424245;
  --ink-3: #6E6E73;
  --ink-4: #86868B;
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --bg-3: #EBEBEF;
  --line: #D2D2D7;
  --line-2: #E5E5EA;

  --brand: #16699D;
  --brand-hover: #125A87;
  --brand-press: #0E4B71;
  --brand-tint: #EAF3F9;
  --brand-tint-2: #D3E6F3;
  --brand-on-dark: #7CC3F0;
  --navy: #1F566F;
  --dark: #0B1C28;
  --dark-2: #132A3B;
  --on-dark: #F5F5F7;
  --on-dark-2: #A9B8C4;

  --green: #1E7B4A;
  --green-tint: #E5F4EC;
  --amber: #93570A;
  --amber-tint: #FDF0DA;
  --red: #B3261E;
  --red-tint: #FCE8E6;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --r-xl: 30px;
  --shadow-pop: 0 1px 2px rgba(11, 28, 40, 0.06), 0 18px 48px rgba(11, 28, 40, 0.14);

  --maxw: 1240px;
  --gutter: clamp(16px, 4.2vw, 48px);
  --section: clamp(80px, 10vw, 148px);
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-text);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class], nav ul, .site-footer ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid rgba(22, 105, 157, 0.55); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-tint-2); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -10000px; top: 10px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 0.9375rem; }
.skip:focus { left: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- type */
.kicker { font: 600 1.0625rem/1.3 var(--font-text); color: var(--brand); letter-spacing: -0.01em; }
.display, .h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(2.75rem, 1.55rem + 4.6vw, 5rem); line-height: 1.04; letter-spacing: -0.036em; }
.h1 { font-size: clamp(2.5rem, 1.55rem + 3.6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.032em; }
.h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.35rem); line-height: 1.08; letter-spacing: -0.028em; }
.h3 { font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.875rem); line-height: 1.16; letter-spacing: -0.02em; }
.h4 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.014em; }
.lead { font-size: clamp(1.1875rem, 1.08rem + 0.45vw, 1.5rem); line-height: 1.38; color: var(--ink-3); letter-spacing: -0.012em; }
.body-l { font-size: 1.1875rem; line-height: 1.47; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 0.9375rem; }
.fine { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1.0625rem/1.2 var(--font-text); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-primary:active { background: var(--brand-press); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-2); color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 0.9375rem; }
.link-more { display: inline-block; font-weight: 500; color: var(--brand); }
.link-more .icon { width: 17px; height: 17px; margin-left: -2px; vertical-align: -3px; transition: transform 0.18s ease; }
.link-more:hover { text-decoration: none; }
.link-more:hover .icon { transform: translateX(3px); }
.on-dark .link-more { color: var(--brand-on-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.header-bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { display: block; height: 34px; width: auto; }
.nav-main { flex: 1; }
.nav-main > ul { display: flex; align-items: center; gap: 4px; height: var(--header-h); }
.nav-item { position: static; height: 100%; display: flex; align-items: center; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 999px;
  font: 400 0.9375rem/1 var(--font-text); color: var(--ink); background: transparent; border: 0; cursor: pointer; letter-spacing: -0.005em;
}
.nav-link:hover, .nav-trigger:hover { background: var(--bg-2); text-decoration: none; }
.nav-link[aria-current="page"], .nav-trigger.is-current { font-weight: 600; }
.nav-trigger .icon { width: 14px; height: 14px; color: var(--ink-3); transition: transform 0.2s ease; }
.nav-trigger[aria-expanded="true"] { background: var(--bg-2); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(11, 28, 40, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.mega.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 48px; padding-block: 36px 40px; }
.mega-intro { display: grid; gap: 12px; align-content: start; }
.mega-intro p:not(.h4) { color: var(--ink-3); font-size: 0.9375rem; }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.mega-link { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border-radius: var(--r-m); color: var(--ink); }
.mega-link:hover { background: var(--bg-2); text-decoration: none; }
.mega-link .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.mega-link .ico .icon { width: 22px; height: 22px; }
.mega-link strong { display: block; font-weight: 600; font-size: 0.9875rem; letter-spacing: -0.01em; }
.mega-link strong + span { display: block; font-size: 0.875rem; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.mega-link strong { color: var(--ink); }

@media (max-width: 1020px) {
  .nav-main { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 0.9375rem; }
  .menu-toggle .icon { width: 20px; height: 20px; }
  .header-cta { margin-left: auto; }
}
.mobile-nav { display: none; }
@media (max-width: 1020px) {
  .mobile-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 99; background: #fff; overflow-y: auto; padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav.open { display: block; }
  .mobile-nav details { border-bottom: 1px solid var(--line-2); }
  .mobile-nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 600 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary .icon { width: 20px; height: 20px; color: var(--ink-3); transition: transform 0.2s ease; }
  .mobile-nav details[open] summary .icon { transform: rotate(180deg); }
  .mobile-nav .sub { display: grid; gap: 2px; padding: 0 0 16px; }
  .mobile-nav .sub a { padding: 10px 0; color: var(--ink-2); font-size: 1.0625rem; }
  .mobile-nav .top { display: block; padding: 18px 0; border-bottom: 1px solid var(--line-2); font: 600 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
  .mobile-nav .btn { margin-top: 24px; width: 100%; }
}
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.bg-2 { background: var(--bg-2); }
.on-dark { background: var(--dark); color: var(--on-dark); }
.on-dark .h2, .on-dark .h3, .on-dark .h4, .on-dark .display { color: #fff; }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-2); }
.section-head { display: grid; gap: 14px; max-width: 52rem; margin-bottom: clamp(40px, 5.5vw, 72px); }
.section-head .lead { max-width: 44rem; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; align-items: last baseline; column-gap: clamp(24px, 5vw, 80px); }
.section-head.split .kicker { grid-column: 1 / -1; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- home hero */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(64px, 8vw, 112px); }
.hero-copy { display: grid; gap: 22px; max-width: 60rem; }
.hero-copy .display { max-width: 17ch; }
.hero-copy .lead { max-width: 40rem; }
.hero-copy .actions { margin-top: 10px; }
.stage { margin-top: clamp(44px, 6vw, 72px); background: var(--bg-2); border-radius: var(--r-xl); padding: clamp(12px, 2.4vw, 32px); overflow: hidden; }
.stage .mk-hero-mobile { display: none; }
@media (max-width: 760px) {
  .stage .mk-hero-desktop { display: none; }
  .stage .mk-hero-mobile { display: block; }
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); }
.fact { padding: 4px 24px 4px 0; display: grid; gap: 6px; align-content: start; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-2); }
.fact b { font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
.fact span { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------------------------------------------------------------- tabbed explorer */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; margin-bottom: clamp(32px, 4vw, 48px); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 14px 0 16px; border: 0; background: none; cursor: pointer;
  font: 500 1rem/1.2 var(--font-text); color: var(--ink-3); letter-spacing: -0.01em; white-space: nowrap;
}
.tab .icon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-copy { display: grid; gap: 18px; }
.tab-copy .body-l { max-width: 32rem; }
.checks { display: grid; gap: 12px; margin: 6px 0 8px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--ink-2); }
.checks .icon { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.visual { background: var(--bg-2); border-radius: var(--r-l); padding: clamp(10px, 2vw, 24px); }
.visual .mk { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- tiles */
.tile { background: var(--bg-2); border-radius: var(--r-l); padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.bg-2 .tile { background: #fff; }
.tile .h4 { margin-top: 6px; }
.tile p { color: var(--ink-3); }
.ico-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.ico-tile .icon { width: 26px; height: 26px; }
.bg-2 .tile .ico-tile { background: var(--brand-tint); }

.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.industry { position: relative; min-height: 236px; color: var(--ink); transition: background-color 0.18s ease, transform 0.18s ease; }
.industry:hover { text-decoration: none; background: var(--bg-3); }
.bg-2 .industry:hover { background: #fff; box-shadow: 0 1px 2px rgba(11, 28, 40, 0.05), 0 12px 32px rgba(11, 28, 40, 0.08); }
.industry .go { position: absolute; right: 22px; top: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); color: var(--ink); display: grid; place-items: center; transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease; }
.bg-2 .industry .go { background: var(--bg-2); }
.industry .go .icon { width: 17px; height: 17px; }
.industry:hover .go { background: var(--brand); color: #fff; transform: translateX(2px); }
.industry .h4 { padding-right: 8px; }
@media (max-width: 1060px) { .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .industry-grid { grid-template-columns: 1fr; gap: 10px; }
  .industry { min-height: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 18px 56px 18px 18px; }
  .industry .ico-tile { grid-row: span 2; }
  .industry .h4 { margin-top: 2px; padding-right: 0; }
  .industry p { font-size: 0.9375rem; }
  .industry .go { top: 50%; right: 16px; transform: translateY(-50%); }
  .industry:hover .go { transform: translate(2px, -50%); }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.model .fit { margin-top: auto; padding-top: 14px; font-size: 0.9375rem; color: var(--ink-3); border-top: 1px solid var(--line-2); }
.bg-2 .model .fit { border-top-color: var(--line-2); }
.model .fit b { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------- stories */
.stories { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 16px; }
.story { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; min-height: 420px; }
.story.dark { background: var(--dark); color: var(--on-dark); }
.story.dark .h3 { color: #fff; }
.story.light { background: var(--bg-2); }
.story .tagline { font-size: 0.9375rem; font-weight: 600; color: var(--brand); }
.story.dark .tagline { color: var(--brand-on-dark); }
.story p { color: var(--ink-3); max-width: 36rem; }
.story.dark p { color: var(--on-dark-2); }
.story .scope { margin-top: auto; }
.story.dark .chip { background: rgba(255, 255, 255, 0.09); color: var(--on-dark); }
.story.light .chip { background: #fff; }
.story.dark .link-more { color: var(--brand-on-dark); }
.story .h3 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.35rem); line-height: 1.12; letter-spacing: -0.028em; max-width: 22ch; }
@media (max-width: 900px) { .stories { grid-template-columns: 1fr; } .story { min-height: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: 0.875rem; }
.bg-2 .chip { background: #fff; }
a.chip:hover { background: var(--brand-tint); color: var(--brand); text-decoration: none; }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.bento .globe-tile { grid-column: 1 / -1; background: #fff; border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 48px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; overflow: hidden; }
.globe-tile .copy { display: grid; gap: 14px; align-content: center; }
.globe-tile .map { width: 100%; height: auto; }
@media (max-width: 860px) { .bento .globe-tile { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } }

.clocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.clocks dt { font-size: 0.8125rem; color: var(--ink-3); }
.clocks dd { font: 600 1.375rem/1.2 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* world map, light */
.map { display: block; }
.map-land { fill: none; stroke: #C4CBD2; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 10; }
.map-india { fill: none; stroke: var(--brand); stroke-width: 6.4; stroke-linecap: round; stroke-dasharray: 0 10; }
.map-arc { fill: none; stroke: rgba(22, 105, 157, 0.5); stroke-width: 2; stroke-dasharray: 5 6; }
.map-hub { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.map-origin { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.map-pulse { fill: none; stroke: var(--brand); stroke-width: 2; transform-origin: center; transform-box: fill-box; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(4.2); opacity: 0; } }

/* ---------------------------------------------------------------- steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 58px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 0.9375rem/1 var(--font-text); }
.steps li::after { content: ""; position: absolute; top: 18px; left: 48px; right: 12px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--ink-3); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 4px 0 30px 56px; }
  .steps li::after { top: 44px; bottom: 6px; left: 18px; right: auto; width: 1px; height: auto; }
  .steps li:last-child { padding-bottom: 0; }
}
.govern { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* ---------------------------------------------------------------- CTA tile */
.cta-tile { background: var(--dark); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 56px; align-items: end; overflow: hidden; position: relative; }
.cta-tile .h2 { color: #fff; max-width: 18ch; }
.cta-tile p { color: var(--on-dark-2); margin-top: 16px; max-width: 34rem; font-size: 1.1875rem; line-height: 1.45; }
.cta-tile .aside { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 820px) { .cta-tile { grid-template-columns: 1fr; align-items: start; } }

/* ---------------------------------------------------------------- inner page hero */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 104px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ink-3); margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 14px; height: 14px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-copy { display: grid; gap: 20px; }
.page-hero-copy .ico-tile { width: 56px; height: 56px; border-radius: 16px; }
.page-hero-copy .ico-tile .icon { width: 30px; height: 30px; }
.page-hero-copy .actions { margin-top: 8px; }
.page-hero.solo .page-hero-copy { max-width: 56rem; }
@media (max-width: 960px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- ADR card, pipeline, checklist */
.feature-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.feature-split .intro { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 920px) { .feature-split { grid-template-columns: 1fr; } .feature-split .intro { position: static; } }
.doc-card { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-pop); overflow: hidden; }
.doc-card header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 16px 26px; border-bottom: 1px solid var(--line-2); font-size: 0.875rem; color: var(--ink-3); }
.doc-card header .ok { color: var(--green); font-weight: 600; }
.doc-card .body { padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; }
.doc-card section { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.doc-card section h4 { font-size: 0.875rem; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.doc-card ul { display: grid; gap: 8px; }
.doc-card li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.doc-card .pro { color: var(--green); font-weight: 700; }
.doc-card .con { color: var(--red); font-weight: 700; }
@media (max-width: 640px) { .doc-card section { grid-template-columns: 1fr; gap: 6px; } }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: flow; }
.flow li { background: #fff; border-radius: var(--r-m); padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; position: relative; }
.flow li::before { counter-increment: flow; content: counter(flow); font: 600 0.8125rem/1 var(--font-text); color: var(--ink-4); }
.flow li.control { background: var(--brand-tint); }
.flow li.control::after { content: "Control"; position: absolute; top: 18px; right: 18px; font-size: 0.75rem; font-weight: 600; color: var(--brand); background: #fff; border-radius: 999px; padding: 3px 9px; }
.flow h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; }
.flow p { font-size: 0.9375rem; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.measure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.measure li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.measure .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.measure b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.measure span { color: var(--ink-3); }
@media (max-width: 760px) { .measure { grid-template-columns: 1fr; } }

.spec { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec > div { display: grid; gap: 14px; align-content: start; }
@media (max-width: 760px) { .spec { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- industries page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ind-section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line-2); }
.ind-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ind-head { display: grid; gap: 16px; }
.ind-help { background: var(--bg-2); border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; }
.ind-help h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); }
.ind-extra { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 16px; }
.know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.know div { border-top: 1px solid var(--line-2); padding-top: 16px; display: grid; gap: 6px; }
.know dt { font-weight: 600; letter-spacing: -0.01em; }
.know dd { color: var(--ink-3); }
@media (max-width: 900px) { .ind-grid, .know { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- about */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair .tile p.statement { font: 600 clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem)/1.22 var(--font-display); letter-spacing: -0.022em; color: var(--ink); }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.leader { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.leader-card { display: grid; gap: 18px; }
.monogram { width: 96px; height: 96px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font: 600 2rem/1 var(--font-display); letter-spacing: -0.02em; }
.cred { border-top: 1px solid var(--line-2); }
.cred li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.cred li > span:first-child { color: var(--ink-3); font-size: 0.9375rem; }
@media (max-width: 860px) { .leader { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cred li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 56rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 600 1.25rem/1.3 var(--font-display); letter-spacing: -0.018em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; flex: none; color: var(--ink-3); transition: transform 0.2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 26px; color: var(--ink-3); max-width: 46rem; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--bg-2); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 44px); }
.form { display: grid; gap: 18px; }
.fields { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.0625rem/1.4 var(--font-text); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22, 105, 157, 0.18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.form-foot p { font-size: 0.875rem; color: var(--ink-3); max-width: 26rem; }
.form-status { display: none; border-radius: 14px; padding: 16px 18px; font-size: 0.9875rem; }
.form-status.show, .form-status:target { display: block; }
.form-status.ok { background: var(--green-tint); color: #0F4D2E; }
.form-status.err { background: var(--red-tint); color: #7A1A14; }
.form-status b { display: block; margin-bottom: 2px; }
.form.sent .fields { display: none; }
.side { display: grid; gap: 14px; }
.side .tile { gap: 8px; }
.side .h4 { margin-top: 0; }
.email-actions { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.email-btn { flex: 1; min-width: 0; min-height: 50px; justify-content: flex-start; gap: 12px; padding-inline: 18px 20px; background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.email-btn .icon { width: 20px; height: 20px; color: var(--brand); flex: none; }
.email-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.icon-btn { flex: none; position: relative; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: border-color 0.18s ease, color 0.18s ease; }
.icon-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.icon-btn .icon { grid-area: 1 / 1; width: 20px; height: 20px; transition: opacity 0.16s ease, transform 0.16s ease; }
.icon-btn .icon + .icon { opacity: 0; transform: scale(0.6); color: var(--green); }
.icon-btn.copied { border-color: var(--green); }
.icon-btn.copied .icon:first-child { opacity: 0; transform: scale(0.6); }
.icon-btn.copied .icon + .icon { opacity: 1; transform: none; }
.next { counter-reset: nx; display: grid; gap: 12px; margin-top: 4px; }
.next li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--ink-2); }
.next li::before { counter-increment: nx; content: counter(nx); width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font: 600 0.8125rem/1 var(--font-text); }

/* ---------------------------------------------------------------- legal text */
.doc { max-width: 46rem; }
.doc h2 { font: 600 1.5rem/1.25 var(--font-display); letter-spacing: -0.02em; margin: 2em 0 0.6em; }
.doc p + p { margin-top: 1em; }
.doc ul { padding-left: 1.25em; display: grid; gap: 0.45em; margin-top: 0.8em; }
.doc .updated { font-size: 0.9375rem; color: var(--ink-3); }

/* ---------------------------------------------------------------- 404 */
.nf { padding-block: clamp(80px, 12vw, 160px); display: grid; gap: 22px; max-width: 48rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-2); color: var(--ink-3); font-size: 0.8125rem; line-height: 1.5; padding-block: 56px 28px; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { max-width: 22rem; font-size: 0.875rem; }
.site-footer h2 { font-size: 0.8125rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.005em; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- UI illustrations (mocks) */
.mk { display: block; width: 100%; height: auto; font-family: var(--font-text); }
.mk-win { fill: #fff; }
.mk-app { fill: var(--brand-tint); }
.mk-ico-app, .mk-ico-sel { stroke: var(--brand); }
.mk-ico { stroke: var(--ink-2); }
.mk-ico-muted { stroke: var(--ink-4); }
.mk-ico-inv { stroke: #fff; }
.mk-title { font-size: 13px; font-weight: 600; fill: var(--ink); letter-spacing: -0.01em; }
.mk-ctl { stroke: #A1A1A6; }
.mk-sep { stroke: #ECECEF; fill: none; }
.mk-sep-soft { stroke: #F2F2F5; fill: none; }
.mk-canvas { fill: #F8F9FB; }
.mk-dot { fill: #D3D8DE; }
.mk-node { fill: #fff; stroke: #E1E4E8; }
.mk-node-sel { stroke: var(--brand); stroke-width: 2; }
.mk-tile { fill: var(--bg-2); }
.mk-tile-sel { fill: var(--brand-tint); }
.mk-label { font-size: 13px; font-weight: 600; fill: var(--ink); letter-spacing: -0.01em; }
.mk-label-s { font-size: 12.5px; font-weight: 600; fill: var(--ink); letter-spacing: -0.01em; }
.mk-label-brand { font-size: 13px; font-weight: 600; fill: var(--brand); }
.mk-label-inv { font-size: 12.5px; font-weight: 600; fill: #fff; }
.mk-h { font-size: 15px; font-weight: 600; fill: var(--ink); letter-spacing: -0.015em; }
.mk-text { font-size: 12.5px; fill: var(--ink); }
.mk-text-s { font-size: 12px; fill: var(--ink-2); }
.mk-text-strong { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.mk-sub { font-size: 11px; fill: var(--ink-3); }
.mk-sub-inv { font-size: 11px; fill: #B9C6D0; }
.mk-sub-strong { font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.mk-sub-brand { font-size: 11px; font-weight: 600; fill: var(--brand); }
.mk-tab { font-size: 12.5px; fill: var(--ink-3); }
.mk-tab-on { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.mk-edge { fill: none; stroke: #A9B3BD; stroke-width: 1.5; }
.mk-edge-hi { stroke: var(--brand); stroke-width: 1.75; }
.mk-arrow { fill: #A9B3BD; }
.mk-arrow-hi { fill: var(--brand); }
.mk-zoom { fill: #fff; stroke: #E1E4E8; }
.mk-chip rect { fill: #F1F1F4; }
.mk-chip text { font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.mk-chip-brand rect { fill: var(--brand-tint); }
.mk-chip-brand text { fill: var(--brand); }
.mk-chip-green rect { fill: var(--green-tint); }
.mk-chip-green text { fill: var(--green); }
.mk-chip-amber rect { fill: var(--amber-tint); }
.mk-chip-amber text { fill: var(--amber); }
.mk-chip-red rect { fill: var(--red-tint); }
.mk-chip-red text { fill: var(--red); }
.mk-btn rect { fill: var(--brand); }
.mk-btn text { font-size: 12px; font-weight: 600; fill: #fff; }
.mk-btn-ghost rect { fill: #fff; stroke: var(--line); }
.mk-btn-ghost text { fill: var(--ink); }
.mk-bubble { fill: var(--brand-tint); }
.mk-avatar { fill: var(--brand); }
.mk-cite { fill: var(--brand); font-weight: 600; }
.mk-cite-n { font-size: 11px; font-weight: 700; fill: var(--brand); }
.mk-source { fill: var(--bg-2); }
.mk-ok-bg { fill: var(--green-tint); }
.mk-ok-mark { stroke: var(--green); }
.mk-run-track { stroke: var(--brand-tint-2); }
.mk-run-arc { stroke: var(--brand); }
.mk-spin { transform-box: view-box; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mk-wait { stroke: var(--ink-4); }
.mk-track { fill: #ECECEF; }
.mk-fill { fill: var(--brand); }
.mk-row { fill: #FAFAFB; stroke: #EEEEF1; }
.mk-callout { fill: var(--brand-tint); }
.mk-doc { fill: var(--red-tint); }
.mk-doc-t { font-size: 9px; font-weight: 700; fill: var(--red); }
.mk-hl { fill: #FFF1BF; }
.mk-search { fill: var(--bg-2); }
.mk-panel { fill: #FAFAFB; stroke: #EEEEF1; }
.mk-file { fill: #E6EEF7; }
.mk-file-pdf { fill: var(--red-tint); }
.mk-file-xls { fill: var(--green-tint); }
.mk-file-t { font-size: 9px; font-weight: 700; fill: var(--ink-2); }
.mk-layer { fill: #fff; stroke: #E1E4E8; }
.mk-layer-1 { fill: var(--brand-tint); stroke: var(--brand-tint-2); }
.mk-layer-2 { fill: var(--brand-tint-2); stroke: #BAD5EA; }
.mk-layer-dark { fill: var(--dark); }

/* ---------------------------------------------------------------- motion & print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .mobile-nav, .cta-tile, .stage { display: none !important; }
}
.after { margin-top: clamp(24px, 3vw, 36px); }
.bento-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } @media (max-width: 1000px) { .bento-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .bento-4 { grid-template-columns: 1fr; } }
.bg-2 .visual { background: #fff; }

.section:not(.bg-2) + .section-tight { padding-top: 0; }
.flow li { background: var(--bg-2); }
.bg-2 .flow li { background: #fff; }
.flow li.control { background: var(--brand-tint); }
.ind-head .h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); }
.page-hero.solo { padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero + .section-tight { padding-top: 0; }


/* ================================================================ alignment and mobile pass */
@media (max-width: 560px) {
  .header-cta .btn { display: none; }
}

/* Cards in a row share row tracks, so icons, titles, text and footers line up across the row. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 561px) {
    .industry-grid > .industry { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 10px; align-content: start; }
  }
  .grid-3 > .model { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 10px; }
  .grid-3 > .tile:not(.model) { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 10px; }
  .bento > .tile, .bento-4 > .tile:has(> .ico-tile) { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 10px; }
  .bento-4 > .tile:not(:has(> .ico-tile)) { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 10px; }
  .model .fit { margin-top: 0; align-self: end; }
}

/* Service illustrations: a phone-sized version below 620px */
.visual .mk-m { display: none; }
@media (max-width: 620px) {
  .visual .mk-d { display: none; }
  .visual .mk-m { display: block; }
  .visual { padding: 8px; }
}

/* Facts: a tidy two-column list on phones */
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; row-gap: 0; }
  .fact, .fact + .fact { display: grid; grid-template-columns: 8.75rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .fact b { font-size: 1.25rem; }
  .fact:nth-child(3) { padding-left: 0; }
}

/* Service tabs: fade the edge while more tabs are hidden off-screen */
.tabs:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }

/* Comfortable touch targets */
@media (pointer: coarse) {
  a.chip { min-height: 40px; padding-inline: 16px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding-block: 9px; }
  .footer-bottom nav a { display: inline-block; padding-block: 8px; }
  .crumbs a { display: inline-block; padding-block: 8px; }
  .link-more { padding-block: 8px; }
  .ind-help .checks a { display: inline-block; padding-block: 6px; margin-block: -6px; }
}

/* Small phones */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .display { font-size: 2.45rem; }
  .h1 { font-size: 2.2rem; }
  .h2 { font-size: 1.85rem; }
  .btn { padding-inline: 18px; }
  .story, .cta-tile, .form-card { padding: 22px; }
  .stage { padding: 8px; border-radius: 22px; }
  .clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .clocks dd { font-size: 1.125rem; }
}

/* Story scope line: sits on the same left edge as the heading, text and link */
.scope { display: flex; flex-wrap: wrap; row-gap: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-3); }
.scope li:not(:last-child)::after { content: "·"; margin-inline: 9px; color: var(--ink-4); }
.story.dark .scope { color: var(--on-dark-2); }
.story.dark .scope li:not(:last-child)::after { color: rgba(255, 255, 255, 0.35); }

/* Outline button for dark surfaces */
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-ghost-dark .icon { width: 18px; height: 18px; }
@media (max-width: 480px) { .cta-tile .aside .btn { width: 100%; } }
.mk-warn-bg { fill: var(--amber-tint); }
.mk-warn-mark { stroke: var(--amber); }
.mk-chart-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.mk-chart-area { fill: var(--brand-tint); }
.mk-chart-grid { stroke: #EEEEF1; stroke-width: 1; }
.mk-alert { fill: var(--red); }
.mk-alert-ring { fill: none; stroke: var(--red); stroke-opacity: 0.35; stroke-width: 6; }
.mk-alert-t { font-size: 11px; font-weight: 600; fill: var(--red); }
.mk-val { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.mk-kpi { font-size: 22px; font-weight: 600; fill: var(--ink); letter-spacing: -0.02em; }
.mk-good { font-size: 11px; font-weight: 600; fill: var(--green); }
.mk-plan { fill: none; stroke: var(--ink-4); stroke-width: 1.5; stroke-dasharray: 4 4; }
.mk-mark { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.mk-guide { stroke: var(--brand); stroke-opacity: 0.35; stroke-dasharray: 3 3; }
.mk-src { fill: #fff; stroke: #EEEEF1; }

/* ---------------------------------------------------------------- problems we solve */
.problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 52px) clamp(24px, 3vw, 40px); }
.problems li { display: grid; align-content: start; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.problems h3 { font: 600 1.25rem/1.28 var(--font-display); letter-spacing: -0.018em; color: var(--ink); text-wrap: balance; }
.problems p { color: var(--ink-3); }
.problems .link-more { font-size: 0.9375rem; justify-self: start; }
@supports (grid-template-rows: subgrid) {
  .problems li { grid-template-rows: subgrid; grid-row: span 3; row-gap: 12px; }
  .problems .link-more { align-self: end; }
}
@media (max-width: 1100px) { .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .problems { grid-template-columns: 1fr; row-gap: 0; }
  .problems li { padding-block: 22px 20px; row-gap: 8px; }
  .problems h3 { font-size: 1.1875rem; }
}

/* Industries: closing tile for every other sector */
.industry-more, .bg-2 .industry-more { background: var(--dark); color: var(--on-dark); }
.industry-more .h4 { color: #fff; }
.industry-more p { color: var(--on-dark-2); }
.industry-more .ico-tile, .bg-2 .tile.industry-more .ico-tile { background: rgba(255, 255, 255, 0.1); color: var(--brand-on-dark); }
.industry-more .go, .bg-2 .industry-more .go { background: rgba(255, 255, 255, 0.12); color: #fff; }
.industry-more:hover, .bg-2 .industry-more:hover { background: var(--dark-2); box-shadow: none; }
.industry-more:hover .go { background: var(--brand); }

/* Industries mega menu: names only, three columns */
.mega-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; }
.mega-grid-3 .mega-link { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; }
.mega-grid-3 .mega-link .ico { width: 32px; height: 32px; border-radius: 9px; }
.mega-grid-3 .mega-link .ico .icon { width: 18px; height: 18px; }
.mega-grid-3 .mega-link strong { font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }

/* Risk register (engineering) */
.risks { display: grid; gap: 0; }
.risks li { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line-2); }
.risks li:first-child { border-top: 0; padding-top: 4px; }
.risks b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.risks div span { display: block; color: var(--ink-3); font-size: 0.9375rem; margin-top: 2px; }
.lvl { display: inline-flex; justify-content: center; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; margin-top: 1px; }
.lvl.high { background: var(--red-tint); color: var(--red); }
.lvl.med { background: var(--amber-tint); color: var(--amber); }
.lvl.low { background: var(--green-tint); color: var(--green); }
.risk-card .body { gap: 18px; }
@media (max-width: 520px) { .risks li { grid-template-columns: 1fr; gap: 8px; } .lvl { justify-self: start; } }

/* Industries page: links inside the help list */
.ind-help .checks a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.ind-help .checks a:hover { color: var(--brand); text-decoration-color: currentColor; }
.ind-head .actions { margin-top: 6px; }


/* ================================================================ sub pages (October review) */
body.sub .section { padding-block: clamp(64px, 8vw, 116px); }

/* Ruled list: hairline-topped items, the same language as "Problems we solve" on the home page */
.ruled { display: grid; gap: clamp(32px, 3.6vw, 48px) clamp(24px, 3vw, 40px); }
.ruled-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ruled-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ruled-1 { grid-template-columns: 1fr; gap: 0; }
.ruled li { display: grid; align-content: start; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.ruled-1 li { padding-block: 22px; }
.ruled-1 li:last-child { border-bottom: 1px solid var(--line); }
.ruled h3 { font: 600 1.1875rem/1.3 var(--font-display); letter-spacing: -0.014em; color: var(--ink); text-wrap: balance; }
.ruled-q h3 { font-size: 1.25rem; line-height: 1.28; letter-spacing: -0.018em; }
.ruled p { color: var(--ink-3); }
@supports (grid-template-rows: subgrid) {
  .ruled-3 > li, .ruled-2 > li { grid-template-rows: subgrid; grid-row: span 2; row-gap: 10px; }
}
@media (max-width: 1000px) { .ruled-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .ruled-3, .ruled-2 { grid-template-columns: 1fr; row-gap: 0; }
  .ruled-3 > li, .ruled-2 > li { padding-block: 20px; row-gap: 8px; }
  .ruled-q h3 { font-size: 1.1875rem; }
}

/* Service pages: balanced hero, copy narrower than the picture */
.svc-hero .page-hero-grid { grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(32px, 4.5vw, 64px); }
.svc-hero .h1 { font-size: clamp(2.3rem, 1.45rem + 2.4vw, 3.4rem); line-height: 1.06; }
.svc-hero .lead { font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem); line-height: 1.42; }
@media (max-width: 960px) { .svc-hero .page-hero-grid { grid-template-columns: 1fr; } }

/* At a glance: a specification table instead of tag clouds */
.spec-title { margin-bottom: 18px; }
.spec-table { border-top: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.spec-table dt { font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); padding-top: 1px; }
.spec-table dd { color: var(--ink-2); }
.inline { display: flex; flex-wrap: wrap; row-gap: 4px; }
.inline li:not(:last-child)::after { content: "·"; margin-inline: 10px; color: var(--ink-4); }
@media (max-width: 620px) { .spec-table > div { grid-template-columns: 1fr; } }

/* Services: catalogue of all six */
.catalogue { border-top: 1px solid var(--line); }
.catalogue > li { border-bottom: 1px solid var(--line); }
.cat-row { display: grid; grid-template-columns: 48px minmax(0, 1.05fr) minmax(0, 1fr) 40px; grid-template-areas: "ico main caps go"; gap: 10px 28px; align-items: start; padding: 32px 0; color: var(--ink); }
.cat-row:hover { text-decoration: none; }
.cat-row .ico { grid-area: ico; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.cat-row .ico .icon { width: 26px; height: 26px; }
.cat-main { grid-area: main; display: grid; gap: 6px; }
.cat-name { font: 600 clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); transition: color 0.18s ease; }
.cat-tab { color: var(--ink-3); }
.cat-caps { grid-area: caps; display: flex; flex-wrap: wrap; row-gap: 6px; padding-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.cat-caps span:not(:last-child)::after { content: "·"; margin-inline: 9px; color: var(--ink-4); }
.cat-row .go { grid-area: go; width: 40px; height: 40px; margin-top: 4px; border-radius: 50%; background: var(--bg-2); color: var(--ink); display: grid; place-items: center; transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease; }
.cat-row .go .icon { width: 18px; height: 18px; }
.cat-row:hover .cat-name { color: var(--brand); }
.cat-row:hover .go { background: var(--brand); color: #fff; transform: translateX(2px); }
@media (max-width: 900px) {
  .cat-row { grid-template-columns: 48px minmax(0, 1fr) 40px; grid-template-areas: "ico main go" ". caps ."; }
}
@media (max-width: 560px) {
  .cat-row { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "main go" "caps caps"; padding: 24px 0; column-gap: 16px; }
  .cat-row .ico { display: none; }
}

/* Industries: compact index in the page header */
ul.industry-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(32px, 4vw, 52px); }
.industry-index a { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px 12px 12px; border-radius: var(--r-m); background: var(--bg-2); color: var(--ink); font-size: 0.9875rem; font-weight: 500; line-height: 1.3; transition: background-color 0.18s ease; }
.industry-index a:hover { background: var(--bg-3); text-decoration: none; }
.industry-index .ico { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--brand); display: grid; place-items: center; }
.industry-index .ico .icon { width: 20px; height: 20px; }
.industry-index a.more { background: var(--dark); color: #fff; }
.industry-index a.more .ico { background: rgba(255, 255, 255, 0.1); color: var(--brand-on-dark); }
.industry-index a.more:hover { background: var(--dark-2); }
@media (max-width: 1000px) { ul.industry-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { ul.industry-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { ul.industry-index { grid-template-columns: 1fr; gap: 8px; } ul.industry-index a { min-height: 54px; } }

/* Industries: featured sectors */
.ind-feature .ind-head { gap: 18px; }
.ind-services { display: grid; gap: 4px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.ind-services h3 { font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.ind-services ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.bg-2 .ind-help { background: #fff; }

/* Industries: compact cards for the other sectors */
.ind-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ind-card { background: #fff; border-radius: var(--r-l); padding: clamp(24px, 2.8vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.ind-card-head { display: flex; align-items: center; gap: 14px; }
.ind-card-head .ico-tile { width: 44px; height: 44px; border-radius: 12px; }
.ind-card-head .ico-tile .icon { width: 24px; height: 24px; }
.ind-card > p { color: var(--ink-3); }
.mini-checks { display: grid; gap: 8px; }
.mini-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 0.9875rem; line-height: 1.45; }
.mini-checks .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
ul.ind-card-svc, div.ind-card-svc { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ind-card.dark { background: var(--dark); color: var(--on-dark); }
.ind-card.dark .h4 { color: #fff; }
.ind-card.dark > p { color: var(--on-dark-2); }
.ind-card.dark .ico-tile { background: rgba(255, 255, 255, 0.1); color: var(--brand-on-dark); }
.ind-card.dark .mini-checks li { color: var(--on-dark); }
.ind-card.dark .mini-checks .icon { color: var(--brand-on-dark); }
.ind-card.dark .mini-checks a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 0.2em; }
.ind-card.dark .mini-checks a:hover { text-decoration-color: #fff; }
.ind-card.dark .ind-card-svc { border-top-color: rgba(255, 255, 255, 0.12); padding-top: 18px; }
@media (max-width: 860px) { .ind-cards { grid-template-columns: 1fr; } }

/* How we work: engagement models table */
.table-card { background: #fff; border-radius: var(--r-l); padding: 4px clamp(18px, 2.6vw, 34px); }
.models-table { width: 100%; border-collapse: collapse; }
.models-table th, .models-table td { text-align: left; vertical-align: top; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line-2); }
.models-table th:last-child, .models-table td:last-child { padding-right: 0; }
.models-table thead th { padding-block: 18px 14px; font-size: 0.875rem; font-weight: 600; color: var(--ink-3); }
.models-table tbody tr:last-child > * { border-bottom: 0; }
.models-table tbody th { width: 27%; font: 600 1.125rem/1.3 var(--font-display); letter-spacing: -0.012em; color: var(--ink); }
.models-table tbody th { display: table-cell; }
.models-table tbody th > span:last-child { display: inline-block; vertical-align: middle; }
.models-table .ico { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 12px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); vertical-align: middle; }
.models-table .ico .icon { width: 20px; height: 20px; }
.models-table td { color: var(--ink-2); }
.models-table td:last-child { width: 36%; color: var(--ink-3); }
.pricing { margin-top: 20px; max-width: 52rem; font-size: 0.9375rem; color: var(--ink-3); }
@media (max-width: 760px) {
  .models-table thead { display: none; }
  .models-table tr { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
  .models-table tbody tr:last-child { border-bottom: 0; }
  .models-table tbody th, .models-table td { display: block; width: auto; padding: 0; border: 0; }
  .models-table tbody th { margin-bottom: 4px; }
  .models-table td:last-child { width: auto; font-size: 0.9375rem; }
}

/* About: mission and vision as statements, not cards */
.purpose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.purpose .statement { margin-top: 10px; font: 600 clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem)/1.22 var(--font-display); letter-spacing: -0.022em; color: var(--ink); }
@media (max-width: 760px) { .purpose { grid-template-columns: 1fr; } }

/* Comfortable touch targets for the new inline links */
@media (pointer: coarse) {
  .inline a, .mini-checks a { display: inline-block; padding-block: 8px; margin-block: -8px; }
}

/* Services: picture cards, one per service */
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--r-xl); overflow: hidden; transition: background-color 0.18s ease; }
.svc-card:hover { background: var(--bg-3); }
.svc-card-copy { display: grid; gap: 10px; justify-items: start; padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px) 18px; }
.svc-card .h3 a { color: var(--ink); }
.svc-card .h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.svc-card .h3 a:hover { text-decoration: none; }
.svc-card .h3 a:focus-visible { outline: none; }
.svc-card:has(.h3 a:focus-visible) { outline: 3px solid rgba(22, 105, 157, 0.55); outline-offset: 3px; }
.svc-card p { max-width: 30rem; color: var(--ink-3); }
.svc-card:hover .link-more .icon { transform: translateX(3px); }
.svc-card-visual { margin-top: auto; padding: 6px clamp(16px, 2.6vw, 32px) clamp(16px, 2.6vw, 32px); }
.svc-card-visual .mk { display: block; width: 100%; height: auto; }
.svc-card-visual .mk-m { display: none; }
@media (max-width: 900px) { .svc-cards { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .svc-card-visual { padding: 0 8px 8px; }
  .svc-card-visual .mk-d { display: none; }
  .svc-card-visual .mk-m { display: block; }
}

