/* =========================================================================
   WATERCUT — SIA "KUĢU INŽENIERIS"
   Design system ported from the Roofaro Webflow template structure.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */

:root {
  /* Primary — ramp built around the brand accent #159ae9.
     700/800 are the deep navies used for text sitting ON the accent;
     500 is the darker step used for hover, where the label turns white. */
  --primary-100: #f2f9fe;
  --primary-200: #e3f2fd;
  --primary-300: #c5e6fb;
  --primary-400: #159ae9;
  --primary-500: #0a72b0;
  --primary-600: #0a5c8f;
  --primary-700: #06293f;
  --primary-800: #041a29;

  /* Neutrals */
  --gray-100: #fafafa;
  --gray-200: #f2f2f2;
  --gray-300: #e6e6e6;
  --gray-400: #8f8f8f;
  --gray-500: #6f6f6f;
  --gray-600: #5c5c5c;
  --gray-700: #262626;
  --gray-800: #1a1a1a;
  --gray-900: #0a0a0a;

  /* Whites */
  --white-100: #ffffff0a;
  --white-200: #ffffff14;
  --white-300: #ffffff1f;
  --white-400: #ffffff29;
  --white-500: #ffffff4d;
  --white-600: #ffffff99;
  --white-700: #ffffffb3;
  --white-800: #ffffffcc;

  /* Type */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Industrial canvas — used after the hero so the page stays in the workshop,
     not a white brochure. */
  --ink-bg: #0a1014;
  --ink-bg2: #0e191f;
  --ink-panel: #152530;
  --paper: #edf0f0;
  --paper-ink: #111c24;
  --muted-on-dark: #9eabb3;
  --line-on-dark: rgba(207, 224, 234, 0.17);

  --h1: 3.25rem;
  --h2: 3rem;
  --h3: 2.5rem;
  --h4: 2rem;
  --h5: 1.75rem;
  --h6: 1.5rem;
  --p1: 1.25rem;
  --p2: 1.125rem;
  --p3: 1rem;
  --p4: 0.875rem;
  --p5: 0.75rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-pill: 100rem;

  /* Layout */
  --container: 80rem;
  --container-pd: 1.25rem;
  --section-pd: 7.5rem;
}

@media (max-width: 991px) {
  :root {
    --h1: 3.5rem;
    --h2: 2.5rem;
    --h3: 2rem;
    --h4: 1.75rem;
    --h5: 1.5rem;
    --section-pd: 5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --h1: 2.75rem;
    --h2: 2.25rem;
    --h3: 1.875rem;
    --h4: 1.5rem;
    --p1: 1.125rem;
    --section-pd: 4rem;
  }
}

/* ---------- 2. Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Keeps in-page anchor targets clear of the sticky bar. */
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--ink-bg);
  color: var(--muted-on-dark);
  font-family: var(--font-body);
  font-size: var(--p3);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--gray-900);
  font-family: var(--font-heading);
  font-weight: 500;
}

h1 { font-size: var(--h1); line-height: 1;    letter-spacing: -0.02em; }
h2 { font-size: var(--h2); line-height: 1.1;  letter-spacing: -0.03em; }
h3 { font-size: var(--h3); line-height: 1.15; letter-spacing: -0.03em; }
h4 { font-size: var(--h4); line-height: 1.2;  letter-spacing: -0.02em; }
h5 { font-size: var(--h5); line-height: 1.2;  letter-spacing: -0.02em; }
h6 { font-size: var(--h6); line-height: 1.3;  letter-spacing: -0.02em; }

p { margin: 0; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

/* ---------- 3. Layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pd);
  padding-right: var(--container-pd);
}

.section { padding-block: var(--section-pd); }
.section--tight { padding-block: calc(var(--section-pd) * 0.66); }
.section--gray { background-color: var(--gray-100); }
.section--dark { background-color: var(--gray-900); }

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 { color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background-color: #fff;
  color: var(--gray-900);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 4. Type helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-900);
  font-size: var(--p4);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--primary-400);
  flex-shrink: 0;
}

.eyebrow--light { color: #fff; }

.eyebrow--pill {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-pill);
  background-color: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(1rem);
  color: #fff;
}

.lead {
  font-size: var(--p2);
  line-height: 1.5;
  color: var(--gray-600);
}

.lead--light { color: var(--white-700); }

.statement {
  font-family: var(--font-heading);
  font-size: var(--h4);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.text-muted { color: var(--gray-500); }

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 1.25rem;
  font-family: var(--font-body);
  font-size: var(--p3);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.btn svg { flex-shrink: 0; }

/* White labels, so the fill steps down to --primary-500. The accent itself
   (#159ae9) can't carry white text at any weight — it tops out at 3.07:1,
   under the 4.5:1 floor — so it stays the brand colour everywhere else
   (logo, bullets, eyebrow dots, the CTA panel) and the button takes the
   next step down the same ramp at 5.19:1. */
.btn--primary {
  background-color: var(--primary-500);
  color: #fff;
}
.btn--primary:hover { background-color: var(--primary-600); color: #fff; }

.btn--white {
  background-color: #fff;
  color: var(--primary-800);
}
.btn--white:hover { background-color: var(--primary-300); }

.btn--outline-light {
  border-color: var(--white-400);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; background-color: var(--white-200); }

.btn--outline-dark {
  border-color: var(--gray-300);
  color: var(--gray-900);
}
.btn--outline-dark:hover { border-color: var(--gray-900); }

.btn--ghost-light { color: #fff; padding-inline: 0; }
.btn--ghost-light:hover { color: var(--primary-400); }

/* ---------- 6. Navigation ---------- */

/* One floating white bar holding the brand, the links and the CTA — the nav
   carries its own surface, so its contrast no longer depends on the clip. */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-block: 1.5rem;
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  border-radius: 1.25rem;
}

/* ---- Hero pill: smoked glass over the clip, white type on top ----
   The alpha is set by measurement rather than taste. White text needs the
   composited surface to stay under 0.183 luminance to clear 4.5:1, and the
   brightest frames of the clip sit right under the nav, so it has to carry
   real density — the blur alone will not darken anything. */
.nav .nav__inner {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: rgba(8, 12, 18, 0.26);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

@supports not (backdrop-filter: blur(1px)) {
  .nav .nav__inner { background-color: rgba(8, 12, 18, 0.88); }
}

.nav .brand { color: #fff; }
.nav .brand__tagline { color: rgba(255, 255, 255, 0.6); }

.nav .nav__link { color: rgba(255, 255, 255, 0.9); }
.nav .nav__link:hover,
.nav .nav__link[aria-current="page"],
.nav .nav__link--trigger[aria-expanded="true"] {
  color: #fff;
  background-color: transparent;
}
.nav .nav__chevron { color: rgba(255, 255, 255, 0.55); }

.nav .langswitch__trigger { color: rgba(255, 255, 255, 0.9); }
.nav .langswitch__trigger:hover,
.nav .langswitch__trigger[aria-expanded="true"] {
  color: #fff;
  background-color: transparent;
}
.nav .langswitch__globe,
.nav .langswitch__chevron { color: rgba(255, 255, 255, 0.55); }
.nav .langswitch__trigger:hover .langswitch__globe { color: rgba(255, 255, 255, 0.85); }

.nav .nav__toggle {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.14);
}
.nav .nav__toggle:hover { background-color: rgba(255, 255, 255, 0.24); }

/* ---- Sticky clone: unchanged, light bar with dark type ---- */
.navbar__inner {
  border-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6875rem;
  color: var(--gray-900);
}

.brand__mark { flex-shrink: 0; }

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Tracked out to sit under the wordmark at roughly matching width. */
.brand__tagline {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gray-500);
}

/* Narrow bars: shed the toggle's label and scale the lockup down rather than
   let the wordmark wrap onto two lines. */
@media (max-width: 575px) {
  .nav .brand__name { font-size: 1.125rem; }
  .nav .brand__tagline { font-size: 0.4375rem; letter-spacing: 0.13em; }
  .nav__toggle-label { display: none; }
  .nav__toggle { padding: 0.5rem 0.625rem; }
  .nav__inner { gap: 0.25rem; padding-left: 0.875rem; }
  .langswitch__trigger { padding-inline: 0.5rem; }
}

/* The footer sits on --gray-900, so the mark inverts there. */
.footer .brand { color: #fff; }
.footer .brand__tagline { color: var(--white-600); }

/* auto margins on the link list give a balanced three-zone bar:
   brand left, links centred, utilities right. */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-inline: auto;
}

.nav__utils {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.nav__link {
  display: block;
  position: relative;
  padding: 0.5rem 0.875rem;
  border-radius: 0;
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: 0.2rem;
  height: 1.5px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"],
.nav__link--trigger[aria-expanded="true"] {
  color: var(--gray-900);
  background-color: transparent;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__link--trigger[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.nav__menu-cta { display: none; }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: rgba(10, 10, 10, 0.05);
  color: var(--gray-900);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__toggle:hover { background-color: rgba(10, 10, 10, 0.1); }

@media (max-width: 991px) {
  .nav__inner { padding: 0.5rem 0.5rem 0.5rem 1.125rem; }
  .nav__menu { margin-inline: 0; }

  .nav__menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: var(--container-pd);
    right: var(--container-pd);
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
    background-color: #fff;
  }
  .nav__menu[data-open="true"] { display: flex; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }

  /* The collapsed panel is a white surface, so the light-on-glass colours used
     in the bar itself have to be undone here or the links vanish into it. */
  .nav .nav__menu .nav__link { color: var(--gray-700); }
  .nav .nav__menu .nav__link:hover,
  .nav .nav__menu .nav__link[aria-current="page"],
  .nav .nav__menu .nav__link--trigger[aria-expanded="true"] {
    color: var(--gray-900);
    background-color: transparent;
  }
  .nav .nav__menu .nav__chevron { color: var(--gray-400); }

  /* The header CTA moves inside the menu at this width */
  .nav__menu-cta { display: block; margin-top: 0.5rem; }
  .nav__menu-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- 6a. Services megamenu ---------- */

/* static, so the panel below resolves against .nav__inner / .navbar__inner
   and can span the full container width. */
.nav__item { position: static; }

.nav__link--trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 0;
  background-color: transparent;
  font-family: inherit;
  line-height: 1.5;
}

.nav__chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.nav__link--trigger[aria-expanded="true"] { color: var(--gray-900); background-color: transparent; }
.nav__link--trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 0.625rem);
  left: 0;
  right: 0;
  z-index: 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 1.25rem;
  background-color: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 44px -14px rgba(8, 12, 18, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

@supports not (backdrop-filter: blur(1px)) {
  .mega { background-color: rgba(255, 255, 255, 0.94); }
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.mega[hidden] { display: none; }

.mega__body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem;
}

.mega__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.125rem;
  align-content: start;
}

.mega__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.mega__item:hover { background-color: rgba(10, 10, 10, 0.05); }

.mega__icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.625rem;
  background-color: var(--primary-100);
  color: var(--primary-500);
}

.mega__item:hover .mega__icon { background-color: var(--primary-200); }

.mega__text { display: block; }

.mega__title {
  display: block;
  color: var(--gray-900);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.mega__desc {
  display: block;
  margin-top: 0.1875rem;
  color: var(--gray-500);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.mega__banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--primary-700);
}

.mega__banner-eyebrow {
  color: var(--primary-400);
  font-size: var(--p4);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mega__banner-title {
  margin-top: 0.625rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mega__banner-text {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--white-700);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.mega__banner .btn { margin-top: auto; }

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  background-color: rgba(255, 255, 255, 0.28);
}

.mega__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.mega__contact svg { flex-shrink: 0; color: var(--gray-400); }
a.mega__contact:hover { color: var(--primary-500); }
a.mega__contact:hover svg { color: var(--primary-500); }
.mega__contact--plain { cursor: default; }

/* Compact nav dropdown (Watercut → Par mums / Galerija).
   Anchored to the item, not the full bar, unlike the services mega. */
.nav__item--drop { position: relative; }

.drop {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 10;
  min-width: 11.5rem;
  padding: 0.375rem;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0.875rem;
  background-color: #fff;
  box-shadow: 0 14px 32px -12px rgba(8, 12, 18, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.drop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.drop[hidden] { display: none; }

.drop__item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: 0.9375rem;
  font-weight: 500;
}

.drop__item:hover { background-color: var(--gray-200); color: var(--gray-900); }

@media (max-width: 991px) {
  /* Inside the collapsed menu the panel is just a nested list — no floating
     card, no promo, no descriptions to scroll past. */
  .mega {
    position: static;
    margin: 0.25rem 0 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .mega__body { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .mega__services { grid-template-columns: minmax(0, 1fr); }
  .mega__item { padding: 0.5rem 0.75rem; gap: 0.625rem; }
  .mega__icon { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; }
  .mega__icon svg { width: 16px; height: 16px; }
  .mega__desc { display: none; }
  .mega__banner { display: none; }
  .drop {
    position: static;
    min-width: 0;
    margin: 0.25rem 0 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }
  .drop__item { padding: 0.5rem 0.75rem; }
  .mega__foot {
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 0.5rem;
    padding: 0.875rem 0.75rem;
    border-radius: 0.75rem;
    background-color: var(--gray-100);
  }
}

/* ---------- 6b. Language switcher ---------- */

.langswitch { position: relative; flex-shrink: 0; }

.langswitch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--gray-700);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

.langswitch__trigger:hover,
.langswitch__trigger[aria-expanded="true"] {
  background-color: transparent;
  color: var(--gray-900);
}

.langswitch__globe { flex-shrink: 0; color: var(--gray-500); }
.langswitch__trigger:hover .langswitch__globe { color: var(--gray-700); }

.langswitch__chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}

.langswitch__trigger[aria-expanded="true"] .langswitch__chevron { transform: rotate(180deg); }

.langswitch__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 5;
  min-width: 11.5rem;
  padding: 0.375rem;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0.875rem;
  background-color: #fff;
  box-shadow: 0 14px 32px -12px rgba(8, 12, 18, 0.3);
}

.langswitch__menu[hidden] { display: none; }

.langswitch__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.langswitch__option:hover { background-color: var(--gray-200); color: var(--gray-900); }

.langswitch__option[aria-current="true"] {
  color: var(--gray-900);
  font-weight: 600;
  background-color: var(--gray-100);
}

.langswitch__code {
  color: var(--gray-400);
  font-size: var(--p4);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.langswitch__option[aria-current="true"] .langswitch__code { color: var(--primary-400); }

/* Sticky clone of the hero bar. The bar itself is full-bleed; the row inside
   is held to the same container width as every other section. */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
}

@supports not (backdrop-filter: blur(1px)) {
  .navbar { background-color: #fff; }
}

.navbar[data-visible="true"] {
  transform: translateY(0);
  visibility: visible;
}

/* position:relative so the collapsed menu drops against the container edge
   rather than the full-bleed bar. */
.navbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.6875rem;
}

@media (max-width: 991px) {
  /* The hero nav is a floating pill, so its dropdown sits below it with a gap.
     This bar is flush to the top edge, so the gap would just expose a strip of
     the page between the two — drop the menu straight onto the bar instead. */
  .navbar .nav__menu {
    top: 100%;
    border-radius: 0 0 1.25rem 1.25rem;
  }
}

/* ---------- 7. Hero ---------- */

.hero {
  position: relative;
  min-height: 57.5rem; /* 46rem + 25% */
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  background-color: var(--gray-900);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The poster is painted by the element itself until the clip starts, so the
   swap is invisible — no flash, no layout shift. */
.hero__video {
  display: block;
  background-color: var(--gray-900);
  pointer-events: none;
}

/* Two functional scrims, not decoration: the horizontal one keeps the headline
   column legible whatever the clip is showing, the vertical one anchors the
   nav and the bottom edge. Tuned against measured luminance of the footage. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(10, 10, 10, 0.82) 0%,
      rgba(10, 10, 10, 0.62) 38%,
      rgba(10, 10, 10, 0.15) 72%,
      rgba(10, 10, 10, 0.15) 100%),
    linear-gradient(to bottom,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.25) 35%,
      rgba(10, 10, 10, 0.8) 100%);
}

@media (max-width: 991px) {
  /* Single column at this width — the headline sits over the whole frame. */
  .hero__scrim {
    background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0.6) 0%,
      rgba(10, 10, 10, 0.55) 35%,
      rgba(10, 10, 10, 0.85) 100%);
  }
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title {
  margin-top: 1.5rem;
  color: #fff;
  max-width: 16ch;
}

.hero__lead {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--primary-400);
  max-width: 34rem;
  color: var(--white-800);
  font-size: var(--p2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: var(--p3);
}
.hero__phone:hover { color: var(--primary-400); }

@media (max-width: 991px) {
  .hero { min-height: 0; padding-top: 8rem; padding-bottom: 4rem; }
}

/* ---------- 8. Editorial type + shared section chrome ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.display--xl { font-size: 52px; }
.display--hero { font-size: 52px; }
.display--card { font-size: clamp(1.85rem, 2.8vw, 2.85rem); }
.display--step { font-size: clamp(1.5rem, 2vw, 1.75rem); }
.display--work { font-size: clamp(1.5rem, 2.2vw, 1.7rem); }

@media (max-width: 767px) {
  .display--xl,
  .display--hero { font-size: 2rem; }
}

.accent { color: var(--primary-400); }

.display-outline {
  -webkit-text-stroke: 1px rgba(220, 236, 245, 0.5);
  color: transparent;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: #c9dce6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background-color: var(--primary-400);
  flex-shrink: 0;
}

.kicker--center { justify-content: center; }

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 3.25rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid currentColor;
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
}

.text-link svg { flex-shrink: 0; transition: transform 0.25s ease; }
.text-link:hover svg { transform: translate(3px, -3px); }

.band--paper {
  background-color: var(--paper);
  color: #586770;
}

.band--paper .kicker { color: #43515b; }
.band--paper .display { color: var(--paper-ink); }
.band--paper .text-link { color: var(--paper-ink); }

/* ---------- 9. Ticker ---------- */

.ticker {
  overflow: hidden;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  background-color: #0d171d;
}

.ticker__track {
  display: flex;
  gap: 3.4rem;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker span {
  display: flex;
  align-items: center;
  gap: 3.4rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: "+";
  color: var(--primary-400);
  font-family: var(--font-body);
  font-size: 1.25rem;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- 10. Intro ---------- */

.intro-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6% 10%;
  align-items: center;
}

.intro-band__copy {
  margin-bottom: 1.35rem;
  color: var(--muted-on-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.intro-stat {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-on-dark);
}

.intro-stat strong {
  color: var(--primary-400);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.intro-stat span {
  max-width: 10rem;
  color: #b4c2ca;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-on-dark);
}

.spec-strip__item b {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.spec-strip__item span {
  display: block;
  margin-top: 0.75rem;
  color: #a2b2bd;
  font-size: 0.8125rem;
}

/* ---------- 11. Service photo cards ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.15rem;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 24rem;
  overflow: hidden;
  background-color: var(--ink-panel);
  border: 1px solid var(--line-on-dark);
  color: inherit;
  text-decoration: none;
}

a.svc-card:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}

.svc-card--lead { grid-row: span 2; min-height: 0; }

.svc-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.55);
  transition: transform 0.9s ease, opacity 0.5s ease, filter 0.5s ease;
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 12, 19, 0.98), rgba(3, 12, 19, 0.08));
}

.svc-card:hover img {
  transform: scale(1.06);
  opacity: 0.92;
  filter: saturate(0.85);
}

.svc-card__num {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.svc-card__body {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.svc-card__tag {
  color: #d5e6ef;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.svc-card h3 { margin: 1.15rem 0 0.85rem; }

.svc-card p {
  max-width: 20rem;
  color: var(--muted-on-dark);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---------- 12. Materials ---------- */

.mat-head { margin-bottom: 3.25rem; }

.mat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 9%;
  align-items: stretch;
}

.mat-visual {
  position: relative;
  margin: 0;
  min-height: 22rem;
  overflow: hidden;
  background-color: #26343e;
}

.mat-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55);
}

.mat-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 19, 29, 0.55), transparent 58%);
}

.mat-visual figcaption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mat-copy {
  display: flex;
  flex-direction: column;
}

.mat-copy > p { max-width: 32rem; margin-bottom: 0.25rem; }

.mat-list {
  margin: 2rem 0 2.25rem;
  border-top: 1px solid #bfc9cf;
}

.mat-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid #c4ced4;
  color: var(--paper-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.mat-list span {
  color: #677985;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- 13. Process ---------- */

.band--process {
  position: relative;
  background-color: #0e1921;
  overflow: hidden;
}

.band--process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 9.9rem,
    rgba(105, 157, 184, 0.05) 9.9rem,
    rgba(105, 157, 184, 0.05) 10rem
  );
  pointer-events: none;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.flow-step {
  padding-top: 1.5rem;
  border-top: 1px solid #2c414f;
}

.flow-step__no {
  color: #3b596a;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
  transition: color 0.35s ease;
}

.flow-step:hover .flow-step__no { color: var(--primary-400); }

.flow-step h3 { margin: 1.75rem 0 1rem; }

.flow-step p {
  color: var(--muted-on-dark);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ---------- 14. Works + statement + about ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
}

.work-tile { margin: 0; }

.work-tile__media {
  overflow: hidden;
  height: 28rem;
  background-color: #192d38;
}

.work-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition: transform 1s ease;
}

.work-tile:hover img { transform: scale(1.05); }

.work-tile--offset { padding-top: 5.5rem; }
.work-tile--offset .work-tile__media { height: 22rem; }

.work-tile__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line-on-dark);
}

.work-tile__caption span {
  color: #91a3ae;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.punch {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 34rem;
  overflow: hidden;
  text-align: center;
}

.punch > img {
  position: absolute;
  inset: -12% 0;
  z-index: -2;
  width: 100%;
  height: 124%;
  object-fit: cover;
  filter: saturate(0.4);
}

.punch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 17, 24, 0.74);
}

.punch__inner { padding-block: 5rem; }

.punch .display { max-width: 18ch; margin-inline: auto; }

.punch .btn { margin-top: 2rem; }

.about-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9%;
  align-items: center;
}

.about-band p {
  margin-bottom: 1.5rem;
  max-width: 34rem;
  color: var(--muted-on-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about-band .display { margin-bottom: 1.5rem; }

.about-band__photo { margin: 0; overflow: hidden; background-color: var(--ink-panel); }

.about-band__photo img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
  filter: saturate(0.6);
}

/* ---------- 15. CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: 3.75rem;
  background-color: var(--primary-400);
  color: var(--primary-800);
}

.cta-band::before {
  content: "+";
  position: absolute;
  top: -0.75rem;
  right: -0.35rem;
  color: rgba(255, 255, 255, 0.07);
  font-size: 22rem;
  font-weight: 400;
  line-height: 0.7;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem 4rem;
}

.cta-band__copy { max-width: 36rem; }

.cta-band .kicker {
  margin-bottom: 0.7rem;
  color: var(--primary-800);
}

.cta-band .kicker::before { background-color: var(--primary-800); }

.cta-band .display {
  color: var(--primary-800);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.cta-band__copy p:not(.kicker) {
  margin-top: 0.7rem;
  max-width: 32rem;
  color: var(--primary-700);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cta-band__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  flex-shrink: 0;
}

.cta-band__phone {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--primary-800);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cta-band__phone span {
  color: var(--primary-700);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-band__phone:hover { color: var(--primary-700); }

/* ---------- 15a. Motion ---------- */

.hero__container[data-reveal],
.page-hero[data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready [data-reveal].is-in,
.hero__container[data-reveal].is-in,
.page-hero[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 15b. Content breakpoints ---------- */

@media (max-width: 1100px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .svc-grid,
  .svc-grid--index { grid-template-columns: 1fr 1fr; }
  .svc-card--lead { grid-column: span 2; min-height: 26rem; grid-row: auto; }
  .spec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-related,
  .mat-grid,
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .intro-band__grid,
  .mat-layout,
  .about-band__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .mat-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
  .cta-band__actions { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .band-head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-tile--offset { padding-top: 0; }
  .work-tile__media,
  .work-tile--offset .work-tile__media { height: 20rem; }
  .about-band__photo img { height: 22rem; }
  .punch { min-height: 26rem; }
  .mat-examples { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575px) {
  .svc-grid,
  .svc-grid--index,
  .svc-related,
  .mat-grid,
  .mat-examples { grid-template-columns: minmax(0, 1fr); }
  .svc-card,
  .svc-card--lead { grid-column: auto; min-height: 22rem; }
  .gallery-grid,
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .flow-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .spec-strip { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .ticker span { font-size: 1.25rem; }
  .mat-visual { aspect-ratio: 5 / 4; }
  .mat-list li { flex-direction: column; gap: 0.25rem; }
}

/* ---------- 16. Footer ---------- */

.footer {
  padding-top: var(--section-pd);
  background-color: var(--gray-900);
  color: var(--white-600);
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 3rem 2rem;
}

.footer__tagline {
  margin-top: 1.5rem;
  max-width: 24rem;
  color: var(--white-600);
}

.footer__socials { display: flex; gap: 0.625rem; margin-top: 2rem; }

.footer__social {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--white-200);
  color: #fff;
}
.footer__social:hover { background-color: var(--primary-400); color: var(--primary-700); }

.footer__heading {
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--p2);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.footer__list { display: grid; gap: 0.75rem; }
.footer__list a:hover { color: var(--primary-400); }

.footer__contact dt {
  color: #fff;
  font-size: var(--p4);
  font-weight: 600;
}
.footer__contact dd { margin: 0.25rem 0 1.25rem; }
.footer__contact a:hover { color: var(--primary-400); }

.footer__wordmark {
  margin-top: 4.5rem;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 15.5vw, 15rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--white-100);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--white-200);
  font-size: var(--p4);
}

.footer__bottom a:hover { color: #fff; }

.footer-dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  color: var(--gray-400);
}

.footer-dev-credit:hover { color: #fff; }

.footer-dev-credit__label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.footer-dev-credit img {
  display: block;
  height: 26px;
  width: auto;
}

@media (max-width: 991px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 17. Contacts page ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-head {
  position: relative;
  background-color: var(--ink-bg);
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.page-hero .display { max-width: 16ch; }

.page-hero__lead {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--primary-400);
  max-width: 34rem;
  color: var(--white-800);
  font-size: var(--p2);
  line-height: 1.55;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 2rem;
}

.contact-direct { padding-top: 4.5rem; }

.contact-direct__head { margin-bottom: 2.75rem; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  margin: 0;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  background-color: var(--ink-panel);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.28s ease, transform 0.28s ease;
}

a.contact-card:hover {
  border-color: rgba(21, 154, 233, 0.55);
  transform: translateY(-2px);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  background-color: rgba(21, 154, 233, 0.12);
  color: var(--primary-400);
}

.contact-card__label {
  margin: 0 0 0.45rem;
  color: #8aa0ac;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card__value {
  margin: 0;
  color: var(--paper);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  word-break: break-word;
}

.contact-card__hint {
  margin: 0.45rem 0 0;
  color: var(--muted-on-dark);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.contact-card__action {
  appearance: none;
  margin-top: 1.15rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-400);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-card__action:hover { color: #fff; }

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3.5rem 4.5rem;
  align-items: start;
}

.inquiry-panel {
  padding: 2.25rem 2rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  background-color: var(--ink-panel);
}

.inquiry__lead {
  margin: 1.35rem 0 2rem;
  max-width: 34rem;
  color: var(--muted-on-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.field__req { color: var(--primary-400); }

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field--full { grid-column: 1 / -1; }

.field label {
  color: #c9dce6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  background-color: var(--ink-panel);
  color: var(--paper);
  font: inherit;
  line-height: 1.5;
}

.field textarea { resize: vertical; min-height: 9rem; }

.field input::placeholder,
.field textarea::placeholder { color: #6f828d; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(21, 154, 233, 0.18);
}

.inquiry-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.inquiry-form__note {
  color: #8aa0ac;
  font-size: 0.8125rem;
}

.inquiry-list {
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
}

.inquiry-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line-on-dark);
}

.inquiry-list li:last-child { border-bottom: 1px solid var(--line-on-dark); }

.inquiry-list span {
  color: #3b596a;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.inquiry-list strong {
  display: block;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
}

.inquiry-list p {
  margin-top: 0.35rem;
  color: var(--muted-on-dark);
  font-size: 0.875rem;
  line-height: 1.6;
}

.inquiry-aside .display { margin: 0.75rem 0 1.5rem; max-width: 16ch; }

.rekviziti {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.5rem 8%;
  align-items: start;
}

.rekviziti__lead {
  margin: 1.5rem 0 1.75rem;
  max-width: 28rem;
  color: #586770;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.rek-list {
  margin: 0;
  border-top: 1px solid #c4ced4;
}

.rek-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.7fr) minmax(0, 1.4fr) auto;
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid #c4ced4;
}

.rek-row__label {
  color: #6d7e88;
  font-size: 0.8125rem;
  font-weight: 600;
}

.rek-row__value {
  color: var(--paper-ink);
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

.rek-row__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #c4ced4;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--paper-ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rek-row__copy:hover,
.rek-row__copy.is-copied {
  border-color: var(--primary-400);
  background-color: var(--primary-100);
  color: var(--primary-600);
}

@media (hover: hover) and (pointer: fine) {
  .rek-row__copy {
    opacity: 0;
    pointer-events: none;
  }

  .rek-row:hover .rek-row__copy,
  .rek-row:focus-within .rek-row__copy,
  .rek-row__copy.is-copied {
    opacity: 1;
    pointer-events: auto;
  }
}

.contact-place {
  border-top: 1px solid #d5dde2;
}

.contact-place__head { margin-bottom: 2.5rem; }

.contact-place__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: #586770;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.contact-place__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.85fr);
  gap: 2rem 2.5rem;
  align-items: stretch;
}

.contact-place__map {
  overflow: hidden;
  min-height: 22rem;
  background-color: #d7dee3;
}

.contact-place__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}

.contact-place__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 2rem 2rem 2.15rem;
  background: #fff;
  color: var(--paper-ink);
}

.contact-place__city {
  margin: 0;
  color: #6d7e88;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-place__company {
  margin: 0.15rem 0 0.35rem;
  color: var(--paper-ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.contact-place__card p {
  margin: 0;
  color: #3d4d56;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-place__card a {
  color: var(--paper-ink);
  font-size: 0.9375rem;
}

.contact-place__card a:hover { color: var(--primary-500); }

.contact-place__card .btn { margin-top: 1.15rem; }

.dir-modal {
  position: fixed;
  inset: 0;
  width: min(28.5rem, calc(100vw - 2rem));
  height: fit-content;
  margin: auto;
  padding: 2rem 1.75rem 1.75rem;
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  color: #0d1a22;
  box-shadow: 0 24px 60px -20px rgba(8, 14, 18, 0.55);
}

.dir-modal::backdrop { background: rgba(8, 14, 18, 0.62); }

.dir-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d7e88;
  cursor: pointer;
}

.dir-modal__close:hover { background: #f2f5f7; color: #0d1a22; }

.dir-modal__title {
  margin: 0 2rem 0.65rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dir-modal__text {
  margin: 0 0 1.5rem;
  color: #5b6d77;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dir-modal__apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.dir-modal__app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.15rem 0.75rem 1rem;
  border: 1px solid #e4eaee;
  border-radius: 0.85rem;
  background: #fff;
  color: #0d1a22;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dir-modal__app:hover {
  border-color: var(--primary-400);
  box-shadow: 0 10px 24px -16px rgba(8, 14, 18, 0.45);
}

.dir-modal__app img {
  width: auto;
  height: 3.5rem;
  object-fit: contain;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 40;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: #111c24;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transform: translate(-50%, 0.5rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 991px) {
  .inquiry,
  .rekviziti,
  .about-do,
  .contact-place__grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
}

.about-facts .spec-strip {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-do {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem 8%;
  align-items: start;
}

.about-do__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: #586770;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about-do .text-link { margin-top: 0.5rem; }

.cap-list { margin: 0; }

.cap-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.15rem;
  border-top: 1px solid #c4ced4;
}

.cap-list li:last-child { border-bottom: 1px solid #c4ced4; }

.cap-list span {
  color: #8a9aa3;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.cap-list strong {
  display: block;
  color: var(--paper-ink);
  font-size: 1rem;
  font-weight: 600;
}

.cap-list p {
  margin-top: 0.35rem;
  color: #586770;
  font-size: 0.875rem;
  line-height: 1.6;
}

.page--about .page-hero .display { max-width: 14ch; }

.page--service .page-hero .display,
.page--services .page-hero .display { max-width: 16ch; }

.page--materials .page-hero .display { max-width: 18ch; }

.page--process .page-hero .display { max-width: 14ch; }

.page--gallery .page-hero .display { max-width: 16ch; }

.page--process .page-hero .display { max-width: 14ch; }

.page--gallery .gallery-section { padding-top: 2.25rem; }

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem 0.6rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
  .page--gallery .gallery-tabs {
    position: sticky;
    top: 4.75rem;
    z-index: 18;
    padding-block: 0.85rem;
    margin-top: -0.85rem;
    background-color: var(--ink-bg);
    box-shadow: 0 14px 18px -10px rgba(10, 16, 20, 0.95);
  }
}

.gallery-tab {
  appearance: none;
  margin: 0;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line-on-dark);
  border-radius: 100rem;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

.gallery-tab:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.gallery-tab.is-active {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: #fff;
}

.gallery-tab:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}

.gallery-status {
  margin: 0 0 1.75rem;
  color: var(--muted-on-dark);
  font-size: 0.8125rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.35rem;
  align-items: stretch;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.gallery-item.is-leaving {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item.is-entering {
  opacity: 0;
  transform: scale(0.96);
}

.gallery-item__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-item__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #192d38;
}

.gallery-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
  transition: transform 1s ease;
}

.gallery-item__open:hover img,
.gallery-item__open:focus-visible img { transform: scale(1.05); }

.gallery-item__open:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}

.gallery-item__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  min-height: 4.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line-on-dark);
}

.gallery-item__caption strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gallery-item__caption span {
  color: #91a3ae;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: min(72rem, calc(100vw - 2rem));
  height: min(90vh, 52rem);
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop { background: rgba(6, 10, 14, 0.88); }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 3.5rem 4.5rem 2.5rem;
}

.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 7rem);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111a20;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(10, 16, 20, 0.7);
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.75rem;
  height: 2.75rem;
}

.lightbox__nav {
  top: 50%;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
}

.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

.lightbox__close:hover,
.lightbox__nav:hover { background: var(--primary-500); border-color: var(--primary-500); }

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  margin: 0;
  color: #9eb0ba;
  font-size: 0.75rem;
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .lightbox { width: calc(100vw - 1rem); height: calc(100vh - 1rem); }
  .lightbox__figure { padding: 3.5rem 0.75rem 2.75rem; }
  .lightbox__nav { width: 2.5rem; height: 2.5rem; }
  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.5rem;
}

.mat-card {
  padding-block: 2rem;
  border-top: 1px solid var(--line-on-dark);
}

.mat-card__no {
  margin-bottom: 1.25rem;
  color: var(--primary-400);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mat-card .display { margin-bottom: 1rem; }

.mat-card p {
  max-width: 28rem;
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page--materials .about-do .mat-list { margin-top: 0; }

.mat-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 3rem;
}

.mat-examples figure { margin: 0; }

.mat-examples img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--ink-panel);
}

.mat-examples figcaption {
  display: grid;
  gap: 0.25rem;
  padding-top: 1rem;
}

.mat-examples strong {
  color: var(--paper);
  font-size: 1.0625rem;
}

.mat-examples span {
  color: var(--muted-on-dark);
  font-size: 0.875rem;
}

.svc-grid--index {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.svc-grid--index .svc-card { min-height: 22rem; }

.svc-prose p {
  margin-bottom: 1.5rem;
  max-width: 36rem;
  color: var(--muted-on-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.svc-faq {
  display: grid;
  gap: 0;
}

.svc-faq details {
  border-top: 1px solid var(--line-on-dark);
}

.svc-faq details:last-child { border-bottom: 1px solid var(--line-on-dark); }

.svc-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  cursor: pointer;
  list-style: none;
  color: var(--paper);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
}

.svc-faq summary::-webkit-details-marker,
.svc-faq summary::marker { display: none; content: none; }

.svc-faq:not(.is-enhanced) summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35em;
  color: var(--primary-400);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.svc-faq:not(.is-enhanced) details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.svc-faq__mark {
  position: relative;
  flex: 0 0 auto;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.35em;
  color: var(--primary-400);
}

.svc-faq__mark::before,
.svc-faq__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.svc-faq__mark::before {
  width: 100%;
  height: 1.5px;
}

.svc-faq__mark::after {
  width: 1.5px;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.svc-faq details.is-open .svc-faq__mark::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.svc-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-faq details.is-open .svc-faq__panel {
  grid-template-rows: 1fr;
}

.svc-faq__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.svc-faq p {
  margin: 0;
  padding: 0.15rem 0 1.25rem;
  max-width: 40rem;
  color: var(--muted-on-dark);
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .svc-faq__mark::after,
  .svc-faq__panel { transition: none; }
}

.band--paper .svc-faq details { border-color: #c4ced4; }
.band--paper .svc-faq summary { color: var(--paper-ink); }
.band--paper .svc-faq p { color: #586770; }

.svc-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: 3rem;
}

.svc-related a {
  display: block;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-on-dark);
  color: var(--paper);
}

.svc-related a:hover { color: var(--primary-400); }

.svc-related strong {
  display: block;
  font-size: 1rem;
}

.svc-related span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted-on-dark);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.rekviziti .text-link { margin-top: 1.75rem; }

@media (max-width: 991px) {
  .about-do { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
}

@media (max-width: 767px) {
  .page-head { padding-top: 7.5rem; padding-bottom: 3.5rem; }
  .inquiry-form { grid-template-columns: minmax(0, 1fr); }
  .inquiry-panel { padding: 1.5rem 1.15rem; }
  .contact-place__map,
  .contact-place__map iframe { min-height: 18rem; }
  .rek-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  .rek-row__value { grid-column: 1; }
  .rek-row__copy { grid-row: 1 / span 2; align-self: center; }
}

/* ---------- 18. Back to top ---------- */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 24;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary-500);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(8, 12, 18, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.55rem);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover { background-color: var(--primary-600); color: #fff; }

@media (max-width: 575px) {
  .to-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* ---------- 19. Motion preferences ---------- */

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