/* =========================================================
   Devstrat Private Limited — site design system
   Corporate blue + engineering orange on white / light grey.
   Type: Inter. One stylesheet for every page.
   ========================================================= */

:root {
  /* colour */
  --navy: #0B1B33;
  --navy-2: #13294A;
  --blue: #1D5FA8;
  --blue-700: #164B86;
  --blue-50: #EAF2FB;
  --orange: #E8781E;
  --orange-600: #CC6512;
  --orange-50: #FDF1E6;
  --white: #FFFFFF;
  --grey-50: #F5F7FA;
  --grey-100: #EDF1F5;
  --line: #DCE3EB;
  --ink: #0E1B2C;
  --body: #34465C;
  --muted: #5E6E82;
  --on-dark: #E7EEF6;
  --on-dark-muted: #A8B8CB;
  --ok: #17803D;
  --err: #C0392B;

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.3rem + 2vw, 2.625rem);
  --fs-3xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  /* layout */
  --maxw: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 10px;
  --shadow: 0 1px 2px rgba(11,27,51,.06), 0 6px 20px rgba(11,27,51,.06);
  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--body); font: 400 var(--fs-md)/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.015em; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--grey { background: var(--grey-50); border-block: 1px solid var(--grey-100); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #7CC4F0; }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 64ch; line-height: 1.6; }
.section--navy .lead { color: var(--on-dark-muted); }
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: var(--fs-xl); margin-top: 16px; }
.prose h3 { font-size: var(--fs-lg); margin-top: 8px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.num { font-variant-numeric: tabular-nums; }

.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head--split { max-width: none; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 24px; }
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 8px; border: 1.5px solid transparent; font: 600 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-700); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { border-color: rgba(231,238,246,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: 8px 9px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { color: var(--blue); background: var(--blue-50); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.header-cta { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 14px; font: 600 var(--fs-sm) var(--font); color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 18px; height: 18px; }
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .nav, .header-cta { display: none; }
  .site-header.is-open .nav { display: flex; position: absolute; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter-r) 18px var(--gutter-l); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-header.is-open .nav a { padding: 13px 4px; border-bottom: 1px solid var(--grey-100); border-radius: 0; }
  .site-header.is-open .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); padding-left: 12px; }
  .site-header.is-open .nav .nav-cta { display: flex; margin-top: 14px; border: none; }
}
.nav .nav-cta { display: none; }

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--navy) url("/assets/img/hero-arch.webp") right center / cover no-repeat; color: var(--on-dark); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,51,.96) 0%, rgba(11,27,51,.82) 48%, rgba(11,27,51,.2) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(124,196,240,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124,196,240,.06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg,#000,transparent 65%); mask-image: linear-gradient(90deg,#000,transparent 65%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-block: clamp(72px, 10vw, 136px) clamp(56px, 7vw, 96px); display: grid; gap: 24px; }
.hero h1 { color: #fff; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.025em; max-width: 16ch; }
.hero .lead { color: #C3D1E1; max-width: 60ch; }
.hero-rule { width: 64px; height: 4px; border-radius: 2px; background: var(--orange); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.reg-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 8px; background: rgba(19,41,74,.85); border: 1px solid rgba(124,196,240,.22); }
.reg-badge span.logo { background: #fff; border-radius: 5px; padding: 4px 7px; display: flex; align-items: center; height: 40px; }
.reg-badge img { height: 30px; width: auto; }
.reg-badge small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7CC4F0; }
.reg-badge b { font-family: var(--mono); font-size: 14px; font-weight: 500; color: #fff; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(124,196,240,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(124,196,240,.07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: linear-gradient(100deg,#000 10%,transparent 75%); mask-image: linear-gradient(100deg,#000 10%,transparent 75%); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); }
.page-hero h1 { color: #fff; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.page-hero .lead { color: #C3D1E1; margin-top: 14px; }
.page-hero .eyebrow { margin-top: 18px; margin-bottom: 10px; }
.page-hero-art { color: #7CC4F0; opacity: .9; justify-self: end; width: 100%; max-width: 440px; }
.page-hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .page-hero .container { grid-template-columns: 1fr; } .page-hero-art { display: none; } }

.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); }
.breadcrumb li { color: var(--on-dark-muted); display: flex; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: #4F6684; }
.breadcrumb a { color: #C3D1E1; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: minmax(0, 1fr); } }
.split > * { min-width: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: var(--fs-lg); }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card--link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card--link:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); }
.card--link .link-arrow { margin-top: 6px; font-size: var(--fs-sm); color: var(--blue); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.icon svg { width: 24px; height: 24px; }
.icon--orange { background: var(--orange-50); color: var(--orange-600); }

.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); padding: 3px 9px; border-radius: 999px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: var(--fs-sm); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.section--navy .ticks li { color: var(--on-dark); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.stat { padding: 20px 20px 6px 0; display: grid; gap: 6px; align-content: start; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { padding-left: 0; border-left: none; } .stat { padding-bottom: 16px; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } .stat + .stat { padding-left: 0; border-left: none; border-top: 1px solid var(--line); } }

/* ---------- disclosure ---------- */
.disclosure { display: flex; gap: 14px; align-items: flex-start; background: var(--orange-50); border: 1px solid #F5CFA8; border-left: 4px solid var(--orange); border-radius: 8px; padding: 14px 18px; font-size: var(--fs-sm); color: #5A3A17; max-width: 900px; }
.disclosure svg { width: 20px; height: 20px; flex: none; color: var(--orange-600); margin-top: 2px; }
.disclosure strong { color: #43290B; }
.note { font-size: var(--fs-xs); color: var(--muted); font-style: italic; }

/* ---------- service / sector detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: none; padding-top: 0; }
.detail-head { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--header-h) + 24px); }
.detail-head h2 { font-size: var(--fs-xl); }
.detail-body { display: grid; gap: 22px; }
.detail-body h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.detail-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail-head { position: static; } }
@media (max-width: 600px) { .detail-cols { grid-template-columns: 1fr; } }

.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: var(--fs-sm); font-weight: 500; background: #fff; }
.toc a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- lifecycle / process ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 14px; display: grid; gap: 4px; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--orange-600); font-weight: 600; }
.steps b { color: var(--ink); font-size: var(--fs-sm); }
.steps span { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; }
.steps .is-digital { border-top: 3px solid var(--blue); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; counter-reset: flow; }
.flow li { position: relative; padding: 20px 26px 20px 18px; background: var(--navy-2); border: 1px solid rgba(124,196,240,.22); display: grid; gap: 6px; align-content: start; counter-increment: flow; }
.flow li + li { border-left: none; }
.flow li:first-child { border-radius: 10px 0 0 10px; }
.flow li:last-child { border-radius: 0 10px 10px 0; background: var(--orange); border-color: var(--orange); }
.flow li::before { content: counter(flow, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: #7CC4F0; }
.flow li:last-child::before { color: #FFE3C7; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; background: var(--navy-2); border-top: 1px solid rgba(124,196,240,.35); border-right: 1px solid rgba(124,196,240,.35); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.flow b { color: #fff; font-size: var(--fs-md); }
.flow span { color: var(--on-dark-muted); font-size: var(--fs-sm); line-height: 1.45; }
.flow li:last-child span { color: #FFF3E6; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { border-left: 1px solid rgba(124,196,240,.22); border-top: none; border-radius: 0; }
  .flow li:first-child { border-top: 1px solid rgba(124,196,240,.22); border-radius: 10px 10px 0 0; }
  .flow li:last-child { border-radius: 0 0 10px 10px; }
  .flow li:not(:last-child)::after { right: auto; left: 28px; top: auto; bottom: -9px; transform: rotate(135deg); }
}

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 40px; padding-bottom: 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 112px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline li.is-now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(232,120,30,.2); }
.timeline .when { font-family: var(--mono); font-size: var(--fs-sm); color: var(--blue); font-weight: 600; text-align: right; padding-top: 1px; }
.timeline h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.timeline p { font-size: var(--fs-sm); color: var(--muted); }
.timeline .hl { margin-top: 8px; display: inline-block; font-size: var(--fs-xs); font-weight: 600; color: var(--orange-600); background: var(--orange-50); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 600px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 30px; }
  .timeline li::before { left: 0; }
  .timeline .when { text-align: left; }
}

/* ---------- people ---------- */
.person-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; }
.person-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--grey-100); }
.person-card h3 { font-size: var(--fs-lg); }
.person-card .role { color: var(--blue); font-weight: 600; font-size: var(--fs-sm); }
.person-card .cred { color: var(--muted); font-size: var(--fs-xs); margin-top: 4px; }

.profile { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.profile:first-of-type { border-top: none; padding-top: 0; }
.profile-photo img { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--grey-100); }
.profile-photo h2 { font-size: var(--fs-xl); margin-top: 16px; }
.profile-photo .role { color: var(--blue); font-weight: 600; margin-top: 6px; }
.profile-body { display: grid; gap: 22px; align-content: start; }
.profile-body h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 8px; }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .profile-photo img { max-width: 220px; } }

.org { display: grid; gap: 0; }
.org-top { max-width: 560px; width: 100%; margin: 0 auto; }
.org-stem { width: 2px; height: 32px; background: var(--line); margin: 0 auto; }
.org-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 32px; }
.org-row::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: var(--line); }
.org-row > * { position: relative; }
.org-row > *::before { content: ""; position: absolute; top: -32px; left: 50%; width: 2px; height: 32px; background: var(--line); }
@media (max-width: 860px) { .org-row { grid-template-columns: 1fr; padding-top: 20px; } .org-row::before, .org-row > *::before { display: none; } .org-stem { height: 20px; } }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 600 var(--fs-sm) var(--font); padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; }
.project-card h3 { font-size: var(--fs-lg); }
.project-card .facts { list-style: none; padding: 0; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--body); }
.project-card .facts li::before { content: "— "; color: var(--orange); }
.project-card .challenge { font-size: var(--fs-sm); color: var(--muted); }
.project-card .role { border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--fs-sm); display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.project-card .role b { color: var(--ink); }
.empty-state { padding: 32px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

.case > *, .detail-body > *, .profile-body > *, .stack > *, .stack-lg > * { min-width: 0; }
.case { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.case-head { display: grid; gap: 12px; max-width: 820px; }
.case-head h2 { font-size: var(--fs-2xl); }
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2vw, 24px); }
.figure--scroll { overflow-x: auto; }
.figure--scroll > img, .figure--scroll > svg { min-width: 640px; width: 100%; }
.figure--navy { background: var(--navy); border-color: var(--navy); }
.figure figcaption, .fig-label { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }
.figure--navy .fig-label { color: var(--on-dark-muted); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts-grid div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: grid; gap: 3px; align-content: start; }
.facts-grid b { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.facts-grid span { font-size: var(--fs-xs); font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.facts-grid small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
.parties { display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: var(--fs-sm); padding-top: 18px; border-top: 1px solid var(--line); }
.parties b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- digital ---------- */
.cap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.cap img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--navy); }
.cap-body { padding: 22px; display: grid; gap: 10px; align-content: start; }
.cap-body h3, .section--navy .cap-body h3 { font-size: var(--fs-lg); color: var(--ink); }
.cap-body p { color: var(--muted); font-size: var(--fs-sm); }
.cap-art { aspect-ratio: 16 / 10; background: var(--navy); display: grid; place-items: center; color: #7CC4F0; }
.cap-art svg { width: 70%; height: auto; }

/* ---------- insights ---------- */
.insight-card { position: relative; }
.badge-soon { display: inline-flex; align-self: start; justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); border-radius: 4px; padding: 2px 8px; }
details.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
details.acc + details.acc { margin-top: 10px; }
details.acc summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); line-height: 1; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 22px 22px; display: grid; gap: 14px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field .req { color: var(--err); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 var(--fs-md) var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 13px; min-height: 46px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input[type="file"] { padding: 9px; background: var(--grey-50); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,168,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field .error { font-size: var(--fs-xs); color: var(--err); font-weight: 500; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--fs-sm); color: var(--body); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); }
.check.has-error { color: var(--err); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 8px; font-size: var(--fs-sm); font-weight: 500; }
.form-status.is-ok { background: #E8F6EC; color: #0F5A2B; border: 1px solid #B7E2C3; }
.form-status.is-err { background: #FCECEA; color: #8B2418; border: 1px solid #F2C2BB; }
.form-status.is-busy { background: var(--grey-50); color: var(--muted); border: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.contact-list small { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list span.v { color: var(--ink); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--grey-100); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.ids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ids div { padding: 16px 18px; border-right: 1px solid var(--line); }
.ids div:last-child { border-right: none; }
.ids small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ids b { font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: var(--fs-sm); overflow-wrap: anywhere; }
@media (max-width: 760px) { .ids { grid-template-columns: 1fr; } .ids div { border-right: none; border-bottom: 1px solid var(--line); } .ids div:last-child { border-bottom: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border: 2px solid rgba(124,196,240,.15); border-radius: 50%; box-shadow: 0 0 0 40px rgba(124,196,240,.04), 0 0 0 90px rgba(124,196,240,.03); }
.cta-band .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { color: #fff; font-size: var(--fs-xl); max-width: 30ch; }
.cta-band p { color: var(--on-dark-muted); margin-top: 10px; max-width: 60ch; }
@media (max-width: 760px) { .cta-band .container { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: #071222; color: var(--on-dark-muted); font-size: var(--fs-sm); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { color: #C9D6E6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.footer-top h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-top ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-bottom { border-top: 1px solid #15263D; padding-block: 22px 28px; display: grid; gap: 10px; font-size: var(--fs-xs); }
.footer-ids { display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--mono); }
.footer-ids b { color: #C9D6E6; font-weight: 500; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; }
@media (max-width: 900px) { .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; } }

/* ---------- misc ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: 28px; align-content: start; }
.notice-draft { background: #FFF8E1; border: 1px solid #F0D58A; color: #6B5200; padding: 12px 16px; border-radius: 8px; font-size: var(--fs-sm); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--grey-50); color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- project photo cards ---------- */
.project-card--photo { padding: 0; overflow: hidden; grid-template-rows: auto 1fr; gap: 0; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.project-card--photo:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.pc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-100); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card--photo:hover .pc-media img { transform: scale(1.04); }
.pc-body { display: grid; gap: 10px; padding: 18px 20px 20px; align-content: start; grid-template-rows: auto auto 1fr auto auto; }
.pc-body h3 { font-size: var(--fs-lg); }
.pc-body .link-arrow { color: var(--blue); }
.grid-4 .pc-body h3 { font-size: var(--fs-md); }

/* ---------- project detail ---------- */
.project-hero { position: relative; min-height: clamp(380px, 52vw, 560px); display: grid; align-items: end; background: var(--navy); color: #fff; overflow: hidden; }
.project-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,27,51,.35) 0%, rgba(11,27,51,.55) 45%, rgba(11,27,51,.94) 100%); }
.project-hero .container { position: relative; z-index: 1; display: grid; gap: 14px; padding-block: 40px clamp(36px, 5vw, 56px); width: 100%; }
.project-hero .breadcrumb { margin-bottom: auto; }
.project-hero h1 { color: #fff; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.025em; max-width: 20ch; }
.project-hero .lead { color: #D7E1EC; }
.tag--light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(4px); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-sm); color: #C3D1E1; }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-meta svg { width: 16px; height: 16px; color: var(--orange); }
.hero-credit { position: absolute; right: var(--gutter-r); bottom: 10px; z-index: 1; font-size: 11px; color: rgba(255,255,255,.7); margin: 0; }
.kfacts { display: grid; gap: 14px; }
.kfacts div { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.kfacts div:last-child { border-bottom: none; padding-bottom: 0; }
.kfacts b { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.15; }
.kfacts small { color: var(--muted); font-size: var(--fs-sm); }

.gallery { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 > .gallery-item:first-child { grid-column: 1 / -1; }
.gallery--3 > .gallery-item:first-child .gallery-link { aspect-ratio: 21 / 9; }
.gallery-item { margin: 0; display: grid; gap: 10px; align-content: start; min-width: 0; }
.gallery-link { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--grey-100); cursor: zoom-in; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-link:hover img { transform: scale(1.03); }
.gallery-item figcaption { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink); }
.gallery-item figcaption small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.gallery-item figcaption small a { color: var(--muted); }
.gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .gallery, .gallery--2, .gallery--4 { grid-template-columns: 1fr; } .gallery--3 > .gallery-item:first-child .gallery-link { aspect-ratio: 4 / 3; } }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; border-block: 1px solid var(--line); padding-block: 18px; }
.pager a { text-decoration: none; display: grid; gap: 2px; color: var(--ink); }
.pager a small { color: var(--muted); font-size: var(--fs-xs); }
.pager a:hover b { color: var(--blue); }
.pager .pager-all { font-weight: 600; color: var(--blue); }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } .pager .pager-all { grid-column: 1 / -1; grid-row: 2; text-align: center; } }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5,12,24,.88); }
.lightbox img { max-width: min(96vw, 1600px); max-height: 82vh; width: auto; height: auto; border-radius: 8px; margin: 0 auto; }
.lightbox p { color: #E7EEF6; font-size: var(--fs-sm); text-align: center; margin-top: 10px; }
.lightbox button { position: fixed; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(11,27,51,.7); color: #fff; font-size: 22px; cursor: pointer; }
