/* ==========================================================================
   Alzaks Multipurpose Technical Services Limited
   Modern editorial system: Syne + DM Sans, cobalt brand, photographic hero.
   Tokens below are the single source of truth.
   ========================================================================== */

:root {
  --color-accent: #0e3ad4;
  --color-accent-100: #eef2ff;
  --color-accent-200: #d4ddfc;
  --color-accent-300: #9aaff5;
  --color-accent-600: #0c31b3;
  --color-accent-700: #0a2890;
  --color-accent-warm: #7a9aff;
  --color-accent-soft: #e8eeff;

  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-ink: #0b1220;
  --color-text: #141c28;
  --color-text-2: #2a3444;
  --color-muted: #5a6575;
  --color-muted-2: #6b7585;
  /* 4.6:1 on --color-bg. The small uppercase labels this drives (contact
     row labels, brand sub-line, trust label) need AA at 11px. */
  --color-muted-3: #68717f;

  --color-line: #e4e7ec;
  --color-line-2: #eceef2;
  --color-line-3: #dde1e8;

  --color-link: #0e3ad4;
  --color-link-hover: #0a2890;

  --font-heading: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --gutter: clamp(20px, 4.5vw, 48px);
  --measure: 1180px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --lift-shadow: 0 20px 40px -24px rgba(11, 18, 32, 0.35);
}

/* --- reset / base ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--color-text);
}

p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }

img { display: block; max-width: 100%; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-200); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Keyboard users land here first and can jump the whole nav. Off-screen
   until focused, never display:none — that would drop it from tab order. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform 0.18s var(--ease-out);
}
/* :focus as well as :focus-visible — the link is only ever reached by
   keyboard, and the global `:focus { outline: none }` would otherwise let
   it take focus while still parked off-screen. */
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.accent { color: var(--color-accent); }
.accent-warm { color: var(--color-accent-warm); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --- layout ------------------------------------------------------------- */

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

.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tight { padding-block: clamp(28px, 4vw, 44px); }
.section--snug  { padding-block: clamp(40px, 5.5vw, 64px); }
.section--tint {
  background: var(--color-surface);
  border-block: 1px solid var(--color-line-2);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 10px;
}

.section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(28px, 4.2vw, 40px); }
.section-head--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3vw, 40px);
  align-items: end;
}
.section-head__lead {
  margin: 0;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
}

.h2--md { font-size: clamp(26px, 4vw, 36px); margin-bottom: 28px; }
.h2--lg { font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 16px; }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.2s var(--ease-out);
}
.btn svg { display: block; flex: none; }

.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-600); color: #fff; }
.btn--primary:active { background: var(--color-accent-700); }

/* Outlined on the page's own light ground — the hero is no longer a dark
   photograph, so the old translucent-white treatment would vanish. */
.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-line-3);
}
.btn--ghost:hover {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
  border-color: var(--color-accent-300);
}

.btn--sm { font-size: 14px; padding: 10px 18px; }
.btn--lg { font-size: 15px; padding: 14px 24px; }
.btn--block { width: 100%; min-height: 50px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.link-arrow:hover { color: var(--color-accent-600); }
.link-arrow svg { transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 248, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-line);
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-block: 14px;
  transition: padding-block 0.3s var(--ease-out);
}
.site-header.is-scrolled .site-header__inner { padding-block: 10px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: inherit; }
.brand__logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.3s var(--ease-out), width 0.3s ease, height 0.3s ease;
}
.site-header.is-scrolled .brand__logo { width: 34px; height: 34px; }
.brand:hover .brand__logo { transform: scale(1.04); }
.brand__text { min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.brand__sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-3);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav-desktop a {
  color: var(--color-text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-desktop a:not(.btn):hover { color: var(--color-accent); }
.nav-desktop a.is-active { color: var(--color-accent); }
.nav-desktop a.btn { color: #fff; }

.nav-desktop a:not(.btn) {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.nav-desktop a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.28s var(--ease-out);
}
.nav-desktop a:not(.btn):hover::after,
.nav-desktop a:not(.btn):focus-visible::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease-out), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition: opacity 0.26s ease, transform 0.26s var(--ease-out);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile.is-open { opacity: 1; transform: none; }
.nav-mobile a {
  color: var(--color-text);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  opacity: 0;
  transform: translate3d(0, -4px, 0);
  transition: opacity 0.28s ease, transform 0.28s var(--ease-out), color 0.2s ease;
}
.nav-mobile.is-open a { opacity: 1; transform: none; }
.nav-mobile.is-open a:nth-child(1) { transition-delay: 40ms; }
.nav-mobile.is-open a:nth-child(2) { transition-delay: 70ms; }
.nav-mobile.is-open a:nth-child(3) { transition-delay: 100ms; }
.nav-mobile.is-open a:nth-child(4) { transition-delay: 130ms; }
.nav-mobile.is-open a:nth-child(5) { transition-delay: 160ms; }
.nav-mobile.is-open a:nth-child(6) { transition-delay: 190ms; }
.nav-mobile a:not(.nav-mobile__cta):hover { color: var(--color-accent); }

a.nav-mobile__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 48px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}
a.nav-mobile__cta:hover { background: var(--color-accent-600); color: #fff; }

@media (max-width: 999px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 1000px) {
  .nav-mobile { display: none; }
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  background: var(--color-accent);
  pointer-events: none;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line-2);
  overflow: hidden;
}

/* A single soft cobalt wash bled in from the right, behind everything. It
   ties the photo column to the brand without tinting the text side. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 88% 18%, var(--color-accent-soft) 0%, transparent 62%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero__copy { min-width: 0; }

/* Outlined, not filled. The wordmark is the largest thing in the hero but the
   least informative — the logo says it again in the header — so it reads as
   graphic texture and hands the visual weight to the headline below it.
   Solid ink is the default: if -webkit-text-stroke is missing, transparent
   fill would leave nothing on screen at all. */
.hero__brand {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  /* Sized to the column, not the viewport — 12vw was tuned for full-bleed. */
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

@supports (-webkit-text-stroke: 1px black) {
  .hero__brand {
    color: transparent;
    -webkit-text-stroke: clamp(1.2px, 0.17vw, 2px) var(--color-accent);
  }
}

.hero__title {
  /* The break after "power" is hard-coded in the markup: a solid two-line
     mass reads heavier against the hairline wordmark than one long line, and
     it stops "that" dangling at a line end. A ch-based measure can't do it —
     Syne's ch is 0.71em, so the value that breaks correctly at 46px sends the
     second line to three lines by 30px. max-width is only a safety net for a
     fallback font. */
  max-width: 16ch;
  margin: 0 0 20px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-ink);
}

.hero__lead {
  max-width: 42ch;
  margin: 0 0 28px;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: var(--color-muted);
}

.hero__meta {
  margin: 28px 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-3);
}

.hero .btn--primary:hover { transform: translateY(-1px); }

/* --- hero figure --------------------------------------------------------- */

.hero__figure {
  position: relative;
  justify-self: end;
  width: 100%;
  /* Never wider than the source is tall in detail — 460 CSS px is 920 device
     px at 2× DPR, still inside the 896 px native width, so no upscaling. */
  max-width: 460px;
}

.hero__frame { position: relative; }

/* Offset cobalt plate: gives the contained photo editorial weight without
   asking the file to cover more pixels than it has. */
.hero__frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30px -24px -24px 30px;
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  opacity: 0.14;
}

/* The slider owns the shape and the clipping; the slides just stack inside
   it. The sources are 800×1024 and 724×1024 — 4/5 sits between them, so both
   crop by only a few percent. */
.hero__slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-accent-100);
  box-shadow: 0 30px 60px -30px rgba(11, 18, 32, 0.45);
  transform: scale(1.03);
  transition: transform 1.4s var(--ease-out), opacity 0.8s var(--ease-out);
}
.js .hero:not(.is-ready) .hero__slider { opacity: 0; }
.js .hero.is-ready .hero__slider { transform: scale(1); opacity: 1; }

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Above centre: what gets trimmed is floor, not the subject's head. */
  object-position: 50% 30%;
  filter: url(#photo-cool);
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.hero__slide.is-active { opacity: 1; }
/* No JS: only the first slide is ever marked active, so it just sits there. */

.hero__dots {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  /* Sits over photography, so it carries its own ground rather than relying
     on whatever happens to be behind it in a given slide. */
  background: rgba(11, 18, 32, 0.42);
  backdrop-filter: blur(6px);
}
.hero__dot {
  width: 22px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color 0.25s ease, width 0.35s var(--ease-out);
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.75); }
.hero__dot[aria-current="true"] {
  width: 34px;
  background: #fff;
}
.hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.hero__caption {
  /* Must clear the accent plate, which hangs 24px below the photo. */
  margin-top: 34px;
  padding-left: 14px;
  border-left: 2px solid var(--color-accent);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-muted);
  transition: opacity 0.3s ease;
}
.hero__caption.is-swapping { opacity: 0; }

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 40px);
  }
  /* Copy first: the proposition should land before the photograph. */
  .hero__figure {
    justify-self: start;
    max-width: 340px;
  }
  .hero__frame::before { inset: 16px -12px -12px 16px; }
  .hero__caption { margin-top: 22px; }
}

/* Below this the two buttons no longer fit on one line, and wrapping leaves
   them ragged. Stack them full-width instead — a firmer tap target too. */
@media (max-width: 460px) {
  .hero .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .btn-row .btn { min-height: 50px; }
}

/* --- photography grade on project images -------------------------------- */

.project img { filter: url(#photo-cool); }

/* --- pillars ------------------------------------------------------------ */

.pillars {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line-2);
}
.pillars__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(8px, 1.5vw, 16px) clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--color-line-2);
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pillar__body {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .pillars__row { grid-template-columns: 1fr 1fr; }
  .pillar {
    padding: 20px 16px;
    border-right: none;
    border-bottom: 1px solid var(--color-line-2);
  }
  .pillar:nth-child(odd) { border-right: 1px solid var(--color-line-2); }
  .pillar:nth-last-child(-n+2) { border-bottom: none; }
  .pillar:first-child { padding-left: 16px; }
  .pillar:last-child { padding-right: 16px; }
}
@media (max-width: 520px) {
  .pillars__row { grid-template-columns: 1fr; }
  .pillar:nth-child(odd) { border-right: none; }
  .pillar { border-bottom: 1px solid var(--color-line-2); }
  .pillar:last-child { border-bottom: none; }
}

/* --- services ----------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-line);
}
.service {
  padding: clamp(24px, 3.5vw, 36px) clamp(18px, 2.5vw, 28px);
  border-bottom: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  transition: background-color 0.25s ease;
}
.service:nth-child(3n) { border-right: none; }
.service:hover { background: var(--color-surface); }
.service__title {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.service__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-muted);
}

@media (max-width: 800px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3n) { border-right: 1px solid var(--color-line); }
  .service:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: none; }
}

/* --- why / steps -------------------------------------------------------- */

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 6vw, 72px);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--color-text-2);
}
.check-list--roomy { margin-bottom: 0; }
.check-icon {
  flex: none;
  color: var(--color-accent);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  transition: background-color 0.25s ease;
}
.step:hover { background: var(--color-accent-100); }
.step__no {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--color-accent-200);
  border-radius: 50%;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  background: var(--color-surface);
}
.step__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* --- projects ----------------------------------------------------------- */

.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.projects__head h2 { font-size: clamp(28px, 4.2vw, 40px); }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}
.project {
  overflow: hidden;
  background: var(--color-surface);
}
.project img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eaee;
  transition: transform 0.7s var(--ease-out);
}
.project:hover img { transform: scale(1.03); }
.project__img--lower { object-position: 50% 35%; }

/* Feature card across the whole grid. 3:2 rather than 4:3 so a full-width
   block does not tower over the cards beneath it. */
.project--wide { grid-column: 1 / -1; }
.project--wide img { aspect-ratio: 3 / 2; }
.project figcaption {
  padding: 18px 4px 4px;
  font-size: 14px;
  color: var(--color-muted);
}
.project__title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .projects { grid-template-columns: 1fr; }
}

/* --- mini-grid ---------------------------------------------------------- */

.minigrid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-ink);
  color: #fff;
}
.minigrid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(14, 58, 212, 0.35), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(122, 154, 255, 0.12), transparent 50%);
  pointer-events: none;
}
.minigrid .eyebrow { color: var(--color-accent-warm); }
.minigrid h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 18px;
  color: #fff;
}
.minigrid__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.minigrid__lead {
  max-width: 52ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tag-outline {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tag-outline:hover {
  border-color: var(--color-accent-warm);
  background: rgba(122, 154, 255, 0.1);
}

.minigrid__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.stat {
  padding: 22px 20px;
  background: var(--color-ink);
  transition: background-color 0.25s ease;
}
.stat:hover { background: #101828; }
.stat__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--color-accent-warm);
}
.stat__body {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

/* --- smart home --------------------------------------------------------- */

.smart-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}
.smart-item {
  padding: 20px 18px;
  background: var(--color-surface);
  font-size: 14.5px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.smart-item:hover {
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}

@media (max-width: 900px) {
  .smart-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .smart-list { grid-template-columns: 1fr; }
}

/* --- about -------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.about__grid h2 { font-size: clamp(28px, 4.2vw, 40px); }
.about__copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-muted);
}
.about__copy p { margin-bottom: 14px; }
.about__copy p:last-child { margin-bottom: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--color-line);
}
.value__title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.value p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
}

@media (max-width: 700px) {
  .values { grid-template-columns: 1fr; gap: 28px; }
}

/* --- trust -------------------------------------------------------------- */

.trust { background: var(--color-surface); }
.trust-label {
  margin: 0 0 28px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted-3);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  padding: 8px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-2);
  border-right: 1px solid var(--color-line);
}
.trust-item:last-child { border-right: none; }

@media (max-width: 800px) {
  .trust-row { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .trust-item {
    border-right: none;
    padding: 12px 16px;
  }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--color-line); }
}

/* --- contact ------------------------------------------------------------ */

.contact {
  background:
    linear-gradient(180deg, #eef2ff 0%, var(--color-bg) 48%, var(--color-bg) 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact__lead {
  max-width: 42ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-muted);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 36px;
}
.contact-row__label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-3);
}
.contact-row__value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--color-text);
}
a.contact-row__value:hover { color: var(--color-accent); }
.contact-row__value--plain {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* --- quote form --------------------------------------------------------- */

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 36px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-shadow);
  transition: box-shadow 0.35s ease;
}
.quote-form:focus-within { box-shadow: 0 24px 48px -20px rgba(11, 18, 32, 0.28); }

.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-line-3);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.input:hover { border-color: #c5cad3; }
.input:focus-visible {
  background: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14, 58, 212, 0.14);
  outline: none;
}
textarea.input { min-height: 112px; resize: vertical; }
.input.is-invalid {
  border-color: #c0392b;
  animation: nudge 0.4s ease both;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  22%      { transform: translateX(-5px); }
  55%      { transform: translateX(4px); }
  80%      { transform: translateX(-2px); }
}

.form-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-accent-700);
}
.form-note[hidden] { display: none; }
.form-note.is-error { color: #a5271a; }
.form-note:not([hidden]) { animation: note-in 0.32s var(--ease-out) both; }

@keyframes note-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* --- footer ------------------------------------------------------------- */

.site-footer { background: var(--color-ink); color: #fff; }
.site-footer__inner { padding-block: clamp(48px, 7vw, 80px); }

.footer__statement {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__company {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.footer__rc {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}
.footer__col a {
  position: relative;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--color-accent-warm); }
.footer__col--muted { color: rgba(255, 255, 255, 0.62); }
.footer__legal {
  margin: 36px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* --- back to top -------------------------------------------------------- */

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s var(--ease-out), background-color 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--color-accent-600); transform: translateY(-2px); }
.to-top:active { transform: translateY(0); }

/* --- motion: scroll reveal ---------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.65s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.65s var(--ease-out) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero__brand[data-reveal],
.js .hero__title[data-reveal],
.js .hero__lead[data-reveal],
.js .btn-row[data-reveal],
.js .hero__meta[data-reveal] {
  transform: translate3d(0, 24px, 0);
}

/* --- anchors ------------------------------------------------------------ */

section[id] { scroll-margin-top: 80px; }
#top { scroll-margin-top: 0; }
