/* Karunashri Software — site styles
   Colours (from brief 1.5): deep blue #1F4E79, mid blue #2E75B6, body #333333, white bg.
   One accent only (mid blue), no gradients. Depth comes from soft shadows and a dot pattern. */

:root {
  --deep: #1F4E79;
  --mid: #2E75B6;
  --mid-hover: #255f94;
  --text: #333333;
  --muted: #5a6470;
  --tint: #EEF4FA;
  --tint-strong: #E1ECF7;
  --line: #DCE5EF;
  --navy: #163B5E;
  --shadow-sm: 0 1px 2px rgba(16,42,67,.05), 0 2px 8px rgba(16,42,67,.04);
  --shadow-md: 0 2px 4px rgba(16,42,67,.04), 0 12px 32px rgba(16,42,67,.09);
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23C9DAEC'/%3E%3C/svg%3E");
  --white: #ffffff;
  --flag-bg: #FFF4CC;
  --flag-line: #E0B400;
  --error: #B42318;
  --radius: 14px;
  --container: 1140px;
  --gutter: 24px;
  --section: 80px;
  --font: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--deep); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.15rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--mid); text-underline-offset: 3px; }
a:hover { color: var(--deep); }

:focus-visible { outline: 3px solid var(--mid); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 72ch; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--deep); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Placeholder flags (must be resolved before publishing) ---------- */
.flag { background: var(--flag-bg); border-bottom: 2px dashed var(--flag-line); padding: 0 4px; border-radius: 3px; color: #5c4600; font-weight: 600; }
.flag-note { background: var(--flag-bg); border: 1px dashed var(--flag-line); color: #5c4600; font-size: .9rem; padding: 10px 14px; border-radius: 8px; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn { max-width: 100%; text-align: center; }
.btn-primary { background: var(--mid); color: #fff; border-color: var(--mid); box-shadow: 0 1px 2px rgba(16,42,67,.12), 0 4px 12px rgba(46,117,182,.22); }
.btn-primary:hover { background: var(--mid-hover); border-color: var(--mid-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--mid); border-color: var(--mid); }
.btn-outline:hover { background: var(--tint); color: var(--deep); }
.btn-white { background: #fff; color: var(--deep); border-color: #fff; }
.btn-white:hover { background: var(--tint); color: var(--deep); }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.text-link::after { content: "→"; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 2px 12px rgba(31,78,121,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; color: var(--deep); }
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.015em; color: var(--deep); }
.logo-sub { font-weight: 600; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--mid); margin-top: 6px; }
.logo:hover .logo-name { color: var(--deep); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: #3A4755; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 12px; border-radius: 6px; display: inline-flex; min-height: 44px; align-items: center; }
.main-nav a:not(.btn):hover { color: var(--deep); background: var(--tint); }
.main-nav a[aria-current="page"] { color: var(--deep); font-weight: 700; box-shadow: inset 0 -2px 0 var(--mid); border-radius: 0; }
.main-nav .btn { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 12px; cursor: pointer; border-radius: 8px; color: var(--deep); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 40px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin-bottom: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 96px; position: relative; overflow: hidden; isolation: isolate; }
.hero:has(.hero-art)::before { content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%; background: var(--tint) var(--dots); border-bottom-left-radius: 48px; z-index: -1; }
.hero h1 { margin-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.2rem; line-height: 1.65; color: #46525F; margin-bottom: 32px; max-width: 62ch; }
.hero-art { width: 100%; max-width: 480px; justify-self: end; overflow: visible; }
.hero-compact { padding: 72px 0 56px; }
.hero-compact h1 { max-width: 22ch; }

/* Home hero: text only */
.hero-text { padding: 112px 0 96px; }
.hero-text .hero-copy { max-width: none; }
.hero-text h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: none; margin-bottom: 28px; }
.hero-text .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: none; margin-bottom: 40px; }

/* Home: tinted hero with trust ticks */
.hero-tint { background: var(--tint) var(--dots); border-bottom: 1px solid var(--line); }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 32px 0 0; color: var(--deep); font-weight: 600; font-size: .95rem; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; background: var(--mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Home: How can we help cards */
.help-sec { padding-top: 72px; }
.help-card { padding: 26px; }
.help-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.help-head .icon { margin: 0; width: 44px; height: 44px; }
.help-head h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; min-height: 2.5em; display: flex; align-items: center; }
.help-card p { color: #3E4A57; font-size: .98rem; }
.help-card .text-link { margin-top: 6px; }

/* Home: white main service cards */
.core-white .card-large { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); color: var(--text); box-shadow: var(--shadow-sm); }
.core-white .card-large::after { display: none; }
.core-white .card-large h3 { color: var(--deep); }
.core-white .card-large p { color: #3E4A57; }
.core-white .card-large .icon { background: var(--tint); color: var(--mid); }
.core-white .card-large .text-link { color: var(--mid); }
.core-white .card-large .text-link:hover { color: var(--deep); }

.core-white .card-large h3 { min-height: 2.5em; display: flex; align-items: flex-end; line-height: 1.25; }
.group-label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin: 0 0 16px; }
.group-label-gap { margin-top: 48px; }
.support-grid .card-small p { flex-grow: 1; }
.small-link { font-size: .92rem; min-height: 0; margin-top: 10px; }

/* Home: why cards */
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.why-card h3 { font-size: 1.12rem; }
.why-card p { color: #3E4A57; font-size: .97rem; }

/* Home: delivery process timeline */
.process-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.process-intro { position: sticky; top: 112px; }
.process-intro h2 { margin-bottom: 18px; }
.process-intro p { color: #46525F; font-size: 1.05rem; margin-bottom: 28px; }
.pill-label { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--deep); background: var(--tint-strong); border-radius: 999px; padding: 6px 14px 6px 12px; margin-bottom: 18px; }
.pill-label svg { width: 16px; height: 16px; color: var(--mid); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: #C9DAEC; }
.timeline li { position: relative; display: grid; grid-template-columns: 20px 48px minmax(0, 1fr); gap: 0 20px; align-items: start; padding-bottom: 40px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--mid); border: 4px solid #fff; box-shadow: 0 0 0 3px #C9DAEC; margin-top: 14px; position: relative; z-index: 1; }
.tl-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--mid); display: grid; place-items: center; border: 1px solid var(--line); }
.tl-icon svg { width: 24px; height: 24px; }
.timeline h3 { font-size: 1.12rem; color: var(--mid); margin: 2px 0 8px; }
.timeline p { color: #3E4A57; font-size: .98rem; margin: 0; }

/* Home: case study label and tags */
.case-label { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); background: #fff; border: 1px solid #C9DAEC; border-radius: 999px; padding: 5px 14px; margin-bottom: 14px; }
.case-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 14px; }
.case-tags li { font-size: .82rem; font-weight: 600; color: var(--deep); background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.feature .btn { margin-top: 10px; }
.case-stack { display: grid; gap: 28px; }
.case-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0F6E56; background: #E1F5EE; border-radius: 999px; padding: 5px 12px; margin-left: 6px; vertical-align: middle; }
.case-feature { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: stretch; background: #fff; }
.case-feature h3, .case-feature .case-title { font-size: 1.6rem; margin: 4px 0 14px; }
.work-hero { background: var(--tint) var(--dots); border-bottom: 1px solid var(--line); padding-bottom: 64px; }
.skill-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); border-radius: 14px; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.skill-card .icon { background: var(--tint); margin-bottom: 14px; }
.skill-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.skill-card p { color: #3E4A57; font-size: .95rem; margin: 0; }
.work-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; align-items: start; }
.work-split-single { grid-template-columns: 1fr; max-width: 72ch; }
.work-split h3 { font-size: 1.15rem; }
.work-split p { color: #3E4A57; }
.work-note { background: #fff; border-left: 4px solid var(--mid); border-radius: 0 12px 12px 0; padding: 20px 24px; }
.work-note strong { color: var(--deep); }
.work-note p { margin: 6px 0 0; }
/* Case study page */
.cd-hero { background: var(--tint) var(--dots); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.cd-hero h1 { max-width: 22ch; }
.text-link.cd-back { min-height: auto; margin-bottom: 14px; }
.text-link.cd-back::after { content: none; }
.cd-facts { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 32px; box-shadow: var(--shadow-sm); }
.cd-facts > div { padding: 18px 22px; }
.cd-facts > div + div { border-left: 1px solid var(--line); }
.cd-facts:has(> div:nth-child(3)) { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
.cd-body { max-width: 960px; }
.cd-block { margin-bottom: 48px; }
.cd-block h2 { font-size: 1.6rem; margin-bottom: 14px; }
.cd-block p { color: #3E4A57; }
.cd-scope { margin: 16px 0 20px; }
.cd-res { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.cd-res .icon { background: var(--tint); margin-bottom: 12px; }
.cd-res h3 { font-size: 1.08rem; margin-bottom: 6px; }
.cd-res p { font-size: .95rem; margin: 0; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 12px; color: #3E4A57; font-weight: 500; }
.check-list li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%232E75B6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.case-feature p { color: #3E4A57; max-width: none; }
.case-highlights { background: var(--tint); border-radius: 14px; padding: 26px; }
.case-highlights h4 { margin: 0 0 16px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.case-highlights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.case-highlights li { display: flex; gap: 14px; align-items: flex-start; }
.hl-icon { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--mid); display: grid; place-items: center; flex-shrink: 0; }
.hl-icon svg { width: 20px; height: 20px; }
.hl-key { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hl-val { display: block; font-weight: 600; color: var(--deep); font-size: .97rem; line-height: 1.45; }

/* Home: technology tiles */
.tech-grid { gap: 20px; }
.tech-tile { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow-sm); font-weight: 700; font-size: 1.15rem; color: var(--deep); }
.tech-tile .icon { margin: 0; width: 48px; height: 48px; }

/* Utility classes (replace inline styles so the Content Security Policy can block inline CSS) */
a.card-small { text-decoration: none; }
.sv-jump { margin-top: 28px; }
.pt-56 { padding-top: 56px; }
.pt-0 { padding-top: 0; }
.pb-section { padding-bottom: var(--section); }
.text-link.tl-compact { min-height: auto; }

/* ---------- Page intro ---------- */
.page-intro { padding: 88px 0 52px; }
.page-intro p { font-size: 1.15rem; max-width: 70ch; color: #46525F; }
.page-intro h1 { max-width: 24ch; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s; }
a.card:hover, .router .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #BFD3E8; }
.card h3 { margin-bottom: .5em; }
.card p { flex-grow: 1; }
.card .text-link { margin-top: 12px; }
.card-tint { background: #fff; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--tint); color: var(--mid); display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0; }
.icon svg { width: 24px; height: 24px; }

/* Router */

/* Tier 1 — specialism (large) */
.card-large { background: var(--deep); border: 0; border-radius: 18px; padding: 44px 40px; color: #DCE8F4; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.card-large::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%23ffffff' fill-opacity='.14'/%3E%3C/svg%3E"); border-radius: 50%; pointer-events: none; }
.card-large h3 { color: #fff; }
.core-grid .card-large { padding: 40px 32px; }
.core-grid .card-large h3 { font-size: 1.45rem; }
.card-large .text-link { color: #fff; }
.card-large .text-link:hover { color: #CFE2F5; }
.card-large h3 { font-size: 1.6rem; font-weight: 800; }
.card-large p { font-size: 1.05rem; }
.card-large .icon { width: 60px; height: 60px; background: rgba(255,255,255,.12); color: #fff; border-radius: 14px; }
.card-large .icon svg { width: 30px; height: 30px; }
.tier-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.tier-label + .grid { margin-bottom: 0; }
.tier-gap { height: 40px; }

/* Tier 2 — service (small) */
.card-small { padding: 26px 22px; border-radius: 14px; }
.card-small h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4em; }
.card-small p { font-size: .93rem; line-height: 1.55; color: var(--muted); }
.card-small .icon { width: 40px; height: 40px; margin-bottom: 16px; border-radius: 10px; }
.card-small .icon svg { width: 20px; height: 20px; }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 18px; background: var(--deep); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.proof.container { max-width: var(--container); width: calc(100% - 2 * var(--gutter)); padding: 0; }
.proof-item { padding: 40px 44px; position: relative; }
.proof-item + .proof-item::before { content: ""; position: absolute; left: 0; top: 40px; bottom: 40px; width: 1px; background: rgba(255,255,255,.15); }
.proof-item strong { display: block; font-size: clamp(2.4rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; margin-bottom: 12px; }
.proof-item .pf-icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; margin-bottom: 12px; }
.proof-item .pf-icon svg { width: 26px; height: 26px; }
.proof-item .pf-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8FC1EE; margin-bottom: 10px; }
.proof-item .pf-sub { display: block; font-size: .98rem; line-height: 1.55; color: #C9DCEF; max-width: 32ch; }

/* Why */
.why > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--mid); }
.why h3 { font-size: 1.2rem; }
.why p { color: var(--text); }

/* Featured work */
.feature { border: 1px solid var(--line); border-radius: 18px; padding: 48px 52px; border-left: 5px solid var(--mid); background: #fff var(--dots) right -60px top -60px / 18px 18px no-repeat; box-shadow: var(--shadow-md); }
.feature h3 { font-size: 1.5rem; }
.feature p { max-width: 75ch; }

/* Tech labels */
.tech-group + .tech-group { margin-top: 32px; }
.tech-group h3 { font-size: 1.05rem; margin-bottom: 14px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font-size: .9rem; color: var(--deep); font-weight: 500; box-shadow: 0 1px 2px rgba(16,42,67,.04); }
.section-tint .tags li { background: #fff; }

/* ---------- CTA band ---------- */

/* ---------- Services page ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pill-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--deep); font-weight: 500; font-size: .95rem; background: #fff; }
.pill-nav a:hover { border-color: var(--mid); background: var(--tint); }
.pill-nav li:nth-child(-n+3) a { background: var(--tint-strong); border-color: #C9DAEC; font-weight: 700; }

.svc { scroll-margin-top: 96px; }
.svc + .svc { margin-top: 24px; }
.svc-large { background: var(--tint-strong); border: 1px solid #C9DAEC; border-radius: 18px; box-shadow: var(--shadow-sm); padding: 48px; display: grid; grid-template-columns: 1fr 200px; gap: 48px; }
.svc-large h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
.svc-large .svc-art { align-self: start; }
.svc-small { border: 1px solid var(--line); border-radius: 14px; padding: 32px 36px; background: #fff; box-shadow: var(--shadow-sm); }
.svc-small h2 { font-size: 1.35rem; font-weight: 700; color: var(--mid); }
.svc p { max-width: 75ch; }
.kv { margin: 22px 0 0; display: grid; gap: 12px; }
.kv div { padding-left: 14px; border-left: 3px solid var(--mid); }
.kv div { background: rgba(255,255,255,.6); padding: 10px 14px; border-radius: 0 8px 8px 0; max-width: 78ch; }
.svc-small .kv div { background: var(--tint); }
.kv dt { display: inline; font-weight: 700; color: var(--deep); }
.kv dt::after { content: ":\00a0"; }
.kv dd { display: inline; margin: 0; }
.svc-art { width: 100%; max-width: 200px; aspect-ratio: 1; background: #fff; border-radius: 12px; display: grid; place-items: center; color: var(--mid); }
.svc-art svg { width: 70%; height: 70%; }
.tier-heading { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; }
.tier-heading .tier-label { margin: 0; }
.tier-block + .tier-block { margin-top: 64px; }

/* Services page */
.sv-anchor { scroll-margin-top: 88px; }
.sv-hero { background: var(--tint) var(--dots); border-bottom: 1px solid var(--line); padding-bottom: 56px; }
.sv-hero h1 { max-width: 22ch; }
.sv-core { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.sv-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sv-head .icon { margin: 0; background: var(--tint); }
.sv-head .group-label { margin: 0; }
.section-tint .sv-head .icon { background: #fff; }
.sv-core h2 { font-size: clamp(1.7rem, 3vw, 2rem); }
.sv-ov { font-size: 1.08rem; color: #3E4A57; }
.sv-sub { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mid); margin: 26px 0 14px; }
.sv-ticks { grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.sv-extra { margin-top: 18px; color: #5a6470; font-size: .95rem; }
.sv-side { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.sv-side p { margin: 4px 0 0; color: #3E4A57; font-size: .97rem; }
.sv-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.sv-card .icon { background: var(--tint); margin-bottom: 14px; }
.sv-card h3 { font-size: 1.2rem; }
.sv-card p { color: #3E4A57; }
.sv-card .sv-ticks { grid-template-columns: 1fr; margin: 6px 0 18px; }
.sv-eng { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; }

/* Partner With Us page */
.ag-opts { display: grid; gap: 12px; }
.ag-opts li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #5a6470; }
.ag-opts li::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #fff center / 12px no-repeat; }
.ag-opts .no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23B42318' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ag-opts .yes { color: var(--deep); background: #fff; border-radius: 10px; padding: 10px 12px; margin: 4px -12px 0; box-shadow: var(--shadow-sm); }
.ag-opts .yes::before { background: var(--mid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ag-cap { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-sm); }
.ag-q { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--mid); border-radius: 14px; padding: 30px 32px; box-shadow: var(--shadow-sm); }
.ag-q h3 { font-size: 1.2rem; }
.ag-q p { color: #3E4A57; margin: 0; }
.ag-hows { gap: 20px; }
.ag-how { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.ag-how .icon { margin: 0; flex-shrink: 0; background: var(--tint); }
.ag-how h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ag-how p { color: #3E4A57; margin: 0; font-size: .97rem; }
.section-tint .tl-dot { border-color: var(--tint); }
.section-tint .tl-icon { background: #fff; }

/* ---------- Agencies ---------- */
.problem { background: var(--tint); border-radius: 14px; padding: 48px; }
.problem p { font-size: 1.12rem; max-width: 70ch; }
.deliver-list { display: grid; gap: 20px; max-width: 80ch; }
.deliver-list p strong { color: var(--deep); }
.qa { display: grid; gap: 24px; }
.qa-item { border: 1px solid var(--line); border-radius: 14px; padding: 32px 36px; background: #fff; box-shadow: var(--shadow-sm); }
.qa-item h3 { font-size: 1.35rem; color: var(--deep); margin-bottom: 14px; }
.qa-item h3::before { content: "“"; color: var(--mid); }
.qa-item h3::after { content: "”"; color: var(--mid); }
.points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.points h3 { font-size: 1.1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; }
.steps li strong { display: block; color: var(--deep); margin-bottom: 6px; }
.steps-note { margin-top: 36px; color: var(--muted); max-width: 70ch; }

/* ---------- How we work: table ---------- */
.models { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.models th, .models td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.models thead th { background: var(--tint-strong); color: var(--deep); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.models tbody th { color: var(--deep); font-size: 1.05rem; }
.models tbody tr:last-child th, .models tbody tr:last-child td { border-bottom: 0; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1.1rem; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; font: inherit; font-weight: 600; color: var(--deep); padding: 20px 48px 20px 0; cursor: pointer; position: relative; min-height: 56px; line-height: 1.45; }
.faq-q::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--mid); border-bottom: 2.5px solid var(--mid); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-q:hover { color: var(--mid); }
.faq-a { padding: 0 0 22px; max-width: 75ch; }
.faq-a[hidden] { display: none; }

/* ---------- Our work ---------- */
.case-card { border: 1px solid var(--line); border-radius: 18px; padding: 44px 48px; border-left: 5px solid var(--mid); box-shadow: var(--shadow-md); background: #fff; }
.case-card h2, .case-card h3 { font-size: 1.5rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.pills li { font-size: .85rem; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--deep); }
.pills li b { font-weight: 700; }
.case-body { display: grid; grid-template-columns: 200px 1fr; gap: 0 48px; margin-top: 40px; }
.case-body h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); padding-top: 28px; border-top: 1px solid var(--line); margin: 0; }
.case-body > div { padding-top: 28px; border-top: 1px solid var(--line); padding-bottom: 28px; max-width: 75ch; }
.case-close { margin-top: 12px; font-style: italic; color: var(--muted); }
.capability { background: var(--tint-strong); border-radius: 14px; padding: 48px; }
.capability p { max-width: 75ch; }
.capability .note { border-left: 3px solid var(--mid); padding-left: 16px; margin-top: 24px; color: var(--deep); }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.photo-slot { aspect-ratio: 1; width: 100%; background: var(--tint-strong); border: 2px dashed #9DB8D5; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--deep); font-size: .9rem; }
.photo-slot strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.founder-photo { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
blockquote.quote { margin: 24px 0 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--mid); font-size: 1.12rem; color: var(--deep); font-style: italic; }
.capacity { max-width: 72ch; }
.profile-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.profile-links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; min-height: 44px; }
.profile-links svg { width: 22px; height: 22px; }

.mv-section { padding-top: 8px; padding-bottom: var(--section); }
.ab-hero { background: var(--tint) var(--dots); border-bottom: 1px solid var(--line); padding-bottom: 64px; }
.ab-hero h1 { max-width: 20ch; }
.ab-who { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.ab-who p { color: #3E4A57; font-size: 1.05rem; }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ab-panel { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); border-radius: 14px; padding: 32px; box-shadow: var(--shadow-sm); }
.ab-panel h2 { font-size: 1.5rem; }
.ab-panel p { color: #3E4A57; }
.ab-li { margin-top: 8px; }
.ab-li svg { width: 20px; height: 20px; }
.mv-quote { margin: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--mid); border-radius: var(--radius); padding: 40px 34px 34px; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.mv-quote::before { content: "“"; position: absolute; left: 22px; top: -14px; font-size: 8rem; line-height: 1; color: rgba(46,117,182,.12); font-family: Georgia, serif; }
.mv-quote blockquote { margin: 0; position: relative; flex-grow: 1; }
.mv-quote blockquote p { color: #3E4A57; margin: 0; }
.mv-quote figcaption { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.mv-quote figcaption strong { display: block; font-size: 1.05rem; color: var(--deep); }
.mv-quote figcaption span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.mv-card { padding: 36px 34px; border-top: 4px solid var(--mid); }
.mv-card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.mv-card p { flex-grow: 0; color: #3E4A57; }
.mv-card p + p { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-hero { background: var(--tint) var(--dots); padding: 88px 0 var(--section); border-bottom: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: center; }
.contact-intro h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.12; margin-bottom: 28px; }
.contact-intro p { font-size: 1.12rem; color: #46525F; max-width: 56ch; }
.contact-info { list-style: none; margin: 36px 0 0; padding: 32px 0 0; border-top: 1px solid #C9DAEC; display: grid; gap: 14px; }
.contact-info li { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.contact-info .ci-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--mid); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci-icon svg { width: 22px; height: 22px; }
.contact-info li > span:last-child { min-width: 0; }
.contact-info .ci-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.contact-info a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-info a:hover { text-decoration: underline; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow-md); }
.form-card .form-row { margin-bottom: 20px; }
.form-row .label { display: block; font-weight: 600; color: var(--deep); margin-bottom: 6px; font-size: .97rem; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #8A96A3; }
.phone-field { display: flex; border: 1.5px solid #B8C9DB; border-radius: 8px; background: #fff; overflow: hidden; }
.phone-field:focus-within { border-color: var(--mid); box-shadow: 0 0 0 3px rgba(46,117,182,.25); }
.form-row .phone-field select { width: auto; flex: 0 0 auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; background-color: var(--tint); padding-right: 34px; font-weight: 600; color: var(--deep); }
.form-row .phone-field input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.form-row .phone-field select:focus, .form-row .phone-field input:focus { box-shadow: none; }
.has-error .phone-field { border-color: var(--error); }
.file-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; }
.file-input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form-row .file-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border: 1.5px dashed #9DB8D5; border-radius: 10px; background: var(--tint); color: var(--deep); font-weight: 600; cursor: pointer; margin: 0; transition: border-color .15s, background-color .15s; }
.file-btn svg { width: 20px; height: 20px; color: var(--mid); }
.form-row .file-btn:hover { border-color: var(--mid); background: var(--tint-strong); }
.file-field:focus-within .file-btn { outline: 3px solid var(--mid); outline-offset: 2px; }
.file-count { font-size: .9rem; color: var(--muted); font-weight: 600; }
.file-names { font-size: .88rem; color: var(--deep); margin: 8px 0 0; overflow-wrap: anywhere; }
.file-names:empty { display: none; }
.file-note { font-size: .86rem; color: var(--muted); line-height: 1.5; margin: 10px 0 0; }
.has-error .file-btn { border-color: var(--error); }
.btn-block { width: 100%; margin-top: 6px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 600; color: var(--deep); margin-bottom: 6px; font-size: .97rem; }
.form-row .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; min-height: 48px; border: 1.5px solid #B8C9DB; border-radius: 8px; background: #fff;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232E75B6' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--mid); box-shadow: 0 0 0 3px rgba(46,117,182,.25); }
.form-row.has-error input, .form-row.has-error select, .form-row.has-error textarea { border-color: var(--error); }
.error-text { color: var(--error); font-size: .9rem; margin-top: 6px; display: none; font-weight: 500; }
.has-error .error-text { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 8px; display: none; }
.form-status.ok { display: block; background: #E8F5EC; color: #135c2b; border: 1px solid #A9D9B8; font-weight: 600; }
.form-status.err { display: block; background: #FDECEC; color: var(--error); border: 1px solid #F3B8B5; }
/* Thank-you popup after the contact form is sent */
.success-dialog { width: min(420px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 36px 32px 30px; text-align: center; box-shadow: 0 24px 60px rgba(16,42,67,.25); color: var(--text); }
.success-dialog::backdrop { background: rgba(16,42,67,.5); }
.success-dialog .sd-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #E8F5EC; color: #1d7a3d; }
.success-dialog .sd-icon svg { width: 32px; height: 32px; }
.success-dialog h2 { font-size: 1.6rem; color: var(--deep); margin: 0 0 10px; }
.success-dialog p { color: var(--muted); line-height: 1.6; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C3D3E4; padding: 72px 0 0; font-size: .95rem; }
.site-footer .logo-mark rect { fill: #2E75B6; }
.site-footer .logo-name { color: #fff; }
.site-footer .logo-sub { color: #8FB6DC; }
.footer-grid { display: grid; grid-template-columns: .9fr 1.3fr .9fr 1.3fr; gap: 48px; }
.nf-brand .logo { margin-bottom: 20px; }
.site-footer .nf-social { display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; }
.nf-social svg { width: 20px; height: 20px; }
.site-footer .nf-social:hover { background: var(--mid); color: #fff; text-decoration: none; }
.site-footer h2 { position: relative; padding-bottom: 12px; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--mid); border-radius: 2px; }
.nf-contact { gap: 12px !important; }
.nf-contact li { display: flex; align-items: center; gap: 12px; color: #C3D3E4; }
.nf-ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; color: #8FC1EE; }
.nf-ic svg { width: 18px; height: 18px; }
.nf-contact a { overflow-wrap: anywhere; }
.site-footer .nf-btn { margin-top: 22px; min-height: 44px; color: var(--deep); }
.site-footer .nf-btn:hover { color: var(--deep); text-decoration: none; }
.site-footer h2 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer .logo { margin-bottom: 14px; gap: 12px; text-decoration: none !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #C3D3E4; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: #A9BED4; }
.footer-bar { margin-top: 40px; padding: 0 0 30px; color: #8FA8C2; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bar { display: block; line-height: 1.8; text-align: left; color: #fff; font-size: .98rem; }
.footer-bar .sep { color: #fff; margin: 0; }
.footer-bar a { display: inline; min-height: 0; color: #7FB2F0; }
.footer-bar a:hover { color: #fff; }
.legal .flag-note { max-width: 70ch; font-size: 1rem; }
.profile-links svg { flex-shrink: 0; }
.site-footer .footer-social { gap: 10px; }
.footer-social svg { width: 24px; height: 24px; flex-shrink: 0; color: #fff; }
.site-footer .footer-social { min-width: 44px; min-height: 44px; }
.profile-links .icon-only { min-width: 44px; justify-content: flex-start; }
.profile-links .icon-only svg { width: 28px; height: 28px; }


/* ---------- Fade on scroll ---------- */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transform: none; transition: none; } }

/* ---------- Breakpoints ---------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mv-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mv-grid .mv-quote { grid-column: 1 / -1; }
  .grid-5 { grid-template-columns: repeat(6, 1fr); }
  .grid-5 > * { grid-column: span 2; }
  .grid-5 > :nth-child(4) { grid-column: 1 / span 3; }
  .grid-5 > :nth-child(5) { grid-column: 4 / span 3; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 12px; }
  .main-nav ul { gap: 0; }
  .main-nav a:not(.btn) { padding: 10px 8px; font-size: .93rem; }
}

@media (max-width: 900px) {
  :root { --section: 56px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  /* No blur on small screens: backdrop-filter would trap the fixed menu inside the header bar. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  /* Side drawer: slides in from the right over a dimmed page. */
  .main-nav { position: fixed; top: 72px; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 32px; gap: 16px; overflow-y: auto; display: flex; border-top: 1px solid var(--line); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(16,42,67,.14); transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility 0s linear .28s; }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
  body::after { content: ""; position: fixed; inset: 72px 0 0 0; background: rgba(16,42,67,.45); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; z-index: 99; }
  body.nav-open::after { opacity: 1; visibility: visible; transition: opacity .28s ease, visibility 0s; }
  .main-nav ul { flex-direction: column; }
  .main-nav a:not(.btn) { display: flex; font-size: 1.1rem; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--mid); padding-left: 14px; }
  .main-nav .btn { width: 100%; min-height: 52px; }
  .nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: start; max-width: 340px; }
  .hero:has(.hero-art)::before { width: 100%; height: 46%; top: auto; bottom: 0; border-radius: 48px 48px 0 0; }
  .proof { grid-template-columns: 1fr; }
  .proof-item { padding: 30px 32px; }
  .proof-item + .proof-item::before { left: 32px; right: 32px; top: 0; bottom: auto; width: auto; height: 1px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > *, .grid-5 > :nth-child(4), .grid-5 > :nth-child(5) { grid-column: auto; }
  .svc-large { grid-template-columns: 1fr; padding: 36px 28px; gap: 0; }
  .svc-large .svc-art { display: none; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .process-wrap { grid-template-columns: 1fr; gap: 40px; }
  .process-intro { position: static; }
  .case-feature { grid-template-columns: 1fr; gap: 32px; }
  .work-split { grid-template-columns: 1fr; gap: 20px; }
  .ab-who, .ab-two { grid-template-columns: 1fr; gap: 32px; }
  .sv-core { grid-template-columns: 1fr; gap: 28px; }
  .mv-grid.grid-3 { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact-hero { padding-top: 56px; }
  .founder .photo-wrap { max-width: 300px; }
  .case-body { grid-template-columns: 1fr; }
  .case-body h2 { padding-top: 24px; }
  .case-body > div { border-top: 0; padding-top: 10px; }
  .points { grid-template-columns: 1fr; }
  .router.grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Engagement table -> stacked cards. Never sideways scroll. */
  .models, .models tbody, .models tr, .models th, .models td { display: block; width: 100%; }
  .models { border: 0; border-radius: 0; overflow: visible; }
  .models thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .models tbody { display: grid; gap: 16px; }
  .models tr { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .models tbody th { background: var(--tint-strong); font-size: 1.1rem; }
  .models td { border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .models td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .models tbody tr td:last-child { border-bottom: 0; }
  .models tbody tr:last-child th { border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 44px; }
  body { font-size: 16.5px; }
  .hero { padding: 48px 0 52px; }
  .hero-text { padding: 56px 0 48px; }
  .hero .lead { font-size: 1.08rem; }
  .page-intro { padding: 52px 0 32px; }
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .proof-item { padding: 26px 22px; }
  .proof-item + .proof-item::before { left: 22px; right: 22px; }
  .hero:has(.hero-art)::before { height: 40%; }
  .card-large { padding: 30px 24px; }
  .card-large h3 { font-size: 1.35rem; }
  .svc-large, .svc-small, .problem, .capability, .case-card, .feature, .qa-item { padding: 26px 20px; }
  .why > div { padding: 26px 22px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { padding: 4px 0 0 64px; min-height: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn-row .text-link { justify-content: center; }
  .cta-band { padding: 56px 0; }
  form .btn { width: 100%; }
  .form-card { padding: 26px 18px; }
  .cd-facts, .cd-facts:has(> div:nth-child(3)) { grid-template-columns: 1fr; }
  .sv-ticks { grid-template-columns: 1fr; }
  .cd-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: 20px minmax(0, 1fr); gap: 0 16px; padding-bottom: 32px; }
  .tl-icon { display: none; }
  .core-white .card-large h3 { min-height: 0; }
  .group-label-gap { margin-top: 36px; }
  .help-sec { padding-top: 48px; }
  .hero-trust { gap: 10px 20px; margin-top: 24px; }
  .mv-card { padding: 28px 22px; }
  .mv-quote { padding: 32px 22px 26px; }
  .contact-info li { padding: 12px 14px; }
}

/* ---------- Consistent section spacing (keep at the end of this file) ----------
   Every top-level section and page header uses the same space above and below: var(--section)
   (96px desktop, 64px tablet, 52px phone). When two white sections sit next to each other,
   the second one drops its top space so the gap between them stays one equal step. */
main .hero, main .page-intro, main .contact-hero, main .section, main .section-tight, main .cta-band {
  padding-top: var(--section);
  padding-bottom: var(--section);
}
main :is(.section, .section-tight):not(.section-tint) + :is(.section, .section-tight):not(.section-tint) { padding-top: 0; }
.cd-body > .cd-block:last-child { margin-bottom: 0; }
.contact-layout { align-items: start; }

/* ---------- Legal pages (privacy, terms) ---------- */
main .legal-body { padding-top: 0; }
main .page-intro.legal:has(+ .legal-body) { padding-bottom: 8px; }
.legal-body .container > * { max-width: 72ch; }
.legal-body h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; color: var(--deep); }
.legal-body h3 { font-size: 1.05rem; margin: 1.6em 0 .4em; color: var(--navy); }
.legal-body p, .legal-body li { color: var(--text); line-height: 1.7; }
.legal-body ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .4em; }
.legal-body code { font-size: .9em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .main-nav, .nav-open .main-nav, body::after, body.nav-open::after { transition: none; }
}

/* ==========================================================================
   Homepage (2026 redesign). Every class is prefixed hm- so other pages are untouched.
   Dark navy hero, industries strip, bento services, case cards, 4-step process, bright CTA.
   ========================================================================== */
.hm-hero { background: radial-gradient(900px 420px at 88% 0%, rgba(46,117,182,.22), transparent 60%), linear-gradient(180deg, #0B2238 0%, #0F2D4A 100%); color: #BFD2E6; position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 72px; }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%); mask-image: linear-gradient(180deg, #000 30%, transparent 90%); }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
/* Hero constellation: a <canvas> drawn by main.js (floating points that link up, connect to a central hub
   and reach toward the mouse). Shows a still frame for visitors who ask for reduced motion. */
.hm-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.2vw, 3.3rem); line-height: 1.08; margin: 0 0 22px; text-wrap: balance; }
.hm-lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.65; color: #BFD2E6; max-width: 56ch; margin-bottom: 36px; }
.hm-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hm-btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.06); }



/* Section spacing (2026 redesign, all pages): 80px desktop, 56px tablet, 44px phone via --section. */
.section-head { margin-bottom: 36px; }
@media (max-width: 600px) { .section-head { margin-bottom: 24px; } }

/* 2026 redesign: card, band and case-study styling shared by every page. */
.card, .why-card, .tech-tile { border-radius: 16px; border-color: #E2E8F0; }
.help-card { transition: border-color .2s, box-shadow .2s, transform .2s; }
.help-card:hover, .why-card:hover { border-color: #BFD3E8; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-card { transition: border-color .2s, box-shadow .2s, transform .2s; }
.icon { border-radius: 12px; }

.proof { background: radial-gradient(600px 260px at 90% 0%, rgba(90,162,230,.25), transparent 60%), linear-gradient(135deg, #0B2238, #1F4E79); border-radius: 20px; }
.proof::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }

.hm-page .core-white .card-large { border-top: 1px solid #E2E8F0; }
.hm-page .core-white .card-large:first-child { background: linear-gradient(135deg, #0F2D4A, var(--deep)); border: 0; color: #BFD2E6; }
.hm-page .core-white .card-large:first-child h3 { color: #fff; }
.hm-page .core-white .card-large:first-child p { color: #BFD2E6; }
.hm-page .core-white .card-large:first-child .icon { background: rgba(255,255,255,.1); color: #9CCBFF; }
.hm-page .core-white .card-large:first-child .text-link { color: #9CCBFF; }
.hm-page .core-white .card-large:first-child .text-link:hover { color: #fff; }
.hm-page .core-white .card-large:first-child::after { display: block; }


.feature { border: 1px solid #E2E8F0; border-radius: 20px; background: #fff; box-shadow: var(--shadow-md); }
.case-highlights { background: linear-gradient(135deg, #0F2D4A, var(--deep)); border-radius: 16px; }
.case-highlights h4 { color: #8FC1EE; }
.hl-icon { background: rgba(255,255,255,.1); color: #9CCBFF; }
.hl-key { color: #9FB6CD; }
.hl-val { color: #fff; }

.tech-tile { transition: border-color .2s, box-shadow .2s; }
.tech-tile:hover { border-color: #BFD3E8; box-shadow: var(--shadow-md); }


@media (max-width: 1000px) {
  .hm-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .hm-hero { padding: 40px 0 44px; }
  .hm-hero-grid { gap: 28px; }
  .hm-hero h1 { font-size: 2.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .help-card:hover, .why-card:hover { transform: none; }
}


/* ==========================================================================
   2026 redesign: dark navy page headers on every page (same look as the homepage hero).
   Pure styling: no page wording is changed.
   ========================================================================== */
main .page-intro, main .hero-tint, main .contact-hero { background: radial-gradient(900px 420px at 88% 0%, rgba(46,117,182,.22), transparent 60%), linear-gradient(180deg, #0B2238 0%, #0F2D4A 100%); border-bottom: 0; color: #BFD2E6; position: relative; overflow: hidden; isolation: isolate; }
main .page-intro::before, main .hero-tint::before, main .contact-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%); mask-image: linear-gradient(180deg, #000 30%, transparent 90%); }
main :is(.page-intro, .hero-tint, .contact-hero) h1 { color: #fff; }
main :is(.page-intro, .hero-tint, .contact-intro) p, main .hero-tint .lead { color: #BFD2E6; }
main :is(.page-intro, .hero-tint) .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
main :is(.page-intro, .hero-tint) .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.06); }
main .page-intro .text-link, main .page-intro .text-link:hover { color: #9CCBFF; }
main .page-intro time { color: #BFD2E6; }
main .page-intro .case-label { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #9CCBFF; }
main .page-intro .cd-facts { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); box-shadow: none; }
main .page-intro .cd-facts > div + div { border-color: rgba(255,255,255,.14); }
main .page-intro .cd-facts .hl-key { color: #9FB6CD; }
main .page-intro .cd-facts .hl-val { color: #fff; }
main .page-intro .pill-nav a, main .page-intro .pill-nav li:nth-child(-n+3) a { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
main .page-intro .pill-nav a:hover { background: rgba(255,255,255,.15); border-color: #9CCBFF; color: #fff; }
main .contact-info { border-top-color: rgba(255,255,255,.15); }
main .page-intro.legal:has(+ .legal-body) { padding-bottom: var(--hero-pad); }
main .page-intro.legal + .legal-body { padding-top: var(--section); }
main .contact-info li { color: var(--text); }

/* ---------- CTA band (2026 redesign, "Living Gradient"): brand navy / deep / mid blue slowly flowing,
   with a soft tint glow drifting across. Text left, button right; stacks on phones. Motion stops for reduced motion. */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(120deg, #163B5E, #1F4E79, #2E75B6, #1F4E79, #163B5E, #2E75B6, #163B5E); background-size: 400% 400%; animation: cta-flow 14s ease-in-out infinite; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(238,244,250,.08) 1px, transparent 1px); background-size: 20px 20px; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; top: -220px; left: -120px; background: radial-gradient(circle, rgba(238,244,250,.16), transparent 65%); animation: cta-glow 12s ease-in-out infinite alternate; pointer-events: none; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-copy { max-width: 640px; }
.cta-band h2 { color: #fff; margin: 0 0 12px; }
.cta-band p { color: #EEF4FA; opacity: .92; font-size: 1.08rem; margin: 0; }
.cta-band .btn-row { flex-shrink: 0; }
.cta-band .btn-white { color: var(--deep); box-shadow: 0 6px 20px rgba(0,0,0,.2); gap: 10px; padding-left: 26px; padding-right: 26px; transition: transform .2s, gap .2s, background .2s; }
.cta-band .btn-white::after { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%231F4E79' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.cta-band .btn-white:hover { gap: 14px; }
@keyframes cta-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cta-glow { to { transform: translate(780px, 180px); } }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: stretch; } .cta-band .btn-row .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cta-band, .cta-band::after { animation: none; } }

/* ==========================================================================
   STANDARD SPACING SCALE (2026 redesign). One value per kind of element, on every page.
   Sections 80/56/44 (--section) · section heading → content 40/28 · two-column layouts 56/40
   large panels 40/26 · cards 28/22 · between cards 24 · icon → heading 16 · card heading → text 8
   ========================================================================== */
:root { --sp-xs: 8px; --sp-sm: 16px; --sp-md: 24px; --sp-head: 40px; --sp-layout: 56px; --card-pad: 28px; --panel-pad: 40px; }
@media (max-width: 900px) { :root { --sp-layout: 40px; } }
@media (max-width: 600px) { :root { --sp-head: 28px; --card-pad: 22px; --panel-pad: 26px; } }

/* section heading → content */
.section-head { margin-bottom: var(--sp-head); }

/* cards: one inner padding */
.card, .help-card, .card-small, .why-card, .ag-cap, .ag-how, .cd-res, .sv-side, .ab-panel, .case-highlights, .skill-card, .svc-small, .tech-tile { padding: var(--card-pad); }
/* large panels: one inner padding */
.card.card-large, .core-grid .card-large, .feature, .mv-card, .mv-quote, .form-card, .svc-large, .proof-item { padding: var(--panel-pad); }

/* gaps between cards and list items */
.grid, .ag-hows, .case-stack { gap: var(--sp-md); }
.ag-how { gap: var(--sp-sm); }
.contact-info { gap: var(--sp-sm); }

/* two-column layouts */
.process-wrap, .contact-layout, .ab-who, .sv-core, .hm-hero-grid { gap: var(--sp-layout); }

/* icon → heading, heading → text */
.icon { margin-bottom: var(--sp-sm); }
.card h3, .help-card h3, .why-card h3, .ag-cap h3, .ag-how h3, .cd-res h3, .sv-side h3, .skill-card h3, .mv-card h3, .timeline h3 { margin-bottom: var(--sp-xs); }
.help-head { margin-bottom: var(--sp-xs); }
.sv-card h3, .work-split h3 { margin-bottom: var(--sp-xs); }
/* large panel titles (e.g. featured case study) → text: 12px */
.case-feature h3, .case-feature .case-title { margin-bottom: 12px; }

/* ---------- Standard spacing: heroes (top dark area of every page) and inside sections ----------
   Hero top/bottom 72/56/40 · label or back link → headline 16 · headline → text 20 (16 phone)
   text → buttons / jump links / fact box / contact details 32 (24 phone)
   Section heading → its text 16 · section text → button 32 (24 phone) */
:root { --hero-pad: 72px; --hero-h1: 20px; --hero-block: 32px; }
@media (max-width: 900px) { :root { --hero-pad: 56px; } }
@media (max-width: 600px) { :root { --hero-pad: 40px; --hero-h1: 16px; --hero-block: 24px; } }

main .hm-hero, main .page-intro, main .hero-tint, main .contact-hero { padding-top: var(--hero-pad); padding-bottom: var(--hero-pad); }
main :is(.hm-hero, .page-intro, .hero-tint, .contact-hero) h1 { margin: 0 0 var(--hero-h1); }
main :is(.hm-hero, .page-intro, .hero-tint, .contact-intro) p { margin: 0 0 16px; }
main :is(.hm-hero, .page-intro, .hero-tint, .contact-intro) p:last-child { margin-bottom: 0; }
main .page-intro .case-label { margin-bottom: 16px; }
main :is(.hm-hero, .page-intro, .hero-tint, .contact-intro) :is(.btn-row, .sv-jump, .cd-facts) { margin-top: var(--hero-block); }
main .contact-info { margin-top: var(--hero-block); padding-top: var(--hero-block); }
.hm-lead { margin-bottom: 0; }

/* inside sections: heading → text, text → button */
main section h2 { margin-bottom: 16px; }
main .section-head p, main .process-intro p { margin-bottom: 0; }
main .process-intro .btn { margin-top: var(--hero-block); }
.legal-body h2 { margin-bottom: 16px; }
main .process-intro h2, main .cta-band h2, main .mv-card h2, main .cd-block h2 { margin-bottom: 16px; }
main .hero-tint .lead { margin-bottom: 0; }
.legal-body h3 { margin-bottom: var(--sp-xs); }

/* ==========================================================================
   Professional theme refinements (2026 redesign, approved by the client): calmer type, one 12px radius,
   no coloured card stripes, no hover lift, no card/band dot textures, lighter tint, slower CTA motion
   ========================================================================== */
:root { --text: #2B3440; --muted: #5E6B7A; --tint: #F4F7FB; --line: #E3E9F0; --radius: 12px;
        --shadow-sm: 0 1px 2px rgba(16,42,67,.05); --shadow-md: 0 4px 16px rgba(16,42,67,.07); }
body { color: var(--text); }
/* typography: bold not extra-bold, calmer tracking */
h1 { font-weight: 700; letter-spacing: -0.022em; }
h2 { font-weight: 700; letter-spacing: -0.018em; }
h3, h4 { font-weight: 600; letter-spacing: -0.005em; }
.card-large h3, .hm-tile-sap h3, .proof-item strong { font-weight: 700; }
.eyebrow, .group-label, .pf-label, .hl-key, .ci-label, .case-label, .tier-label, .sv-sub { letter-spacing: .12em; font-weight: 600; }
/* one corner radius everywhere */
.card, .help-card, .why-card, .ag-cap, .ag-how, .ag-q, .cd-res, .sv-side, .sv-card, .ab-panel, .case-highlights, .skill-card, .svc-small, .svc-large,
.tech-tile, .feature, .case-card, .mv-card, .mv-quote, .form-card, .proof, .contact-info li, .cd-facts, .work-note { border-radius: 12px; }
.icon, .hl-icon, .tl-icon, .ci-icon, .pf-icon { border-radius: 8px; }
.btn { border-radius: 6px; font-weight: 600; }
.pill-nav a, .case-tags li, .tags li { border-radius: 6px; }
/* cards: one thin border + soft shadow, no coloured stripes, no jumping */
.core-white .card-large, .skill-card, .cd-res, .why > div, .sv-side, .sv-card, .ag-cap, .ab-panel, .mv-quote, .mv-card { border-top: 1px solid var(--line); }
.feature, .case-card, .ag-q { border-left: 1px solid var(--line); }
.hm-page .core-white .card-large:first-child { border: 0; }
.card, .help-card, .why-card, .tech-tile, .ag-how, .ag-cap, .cd-res, .sv-card, .sv-side { box-shadow: var(--shadow-sm); }
a.card:hover, .help-card:hover, .why-card:hover, .router .card:hover { transform: none; box-shadow: var(--shadow-md); border-color: #C9D6E4; }
.feature { background: #fff; box-shadow: var(--shadow-md); }
/* cleaner backgrounds: no dot textures on cards, bands or tinted heroes */
.proof::after, .cta-band::before, .card-large::after, .hm-page .core-white .card-large:first-child::after { display: none; }
.section-tint { background: var(--tint); }
.proof { background: linear-gradient(135deg, #12304D, #1F4E79); }
/* calmer motion on the call-to-action band */
.cta-band { animation-duration: 30s; }
.cta-band::after { opacity: .6; animation-duration: 24s; }
/* header: quieter nav, crisp divider */
.site-header { border-bottom: 1px solid var(--line); }
.main-nav a:not(.btn) { font-weight: 500; color: #44505E; }

/* Homepage hero: the constellation canvas fills the whole hero behind the text (drawn by main.js). */
.hm-hero { min-height: 540px; display: flex; align-items: center; }
.hm-hero > .container { width: 100%; }
.hm-hero-grid { grid-template-columns: minmax(0, 1fr); }
.hm-hero-copy { max-width: none; position: relative; }
/* full-width hero text, as on the previous homepage */
.hm-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); text-wrap: wrap; }
.hm-hero .hm-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: none; }
.hm-constel-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
@media (max-width: 1000px) { .hm-hero { min-height: 0; } }

/* ---------- Hero heights: three tiers (desktop and laptop only; phones and tablets follow the content) ----------
   1. Homepage hero: 540px (set on .hm-hero)
   2. Main inner pages (Services, Partner With Us, Case Studies, About, every case study, blog post): at least 420px
   3. Utility pages (Privacy, Terms, Blog, Page not found): 340px
   Contact keeps its form in the dark area, so its height follows the form. Content is centred vertically. */
@media (min-width: 901px) {
  main .page-intro, main .hero-tint { min-height: 420px; display: flex; align-items: center; }
  main .page-intro > .container, main .hero-tint > .container { width: 100%; }
  main .page-intro.legal, main .page-intro.pb-section { min-height: 340px; }
  /* every case study page: one matching header height (they carry a title, summary and fact box) */
  main .page-intro.cd-hero { min-height: 620px; }
}
@media (max-width: 600px) { .hm-hero h1 { font-size: 2.15rem; } }
/* page header headlines: comfortable reading width (about 16em, ~860px on desktop) with evenly balanced lines.
   The old ~22-character cap forced 3 lines; no cap at all made long headlines one very long line. */
main :is(.page-intro, .hero-tint, .contact-hero) h1 { max-width: 16em; text-wrap: balance; }
/* jump links in the Services header: the same hover on all six (SAP, Mobile, Web were missing it) */
main .page-intro .pill-nav li a:hover, main .page-intro .pill-nav li a:focus-visible { background: rgba(255,255,255,.15); border-color: #9CCBFF; color: #fff; }

/* Homepage partner letter section: copy and key facts on the left, the full letter page on the right */
.pl-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--sp-layout); align-items: center; }
.pl-copy p { color: var(--text); font-size: 1.08rem; max-width: 56ch; }
.pl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; }
.pl-facts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pl-facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pl-facts dd { margin: 0; font-weight: 600; color: var(--deep); }
.pl-doc { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.pl-doc a { display: block; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(16,42,67,.06), 0 24px 48px rgba(16,42,67,.16); transition: transform .25s, box-shadow .25s; }
.pl-doc a:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16,42,67,.06), 0 32px 60px rgba(16,42,67,.22); }
.pl-doc img { display: block; width: 100%; height: auto; }
.pl-badge { position: absolute; z-index: 1; top: -14px; right: -14px; display: inline-flex; align-items: center; gap: 6px; background: var(--deep); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: 8px 14px 8px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(16,42,67,.25); }
.pl-badge::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%237BE0CB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) { .pl-wrap { grid-template-columns: 1fr; } .pl-doc { max-width: 360px; } }
@media (max-width: 600px) { .pl-facts { grid-template-columns: 1fr; } .pl-copy .btn { width: 100%; } .pl-badge { right: 8px; } }

/* Partner letter: letter is no longer shown on the page; it opens in a pop-up from the button */
.pl-wrap { grid-template-columns: minmax(0, 1fr); }
.pl-copy p { max-width: 72ch; }
.pl-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pl-facts { grid-template-columns: 1fr; } }
.pl-modal { width: min(760px, 92vw); max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(11,34,56,.45); overflow: auto; }
.pl-modal::backdrop { background: rgba(11,34,56,.75); }
.pl-modal img { display: block; width: 100%; height: auto; }
.pl-close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(16,42,67,.2); }
.pl-close::before, .pl-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--deep); border-radius: 2px; }
.pl-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.pl-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pl-close:hover { background: var(--tint); }
.pl-facts { margin-bottom: 0; }
/* partner facts: three cards (Period card removed) */
.pl-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .pl-facts { grid-template-columns: 1fr; } }
/* partner facts: space above the restored button */
.pl-facts { margin-bottom: 32px; }

/* Partner letter: protected view. The letter is a CSS background (no <img> to right-click save), with a watermark
   overlay, no selection/drag/long-press, and it is never printed. Note: no website can fully prevent screenshots. */
.pl-sheet { position: relative; width: 100%; aspect-ratio: 989 / 1400; background: #fff url("/assets/img/partner-letter-view.jpg") center / contain no-repeat; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pl-sheet::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='160'%3E%3Ctext x='150' y='85' text-anchor='middle' transform='rotate(-28 150 80)' font-family='Arial,sans-serif' font-size='17' font-weight='700' fill='%231F4E79' fill-opacity='.16'%3EKarunashri Software %C2%B7 View only%3C/text%3E%3C/svg%3E"); background-size: 300px 160px; pointer-events: none; }
.pl-modal { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media print { .pl-modal, .pl-sheet { display: none !important; } }

/* Partner With Us: highlighted link to the homepage Verified Partner Engagement section */
.pw-proof { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px 20px; background: #EEF4FA; border: 1px solid #BFD3E8; border-left: 4px solid #2E75B6; border-radius: 12px; text-decoration: none; color: #163B5E; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.pw-proof:hover, .pw-proof:focus-visible { background: #E3EDF7; border-color: #2E75B6; box-shadow: var(--shadow-sm); }
.pw-proof-icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #1F4E79; color: #fff; }
.pw-proof-icon svg { width: 22px; height: 22px; }
.pw-proof-copy { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.pw-proof-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2E75B6; }
.pw-proof-text { font-weight: 700; font-size: 1.02rem; color: #163B5E; }
.pw-proof-arrow { flex: 0 0 auto; font-size: 1.2rem; color: #2E75B6; transition: transform .15s; }
.pw-proof:hover .pw-proof-arrow { transform: translateX(3px); }

/* Join our developer network (/join-our-network/) */
.join-points { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 14px; }
.join-points li { display: flex; gap: 14px; align-items: center; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm); font-weight: 500; }
.join-points svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--mid); }
main .contact-intro p.join-small { font-size: .95rem; }
main .contact-intro .join-small a { color: #fff; font-weight: 600; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.consent-row { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.form-row .consent-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; line-height: 1.5; margin: 0; cursor: pointer; }
.form-row .consent-check input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--mid); padding: 0; }
.consent-row .file-note { margin: 8px 0 0 30px; }
.consent-row.has-error { border-color: var(--error); }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Top menu with "Join Our Network": keep every item on one line on small laptops (901–1000px) */
@media (min-width: 901px) { .main-nav a, .main-nav .btn { white-space: nowrap; } }
@media (min-width: 901px) and (max-width: 1000px) {
  .main-nav { gap: 10px; }
  .main-nav a:not(.btn) { padding: 10px 6px; font-size: .9rem; }
  .main-nav .btn { padding: 10px 14px; font-size: .9rem; }
}
