/* ================================================================
   APLEX Solutions · Flagship 2026 rebuild
   One dark cinematic theme. Plus Jakarta Sans only.
   Shape system: surfaces and media 14px, interactive controls pill.
   Single accent: electric cobalt.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --bg:      #06080F;
  --bg-2:    #0A0F1A;
  --bg-3:    #111827;
  --line:    rgba(235, 240, 252, .08);
  --line-2:  rgba(235, 240, 252, .16);
  --text:    #EDF1F9;
  --text-2:  #A9B4CA;
  --text-3:  #66738E;
  --accent:  #3D7FFF;
  --brand:   #1E4FA3;
  --brand-h: #2A60C4;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --gap: clamp(88px, 12vw, 170px);
  --r: 14px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 116px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; }

::selection { background: var(--brand); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Type ── */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.01;
}
.h-section { font-size: clamp(1.9rem, 3.9vw, 3.1rem); font-weight: 700; }
/* Title Case for all major headings (every word capitalised) — applies site-wide */
.display, .display-xl, .h-section, .cta h2, .statement-xl { text-transform: capitalize; }
.h-card { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; }
p { max-width: 62ch; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.7; }
.muted { color: var(--text-3); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── Layout primitives ── */
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: calc(var(--gap) * .62); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { max-width: 560px; }
.hairline { height: 1px; background: var(--line); border: 0; }

/* ── Buttons (pill system) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s;
  will-change: transform;
}
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid {
  background: var(--brand);
  color: #fff;
}
.btn-solid:hover { background: var(--brand-h); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(235, 240, 252, .45); }
.btn-lg { padding: 19px 38px; font-size: 1.04rem; }

.link-plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: border-color .25s, color .25s;
}
.link-plain:hover { border-color: var(--accent); color: var(--accent); }

/* ── Navigation ── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), transform .45s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: transparent;
}
.nav.nav-hidden {
  transform: translateY(-100%);
}
.nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 88px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45));
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  padding: 9px 15px;
  font-size: .94rem;
  font-weight: 500;
  color: #fff;
  border-radius: 999px;
  transition: color .2s, background .2s;
  /* White outline + soft dark shadow keeps words legible over the video */
  text-shadow: 0 0 1px rgba(255, 255, 255, .7), 0 1px 6px rgba(0, 0, 0, .55);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .18); }
.nav-cta { padding: 12px 24px; font-size: .92rem; border: 1px solid rgba(255, 255, 255, .35); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 320;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  transition: transform .35s var(--ease), opacity .2s, background .3s;
}
.burger.open span { background: var(--text); box-shadow: none; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Full screen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 8, 15, .96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease), visibility .4s;
}
.menu.open { visibility: visible; opacity: 1; }
.menu a.menu-link {
  display: block;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 10px 0;
  line-height: 1.1;
  transition: color .2s, transform .3s var(--ease);
}
.menu a.menu-link:hover { color: var(--accent); transform: translateX(10px); }
.menu a.menu-link[aria-current="page"] { color: var(--accent); }
.menu-foot {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .95rem;
  color: var(--text-3);
}
.menu-foot a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  background: var(--bg);
}
.hero-media, .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero-media video.on { opacity: .85; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,8,15,.96) 0%, rgba(6,8,15,.45) 45%, rgba(6,8,15,.55) 100%),
    linear-gradient(100deg, rgba(6,8,15,.85) 0%, rgba(6,8,15,.1) 65%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: calc(var(--nav-h) + 40px) clamp(56px, 9vh, 110px);
}
.hero h1 { max-width: 15ch; }
.hero .line { display: block; overflow: clip; }
.hero .line > span { display: inline-block; }
.hero-sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 62vh, 600px);
  background: var(--bg);
}
.page-hero .hero-inner { padding-bottom: clamp(48px, 7vh, 80px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .hero-sub { max-width: 52ch; }

/* ── Statement (scroll scrub) ── */
.statement { padding-block: calc(var(--gap) * .75); }
.statement p {
  max-width: 22ch;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: var(--text);
  max-width: 24ch;
}
.statement .w { opacity: .13; display: inline-block; }

/* ── Division tabs ── */
.tabs-bar {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 56px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  position: relative;
  padding: 14px 22px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .25s;
}
.tab-btn:hover { color: var(--text-2); }
.tab-btn[aria-selected="true"] { color: var(--text); }
.tab-btn::after {
  content: '';
  position: absolute;
  left: 22px; right: 22px; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.tab-btn[aria-selected="true"]::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tab-media {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.tab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tab-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 16px; }
.tab-body > p { margin-bottom: 28px; }
.tab-list { margin-bottom: 32px; }
.tab-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.tab-list li:first-child { border-top: 1px solid var(--line); }
.tab-list .idx {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3);
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}

/* ── Industries strip ── */
.strip-wrap { position: relative; }
.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip-card {
  flex: 0 0 clamp(240px, 26vw, 320px);
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.strip-card:hover {
  border-color: rgba(61, 127, 255, .45);
  background: var(--bg-3);
  transform: translateY(-4px);
}
.strip-card .num {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.strip-card h3 { font-size: 1.12rem; margin: 44px 0 10px; }
.strip-card p { font-size: .9rem; line-height: 1.6; color: var(--text-3); }
.strip-nav { display: flex; gap: 10px; }
.strip-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.1rem;
  transition: border-color .25s, background .25s, opacity .2s;
}
.strip-btn:hover { border-color: var(--accent); background: rgba(61, 127, 255, .1); }
.strip-btn:disabled { opacity: .3; pointer-events: none; }

/* ── Why (sticky split) ── */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.why-sticky { position: sticky; top: calc(var(--nav-h) + 48px); }
.why-sticky h2 { margin-bottom: 22px; }
.why-sticky p { margin-bottom: 32px; }
.why-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 20px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.why-row:first-child { padding-top: 8px; }
.why-row .big-idx {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 240, 252, .28);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.why-row h3 { font-size: 1.18rem; margin-bottom: 10px; }
.why-row p { font-size: .96rem; color: var(--text-3); }

/* ── CTA band ── */
.cta {
  position: relative;
  overflow: clip;
  padding-block: var(--gap) calc(var(--gap) * .8);
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(30, 79, 163, .34) 0%, transparent 62%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta h2 {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 17ch;
  margin-bottom: 22px;
}
.cta p { margin-bottom: 40px; }
.cta-meta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  font-size: .95rem;
  color: var(--text-3);
}
.cta-meta a { color: var(--text-2); transition: color .2s; }
.cta-meta a:hover { color: var(--text); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-mail {
  display: block;
  padding-block: clamp(40px, 6vw, 72px);
  font-size: clamp(1.5rem, 4.6vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color .25s;
  overflow-wrap: anywhere;
}
.footer-mail:hover { color: var(--accent); }
.footer-mail .arr { display: inline-block; transition: transform .3s var(--ease); font-weight: 400; }
.footer-mail:hover .arr { transform: translate(6px, -4px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 44px;
  padding-block: 44px 56px;
  border-top: 1px solid var(--line);
}
.footer h4 {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer-brand img {
  height: 46px;
  width: auto;
  margin-bottom: 18px;
}
.footer-brand p { font-size: .93rem; color: var(--text-3); max-width: 30ch; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .95rem; color: var(--text-2); width: fit-content; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; font-size: .95rem; }
.footer-contact .lbl { display: block; font-size: .78rem; color: var(--text-3); margin-bottom: 2px; }
.footer-contact a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
}

/* ── Editorial split (about, services) ── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5.5vw, 88px);
  align-items: center;
}
.split.media-right .split-media { order: 2; }
.split-media {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2, .split-body h3 { margin-bottom: 18px; }
.split-body p + p { margin-top: 14px; }

.img-band {
  border-radius: var(--r);
  overflow: hidden;
  max-height: 560px;
}
.img-band img { width: 100%; height: 100%; object-fit: cover; }

/* Two column running text */
.cols-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.cols-2 h3 { font-size: 1.3rem; margin-bottom: 16px; }
.cols-2 p + p { margin-top: 14px; }
.cols-2 p { font-size: .98rem; }

/* Compact focus items */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.focus-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  transition: border-color .3s, background .3s;
}
.focus-item:hover { border-color: rgba(61, 127, 255, .4); background: var(--bg-3); }
.focus-item h3 { font-size: 1.08rem; margin-bottom: 10px; }
.focus-item p { font-size: .93rem; color: var(--text-3); }

/* ── Accordion (industries page) ── */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  text-align: left;
  transition: color .2s;
}
.acc-head .num {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.acc-head h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  transition: color .25s;
}
.acc-head:hover h3 { color: var(--accent); }
.acc-icon {
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .4s var(--ease), border-color .25s, background .25s;
}
.acc-icon::before, .acc-icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  transition: transform .3s;
}
.acc-icon::before { width: 12px; height: 2px; }
.acc-icon::after { width: 2px; height: 12px; }
.acc-item.open .acc-icon { transform: rotate(45deg); border-color: var(--accent); background: rgba(61,127,255,.12); }
.acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s var(--ease);
}
.acc-body-in {
  padding: 0 0 30px 82px;
  max-width: 60ch;
}
.acc-body-in p { color: var(--text-3); }

/* ── Capability grid (asymmetric) ── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cap-cell {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 30px;
  transition: border-color .3s, background .3s;
}
.cap-cell:hover { border-color: rgba(61, 127, 255, .4); background: var(--bg-3); }
.cap-cell .num {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 34px;
  font-variant-numeric: tabular-nums;
}
.cap-cell h3 { font-size: 1.14rem; margin-bottom: 10px; }
.cap-cell p { font-size: .94rem; color: var(--text-3); }
@media (min-width: 861px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-cell:nth-child(even) { transform: translateY(34px); }
  .cap-grid { padding-bottom: 34px; }
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-rows { display: flex; flex-direction: column; }
.contact-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .lbl {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 6px;
}
.contact-row .val {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.contact-row a.val:hover { color: var(--accent); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.map-actions .btn { padding: 12px 22px; font-size: .9rem; }

.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(28px, 4vw, 44px);
}
.form-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-card .form-intro { font-size: .95rem; color: var(--text-3); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--text); }
.form-control, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A9B4CA' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 127, 255, .16);
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--text-3); text-align: center; }

/* ── Reveal states (JS adds .js to <html>) ── */
.js [data-reveal] { opacity: 0; transform: translateY(30px); }
.js .hero [data-stage] { opacity: 0; }
html:not(.js) [data-reveal] { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-sticky { position: static; }
}

@media (max-width: 860px) {
  :root { --nav-h: 96px; --gap: clamp(72px, 14vw, 110px); }
  .nav-links, .nav .nav-cta { display: none; }
  .burger { display: block; }

  .tab-panel.active { grid-template-columns: 1fr; gap: 28px; }
  .tab-media { aspect-ratio: 16 / 10; }

  .split, .split.media-right { grid-template-columns: 1fr; }
  .split.media-right .split-media { order: 0; }
  .cols-2 { grid-template-columns: 1fr; gap: 36px; }

  .focus-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .acc-head { grid-template-columns: 44px minmax(0, 1fr) 36px; }
  .acc-body-in { padding-left: 62px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  :root { --pad: 18px; }
  .strip-card { flex-basis: 78vw; }
  .acc-body-in { padding-left: 0; }
  .btn { padding: 15px 24px; }
}

/* ================================================================
   v3.5 · Cinematic layer
   Story panels, masked type, image reveals, process steps,
   editorial capability rows.
   ================================================================ */

.display-xl {
  font-size: clamp(2.7rem, 7.6vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .99;
}

/* Masked word reveals: JS wraps words into .mw > span */
[data-mask] .mw {
  display: inline-block;
  overflow: clip;
  vertical-align: bottom;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
[data-mask] .mw > span { display: inline-block; }
.js [data-mask].masked .mw > span { transform: translateY(112%); }

/* Cinematic image reveal: wrapper clips, image settles from a zoom */
.reveal-img { overflow: clip; }
.reveal-img img { will-change: transform; }

/* ── Story panels (immersive industry storytelling) ── */
.story-panel {
  position: relative;
  min-height: clamp(480px, 82vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: clip;
  border-radius: var(--r);
  margin-bottom: 14px;
  background: var(--bg-3);
}
.story-panel .media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}
.story-panel .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,8,15,.92) 0%, rgba(6,8,15,.28) 52%, rgba(6,8,15,.34) 100%);
}
.story-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(28px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: end;
}
.story-panel.flip .story-body { direction: rtl; }
.story-panel.flip .story-body > * { direction: ltr; }
.story-idx {
  position: absolute;
  top: clamp(22px, 3.5vw, 40px);
  left: clamp(28px, 4.5vw, 56px);
  z-index: 2;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(237, 241, 249, .65);
  font-variant-numeric: tabular-nums;
}
.story-body h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.story-body .story-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.story-body p { color: rgba(237, 241, 249, .78); font-size: .98rem; max-width: 44ch; }
.story-body .link-plain { border-color: rgba(237, 241, 249, .35); }

/* ── Chapter bands (industries page) ── */
.chapter { margin-bottom: clamp(56px, 9vw, 110px); }
.chapter-list { border-top: 1px solid var(--line); margin-top: 34px; }
.chapter-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 18px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .25s;
}
.chapter-row .num {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.chapter-row h4 { font-size: 1.14rem; font-weight: 700; }
.chapter-row p { font-size: .94rem; color: var(--text-3); margin: 0; }

/* ── Process (services page) ── */
.proc-step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  opacity: .35;
  transition: opacity .5s var(--ease);
}
.proc-step.active { opacity: 1; }
.proc-step .big-idx {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 241, 249, .35);
  font-variant-numeric: tabular-nums;
  transition: color .5s;
}
.proc-step.active .big-idx { color: var(--accent); -webkit-text-stroke: 0; }
.proc-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.proc-step p { font-size: .97rem; color: var(--text-3); }

/* ── Capability rows (replaces card grid) ── */
.cap-rows { border-top: 1px solid var(--line); }
.cap-row {
  display: grid;
  grid-template-columns: 96px minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px 40px;
  padding: clamp(26px, 3.6vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left .35s var(--ease);
}
@media (hover: hover) {
  .cap-row:hover { padding-left: 14px; }
}
.cap-row .big-idx {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 241, 249, .3);
  font-variant-numeric: tabular-nums;
}
.cap-row:hover .big-idx { -webkit-text-stroke-color: rgba(61, 127, 255, .75); }
.cap-row h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.cap-row p { font-size: .96rem; color: var(--text-3); margin: 0; }

/* ── Values rows (about page) ── */
.value-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px 48px;
  padding: clamp(28px, 4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.value-row:first-child { border-top: 1px solid var(--line); }
.value-row h3 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.value-row p { font-size: .97rem; color: var(--text-3); margin: 0; }

/* Larger statement variant */
.statement p.statement-xl {
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: none;
}

/* Sub-copy under the big statement (beats .statement p specificity) */
.statement p.statement-sub {
  margin-top: 34px;
  max-width: 52ch;
  color: var(--text-3);
  font-size: .98rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.75;
}

/* v3.5 responsive */
@media (max-width: 860px) {
  .story-panel { min-height: 66vh; }
  .story-body { grid-template-columns: 1fr; gap: 14px; }
  .chapter-row { grid-template-columns: 44px minmax(0, 1fr); }
  .chapter-row p { grid-column: 2; }
  .proc-step { grid-template-columns: 64px minmax(0, 1fr); }
  .cap-row { grid-template-columns: 56px minmax(0, 1fr); }
  .cap-row p { grid-column: 2; }
  .value-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ── Entrance / intro curtain (shown on every page load) ── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
/* Only reveal the curtain when JS can lift it — avoids trapping no-JS users. */
html:not(.js) .intro { display: none; }
.intro.done { transform: translateY(-100%); transition: transform 1s var(--ease); }
.intro[hidden] { display: none; }
.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.intro-logo {
  height: clamp(52px, 8vw, 68px);
  width: auto;
  opacity: 0;
  transform: translateY(10px) scale(.96);
}
.intro-bar {
  display: block;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Motion safety ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js .hero [data-stage] { opacity: 1 !important; transform: none !important; }
  .statement .w { opacity: 1 !important; }
  .js [data-mask].masked .mw > span { transform: none !important; }
  .proc-step { opacity: 1 !important; }
  .story-panel .media { inset: 0; }
  .intro-logo { opacity: 1 !important; transform: none !important; }
}
