/* JVLabs IT Solutions: dark site styles */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist:vf@latest/latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/fontsource/fonts/geist-mono:vf@latest/latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --fg: #f5f5f5;
  --fg-2: #d4d4d4;
  --fg-3: #a3a3a3;
  --fg-4: #6b6b6b;
  --accent: #72DA38;
  --accent-dim: rgba(114,218,56,0.14);
  --inf: #72DA38;
  --warn: #fbbf24;
  --err: #f87171;
  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --r: 14px;
  --r-sm: 8px;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
::selection { background: rgba(114,218,56,0.22); color: var(--fg); }

/* ───────── Intro overlay ───────── */
#intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: #060605;
  pointer-events: none;
  will-change: opacity;
}
#intro.gone { opacity: 0; transition: opacity .45s ease; }
#intro.removed { display: none; }
.intro-stage {
  width: min(560px, 82vw);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
  font-family: var(--mono);
  color: var(--fg-3);
}
.intro-mark {
  width: min(280px, 68vw); height: auto;
  border: 0;
  background: transparent;
  display: block;
  position: relative;
  animation: introLogo .65s cubic-bezier(.2,.8,.2,1) both;
}
.intro-mark img { width: 100%; height: auto; }
.intro-rule {
  width: 72px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  animation: introRule .55s cubic-bezier(.2,.8,.2,1) .28s both;
}
.intro-tagline {
  color: var(--fg-3);
  font-size: clamp(9px, 1.25vw, 11px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  animation: introCopy .5s ease .48s both;
}

@keyframes introLogo {
  from { opacity: 0; transform: translateY(5px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes introRule {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes introCopy {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .intro-stage { width: min(420px, 86vw); gap: 16px; }
  .intro-tagline { max-width: 32ch; letter-spacing: .14em; }
}

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad);
  background: rgba(10,10,10,0.72);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { width: 118px; height: auto; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 12px;
  font-size: 14px; color: var(--fg-3);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-3); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden;
}
.lang-toggle a {
  display: inline-block; padding: 6px 10px; color: var(--fg-4); letter-spacing: 0.06em;
  text-decoration: none; transition: color .2s, background .2s;
}
.lang-toggle a.active { color: var(--bg); background: var(--fg); }
.lang-toggle a:not(.active):hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn > span { white-space: nowrap; }
.btn-primary {
  background: var(--accent); color: #0b1607;
  border: 1px solid var(--accent);
}
.btn-primary:hover { transform: translateY(-1px); background: #8AE65B; }
.btn-primary .arr {
  width: 14px; height: 14px;
  transition: transform .2s;
}
.btn-primary:hover .arr { transform: translateX(2px); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--fg);
}
.btn-ghost:hover { background: var(--bg-3); border-color: var(--fg-3); }
.btn-large { padding: 14px 22px; font-size: 15px; }

/* mobile nav */
.nav-burger { display: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; align-items: center; justify-content: center; }
.nav-burger svg { width: 16px; height: 16px; stroke: var(--fg); }

@media (max-width: 820px) {
  .nav { gap: 10px; }
  .brand-logo { width: 78px; }
  .nav-right { gap: 10px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; font-size: 15px; }
  .nav-burger { display: flex; }
  .btn-primary span:not(.arr) { display: inline; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: clamp(56px, 9vh, 96px) var(--pad) clamp(64px, 10vh, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-stack-col {
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
  min-width: 0;
}
.hero-text { min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--fg-3); text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-size: clamp(48px, 7.4vw, 112px);
  font-weight: 600;
  line-height: 0.96; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--fg-3);
  max-width: 56ch;
}
.hero-cta-row {
  margin-top: 36px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.hero-photo-wrap {
  position: relative;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: #2c2c2c;
  aspect-ratio: 4/5;
  max-height: 620px;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 30% 40%;
}
.hero-rec {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.66);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-2);
}
/* terminal background */
.term-bg {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.65;
  color: var(--fg-4);
  padding: clamp(56px, 9vh, 96px) var(--pad) 0;
  white-space: pre;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 12%, rgba(0,0,0,0.7) 50%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 12%, rgba(0,0,0,0.7) 50%, transparent 95%);
  opacity: 0.22;
  user-select: none;
}
.hero::after {
  /* Fade band behind the headline/sub/CTAs so the terminal lines don't fight copy */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 30% 60%, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.6) 45%, transparent 75%);
}
.term-bg .row { display: block; }
.term-bg .ts { color: #555; }
.term-bg .ok { color: var(--accent); }
.term-bg .inf { color: var(--inf); }
.term-bg .warn { color: var(--warn); }
.term-bg .err { color: var(--err); }
.term-bg .row.new { animation: termIn .35s ease; }
@keyframes termIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; max-width: 320px; aspect-ratio: 4/5; max-height: 380px; }
  .term-bg { font-size: 11px; }
}
@media (max-width: 520px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; }
}

/* ───────── Section base ───────── */
section.block {
  padding: clamp(80px, 10vh, 140px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.block-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.section-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--fg-4); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--fg-4);
}
.section-title {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.05;
  text-wrap: balance;
  margin-top: 16px;
}
.section-title .accent { color: var(--accent); }
.section-kicker {
  max-width: 46ch; color: var(--fg-3); font-size: 16px;
}

/* ───────── Services ───────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.svc-card {
  background: var(--bg-2);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .25s;
  cursor: pointer;
}
.svc-card:hover { background: var(--bg-3); }
.svc-card.lead { background: var(--bg-2); }
.svc-card.lead::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}
.svc-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-4);
  display: flex; align-items: center; justify-content: space-between;
}
.svc-num .lead-tag {
  color: var(--accent);
}
.svc-title {
  font-size: 22px;
  font-weight: 500; line-height: 1.18; letter-spacing: -0.015em;
  color: var(--fg);
}
.svc-desc { color: var(--fg-3); font-size: 14.5px; line-height: 1.55; }
.svc-toggle {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-4);
  text-transform: uppercase;
}
.svc-toggle .chev {
  width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 4px;
  display: grid; place-items: center;
  transition: transform .2s, border-color .2s, background .2s;
}
.svc-card[aria-expanded="true"] .svc-toggle .chev { transform: rotate(45deg); border-color: var(--accent); background: var(--accent-dim); }
.svc-card[aria-expanded="true"] .svc-toggle { color: var(--accent); }
.svc-detail {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.svc-detail-inner { overflow: hidden; }
.svc-card[aria-expanded="true"] .svc-detail { grid-template-rows: 1fr; }
.svc-detail ul {
  list-style: none;
  padding: 14px 0 0; margin: 0;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.svc-detail li {
  font-size: 14px; color: var(--fg-2);
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--mono);
  letter-spacing: -0.005em;
}
.svc-detail li::before {
  content: "→"; color: var(--accent); font-family: var(--mono); flex-shrink: 0;
}

@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-footnote {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  font-size: 15px; color: var(--fg-2);
  background: var(--bg-2);
}
.svc-footnote .mono {
  font-family: var(--mono); color: var(--accent); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-right: 12px;
}

/* ───────── Residential teaser ───────── */
.residential-teaser { background: var(--bg-2); }
.residential-teaser-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  gap: clamp(32px, 7vw, 112px); align-items: end;
}
.residential-teaser .section-title { max-width: 12ch; }
.residential-teaser-copy { max-width: 47ch; }
.residential-teaser-copy p { color: var(--fg-3); font-size: 16px; line-height: 1.65; }
.residential-teaser-actions { margin-top: 26px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.residential-note { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--fg-4); }
@media (max-width: 760px) {
  .residential-teaser-inner { grid-template-columns: 1fr; }
}

/* ───────── About ───────── */
.about-block { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-left { display: flex; flex-direction: column; gap: 0; }
.about-prose {
  margin-top: 28px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
  max-width: 54ch;
}
.about-prose p + p { margin-top: 16px; }
.about-prose .accent { color: var(--accent); }

.about-right { display: flex; flex-direction: column; gap: 24px; }

.about-photo-wrap {
  position: relative;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: #2a2a2a;
  aspect-ratio: 4/5;
  max-height: 420px;
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
}
.about-photo-label {
  position: absolute; bottom: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.72);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-2);
}
.about-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.about-meta .cell {
  background: var(--bg-2);
  padding: 16px 18px;
}
.about-meta .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--fg-4); text-transform: uppercase;
  margin-bottom: 6px;
}
.about-meta .val { font-size: 14px; color: var(--fg); }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-right { flex-direction: row; flex-wrap: wrap; }
  .about-photo-wrap { max-height: 280px; flex: 1 1 220px; }
  .about-meta { flex: 1 1 220px; }
}

/* ───────── Contact ───────── */
.contact-block {
  background: var(--bg-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-side { max-width: 32ch; }
.contact-side .section-title { font-size: clamp(34px, 4vw, 52px); }
.contact-side p { color: var(--fg-3); margin-top: 18px; font-size: 16px; line-height: 1.55; }
.contact-side .meta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.contact-side .meta .row {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: start;
  font-family: var(--mono); font-size: 13px; color: var(--fg-2);
}
.contact-side .meta .row .label {
  color: var(--fg-4);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--fg-4); text-transform: uppercase;
  display: flex; gap: 8px; align-items: center;
}
.field label .opt { color: var(--fg-4); font-size: 10px; opacity: 0.7; }
.field input, .field select, .field textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--fg);
  transition: border-color .2s, background .2s;
  width: 100%;
  min-width: 0;
}
.field textarea { min-height: 130px; resize: vertical; font-family: var(--sans); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--bg-2);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--err);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23a3a3a3' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px;
  padding-right: 40px;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; min-width: 0; }

.contact-form button[type="submit"] {
  margin-top: 6px;
  align-self: flex-start;
}

.form-status {
  font-family: var(--mono); font-size: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: var(--accent); border-color: rgba(114,218,56,0.3); background: var(--accent-dim); }
.form-status.err { color: var(--err); border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.06); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ───────── Footer ───────── */
footer {
  position: relative;
  overflow: hidden;
  padding: 38px var(--pad) clamp(146px, 17vw, 186px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(42vw, 380px);
  height: 128px;
  transform: translateX(-50%);
  background: url('/assets/jvlabs-nav-logo.png') center / contain no-repeat;
  opacity: 1;
  pointer-events: none;
}
.foot {
  position: relative;
  z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--fg-4);
  letter-spacing: 0.04em;
}
.foot a:hover { color: var(--fg-2); }

@media (max-width: 600px) {
  footer { padding-bottom: 130px; }
  footer::before { width: min(72vw, 280px); height: 96px; bottom: 12px; }
}

/* ───────── Reveal on scroll ───────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ───────── Residential page ───────── */
.nav-links a.active { color: var(--fg); background: var(--bg-3); }
.res-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(720px, calc(100svh - 70px)); display: grid; align-items: center;
  padding: clamp(100px, 16vh, 180px) var(--pad) clamp(90px, 12vh, 150px);
  border-bottom: 1px solid var(--line);
}
.res-hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .48;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px), radial-gradient(circle at 80% 15%, rgba(114, 218, 56, .16), transparent 32%);
  background-size: 64px 64px, 64px 64px, auto;
  mask-image: linear-gradient(110deg, black 0%, rgba(0,0,0,.8) 50%, transparent 100%);
}
.res-hero-inner { width: 100%; }
.res-hero h1 { max-width: 14ch; font-size: clamp(48px, 7.4vw, 104px); line-height: .98; letter-spacing: -.055em; font-weight: 540; }
.res-hero .hero-sub { max-width: 58ch; margin-top: 30px; }
.res-hero-note { margin-top: 26px; color: var(--fg-4); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.res-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.res-service-card { background: var(--bg-2); padding: 32px 28px; min-height: 285px; transition: background .25s; }
.res-service-card:hover { background: var(--bg-3); }
.res-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--accent); }
.res-icon svg { width: 23px; height: 23px; }
.res-service-card h3 { margin-top: 50px; font-size: 22px; line-height: 1.18; letter-spacing: -.018em; font-weight: 500; }
.res-service-card p { margin-top: 14px; color: var(--fg-3); font-size: 14.5px; line-height: 1.6; max-width: 35ch; }
.res-process { background: var(--bg); }
.res-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 60px); margin-top: 40px; }
.res-process-step { border-top: 1px solid var(--line-2); padding-top: 18px; }
.res-process-step > span { color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.res-process-step h3 { margin-top: 38px; font-weight: 500; font-size: 21px; }
.res-process-step p { margin-top: 12px; color: var(--fg-3); line-height: 1.6; font-size: 15px; max-width: 33ch; }
@media (max-width: 900px) { .res-service-grid, .res-process-grid { grid-template-columns: 1fr; } .res-service-card { min-height: 0; } .res-service-card h3 { margin-top: 28px; } }
@media (max-width: 640px) { .res-hero { min-height: 600px; } .res-hero-grid { background-size: 44px 44px, 44px 44px, auto; } }

/* ───────── Bilingual redesign system ─────────
   Additive styles below deliberately leave the intro overlay and terminal
   background rules above untouched. */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 11px 15px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Long bilingual navigation remains usable before the mobile menu takes over. */
.nav-links a { min-height: 40px; display: inline-flex; align-items: center; }
.nav-burger { min-width: 44px; min-height: 44px; }
@media (max-width: 1030px) and (min-width: 821px) {
  .nav { gap: 12px; }
  .nav-links { margin-left: 0; }
  .nav-links a { padding-inline: 8px; font-size: 13px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { padding-inline: 12px; }
}

/* Shared content sections. */
.story-block { background: var(--bg); }
.story-block.alt { background: var(--bg-2); }
.story-block .section-head { align-items: end; }
.story-block .section-title { max-width: 16ch; }
.story-intro {
  max-width: 56ch;
  color: var(--fg-3);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.62;
}

.problem-grid,
.solution-grid,
.engagement-grid,
.differentiator-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
}
.problem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.solution-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.engagement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.differentiator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.problem-card,
.solution-card,
.engagement-card,
.differentiator-card,
.detail-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  background: var(--bg-2);
  padding: clamp(23px, 2.4vw, 34px);
}
.story-block.alt .problem-card,
.story-block.alt .solution-card,
.story-block.alt .engagement-card,
.story-block.alt .differentiator-card { background: var(--bg); }
.problem-card::before,
.solution-card::before,
.engagement-card::before,
.differentiator-card::before {
  content: attr(data-index);
  min-height: 18px;
  margin-bottom: 30px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
}
.problem-card h3,
.solution-card h3,
.engagement-card h3,
.differentiator-card h3,
.detail-card h3 {
  color: var(--fg);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 540;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.problem-card p,
.solution-card p,
.engagement-card p,
.differentiator-card p,
.detail-card p { margin-top: 14px; color: var(--fg-3); font-size: 15px; line-height: 1.6; }
.solution-card {
  min-height: 306px;
  text-decoration: none;
  transition: background .22s ease, transform .22s ease;
}
.solution-card:hover { background: var(--bg-3); transform: translateY(-2px); }
.solution-card .card-link,
.solution-card > span:last-child:not(.solution-card__copy) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.solution-card .card-link::after,
.solution-card > span:last-child:not(.solution-card__copy)::after { content: "↗"; font-size: 14px; }
.solution-card .capabilities,
.detail-card .capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.capabilities span,
.capability-list span {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .03em;
}

.integration-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}
.integration-copy { max-width: 49ch; }
.integration-copy p { margin-top: 20px; color: var(--fg-3); font-size: 17px; line-height: 1.65; }
.plain-definition {
  margin-top: 28px;
  border-left: 2px solid var(--accent);
  padding: 13px 0 13px 17px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.5;
}
.integration-flow,
.flow-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
  list-style: none;
}
.flow-step,
.flow-list > li {
  position: relative;
  background: var(--bg);
  padding: 21px 22px 22px 62px;
}
.flow-step::before,
.flow-list > li::before {
  content: attr(data-index);
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}
.flow-step h3,
.flow-list h3 { font-size: 17px; font-weight: 560; letter-spacing: -.015em; }
.flow-step p,
.flow-list p { margin-top: 7px; color: var(--fg-3); font-size: 14px; line-height: 1.55; }
.flow-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 14px;
  color: var(--fg-2);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
}
.flow-line span { display: inline-flex; align-items: center; gap: 9px; }
.flow-line span:not(:last-child)::after { content: "→"; color: var(--accent); }

.engagement-card { min-height: 282px; }
.engagement-card .eyebrow,
.detail-card .eyebrow {
  margin-bottom: 26px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.engagement-card .card-link { margin-top: auto; padding-top: 24px; }

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 38px);
  margin-top: clamp(38px, 6vw, 68px);
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-2);
}
.process-step { position: relative; padding-top: 37px; }
.process-step::before {
  content: attr(data-index);
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1607;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}
.process-step h3 { color: var(--fg); font-size: 19px; font-weight: 550; letter-spacing: -.015em; }
.process-step p { margin-top: 11px; color: var(--fg-3); font-size: 14px; line-height: 1.55; }

.company-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .75fr);
  gap: clamp(32px, 8vw, 120px);
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(28px, 5vw, 62px);
  background: linear-gradient(135deg, rgba(114,218,56,.10), transparent 38%), var(--bg-2);
}
.company-teaser p { margin-top: 22px; max-width: 56ch; color: var(--fg-3); font-size: 17px; line-height: 1.65; }
.company-teaser .btn { margin-top: 28px; }
.company-teaser-meta { border-left: 1px solid var(--line-2); padding-left: 25px; }
.company-teaser-meta span { display: block; color: var(--fg-4); font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.company-teaser-meta strong { display: block; margin-top: 9px; color: var(--fg); font-size: 17px; font-weight: 500; line-height: 1.45; }

/* ───────── Shared interior pages ───────── */
.inner-page { background: var(--bg); }
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(76px, 13vh, 154px) var(--pad) clamp(64px, 10vh, 116px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .62;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 20%, rgba(114,218,56,.16), transparent 30%);
  background-size: 62px 62px, 62px 62px, auto;
  mask-image: linear-gradient(105deg, black 0%, rgba(0,0,0,.78) 52%, transparent 100%);
  -webkit-mask-image: linear-gradient(105deg, black 0%, rgba(0,0,0,.78) 52%, transparent 100%);
}
.page-hero-inner,
.page-hero__inner,
.page-section-inner { max-width: var(--maxw); margin: 0 auto; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 30px;
  color: var(--fg-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden="true"] { color: var(--fg-4); }
.page-hero .section-eyebrow { color: var(--fg-3); }
.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 570;
  letter-spacing: -.048em;
  line-height: .97;
  text-wrap: balance;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero .lede { max-width: 62ch; margin-top: 28px; color: var(--fg-2); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.58; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.page-section { padding: clamp(72px, 10vh, 132px) var(--pad); border-bottom: 1px solid var(--line); }
.page-section.alt { background: var(--bg-2); }
.page-section .section-title { max-width: 16ch; }
.page-section .section-copy { max-width: 62ch; color: var(--fg-3); font-size: 17px; line-height: 1.65; }
.page-section .section-copy + .page-grid,
.page-section .section-head + .page-grid { margin-top: clamp(34px, 5vw, 58px); }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.page-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.detail-card { min-height: 245px; background: var(--bg-2); }
.page-section.alt .detail-card { background: var(--bg); }
.detail-card .detail-number { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }
.detail-card .detail-number + h3 { margin-top: 30px; }
.detail-card ul {
  display: grid;
  gap: 9px;
  margin: 19px 0 0;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
}
.detail-card li { display: flex; gap: 9px; }
.detail-card li::before { content: "→"; flex: none; color: var(--accent); font-family: var(--mono); }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 7vw, 104px);
  align-items: start;
}
.page-layout .section-copy { margin-top: 22px; }
.page-layout .flow-list { margin-top: 4px; }
.service-nav {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--line);
}
.service-nav a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 85px;
  padding: 18px 22px;
  background: var(--bg-2);
  transition: background .2s ease;
}
.service-nav a:hover { background: var(--bg-3); }
.service-nav .nav-number { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.service-nav h3 { font-size: 19px; font-weight: 520; letter-spacing: -.018em; }
.service-nav p { margin-top: 4px; color: var(--fg-3); font-size: 13px; line-height: 1.45; }
.service-nav .arrow { color: var(--accent); font-family: var(--mono); }

.faq-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.faq-list details { background: var(--bg-2); }
.faq-list summary {
  position: relative;
  min-height: 64px;
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  color: var(--fg);
  font-size: 17px;
  font-weight: 520;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 17px; right: 22px; color: var(--accent); font-family: var(--mono); font-size: 24px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { max-width: 72ch; padding: 0 22px 23px; color: var(--fg-3); font-size: 15px; line-height: 1.65; }

.page-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(114,218,56,.3);
  border-radius: var(--r);
  background: linear-gradient(115deg, rgba(114,218,56,.15), transparent 50%), var(--bg-2);
}
.page-cta::after {
  content: "";
  position: absolute;
  right: -16%;
  bottom: -46%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(114,218,56,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(114,218,56,.045), 0 0 0 108px rgba(114,218,56,.025);
  pointer-events: none;
}
.page-cta > * { position: relative; z-index: 1; }
.page-cta h2 { max-width: 14ch; font-size: clamp(32px, 4.4vw, 58px); font-weight: 540; letter-spacing: -.03em; line-height: 1.02; }
.page-cta p { max-width: 53ch; margin-top: 19px; color: var(--fg-2); font-size: 17px; line-height: 1.6; }
.page-cta .btn { margin-top: 28px; }

.company-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr);
  gap: clamp(30px, 7vw, 100px);
  align-items: start;
}
.company-profile .about-photo-wrap { max-height: 480px; }
.company-profile .about-prose { margin-top: 20px; }

.contact-page .contact-block { padding-top: 0; }
.contact-form .form-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-note { color: var(--fg-4); font-size: 12px; line-height: 1.5; }
.form-status { scroll-margin-top: 110px; }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ───────── Closing contact + useful footer ───────── */
.contact-block { position: relative; overflow: hidden; }
.contact-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .8;
  background:
    radial-gradient(ellipse 48% 42% at 10% 100%, rgba(114,218,56,.10), transparent 70%),
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 52px 52px;
}
.contact-block > .block-inner { position: relative; z-index: 1; }
.contact-side .section-eyebrow::before { background: var(--accent); }
.contact-side .meta .row a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(114,218,56,.45); text-underline-offset: 4px; }
.contact-side .meta .row a:hover { color: var(--accent); }
.contact-form { box-shadow: 0 18px 56px rgba(0,0,0,.22); }
.contact-form[aria-busy="true"] { opacity: .8; }
.contact-form button[aria-busy="true"] { cursor: progress; }

footer,
.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 86px) var(--pad) 24px;
  border-top: 1px solid var(--line);
  background: #080a08;
}
footer::before,
.site-footer::before {
  content: "";
  position: absolute;
  right: clamp(-70px, -5vw, -16px);
  bottom: clamp(42px, 4vw, 72px);
  width: min(46vw, 525px);
  height: min(17vw, 192px);
  background: url('/assets/jvlabs-nav-logo.png') right bottom / contain no-repeat;
  opacity: .075;
  filter: grayscale(1);
  pointer-events: none;
}
footer::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(90deg, rgba(114,218,56,.065) 1px, transparent 1px),
    linear-gradient(rgba(114,218,56,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(160deg, transparent 5%, black 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(160deg, transparent 5%, black 62%, transparent 100%);
}
.footer-grid,
.site-footer .footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 1fr));
  gap: clamp(28px, 5vw, 76px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: clamp(40px, 6vw, 70px);
}
.footer-brand { max-width: 34ch; }
.footer-brand img { width: min(152px, 100%); height: auto; }
.footer-brand p { margin-top: 20px; color: var(--fg-3); font-size: 15px; line-height: 1.6; }
.footer-brand .btn { margin-top: 22px; }
.footer-nav,
.footer-meta { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.footer-nav h2,
.footer-meta h2 {
  color: var(--fg-4);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.footer-nav a,
.footer-meta a,
.footer-meta span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.35;
}
.footer-nav a:hover,
.footer-meta a:hover { color: var(--accent); }
.footer-meta .lang-toggle { margin-top: 16px; }
.footer-bottom,
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
  flex-wrap: wrap;
  color: var(--fg-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.footer-bottom a,
.foot a { color: var(--fg-3); }
.footer-bottom a:hover,
.foot a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-watermark { display: none; }

@media (max-width: 1040px) {
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid,
  .site-footer .footer-grid { grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(140px, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: 48ch; }
}
@media (max-width: 820px) {
  .solution-grid,
  .engagement-grid,
  .differentiator-grid,
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integration-layout,
  .page-layout,
  .company-teaser,
  .company-profile { grid-template-columns: 1fr; }
  .company-teaser-meta { border-top: 1px solid var(--line-2); border-left: 0; padding-top: 22px; padding-left: 0; }
  .process-steps { grid-template-columns: 1fr; gap: 0; }
  .process-steps::before { top: 0; bottom: 0; left: 9px; right: auto; width: 1px; height: auto; }
  .process-step { min-height: 124px; padding: 0 0 26px 39px; }
  .process-step::before { top: -1px; left: 0; }
  .page-hero::before { background-size: 46px 46px, 46px 46px, auto; }
  .footer-grid,
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav { min-height: 70px; }
  .nav-right .btn { display: none; }
  .nav-links a { min-height: 48px; }
  .story-block .section-title,
  .page-section .section-title { max-width: 100%; }
  .problem-grid,
  .solution-grid,
  .engagement-grid,
  .differentiator-grid,
  .page-grid,
  .page-grid.two,
  .page-grid.four { grid-template-columns: 1fr; }
  .solution-card { min-height: 0; }
  .solution-card .card-link { min-height: 38px; }
  .page-hero { padding-top: 72px; }
  .page-hero h1 { max-width: 100%; }
  .page-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .page-hero .hero-actions .btn { justify-content: center; }
  .service-nav a { grid-template-columns: 30px minmax(0, 1fr) auto; padding-inline: 16px; }
  .service-nav h3 { font-size: 17px; }
  .contact-form .form-context { grid-template-columns: 1fr; }
  .footer-grid,
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  footer::before,
  .site-footer::before { width: min(88vw, 350px); height: 110px; right: -48px; bottom: 35px; }
  .footer-bottom,
  .foot { align-items: flex-start; flex-direction: column; }
}

/* Naming aliases used by the static interior-page templates. */
.breadcrumbs {
  margin-bottom: 30px;
  color: var(--fg-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 7px; color: var(--fg-4); }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero .page-hero__lede { max-width: 62ch; margin-top: 28px; color: var(--fg-2); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.58; }
section.page-section.block { padding: clamp(72px, 10vh, 132px) var(--pad); }
.page-section--surface { background: var(--bg-2); }
.page-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-grid > :not(.detail-card) { min-width: 0; background: var(--bg-2); padding: clamp(23px, 3vw, 40px); }
.page-section--surface .page-grid > :not(.detail-card) { background: var(--bg); }
.page-copy { max-width: 61ch; color: var(--fg-3); font-size: 16px; line-height: 1.65; }
.page-copy p + p { margin-top: 16px; }
.page-copy .section-eyebrow { margin-bottom: 15px; }
.text-link { display: inline-flex; gap: 9px; margin-top: 26px; color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.text-link:hover { color: var(--fg); }
.leadership-block__image { position: relative; overflow: hidden; min-height: 310px; padding: 0 !important; background: var(--bg-3) !important; }
.leadership-block__image img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; object-position: center 18%; }
.leadership-block__image figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(0,0,0,.74); color: var(--fg-2); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
section.page-cta.block { padding: clamp(72px, 10vh, 132px) var(--pad); border-bottom: 1px solid var(--line); background: var(--bg); }
.page-cta .block-inner { max-width: var(--maxw); margin: 0 auto; }
.page-cta__inner { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 68px); border: 1px solid rgba(114,218,56,.3); border-radius: var(--r); background: linear-gradient(115deg, rgba(114,218,56,.15), transparent 50%), var(--bg-2); }
.page-cta__inner::after { content: ""; position: absolute; right: -16%; bottom: -46%; width: 58%; aspect-ratio: 1; border: 1px solid rgba(114,218,56,.16); border-radius: 50%; box-shadow: 0 0 0 54px rgba(114,218,56,.045), 0 0 0 108px rgba(114,218,56,.025); pointer-events: none; }
.page-cta__inner > * { position: relative; z-index: 1; }
.page-cta__inner h2 { max-width: 14ch; font-size: clamp(32px, 4.4vw, 58px); font-weight: 540; letter-spacing: -.03em; line-height: 1.02; }
.page-cta__inner p { max-width: 53ch; margin-top: 19px; color: var(--fg-2); font-size: 17px; line-height: 1.6; }
.page-cta__inner .btn { margin-top: 28px; }

.site-footer .site-footer__inner {
  display: grid;
  grid-template-columns: minmax(140px, .72fr) minmax(0, 2fr) auto;
  align-items: center;
  justify-content: normal;
  padding-bottom: 24px;
}
.site-footer__brand img { width: 130px; height: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 18px; }
.site-footer__nav a { display: inline-flex; min-height: 38px; align-items: center; color: var(--fg-3); font-size: 13px; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__inner > p { white-space: nowrap; }
@media (max-width: 820px) {
  .page-grid--three, .page-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .site-footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 16px; }
  .site-footer__nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .page-grid--two, .page-grid--three, .page-grid--four { grid-template-columns: 1fr; }
  .page-hero .page-hero__lede { font-size: 17px; }
}

/* Homepage template aliases. */
.problem-card:not([data-index])::before,
.solution-card:not([data-index])::before,
.engagement-card:not([data-index])::before,
.differentiator-card:not([data-index])::before,
.flow-step:not([data-index])::before,
.process-step:not([data-index])::before { display: none; }
.solution-index { display: block; margin-bottom: 30px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .15em; }
.solution-capabilities { display: block; margin-top: 20px; color: var(--fg-4); font-family: var(--mono); font-size: 10px; line-height: 1.55; letter-spacing: .025em; }
.solution-link { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.solution-card:hover .solution-link { color: var(--fg); }
.integration-intro { max-width: 52ch; }
.integration-definition { margin-top: 22px; border-left: 2px solid var(--accent); padding: 11px 0 11px 16px; color: var(--fg); font-size: 17px; line-height: 1.55; }
.integration-flow .flow-step { padding-left: 22px; }
.integration-flow .flow-step .solution-index { margin-bottom: 20px; }
.integration-flow .flow-step p { max-width: 62ch; }
.integration-case-note,
.integration-note,
.section-note { max-width: 76ch; margin-top: 18px; color: var(--fg-3); font-size: 14px; line-height: 1.6; }
.integration-case-note { border-left: 2px solid rgba(114,218,56,.5); padding-left: 14px; color: var(--fg-2); }
.section-action { margin-top: 28px; }
.process-steps { list-style: none; }
.process-step .solution-index { position: absolute; top: 0; left: 0; z-index: 2; display: grid; width: 19px; height: 19px; margin: 0; place-items: center; border-radius: 50%; background: var(--accent); color: #0b1607; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.company-teaser > .block-inner { width: 100%; }
.company-teaser-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(220px, .75fr); gap: clamp(32px, 8vw, 120px); align-items: end; }
.company-teaser-copy .btn { margin-top: 28px; }
.company-leadership { display: flex; flex-direction: column; gap: 24px; }
.footer-nav > .label,
.footer-meta > .label { min-height: auto; margin: 0 0 10px; color: var(--fg-4); font-family: var(--mono); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.footer-grid .footer-bottom { grid-column: 1 / -1; width: 100%; max-width: none; margin: 14px 0 0; }
.detail-card__index { margin-bottom: 30px; color: var(--accent) !important; font-family: var(--mono); font-size: 11px !important; letter-spacing: .14em; }
.flow-list__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding-left: 22px !important; }
.flow-list__number { color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.error-page__content { min-height: min(680px, calc(100svh - 70px)); display: grid; align-items: center; }
.error-page__language { margin-top: 24px; color: var(--fg-3); font-size: 14px; }
.error-page__language a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.page-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-number { margin-bottom: 30px; color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; }
.feature-card { max-width: 900px; padding: clamp(28px, 4vw, 48px); }
.feature-card h2 { max-width: 20ch; color: var(--fg); font-size: clamp(26px, 3.3vw, 44px); font-weight: 540; letter-spacing: -.028em; line-height: 1.06; }
.feature-card h2 + p { margin-top: 20px; }
.page-note { max-width: 62ch; margin-top: 20px !important; border-left: 2px solid var(--accent); padding-left: 15px; color: var(--fg-2) !important; }
.capability-list { min-height: 0; }
.capability-list ul,
.platform-list { display: grid; gap: 10px; margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; list-style: none; }
.capability-list li,
.platform-list li { display: flex; gap: 9px; }
.capability-list li::before,
.platform-list li::before { content: "→"; flex: none; color: var(--accent); font-family: var(--mono); }
.platform-card { max-width: 820px; gap: 20px; }
.related-card h3 a:hover { color: var(--accent); }
.flow-list > li > .flow-step { position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; border-radius: 0; background: none; color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; }
.flow-list > li > .flow-step::before { display: none; }
.site-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(220px, auto) auto;
  align-items: center;
  gap: 20px 34px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-bottom: 22px;
  color: var(--fg-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.site-footer-brand img { width: 130px; height: auto; }
.site-footer-inner > p { max-width: 28ch; color: var(--fg-3); font-family: var(--sans); font-size: 14px; letter-spacing: 0; }
.site-footer-inner > nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 17px; }
.site-footer-inner > nav a { display: inline-flex; min-height: 36px; align-items: center; color: var(--fg-3); font-family: var(--sans); font-size: 13px; letter-spacing: 0; }
.site-footer-inner > nav a:hover { color: var(--accent); }
@media (max-width: 820px) {
  .site-footer-inner { grid-template-columns: auto 1fr; }
  .site-footer-inner > nav { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .page-grid-two { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; align-items: start; }
  .site-footer-inner > nav { grid-column: auto; justify-content: flex-start; }
}
@media (max-width: 820px) {
  .company-teaser-grid { grid-template-columns: 1fr; }
}

/* A direct, service-led homepage. The intro and terminal background are unchanged. */
.home-hero {
  padding-top: clamp(64px, 9vh, 112px);
  padding-bottom: clamp(60px, 8vh, 100px);
}
.home-hero .hero-grid {
  display: block;
}
.home-hero .hero-text {
  max-width: 1050px;
}
.home-hero .hero-sub {
  max-width: 60ch;
}

section.block.home-services {
  padding-top: clamp(62px, 7vw, 96px);
  padding-bottom: clamp(62px, 7vw, 96px);
}
.home-label {
  display: block;
  color: var(--fg-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px 50px;
  margin-bottom: 34px;
}
.home-section-heading h2 {
  margin-top: 10px;
  color: var(--fg);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 550;
  letter-spacing: -.04em;
  line-height: 1.02;
}
.home-section-heading > p {
  max-width: 43ch;
  color: var(--fg-3);
  font-size: 16px;
  line-height: 1.55;
}
.home-service-list {
  border-top: 1px solid var(--line-2);
}
.home-service-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.15fr) 26px;
  align-items: center;
  gap: 26px;
  min-height: 102px;
  padding: 23px 10px;
  border-bottom: 1px solid var(--line-2);
  transition: background .2s ease, padding .2s ease;
}
.home-service-row:hover,
.home-service-row:focus-visible {
  background: rgba(255,255,255,.035);
  padding-inline: 20px;
}
.home-service-row h3 {
  max-width: 25ch;
  color: var(--fg);
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 540;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.home-service-row p {
  max-width: 52ch;
  color: var(--fg-3);
  font-size: 15px;
  line-height: 1.55;
}
.home-service-row > span {
  color: var(--accent);
  font-size: 23px;
  line-height: 1;
  text-align: right;
}
.home-service-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-top: 28px;
}
.home-service-footer p {
  max-width: 65ch;
  color: var(--fg-2);
  font-size: 15px;
}
.home-service-footer a,
.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 550;
}
.home-service-footer a:hover,
.home-text-link:hover { color: var(--fg); }

section.block.home-company {
  display: block;
  padding: clamp(64px, 7vw, 96px) var(--pad);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg-2);
}
.home-company .company-teaser-grid {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}
.home-company .section-title {
  margin-top: 12px;
  max-width: none;
  font-size: clamp(38px, 5vw, 64px);
}
.home-company .about-prose {
  max-width: 55ch;
  margin-top: 20px;
  font-size: 17px;
}
.home-company .about-prose p + p { margin-top: 13px; }
.home-company .home-text-link { margin-top: 19px; }
.home-company .company-leadership { display: block; }
.home-company .about-photo-wrap {
  width: 100%;
  max-height: none;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
.home-company .about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 18%;
}
.home-company .about-photo-label {
  position: static;
  display: block;
  padding: 11px 0 0;
  border-radius: 0;
  background: none;
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: .04em;
}

.home-residential {
  padding: 34px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.home-residential-inner {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 42px;
}
.home-residential h2 {
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 540;
  letter-spacing: -.025em;
}
.home-residential p {
  max-width: 48ch;
  color: var(--fg-3);
  font-size: 15px;
  line-height: 1.55;
}
.home-residential .home-text-link { white-space: nowrap; }
section.block.contact-block { padding-top: clamp(70px, 8vw, 110px); }
.contact-block .home-label + .section-title { margin-top: 13px; }

/* Keep the shorter solution overview compact as well. */
.solution-grid .solution-card { min-height: 0; }
.solution-grid .solution-card .text-link { margin-top: auto; padding-top: 22px; }

@media (max-width: 820px) {
  .home-company .company-teaser-grid { grid-template-columns: minmax(0, 1fr) minmax(160px, 210px); }
  .home-residential-inner { grid-template-columns: minmax(180px, .7fr) minmax(0, 1fr); }
  .home-residential .home-text-link { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .home-hero { padding-top: 64px; padding-bottom: 62px; }
  .home-section-heading { display: block; }
  .home-section-heading > p { margin-top: 14px; }
  .home-service-row { grid-template-columns: minmax(0, 1fr) 25px; gap: 10px 18px; min-height: 0; padding: 22px 0; }
  .home-service-row h3 { grid-column: 1; font-size: 21px; }
  .home-service-row p { grid-column: 1; grid-row: 2; font-size: 14px; }
  .home-service-row > span { grid-column: 2; grid-row: 1; }
  .home-service-row:hover,
  .home-service-row:focus-visible { padding-inline: 8px; }
  .home-company .company-teaser-grid { grid-template-columns: 1fr; }
  .home-company .company-leadership { max-width: 210px; }
  .home-residential-inner { grid-template-columns: 1fr; gap: 13px; }
  .home-residential .home-text-link { grid-column: auto; }
}
@media (max-width: 360px) {
  .home-hero h1 { font-size: 38px; }
  .page-hero h1 { font-size: 36px; overflow-wrap: anywhere; }
  .contact-side .meta .coverage-row { grid-template-columns: 1fr; gap: 4px; }
}
