/* Clemtec Private Limited — site styles
   Layout concept: an engineering drawing sheet. Quiet paper, hairline rules,
   navy for structure, brand red only for marks; the footer is a drawing title block. */
:root {
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #0d1323;
  --muted: #545d72;
  --rule: #d7dbe3;
  --rule-strong: #0d1323;
  --navy: #274082;
  --navy-ink: #274082;
  --navy-band: #1f3470;
  --on-navy: #ffffff;
  --on-navy-muted: #c3cbe3;
  --red: #ed1c24;
  --focus: #274082;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);

  --wrap: 72rem;
  --measure: 40rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1020; --surface: #111831; --ink: #e7eaf2; --muted: #9aa3b9;
    --rule: #242c45; --rule-strong: #c9cfde; --navy: #8ea5e8; --navy-ink: #a9bbf0;
    --navy-band: #16244f; --on-navy: #ffffff; --on-navy-muted: #b5c0e0;
    --red: #ff4b51; --focus: #a9bbf0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1020; --surface: #111831; --ink: #e7eaf2; --muted: #9aa3b9;
  --rule: #242c45; --rule-strong: #c9cfde; --navy: #8ea5e8; --navy-ink: #a9bbf0;
  --navy-band: #16244f; --on-navy: #ffffff; --on-navy-muted: #b5c0e0;
  --red: #ff4b51; --focus: #a9bbf0; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: var(--navy-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 750; font-variation-settings: "wdth" 112; }
h2 { font-size: var(--step-3); font-weight: 700; font-variation-settings: "wdth" 108; }
h3 { font-size: var(--step-1); font-weight: 650; font-variation-settings: "wdth" 104; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.prose p + p { margin-top: 1em; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: var(--measure); line-height: 1.55; }
.mono, .eyebrow { font-family: var(--font-mono); }
.eyebrow {
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--red); flex: none; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); padding: 0.5rem 1rem; }

.wrap { max-width: calc(var(--wrap) + 2 * 16px); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 750; font-size: 1.35rem; letter-spacing: 0.01em; font-variation-settings: "wdth" 112; }
.brand-name span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); margin-top: 0.3rem; }
.nav-toggle {
  display: none; font: inherit; font-family: var(--font-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em;
  background: none; border: 1px solid var(--rule-strong); color: var(--ink); padding: 0.45rem 0.8rem; border-radius: 2px; cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.5rem 0.7rem; text-decoration: none; color: var(--ink);
  font-size: 0.95rem; font-weight: 500; border-radius: 2px;
}
.site-nav a:hover { background: color-mix(in srgb, var(--navy) 10%, transparent); }
.site-nav a[aria-current="page"] { color: var(--navy-ink); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.site-nav .nav-cta a { background: var(--navy); color: var(--on-navy); margin-left: 0.5rem; }
:root[data-theme="dark"] .site-nav .nav-cta a { background: var(--navy-band); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-nav .nav-cta a { background: var(--navy-band); } }
.site-nav .nav-cta a:hover { background: var(--navy-band); }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; padding-bottom: 1rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 0.8rem 0.2rem; border-top: 1px solid var(--rule); border-radius: 0; }
  .site-nav .nav-cta a { margin: 0.75rem 0 0; text-align: center; border-radius: 2px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 0.8rem; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.2rem; border-radius: 2px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--navy); font-size: 0.98rem;
}
.btn-primary { background: var(--navy); color: var(--on-navy); }
:root[data-theme="dark"] .btn-primary { background: var(--navy-band); border-color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--navy-band); border-color: var(--navy); } }
.btn-primary:hover { background: var(--navy-band); }
.btn-ghost { color: var(--navy-ink); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--navy) 8%, transparent); }
.arrow { font-family: var(--font-mono); }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; max-width: 46rem; }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-copy h1 { max-width: 15ch; }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure svg { width: 100%; height: auto; display: block; color: var(--ink); }
.hero-figure figcaption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.75rem; border-top: 1px solid var(--rule); padding-top: 0.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Discipline strip */
.disciplines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.disc { padding: 1.5rem 1.25rem 1.75rem; border-left: 1px solid var(--rule); display: grid; gap: 0.75rem; align-content: start; min-width: 0; }
.disc:first-child { border-left: 0; padding-left: 0; }
.disc-mark { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: 0.02em; font-variation-settings: "wdth" 125; color: var(--navy-ink); }
.disc-mark .rest { color: var(--rule); }
.disc h3 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
.disc ul { list-style: none; display: grid; gap: 0.35rem; font-size: 0.95rem; }
@media (max-width: 860px) {
  .disciplines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .disc:nth-child(3) { border-left: 0; padding-left: 0; }
  .disc:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .disciplines { grid-template-columns: 1fr; }
  .disc { border-left: 0; padding-left: 0; }
  .disc + .disc { border-top: 1px solid var(--rule); }
}

/* Index rows (services list) */
.rows { list-style: none; border-top: 1px solid var(--rule-strong); }
.row { border-bottom: 1px solid var(--rule); }
.row a {
  display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline;
  padding: 1.35rem 0; text-decoration: none; color: var(--ink);
}
.row a:hover h3 { color: var(--navy-ink); }
.row a:hover .arrow { transform: translateX(4px); }
.row p { color: var(--muted); }
.row .arrow { color: var(--navy-ink); transition: transform .2s ease; }
@media (max-width: 720px) { .row a { grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem 1rem; } .row p { grid-column: 1; grid-row: 2; } .row .arrow { grid-row: 1; grid-column: 2; } }

/* Grid of plain blocks */
.grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.block { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--ink); min-width: 0; }
.block p { color: var(--muted); }
.block a.more { font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.block a.more:hover { text-decoration: underline; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid, .grid.two { grid-template-columns: 1fr; } }

/* Process (real sequence) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--rule-strong); }
.step { padding: 1.4rem 1.25rem 0 0; display: grid; gap: 0.55rem; align-content: start; counter-increment: step; position: relative; min-width: 0; }
.step::before { content: "Stage " counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--step--1); color: var(--red); letter-spacing: 0.06em; }
.step p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--rule-strong); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 36rem; }
th, td { text-align: left; padding: 0.95rem 1rem 0.95rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
td small { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }

/* Notice */
.notice { border-left: 3px solid var(--red); padding: 0.9rem 1.1rem; background: var(--surface); color: var(--ink); max-width: 52rem; font-size: 0.97rem; }

/* Key–value register (registrations) */
.register { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); }
.register > div { padding: 1.1rem 1.1rem 1.2rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 0.35rem; min-width: 0; }
.register dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.register dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.register dd.code { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }
@media (max-width: 860px) { .register { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .register { grid-template-columns: 1fr; } }

/* Inner page head */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-head .wrap { display: grid; gap: 1.25rem; }
.page-head h1 { max-width: 20ch; }
.crumbs { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule-strong); opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy-ink); text-decoration: underline; }

/* Two-column content */
.split { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.split > h2 { font-size: var(--step-2); }
.split .body { display: grid; gap: 1.25rem; max-width: 46rem; min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; display: grid; gap: 0.6rem; }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 2rem; }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.7rem; height: 2px; background: var(--navy-ink); }
@media (max-width: 560px) { .ticks.cols { grid-template-columns: 1fr; } }
.ordered { list-style: none; counter-reset: o; display: grid; gap: 1rem; }
.ordered li { counter-increment: o; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.5rem; }
.ordered li::before { content: counter(o, decimal-leading-zero); font-family: var(--font-mono); color: var(--red); font-size: 0.9rem; padding-top: 0.15rem; }
.ordered b { display: block; }
.ordered span { color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.person { border-top: 2px solid var(--ink); padding-top: 1rem; display: grid; gap: 0.3rem; }
.person .role { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

.desks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.desk { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.3rem; min-width: 0; }
.desk span { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.desk a { font-size: var(--step-1); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.desk a:hover { text-decoration: underline; }
.desk p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 560px) { .desks { grid-template-columns: 1fr; } }
address { font-style: normal; line-height: 1.7; }

/* CTA band */
.band { background: var(--navy-band); color: var(--on-navy); }
.band .wrap { padding-block: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.band h2 { color: var(--on-navy); max-width: 22ch; }
.band p { color: var(--on-navy-muted); margin-top: 0.9rem; max-width: 40rem; }
.band .btn { background: var(--on-navy); color: #1f3470; border-color: var(--on-navy); }
.band .btn:hover { background: #e6eaf5; }
.band .btn-ghost { background: transparent; color: var(--on-navy); border-color: var(--on-navy-muted); }
.band .btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; align-items: start; } }

/* Footer: drawing title block */
.site-footer { padding-block: 3rem 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 2rem; list-style: none; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--navy-ink); text-decoration: underline; }
.titleblock { border: 2px solid var(--rule-strong); display: grid; grid-template-columns: 1.75fr 1fr 1fr 1fr; font-size: 0.9rem; }
.tb { padding: 0.75rem 0.9rem; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); display: grid; gap: 0.2rem; align-content: start; min-width: 0; }
.tb.end { border-right: 0; }
.tb-brand { border-bottom: 0; }
.tb-wide { grid-column: span 2; }
.tb.last-row { border-bottom: 0; }
.tb span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tb b, .tb a { font-weight: 600; overflow-wrap: anywhere; }
.tb .code { font-family: var(--font-mono); font-weight: 500; }
.tb-brand { grid-row: span 2; display: flex !important; align-items: center; gap: 1rem; padding: 1rem 1.1rem !important; }
.tb-brand svg { width: 3.4rem; height: 3.4rem; flex: none; display: block; overflow: visible; }
.tb-brand div { display: grid; gap: 0.3rem; min-width: 0; }
.tb-brand b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "wdth" 108; color: var(--ink); }
.fineprint { margin-top: 1.25rem; font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.fineprint a { color: var(--muted); }
@media (max-width: 860px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb { border-right: 1px solid var(--rule-strong) !important; border-bottom: 1px solid var(--rule-strong) !important; }
  .tb:nth-child(odd):not(:first-child) { border-right: 0 !important; }
  .tb-brand { border-bottom: 1px solid var(--rule-strong) !important; }
  .tb:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .tb-brand { grid-row: auto; grid-column: 1 / -1; border-right: 0 !important; }
  .tb-wide { grid-column: auto; }
}
@media (max-width: 420px) { .titleblock { grid-template-columns: 1fr; } .tb { border-right: 0 !important; border-bottom: 1px solid var(--rule-strong) !important; } .tb:last-child { border-bottom: 0 !important; } .tb:nth-last-child(2) { border-bottom: 1px solid var(--rule-strong) !important; } }

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; gap: 1.25rem; padding-block: 4rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .band, .nav-toggle { display: none; } body { background: #fff; color: #000; } }

/* ------------------------------------------------------------------
   Isometric 3D illustrations and raised cards
   ------------------------------------------------------------------ */
:root {
  --iso-navy-t: #5a74bd; --iso-navy-l: #2f4a92; --iso-navy-r: #1d2f63;
  --iso-steel-t: #e3e8f2; --iso-steel-l: #b9c4da; --iso-steel-r: #8a98b8;
  --iso-concrete-t: #eceae4; --iso-concrete-l: #cfccc3; --iso-concrete-r: #aeaaa0;
  --iso-slab-t: #ffffff; --iso-slab-l: #dfe3ec; --iso-slab-r: #c3c9d7;
  --iso-red-t: #ff6a6e; --iso-red-l: #ed1c24; --iso-red-r: #a8121a;
  --iso-dark-t: #4b5266; --iso-dark-l: #2c3142; --iso-dark-r: #1b1f2b;
  --iso-pipe-t: #8fb4ea; --iso-pipe-l: #3f74c9; --iso-pipe-r: #234a8c; --iso-pipe-cap: #2b5aa6;
  --iso-water-t: #8cc3f2; --iso-water-l: #4d93d8; --iso-water-r: #336fae;
  --iso-grass-t: #cfe3c4; --iso-grass-l: #9fc28f; --iso-grass-r: #7aa06a;
  --iso-asphalt-t: #4a5062; --iso-asphalt-l: #343949; --iso-asphalt-r: #252935;
  --iso-sand-t: #e9d3a8; --iso-sand-l: #c9a86d; --iso-sand-r: #a1824b;
  --iso-wood-t: #e2c597; --iso-wood-l: #c29f69; --iso-wood-r: #9c7a47;
  --iso-glass: #bfd3f3; --iso-glass-dark: #8fa9d6; --iso-screen: #dbe6fa;
  --iso-mark: #f4f6fa; --iso-line: #33415f; --iso-shadow: rgba(20, 32, 70, .12);
  --card-shadow: 0 1px 0 rgba(13, 19, 35, .04), 0 2px 6px rgba(13, 19, 35, .05), 0 18px 40px -18px rgba(31, 52, 112, .35);
  --card-shadow-hover: 0 1px 0 rgba(13, 19, 35, .04), 0 6px 14px rgba(13, 19, 35, .07), 0 30px 60px -22px rgba(31, 52, 112, .45);
  --tile: linear-gradient(160deg, #ffffff 0%, #eef1f7 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --iso-navy-t: #6f88d6; --iso-navy-l: #3d58a6; --iso-navy-r: #273c78;
    --iso-steel-t: #b7c2da; --iso-steel-l: #8794b3; --iso-steel-r: #5f6b88;
    --iso-concrete-t: #a8a59d; --iso-concrete-l: #85827a; --iso-concrete-r: #65625b;
    --iso-slab-t: #222b47; --iso-slab-l: #1a2139; --iso-slab-r: #131a2e;
    --iso-glass: #9fb8e6; --iso-glass-dark: #6f8cc4; --iso-screen: #2c3a63;
    --iso-mark: #d9dfeb; --iso-line: #b7c3e0; --iso-shadow: rgba(0, 0, 0, .35);
    --card-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -18px rgba(0, 0, 0, .7);
    --card-shadow-hover: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -20px rgba(0, 0, 0, .8);
    --tile: linear-gradient(160deg, #18213d 0%, #111831 100%);
  }
}
:root[data-theme="dark"] {
  --iso-navy-t: #6f88d6; --iso-navy-l: #3d58a6; --iso-navy-r: #273c78;
  --iso-steel-t: #b7c2da; --iso-steel-l: #8794b3; --iso-steel-r: #5f6b88;
  --iso-concrete-t: #a8a59d; --iso-concrete-l: #85827a; --iso-concrete-r: #65625b;
  --iso-slab-t: #222b47; --iso-slab-l: #1a2139; --iso-slab-r: #131a2e;
  --iso-glass: #9fb8e6; --iso-glass-dark: #6f8cc4; --iso-screen: #2c3a63;
  --iso-mark: #d9dfeb; --iso-line: #b7c3e0; --iso-shadow: rgba(0, 0, 0, .35);
  --card-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -18px rgba(0, 0, 0, .7);
  --card-shadow-hover: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -20px rgba(0, 0, 0, .8);
  --tile: linear-gradient(160deg, #18213d 0%, #111831 100%);
}

.iso { display: block; height: auto; overflow: visible; }

/* Hero diorama */
.hero-art { position: relative; margin: 0; min-width: 0; }
.hero-art::before {
  content: ""; position: absolute; inset: 12% 4% 2%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--navy) 18%, transparent), transparent);
  filter: blur(18px); z-index: 0;
}
.iso-hero { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 26px 30px rgba(20, 32, 70, .22)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Raised cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: grid; gap: 0.65rem; align-content: start; min-width: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.25rem 1.25rem 1.4rem; box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease; color: var(--ink); text-decoration: none;
}
a.card:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .more { font-size: 0.92rem; font-weight: 600; color: var(--navy-ink); margin-top: 0.2rem; }
.card-art {
  position: relative; border-radius: 10px; background: var(--tile); aspect-ratio: 16 / 10; overflow: hidden;
  margin-bottom: 0.35rem; box-shadow: inset 0 0 0 1px var(--rule);
}
.card-art .iso { position: absolute; inset: 10% 12%; width: 76%; height: 80%; filter: drop-shadow(0 10px 10px rgba(20, 32, 70, .18)); transition: transform .3s ease; }
a.card:hover .card-art .iso, .card:hover .card-art .iso { transform: translateY(-3px) scale(1.03); }
.card .disc-mark { font-size: 2rem; color: var(--navy-ink); }
.card .ticks { font-size: 0.93rem; }
@media (max-width: 960px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .cards, .cards.four { grid-template-columns: 1fr; } }

/* Page heads with an illustration */
.page-head.with-art .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 1.25rem 3rem; }
.page-head.with-art .head-copy { display: grid; gap: 1.25rem; min-width: 0; }
.page-head.with-art .head-art { margin: 0; padding: 1.5rem; border-radius: 16px; background: var(--tile); box-shadow: var(--card-shadow); display: grid; place-items: center; min-width: 0; }
.page-head.with-art .head-art .iso { width: 100%; height: 14rem; filter: drop-shadow(0 16px 16px rgba(20, 32, 70, .2)); }
@media (max-width: 860px) { .page-head.with-art .wrap { grid-template-columns: 1fr; } .page-head.with-art .head-art { max-width: 26rem; } }

/* Sector headings with an icon */
.sec-art { width: 8.5rem; padding: 0.75rem; border-radius: 12px; background: var(--tile); box-shadow: var(--card-shadow); margin-top: 1rem; }
.sec-art .iso { width: 100%; }

@media (prefers-reduced-motion: reduce) { .iso-hero { animation: none; } .card, .card-art .iso { transition: none; } }

/* Tagline */
.tagline { font-style: normal; font-weight: 500; color: var(--navy-ink); font-size: 0.9rem; line-height: 1.3; }
.tb-brand span { font-size: 0.62rem; line-height: 1.4; letter-spacing: 0.06em; white-space: nowrap; }
@media (max-width: 420px) { .tb-brand span { white-space: normal; } }
.hero .eyebrow { font-size: 0.9rem; color: var(--navy-ink); font-weight: 500; letter-spacing: 0.12em; }
