/*
 * Letterphone — site styles
 *
 * 1. Tokens (light / dark)
 * 2. Base & typography
 * 3. Layout & buttons
 * 4. Header & navigation
 * 5. Hero
 * 6. Home sections
 * 7. Inner pages
 * 8. Footer & fixed elements
 * 9. Motion
 * 10. Responsive
 */


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

:root {
  --font: "Inter", Helvetica, Arial, sans-serif;

  --brand: #003399;
  --btn-bg: #003399;
  --btn-bg-hover: #002266;
  --btn-glow: rgba(0, 51, 153, .4);

  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --text: #131722;
  --text-2: #252b38;
  --text-3: #5b6270;
  --line: #e5e2da;
  --ring: transparent;

  /* sections that are dark in both themes */
  --dark: #131722;
  --dark-2: #0e1322;
  --dark-3: #101318;
  --dark-line: #2c3342;
  --on-dark: #ffffff;
  --on-dark-2: #d7dae0;
  --on-dark-3: #aeb4bf;
  --glow: #8fb0f0;

  /* logo chips keep a white background so brand marks stay intact */
  --chip-bg: #ffffff;
  --chip-line: #e5e2da;

  --header-bg: rgba(250, 249, 246, .88);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 20, 32, .05), 0 10px 30px rgba(15, 20, 32, .07);
  --shadow-lg: 0 2px 4px rgba(15, 20, 32, .06), 0 18px 44px rgba(15, 20, 32, .13);
}

[data-theme="dark"] {
  --brand: #8fb0f0;
  --btn-bg: #2f5fd6;
  --btn-bg-hover: #3d6fe0;
  --btn-glow: rgba(61, 111, 224, .45);

  --bg: #0f1420;
  --bg-alt: #131a28;
  --surface: #171d2b;
  --text: #eef0f5;
  --text-2: #c9ced8;
  --text-3: #98a0ad;
  --line: #262d3b;
  --ring: #262d3b;

  --dark: #0b0f19;
  --dark-2: #080c14;
  --dark-3: #090d15;

  --chip-line: #2a3140;
  --header-bg: rgba(15, 20, 32, .88);

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 44px rgba(0, 0, 0, .5);
}


/* 2. Base & typography
   ------------------------------------------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
}

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}

.meta {
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.note {
  margin-top: 22px;
  font-size: .85rem;
  color: var(--text-3);
}

.note a {
  border-bottom: 1px solid var(--brand);
}


/* 3. Layout & buttons
   ------------------------------------------------------------------ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.section-head::after {
  content: "";
  width: 64px;
  height: 4px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--brand);
}

.section-gap {
  margin-top: 56px;
}

.btn {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--btn-bg);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow .25s, transform .2s, background .2s, border-color .2s, color .2s;
}

.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  box-shadow: 0 10px 30px var(--btn-glow);
  transform: translateY(-2px);
}

.btn-outline {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

.btn-outline:hover {
  color: var(--dark);
  background: #fff;
  border-color: #fff;
  box-shadow: none;
  transform: none;
}

.btn-dark {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.btn-dark:hover {
  background: var(--text-2);
  border-color: var(--text-2);
  box-shadow: none;
  transform: none;
}

[data-theme="dark"] .btn-dark {
  color: var(--bg);
}


/* 4. Header & navigation
   ------------------------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1660px;
  height: 79px;
  padding: 0 28px;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo img {
  flex: none;
  height: 30px;
  width: auto;
  max-width: none;
}

.nav {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.nav > ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.nav > ul > li {
  position: relative;
}

.nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 30px 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}

.nav > ul > li > a:hover,
.nav > ul > li > a[aria-current] {
  color: var(--brand);
}

.caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown,
.megamenu {
  position: absolute;
  top: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 48px rgba(15, 20, 32, .15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: .18s;
}

.dropdown {
  left: 0;
  min-width: 280px;
  transform: translateY(8px);
}

.megamenu {
  left: 50%;
  width: min(940px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translate(-50%, 8px);
}

li:hover > .dropdown,
li:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

li:hover > .megamenu,
li:focus-within > .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: .92rem;
  border-bottom: 1px solid var(--bg-alt);
}

.dropdown a:hover {
  background: var(--bg-alt);
  color: var(--brand);
}

.megamenu-col {
  padding: 22px 22px 26px;
  border-right: 1px solid var(--bg-alt);
}

.megamenu-col:last-child {
  border-right: 0;
}

.megamenu-col li a {
  display: block;
  padding: 6px 0;
  font-size: .87rem;
  color: var(--text-2);
}

.megamenu-col li a:hover {
  color: var(--brand);
}

.header-brands {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.header-brands img {
  height: 26px;
  width: auto;
}

.theme-dark,
[data-theme="dark"] .theme-light {
  display: none;
}

[data-theme="dark"] .theme-dark {
  display: block;
}

.header-actions {
  position: relative;
  z-index: 70;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.theme-toggle:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.burger {
  display: none;
  padding: 12px;
  margin-right: -6px;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--text);
  transition: .2s;
}

.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* 5. Hero
   ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 120px),
    radial-gradient(1100px 500px at 80% -10%, rgba(0, 51, 153, .38), transparent 60%),
    linear-gradient(180deg, #171c29 0%, #0f1420 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 176, 240, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 240, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 30%, transparent 100%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(520px, 1.25fr) 1fr;
  align-items: center;
  min-height: 76vh;
  text-align: center;
}

.hero-copy {
  padding: 120px 24px;
}

.hero .eyebrow {
  color: var(--glow);
  text-shadow: 0 0 22px rgba(143, 176, 240, .6);
}

.hero h1 {
  margin: 14px 0 6px;
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 0 46px rgba(143, 176, 240, .4);
}

.hero-tagline {
  margin: 20px 0 10px;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: #cfe0ff;
}

.hero-subline {
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  align-content: space-between;
  justify-items: center;
  height: 100%;
  padding: 56px 30px 56px 44px;
}

.hero-logos img {
  width: 100%;
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(143, 176, 240, .34));
  transition: opacity .3s, transform .3s;
}

.hero-logos img:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 22px rgba(143, 176, 240, .6));
}

.hero-logos img.featured {
  max-width: 190px;
  transform: scale(1.06);
  filter: drop-shadow(0 0 22px rgba(143, 176, 240, .45));
}

.hero-photo {
  position: relative;
  height: 100%;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 51, 153, .34), transparent 62%);
  mix-blend-mode: screen;
}

.hero-photo::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 14%;
  background: linear-gradient(180deg, transparent, rgba(143, 176, 240, .16), transparent);
  animation: sweep 7s linear infinite;
}

@keyframes sweep {
  from { transform: translateY(-100%); }
  to   { transform: translateY(700%); }
}


/* 6. Home sections
   ------------------------------------------------------------------ */

/* What we do */

.pillars {
  padding: 110px 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.pillar {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--ring);
  transition: transform .25s, box-shadow .25s;
}

.pillar::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: var(--brand);
}

.pillar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--ring);
}

.pillar h3 {
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.pillar ul li {
  margin: 10px 0;
  font-size: .95rem;
}

.pillar ul li a {
  color: var(--text-2);
}

.pillar ul li a:hover {
  color: var(--brand);
}

.pillar-link {
  display: inline-block;
  margin-top: 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text);
}

.pillar-link:hover {
  color: var(--brand);
}

/* Experience */

.experience {
  padding: 110px 0;
  background: var(--bg-alt);
}

.experience .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
}

.experience-number {
  font-size: clamp(5rem, 12vw, 8.5rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--brand);
}

.experience-number sup {
  font-size: .35em;
  vertical-align: super;
}

.experience-label {
  margin: 6px 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.experience p {
  max-width: 520px;
  color: var(--text-3);
}

.experience .btn {
  margin-top: 28px;
}

.experience-figure img {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

/* Partners */

.partners {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px 18px;
  border: 1px solid var(--chip-line);
  border-radius: 12px;
  background: var(--chip-bg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.partner:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.partner img {
  width: 100%;
  max-width: 158px;
  height: auto;
  object-fit: contain;
}

/* Service / support / rental */

.stats-band,
.closing {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
}

.stats-band::before,
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(143, 176, 240, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 240, .05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000, transparent 100%);
}

.stats-band .container,
.closing .container {
  position: relative;
  z-index: 1;
}

.stats-band {
  padding: 110px 0;
  background: var(--dark);
}

.stats-band .section-head h2 {
  color: var(--on-dark);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 42px;
}

.stat {
  padding: 28px 16px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  text-align: center;
  background: linear-gradient(180deg, #1c2333, #161c2a);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.stat b {
  display: block;
  margin-bottom: 10px;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--glow);
  text-shadow: 0 0 26px rgba(143, 176, 240, .45);
}

.stat span {
  font-size: .83rem;
  color: var(--on-dark-3);
}

.stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Closing statement */

.closing {
  padding: 120px 0;
  text-align: center;
  background: var(--dark-2);
}

.closing-text {
  margin-bottom: 36px;
  font-size: clamp(1.6rem, 3.8vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.closing-text span {
  color: var(--glow);
}


/* 7. Inner pages
   ------------------------------------------------------------------ */

.page-banner {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--dark);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 120px),
    radial-gradient(900px 380px at 85% -20%, rgba(0, 51, 153, .34), transparent 60%);
}

.page-banner .container {
  position: relative;
  padding-top: 78px;
  padding-bottom: 74px;
}

.page-banner h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
}

.breadcrumb {
  display: block;
  margin-bottom: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.breadcrumb a {
  color: var(--on-dark);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.page {
  padding: 70px 0;
}

.prose {
  max-width: 780px;
}

.prose p {
  margin-bottom: 18px;
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
}

.prose h2 {
  margin: 30px 0 12px;
  font-size: 1.25rem;
}

.prose ul {
  margin-bottom: 18px;
  padding-left: 22px;
  list-style: disc;
  color: var(--text-2);
}

.prose ul li {
  margin-bottom: 6px;
}

.prose .btn {
  margin-top: 10px;
}

/* Company profile */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.milestone {
  padding-top: 14px;
  border-top: 4px solid var(--brand);
}

.milestone b {
  display: block;
  margin-bottom: 4px;
  font-size: 1.5rem;
  font-weight: 700;
}

.milestone span {
  font-size: .9rem;
  color: var(--text-3);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.tile {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--ring);
}

.tile h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--brand);
}

.tile p {
  font-size: .92rem;
  color: var(--text-3);
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.brand-chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Services */

.service {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.service:last-of-type {
  border-bottom: 0;
}

.service .icon {
  width: 66px;
  height: 66px;
  padding: 12px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--bg-alt);
}

.service h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.service p {
  max-width: 660px;
  color: var(--text-3);
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 56px;
  padding: 44px 36px;
  border-radius: var(--radius);
  color: var(--on-dark);
  background: var(--dark);
}

.cta-panel h2 {
  font-size: 1.35rem;
}

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--ring);
  scroll-margin-top: 130px;
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--ring);
}

.card::before,
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(0, 51, 153, .55), rgba(143, 176, 240, .15) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.card:hover::before,
.pillar:hover::after {
  opacity: 1;
}

.card .icon {
  width: 46px;
  height: 46px;
  color: var(--brand);
}

.card h3 {
  font-size: 1.02rem;
}

.card p {
  font-size: .92rem;
  color: var(--text-3);
}

.card-link {
  margin-top: auto;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

.card:hover .card-link {
  color: var(--brand);
}

.card-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 4px;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid var(--chip-line);
  border-radius: 9px;
  background: var(--chip-bg);
}

.brand-logo img {
  width: 100%;
  height: auto;
}

.brand-logo.on-dark {
  background: var(--dark);
  border-color: var(--dark);
}

.brand-logo.placeholder {
  width: auto;
  min-width: 56px;
  padding: 0 14px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface);
}

.card-photo {
  width: 100%;
  height: auto;
  margin: 2px 0 4px;
  border-radius: 12px;
}

/* Quality */

.quality-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
  gap: 44px;
}

.certificate {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--ring);
}

.certificate img {
  width: 100%;
}

.certificate-caption {
  display: block;
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.certificate-badge {
  display: block;
  max-width: 140px;
  margin-top: 24px;
}

.callout {
  margin: 26px 0;
  padding: 28px;
  border-left: 6px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--ring);
}

.callout h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.callout p {
  margin-bottom: 8px;
  font-size: .95rem;
  color: var(--text-2);
}

.callout .meta {
  margin-top: 12px;
}

/* Warranties */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.benefit {
  padding: 26px 18px;
  border-radius: var(--radius);
  text-align: center;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--ring);
}

.benefit b {
  display: block;
  margin-bottom: 10px;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}

.benefit span {
  font-size: .85rem;
  color: var(--text-3);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: start;
  gap: 34px;
}

.contact-card {
  padding: 38px 34px;
  border-radius: var(--radius);
  color: var(--on-dark);
  background: var(--dark);
}

.contact-card h2 {
  margin-bottom: 22px;
  font-size: 1.2rem;
}

.contact-card ul li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: .95rem;
  color: var(--on-dark-2);
}

.contact-card svg {
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.contact-card a:hover {
  color: var(--brand);
}

.contact-card .meta {
  color: #8b929e;
}

.map {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--ring);
}

.map iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}


/* 8. Footer & fixed elements
   ------------------------------------------------------------------ */

.footer {
  padding: 70px 0 0;
  color: var(--on-dark-3);
  background: var(--dark-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer h4 {
  margin-bottom: 18px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer li {
  margin-bottom: 9px;
  font-size: .92rem;
}

.footer a:hover {
  color: var(--brand);
}

.footer .meta {
  color: #8b929e;
}

.footer-logo {
  margin-bottom: 16px;
}

.logo-chip {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
}

.logo-chip img {
  height: 30px;
  width: auto;
  max-width: none;
}

.footer-about {
  max-width: 260px;
  font-size: .9rem;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid #3a414c;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.social:hover {
  color: #7fa4f2;
  border-color: #7fa4f2;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list svg {
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #262c35;
  font-size: .82rem;
}

.footer-bottom a {
  color: var(--on-dark);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  background: var(--btn-bg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.to-top:hover {
  background: var(--btn-bg-hover);
}

.quick-actions {
  display: none;
}


/* 9. Motion
   ------------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-photo::before {
    display: none;
  }
}


/* 10. Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1640px) {
  .nav > ul > li > a {
    padding: 30px 8px;
    font-size: .75rem;
  }

  .header-brands {
    gap: 14px;
    padding-left: 16px;
  }

  .header-brands img {
    height: 22px;
  }
}

@media (max-width: 1480px) {
  .logo img {
    height: 26px;
  }

  .nav > ul > li > a {
    padding: 30px 7px;
    font-size: .72rem;
  }

  .header-brands {
    gap: 12px;
    padding-left: 14px;
  }

  .header-brands img {
    height: 20px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 1360px) {
  .header-brands {
    display: none;
  }

  .nav > ul > li > a {
    padding: 30px 8px;
    font-size: .74rem;
  }
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding: 90px 24px;
  }

  .hero-logos {
    display: none;
  }

  .hero-photo {
    height: 300px;
  }

  .hero-photo img {
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  }
}

/* Off-canvas navigation */
@media (max-width: 1100px) {
  .header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    height: 100%;
    height: 100dvh;
    padding: 84px 22px 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
  }

  .nav.is-open {
    display: block;
    animation: nav-in .22s ease-out;
  }

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

  .nav > ul {
    flex-direction: column;
    gap: 0;
  }

  .nav > ul > li > a {
    justify-content: space-between;
    padding: 17px 2px;
    border-bottom: 1px solid var(--line);
    font-size: .92rem;
    letter-spacing: .06em;
  }

  .caret {
    width: 11px;
    height: 11px;
  }

  .dropdown,
  .megamenu,
  li:hover > .dropdown,
  li:focus-within > .dropdown,
  li:hover > .megamenu,
  li:focus-within > .megamenu {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    border: 0;
    border-left: 3px solid var(--brand);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
    grid-template-columns: 1fr;
    background: var(--bg-alt);
  }

  li.is-open > .dropdown,
  li.is-open > .megamenu {
    display: block;
  }

  .dropdown a,
  .megamenu-col li a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }

  .megamenu-col {
    padding: 14px 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .megamenu-col:last-child {
    border-bottom: 0;
  }
}

/* Tablet: collapse grids */
@media (max-width: 1020px) {
  .experience .container {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .pillar-grid,
  .stats,
  .product-grid,
  .benefits,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline,
  .tile-grid,
  .quality-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Phones */
@media (max-width: 760px) {
  body {
    padding-bottom: 62px;
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .header .container {
    height: 64px;
    padding: 0 18px;
  }

  .logo img {
    height: 24px;
  }

  .logo-chip img {
    height: 25px;
  }

  .header-actions {
    gap: 8px;
  }

  .burger {
    padding: 10px;
  }

  .burger span {
    width: 24px;
  }

  .hero-layout {
    justify-items: stretch;
  }

  .hero-copy {
    padding: 56px 20px 64px;
  }

  .hero .eyebrow {
    font-size: .68rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.4rem);
  }

  .hero-tagline {
    margin: 14px 0 8px;
    font-size: 1.02rem;
  }

  .hero-subline {
    font-size: .68rem;
    line-height: 1.7;
    letter-spacing: .14em;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-photo {
    width: 100%;
    height: 200px;
    justify-self: stretch;
    align-self: stretch;
  }

  .hero-photo img {
    opacity: .62;
  }

  .pillars,
  .partners {
    padding: 62px 0;
  }

  .experience,
  .stats-band {
    padding: 66px 0;
  }

  .closing {
    padding: 74px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .page {
    padding: 48px 0;
  }

  .page-banner .container {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .page-banner h1 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .pillar {
    padding: 24px 20px;
  }

  .experience-number {
    font-size: 4.6rem;
  }

  .stat {
    padding: 22px 14px;
  }

  .stat b {
    font-size: 2rem;
  }

  .benefit {
    padding: 22px 16px;
  }

  .closing-text {
    font-size: clamp(1.35rem, 6.4vw, 1.8rem);
  }

  .cta-panel {
    justify-content: center;
    padding: 30px 22px;
    text-align: center;
  }

  .stats-actions .btn,
  .cta-panel .btn {
    width: 100%;
    text-align: center;
  }

  .card-logos {
    gap: 8px;
  }

  .brand-logo {
    width: calc(50% - 5px);
    min-height: auto;
    aspect-ratio: 320 / 96;
  }

  .brand-logo.placeholder {
    width: calc(50% - 5px);
    min-height: 44px;
    aspect-ratio: auto;
  }

  .partners-grid {
    gap: 10px;
  }

  .partner {
    min-height: 74px;
    padding: 10px 12px;
  }

  .partner img {
    max-width: none;
  }

  .footer {
    padding-top: 52px;
  }

  .footer-grid {
    gap: 30px;
    padding-bottom: 34px;
  }

  .footer li {
    margin-bottom: 4px;
  }

  .footer li a {
    display: inline-block;
    padding: 9px 0;
  }

  .contact-list li {
    padding: 7px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .map iframe {
    height: 300px;
  }

  .to-top {
    right: 16px;
    bottom: 82px;
  }

  /* fixed bottom bar: call / directions / email */
  .quick-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(19, 23, 34, .96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .quick-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 58px;
    padding: 11px 4px 10px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
  }

  .quick-actions a + a {
    border-left: 1px solid rgba(255, 255, 255, .1);
  }

  .quick-actions a:active {
    background: rgba(255, 255, 255, .08);
  }

  .quick-actions svg {
    width: 19px;
    height: 19px;
    color: var(--glow);
  }
}

@media (max-width: 640px) {
  .pillar-grid,
  .stats,
  .product-grid,
  .benefits,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .logo img {
    height: 22px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    letter-spacing: .01em;
  }
}
