/* ------------------------------------------------------------
   ALTEA ELEC — direction artistique de la page d'accueil
   ------------------------------------------------------------ */

html {
  background: var(--night);
  scrollbar-color: #607082 #e8edf1;
  scrollbar-width: thin;
}

html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #e8edf1; }
html::-webkit-scrollbar-thumb { border: 2px solid #e8edf1; background: #607082; }

.home-page {
  background: var(--night);
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, Helvetica, sans-serif;
}

.home-page h1,
.home-page h2,
.home-page h3 {
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Arial Narrow", Arial, Helvetica, sans-serif;
}

.home-page main {
  background: var(--white);
}

.home-page .section {
  padding-block: 128px;
}

.home-page h2 {
  font-size: 48px;
  line-height: 1.06;
}

.home-page .section-heading {
  margin-bottom: 64px;
}

.home-page .section-heading > p {
  font-size: 16px;
  line-height: 1.7;
}

.home-page .button {
  min-height: 54px;
  padding: 14px 22px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-page .button:hover {
  transform: translateY(-2px);
}

.button-arrow {
  justify-content: space-between;
  gap: 18px;
}

.button-arrow > span {
  font-size: 18px;
  line-height: 1;
  transition: transform 160ms ease;
}

.button-arrow:hover > span {
  transform: translate(2px, -2px);
}

/* Header superposé */

.home-page .site-header {
  height: 82px;
  border-bottom-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  transition: height 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.home-page .site-header.is-scrolled {
  height: 72px;
  border-bottom-color: rgba(9, 22, 37, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(9, 22, 37, 0.06);
  backdrop-filter: blur(10px);
}

.home-page .header-inner {
  width: min(100% - 52px, 1380px);
}

.brand-lockup {
  position: relative;
  display: block;
  width: 176px;
  height: 46px;
}

.home-page .brand-link img.brand-logo {
  position: absolute;
  inset: 0;
  width: 176px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 160ms ease;
}

.home-page .brand-logo-dark { opacity: 0; }
.home-page .brand-logo-light { opacity: 1; }
.home-page .site-header.is-scrolled .brand-logo-dark { opacity: 1; }
.home-page .site-header.is-scrolled .brand-logo-light { opacity: 0; }

.home-page .nav-panel {
  gap: 23px;
}

.home-page .nav-panel > a:not(.button),
.home-page .nav-phone {
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
}

.home-page .site-header.is-scrolled .nav-panel > a:not(.button),
.home-page .site-header.is-scrolled .nav-phone {
  color: #263542;
}

.home-page .nav-cta {
  border-color: var(--electric);
  background: var(--electric);
}

.header-quick-contact {
  display: none;
}

/* Hero */

.home-page .hero {
  --hero-shift: 0px;
  position: relative;
  height: 90svh;
  min-height: 720px;
  max-height: 940px;
  align-items: stretch;
  padding-top: 0;
  isolation: isolate;
  background: var(--night);
}

.home-page .hero::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 68%;
  background: rgba(9, 22, 37, 0.42);
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.home-page .hero-media {
  transform: scale(1.04) translateY(var(--hero-shift));
  transform-origin: center center;
  will-change: transform;
}

.home-page .hero-media img {
  object-position: center 48%;
  filter: brightness(0.62) saturate(0.78) contrast(1.08) hue-rotate(2deg);
}

.home-page .hero-wash {
  z-index: 0;
  background: rgba(9, 22, 37, 0.26);
}

.home-page .hero-inner {
  z-index: 3;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 148px;
}

.home-page .hero-content {
  width: min(64%, 790px);
  padding-block: 42px;
}

.home-page .hero .eyebrow {
  margin-bottom: 24px;
  color: #89ceff;
  font-size: 12px;
}

.home-page .hero h1 {
  max-width: 780px;
  margin-bottom: 26px;
  color: var(--white);
  font-size: 72px;
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}

.home-page .hero h1 span {
  color: #69bbff;
}

.home-page .hero-lead {
  max-width: 670px;
  margin-bottom: 34px;
  color: #e0e9f0;
  font-size: 18px;
  line-height: 1.58;
}

.home-page .hero .button-group {
  gap: 13px;
}

.home-page .hero .button {
  min-width: 190px;
}

.home-page .hero .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(9, 22, 37, 0.28);
  backdrop-filter: none;
}

.home-page .hero .button-secondary:hover {
  color: var(--night);
  border-color: var(--white);
  background: var(--white);
}

.hero-circuit {
  position: absolute;
  z-index: 2;
  right: 3vw;
  bottom: 92px;
  width: min(39vw, 560px);
  opacity: 0.38;
  pointer-events: none;
}

.hero-circuit path,
.hero-circuit circle {
  fill: none;
  stroke: #6fc1ff;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.hero-circuit circle {
  fill: var(--electric);
  stroke: var(--white);
}

.reveal-ready .hero-circuit path {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: circuit-in 900ms 260ms ease-out forwards;
}

@keyframes circuit-in {
  to { stroke-dashoffset: 0; }
}

.hero-assurances {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-assurances ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 21px 0 0;
  list-style: none;
}

.hero-assurances li {
  display: flex;
  min-width: 0;
  gap: 10px;
  align-items: center;
  padding-right: 22px;
  color: #e7eef4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-assurances li > span {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--electric);
}

/* Services éditoriaux */

.home-page .services-section {
  position: relative;
  background: #f4f6f8;
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.service-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9e0e6;
  border-radius: 6px;
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease;
}

.service-tile:hover {
  border-color: #9cb4ca;
  transform: translateY(-4px);
}

.service-tile-renovation {
  display: grid;
  min-height: 560px;
  grid-column: span 7;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
}

.service-visual,
.service-visual picture,
.service-visual img,
.service-backdrop,
.service-backdrop img {
  width: 100%;
  height: 100%;
}

.service-visual img,
.service-backdrop img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-visual img {
  object-position: center 62%;
}

.service-tile:hover .service-visual img,
.service-tile:hover .service-backdrop img {
  transform: scale(1.025);
}

.service-body {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 38px;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.service-meta > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.services-bento .service-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 9px;
  border-color: #c7d9e8;
}

.service-tile h3 {
  margin-bottom: 16px;
  font-size: 28px;
  line-height: 1.12;
}

.service-tile p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
}

.service-tile ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.service-tile li {
  padding: 5px 8px;
  border: 1px solid #dce4ea;
  color: #4b5863;
  background: #f7f9fa;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.service-tile .text-link {
  margin-top: auto;
}

.service-tile-tableau {
  min-height: 560px;
  grid-column: span 5;
  color: var(--white);
  background: var(--night);
}

.service-backdrop,
.service-photo-shade {
  position: absolute;
  inset: 0;
}

.service-tile-tableau .service-backdrop img {
  object-position: 54% center;
  filter: brightness(0.55) saturate(0.78) contrast(1.05);
}

.service-photo-shade {
  z-index: 1;
  background: rgba(9, 22, 37, 0.34);
}

.service-tile-tableau .service-body {
  height: 100%;
  justify-content: flex-end;
}

.service-tile-tableau .service-meta {
  margin-bottom: auto;
}

.service-tile-tableau .service-meta > span,
.service-tile-blue .service-meta > span {
  color: #82c8ff;
}

.service-tile-tableau .service-icon,
.service-tile-blue .service-icon {
  color: #92d0ff;
  border-color: rgba(255, 255, 255, 0.35);
}

.service-tile-tableau h3,
.service-tile-blue h3 {
  color: var(--white);
}

.service-tile-tableau p,
.service-tile-blue p {
  color: #d4dfe8;
}

.service-tile-compact {
  display: flex;
  min-height: 350px;
  grid-column: span 4;
  flex-direction: column;
  padding: 32px;
}

.service-tile-compact .service-meta {
  margin-bottom: 48px;
}

.service-tile-compact h3 {
  font-size: 23px;
}

.service-tile-blue {
  border-color: #17539a;
  background: #164a8d;
}

.service-tile-pro {
  border-top: 3px solid var(--electric);
}

/* Engagements */

.home-page .quality-section {
  position: relative;
  overflow: hidden;
  color: #c7d2dc;
  background: var(--night);
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(520px, 1.15fr);
  gap: 100px;
  align-items: center;
}

.quality-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 720px;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: #142536;
}

.quality-media picture,
.quality-media > picture img {
  width: 100%;
  height: 100%;
}

.quality-media > picture img {
  object-fit: cover;
  object-position: center 54%;
  filter: brightness(0.72) saturate(0.76) contrast(1.08);
}

.quality-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.quality-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 112px;
  opacity: 0.24;
}

.quality-copy h2 {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--white);
}

.quality-copy > p:not(.eyebrow) {
  max-width: 700px;
  color: #aebcc8;
}

.quality-copy .quality-intro {
  color: #e3ebf1;
  font-size: 19px;
  line-height: 1.55;
}

.quality-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 42px 0 34px;
  padding: 0;
  list-style: none;
}

.quality-list li {
  display: grid;
  min-height: 168px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  padding: 23px 24px 20px 0;
  border-top: 1px solid #30404f;
}

.quality-list li:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid #30404f;
}

.quality-list li > span {
  color: var(--electric);
  font-size: 11px;
  font-weight: 800;
}

.quality-list h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 17px;
}

.quality-list p {
  margin: 0;
  color: #9baab7;
  font-size: 13px;
  line-height: 1.55;
}

.insurance-trust {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid #30404f;
  border-bottom: 1px solid #30404f;
}

.insurance-trust strong {
  color: var(--white);
  font-size: 13px;
}

.insurance-trust span {
  color: #aebcc8;
  font-size: 12px;
}

/* Méthode */

.home-page .method-section {
  background: var(--white);
}

.home-page .method-list {
  position: relative;
  gap: 0;
  padding-top: 7px;
}

.home-page .method-list::before {
  position: absolute;
  top: 26px;
  right: 0;
  left: 0;
  height: 1px;
  background: #aebac4;
  content: "";
}

.home-page .method-list li {
  position: relative;
  min-height: 280px;
  padding: 0 30px 0 0;
  border: 0;
}

.home-page .method-list li::before {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 0;
  width: 27px;
  height: 27px;
  border: 7px solid var(--white);
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 1px var(--blue);
  content: "";
}

.home-page .method-number {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 55px 0 40px;
  color: var(--blue);
  font-size: 12px;
}

.home-page .method-list h3 {
  max-width: 210px;
  font-size: 22px;
}

.home-page .method-list p {
  max-width: 245px;
  line-height: 1.65;
}

/* Galerie */

.home-page .gallery-section {
  background: #f1f4f6;
}

.home-page .gallery-grid {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: clamp(420px, 36vw, 520px);
  gap: 16px;
}

.home-page .gallery-item {
  border-radius: 4px;
}

.home-page .gallery-item-office {
  grid-column: 1;
  grid-row: 1;
}

.home-page .gallery-item-light {
  grid-column: 2;
  grid-row: 1;
}

.home-page .gallery-item-office img {
  object-position: center center;
}

.home-page .gallery-item-light img {
  object-position: center 45%;
}

.home-page .gallery-item figcaption {
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 13px 15px;
  border-left-width: 2px;
  background: rgba(9, 22, 37, 0.9);
}

/* Secteur, composition non cartographique */

.home-page .area-section {
  position: relative;
  overflow: hidden;
  background: #101b27;
}

.home-page .area-section::after {
  position: absolute;
  right: -12%;
  bottom: 70px;
  width: 48%;
  height: 1px;
  background: #2b5b81;
  content: "";
  transform: rotate(-13deg);
}

.home-page .area-layout {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 92px;
}

.home-page .area-copy h2 {
  max-width: 610px;
}

.home-page .area-graphic {
  border: 0;
  background: transparent;
}

.area-map-shell {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #344a5e;
  border-radius: 6px;
  background: #132434;
  transition: border-color 180ms ease;
}

.area-map-shell.is-loaded {
  border-color: #5d829f;
  background: #e8edf0;
}

.area-map-consent {
  position: relative;
  display: flex;
  min-height: 518px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 46px 52px;
}

.area-map-consent::after {
  position: absolute;
  right: -38px;
  bottom: 54px;
  width: 260px;
  height: 1px;
  background: #315570;
  content: "";
  transform: rotate(-24deg);
}

.area-map-consent > img {
  width: 62px;
  margin-bottom: 30px;
  opacity: 0.72;
}

.map-kicker {
  margin-bottom: 8px;
  color: #80c7fa;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.area-map-consent h3 {
  max-width: 520px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 31px;
}

.area-map-consent > p:not(.map-kicker, .map-privacy) {
  max-width: 520px;
  margin-bottom: 25px;
  color: #b9c6d1;
  font-size: 14px;
  line-height: 1.65;
}

.map-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 20px;
  align-items: center;
}

.button-map {
  gap: 10px;
}

.button-map svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.map-external {
  color: #8fcfff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.map-external:hover {
  color: var(--white);
  text-decoration: underline;
}

.map-privacy {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: 22px 0 0;
  color: #9cacb9;
  font-size: 12px;
  line-height: 1.55;
}

.map-privacy a {
  color: #aec7da;
}

.area-map-toolbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  color: #41515f;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
}

.area-map-toolbar button {
  padding: 6px 9px;
  border: 1px solid #9daab4;
  border-radius: 3px;
  color: #263541;
  background: var(--white);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.area-map-toolbar button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.area-map-frame {
  height: 468px;
  background: #d9e1e6;
}

.area-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Transition vers la demande */

.home-page .cta-section {
  position: relative;
  overflow: hidden;
  background: #1f5bab;
}

.home-page .cta-section::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 22, 37, 0.12);
  content: "";
  transform: skewX(-13deg) translateX(20%);
}

.home-page .cta-inner {
  position: relative;
  z-index: 1;
  min-height: 260px;
}

/* Contact */

.home-page .contact-section {
  background: #eef2f5;
}

.home-page .contact-layout {
  grid-template-columns: minmax(300px, 0.78fr) minmax(570px, 1.22fr);
  gap: 104px;
}

.home-page .contact-copy h2 {
  font-size: 52px;
}

.home-page .contact-copy > p:not(.eyebrow) {
  max-width: 480px;
  font-size: 17px;
}

.home-page .contact-details > div {
  grid-template-columns: 100px minmax(0, 1fr);
  border-top-color: #c5d0d9;
}

.home-page .quote-form {
  padding: 48px;
  border-color: #ccd6de;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(9, 22, 37, 0.07);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

.home-page .quote-form[aria-busy="true"] .form-submit {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.home-page .form-heading h3 {
  font-size: 31px;
}

.home-page .form-field input:not([type="checkbox"]):not([type="radio"]),
.home-page .form-field textarea {
  min-height: 52px;
  padding: 12px 14px;
  border-color: #a8b6c1;
  border-radius: 3px;
  background: #fbfcfd;
}

.home-page .form-field textarea {
  min-height: 156px;
}

.request-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.request-options legend {
  display: block;
  width: 100%;
  margin-bottom: 9px;
  color: #26323e;
  font-size: 14px;
  font-weight: 700;
}

.request-options legend span {
  color: var(--blue);
}

.request-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-page .request-options-grid input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}

.request-options-grid label {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #b8c4cd;
  border-radius: 3px;
  color: #3b4854;
  background: #fbfcfd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.request-options-grid label:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.request-options-grid input:checked + label {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.request-options-grid input:focus-visible + label {
  outline: 3px solid var(--electric);
  outline-offset: 2px;
}

.request-options[aria-invalid="true"] .request-options-grid {
  outline: 2px solid rgba(180, 35, 24, 0.35);
  outline-offset: 3px;
}

.home-page .form-submit {
  min-width: 230px;
}

.home-page .site-footer h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.25;
}

/* Animation d'apparition plus précise */

.reveal-ready .home-page [data-reveal] {
  transform: translateY(14px);
  transition-duration: 420ms;
}

.reveal-ready .home-page [data-reveal].is-visible {
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .home-page .hero h1 { font-size: 64px; }
  .quality-layout { gap: 70px; }
}

@media (max-width: 1180px) {
  .home-page .site-header,
  .home-page .site-header.is-scrolled { height: var(--header-height); }
  .home-page .header-inner { width: calc(100% - 32px); }
  .brand-lockup { width: 158px; height: 42px; }
  .home-page .brand-link img.brand-logo { width: 158px; height: 42px; }

  .header-quick-contact {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 9px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 3px;
    color: var(--white);
  }
  .header-quick-contact svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
  }
  .home-page .site-header.is-scrolled .header-quick-contact {
    color: var(--night);
    border-color: #b7c2cb;
  }

  .home-page .menu-toggle {
    display: flex;
    border-color: rgba(255, 255, 255, 0.48);
    background: transparent;
  }
  .home-page .menu-toggle > span:not(.sr-only) { background: var(--white); }
  .home-page .site-header.is-scrolled .menu-toggle {
    border-color: #b7c2cb;
    background: transparent;
  }
  .home-page .site-header.is-scrolled .menu-toggle > span:not(.sr-only) { background: var(--night); }
  .home-page .site-header.menu-active {
    border-bottom-color: #2a3d50;
    background: var(--night);
    box-shadow: none;
    backdrop-filter: none;
  }
  .home-page .site-header.menu-active .brand-logo-dark { opacity: 0; }
  .home-page .site-header.menu-active .brand-logo-light { opacity: 1; }
  .home-page .site-header.menu-active .header-quick-contact {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.42);
  }
  .home-page .site-header.menu-active .menu-toggle { border-color: rgba(255, 255, 255, 0.42); }
  .home-page .site-header.menu-active .menu-toggle > span:not(.sr-only) { background: var(--white); }

  .home-page .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: block;
    overflow: auto;
    background: rgba(9, 22, 37, 0.86);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .home-page .main-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }
  .home-page .nav-panel {
    display: grid;
    width: 100%;
    min-height: calc(100svh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    gap: 0;
    align-content: start;
    align-items: stretch;
    margin-left: auto;
    overflow-y: auto;
    padding: 34px 28px 46px;
    background: var(--night);
    transform: translateY(-12px);
    transition: transform 180ms ease;
  }
  .home-page .main-nav[data-open="true"] .nav-panel {
    transform: translateY(0);
  }
  .home-page .nav-panel > a:not(.button),
  .home-page .site-header.is-scrolled .nav-panel > a:not(.button),
  .home-page .nav-phone,
  .home-page .site-header.is-scrolled .nav-phone {
    padding: 16px 0;
    border-color: #2d3f50;
    color: var(--white);
    font-size: 18px;
  }
  .home-page .nav-panel > a:not(.button)::after,
  .home-page .nav-phone::after { display: none; }
  .home-page .nav-cta { margin-top: 20px; }
}

@media (max-width: 1024px) {
  .home-page .section { padding-block: 96px; }
  .home-page h2 { font-size: 42px; }
  .home-page .hero { min-height: 720px; }
  .home-page .hero h1 { font-size: 56px; }
  .home-page .hero-content { width: min(75%, 700px); }
  .hero-assurances li { font-size: 11px; }

  .service-tile-renovation { grid-column: 1 / -1; }
  .service-tile-tableau { grid-column: span 6; }
  .service-tile-compact { grid-column: span 6; }
  .service-tile-pro { grid-column: 1 / -1; min-height: 300px; }

  .quality-layout { grid-template-columns: 1fr; gap: 64px; }
  .quality-media { max-width: 620px; aspect-ratio: 4 / 3; }
  .quality-media > picture img { object-position: center 55%; }

  .home-page .gallery-grid {
    grid-template-rows: clamp(360px, 48vw, 460px);
  }

  .home-page .area-layout { grid-template-columns: 1fr; gap: 54px; }
  .area-map-shell { width: min(100%, 700px); margin-inline: auto; }

  .home-page .contact-layout { grid-template-columns: 1fr; gap: 62px; }
  .home-page .contact-copy { max-width: 700px; }
  .home-page .contact-copy h2 { font-size: 46px; }
}

@media (max-width: 1024px) {
  .home-page .method-list {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 0 0 28px;
  }
  .home-page .method-list::before {
    top: 9px;
    right: auto;
    bottom: 10px;
    left: 8px;
    width: 1px;
    height: auto;
  }
  .home-page .method-list li,
  .home-page .method-list li:nth-child(3) {
    display: grid;
    min-height: 0;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 38px 18px;
    border: 0;
  }
  .home-page .method-list li:last-child { padding-bottom: 0; }
  .home-page .method-list li::before {
    top: 4px;
    left: -26px;
    width: 17px;
    height: 17px;
    border-width: 5px;
  }
  .home-page .method-number { margin: 3px 0 0; }
  .home-page .method-list h3,
  .home-page .method-list p { max-width: 620px; }
}

@media (max-width: 767px) {
  .home-page .section { padding-block: 66px; }
  .home-page h2 { font-size: 34px; }
  .home-page .section-heading { margin-bottom: 36px; }
  .home-page .header-inner { width: calc(100% - 28px); }
  .brand-lockup { width: 138px; height: 38px; }
  .home-page .brand-link img.brand-logo { width: 138px; height: 38px; }
  .header-quick-contact,
  .home-page .menu-toggle { width: 42px; height: 42px; }

  .home-page .hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
    padding: 0;
  }
  .home-page .hero::before {
    width: 100%;
    background: rgba(9, 22, 37, 0.45);
    clip-path: none;
  }
  .home-page .hero-media img {
    object-position: 66% center;
    filter: brightness(0.52) saturate(0.76) contrast(1.08);
  }
  .home-page .hero-media {
    transform: scale(1.02);
    will-change: auto;
  }
  .home-page .hero-inner {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 34px);
    padding-bottom: 154px;
  }
  .home-page .hero-content {
    width: 100%;
    padding: 0;
  }
  .home-page .hero .eyebrow {
    max-width: 290px;
    margin-bottom: 18px;
    font-size: 10px;
  }
  .home-page .hero h1 {
    max-width: 500px;
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 1.04;
  }
  .home-page .hero-lead {
    max-width: 500px;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
  }
  .home-page .hero .button-group {
    width: min(100%, 360px);
    flex-direction: column;
    align-items: stretch;
  }
  .home-page .hero .button { width: 100%; }
  .hero-circuit { right: 0; bottom: 116px; width: min(360px, 94vw); opacity: 0.2; }
  .hero-assurances { bottom: 22px; }
  .hero-assurances ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 14px;
    padding-top: 17px;
  }
  .hero-assurances li { padding: 0; font-size: 10px; }

  .services-bento { grid-template-columns: 1fr; gap: 14px; }
  .service-tile-renovation,
  .service-tile-tableau,
  .service-tile-compact,
  .service-tile-pro {
    min-height: 0;
    grid-column: auto;
  }
  .service-tile-renovation { grid-template-columns: 1fr; }
  .service-visual { aspect-ratio: 16 / 10; }
  .service-visual img { object-position: center 58%; }
  .service-body,
  .service-tile-compact { padding: 25px 22px; }
  .service-tile-renovation .service-body { min-height: 0; }
  .service-tile-tableau { min-height: 380px; }
  .service-tile-compact { min-height: 0; }
  .service-tile-compact .service-meta { margin-bottom: 26px; }
  .service-tile h3 { font-size: 24px; }

  .quality-layout { gap: 40px; }
  .quality-media { aspect-ratio: 4 / 3; }
  .quality-mark { width: 92px; }
  .quality-copy .quality-intro { font-size: 17px; }
  .quality-list { grid-template-columns: 1fr; margin-top: 28px; }
  .quality-list li,
  .quality-list li:nth-child(even) {
    min-height: 0;
    padding: 17px 0;
    border-left: 0;
  }

  .home-page .gallery-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
    grid-template-rows: 360px;
    gap: 10px;
  }
  .home-page .gallery-item figcaption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 11px 12px;
    font-size: 12px;
  }

  .area-map-shell { min-height: 0; }
  .area-map-consent { min-height: 420px; padding: 30px 22px; }
  .area-map-consent > img { width: 76px; margin-bottom: 20px; }
  .area-map-consent h3 { font-size: 25px; }
  .map-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .button-map { width: 100%; }
  .map-external { text-align: center; }
  .area-map-toolbar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .area-map-frame { height: clamp(340px, 90vw, 420px); }

  .home-page .cta-section::before { display: none; }
  .home-page .cta-inner { min-height: 0; }

  .home-page .contact-layout { gap: 38px; }
  .home-page .contact-copy h2 { font-size: 36px; }
  .home-page .quote-form { padding: 26px 20px; }
  .home-page .form-heading { margin-bottom: 26px; padding-bottom: 20px; }
  .home-page .form-grid { gap: 16px; }
  .home-page .form-field textarea { min-height: 132px; }
  .request-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .form-submit { width: 100%; }
}

@media (max-width: 560px) {
  .home-page .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 12px;
  }
  .home-page .gallery-item-office,
  .home-page .gallery-item-light {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .home-page .gallery-item-light img { object-position: center 42%; }
}

@media (max-width: 380px) {
  .home-page .container { width: calc(100% - 28px); }
  .home-page h2 { font-size: 31px; }
  .brand-lockup { width: 124px; }
  .home-page .brand-link img.brand-logo { width: 124px; }
  .home-page .hero h1 { font-size: 34px; }
  .home-page .hero-lead { font-size: 14px; }
  .home-page .hero .button { min-height: 49px; font-size: 13px; }
  .hero-assurances li { font-size: 9px; }
  .request-options-grid label { min-height: 44px; }
  .home-page .quote-form { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-media { transform: none !important; }
  .reveal-ready .hero-circuit path { animation: none; stroke-dashoffset: 0; }
}

@media (prefers-contrast: more) {
  .home-page .hero-wash { background: rgba(9, 22, 37, 0.56); }
  .hero-assurances { border-top-color: var(--white); }
}

/* Page 404 */

.error-page {
  color: #dce6ee;
  background: var(--night);
}

.error-main {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: calc(var(--header-height) + 70px) 0 80px;
  background: var(--night);
}

.error-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 90px;
  align-items: center;
}

.error-copy h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--white);
  font-family: "Bahnschrift", "Segoe UI Variable Display", Arial, sans-serif;
  font-size: 64px;
  line-height: 1.03;
}

.error-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 32px;
  color: #afbeca;
  font-size: 17px;
}

.error-symbol {
  position: relative;
  display: grid;
  min-height: 360px;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 44px;
  border: 1px solid #2f4355;
}

.error-symbol img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

.error-symbol span {
  color: #87c9f8;
  font-size: 54px;
  font-weight: 800;
}

.error-symbol i {
  height: 1px;
  background: #3e607c;
}

@media (max-width: 767px) {
  .error-main { padding-block: calc(var(--header-height) + 46px) 60px; }
  .error-layout { grid-template-columns: 1fr; gap: 50px; }
  .error-copy h1 { font-size: 42px; }
  .error-symbol { min-height: 230px; padding: 28px; }
  .error-symbol img { width: 130px; }
  .error-symbol span { font-size: 36px; }
}
