/* NSquare Technologies — single-page site
   Layout: airy sky-blue ground from the corporate deck, navy type, one accent hue per practice
   (blue = data, teal = AI, purple = cyber, gold = talent). Light theme by design, matching the deck. */
:root {
  --navy: #111B4D;
  --navy-2: #1B2766;
  --blue: #2D6EB9;
  --blue-bright: #0060F5;
  --teal: #06BDA8;
  --teal-ink: #047A6D;
  --purple: #7435A8;
  --gold: #F8B940;
  --gold-ink: #9A6500;
  --sky: #EAF5FC;
  --sky-2: #F5FAFD;
  --paper: #FFFFFF;
  --muted: #5B6A80;
  --line: #DCE5EF;
  --on-dark: #E8EEF8;
  --on-dark-muted: #A9B6D3;

  --f-display: "Plus Jakarta Sans", "Aptos Display", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Aptos", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.9rem);

  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 27, 77, .05), 0 12px 32px -12px rgba(17, 27, 77, .18);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--f-display);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-bright), var(--teal)); flex: none; }
.label { font-family: var(--f-display); font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17, 27, 77, .4); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; }
.brand-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 8px;
  position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:not(.nav-cta):hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav .nav-cta { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; margin-left: 8px; }
.site-nav .nav-cta:hover { background: var(--blue-bright); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle .bar { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--sky-2), var(--sky)); overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 42%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--sky) 0%, rgba(234, 245, 252, .55) 22%, rgba(234, 245, 252, 0) 45%);
}
.hero-row { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 128px); }
.hero-copy { max-width: 560px; display: grid; gap: 22px; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.025em; }
.hero h1::after { content: ""; display: block; width: 72px; height: 5px; border-radius: 3px; margin-top: 22px; background: var(--teal); }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* At a glance */
.glance { background: var(--navy); color: var(--on-dark); }
.glance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glance-grid > div { padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.glance-grid > div:first-child { border-left: 0; padding-left: 0; }
.glance dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.glance-grid > div:nth-child(1) dt { color: #6FB6FF; }
.glance-grid > div:nth-child(2) dt { color: var(--teal); }
.glance-grid > div:nth-child(3) dt { color: #C69BEA; }
.glance-grid > div:nth-child(4) dt { color: var(--gold); }
.glance dd { color: var(--on-dark-muted); font-size: .95rem; margin-top: 6px; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-tint { background: var(--sky-2); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sub { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-copy { display: grid; gap: 18px; }
.about-copy p { color: #33405F; max-width: 62ch; }
.about-copy h2 { margin-bottom: 4px; }
.vm { display: grid; gap: 18px; }
.vm-card { background: var(--sky); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.vm-statement { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.4; }
.mission { display: grid; gap: 12px; }
.mission li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; align-items: start; color: #33405F; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .45em; }
.d-blue { background: var(--blue-bright); } .d-teal { background: var(--teal); } .d-purple { background: var(--purple); } .d-gold { background: var(--gold); }

/* Practices */
.practices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.practice {
  --c: var(--blue-bright); --c-soft: #E6F0FE;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.practice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.p-teal { --c: var(--teal); --c-soft: #E4F7F4; }
.p-purple { --c: var(--purple); --c-soft: #F1EAF9; }
.practice header { display: grid; gap: 16px; }
.practice header p { color: var(--muted); font-size: .98rem; margin-top: 6px; }
.practice-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); flex: none; }
.practice-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pi-gold { --c: var(--gold-ink); --c-soft: #FEF4DF; }
.svc { display: grid; border-top: 1px solid var(--line); }
.svc li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.svc li:last-child { border-bottom: 0; padding-bottom: 0; }
.svc strong { font-family: var(--f-display); font-weight: 700; font-size: .98rem; }
.svc span { color: var(--muted); font-size: .92rem; line-height: 1.45; }

.staffaug {
  margin-top: 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px;
  border-left: 4px solid var(--gold);
}
.staffaug-copy { flex: 1 1 380px; min-width: 0; display: grid; gap: 6px; }
.staffaug-copy p { color: var(--muted); }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps li { padding: 0 18px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.steps li::before {
  content: ""; position: absolute; top: 21px; left: 46px; right: 6px; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--line));
}
.steps li:last-child::before { display: none; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: .95rem; color: #fff; background: var(--navy);
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.steps li:nth-child(1) .step-n, .steps li:nth-child(2) .step-n { background: var(--blue-bright); }
.steps li:nth-child(3) .step-n, .steps li:nth-child(4) .step-n { background: var(--teal-ink); }
.steps li:nth-child(5) .step-n, .steps li:nth-child(6) .step-n { background: var(--purple); }
.steps h3 { font-size: 1.08rem; margin-top: 6px; }
.steps p { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.steps-foot {
  margin-top: 36px; padding: 14px 20px; border-radius: 10px; background: var(--sky);
  font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); text-align: center;
}

.stack { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.stack-copy { display: grid; gap: 12px; }
.stack-copy h3 { font-size: var(--step-2); }
.stack-copy p { color: var(--muted); max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--sky-2);
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
}

/* Industries */
.section-dark {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(6, 189, 168, .18), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(0, 96, 245, .22), transparent 60%),
    var(--navy);
  color: var(--on-dark);
}
.section-dark .eyebrow { color: var(--teal); }
.section-dark .sub { color: var(--on-dark-muted); }
.section-dark h2 { color: #fff; }
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; }
.industries li { background: var(--navy-2); padding: 28px; display: grid; gap: 8px; align-content: start; transition: background-color .2s; }
.industries li:hover { background: #22307A; }
.industries h3 { color: #fff; }
.industries p { color: var(--on-dark-muted); font-size: .96rem; }

/* Why */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: end; }
.pillar { --c: var(--blue-bright); --c-soft: #E6F0FE; background: var(--c-soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--c); }
.pillar h3 { font-size: 1.12rem; }
.pillar p { color: #3A4766; font-size: .96rem; }
.pl-teal { --c: var(--teal); --c-soft: #E4F7F4; }
.pl-purple { --c: var(--purple); --c-soft: #F1EAF9; }
.pl-gold { --c: var(--gold); --c-soft: #FEF4DF; }
/* Rising staircase, as in the deck */
@media (min-width: 900px) {
  .pillar:nth-child(1) { min-height: 170px; }
  .pillar:nth-child(2) { min-height: 200px; }
  .pillar:nth-child(3) { min-height: 230px; }
  .pillar:nth-child(4) { min-height: 260px; }
}

.accel { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.accel img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.accel-copy { display: grid; gap: 14px; min-width: 0; }
.accel-copy h3 { font-size: var(--step-2); }
.accel-copy > p { color: var(--muted); }
.accel-list { display: grid; margin-top: 8px; border-top: 1px solid var(--line); }
.accel-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.accel-list dt { font-family: var(--f-display); font-weight: 700; color: var(--blue); }
.accel-list dd { color: #3A4766; font-size: .96rem; }

/* Engagement */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.model { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.model h3 { font-size: 1.15rem; }
.model p { color: var(--muted); }
.model .best { color: var(--navy); font-weight: 600; padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 6px; }

/* Contact */
.contact { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding-block: clamp(72px, 9vw, 120px); }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 30%, rgba(17, 27, 77, .75)); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-copy { display: grid; gap: 16px; }
.contact-copy .eyebrow { color: var(--teal); }
.contact-copy h2 { color: #fff; }
.contact-copy > p { color: var(--on-dark-muted); max-width: 48ch; }
.contact-list { display: grid; gap: 14px; margin-top: 12px; }
.contact-list > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.contact-list dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 3px; }
.contact-list dd { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: #fff; }

.contact-form {
  background: var(--paper); color: var(--navy); border-radius: 18px; padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy); background: var(--sky-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); background: #fff; box-shadow: 0 0 0 3px rgba(0, 96, 245, .15); }
.field.invalid input, .field.invalid textarea { border-color: #C0392B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: .95rem; color: var(--muted); min-width: 0; flex: 1 1 200px; }
.form-status.ok { color: var(--teal-ink); font-weight: 600; }
.form-status.err { color: #B03024; font-weight: 600; }

/* Footer */
.site-footer { background: #0B1238; color: var(--on-dark-muted); padding-block: 36px; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--f-display); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover { color: var(--teal); }
.copy { width: 100%; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }

/* Reveal: content is visible at rest; JS adds a subtle lift only when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.pending { transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .steps li:nth-child(3)::before { display: none; }
  .practices { grid-template-columns: 1fr 1fr; }
  .practices .practice:last-child { grid-column: 1 / -1; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(17, 27, 77, .35);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0; border-radius: 999px; }
  .about-grid, .stack, .accel, .contact-grid { grid-template-columns: 1fr; }
  .accel img { aspect-ratio: 16 / 9; }
  .industries { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: 1fr; }
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-grid > div { padding: 22px 16px; }
  .glance-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .glance-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 760px) {
  .hero-media { position: relative; inset: auto; height: 240px; order: 2; }
  .hero-media::before { background: linear-gradient(180deg, var(--sky) 0%, rgba(234, 245, 252, 0) 40%); }
  .hero { display: flex; flex-direction: column; }
  .hero-row { padding-block: 48px 28px; }
  .practices { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; padding: 0 0 26px; }
  .steps li::before { display: block !important; top: 46px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .steps li:last-child::before { display: none !important; }
  .steps .step-n { grid-row: span 2; }
  .steps h3 { margin-top: 10px; }
  .steps p { grid-column: 2; }
  .industries { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .accel-list > div { grid-template-columns: 1fr; gap: 2px; }
  .brand-tag { display: none; }
}
@media (max-width: 380px) {
  .brand-name { font-size: .98rem; }
  .brand img { width: 44px; }
}
.contact-list address { font-style: normal; }

/* v2: deck update (16 Oct 2026) */
.about-sub { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); color: var(--blue); line-height: 1.4; }
.practice-foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.steps-title { font-size: var(--step-1); margin-bottom: 24px; }
.steps-title-gap { margin-top: clamp(48px, 6vw, 72px); }
.values-foot { margin-top: 24px; }
.tpillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tpillars li { border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; align-content: start; }
.tpillars h3 { color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.tpillars p { color: rgba(255, 255, 255, .88); font-size: .96rem; }
.tp-data { background: #0A8F80; }
.tp-ai { background: var(--blue); }
.tp-cyber { background: #0B1238; border: 1px solid rgba(255, 255, 255, .18); }
.vision-align { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.vision-align > div { padding: 18px 20px 0 0; display: grid; gap: 4px; align-content: start; }
.vision-align dt { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.vision-align dd { color: var(--on-dark-muted); font-size: .94rem; }
.industries-title { color: #fff; margin: clamp(40px, 5vw, 56px) 0 20px; }
@media (max-width: 960px) {
  .tpillars { grid-template-columns: 1fr; }
  .vision-align { grid-template-columns: 1fr 1fr; row-gap: 18px; }
}
@media (max-width: 760px) {
  .steps-ai { margin-top: 0; }
  .vision-align { grid-template-columns: 1fr; }
}

/* v3 (18 Oct 2026): every menu section fits one screen; long content moves into tabs */
[hidden] { display: none !important; }
.home { display: flex; flex-direction: column; }
.home .hero { flex: 1 1 auto; }

/* Tabs */
.tablist {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 3vh, 28px);
}
.tablist::-webkit-scrollbar { display: none; }
.tablist button {
  --tab-c: var(--blue-bright);
  font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  padding: 12px 16px; margin-bottom: -1px; white-space: nowrap; cursor: pointer;
  background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.tablist button:hover { color: var(--navy); }
.tablist button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--tab-c); }
.tablist .tc-teal { --tab-c: var(--teal); }
.tablist .tc-purple { --tab-c: var(--purple); }
.tablist .tc-gold { --tab-c: var(--gold); }
.tabs-dark .tablist { border-bottom-color: rgba(255, 255, 255, .16); }
.tabs-dark .tablist button { color: var(--on-dark-muted); }
.tabs-dark .tablist button:hover, .tabs-dark .tablist button[aria-selected="true"] { color: #fff; }
.tabs-dark .tablist button[aria-selected="true"] { border-bottom-color: var(--teal); }

/* Service panels */
.tabpanel.practice {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 48px); padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 36px);
}
.p-gold { --c: var(--gold); --c-soft: #FEF4DF; }
.p-gold .practice-icon { color: var(--gold-ink); }
.tabpanel.practice header { align-content: start; gap: 12px; }
.tabpanel.practice header p { margin-top: 0; }
.tabpanel .practice-foot { margin-top: 4px; }
.tabpanel .svc { grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; align-content: start; }
.tabpanel .svc li, .tabpanel .svc li:last-child { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tabpanel .models { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-content: start; }
.tabpanel .model { padding: 20px; background: var(--sky-2); }
.model h4 { margin: 0; font-family: var(--f-display); font-size: 1.05rem; }

/* Approach panels */
.tabpanel.accel { margin-top: 0; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); align-items: start; }
.tabpanel.accel img { aspect-ratio: auto; height: min(44vh, 360px); }
.accel-copy h3 { font-size: var(--step-1); }
.accel-list > div { padding: 10px 0; }
.tabpanel.stack { margin-top: 0; }
.tabpanel .steps-foot { margin-top: clamp(16px, 3vh, 32px); }

/* Alignment panels */
.vision-align { margin-top: 0; border-top: 0; gap: 16px; }
.vision-align > div { padding: 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); }

/* Core values */
@media (min-width: 900px) {
  .pillar:nth-child(1) { min-height: min(150px, 19vh); }
  .pillar:nth-child(2) { min-height: min(175px, 22vh); }
  .pillar:nth-child(3) { min-height: min(200px, 25vh); }
  .pillar:nth-child(4) { min-height: min(225px, 28vh); }
}

/* One screen per menu section on laptops and desktops */
@media (min-width: 961px) and (min-height: 560px) {
  html { scroll-padding-top: calc(var(--header-h) + 1px); }
  .screen {
    min-height: calc(100svh - var(--header-h) - 1px);
    display: flex; flex-direction: column; justify-content: center;
    padding-block: clamp(24px, 5vh, 72px);
  }
  .screen > .wrap { width: 100%; }
  .home.screen { padding-block: 0; justify-content: flex-start; }
  .home .hero { display: flex; align-items: center; }
  .home .hero-row { padding-block: clamp(24px, 5vh, 80px); }
  .home .hero-copy { max-width: 600px; gap: clamp(14px, 2.4vh, 22px); }
  .hero h1 { font-size: min(var(--step-4), 7vh); }
  .hero h1::after { margin-top: clamp(12px, 2.2vh, 22px); }
  .lead { font-size: min(var(--step-1), 2.7vh); }
  .glance-grid > div { padding-block: clamp(12px, 2.6vh, 28px); }
  .glance dt { font-size: min(2.4rem, 4.6vh); }
  .screen h2 { font-size: min(var(--step-3), 5.4vh); }
  .screen .sub { font-size: min(var(--step-1), 2.7vh); }
  .section-head { margin-bottom: clamp(14px, 3.4vh, 48px); gap: clamp(8px, 1.4vh, 14px); }
  .about-copy { gap: clamp(10px, 1.8vh, 18px); }
  .vm { gap: clamp(10px, 1.8vh, 18px); }
  .vm-card { padding: clamp(16px, 2.8vh, 28px); gap: clamp(8px, 1.4vh, 14px); }
  .mission { gap: clamp(6px, 1.2vh, 12px); }
  .industries li { padding: clamp(16px, 2.8vh, 28px); }
  .contact.screen { padding-block: clamp(24px, 5vh, 72px); }
  .contact-form { gap: clamp(10px, 1.6vh, 16px); }
  .field textarea { min-height: min(120px, 12vh); }
  .contact-list { gap: clamp(8px, 1.4vh, 14px); }
}

@media (max-width: 960px) {
  .tabpanel.practice, .tabpanel.accel { grid-template-columns: 1fr; }
  .tabpanel .models { grid-template-columns: 1fr; }
  .tabpanel.accel img { height: 200px; }
}
@media (max-width: 760px) {
  .tabpanel .svc { grid-template-columns: 1fr; }
  .brand-tag { display: block; font-size: .58rem; letter-spacing: .1em; }
}

/* v3 compaction: practice header on top, services in three columns */
.tabpanel.practice { grid-template-columns: 1fr; gap: clamp(12px, 2.2vh, 24px); }
.tabpanel.practice header { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; }
.tabpanel.practice header .practice-icon { grid-row: span 2; }
.tabpanel.practice header .practice-foot { grid-column: 2; border-top: 0; padding-top: 0; }
.tabpanel .svc { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.tabpanel .svc li, .tabpanel .svc li:last-child { align-content: start; padding: clamp(6px, 1.2vh, 10px) 0; }
.tabpanel .svc strong { font-size: .94rem; }
.tabpanel .svc span { font-size: .86rem; }
.tabpanel .steps p { font-size: .9rem; }
@media (min-width: 961px) and (min-height: 560px) {
  .screen { padding-block: clamp(16px, 4vh, 72px); }
  .tablist { margin-bottom: clamp(12px, 2.4vh, 28px); }
  .tablist button { padding-block: clamp(8px, 1.4vh, 12px); }
  .tabpanel .steps li { gap: clamp(4px, 1vh, 10px); }
}
@media (max-width: 1080px) { .tabpanel .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .tabpanel .svc { grid-template-columns: 1fr; }
  .tabpanel.practice header .practice-foot { grid-column: 1 / -1; }
}
.tabpanel .practice-foot { font-size: .72rem; }
@media (min-width: 961px) and (min-height: 560px) {
  .screen .section-head { max-width: 1040px; }
  .tabpanel.practice { padding-block: clamp(14px, 2.4vh, 32px); }
  .practice-icon { width: 42px; height: 42px; }
}
@media (min-width: 961px) and (max-height: 720px) {
  .tabpanel .svc span { font-size: .82rem; line-height: 1.35; }
  .tabpanel .svc li, .tabpanel .svc li:last-child { padding-block: 5px; }
}
@media (min-width: 961px) and (min-height: 560px) { .screen .section-head { max-width: none; } }
@media (min-width: 961px) and (min-height: 560px) {
  .tabpanel .svc li, .tabpanel .svc li:last-child { padding-block: clamp(5px, .9vh, 10px); }
}
@media (min-width: 961px) and (max-height: 620px) {
  .screen { padding-block: 12px; }
  .tabpanel.practice { padding-block: 10px; }
  .screen .sub { display: none; }
}

/* v4 (18 Oct 2026): Industries and Contact use the same light theme as the other sections */
#industries .industries { background: var(--line); border-color: var(--line); }
#industries .industries li { background: var(--paper); }
#industries .industries li:hover { background: var(--sky); }
#industries .industries h3 { color: var(--navy); }
#industries .industries p { color: var(--muted); }
#industries .vision-align > div { background: var(--paper); border-color: var(--line); }
#industries .vision-align dt { color: var(--blue); }
#industries .vision-align dd { color: #3A4766; }
.contact { background: var(--sky-2); color: var(--navy); border-top: 1px solid var(--line); }
.contact-copy .eyebrow { color: var(--blue); }
.contact-copy h2 { color: var(--navy); }
.contact-copy > p { color: var(--muted); }
.contact-list dt { color: var(--muted); }
.contact-list dd, .contact-list a { color: var(--navy); }
.contact-form { border: 1px solid var(--line); box-shadow: var(--shadow); }
.tabpanel .model p { font-size: .92rem; line-height: 1.5; }
.tabpanel .model .best { padding-top: 8px; margin-top: 2px; }
@media (min-width: 961px) and (max-height: 720px) {
  .tabpanel .model { padding: 14px 16px; gap: 6px; }
  .tabpanel .model p { font-size: .86rem; line-height: 1.45; }
}
