:root {
  color-scheme: light;
  --ink: #111d2b;
  --ink-soft: #1d3148;
  --muted: #5b6a7c;
  --muted-2: #738397;
  --blue-950: #10243c;
  --blue-900: #132b48;
  --blue-850: #0f3655;
  --blue-800: #075a78;
  --blue-700: #076b90;
  --blue-600: #1f73e8;
  --blue-500: #2f86ff;
  --green: #0fd99a;
  --green-2: #20c7a7;
  --yellow: #f2c94c;
  --line: #d8e3ee;
  --line-strong: #c3d3e3;
  --soft: #f4f8fb;
  --soft-2: #eef5f8;
  --soft-3: #e8f1f7;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 28px 70px rgba(16, 36, 60, 0.18);
  --shadow-soft: 0 18px 46px rgba(16, 36, 60, 0.12);
  --shadow-tight: 0 10px 24px rgba(16, 36, 60, 0.11);
  --radius: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --space-section: clamp(76px, 8.5vw, 124px);
  --header-height: 78px;
  --max-width: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  min-width: 0;
  max-width: 100%;
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.page-ready .page-shell {
  animation: pageEnter 520ms ease both;
}

body.page-leaving .page-shell {
  animation: pageLeave 260ms ease both;
}

@view-transition {
  navigation: auto;
}

::selection {
  color: var(--white);
  background: var(--blue-600);
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(31, 115, 232, 0.45);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue-950);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 227, 238, 0.86);
}

.site-header.has-shadow {
  box-shadow: 0 14px 36px rgba(16, 36, 60, 0.1);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(16, 36, 60, 0.1);
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-weight: 850;
  letter-spacing: 0;
}

.brand-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  position: relative;
  padding: 26px 2px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--blue-600);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  width: 294px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 190ms ease,
    transform 190ms ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: block;
  padding: 12px 12px;
  border-radius: var(--radius);
}

.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.is-active {
  background: var(--soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue-800);
  box-shadow: 0 12px 26px rgba(7, 90, 120, 0.22);
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(7, 90, 120, 0.28);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

body.nav-open .nav-toggle span:nth-of-type(2) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-of-type(3) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-of-type(4) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero,
.page-hero,
.contact-page-hero,
.legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue-950);
  color: var(--white);
}

.hero {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(72px, 8vw, 118px) 0;
}

.hero-bg,
.page-hero::before,
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 72% 24%, rgba(15, 217, 154, 0.16), transparent 34%),
    linear-gradient(135deg, #112842, #132234 64%, #0e1c2d);
  background-size:
    92px 92px,
    92px 92px,
    auto,
    auto;
}

.hero-grid,
.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  align-items: center;
  gap: clamp(34px, 5vw, 70px);
}

.hero-copy,
.page-hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.legal-hero .eyebrow {
  color: var(--green);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.hero-kicker span + span::before {
  content: "•";
  margin-right: 12px;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  font-weight: 900;
}

.hero-brand-lockup img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  background: var(--white);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

p,
li,
a,
dd {
  overflow-wrap: anywhere;
}

.hero h1,
.page-hero h1,
.legal-hero h1 {
  color: var(--white);
}

h1 {
  font-size: clamp(2.65rem, 5.2vw, 5rem);
  max-width: 14ch;
  font-weight: 900;
}

.page-hero h1,
.legal-hero h1,
.contact-page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.45rem, 4.2vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  font-weight: 900;
}

.hero-text,
.page-hero-copy p,
.section-heading p,
.intro-grid p,
.contact-copy p,
.legal-card p {
  color: inherit;
  font-size: 1.08rem;
}

.hero-text,
.page-hero-copy p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 24px 0 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 16px 34px rgba(31, 115, 232, 0.26);
}

.button-secondary {
  color: var(--white);
  background: var(--blue-800);
  box-shadow: 0 16px 34px rgba(7, 90, 120, 0.23);
}

.button-outline,
.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.button-outline.light {
  color: var(--white);
}

.button-ghost {
  background: transparent;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-points li {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.hero-showcase {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-photo-card,
.page-hero-media,
.work-insight-card,
.image-gallery figure {
  overflow: hidden;
  border: 1px solid rgba(216, 227, 238, 0.85);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-photo-main {
  min-height: 650px;
}

.hero-photo-card img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main img,
.bulli-media img {
  object-position: center bottom;
}

.hero-photo-card figcaption,
.page-hero-media figcaption,
.image-gallery figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(180deg, rgba(16, 36, 60, 0.7), rgba(16, 36, 60, 0.92));
  font-weight: 850;
}

.hero-photo-card,
.page-hero-media,
.image-gallery figure {
  position: relative;
}

.hero-photo-card figcaption span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-logo-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 251, 0.95)),
    var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-logo-overlay {
  position: absolute;
  top: 22px;
  left: 22px;
  width: min(48%, 300px);
  padding: clamp(18px, 3vw, 28px);
}

.hero-logo-panel img {
  width: min(170px, 70%);
  margin: 0 auto 14px;
  object-fit: contain;
}

.hero-logo-panel p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 950;
}

.hero-logo-panel span {
  color: var(--muted);
  font-weight: 800;
}

.intro-band,
.section,
.contact-page-hero,
.legal-page {
  padding: clamp(70px, 8vw, 112px) 0;
}

.intro-band {
  background: var(--soft);
}

.intro-grid,
.split-grid,
.trust-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.section-heading p,
.intro-grid p,
.trust-copy p,
.contact-copy p,
.legal-card p,
.copy-stack p {
  color: var(--muted);
}

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

.service-card,
.trust-items article,
.feature-card,
.detail-panel,
.contact-link,
.contact-form,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 36, 60, 0.08);
}

.service-card,
.feature-card,
.trust-items article {
  padding: 24px;
}

.reveal-section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease var(--reveal-delay, 0ms),
    transform 520ms ease var(--reveal-delay, 0ms);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.service-card:hover,
.service-card:focus-within,
.work-insight-card:hover,
.feature-card:hover {
  border-color: rgba(31, 115, 232, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.service-card p,
.feature-card p,
.trust-items p,
.work-insight-card p {
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  color: var(--blue-600);
  font-weight: 900;
  text-decoration: none;
}

.icon-card {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 115, 232, 0.12), rgba(15, 217, 154, 0.18)),
    var(--soft);
  position: relative;
}

.icon-card::before,
.icon-card::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 3px solid var(--blue-800);
  border-radius: 4px;
}

.icon-sun::after {
  inset: 20px;
  border-radius: 50%;
  background: var(--yellow);
}

.icon-storage::before {
  inset: 14px 17px;
  border-radius: 5px;
}

.icon-storage::after {
  inset: auto 18px 13px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
}

.icon-bolt::before,
.icon-code::before {
  transform: rotate(45deg);
}

.icon-home::before {
  inset: 17px 14px 13px;
  border-top: 0;
}

.icon-home::after {
  inset: 12px 15px auto;
  height: 25px;
  border: 0;
  border-left: 3px solid var(--blue-800);
  border-top: 3px solid var(--blue-800);
  transform: rotate(45deg);
}

.trust-section,
.alt-bg {
  background: var(--soft);
}

.trust-items,
.feature-grid,
.work-insight-grid,
.image-gallery {
  display: grid;
  gap: 16px;
}

.trust-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-trust,
.feature-grid,
.image-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--blue-600);
  font-weight: 950;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(72px, 8vw, 120px) 0;
}

.page-hero-media {
  min-height: 520px;
}

.page-hero-illustration {
  min-height: 520px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    rgba(255, 255, 255, 0.08);
  background-size: 56px 56px;
  box-shadow: var(--shadow);
}

.circuit-board,
.automation-lines,
.smart-house {
  position: relative;
  width: min(74%, 360px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-lg);
}

.circuit-board span,
.automation-lines span {
  position: absolute;
  background: var(--green);
  border-radius: 999px;
}

.circuit-board span:nth-child(1) {
  width: 70%;
  height: 4px;
  top: 24%;
  left: 15%;
}

.circuit-board span:nth-child(2) {
  width: 4px;
  height: 60%;
  top: 20%;
  left: 34%;
}

.circuit-board span:nth-child(3) {
  width: 44%;
  height: 4px;
  right: 12%;
  bottom: 28%;
}

.circuit-board span:nth-child(4) {
  width: 34px;
  height: 34px;
  right: 18%;
  top: 18%;
  background: var(--yellow);
}

.smart-house {
  border: 0;
}

.smart-house .roof,
.smart-house .door,
.smart-house .window,
.smart-house .signal {
  position: absolute;
  display: block;
}

.smart-house .roof {
  width: 68%;
  height: 68%;
  left: 16%;
  top: 10%;
  border-top: 8px solid var(--green);
  border-left: 8px solid var(--green);
  transform: rotate(45deg);
}

.smart-house .door {
  width: 22%;
  height: 30%;
  left: 39%;
  bottom: 14%;
  border: 5px solid var(--white);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.smart-house .window {
  width: 18%;
  height: 18%;
  top: 45%;
  border: 5px solid var(--white);
  border-radius: 6px;
}

.smart-house .window.a {
  left: 22%;
}

.smart-house .window.b {
  right: 22%;
}

.smart-house .signal {
  width: 74%;
  height: 74%;
  left: 13%;
  top: 0;
  border: 3px solid rgba(15, 217, 154, 0.35);
  border-radius: 50%;
}

.smart-house .signal.two {
  width: 96%;
  height: 96%;
  left: 2%;
  top: -11%;
}

.automation-lines span:nth-child(1) {
  width: 70%;
  height: 4px;
  left: 15%;
  top: 28%;
}

.automation-lines span:nth-child(2) {
  width: 4px;
  height: 64%;
  left: 30%;
  top: 18%;
}

.automation-lines span:nth-child(3) {
  width: 56%;
  height: 4px;
  right: 12%;
  top: 56%;
  background: var(--yellow);
}

.automation-lines span:nth-child(4) {
  width: 90px;
  height: 90px;
  right: 10%;
  bottom: 12%;
  border: 4px solid var(--green);
  background: transparent;
}

.detail-panel {
  padding: clamp(24px, 4vw, 36px);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list.columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--green));
}

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

.work-insight-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.work-insight-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.work-insight-card:first-child img {
  object-position: center bottom;
}

.work-insight-card h3,
.work-insight-card p {
  margin-inline: 20px;
}

.work-insight-card h3 {
  margin-top: 20px;
}

.work-insight-card p {
  margin-bottom: 22px;
}

.image-gallery figure {
  margin: 0;
  min-height: 420px;
}

.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-gallery figure:nth-child(2) img {
  object-position: center bottom;
}

.cta-section {
  background: var(--blue-950);
  color: var(--white);
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-panel h2 {
  color: var(--white);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-page-hero {
  background: linear-gradient(180deg, var(--soft), var(--white));
  color: var(--ink);
}

.contact-page-hero .eyebrow {
  color: var(--blue-700);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.contact-link {
  display: grid;
  gap: 4px;
  min-height: 116px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(135deg, #edf5fa, #f6fbfa);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(31, 115, 232, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.contact-link span,
.contact-link small {
  color: var(--muted);
}

.contact-link small {
  font-size: 0.86rem;
}

.contact-link strong {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.contact-meta div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-meta dd {
  margin: 8px 0 0;
  font-weight: 900;
}

.contact-form {
  padding: clamp(24px, 4vw, 34px);
}

.contact-form h2,
.contact-form h3 {
  margin-bottom: 12px;
}

.form-intro,
.form-note {
  color: var(--muted);
}

.form-note,
.form-fallback {
  margin-top: 14px;
}

.form-note {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(16, 36, 60, 0.04);
}

.form-note.is-error {
  border-color: rgba(184, 48, 48, 0.34);
  background: rgba(184, 48, 48, 0.08);
  color: #7b1f1f;
}

.form-note.is-success {
  border-color: rgba(32, 129, 87, 0.34);
  background: rgba(32, 129, 87, 0.08);
  color: #175c3c;
}

.form-fallback {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-fallback a {
  color: var(--blue-700);
  font-weight: 900;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bfd0df;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.contact-form .button {
  margin-top: 18px;
}

.legal-hero {
  padding: 74px 0;
}

.legal-page {
  background: var(--soft);
}

.legal-card {
  max-width: 930px;
  padding: clamp(24px, 4vw, 42px);
}

.notice {
  padding: 16px;
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
  background: var(--soft);
}

.placeholder-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 32px;
  list-style: none;
}

.site-footer {
  padding: 52px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #0d2135;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.site-footer .brand,
.site-footer h2,
.site-footer .brand-name {
  color: var(--white);
}

.site-footer .brand-line,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-top: 9px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
}

.footer-title {
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Local design-system refinement layer */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 115, 232, 0.06), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 44%, #ffffff 100%);
}

.site-header {
  border-bottom-color: rgba(195, 211, 227, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.9)),
    rgba(255, 255, 255, 0.94);
}

.header-inner {
  position: relative;
}

.brand {
  padding: 7px 0;
}

.brand-logo {
  border-color: rgba(195, 211, 227, 0.92);
  box-shadow: 0 12px 28px rgba(16, 36, 60, 0.12);
}

.brand-name {
  font-size: 1.04rem;
}

.site-nav {
  padding: 0 6px;
  border: 1px solid rgba(216, 227, 238, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.site-nav a {
  padding: 21px 4px;
}

.site-nav a::after {
  bottom: 12px;
  height: 3px;
}

.nav-dropdown {
  top: calc(100% + 8px);
  width: 326px;
  padding: 12px;
  border-color: rgba(195, 211, 227, 0.9);
  box-shadow: 0 28px 70px rgba(16, 36, 60, 0.18);
}

.nav-dropdown a {
  padding: 13px 14px;
}

.header-cta,
.button {
  letter-spacing: 0;
}

.header-cta {
  min-height: 46px;
  padding-inline: 18px;
  background: linear-gradient(135deg, #075a78, #0b7390);
}

.hero,
.page-hero {
  isolation: isolate;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 20, 34, 0.38));
  z-index: 0;
}

.hero-grid,
.page-hero-grid {
  z-index: 1;
}

.hero {
  min-height: min(900px, calc(100svh - var(--header-height)));
  padding: clamp(82px, 8vw, 128px) 0 clamp(70px, 7vw, 112px);
}

.page-hero {
  padding: clamp(82px, 8vw, 126px) 0;
}

.hero-bg,
.page-hero::before,
.legal-hero::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.046) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.046) 1px, transparent 1px),
    radial-gradient(circle at 70% 16%, rgba(15, 217, 154, 0.18), transparent 30%),
    radial-gradient(circle at 24% 84%, rgba(31, 115, 232, 0.14), transparent 32%),
    linear-gradient(135deg, #112842 0%, #0f263e 52%, #0d1b2c 100%);
  background-size:
    88px 88px,
    88px 88px,
    auto,
    auto,
    auto;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(42px, 6vw, 86px);
}

.page-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
}

.hero-brand-lockup {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.hero h1 {
  max-width: 13ch;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.page-hero h1 {
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.hero-text,
.page-hero-copy p {
  color: rgba(255, 255, 255, 0.9);
}

.button-primary {
  background: linear-gradient(135deg, #1f73e8, #0f89d1);
  box-shadow: 0 18px 40px rgba(31, 115, 232, 0.28);
}

.button-secondary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
}

.button-outline,
.button-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-points li {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.hero-showcase-brand {
  align-self: stretch;
  min-height: 650px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.hero-photo-main {
  min-height: 100%;
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-photo-main img,
.bulli-media img {
  object-position: 48% 82%;
}

.hero-photo-card::before,
.page-hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 36, 60, 0.04), rgba(16, 36, 60, 0.18));
  z-index: 1;
}

.hero-photo-card figcaption,
.page-hero-media figcaption,
.image-gallery figcaption {
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(16, 36, 60, 0.74), rgba(13, 33, 53, 0.94));
  backdrop-filter: blur(8px);
}

.hero-logo-overlay {
  top: 28px;
  left: 28px;
  width: min(45%, 312px);
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 252, 0.97)),
    var(--white);
  box-shadow: 0 26px 60px rgba(16, 36, 60, 0.24);
  z-index: 3;
}

.hero-logo-panel img {
  filter: drop-shadow(0 8px 16px rgba(7, 90, 120, 0.12));
}

.intro-band,
.section,
.contact-page-hero,
.legal-page {
  padding: var(--space-section) 0;
}

.intro-band {
  border-block: 1px solid rgba(216, 227, 238, 0.78);
  background:
    linear-gradient(135deg, rgba(31, 115, 232, 0.06), transparent 34%),
    linear-gradient(180deg, #f7fbfd, #eef6fa);
}

.section-heading {
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), var(--green));
}

.service-grid {
  align-items: stretch;
}

.service-card,
.trust-items article,
.feature-card,
.detail-panel,
.contact-link,
.contact-form,
.legal-card,
.work-insight-card,
.image-gallery figure {
  border-color: rgba(195, 211, 227, 0.82);
  box-shadow: 0 16px 42px rgba(16, 36, 60, 0.1);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98)),
    var(--white);
}

.service-card::before,
.feature-card::before,
.trust-items article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--green));
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover::before,
.service-card:focus-within::before,
.feature-card:hover::before,
.trust-items article:hover::before {
  opacity: 1;
}

.icon-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 24px rgba(31, 115, 232, 0.12);
}

.trust-section,
.alt-bg {
  background:
    radial-gradient(circle at 90% 10%, rgba(15, 217, 154, 0.08), transparent 28%),
    linear-gradient(180deg, #f5f9fc, #edf5f9);
}

.trust-items article,
.feature-card {
  position: relative;
  overflow: hidden;
}

.page-hero-media {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.page-hero-media img {
  object-position: center center;
}

.bulli-media {
  min-height: 620px;
}

.bulli-media img {
  object-position: 50% 82%;
}

.page-hero-illustration {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(15, 217, 154, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.08);
}

.detail-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98)),
    var(--white);
}

.check-list li::before {
  box-shadow: 0 0 0 5px rgba(31, 115, 232, 0.08);
}

.work-insight-card {
  overflow: hidden;
  background: var(--white);
}

.work-insight-card img {
  height: 320px;
}

.work-insight-card:first-child img {
  object-position: 50% 82%;
}

.image-gallery {
  align-items: stretch;
}

.image-gallery figure {
  min-height: 500px;
}

.image-gallery img {
  object-position: center center;
}

.image-gallery figure:nth-child(2) img {
  object-position: center 82%;
}

.cta-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(15, 217, 154, 0.14), transparent 28%),
    linear-gradient(135deg, #0d2135, #102b45);
}

.cta-panel {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.contact-page-hero {
  background:
    radial-gradient(circle at 8% 8%, rgba(31, 115, 232, 0.08), transparent 30%),
    linear-gradient(180deg, #f7fbfd, #ffffff);
}

.contact-link {
  background:
    linear-gradient(135deg, rgba(238, 246, 250, 0.96), rgba(247, 252, 250, 0.96)),
    var(--white);
}

.contact-link strong {
  color: var(--blue-950);
}

.contact-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98)),
    var(--white);
  box-shadow: 0 24px 64px rgba(16, 36, 60, 0.14);
}

input,
select,
textarea {
  border-color: #b9ccdc;
  box-shadow: inset 0 1px 0 rgba(16, 36, 60, 0.02);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-600);
  box-shadow:
    0 0 0 4px rgba(31, 115, 232, 0.12),
    inset 0 1px 0 rgba(16, 36, 60, 0.02);
  outline: none;
}

.legal-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 115, 232, 0.08), transparent 30%),
    var(--soft);
}

.site-footer {
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--blue-600), var(--green), var(--yellow)) 1;
}

body[data-page="start"] [data-page-link="start"],
body[data-page="photovoltaik"] [data-page-link="photovoltaik"],
body[data-page="photovoltaik"] [data-page-link="leistungen"],
body[data-page="pv-speicher"] [data-page-link="pv-speicher"],
body[data-page="pv-speicher"] [data-page-link="leistungen"],
body[data-page="elektroinstallation"] [data-page-link="elektroinstallation"],
body[data-page="elektroinstallation"] [data-page-link="leistungen"],
body[data-page="smart-home"] [data-page-link="smart-home"],
body[data-page="smart-home"] [data-page-link="leistungen"],
body[data-page="automatisierung"] [data-page-link="automatisierung"],
body[data-page="automatisierung"] [data-page-link="leistungen"],
body[data-page="ueber-uns"] [data-page-link="ueber-uns"],
body[data-page="kontakt"] [data-page-link="kontakt"] {
  color: var(--blue-600);
}

body[data-page="start"] [data-page-link="start"]::after,
body[data-page="photovoltaik"] [data-page-link="photovoltaik"]::after,
body[data-page="photovoltaik"] [data-page-link="leistungen"]::after,
body[data-page="pv-speicher"] [data-page-link="pv-speicher"]::after,
body[data-page="pv-speicher"] [data-page-link="leistungen"]::after,
body[data-page="elektroinstallation"] [data-page-link="elektroinstallation"]::after,
body[data-page="elektroinstallation"] [data-page-link="leistungen"]::after,
body[data-page="smart-home"] [data-page-link="smart-home"]::after,
body[data-page="smart-home"] [data-page-link="leistungen"]::after,
body[data-page="automatisierung"] [data-page-link="automatisierung"]::after,
body[data-page="automatisierung"] [data-page-link="leistungen"]::after,
body[data-page="ueber-uns"] [data-page-link="ueber-uns"]::after,
body[data-page="kontakt"] [data-page-link="kontakt"]::after {
  transform: scaleX(1);
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 1120px) {
  .header-inner {
    gap: 18px;
  }

  .site-nav {
    gap: 12px;
  }

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

  .hero-grid,
  .page-hero-grid,
  .intro-grid,
  .split-grid,
  .trust-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .page-hero-copy {
    max-width: 820px;
  }

  h1,
  .page-hero h1,
  .contact-page-hero h1 {
    max-width: 14ch;
  }

  .hero-showcase {
    max-width: 760px;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 86px;
  }

  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .brand-name {
    font-size: clamp(1.15rem, 5vw, 1.75rem);
  }

  .brand-line {
    font-size: clamp(0.86rem, 3.7vw, 1.05rem);
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 49;
    display: grid;
    gap: 12px;
    width: 100vw;
    min-height: calc(100svh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    overflow: auto;
    padding: 26px 28px 34px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: block;
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1.35rem;
  }

  .site-nav a::after {
    bottom: 0;
  }

  .nav-dropdown {
    position: static;
    width: auto;
    margin-top: 8px;
    padding: 0 0 0 18px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
  }

  .nav-dropdown a {
    font-size: 1rem;
  }

  .hero,
  .page-hero,
  .contact-page-hero,
  .legal-hero {
    padding-block: 58px;
  }

  h1,
  .page-hero h1,
  .contact-page-hero h1 {
    font-size: clamp(2.4rem, 11vw, 4rem);
  }

  .hero-actions,
  .cta-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-photo-main,
  .page-hero-media,
  .page-hero-illustration {
    min-height: 460px;
  }

  .hero-showcase-brand {
    min-height: auto;
  }

  .bulli-media {
    min-height: 520px;
  }

  .hero-logo-overlay {
    top: 16px;
    left: 16px;
    width: min(56%, 260px);
  }

  .trust-items,
  .compact-trust,
  .feature-grid,
  .why-grid,
  .work-insight-grid,
  .image-gallery,
  .contact-actions,
  .contact-meta,
  .check-list.columns,
  .footer-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

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

  .cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .hero-kicker {
    display: block;
  }

  .hero-kicker span {
    display: inline;
  }

  .hero-brand-lockup {
    width: 100%;
  }

  .hero-photo-main,
  .page-hero-media,
  .page-hero-illustration {
    min-height: 390px;
  }

  .bulli-media {
    min-height: 430px;
  }

  .hero-logo-overlay {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    order: -1;
  }

  .hero-showcase-brand {
    display: flex;
    flex-direction: column;
  }

  .hero-logo-panel img {
    width: 130px;
  }

  .contact-link {
    min-height: auto;
  }
}

/* Complete visual redesign: logo-led, technical and restrained */
:root {
  --ink: #0b1724;
  --ink-soft: #15283b;
  --muted: #536476;
  --muted-2: #728193;
  --blue-950: #071827;
  --blue-900: #0b2135;
  --blue-850: #0d314a;
  --blue-800: #0a5873;
  --blue-700: #0d7796;
  --blue-600: #1776d2;
  --blue-500: #2f8ee8;
  --green: #20d3a1;
  --green-2: #58d6c1;
  --yellow: #f2b63d;
  --line: #d7e2ea;
  --line-strong: #b9cad8;
  --soft: #f5f8fa;
  --soft-2: #eef4f7;
  --soft-3: #e5edf3;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.76);
  --shadow: 0 26px 72px rgba(7, 24, 39, 0.17);
  --shadow-soft: 0 18px 48px rgba(7, 24, 39, 0.12);
  --shadow-tight: 0 10px 26px rgba(7, 24, 39, 0.1);
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --space-section: clamp(82px, 8vw, 132px);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(23, 118, 210, 0.07), transparent 28%),
    radial-gradient(circle at 94% 16%, rgba(242, 182, 61, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fb 48%, #ffffff 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(185, 202, 216, 0.72);
  box-shadow: 0 1px 0 rgba(7, 24, 39, 0.03);
}

.site-header.has-shadow {
  box-shadow: 0 18px 44px rgba(7, 24, 39, 0.11);
}

.brand-logo {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-name {
  color: var(--ink);
  font-size: 1.02rem;
}

.brand-line {
  color: #637487;
  font-weight: 720;
}

.site-nav {
  gap: 4px;
  padding: 6px;
  border-color: rgba(215, 226, 234, 0.92);
  background: rgba(245, 248, 250, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.site-nav a {
  padding: 14px 12px;
  border-radius: 999px;
  color: #213349;
  font-size: 0.95rem;
}

.site-nav a::after {
  right: 12px;
  left: 12px;
  bottom: 7px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue-500));
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
body[data-page="start"] [data-page-link="start"],
body[data-page="photovoltaik"] [data-page-link="photovoltaik"],
body[data-page="photovoltaik"] [data-page-link="leistungen"],
body[data-page="pv-speicher"] [data-page-link="pv-speicher"],
body[data-page="pv-speicher"] [data-page-link="leistungen"],
body[data-page="elektroinstallation"] [data-page-link="elektroinstallation"],
body[data-page="elektroinstallation"] [data-page-link="leistungen"],
body[data-page="smart-home"] [data-page-link="smart-home"],
body[data-page="smart-home"] [data-page-link="leistungen"],
body[data-page="automatisierung"] [data-page-link="automatisierung"],
body[data-page="automatisierung"] [data-page-link="leistungen"],
body[data-page="ueber-uns"] [data-page-link="ueber-uns"],
body[data-page="kontakt"] [data-page-link="kontakt"] {
  color: var(--blue-950);
  background: rgba(255, 255, 255, 0.9);
}

.nav-dropdown {
  border-color: rgba(185, 202, 216, 0.78);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(7, 24, 39, 0.18);
}

.nav-dropdown a {
  border-radius: var(--radius);
  background: transparent;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a.is-active {
  color: var(--blue-950);
  background: linear-gradient(135deg, rgba(23, 118, 210, 0.08), rgba(32, 211, 161, 0.08));
}

.header-cta,
.button-primary,
.button-secondary {
  background: linear-gradient(135deg, #0a5873, #117b98 58%, #20a785);
  box-shadow: 0 16px 32px rgba(10, 88, 115, 0.24);
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(7, 24, 39, 0.18);
}

.button-outline,
.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.hero-logo-first {
  min-height: min(860px, calc(100svh - var(--header-height)));
  padding: clamp(68px, 7vw, 108px) 0 clamp(74px, 8vw, 120px);
  color: var(--white);
  background: var(--blue-950);
  isolation: isolate;
}

.hero-logo-first::after {
  height: 260px;
  background:
    linear-gradient(180deg, transparent, rgba(7, 24, 39, 0.7)),
    linear-gradient(90deg, rgba(242, 182, 61, 0.12), transparent 38%, rgba(32, 211, 161, 0.12));
}

.hero-logo-first .hero-bg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 22%, rgba(242, 182, 61, 0.16), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(23, 118, 210, 0.18), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(32, 211, 161, 0.14), transparent 26%),
    linear-gradient(135deg, #06131f 0%, #0a2136 48%, #0c3145 100%);
  background-size:
    82px 82px,
    82px 82px,
    auto,
    auto,
    auto,
    auto;
}

.hero-tech-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-tech-lines span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 182, 61, 0.4), rgba(32, 211, 161, 0.4), transparent);
  opacity: 0.64;
}

.hero-tech-lines span:nth-child(1) {
  top: 24%;
  left: -6%;
  width: 42%;
}

.hero-tech-lines span:nth-child(2) {
  top: 46%;
  right: -8%;
  width: 50%;
}

.hero-tech-lines span:nth-child(3) {
  bottom: 18%;
  left: 18%;
  width: 64%;
}

.hero-logo-layout {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(30px, 5vw, 56px);
  text-align: center;
}

.hero-logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(230px, 28vw, 390px);
  aspect-ratio: 1;
}

.hero-logo-stage::before,
.hero-logo-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-logo-stage::before {
  inset: 3%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14), transparent 58%),
    conic-gradient(from 120deg, rgba(242, 182, 61, 0.42), rgba(32, 211, 161, 0.34), rgba(23, 118, 210, 0.36), rgba(242, 182, 61, 0.42));
  filter: blur(0.2px);
  opacity: 0.62;
}

.hero-logo-stage::after {
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 58px rgba(32, 211, 161, 0.18),
    inset 0 0 44px rgba(255, 255, 255, 0.05);
}

.energy-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.energy-ring-one {
  inset: 0;
  border: 1px solid rgba(242, 182, 61, 0.26);
}

.energy-ring-two {
  inset: 10%;
  border: 1px dashed rgba(32, 211, 161, 0.3);
}

.hero-logo-surface {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86) 58%, rgba(238, 246, 250, 0.82)),
    var(--white);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-main-logo {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(7, 24, 39, 0.14));
}

.hero-copy-centered {
  max-width: 900px;
}

.hero-copy-centered .hero-kicker,
.hero-copy-centered .hero-actions,
.hero-copy-centered .hero-points {
  justify-content: center;
}

.hero-copy-centered h1 {
  max-width: 16ch;
  margin-inline: auto;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
}

.hero-copy-centered .hero-text {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
}

.hero-copy-centered .hero-points {
  margin-top: 28px;
}

.hero-points li {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.075);
}

.intro-band {
  background:
    linear-gradient(90deg, rgba(242, 182, 61, 0.08), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f4f8fb 100%);
}

.intro-grid {
  align-items: center;
}

.section-heading {
  max-width: 820px;
}

.service-card,
.trust-items article,
.feature-card,
.detail-panel,
.contact-link,
.contact-form,
.legal-card,
.work-insight-card,
.image-gallery figure {
  border-color: rgba(185, 202, 216, 0.78);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.98)),
    var(--white);
}

.service-card,
.feature-card,
.trust-items article {
  padding: clamp(22px, 2.5vw, 30px);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.card-icon {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(242, 182, 61, 0.2), rgba(32, 211, 161, 0.16)),
    #f7fafc;
  box-shadow: inset 0 0 0 1px rgba(185, 202, 216, 0.72);
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.card-icon::before {
  inset: 12px;
  border: 2px solid rgba(16, 36, 60, 0.62);
}

.card-icon::after {
  width: 18px;
  height: 3px;
  left: 15px;
  top: 22px;
  background: var(--accent);
  transform: rotate(-28deg);
}

.storage-icon::before {
  border-radius: 6px;
}

.install-icon::before,
.automation-icon::before {
  border-radius: 4px;
}

.smart-icon::before {
  border-radius: 50% 50% 8px 8px;
}

.hero-points a {
  color: inherit;
  text-decoration: none;
}

.service-card::before,
.feature-card::before,
.trust-items article::before {
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue-500));
}

.service-card h3,
.feature-card h3,
.trust-items h3,
.work-insight-card h3 {
  color: #10243c;
}

.service-card a {
  position: relative;
  color: #0b6682;
}

.service-card a::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  margin-left: 8px;
  border-radius: 999px;
  vertical-align: middle;
  background: currentColor;
  transition: width 180ms ease;
}

.service-card:hover a::after,
.service-card:focus-within a::after {
  width: 34px;
}

.icon-card {
  background:
    linear-gradient(135deg, rgba(242, 182, 61, 0.18), rgba(32, 211, 161, 0.16)),
    #f7fafc;
}

.trust-section,
.alt-bg {
  background:
    radial-gradient(circle at 86% 12%, rgba(32, 211, 161, 0.08), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(23, 118, 210, 0.07), transparent 28%),
    linear-gradient(180deg, #f6f9fb, #edf4f7);
}

.page-hero,
.legal-hero {
  background:
    radial-gradient(circle at 76% 20%, rgba(32, 211, 161, 0.14), transparent 30%),
    linear-gradient(135deg, #071827, #0b2438 62%, #0a3347);
}

.page-hero-grid {
  align-items: center;
}

.page-hero-media,
.image-gallery figure,
.work-insight-card {
  box-shadow: var(--shadow);
}

.page-hero-media {
  min-height: clamp(430px, 48vw, 590px);
  border-color: rgba(255, 255, 255, 0.28);
}

.page-hero-media img {
  object-position: center center;
}

.bulli-media img {
  object-position: 50% 80%;
}

.work-insight-grid {
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-insight-card {
  display: flex;
  flex-direction: column;
}

.work-insight-card-featured {
  grid-row: span 2;
}

.work-insight-card:nth-child(4) {
  grid-column: span 2;
}

.work-insight-card img {
  height: 280px;
}

.work-insight-card-featured img {
  height: 440px;
  object-position: 50% 82%;
}

.work-insight-card h3,
.work-insight-card p {
  margin-inline: 22px;
}

.work-insight-card h3 {
  margin-top: 22px;
}

.work-insight-card p {
  margin-bottom: 24px;
}

.image-gallery figure {
  min-height: 470px;
}

.contact-page-hero {
  background:
    linear-gradient(rgba(7, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 24, 39, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 88% 14%, rgba(242, 182, 61, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
  background-size:
    76px 76px,
    76px 76px,
    auto,
    auto;
}

.contact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-link {
  min-height: 126px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 250, 0.98)),
    var(--white);
}

.contact-link strong {
  color: #0b2135;
  font-size: clamp(1.03rem, 1.4vw, 1.16rem);
  overflow-wrap: anywhere;
}

.contact-form {
  border-top: 4px solid var(--yellow);
}

.cta-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 182, 61, 0.12), transparent 28%),
    radial-gradient(circle at 18% 94%, rgba(32, 211, 161, 0.12), transparent 28%),
    linear-gradient(135deg, #071827, #0b2538);
}

.cta-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.03);
}

.site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 182, 61, 0.1), transparent 26%),
    linear-gradient(135deg, #071827, #0b2135);
}

.site-footer .brand-logo {
  width: 58px;
  height: 58px;
  padding: 0;
  background: transparent;
}

@media (max-width: 1120px) {
  .hero-logo-first {
    min-height: auto;
  }

  .work-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-insight-card-featured {
    grid-row: auto;
    grid-column: span 2;
  }

  .work-insight-card:nth-child(4) {
    grid-column: span 2;
  }

  .work-insight-card-featured img {
    height: 390px;
  }
}

@media (max-width: 880px) {
  .site-nav {
    gap: 8px;
    padding: 24px;
    border-radius: 0;
    background:
      radial-gradient(circle at 50% 28%, rgba(23, 118, 210, 0.055), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  }

  .site-nav a {
    padding: 15px 12px;
    border-radius: var(--radius);
  }

  .nav-dropdown {
    border-left: 2px solid rgba(23, 118, 210, 0.18);
  }

  .hero-logo-stage {
    width: clamp(210px, 58vw, 340px);
  }

  .hero-copy-centered h1 {
    font-size: clamp(2.35rem, 10vw, 4rem);
  }

  .hero-copy-centered .hero-kicker {
    justify-content: center;
  }

  .work-insight-card-featured img {
    height: 360px;
  }
}

@media (max-width: 560px) {
  .hero-logo-first {
    padding-block: 48px 64px;
  }

  .hero-logo-stage {
    width: min(76vw, 280px);
  }

  .hero-copy-centered h1 {
    max-width: 12ch;
  }

  .hero-copy-centered .hero-text {
    font-size: 1.03rem;
  }

  .work-insight-grid {
    grid-template-columns: 1fr;
  }

  .work-insight-card-featured {
    grid-column: span 1;
  }

  .work-insight-card:nth-child(4) {
    grid-column: span 1;
  }

  .work-insight-card img,
  .work-insight-card-featured img {
    height: min(78vw, 380px);
  }

  .work-insight-card-featured img {
    object-position: 50% 82%;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 881px) {
  .site-nav {
    position: relative;
    z-index: 60;
  }

  .nav-dropdown {
    z-index: 61;
  }

  .header-actions {
    position: relative;
    z-index: 80;
  }
}

@media (max-width: 880px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-nav {
    visibility: hidden;
  }

  .site-nav.is-open {
    visibility: visible;
  }

  .nav-toggle {
    position: relative;
    z-index: 100;
  }
}

/* Navigation and image-card stabilization after the final design pass. */
.site-header {
  z-index: 1000;
  overflow: visible;
}

.header-inner,
.site-nav,
.nav-group {
  overflow: visible;
}

@media (min-width: 901px) {
  .site-nav {
    position: relative;
    z-index: 1001;
  }

  .nav-group {
    display: flex;
    align-items: center;
  }

  .nav-dropdown {
    left: 50%;
    width: max-content;
    min-width: 372px;
    max-width: min(440px, calc(100vw - 40px));
    padding: 12px;
    z-index: 1100;
  }

  .nav-dropdown a {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

.work-insight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2vw, 22px);
}

.work-insight-card,
.image-gallery figure {
  overflow: hidden;
}

.work-insight-card:nth-child(4),
.work-insight-card-featured {
  grid-column: auto;
  grid-row: auto;
}

.work-insight-card img,
.work-insight-card-featured img {
  width: 100%;
  height: clamp(230px, 21vw, 315px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-insight-card:nth-child(1) img {
  object-position: 50% 46%;
}

.work-insight-card:nth-child(2) img,
.image-gallery figure:nth-child(1) img {
  object-position: 50% 48%;
}

.work-insight-card:nth-child(3) img,
.image-gallery figure:nth-child(2) img {
  object-position: 50% 68%;
}

.work-insight-card:nth-child(4) img,
.work-insight-card-featured img,
.image-gallery figure:nth-child(3) img {
  object-position: 50% 42%;
}

.bulli-media {
  min-height: clamp(420px, 44vw, 560px);
}

.bulli-media img {
  object-position: 50% 72%;
}

.page-hero-media img,
.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

@media (max-width: 900px) {
  .site-header {
    overflow: visible;
  }

  .site-nav {
    z-index: 1001;
  }

  .nav-dropdown {
    position: static;
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 6px;
    padding: 8px 0 0 12px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .nav-dropdown a {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .work-insight-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .work-insight-card img,
  .work-insight-card-featured img {
    height: clamp(240px, 64vw, 390px);
  }

  .bulli-media {
    min-height: clamp(360px, 92vw, 520px);
  }
}

@media (max-width: 480px) {
  .nav-dropdown {
    padding-left: 10px;
  }

  .nav-dropdown a {
    font-size: 0.98rem;
    line-height: 1.32;
  }

  .work-insight-card img,
  .work-insight-card-featured img,
  .image-gallery img {
    height: clamp(230px, 76vw, 340px);
  }

  .bulli-media {
    min-height: clamp(330px, 104vw, 470px);
  }
}

/* Final mobile containment layer: keeps late duplicate layout rules from forcing horizontal overflow. */
html,
body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body,
.site-header,
.page-shell,
main,
section,
footer,
.container,
.header-inner,
.brand,
.brand-text,
.site-nav,
.nav-dropdown,
.hero,
.page-hero,
.contact-page-hero,
.legal-hero,
.cta-panel,
.service-card,
.feature-card,
.trust-items,
.trust-items article,
.work-insight-card,
.contact-link,
.contact-form,
.legal-card {
  max-width: 100%;
}

.brand,
.brand-text,
.site-nav,
.nav-dropdown,
.hero-copy,
.page-hero-copy,
.contact-copy,
.section-heading,
.cta-panel,
.cta-panel > *,
.service-card,
.feature-card,
.trust-items,
.trust-items article,
.work-insight-card,
.contact-link,
.contact-form,
.legal-card,
.footer-grid > * {
  min-width: 0;
}

.hero-bg,
.hero-tech-lines,
.hero-tech-lines span,
.page-hero::before,
.legal-hero::before {
  max-width: 100%;
}

.button,
.header-cta,
.contact-link,
.site-footer a,
.service-card a,
.feature-card a {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .header-inner,
  .hero-grid,
  .page-hero-grid,
  .intro-grid,
  .split-grid,
  .trust-grid,
  .why-grid,
  .contact-grid,
  .cta-panel,
  .service-grid,
  .trust-items,
  .compact-trust,
  .feature-grid,
  .work-insight-grid,
  .image-gallery,
  .contact-actions,
  .contact-meta,
  .check-list.columns,
  .footer-grid,
  .two-columns {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .work-insight-card-featured,
  .work-insight-card:nth-child(4) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .site-nav {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .nav-dropdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .button,
  .hero-actions .button,
  .cta-actions .button,
  .contact-form .button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-logo-stage {
    max-width: calc(100vw - 56px);
  }

  .hero-kicker,
  .hero-points {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .site-nav {
    padding: 22px 18px 30px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
  }

  .brand-name {
    font-size: clamp(1rem, 4.6vw, 1.45rem);
    line-height: 1.05;
  }

  .brand-line {
    font-size: clamp(0.76rem, 3.3vw, 0.95rem);
    line-height: 1.25;
  }

  .page-hero-media,
  .hero-photo-main,
  .work-insight-card img,
  .image-gallery img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, var(--max-width));
  }

  .hero,
  .page-hero,
  .contact-page-hero,
  .legal-hero,
  .intro-band,
  .section,
  .legal-page {
    padding-block: 48px;
  }

  .hero-logo-first {
    padding-block: 44px 58px;
  }

  .hero-logo-stage {
    width: min(72vw, 250px);
  }

  .hero-copy-centered h1,
  .hero h1,
  .page-hero h1,
  .legal-hero h1,
  .contact-page-hero h1 {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-copy-centered .hero-text,
  .page-hero-copy p,
  .contact-copy p,
  .section-heading p {
    max-width: 100%;
  }

  .service-card,
  .feature-card,
  .trust-items article,
  .work-insight-card,
  .contact-link,
  .contact-form,
  .legal-card,
  .detail-panel,
  .cta-panel {
    width: 100%;
    max-width: 100%;
    padding: clamp(18px, 5vw, 24px);
  }

  .work-insight-card h3,
  .work-insight-card p {
    margin-inline: 18px;
  }

  .contact-link strong,
  .contact-link span,
  .contact-link small,
  .site-footer a,
  .legal-card,
  .form-fallback {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 18px, var(--max-width));
  }

  .site-nav {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: clamp(0.95rem, 4.4vw, 1.22rem);
  }

  .brand-line {
    font-size: 0.74rem;
  }

  .hero-logo-stage {
    width: min(70vw, 228px);
  }

  .hero-copy-centered h1 {
    font-size: clamp(2rem, 9.4vw, 2.8rem);
  }

  .button,
  .contact-link,
  input,
  select,
  textarea {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100% - 16px, var(--max-width));
  }

  .site-nav a {
    font-size: 1.05rem;
  }

  .hero-copy-centered h1 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .service-card,
  .feature-card,
  .trust-items article,
  .work-insight-card,
  .contact-link,
  .contact-form,
  .legal-card,
  .detail-panel,
  .cta-panel {
    padding: 18px;
  }
}

/* Final desktop dropdown override: the containment layer above must not shrink flyout menus to the trigger width. */
@media (min-width: 881px) {
  .site-nav .nav-dropdown {
    width: 372px;
    min-width: 372px;
    max-width: min(440px, calc(100vw - 40px));
  }

  .site-nav .nav-dropdown a {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

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