:root {
  --navy: #0d1c2b;
  --navy-2: #16324f;
  --navy-3: #1e4568;
  --gold: #c4a35a;
  --gold-2: #e0c278;
  --gold-dim: rgba(196, 163, 90, 0.16);
  --cream: #f3eee6;
  --paper: #faf7f1;
  --sand: #e8dfd0;
  --ink: #121417;
  --muted: #6f685d;
  --white: #ffffff;
  --line: rgba(13, 28, 43, 0.1);
  --line-gold: rgba(196, 163, 90, 0.35);
  --shadow: 0 24px 60px rgba(13, 28, 43, 0.12);
  --header: 88px;
  --container: min(1200px, calc(100% - 64px));
  --wide: min(1440px, calc(100% - 64px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
  height: 100dvh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.wide {
  width: var(--wide);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow: visible;
}

[id] {
  scroll-margin-top: 110px;
}

.muted {
  color: var(--muted);
}

.gold {
  color: var(--gold);
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header);
  overflow: visible;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.35s var(--ease);
}

.header.is-scrolled,
.header.solid {
  background: rgba(250, 247, 241, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

/* Keep blur on a pseudo-element so it does not trap position:fixed menu children */
.header.is-scrolled::before,
.header.solid::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  pointer-events: none;
  z-index: -1;
}

.header-inner {
  position: relative;
  z-index: 2;
  width: var(--wide);
  margin-inline: auto;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.header.is-light .logo-mark,
.header:not(.is-scrolled):not(.solid) .logo-mark {
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.logo-text span {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}

.header:not(.is-scrolled):not(.solid) .nav a,
.header:not(.is-scrolled):not(.solid) .logo-text strong,
.header:not(.is-scrolled):not(.solid) .header-phone {
  color: var(--white);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--navy);
  display: none;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-gold);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: 0.3s var(--ease);
}

.menu-btn span {
  top: 21px;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.header:not(.is-scrolled):not(.solid) .menu-btn {
  color: var(--white);
}

body.nav-open .menu-btn span {
  background: transparent;
}

body.nav-open .menu-btn span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .menu-btn span::after {
  top: 0;
  transform: rotate(-45deg);
}

body.nav-open .menu-btn {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

body.nav-open .whatsapp {
  visibility: hidden;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.35s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-2);
}

.btn-line {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-line:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #08101a;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: kenburns 22s var(--ease) infinite alternate;
}

@keyframes kenburns {
  to {
    transform: scale(1.16);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 26, 0.78) 0%, rgba(8, 16, 26, 0.35) 52%, rgba(8, 16, 26, 0.45) 100%),
    linear-gradient(180deg, rgba(8, 16, 26, 0.35) 0%, transparent 28%, rgba(8, 16, 26, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--wide);
  margin: 0 auto 0;
  padding: 140px 0 48px;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(48px, 7vw, 96px);
  margin: 18px 0 22px;
}

.hero p.lead {
  max-width: 52ch;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 16, 26, 0.45);
  backdrop-filter: blur(12px);
}

.hero-bar article {
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-bar article:last-child {
  border-right: 0;
}

.hero-bar strong {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--gold-2);
}

.hero-bar span {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Page hero */
.page-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.page-hero .hero-media::after {
  background:
    linear-gradient(180deg, rgba(8, 16, 26, 0.28) 0%, rgba(8, 16, 26, 0.72) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: var(--wide);
  margin-inline: auto;
  padding: 160px 0 56px;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  max-width: 14ch;
  margin-top: 10px;
}

/* Sections */
.section {
  padding: 108px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  max-width: 14ch;
}

.section-head p {
  max-width: 42ch;
  color: var(--muted);
}

.section-cream {
  background: var(--cream);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy .muted,
.section-navy .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

/* Intro */
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.intro-copy h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  margin: 14px 0 22px;
}

.intro-copy p + p {
  margin-top: 16px;
}

.intro-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.intro-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
}

.intro-visual {
  position: relative;
}

.intro-visual img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.intro-badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  background: var(--navy);
  color: var(--white);
  padding: 28px 26px;
  max-width: 220px;
}

.intro-badge span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intro-badge p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

/* Services */
.service-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1.2fr 1.4fr 160px;
  gap: 24px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
  width: 100%;
  color: inherit;
  transition: 0.35s var(--ease);
}

.service-row:hover,
.service-row.is-open {
  padding-left: 12px;
}

.service-no {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
}

.service-row h3 {
  font-size: 32px;
}

.service-row p {
  color: var(--muted);
}

.service-link {
  justify-self: end;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card .body {
  padding: 26px 24px 28px;
}

.service-card h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
}

/* Process */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 24px 30px;
  min-height: 230px;
}

.process-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}

.process-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.process-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

/* Projects */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 320px 320px;
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  color: var(--white);
}

.project-card:nth-child(1) {
  grid-row: 1 / 3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 24px;
  background: linear-gradient(transparent, rgba(8, 16, 26, 0.86));
}

.project-card small {
  display: block;
  color: var(--gold-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px;
}

.project-card h3 {
  font-size: 28px;
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.projects-masonry .project-card {
  height: 420px;
}

.projects-masonry .project-card.is-hidden {
  display: none;
}

/* Testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quote {
  background: var(--white);
  padding: 36px 32px;
  border: 1px solid var(--line);
}

.quote p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 28px;
}

.quote cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.team-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
}

.team-card .body {
  padding: 24px;
}

.team-card h3 {
  font-size: 32px;
}

.team-card span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Advantages */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.adv-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.adv-card span {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 18px;
}

.adv-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.adv-card p {
  color: var(--muted);
}

/* Service detail blocks */
.detail-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block:nth-child(even) {
  direction: rtl;
}

.detail-block:nth-child(even) > * {
  direction: ltr;
}

.detail-block img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.detail-block h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 10px 0 16px;
}

.bullet-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.bullet-list li {
  list-style: none;
  padding-left: 18px;
  position: relative;
  color: var(--muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.contact-item {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.form,
.wpcf7-form {
  display: grid;
  gap: 16px;
}

.form label,
.wpcf7-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form textarea,
.form select,
.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}

.form input:focus,
.form textarea:focus,
.form select:focus,
.wpcf7-form input:not([type="submit"]):focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--gold);
}

.form textarea,
.wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-form .wpcf7-submit {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  width: auto;
  justify-self: start;
}

.wpcf7-form .wpcf7-submit:hover {
  background: var(--navy-2);
}

.wpcf7-not-valid-tip {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: #9b2c2c;
}

.wpcf7-response-output {
  margin: 0 0 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 14px;
}

.form-success {
  display: none;
  padding: 18px;
  background: var(--gold-dim);
  color: var(--navy);
  font-size: 15px;
}

.form-success.is-visible {
  display: block;
}

.map-wrap {
  margin-top: 28px;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

/* CTA */
.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 56px;
  background: var(--navy);
  color: var(--white);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 18ch;
}

/* Footer */
.footer {
  background: #09131e;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 24px;
  font-size: 14px;
  line-height: 1.55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h4 {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
  line-height: 1.3 !important;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--gold-2);
}

.footer p,
.footer li,
.footer li a {
  font-size: 14px;
}

.footer p {
  max-width: 38ch;
  margin-top: 12px;
}

.footer ul {
  display: grid;
  gap: 8px;
}

.footer li {
  list-style: none;
}

.footer .logo-text strong {
  font-size: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.35s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==================== TABLET (≤1024px) ==================== */
@media (max-width: 1024px) {
  .intro-grid,
  .detail-block,
  .detail-block:nth-child(even),
  .contact-grid,
  .footer-grid,
  .quote-grid,
  .team-grid,
  .service-cards,
  .adv-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .process-track,
  .hero-bar,
  .project-grid,
  .projects-masonry {
    grid-template-columns: 1fr 1fr;
  }

  .project-card:nth-child(1) {
    grid-row: auto;
    height: 380px;
  }

  .intro-visual img,
  .detail-block img {
    height: 380px;
  }

  .intro-badge {
    left: 16px;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    color: var(--navy);
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header));
    max-height: calc(100dvh - var(--header));
    background: var(--navy);
    padding: 36px 28px calc(36px + env(safe-area-inset-bottom, 0px));
    gap: 22px;
    align-items: flex-start;
    z-index: 1002;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .nav.is-open a {
    flex-shrink: 0;
  }

  body.nav-open .header,
  .header:has(.nav.is-open) {
    height: 100dvh;
    background: var(--navy);
    box-shadow: none;
  }

  body.nav-open .header::before,
  .header:has(.nav.is-open)::before {
    display: none;
  }

  body.nav-open .logo-text strong,
  body.nav-open .header-phone,
  .header:has(.nav.is-open) .logo-text strong,
  .header:has(.nav.is-open) .header-phone {
    color: var(--white);
  }

  body.nav-open .logo-mark,
  .header:has(.nav.is-open) .logo-mark {
    border-color: var(--gold-2);
    color: var(--gold-2);
  }

  .nav.is-open a,
  .header:not(.is-scrolled):not(.solid) .nav.is-open a {
    color: var(--white);
    font-size: 28px;
    font-family: var(--serif);
    text-transform: none;
    letter-spacing: 0;
  }

  .service-row {
    grid-template-columns: 50px 1fr;
  }

  .service-row p,
  .service-link {
    display: none;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-head h2 {
    max-width: none;
  }

  .detail-block {
    gap: 32px;
    padding: 48px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .quote p {
    font-size: 20px;
  }

  .team-card img {
    height: 320px;
  }

  .hero-content {
    padding: 120px 0 32px;
  }

  .page-hero-content {
    padding: 130px 0 40px;
  }
}

/* ==================== MOBILE (≤720px) ==================== */
@media (max-width: 720px) {
  :root {
    --container: min(100% - 40px, 1200px);
    --wide: min(100% - 40px, 1440px);
    --header: 68px;
  }

  .header-phone {
    display: none !important;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-bar,
  .process-track,
  .project-grid,
  .projects-masonry,
  .intro-meta,
  .adv-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-bar article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
  }

  .hero-bar strong {
    font-size: 26px;
  }

  .hero-bar span {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 56px);
    max-width: none;
  }

  .hero p.lead {
    font-size: 15px;
  }

  .hero-content {
    padding: 110px 0 24px;
  }

  .hero-actions {
    margin-top: 28px;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hero {
    min-height: 46vh;
  }

  .page-hero-content {
    padding: 100px 0 32px;
  }

  .page-hero h1 {
    font-size: clamp(32px, 8vw, 48px);
    max-width: none;
  }

  .entry-content .wp-block-cover h1,
  .home .entry-content .wp-block-cover h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem) !important;
    max-width: 16ch;
  }

  .entry-content > .wp-block-cover:first-child,
  .home .entry-content > .wp-block-cover:first-child {
    min-height: 58vh !important;
  }

  .wp-block-cover__inner-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  .entry-content .wp-block-cover.alignfull {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .entry-content > .alignwide,
  .entry-content .wp-block-columns.alignwide {
    width: var(--wide);
    max-width: 100%;
    box-sizing: border-box;
  }

  .entry-content .wp-block-buttons {
    flex-direction: column !important;
    align-items: stretch;
    gap: 10px;
  }

  .entry-content .wp-block-button,
  .entry-content .wp-block-button .wp-block-button__link {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content p {
    overflow-wrap: break-word;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head h2 {
    font-size: clamp(28px, 7vw, 42px);
  }

  .intro-grid {
    gap: 32px;
  }

  .intro-copy h2 {
    font-size: clamp(28px, 7vw, 42px);
  }

  .intro-visual img {
    height: 280px;
  }

  .intro-badge {
    position: relative;
    left: 0;
    bottom: 0;
    max-width: none;
  }

  .intro-meta strong {
    font-size: 24px;
  }

  .service-row {
    grid-template-columns: 40px 1fr;
    padding: 22px 0;
    gap: 14px;
  }

  .service-row h3 {
    font-size: 22px;
  }

  .service-no {
    font-size: 18px;
  }

  .process-card {
    min-height: auto;
    padding: 22px 20px;
  }

  .process-card h3 {
    font-size: 20px;
  }

  .project-grid {
    grid-template-rows: auto;
  }

  .project-card:nth-child(1) {
    height: 280px;
  }

  .projects-masonry .project-card {
    height: 300px;
  }

  .project-card h3 {
    font-size: 22px;
  }

  .project-card figcaption {
    padding: 20px 18px;
  }

  .project-filters {
    gap: 8px;
    margin-bottom: 24px;
  }

  .filter-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .quote {
    padding: 24px 20px;
  }

  .quote p {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card img {
    height: 260px;
  }

  .team-card h3 {
    font-size: 26px;
  }

  .adv-card {
    padding: 24px 20px;
  }

  .adv-card span {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .adv-card h3 {
    font-size: 20px;
  }

  .detail-block {
    gap: 24px;
    padding: 36px 0;
  }

  .detail-block img {
    height: 260px;
  }

  .detail-block h2 {
    font-size: clamp(26px, 6vw, 36px);
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-card,
  .form-card {
    padding: 24px 20px;
  }

  .map-wrap {
    height: 200px;
  }

  .cta-band {
    padding: 32px 20px;
    gap: 18px;
  }

  .cta-band h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    max-width: none;
  }

  .footer {
    padding: 44px 0 20px;
    font-size: 13px;
  }

  .footer-grid {
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer p,
  .footer li,
  .footer li a {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .logo-text {
    display: none;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .whatsapp {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp svg {
    width: 22px;
    height: 22px;
  }

  .eyebrow {
    font-size: 11px;
    gap: 10px;
  }

  .eyebrow::before {
    width: 20px;
  }

  .btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 11px;
  }

  .nav.is-open {
    padding: 28px 20px;
    gap: 18px;
  }

  .nav.is-open a,
  .header:not(.is-scrolled):not(.solid) .nav.is-open a {
    font-size: 24px;
  }

  .menu-btn {
    width: 40px;
    height: 40px;
  }

  .menu-btn span {
    top: 19px;
    left: 10px;
    width: 18px;
  }

  .menu-btn span::before {
    top: -5px;
  }

  .menu-btn span::after {
    top: 5px;
  }
}

/* ==================== SMALL MOBILE (≤480px) ==================== */
@media (max-width: 480px) {
  :root {
    --container: min(100% - 32px, 1200px);
    --wide: min(100% - 32px, 1440px);
    --header: 62px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 44px);
  }

  .hero p.lead {
    font-size: 14px;
  }

  .hero-content {
    padding: 96px 0 16px;
  }

  .hero-bar article {
    padding: 14px 16px;
  }

  .hero-bar strong {
    font-size: 22px;
  }

  .page-hero {
    min-height: 40vh;
  }

  .page-hero-content {
    padding: 84px 0 24px;
  }

  .page-hero h1 {
    font-size: clamp(26px, 7.5vw, 38px);
  }

  .entry-content .wp-block-cover h1,
  .home .entry-content .wp-block-cover h1 {
    font-size: clamp(1.5rem, 7.2vw, 1.95rem) !important;
  }

  .entry-content > .wp-block-cover:first-child,
  .home .entry-content > .wp-block-cover:first-child {
    min-height: 52vh !important;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .intro-copy h2 {
    font-size: clamp(24px, 6.5vw, 34px);
  }

  .intro-visual img {
    height: 220px;
  }

  .intro-badge p {
    font-size: 20px;
  }

  .service-row h3 {
    font-size: 20px;
  }

  .projects-masonry .project-card {
    height: 240px;
  }

  .project-card h3 {
    font-size: 19px;
  }

  .quote p {
    font-size: 16px;
  }

  .team-card img {
    height: 220px;
  }

  .detail-block img {
    height: 220px;
  }

  .cta-band {
    padding: 26px 16px;
  }

  .cta-band h2 {
    font-size: clamp(1.25rem, 5.2vw, 1.6rem);
  }

  .contact-card,
  .form-card {
    padding: 20px 16px;
  }

  .footer {
    padding: 32px 0 16px;
    font-size: 13px;
  }

  .footer p,
  .footer li,
  .footer li a {
    font-size: 13px;
  }

  .footer-bottom {
    font-size: 11px;
  }

  .form input,
  .form textarea,
  .form select,
  .wpcf7-form input:not([type="submit"]),
  .wpcf7-form textarea,
  .wpcf7-form select {
    font-size: 15px;
  }
}

/* ==================== DESKTOP (≥1100px) ==================== */
@media (min-width: 1100px) {
  .header-phone {
    display: inline;
  }
}

/* ==================== TOUCH & HOVER HANDLING ==================== */
@media (hover: none) {
  .service-card:hover {
    transform: none;
    box-shadow: none;
  }

  .service-card:hover img {
    transform: none;
  }

  .project-card:hover img {
    transform: none;
  }
}

/* ==================== GUTENBERG / BLOCK EDITOR ==================== */
.site-main {
  padding-top: 0;
}

.entry-content {
  padding-bottom: 80px;
  overflow-x: clip;
}

.entry-content > .wp-block-cover:first-child,
.entry-content > .wp-block-group:first-child {
  margin-top: 0;
}

.entry-content > :where(:not(.alignfull)) {
  width: var(--wide);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.entry-content > .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.entry-content .wp-block-columns {
  margin-bottom: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.entry-content .wp-block-column {
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}

.entry-content .wp-block-column > * {
  overflow: visible;
}

@media (max-width: 781px) {
  .entry-content .wp-block-columns {
    flex-wrap: wrap !important;
  }

  .entry-content .wp-block-columns > .wp-block-column {
    flex-basis: 100% !important;
    max-width: 100%;
  }
}

@media (min-width: 782px) {
  .entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] {
    flex-grow: 1;
  }
}

.wp-block-cover {
  min-height: 380px;
}

.entry-content > .wp-block-cover:first-child {
  min-height: 48vh !important;
}

.home .entry-content > .wp-block-cover:first-child {
  min-height: 78vh !important;
}

.wp-block-cover__inner-container {
  width: min(100%, 820px) !important;
  max-width: 820px !important;
  min-width: 0 !important;
  margin-inline: 0;
  box-sizing: border-box;
}

.wp-block-group__inner-container {
  width: 100%;
}

.entry-content .wp-block-cover h1 {
  font-size: clamp(1.7rem, 3.8vw, 2.85rem) !important;
  line-height: 1.12 !important;
  max-width: 18ch;
  min-width: 0;
  letter-spacing: -0.02em;
}

.home .entry-content .wp-block-cover h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem) !important;
  max-width: 14ch;
}

.entry-content .wp-block-cover p {
  font-size: 16px;
  max-width: min(52ch, 100%);
  line-height: 1.55;
}

.entry-content h2.wp-block-heading {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem) !important;
  line-height: 1.18;
}

.entry-content h3.wp-block-heading {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem) !important;
}

.entry-content .wp-element-caption,
.entry-content figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.wp-block-button__link {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0 !important;
  padding: 14px 24px;
}

.wp-block-quote {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 32px;
  quotes: none;
}

.wp-block-quote p {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
}

.wp-block-quote cite {
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.has-navy-background-color { background-color: var(--navy) !important; }
.has-gold-background-color { background-color: var(--gold) !important; }
.has-cream-background-color { background-color: var(--cream) !important; }
.has-paper-background-color { background-color: var(--paper) !important; }
.has-white-background-color { background-color: var(--white) !important; }
.has-gold-color { color: var(--gold) !important; }
.has-navy-color { color: var(--navy) !important; }
.has-muted-color { color: var(--muted) !important; }
.has-white-color { color: var(--white) !important; }

.has-heading-font-family { font-family: var(--serif) !important; }
.has-body-font-family { font-family: var(--sans) !important; }

.wp-block-image img {
  width: 100%;
  height: auto;
}

.entry-content .wp-block-image a {
  display: block;
}

.entry-content .wp-block-image:not(.alignfull),
.entry-content .wp-block-gallery .wp-block-image,
.entry-content .wp-block-media-text__media {
  width: 100%;
  overflow: hidden;
  margin-bottom: 14px;
}

.entry-content .wp-block-columns .wp-block-image img,
.entry-content .wp-block-gallery .wp-block-image img,
.entry-content .wp-block-media-text__media img,
.entry-content figure.wp-block-image:not(.alignfull) img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.entry-content .wp-block-media-text {
  align-items: center;
  gap: 28px;
}

@media (min-width: 782px) {
  .entry-content .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 1fr 1fr !important;
  }
}

.entry-content .wp-block-media-text__media {
  overflow: hidden;
  min-height: 0;
}

.entry-content .wp-block-cover .wp-block-cover__image-background {
  object-fit: cover;
}

.abm-stat-number {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--gold);
  line-height: 1;
  margin: 0 0 8px;
}

.form-card {
  margin-top: 0;
}

.page-services .entry-content .wp-block-media-text__media img,
.page-id-9 .entry-content .wp-block-media-text__media img,
.page-projects .entry-content .wp-block-columns .wp-block-image img,
.page-id-10 .entry-content .wp-block-columns .wp-block-image img {
  aspect-ratio: auto;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 782px) {
  .page-services .entry-content .wp-block-media-text.is-stacked-on-mobile,
  .page-id-9 .entry-content .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: minmax(220px, 34%) 1fr !important;
  }

  .page-services .entry-content .wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile,
  .page-id-9 .entry-content .wp-block-media-text.has-media-on-the-right.is-stacked-on-mobile {
    grid-template-columns: 1fr minmax(220px, 34%) !important;
  }
}

@media (max-width: 781px) {
  .page-services .entry-content .wp-block-media-text__media img,
  .page-id-9 .entry-content .wp-block-media-text__media img,
  .page-projects .entry-content .wp-block-columns .wp-block-image img,
  .page-id-10 .entry-content .wp-block-columns .wp-block-image img {
    height: 180px;
  }
}

@media (max-width: 720px) {
  .entry-content .wp-block-cover .wp-block-cover__inner-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-right: 8px;
    box-sizing: border-box;
  }

  .entry-content .wp-block-cover h1,
  .home .entry-content .wp-block-cover h1 {
    max-width: 100% !important;
  }

  .entry-content .wp-block-cover p {
    font-size: 15px !important;
    max-width: 100% !important;
  }

  .entry-content > :where(:not(.alignfull)) {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
}
