:root {
  --navy: #10243a;
  --blue: #0879b9;
  --red: #d72b29;
  --red-hover: #b82422;
  --mist: #f3f6f9;
  --white: #ffffff;
  --ink: #10243a;
  --muted: #3d5166;
  --line: #e4eaf0;
  --header-h: 5.5rem;
  --bar-h: 4.6rem;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 36, 58, 0.06);
  --display: "Sora", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

section[id],
.site-header {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  margin-bottom: 0.8rem;
  background: var(--blue);
}

.hero .eyebrow,
.eyebrow-light {
  color: var(--red);
}

.clients .eyebrow {
  color: #d7e4ef;
}

.hero .eyebrow::before,
.eyebrow-light::before {
  background: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 36, 58, 0.05);
}

.header-inner {
  width: min(1180px, calc(100% - 1.4rem));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-logo,
.footer-logo-frame {
  display: block;
  width: 100px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-logo img,
.footer-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.18rem;
}

.brand-mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.05em;
}

.brand-sub {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav {
  display: none;
}

.nav-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.4rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.4rem) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn-quote {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn-quote:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.header-cta {
  min-height: 2.4rem;
  padding-inline: 0.85rem;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn:focus-visible,
.nav a:focus-visible,
.contact-row:focus-visible,
.text-link:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100dvh - var(--header-h) - var(--bar-h) - env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-visual,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 36%;
}

.hero-shade {
  background: linear-gradient(180deg, rgba(7, 18, 32, 0.05) 0%, rgba(7, 18, 32, 0.08) 34%, rgba(7, 18, 32, 0.62) 58%, rgba(7, 18, 32, 0.9) 78%, rgba(7, 18, 32, 0.94) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.35rem 0 1.15rem;
}

.hero h1 {
  max-width: 16em;
  font-size: clamp(1.62rem, 6.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero h1 span {
  color: #3ee6d8;
  white-space: nowrap;
}

.hero .lead {
  max-width: 36rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.hero-wa {
  margin-top: 1.15rem;
  max-width: 100%;
  gap: 0.55rem;
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(8, 24, 18, 0.22);
}

.hero-wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: var(--white);
}

.hero-wa svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 0;
  margin: 1.25rem 0 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
  padding: 0 0.75rem 0 0;
}

.hero-points li:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 0.8rem;
}

.hero-points li:nth-child(even) {
  padding-left: 0.8rem;
}

.hero-points svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: #7eefe4;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-points strong,
.hero-points li > span > span {
  display: block;
}

.hero-points strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-points li > span > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.3;
}

.section {
  padding: 4.5rem 0;
}

.section-mist {
  background: var(--mist);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head h2,
.about-copy h2,
.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

#servicios-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-intro,
.about-copy p,
.contact-lead {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 38rem;
}

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d7e0e8;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.encuadre-instalacion img { object-position: center top; }
.encuadre-mantenimiento img { object-position: center 42%; }
.encuadre-tecnico img { object-position: center 36%; }
.encuadre-equipos img { object-position: center center; }

.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 1.15rem 1.15rem 1.25rem;
}

.service-index {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.service-body h3 {
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.service-body p {
  color: var(--muted);
}

.text-link {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--blue);
  font-weight: 600;
}

.text-link::after {
  content: " →";
}

.about-copy::after {
  content: "";
  display: block;
  clear: both;
}

.about-copy p + p {
  margin-top: 0.75rem;
}

.review-note {
  color: var(--blue) !important;
  font-size: 0.92rem;
  font-weight: 600;
}

.mv-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.mv-card {
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.mv-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
}

.mv-card p {
  margin-top: 0;
  color: var(--muted);
}

.mv-card p + p {
  margin-top: 0.75rem;
}

.about-more-toggle {
  margin-top: 0.35rem;
  min-height: 2.75rem;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.about-more-toggle:hover {
  color: var(--navy);
}

.about-more-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.about-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.about-more.is-open {
  grid-template-rows: 1fr;
}

.about-more-inner {
  overflow: hidden;
}

.about-more.is-open .about-more-inner {
  padding-top: 0.7rem;
}

.about-copy .about-closing {
  margin: 0.35rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
  max-width: 38rem;
}

.facts {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.facts li {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.facts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.facts strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.about-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d7e0e8;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  min-height: 13rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.project-type {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-card h3 {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
}

.project-card p:last-child {
  color: var(--muted);
  max-width: 28rem;
}

.clients {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
}

.clients h2 {
  max-width: 16ch;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-top: 1.8rem;
}

.client-list li {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-company {
  margin-top: 1.6rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact-legal {
  color: var(--muted);
  margin-top: 0.2rem;
}

.contact-list {
  display: grid;
  margin-top: 1.2rem;
}

.contact-row {
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.contact-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-row strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

a.contact-row:hover strong {
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  background: var(--mist);
  border-radius: var(--radius);
}

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

.field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d5dee7;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 0.8rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

.form-error {
  margin: 0;
  color: var(--red);
  font-weight: 600;
}

.contact-submit {
  width: 100%;
  border: 0;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.footer-mark {
  margin: 0;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.footer-logo-frame {
  width: 100px;
}

.footer-name,
.footer-label {
  margin: 0.8rem 0 0.35rem;
  font-weight: 600;
}

.footer-tag,
.site-footer a,
.site-footer p {
  color: #d5e0ea;
}

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

.footer-grid ul {
  display: grid;
  gap: 0.35rem;
}

.footer-grid .social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.social-list a {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #d5e0ea;
}

.social-list a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.social-list svg {
  width: 1.05rem;
  height: 1.05rem;
}

.social-float {
  position: fixed;
  z-index: 32;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.social-float a {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(16, 36, 58, 0.92);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(16, 36, 58, 0.16);
}

.social-float a:hover {
  background: var(--blue);
}

.social-float svg {
  width: 1rem;
  height: 1rem;
}

body.is-nav-open .social-float {
  visibility: hidden;
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.6rem;
  padding: 0.7rem max(0.8rem, env(safe-area-inset-right)) calc(0.7rem + env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.mobile-bar a {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
}

.mobile-bar-call {
  border: 1px solid var(--navy);
  color: var(--navy);
}

.mobile-bar-wa {
  background: var(--navy);
  color: var(--white);
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(16, 36, 58, 0.08);
  }

  .service-card:hover img {
    transform: scale(1.035);
  }

  .project-card {
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }

  .project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(16, 36, 58, 0.08);
  }

  .text-link {
    transition: color 0.2s var(--ease);
  }

  .text-link:hover {
    color: var(--navy);
  }
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .contact-form {
    padding: 1.5rem;
  }
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }

  .header-tools {
    display: none;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-left: auto;
  }

  .nav ul {
    display: flex;
    gap: 1.15rem;
  }

  .nav ul a {
    font-size: 0.98rem;
    font-weight: 500;
  }

  .nav ul a:hover,
  .nav a[aria-current="true"] {
    color: var(--blue);
  }

  .mobile-bar {
    display: none;
  }

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

  .social-float {
    right: max(1rem, calc((100vw - 1120px) / 2 - 3.4rem));
    bottom: 1.35rem;
  }

  .mv-grid {
    display: contents;
  }

  .mv-card {
    display: flow-root;
  }

  .about-photo {
    float: right;
    width: min(42%, 28rem);
    margin: 0.15rem 0 1.25rem 2.75rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.05fr);
    gap: 3.5rem;
    align-items: start;
  }

  .brand-logo {
    width: 150px;
  }

  .footer-logo-frame {
    width: 125px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) auto auto;
    justify-content: space-between;
    align-items: start;
  }

  .section,
  .clients {
    padding: 7rem 0;
  }
}

@media (min-width: 860px) and (max-width: 1240px) {
  .contact-form {
    margin-right: 3.4rem;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: max(56rem, calc(100dvh - var(--header-h) - var(--bar-h) - env(safe-area-inset-bottom)));
  }

  .hero-visual img {
    object-position: 64% 30%;
  }
}

@media (min-width: 768px) {
  .hero-visual img {
    object-position: 62% 40%;
  }

  .hero h1 {
    max-width: 10em;
    font-size: clamp(2.15rem, 4.2vw, 2.8rem);
  }

  .hero .lead {
    max-width: 26rem;
  }
}

@media (min-width: 960px) {
  .hero {
    align-items: flex-end;
    min-height: calc(100dvh - var(--header-h));
  }

  .hero-visual img {
    object-position: center 42%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 18, 32, 0) 48%, rgba(7, 18, 32, 0.42) 72%, rgba(7, 18, 32, 0.78) 100%),
      linear-gradient(90deg, rgba(7, 18, 32, 0.92) 0%, rgba(7, 18, 32, 0.72) 20%, rgba(7, 18, 32, 0.28) 40%, rgba(7, 18, 32, 0.06) 56%, rgba(7, 18, 32, 0) 70%);
  }

  .hero-copy {
    padding: 3.2rem 0 2.2rem;
  }

  .hero h1 {
    max-width: 9.4em;
    font-size: clamp(2.35rem, 2.9vw, 3.35rem);
  }

  .hero .lead {
    max-width: 28rem;
    font-size: 1.12rem;
  }

  .hero-points {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 1.8rem;
    padding-top: 1.15rem;
  }

  .hero-points li,
  .hero-points li:nth-child(odd),
  .hero-points li:nth-child(even) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 1.15rem;
  }

  .hero-points li:first-child {
    padding-left: 0;
  }

  .hero-points li:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 859px) {
  .about-copy {
    display: flex;
    flex-direction: column;
  }

  .about-copy::after {
    content: none;
  }

  .about-photo {
    order: 2;
    margin-top: 1.35rem;
  }

  .mv-grid {
    order: 3;
  }

  .about-closing {
    order: 4;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-h) + env(safe-area-inset-top));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.32s var(--ease);
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
  }

  body.is-nav-open .site-header {
    transform: none;
  }

  .header-inner {
    width: 100%;
    gap: 0.45rem;
    padding-left: max(0.7rem, env(safe-area-inset-left));
    padding-right: max(0.7rem, env(safe-area-inset-right));
  }

  .header-tools {
    flex-shrink: 0;
    gap: 0.3rem;
  }

  .header-cta {
    min-height: 2.25rem;
    padding-inline: 0.65rem;
    font-size: 0.84rem;
  }

  .brand-logo {
    width: clamp(80px, 24vw, 100px);
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    right: 0;
    bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
    left: 0;
    z-index: 34;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top) - var(--bar-h) - env(safe-area-inset-bottom));
    padding: 0.85rem max(1.1rem, env(safe-area-inset-right)) 1rem max(1.1rem, env(safe-area-inset-left));
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    transform: none;
  }

  .nav ul {
    min-height: 0;
  }

  .nav ul a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
  }

  .nav-cta {
    width: 100%;
    flex-shrink: 0;
  }
}

@media (max-width: 859px) and (max-height: 560px) {
  .nav ul a {
    padding: 0.62rem 0;
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal,
  .service-card:hover,
  .service-card:hover img,
  .project-card:hover,
  .btn:hover {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 859px) {
  .nav {
    transform: translateX(100%) !important;
  }

  .nav.is-open,
  body.is-nav-open .site-header {
    transform: none !important;
  }

  .site-header.is-hidden {
    transform: translateY(-100%) !important;
  }
}
