/* ==========================================================================
   Bite Tech Systems Limited — site styles
   ========================================================================== */

:root {
  /* Brand */
  --primary: #03045E;
  --primary-700: #02034a;
  --accent: #CCFF33;
  --accent-600: #b8e62e;
  --accent-ink: #597000;       /* accent for text and markers on light backgrounds (5.6:1 on white) */
  --accent-ink-deep: #4a5e00;  /* accent text on tinted light surfaces (5.5:1 on the navy tints) */
  --primary-tint-1: #eceef6;   /* stepped navy tints for the solutions scale */
  --primary-tint-1-line: #dde0ec;
  --primary-tint-2: #dcdfee;
  --primary-tint-2-line: #cdd1e4;
  --accent-hover: #d9ff66;
  --primary-hover: #0a0c7a;
  --tint: #434459;
  --white: #FFFFFF;
  --dark: #131916;
  --dark-raised: #1b2320;

  /* Neutrals */
  --ink: #131916;
  --ink-2: #3d4452;
  --muted: #5b6273;
  --line: #e3e5ec;
  --surface: #f5f6f9;
  --field-line: #878d9d;       /* input borders, 3.3:1 on white */
  --placeholder: #6b7182;      /* 4.9:1 on white */
  --error: #b42318;
  --whatsapp: #128C7E;         /* WhatsApp teal: white glyph passes 4.5:1 */

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(80px, 11vw, 140px);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(3, 4, 94, .06), 0 2px 8px rgba(3, 4, 94, .04);
  --shadow-md: 0 12px 32px -12px rgba(3, 4, 94, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, video, svg { display: block; max-width: 100%; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .header:not(.is-solid) :focus-visible { outline-color: var(--accent); }

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

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--accent);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.on-dark .eyebrow { color: var(--accent); }
.eyebrow::before { background: var(--accent-ink); }
.on-dark .eyebrow::before { background: var(--accent); }

.section-title { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 20px; }
.on-dark .section-title, .on-dark h3 { color: var(--white); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.lead strong { color: var(--primary); font-weight: 600; }

.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head .section-title { margin-bottom: 0; }
.section-intro { color: var(--muted); font-size: 17px; max-width: 480px; justify-self: end; }
.on-dark .section-intro { color: rgba(255, 255, 255, .72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-lg { min-height: 54px; padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-ghost { border-color: var(--line); color: var(--primary); background: var(--white); }
.btn-ghost:hover { border-color: var(--primary); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.header.is-solid {
  background: rgba(255, 255, 255, .96);
  color: var(--primary);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(3, 4, 94, .25);
}
@supports (backdrop-filter: blur(8px)) {
  .header.is-solid { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-badge {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  background: var(--white); border-radius: 12px;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4);
  transition: box-shadow .3s ease;
}
.header.is-solid .logo-badge, .header.menu-is-open .logo-badge { box-shadow: none; }
.logo-img { width: 46px; height: auto; }
.logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1;
}
.logo-text span { color: var(--accent); }
.header.is-solid .logo-text span { color: var(--accent-ink); }
.header.is-solid .nav-link::after { background: var(--accent-ink); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; gap: 30px; }
.nav-link {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 15px; font-weight: 500; opacity: .88; transition: opacity .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding: 10px 20px; font-size: 14px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  background: transparent; border: 1.5px solid currentColor; color: inherit;
  position: relative; opacity: .9;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle-bars { top: 50%; margin-top: -1px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.menu-toggle-bars::before { transform: translateY(-6px); }
.menu-toggle-bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  background: var(--tint); color: var(--white);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero-tint {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 4, 94, .72) 0%, rgba(3, 4, 94, .38) 48%, rgba(3, 4, 94, 0) 80%),
    rgba(67, 68, 89, .45);
}
.hero-lines {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: -8%; width: 46%;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .07) 46px 47px);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  pointer-events: none;
}
.hero-content { padding-bottom: 80px; }
.hero h1 {
  color: var(--white); max-width: 14.5em;
  font-size: clamp(38px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em;
  margin-bottom: 26px; text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.hero-lead { max-width: 600px; font-size: clamp(17px, 1.7vw, 20px); color: rgba(255, 255, 255, .9); margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Background video is decorative: hide any native play/start overlay iOS may draw over it. */
.hero-video::-webkit-media-controls, .hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-video { pointer-events: none; }

/* ==========================================================================
   About + Vision/Mission
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-copy > p + p { margin-top: 16px; }

.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.highlights li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.highlights .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: rgba(204, 255, 51, .16); color: var(--accent-ink); stroke-width: 2.6;
}

.stats-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--primary); color: var(--white);
  border-radius: 24px; padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 30px 60px -30px rgba(3, 4, 94, .6);
}
.stats-pattern {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 28px;
  transform: skewX(-18deg) scale(1.4);
  mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
}
.stats-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.stat:nth-child(2) { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stat-wide { grid-column: 1 / -1; }
.stat dt { font-size: 15px; color: rgba(255, 255, 255, .75); }
.stat dd {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(48px, 6vw, 72px); letter-spacing: -.04em; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat dd small { font-size: max(14px, .36em); letter-spacing: 0; margin-left: 10px; color: var(--accent); font-weight: 600; }
.stat-wide dd { color: var(--accent); }
.stat-wide dd small { color: var(--white); }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(56px, 8vw, 100px); }
.vm-card {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.vm-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border: 1px solid rgba(3, 4, 94, .08); transform: rotate(28deg); border-radius: 12px;
}
.vm-mission { background: var(--dark); border-color: var(--dark); }
.vm-mission::after { border-color: rgba(255, 255, 255, .08); }
.vm-card.vm-mission h3 { color: var(--accent); }
.vm-card.vm-mission blockquote p { color: rgba(255, 255, 255, .92); }
.vm-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--primary); color: var(--accent);
}
.vm-mission .vm-icon { background: var(--accent); color: var(--dark); }
.vm-card h3 { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; color: var(--primary); }
.vm-card blockquote p {
  font-family: var(--font-display); font-weight: 500; color: var(--ink);
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -.01em;
}

/* ==========================================================================
   Trusted by
   ========================================================================== */
.trusted { border-block: 1px solid var(--line); padding-block: clamp(40px, 5vw, 56px); }
.trusted-inner { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 32px 56px; align-items: center; }
.trusted-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.trusted-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.trusted-list li {
  display: flex; flex-direction: column; gap: 4px; padding: 6px 24px;
  border-left: 1px solid var(--line);
  transition: color .2s;
}
.t-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.2; letter-spacing: -.01em; color: var(--primary); }
.t-sub { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services-intro { padding: 8px 24px 24px 0; }
.services-intro > p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 34px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:not(.service-card-feature)::before { background: var(--accent-ink); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 44px; }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(3, 4, 94, .06); color: var(--primary);
  transition: background-color .3s, color .3s;
}
.service-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.service-card:hover .service-icon { background: var(--primary); color: var(--accent); }
.service-num { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent-ink); letter-spacing: .06em; }
.service-card h3 { font-size: 21px; line-height: 1.25; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15px; }

.service-card-feature { background: var(--primary); border-color: var(--primary); }
.service-card-feature h3 { color: var(--white); }
.service-card-feature p { color: rgba(255, 255, 255, .78); }
.service-card-feature .service-icon, .service-card-feature:hover .service-icon { background: var(--accent); color: var(--dark); }
.service-card-feature .service-num { color: var(--accent); }

/* ==========================================================================
   Solutions — five solutions set out as a rising scale
   ========================================================================== */
.solutions { background: var(--white); }

/* Segment brackets over the scale */
.sol-bands { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; margin-bottom: 22px; }
.sol-band {
  position: relative; padding-bottom: 10px; border-bottom: 1px solid var(--field-line);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; color: var(--muted);
}
.sol-band::before, .sol-band::after {
  content: ""; position: absolute; bottom: -1px; width: 1px; height: 8px; background-color: var(--field-line);
}
.sol-band::before { left: 0; }
.sol-band::after { right: 0; }
.sol-band-home { grid-column: 1 / 4; }
.sol-band-biz { grid-column: 4 / 6; color: var(--primary); border-color: var(--primary); }
.sol-band-biz::before, .sol-band-biz::after { background-color: var(--primary); }

/* The scale: each rung is a tab whose riser grows with system size */
.sol-ladder {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end;
  border-bottom: 2px solid var(--primary);
}
.rung {
  --riser: var(--surface); --riser-ink: var(--ink); --riser-unit: var(--accent-ink); --riser-line: var(--line); --riser-mark: var(--accent-ink);
  position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left;
  background: none; border: 0; padding: 0; color: var(--ink);
}
.rung:nth-child(2) { --riser: var(--primary-tint-1); --riser-line: var(--primary-tint-1-line); --riser-unit: var(--accent-ink-deep); }
.rung:nth-child(3) { --riser: var(--primary-tint-2); --riser-line: var(--primary-tint-2-line); --riser-unit: var(--accent-ink-deep); }
.rung:nth-child(4) { --riser: var(--primary); --riser-ink: var(--white); --riser-unit: var(--accent); --riser-line: var(--primary); --riser-mark: var(--accent); }
.rung:nth-child(5) { --riser: var(--primary-700); --riser-ink: var(--white); --riser-unit: var(--accent); --riser-line: var(--primary-700); --riser-mark: var(--accent); }
.rung:focus-visible { outline-offset: 6px; }

.rung-num { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 8px; }
.rung-name {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.2; letter-spacing: -.015em; color: var(--ink); transition: color .2s;
}
.rung-seg { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.rung-riser {
  position: relative; display: flex; align-items: flex-end;
  height: calc(72px + var(--i) * 38px); margin-top: 16px; padding: 14px 18px;
  background: var(--riser); color: var(--riser-ink);
  border: 1px solid var(--riser-line); border-bottom: 0; border-radius: 12px 12px 0 0;
  transition: filter .25s ease, clip-path 1s var(--ease) calc(var(--i) * 110ms + .15s);
}
.rung-riser::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; border-radius: 12px 12px 0 0;
  background: var(--riser-mark); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.rung-scale {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rung-scale small { font-size: max(11px, .52em); letter-spacing: 0; margin-left: 2px; color: var(--riser-unit); }

.rung:hover .rung-name { color: var(--primary); }
.rung:hover .rung-riser { filter: brightness(.965); }
.rung:nth-child(n+4):hover .rung-riser { filter: brightness(1.25); }
.rung[aria-selected="true"] .rung-name { color: var(--primary); }
.rung[aria-selected="true"] .rung-riser::before { transform: scaleX(1); }
.rung[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 8px; margin-left: -8px;
  background: var(--primary); clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Risers rise in sequence when the scale enters view */
.js .sol-range .rung-riser { clip-path: inset(100% 0 0 0 round 12px 12px 0 0); }
.js .sol-range.is-visible .rung-riser { clip-path: inset(0 0 0 0 round 12px 12px 0 0); }

/* Solution panels: lighter for homes, navy for commercial and industrial */
.sol-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px clamp(36px, 5vw, 72px);
  margin-top: 28px; padding: clamp(28px, 4.5vw, 56px);
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
}
.sol-panel[hidden] { display: none; }
.sol-panel:focus-visible { outline-offset: 4px; border-radius: 24px; }
.js .sol-panel { animation: sol-in .5s var(--ease); }
@keyframes sol-in { from { opacity: 0; transform: translateY(10px); } }

.sol-main { display: flex; flex-direction: column; align-items: flex-start; }
.sol-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.sol-num { flex-basis: 100%; font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; color: var(--accent-ink); }
.sol-name { font-size: clamp(28px, 3.2vw, 40px); margin: 14px 0 8px; text-wrap: balance; }
.sol-flag {
  display: inline-block; vertical-align: middle; margin: -4px 0 0 6px; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(204, 255, 51, .14); color: var(--accent-ink-deep); white-space: nowrap;
}
.sol-tagline { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; letter-spacing: -.01em; color: var(--primary); }
.sol-desc { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.sol-scale {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px;
  width: 100%; margin: 28px 0 30px; padding-top: 24px; border-top: 1px solid var(--line);
}
.sol-scale strong {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 5vw, 64px); line-height: 1;
  letter-spacing: -.04em; color: var(--primary); font-variant-numeric: tabular-nums;
}
.sol-scale small { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--accent-ink); }
.sol-scale span {
  flex-basis: 100%; margin-top: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.sol-main .btn { margin-top: auto; }

.sol-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; align-content: start; }
.spec-title { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.spec-list > div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: 14px; color: var(--muted); }
.spec-list dd { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.spec-incl { display: grid; gap: 9px; margin-top: 18px; }
.spec-incl li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.spec-incl li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 7px; background: var(--accent-ink);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
.fit-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-list li {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink);
}
.sol-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.sol-ref { grid-column: 1 / -1; padding: 20px 24px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.sol-ref-label { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.sol-ref-label strong { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.sol-ref-figs { display: grid; grid-template-columns: repeat(3, 1fr); }
.sol-ref-figs > div { display: flex; flex-direction: column-reverse; gap: 4px; padding-left: 20px; border-left: 1px solid var(--line); }
.sol-ref-figs > div:first-child { padding-left: 0; border-left: 0; }
.sol-ref-figs dt { font-size: 13px; color: var(--muted); }
.sol-ref-figs dd {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 34px); line-height: 1;
  letter-spacing: -.03em; color: var(--primary); font-variant-numeric: tabular-nums;
}
.sol-ref-figs small { font-size: 13px; letter-spacing: 0; margin-left: 4px; color: var(--accent-ink); }

/* Commercial and industrial tiers sit on navy */
.tier-biz { background: var(--primary); border-color: var(--primary); color: rgba(255, 255, 255, .8); box-shadow: 0 30px 60px -30px rgba(3, 4, 94, .6); }
.tier-power { background: var(--primary-700); border-color: var(--primary-700); }
.tier-biz .stats-pattern { mask-image: radial-gradient(circle at 100% 0%, #000, transparent 60%); -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 60%); }
.tier-power .stats-pattern { background-size: 30px 19px; mask-image: radial-gradient(circle at 100% 0%, #000, transparent 85%); -webkit-mask-image: radial-gradient(circle at 100% 0%, #000, transparent 85%); }
.tier-biz .sol-meta, .tier-biz .sol-scale span, .tier-biz .spec-list dt { color: rgba(255, 255, 255, .66); }
.tier-biz .sol-num, .tier-biz .sol-scale small, .tier-biz .spec-title, .tier-biz .sol-tagline { color: var(--accent); }
.tier-biz .sol-desc, .tier-biz .spec-incl li { color: rgba(255, 255, 255, .82); }
.tier-biz .sol-scale strong, .tier-biz .spec-list dd { color: var(--white); }
.tier-biz .sol-scale, .tier-biz .spec-list > div, .tier-biz .sol-note { border-color: rgba(255, 255, 255, .16); }
.tier-biz .spec-incl li::before { background: var(--accent); }
.tier-biz .fit-list li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--white); }
.tier-biz .sol-note { color: rgba(255, 255, 255, .72); }

/* Capabilities behind every solution */
.capability-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.capability-list li { display: flex; flex-direction: column; gap: 6px; padding: 4px 22px; border-left: 1px solid var(--line); }
.capability-list li:first-child { padding-left: 0; border-left: 0; }
.cap-name { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 22px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; color: var(--muted); }
.cap-name strong { font-weight: 600; color: var(--primary); }
.cap-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }

.sol-disclaimer {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: clamp(40px, 5vw, 56px); padding: 18px 22px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.sol-disclaimer .icon { color: var(--primary); margin-top: 1px; }

/* ==========================================================================
   Technology — equipment placed along the system path: panels → inverters → loads
   ========================================================================== */
.technology { background: var(--surface); }
.tp-path { position: relative; display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; }
.tp-path::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary) 70%, var(--accent-ink));
}
.tp-stage { position: relative; padding: 40px 32px 0 0; }
.tp-stage + .tp-stage { padding-left: 32px; border-left: 1px solid var(--line); }
.tp-stage::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 5px;
  background: var(--surface); border: 2px solid var(--primary);
}
.tp-stage + .tp-stage::before { left: 32px; }
.tp-end::before { background: var(--accent); border-color: var(--accent-ink); }
.tp-step {
  display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.tp-step span { font-family: var(--font-display); letter-spacing: .06em; color: var(--accent-ink); }
.tp-stage h3 { font-size: 22px; margin-bottom: 8px; }
.tp-role { font-size: 15px; color: var(--muted); max-width: 36ch; }
.tp-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.tp-stage:first-child .tp-brands { grid-template-columns: 1fr; }
.tp-brands li {
  padding: 20px 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05; letter-spacing: -.025em; color: var(--primary);
}
.tp-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-size: 15px; font-weight: 600; color: var(--primary);
  text-decoration: underline; text-decoration-color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.tp-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.tp-link:hover .icon { transform: translateX(3px); }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { background: var(--dark); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; }
/* Continuous right-to-left marquee: each card shifts left by one full set (4 cards + 4 gaps),
   and the aria-hidden duplicate set closes the loop seamlessly. */
.projects-aside { display: grid; justify-items: end; gap: 20px; }
.projects-aside .section-intro { justify-self: end; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 13px;
  border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .3); background: transparent;
  font-size: 14px; font-weight: 600; color: var(--white);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.marquee-toggle:hover { background: var(--white); border-color: var(--white); color: var(--primary); }
.marquee-toggle svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.marquee-toggle .icon-play, .marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .icon-play { display: block; }

.projects-marquee {
  --card-w: 460px; --card-gap: 24px;
  display: flex; gap: var(--card-gap); overflow: hidden; padding-block: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.projects-marquee > li { flex: 0 0 var(--card-w); animation: projects-marquee 48s linear infinite; }
.projects-marquee:hover > li, .projects-marquee:focus-within > li, .projects-marquee.is-paused > li { animation-play-state: paused; }
/* Three cards in the rail: each shifts left by one set (3 cards + 3 gaps). Change the 3 if the card count changes. */
@keyframes projects-marquee { to { transform: translateX(calc(-3 * (var(--card-w) + var(--card-gap)))); } }

/* Featured project: the client's largest project sits above the moving rail, photo left */
.ft {
  display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; margin-bottom: 28px;
  border-radius: 24px; background: var(--dark-raised); border: 1px solid rgba(204, 255, 51, .35);
}
.ft-media { position: relative; display: block; min-height: 420px; overflow: hidden; }
.ft-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ft:hover .ft-media img { transform: scale(1.04); }
.ft-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(19, 25, 22, .6)); }
.ft-num { position: absolute; left: 28px; bottom: 18px; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -.04em; color: var(--white); }
.ft-body { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 48px); }
.ft-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.ft-badge { padding: 5px 11px; border-radius: 999px; background: var(--accent); color: var(--dark); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ft-name { margin: 18px 0 6px; font-size: clamp(32px, 3.6vw, 48px); color: var(--white); }
.ft-meta { font-size: 15px; color: rgba(255, 255, 255, .62); }
.ft-desc { margin-top: 16px; font-size: 17px; color: rgba(255, 255, 255, .85); max-width: 40ch; }
.ft-figs { display: grid; grid-template-columns: auto 1fr; margin: 28px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.ft-figs > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 18px 24px 0 0; }
.ft-figs > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.ft-figs dt { font-size: 13px; color: rgba(255, 255, 255, .62); }
.ft-figs dd { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.ft-figs dd small { font-size: 20px; letter-spacing: 0; margin-left: 6px; color: var(--white); }
.ft-figs .ft-word { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; color: var(--white); }
.ft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.project-card {
  display: flex; flex-direction: column;
  background: var(--dark-raised); border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s ease;
}
.project-card:hover { border-color: rgba(204, 255, 51, .5); }

.project-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; isolation: isolate; }
.project-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(19, 25, 22, .55));
}
.panel-grid {
  position: absolute; inset: -40% -20%; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .22) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .22) 2px, transparent 2px);
  background-size: 64px 40px;
  transform: perspective(700px) rotateX(58deg) rotateZ(var(--rot, -20deg));
  transition: transform .8s var(--ease);
}
.project-card:hover .panel-grid { transform: perspective(700px) rotateX(58deg) rotateZ(var(--rot, -20deg)) scale(1.12); }
.media-a { background: radial-gradient(circle at 85% 10%, rgba(204, 255, 51, .55), transparent 40%), linear-gradient(160deg, #434459, #03045E 75%); --rot: -22deg; }
.media-b { background: radial-gradient(circle at 15% 5%, rgba(204, 255, 51, .5), transparent 42%), linear-gradient(200deg, #0a0c7a, #03045E 70%); --rot: 18deg; }
.media-c { background: radial-gradient(circle at 80% 0%, rgba(204, 255, 51, .6), transparent 45%), linear-gradient(170deg, #03045E, #131916 90%); --rot: -12deg; }
.media-d { background: radial-gradient(circle at 25% 0%, rgba(204, 255, 51, .5), transparent 40%), linear-gradient(190deg, #434459, #131916 85%); --rot: 26deg; }
.project-num {
  position: absolute; left: 28px; bottom: 18px; z-index: 2;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 6vw, 72px);
  line-height: 1; color: var(--white); letter-spacing: -.04em;
}

.project-body { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; padding: 28px 28px 32px; flex: 1; }
.project-body > * { grid-column: 1; }
.project-type { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.project-card h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 6px; }
.project-meta { font-size: 14px; color: rgba(255, 255, 255, .6); margin-bottom: 14px; }
.project-desc { color: rgba(255, 255, 255, .82); }
.project-cap {
  grid-column: 2; grid-row: 1 / span 4; align-self: start;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.project-cap strong {
  font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: -.03em;
  color: var(--accent); text-transform: none;
}
.project-cap-muted {
  padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  color: rgba(255, 255, 255, .8);
}

/* ==========================================================================
   Process
   ========================================================================== */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px 24px; }
/* Desktop: a short track joins each node to the next one in its row. Mobile re-enables the full vertical track. */
.timeline::before, .timeline::after {
  content: ""; position: absolute; top: 31px; left: 32px; height: 2px; right: 0; display: none;
}
.step:not(:nth-child(4n)):not(:last-child)::after {
  content: ""; position: absolute; z-index: -1; top: 31px; left: 64px; right: -24px; height: 2px; background: var(--line);
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s;
}
.timeline.is-visible::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; }
.step-node {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 26px;
  border-radius: 18px; background: var(--white); border: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--primary);
  transition: background-color .3s, border-color .3s, color .3s;
}
.step:hover .step-node { background: var(--primary); border-color: var(--primary); color: var(--accent); }
.step:last-child .step-node { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.process-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(44px, 6vw, 64px); padding-top: 32px; border-top: 1px solid var(--line); }
.process-cta p { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contact-panel {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--primary); color: rgba(255, 255, 255, .82);
  border-radius: 24px; padding: clamp(32px, 4.5vw, 56px);
}
.contact-lead { font-size: 17px; margin-bottom: 40px; max-width: 460px; }
.contact-list { display: grid; gap: 22px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-list li { display: flex; align-items: center; gap: 16px; font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.contact-list small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contact-list a { transition: color .2s; }
.contact-list a:hover { color: var(--accent); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--accent);
}

.form-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-sm);
}
.quote-form { display: grid; gap: 20px; }
.form-head h3 { font-size: 26px; margin-bottom: 4px; }
.form-head p { font-size: 14px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--field-line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(3, 4, 94, .12);
}
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); pointer-events: none;
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 4px rgba(180, 35, 24, .14); border-color: var(--error); }
.field-error { font-size: 13px; font-weight: 500; color: var(--error); min-height: 0; }
.field-error:empty { display: none; }
.form-status { font-size: 14px; color: var(--error); }
.form-status:empty { display: none; }

.form-success { text-align: center; padding: clamp(24px, 5vw, 56px) 8px; }
.form-success:focus { outline: none; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(204, 255, 51, .18); color: var(--accent-ink);
}
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.form-success h3 { font-size: 26px; margin-bottom: 12px; }
.form-success p { color: var(--muted); max-width: 440px; margin: 0 auto 14px; }
.form-success strong { color: var(--ink); overflow-wrap: anywhere; }
.form-success a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.success-alt { font-size: 14px; margin-bottom: 28px !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--dark); color: rgba(255, 255, 255, .7); padding: clamp(64px, 8vw, 96px) 0 32px;
}
/* Survey contour lines behind the footer; every fifth (index) contour in Solar Lime. */
.footer-pattern {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: .25;
}
.footer-pattern path { stroke: rgba(255, 255, 255, .34); }
.footer-pattern path.index { stroke: var(--accent); stroke-width: 1.4; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { margin-top: 22px; max-width: 360px; font-size: 15px; }
.footer-brand strong { color: var(--white); font-weight: 600; }
.logo-light { color: var(--white); }
.footer-title {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
.footer ul { display: grid; gap: 12px; font-size: 15px; }
.footer ul a { transition: color .2s; overflow-wrap: anywhere; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px;
}
.to-top { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.to-top:hover { color: var(--accent); }
.to-top .icon { width: 16px; height: 16px; }

/* ==========================================================================
   WhatsApp & lead paths
   ========================================================================== */
.icon-wa { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn-wa .icon-wa { width: 19px; height: 19px; }
.btn-lg.btn-wa .icon-wa { width: 21px; height: 21px; }

.nav-wa {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5); color: inherit;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.header.is-solid .nav-wa { border-color: var(--line); color: var(--primary); }
.nav-wa:hover, .header.is-solid .nav-wa:hover { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--white); }
.nav-wa .icon-wa { width: 20px; height: 20px; }
.nav-wa-label { display: none; }

.hero-call { margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .78); }
.hero-call a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  display: none; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}
.wa-float .icon-wa { width: 28px; height: 28px; }
body.menu-open .wa-float { display: none !important; }

/* ==========================================================================
   Problems: the customer's entry point
   ========================================================================== */
.problems { background: var(--surface); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem {
  display: flex; flex-direction: column; height: 100%; padding: 26px 26px 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.problem:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.problem > .icon { width: 26px; height: 26px; stroke-width: 1.8; color: var(--primary); margin-bottom: 22px; }
.problem-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.problem-line { margin-top: 8px; font-size: 15px; color: var(--muted); }
.problem-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px;
  font-size: 14px; font-weight: 600; color: var(--primary);
}
.problem-go .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.problem:hover .problem-go .icon { transform: translateX(3px); }

/* ==========================================================================
   Why Bite Tech (charcoal band)
   ========================================================================== */
.why { background: var(--dark); color: rgba(255, 255, 255, .78); }
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px clamp(40px, 7vw, 96px); align-items: start; }
.why-statement { color: rgba(255, 255, 255, .6) !important; font-weight: 500; text-wrap: balance; }
.why-statement span { display: block; font-weight: 600; color: var(--white); }
.why-intro p:not(.eyebrow) { font-size: 17px; margin-bottom: 30px; max-width: 46ch; }
.why-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.why-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.why-num { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: var(--accent); padding-top: 2px; }
.why-list h3 { font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.why-list p { font-size: 15px; color: rgba(255, 255, 255, .7); }
.why-behind { margin-top: clamp(56px, 8vw, 96px); }
.why-behind-title {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .64) !important; margin-bottom: 22px;
}
.why .capability-list li { border-color: rgba(255, 255, 255, .14); }
.why .cap-name { color: rgba(255, 255, 255, .6); }
.why .cap-name strong { color: var(--white); }
.why .cap-desc { color: rgba(255, 255, 255, .64); }

/* ==========================================================================
   Solutions: paired CTAs
   ========================================================================== */
.sol-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.sol-ref-label a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Case study (grey band, navy panel)
   ========================================================================== */
.case-study { background: var(--surface); }
.case-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px clamp(40px, 6vw, 80px); align-items: end;
  padding: clamp(32px, 5vw, 64px); border-radius: 24px;
  background: var(--primary); color: rgba(255, 255, 255, .8);
  box-shadow: 0 30px 60px -30px rgba(3, 4, 94, .6);
}
.case-head .section-title { font-variant-numeric: tabular-nums; margin-bottom: 16px; }
.case-lead { font-size: 17px; max-width: 48ch; }
.case-figs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); }
.case-figs > div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 20px 0 0 20px; border-left: 1px solid rgba(255, 255, 255, .18); }
.case-figs > div:first-child { padding-left: 0; border-left: 0; }
.case-figs dt { font-size: 14px; color: rgba(255, 255, 255, .7); }
.case-figs dd {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4.6vw, 60px); line-height: 1;
  letter-spacing: -.04em; color: var(--white); font-variant-numeric: tabular-nums;
}
.case-figs small { font-size: 18px; letter-spacing: 0; margin-left: 6px; color: var(--accent); }
.case-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* ==========================================================================
   Projects: next step under the carousel
   ========================================================================== */
.projects-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(36px, 5vw, 56px); padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.projects-cta p { font-size: 17px; color: rgba(255, 255, 255, .8); max-width: 46ch; }
.projects-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Technology: closing link
   ========================================================================== */
.tp-cta { margin-top: clamp(36px, 5vw, 52px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px clamp(40px, 7vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; display: block; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 20px); font-weight: 600; line-height: 1.3; letter-spacing: -.015em;
  color: var(--ink); transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-mark { position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; }
.faq-mark::before, .faq-mark::after {
  content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px;
  background: var(--accent-ink); transition: transform .25s var(--ease);
}
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }
.faq-item p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 68ch; }

/* ==========================================================================
   Final CTA + Energy Assessment form
   ========================================================================== */
.contact-panel .contact-lead { margin-bottom: 26px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.form-head .form-req { margin-top: 10px; font-size: 13px; }
.field-loads { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-loads legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.field .check {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; font-weight: 500; transition: border-color .2s, background-color .2s;
}
.field .check span { color: var(--ink); }
.field .check:hover { border-color: var(--field-line); }
.field .check:has(input:checked) { border-color: var(--primary); background: rgba(3, 4, 94, .04); }
.check input { width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.check input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
#message { min-height: 104px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-privacy { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Project photos (homepage cards)
   ========================================================================== */
.project-media img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media { background: var(--tint); }
.project-link {
  grid-column: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; justify-self: start;
  font-size: 14px; font-weight: 600; color: var(--accent);
}
.project-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.project-link:hover .icon { transform: translateX(3px); }

/* ==========================================================================
   Projects page
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(56px, 7vw, 88px);
  background: var(--primary); color: rgba(255, 255, 255, .8);
}
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: var(--accent); }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; max-width: 14em; text-wrap: balance; margin-bottom: 22px; }
.page-lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 60ch; }
.page-stats { display: flex; flex-wrap: wrap; gap: 20px 0; margin-top: clamp(36px, 5vw, 52px); border-top: 1px solid rgba(255, 255, 255, .16); }
.page-stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 20px 36px 0 0; margin-right: 36px; border-right: 1px solid rgba(255, 255, 255, .16); }
.page-stats > div:last-child { border-right: 0; margin-right: 0; }
.page-stats dt { font-size: 14px; color: rgba(255, 255, 255, .7); }
.page-stats dd { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; color: var(--white); font-variant-numeric: tabular-nums; }
.page-stats dd small { font-size: 18px; letter-spacing: 0; margin-left: 6px; color: var(--accent); }

.filter-bar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .filter-bar { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(12px); } }
.filter-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: border-color .2s, background-color .2s, color .2s;
}
.filter-chip span { font-family: var(--font-display); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter-chip[aria-pressed="true"] span { color: var(--accent); }
.filter-count { font-size: 14px; color: var(--muted); }

.proj { padding-block: clamp(56px, 8vw, 104px); scroll-margin-top: calc(var(--header-h) + 64px); }
.proj + .proj { border-top: 1px solid var(--line); }
.proj[hidden] { display: none; }
.proj:nth-of-type(even) { background: var(--surface); }
.proj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.proj-info { position: sticky; top: calc(var(--header-h) + 88px); }
.proj-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.proj-num { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .06em; color: var(--accent-ink); }
.proj-name { font-size: clamp(28px, 3.2vw, 42px); margin: 10px 0 8px; text-wrap: balance; }
.proj-loc { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.proj-loc .icon { width: 16px; height: 16px; color: var(--primary); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px; }
.proj-tags li { padding: 4px 11px; border-radius: 999px; background: rgba(3, 4, 94, .06); font-size: 13px; font-weight: 600; color: var(--primary); }
.proj-lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.35; letter-spacing: -.01em; color: var(--primary); margin-bottom: 14px; }
.proj-body { color: var(--ink-2); max-width: 60ch; }
.proj-body + .proj-body { margin-top: 12px; }
.proj-figure { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.proj-figure strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.04em; color: var(--primary); font-variant-numeric: tabular-nums; }
.proj-figure small { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--accent-ink); }
.proj-figure span { flex-basis: 100%; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.proj-specs { margin-top: 22px; }
.proj-specs > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.proj-specs > div:last-child { border-bottom: 1px solid var(--line); }
.proj-specs dt { font-size: 14px; color: var(--muted); }
.proj-specs dd { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.proj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.proj-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 12px;
  background: var(--line); cursor: zoom-in;
}
.ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ph:hover img { transform: scale(1.05); }
.ph:focus-visible { outline-offset: 3px; border-radius: 12px; }
.ph[data-more]::after {
  content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(3, 4, 94, .72); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em;
}
.proj-gallery.is-expanded .ph[data-more]::after { display: none; }
.js .ph-extra { display: none; }
.js .proj-gallery.is-expanded .ph-extra { display: block; }
.ph-video { cursor: pointer; }
.ph-play {
  position: absolute; inset: 0; margin: auto; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(19, 25, 22, .62); color: var(--white);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6);
}
.ph-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.proj-more {
  margin-top: 14px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--primary);
  transition: border-color .2s;
}
.proj-more:hover { border-color: var(--primary); }
.proj-more[hidden] { display: none; }
.proj-empty { padding: 48px 0; color: var(--muted); }
.proj-final { background: var(--white); border-top: 1px solid var(--line); }
.proj-note { margin-top: 24px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 12, 20, .96); color: var(--white);
}
.lightbox::backdrop { background: rgba(10, 12, 20, .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 64px 72px 8px; touch-action: pan-y; }
.lb-stage { overflow: hidden; }
.lb-stage img, .lb-stage video { max-width: min(100%, calc(100vw - 144px)); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 8px; user-select: none; }
.lb-caption { display: flex; justify-content: center; gap: 16px; padding: 14px 16px 22px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.lb-count { font-family: var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: var(--white);
  transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:focus-visible { outline-color: var(--accent); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }
body:has(.lightbox[open]) { overflow: hidden; }

/* ==========================================================================
   Motion
   ========================================================================== */
/* Hero enters on load with CSS alone, so the headline never waits on JS. */
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } }
.hero-content > * { animation: hero-in .9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .nav-list { gap: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-intro { grid-column: 1 / -1; max-width: 640px; padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trusted-inner { grid-template-columns: 1fr; }
  .trusted-list li:first-child { padding-left: 0; border-left: 0; }
  .sol-panel { grid-template-columns: 1fr; }
  .sol-main .btn { margin-top: 0; }
  .capability-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .capability-list li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 28px;
    padding: 20px var(--gutter) 32px; overflow-y: auto;
    background: var(--white); color: var(--primary);
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s var(--ease), visibility 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-link {
    display: flex; padding: 16px 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; opacity: 1;
    border-bottom: 1px solid var(--line);
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent-ink); }
  .nav-cta { min-height: 54px; font-size: 16px; }
  .header.menu-is-open { background: var(--white); color: var(--primary); box-shadow: 0 1px 0 var(--line); backdrop-filter: none; }
  .header.menu-is-open .logo-text span { color: var(--accent-ink); }
  .header.menu-is-open :focus-visible { outline-color: var(--primary); }

  .hero-content { padding-bottom: 60px; }

  .section-head { grid-template-columns: 1fr; }
  .section-intro, .projects-aside .section-intro { justify-self: start; }
  .projects-aside { justify-items: start; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .tp-path { grid-template-columns: 1fr; }
  .tp-path::before {
    top: 8px; bottom: 8px; left: 7px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--primary), var(--primary) 70%, var(--accent-ink));
  }
  .tp-stage, .tp-stage + .tp-stage { padding: 0 0 36px 40px; border-left: 0; }
  .tp-stage:last-child { padding-bottom: 0; }
  .tp-stage::before, .tp-stage + .tp-stage::before { left: 0; top: 2px; }

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before, .timeline::after {
    top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto;
  }
  .timeline::after { background: linear-gradient(180deg, var(--primary), var(--accent)); transform: scaleY(0); transform-origin: top; }
  .timeline.is-visible::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-bottom: 36px; }
  .step:last-child { padding-bottom: 0; }
  .step-node { margin-bottom: 0; }
  .step-body { padding-top: 6px; }

  .project-body { grid-template-columns: 1fr; }
  .project-cap { grid-column: 1; grid-row: auto; flex-direction: row; align-items: baseline; gap: 8px; text-align: left; margin-top: 18px; }
  .project-cap-muted { align-self: flex-start; }
  .project-cap strong { font-size: 36px; }
}

@media (max-width: 720px) {
  .trusted-list { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .trusted-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .vm-grid { grid-template-columns: 1fr; }

  /* The scale compresses: short names, shorter risers */
  .sol-bands, .sol-ladder { gap: 6px; }
  .sol-band { font-size: 11px; letter-spacing: .1em; }
  .rung-brand, .rung-seg { display: none; }
  .rung-num { font-size: 12px; margin-bottom: 4px; }
  .rung-name { font-size: 14px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
  .rung-riser { height: calc(56px + var(--i) * 24px); margin-top: 10px; padding: 10px 8px; border-radius: 10px 10px 0 0; }
  .rung-riser::before { border-radius: 10px 10px 0 0; }
  .rung-scale { font-size: 15px; white-space: normal; }
  .rung-scale small { display: block; margin: 3px 0 0; font-size: 11px; }
  .sol-spec { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .logo-text { font-size: 15px; letter-spacing: .06em; }
  .logo-badge { width: 44px; height: 44px; border-radius: 10px; }
  .logo-img { width: 39px; }
  .hero-actions .btn { width: 100%; }
  .projects-marquee { --card-w: 82vw; --card-gap: 16px; }
  .ft-actions .btn { width: 100%; }
  .highlights { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-top { margin-bottom: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat:nth-child(2) { padding-left: 20px; }
  .sol-main .btn { width: 100%; }
  .sol-ref-figs > div { padding-left: 14px; }
  .capability-list { grid-template-columns: 1fr; row-gap: 0; }
  .capability-list li, .capability-list li:nth-child(3n + 1) { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 360px) {
  .logo-text { font-size: 13px; letter-spacing: .04em; }
  .logo { gap: 8px; }
  .trusted-list { grid-template-columns: 1fr; }
  .trusted-list li { padding-left: 0; border-left: 0; }
}

@media (max-width: 1100px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .step:not(:nth-child(4n)):not(:last-child)::after { display: none; }
  .step:nth-child(odd):not(:last-child)::after { content: ""; display: block; position: absolute; z-index: -1; top: 31px; left: 64px; right: -24px; height: 2px; background: var(--line); }
  .tp-path { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .tp-stage:nth-child(3) { padding-left: 0; border-left: 0; }
  .tp-stage:nth-child(3)::before { left: 0; }
  .case-panel { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav-wa {
    display: flex; gap: 10px; width: auto; height: auto; min-height: 54px; border-radius: 999px;
    justify-content: center; align-items: center; border: 0; background: var(--whatsapp); color: var(--white); font-weight: 600;
  }
  .header.is-solid .nav-wa { border: 0; color: var(--white); }
  .nav-wa-label { display: inline; }
  .wa-float { display: grid; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before, .timeline::after { display: block; }
  .step::after, .step:nth-child(odd):not(:last-child)::after { display: none !important; }
  .tp-path { grid-template-columns: 1fr; row-gap: 0; }
  .tp-stage:nth-child(3) { padding-left: 40px; }
  .why-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}

@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem { padding: 22px 20px 20px; }
  .problem > .icon { margin-bottom: 14px; }
}

@media (max-width: 600px) {
  .sol-actions .btn, .contact-actions .btn, .case-actions .btn, .projects-cta-actions .btn, .form-actions .btn, .why-intro .btn, .faq-head .btn { width: 100%; }
  .check-grid { grid-template-columns: 1fr; }
  .case-figs { grid-template-columns: 1fr; }
  .case-figs > div, .case-figs > div:first-child { padding: 16px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .faq-item p { padding-right: 0; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 960px) {
  .ft { grid-template-columns: 1fr; }
  .ft-media { min-height: 0; aspect-ratio: 16 / 10; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-info { position: static; }
  .page-stats > div { padding-right: 24px; margin-right: 24px; }
  .filter-inner { padding-block: 10px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .filter-count { display: none; }
}

@media (max-width: 600px) {
  .proj-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .proj-actions .btn { width: 100%; }
  .proj-specs > div { grid-template-columns: 96px 1fr; }
  .lb-stage { padding: 60px 8px 4px; }
  .lb-stage img, .lb-stage video { max-width: calc(100vw - 16px); max-height: calc(100dvh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 10px; margin-top: 0; }
  .page-stats > div { padding-right: 18px; margin-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .timeline::after { transform: none !important; transition: none; }
  .js .sol-range .rung-riser { clip-path: none; transition: none; }
  .nav, .nav.is-open { transform: none; }
  .service-card:hover, .project-card:hover, .btn:hover, .btn:hover .icon, .tp-link:hover .icon, .problem:hover, .problem:hover .problem-go .icon,
  .project-card:hover .project-media img, .ph:hover img, .project-link:hover .icon, .ft:hover .ft-media img { transform: none; }
  .projects-marquee > li { animation: none; scroll-snap-align: start; }
  .projects-marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .projects-marquee > li[aria-hidden="true"], .marquee-toggle { display: none; }
  .project-card:hover .panel-grid { transform: perspective(700px) rotateX(58deg) rotateZ(var(--rot, -20deg)); }
}
