/* ==========================================================================
   Pusa Dekorasyon — main stylesheet
   1. Tokens          5. Header & navigation     9. Inner pages
   2. Base            6. Buttons & links        10. Dialog
   3. Layout          7. Home sections          11. Motion
   4. Typography      8. Contact form           12. Utilities
   ========================================================================== */

/* Self-hosted Inter + Manrope (variable, latin + latin-ext) — no third-party request. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #071B2B;
  --navy-800: #0B2538;
  --navy-700: #12324A;
  --gold: #D6A735;
  --gold-soft: #E4BD61;
  --gold-deep: #A97D1A;          /* gold for meaningful marks on light backgrounds (3.7:1) */
  --cream: #F7F5F0;
  --cream-deep: #EDE9E0;
  --white: #FFFFFF;
  --ink: #101820;
  --muted: #64707A;
  --danger: #B42318;
  --success: #1B5E3A;

  --line: rgba(16, 24, 32, 0.10);
  --line-strong: rgba(16, 24, 32, 0.18);
  --line-dark: rgba(255, 255, 255, 0.12);
  --on-dark-muted: rgba(255, 255, 255, 0.72);

  --font-head: "Manrope", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius: 6px;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 9vw, 8rem);
  --header-h: 84px;
  --header-h-compact: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;

  --focus: var(--navy-900);
}

@media (max-width: 1023px) {
  :root {
    --header-h: 68px;
    --header-h-compact: 64px;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-compact) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html {
  scrollbar-gutter: stable;
}

.is-locked,
.is-locked body {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-wrap: balance;
}

p {
  margin: 0;
}

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

figure {
  margin: 0;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--navy-900);
}

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

.hero, .why, .cta, .site-footer, .mobile-menu, .site-header, .page-hero, .aside-card, .project-card {
  --focus: var(--gold-soft);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--navy-900);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

main:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.1;
  margin-top: 0.85rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 46ch;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 3rem;
  }

  .section-head .section-lead {
    justify-self: end;
    padding-bottom: 0.35rem;
  }
}

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.eyebrow::before {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--gold);
  transform-origin: left center;
  transition: transform 0.9s var(--ease) 0.2s;
}

.eyebrow--on-dark {
  color: var(--gold-soft);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: "";
  flex: 0 0 28px;
  height: 1px;
  background: var(--gold);
}

.text-gold {
  color: var(--gold-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}

.text-link__arrow {
  transition: transform var(--dur) var(--ease);
}

a:hover .text-link__arrow,
.text-link:hover .text-link__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition:
    height var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 27, 43, 0.6), rgba(7, 27, 43, 0));
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(7, 27, 43, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.logo__mark {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-head);
}

.logo__name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo__sub {
  margin-top: 0.3rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--white);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.header-phone span {
  display: none;
}

.header-phone:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.25rem 0 0.75rem;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle__icon {
  display: grid;
  gap: 5px;
  width: 22px;
}

.nav-toggle__icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__icon span:nth-child(2) {
  width: 70%;
  justify-self: end;
}

@media (min-width: 640px) {
  .header-phone {
    padding: 0 1rem;
  }

  .header-phone span {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--navy-900);
  color: var(--white);
  opacity: 0;
  transform: translateY(-1.5%);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.mobile-menu.is-open .mobile-menu__panel {
  opacity: 1;
  transform: none;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 var(--header-h);
}

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
}

.mobile-menu__list {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--line-dark);
}

.mobile-menu__list li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(60ms + var(--i, 0) * 45ms);
}

.mobile-menu__list li:nth-child(2) { --i: 1; }
.mobile-menu__list li:nth-child(3) { --i: 2; }
.mobile-menu__list li:nth-child(4) { --i: 3; }
.mobile-menu__list li:nth-child(5) { --i: 4; }
.mobile-menu__list li:nth-child(6) { --i: 5; }

.mobile-menu.is-open .mobile-menu__list li {
  opacity: 1;
  transform: none;
}

.mobile-menu__link.is-active {
  color: var(--gold-soft);
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
}

.mobile-menu__num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.mobile-menu__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.mobile-menu__meta {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

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

.btn--lg {
  min-height: 54px;
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.btn--gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn--navy {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.btn--outline-navy {
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn--outline-navy:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn__arrow {
  transition: transform var(--dur) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn[disabled],
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Home sections
   -------------------------------------------------------------------------- */

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(100svh, 860px);
  padding: calc(var(--header-h) + 3rem) 0 5.5rem;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 60%;   /* keep the calm wall behind the headline when the sides get cropped */
  animation: hero-settle 2.6s var(--ease) both;
}

@keyframes hero-settle {
  from { transform: scale(1.06); }
  to { transform: none; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 27, 43, 0.88) 0%, rgba(7, 27, 43, 0.18) 45%, rgba(7, 27, 43, 0) 70%),
    linear-gradient(100deg, rgba(7, 27, 43, 0.92) 0%, rgba(7, 27, 43, 0.68) 40%, rgba(7, 27, 43, 0.2) 75%, rgba(7, 27, 43, 0.1) 100%);
}

.hero__content {
  position: relative;
  max-width: calc(880px + 2 * var(--gutter));
  margin-inline: 0;
}

.hero__title {
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(2.4rem, 1.25rem + 4.9vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--white);
  text-wrap: normal;
}

.hero__lead {
  max-width: 52ch;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero__checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__checks svg {
  color: var(--gold);
}

.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  display: none;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top;
  animation: scroll-cue 2.4s var(--ease) infinite;
}

@keyframes scroll-cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (min-width: 640px) {
  .hero__actions .btn {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  /* Narrow screens: vertical overlay — calm dark top for the headline, the
     room visible through the middle, dark again behind the checklist. */
  .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(7, 27, 43, 0.9) 0%, rgba(7, 27, 43, 0.8) 38%, rgba(7, 27, 43, 0.55) 62%, rgba(7, 27, 43, 0.9) 100%);
  }

  .hero .btn--outline-light {
    background: rgba(7, 27, 43, 0.35);
  }
}

@media (max-width: 639px) {
  .hero {
    min-height: min(100svh, 760px);
    padding-bottom: 4rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__checks {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
    padding-bottom: 6.5rem;
  }

  .hero__foot {
    display: flex;
  }
}

/* Metrics ---------------------------------------------------------------- */
.metrics {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.metrics__item {
  position: relative;
  padding: 1.75rem 1rem;
}

.metrics__item:nth-child(even)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--line);
}

.metrics__item:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.metrics__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}

.metrics__suffix {
  color: var(--gold-deep);
}

.metrics__unit {
  margin-left: 0.25em;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.metrics__label {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .metrics__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metrics__item {
    padding: 2.75rem 2rem;
  }

  .metrics__item:nth-child(n + 3) {
    border-top: 0;
  }

  .metrics__item + .metrics__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--line);
  }

  .metrics__item:first-child {
    padding-left: 0;
  }
}

/* Services --------------------------------------------------------------- */
.services {
  background: var(--cream);
}

.services__grid {
  display: grid;
  gap: 2.25rem 2rem;
  grid-template-columns: 1fr;
}

.service-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}

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

.service-card__media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.55s var(--ease);
}

.service-card__link:hover .service-card__media img,
.service-card__link:focus-visible .service-card__media img {
  transform: scale(1.045);
}

.service-card__link:hover .service-card__media::after,
.service-card__link:focus-visible .service-card__media::after {
  width: 100%;
}

.service-card__body {
  display: grid;
  gap: 0.55rem;
  padding-top: 1.35rem;
}

.service-card__num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.service-card__num::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}

.service-card__link:hover .service-card__num,
.service-card__link:focus-visible .service-card__num {
  color: var(--navy-900);
}

.service-card__link:hover .service-card__num::after,
.service-card__link:focus-visible .service-card__num::after {
  width: 44px;
}

.service-card__title {
  font-size: 1.3rem;
  line-height: 1.25;
}

.service-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.service-card .text-link {
  margin-top: 0.35rem;
}

/* Phones: shorter crops so all six services can be scanned quickly. */
@media (max-width: 639px) {
  .service-card__media {
    aspect-ratio: 16 / 10;
  }
}

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

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem 2.5rem;
  }
}

/* About ------------------------------------------------------------------ */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  gap: 3.5rem;
}

.about__media {
  position: relative;
  padding: 1.25rem 12% 16% 1.25rem;
}

.about__img {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}

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

.about__img--main {
  aspect-ratio: 4 / 5;
}

.about__img--detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--white);
  box-shadow: 0 30px 60px -30px rgba(7, 27, 43, 0.45);
}

.about__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 38%;
  border: 1px solid var(--gold);
  border-right: 0;
  border-bottom: 0;
  pointer-events: none;
}

.about__text {
  max-width: 56ch;
  margin: 1.5rem 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

.about__text--long {
  display: grid;
  gap: 1rem;
}

.about__points {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 2.5rem;
}

.about__point {
  display: flex;
  gap: 1rem;
}

.about__point-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--navy-900);
}

.about__point-title {
  font-size: 1.05rem;
  line-height: 1.3;
}

.about__point-text {
  margin-top: 0.25rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .about__media {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    align-items: center;
  }
}

/* Why us (dark) ---------------------------------------------------------- */
.why {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

/* The logo mark (two offset squares + gold core), drawn as a faint watermark. */
.why::after {
  content: "";
  position: absolute;
  left: -9%;
  bottom: -26%;
  z-index: -1;
  width: clamp(340px, 50vw, 760px);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Crect x='1' y='1' width='24' height='24' fill='none' stroke='white' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Crect x='9' y='9' width='24' height='24' fill='none' stroke='rgb(214,167,53)' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Crect x='13' y='13' width='8' height='8' fill='none' stroke='rgb(214,167,53)' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}

.why .section-title {
  color: var(--white);
}

.why__grid {
  display: grid;
  gap: 3rem;
}

.why__text {
  max-width: 44ch;
  margin: 1.25rem 0 2rem;
  line-height: 1.7;
  color: var(--on-dark-muted);
}

.why__list {
  border-top: 1px solid var(--line-dark);
}

.why__item {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.why__item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s var(--ease);
}

.why__item:hover::after {
  width: 100%;
}

.why__num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.why__title {
  font-size: 1.25rem;
  color: var(--white);
}

.why__desc {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

@media (min-width: 768px) {
  .why__item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    padding: 2rem 0;
  }

  .why__num {
    font-size: 1.9rem;
  }

  .why__title {
    font-size: 1.45rem;
  }
}

@media (min-width: 1024px) {
  .why__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }

  .why__intro {
    position: sticky;
    top: calc(var(--header-h-compact) + 2.5rem);
  }
}

/* Projects --------------------------------------------------------------- */
.projects {
  background: var(--white);
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.project-card__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
  color: var(--white);
  text-align: left;
  overflow: hidden;
  cursor: pointer;
}

.project-card__media {
  aspect-ratio: 4 / 3;
  height: 100%;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 27, 43, 0.86) 0%, rgba(7, 27, 43, 0.5) 24%, rgba(7, 27, 43, 0.08) 52%, rgba(7, 27, 43, 0) 70%);
  transition: opacity var(--dur) var(--ease);
}

.project-card__body {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.3rem;
}

.project-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.project-card__title {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.project-card__loc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.project-card__cta {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(7, 27, 43, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.project-card__btn:hover .project-card__media img,
.project-card__btn:focus-visible .project-card__media img {
  transform: scale(1.05);
}

.project-card__body {
  transition: transform var(--dur) var(--ease);
}

.project-card__btn:hover .project-card__body,
.project-card__btn:focus-visible .project-card__body {
  transform: translateY(-4px);
}

.project-card__btn:hover .project-card__cta,
.project-card__btn:focus-visible .project-card__cta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .project-card__cta {
    opacity: 1;
    transform: none;
  }
}

.projects__more {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

/* Single column: vary the crops so the stack doesn't feel repetitive. */
@media (max-width: 639px) {
  .project-grid--editorial .project-card--large .project-card__media {
    aspect-ratio: 4 / 5;
  }

  .project-grid--editorial .project-card--wide .project-card__media {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 640px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .project-grid--editorial .project-card--large {
    grid-column: span 2;
  }

  .project-grid--editorial .project-card--large .project-card__media {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-grid--editorial {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(0, auto);
  }

  .project-grid--editorial .project-card--large {
    grid-column: span 7;
    grid-row: span 2;
  }

  /* The large card fills both rows; its image is taken out of flow so the
     row heights are driven by the two "wide" cards beside it. */
  .project-grid--editorial .project-card--large .project-card__btn {
    min-height: 100%;
  }

  .project-grid--editorial .project-card--large .project-card__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: 100%;
  }

  .project-grid--editorial .project-card--wide {
    grid-column: span 5;
  }

  .project-grid--editorial .project-card--wide .project-card__media {
    aspect-ratio: 3 / 2;
  }

  .project-grid--editorial .project-card--standard {
    grid-column: span 4;
  }

  .project-card__body {
    left: 1.75rem;
    right: 1.75rem;
    bottom: 1.75rem;
  }
}

/* Process ---------------------------------------------------------------- */
.process {
  background: var(--cream);
}

.process__steps {
  position: relative;
  display: grid;
  gap: 2.25rem;
}

.process__steps::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--line-strong) 35%);
  transform-origin: top center;
  transition: transform 1.4s var(--ease) 0.15s;
}

.process__step {
  position: relative;
  padding-left: 2.5rem;
}

.process__marker {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--cream);
}

.process__marker::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.process__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-head);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(7, 27, 43, 0.4);
}

.process__title {
  font-size: 1.3rem;
}

.process__text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.process__cta {
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 900px) {
  .process__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .process__steps::before {
    top: 7px;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(to right, var(--gold), var(--line-strong) 30%);
    transform-origin: left center;
  }

  .process__step {
    padding-left: 0;
    padding-top: 2.5rem;
  }

  .process__marker {
    top: 0;
  }

  .process__num {
    font-size: 3.25rem;
  }
}

/* Testimonials ----------------------------------------------------------- */
.testimonials {
  background: var(--white);
}

.testimonials__grid {
  display: grid;
  gap: 2.25rem;
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.testimonial::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.testimonial__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--gold);
}

.testimonial__mark {
  color: var(--gold);
  opacity: 0.3;
}

.testimonial__quote {
  margin: 0;
}

.testimonial__quote p {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.testimonial__meta {
  display: grid;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.testimonial__name {
  font-size: 0.95rem;
  font-weight: 600;
}

.testimonial__loc {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

/* Final CTA -------------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 11vw, 9.5rem);
  color: var(--white);
  background: var(--navy-900);
  text-align: center;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 27, 43, 0.8) 0%, rgba(7, 27, 43, 0.68) 100%);
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  width: clamp(48px, 7vw, 96px);
  height: clamp(48px, 7vw, 96px);
  border: 0 solid rgba(214, 167, 53, 0.45);
  pointer-events: none;
}

.cta::before {
  top: clamp(1rem, 3vw, 2.5rem);
  left: clamp(1rem, 3vw, 2.5rem);
  border-top-width: 1px;
  border-left-width: 1px;
}

.cta::after {
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.cta__content {
  max-width: calc(780px + 2 * var(--gutter));
}

.cta__title {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2rem, 1.4rem + 2.9vw, 3.6rem);
  line-height: 1.08;
  color: var(--white);
}

.cta__text {
  max-width: 56ch;
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

@media (max-width: 639px) {
  .cta__actions .btn {
    flex: 1 1 100%;
  }
}

/* Contact ---------------------------------------------------------------- */
.contact {
  background: var(--cream);
}

.contact__grid {
  display: grid;
  gap: 3rem;
}

.contact__text {
  margin: 1.25rem 0 2rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact__list {
  display: grid;
  gap: 1.4rem;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--navy-900);
}

.contact__label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__value {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}

a.contact__value:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.contact__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(7, 27, 43, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.contact__wa:hover {
  border-style: solid;
  border-color: var(--gold);
  background: var(--white);
}

.contact__form-wrap {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 60px -45px rgba(7, 27, 43, 0.35);
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   8. Contact form
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
}

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field__input::placeholder {
  color: rgba(100, 112, 122, 0.7);
}

.field__input:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(214, 167, 53, 0.3);
}

textarea.field__input {
  min-height: 140px;
  resize: vertical;
}

.field__select {
  position: relative;
}

.field__select select {
  padding-right: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
}

.field__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--navy-900);
  border-bottom: 1.5px solid var(--navy-900);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--danger);
}

.has-error .field__input {
  border-color: var(--danger);
}

.has-error .field__error {
  display: block;
}

.form-status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.form-status--success {
  background: #EAF5EE;
  border-color: #BFE0CB;
  color: var(--success);
}

.form-status--error {
  background: #FCEDEB;
  border-color: #F3C2BB;
  color: #8A1C12;
}

.contact-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.contact-form__note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

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

@media (max-width: 639px) {
  .contact-form__foot .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   9. Inner pages
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 27, 43, 0.95) 25%, rgba(7, 27, 43, 0.72) 100%);
}

.page-hero--tall {
  display: grid;
  align-items: center;
  min-height: 72vh;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

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

.breadcrumb a:hover,
.breadcrumb [aria-current] {
  color: var(--gold-soft);
}

.page-hero__title {
  max-width: 18ch;
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4rem);
  line-height: 1.08;
  color: var(--white);
}

.page-hero__lead {
  max-width: 56ch;
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 639px) {
  .page-hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Service detail */
.service-detail {
  background: var(--white);
}

.service-detail__grid {
  display: grid;
  gap: 3rem;
}

.service-detail__intro {
  margin: 1.25rem 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted);
}

.service-detail__list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.service-detail__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-weight: 500;
}

.service-detail__list svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
  padding: 3px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--navy-900);
}

.service-detail__figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}

.service-detail__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail__aside {
  display: grid;
  gap: 1.5rem;
}

.aside-card {
  display: grid;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--white);
}

.aside-card__title {
  font-size: 1.3rem;
  color: var(--white);
}

.aside-card__text {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.aside-nav {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.aside-nav__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.aside-nav li:last-child a {
  border-bottom: 0;
}

.aside-nav a:hover {
  color: var(--navy-900);
}

@media (min-width: 1024px) {
  .service-detail__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }

  .service-detail__aside {
    position: sticky;
    top: calc(var(--header-h-compact) + 2rem);
  }
}

.projects--related,
.projects--all {
  background: var(--cream);
}

/* --------------------------------------------------------------------------
   10. Project dialog
   -------------------------------------------------------------------------- */
.project-dialog {
  width: min(1040px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.project-dialog::backdrop {
  background: rgba(7, 27, 43, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.project-dialog[open] {
  animation: dialog-in 0.4s var(--ease);
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.project-dialog__inner {
  position: relative;
  display: grid;
  max-height: calc(100dvh - 2rem);
  border-radius: var(--radius);
  background: var(--white);
  overflow: auto;
}

.project-dialog__media {
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
}

.project-dialog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-dialog__body {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.project-dialog__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
}

.project-dialog__loc {
  font-size: 0.9rem;
  color: var(--muted);
}

.project-dialog__summary {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
}

.project-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 27, 43, 0.72);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.project-dialog__close:hover {
  background: var(--navy-900);
}

@media (min-width: 768px) {
  .project-dialog__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .project-dialog__media {
    aspect-ratio: auto;
    min-height: 440px;
  }
}

/* --------------------------------------------------------------------------
   Footer & floating WhatsApp
   -------------------------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: 4.5rem;
  border-top: 1px solid var(--line-dark);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__desc {
  max-width: 36ch;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.925rem;
  line-height: 1.65;
}

.social {
  display: flex;
  gap: 0.5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  color: var(--white);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.social a:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.site-footer__title {
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer__col ul {
  display: grid;
  gap: 0.65rem;
}

.site-footer__col a {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.site-footer__col a:hover {
  color: var(--gold-soft);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
}

.site-footer__contact svg {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  color: var(--gold);
}

.site-footer__wordmark {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  overflow: hidden;
  font-family: var(--font-head);
  font-size: clamp(5.5rem, 27vw, 22rem);
  font-weight: 800;
  line-height: 0.74;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  user-select: none;
}

.site-footer__wordmark + .site-footer__bottom {
  margin-top: 0;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  /* Keep the bottom row clear of the floating WhatsApp button. */
  .site-footer__bottom {
    padding-right: 10rem;
  }
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  text-decoration: none;
}

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

@media (min-width: 1024px) {
  .site-footer {
    padding-bottom: 1.5rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 3rem;
  }
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(7, 27, 43, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility 0s linear var(--dur),
    border-color var(--dur) var(--ease);
}

.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility 0s,
    border-color var(--dur) var(--ease);
}

.whatsapp-float svg {
  color: #4FD37A;
}

.whatsapp-float__label {
  display: none;
}

.whatsapp-float.is-visible:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

@media (min-width: 768px) {
  .whatsapp-float {
    right: 1.5rem;
    bottom: 1.5rem;
    width: auto;
    padding: 0 1.1rem 0 0.9rem;
  }

  .whatsapp-float__label {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   11. Motion
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

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

[data-reveal-delay="1"] { --reveal-delay: 1; }
[data-reveal-delay="2"] { --reveal-delay: 2; }
[data-reveal-delay="3"] { --reveal-delay: 3; }
[data-reveal-delay="4"] { --reveal-delay: 4; }
[data-reveal-delay="5"] { --reveal-delay: 5; }

.no-reveal [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* The hero animates in with pure CSS, so the first screen never waits for JS. */
.hero [data-reveal] {
  opacity: 1;
  transform: none;
  animation: rise-in 0.8s var(--ease) both;
  animation-delay: calc(0.1s + var(--reveal-delay, 0) * 90ms);
}

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

/* Lines that draw themselves in (only while the JS observer is active). */
.js-reveal [data-reveal]:not(.is-visible) .eyebrow::before,
.js-reveal .eyebrow[data-reveal]:not(.is-visible)::before {
  transform: scaleX(0);
}

/* The process list itself doesn't fade — only its connecting line draws. */
.process__steps[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-reveal .process__steps:not(.is-visible)::before {
  transform: scaleY(0);
}

@media (min-width: 900px) {
  .js-reveal .process__steps:not(.is-visible)::before {
    transform: scaleX(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   12. Utilities
   -------------------------------------------------------------------------- */
.is-hidden {
  display: none !important;
}

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