/* ==========================================================================
   Page-specific pre-global rules
   These retain the original Projects/Contact-before-global cascade.
   ========================================================================== */

/* Projects */
:where(body[data-page="projects"]) .hero-section {
  overflow: hidden;
}

:where(body[data-page="projects"]) .portfolio-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

:where(body[data-page="projects"]) .portfolio-note .section-heading {
  margin: 0;
  text-align: left;
}

:where(body[data-page="projects"]) .portfolio-lightbox-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  color: var(--white);
  text-align: left;
}

:where(body[data-page="projects"]) .portfolio-lightbox-trigger::before {
  background: color-mix(in srgb, var(--black) 8%, transparent);
  transition: background 220ms ease;
}

:where(body[data-page="projects"]) .portfolio-lightbox-trigger:hover::before,
:where(body[data-page="projects"]) .portfolio-lightbox-trigger:focus-visible::before {
  background: color-mix(in srgb, var(--black) 22%, transparent);
}

:where(body[data-page="projects"]) .portfolio-lightbox-trigger:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cta) 68%, var(--white) 32%);
  outline-offset: -3px;
}

:where(body[data-page="projects"]) .zoom-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--black) 66%, transparent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

:where(body[data-page="projects"]) .portfolio-lightbox-trigger:hover .zoom-label,
:where(body[data-page="projects"]) .portfolio-lightbox-trigger:focus-visible .zoom-label {
  opacity: 1;
  transform: translateY(0);
}

:where(body[data-page="projects"]) .lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--black) 82%, transparent);
  backdrop-filter: blur(12px);
}

:where(body[data-page="projects"]) .lightbox.is-open {
  display: flex;
}

:where(body[data-page="projects"]) .lightbox-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(84vh, 820px);
}

:where(body[data-page="projects"]) .lightbox-image {
  display: block;
  width: 100%;
  max-height: min(84vh, 820px);
  border-radius: 24px;
  object-fit: contain;
  background: var(--black);
  box-shadow: 0 28px 80px color-mix(in srgb, var(--black) 62%, transparent);
}

:where(body[data-page="projects"]) .lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  background: color-mix(in srgb, var(--black) 72%, transparent);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

:where(body[data-page="projects"]) .lightbox-caption {
  margin: 0.8rem 0 0;
  color: color-mix(in srgb, var(--white) 82%, transparent);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 820px) {
  :where(body[data-page="projects"]) .portfolio-note {
    grid-template-columns: 1fr;
  }

}

/* Contact */
:where(body[data-page="contact"]) .contact-quick-hero p {
  color: color-mix(in srgb, var(--white) 74%, transparent);
}

:where(body[data-page="contact"]) .contact-quick-hero .contact-hero-kicker {
  color: color-mix(in srgb, var(--black) 60%, var(--white) 40%);
  letter-spacing: 0;
}

:where(body[data-page="contact"]) .contact-quick-hero .contact-hero-intro {
  color: color-mix(in srgb, var(--black) 60%, var(--white) 40%);
}

:where(body[data-page="contact"]) .contact-quick-hero {
  padding-bottom: 2.5rem;
}

:where(body[data-page="contact"]) .contact-quick-hero + .section {
  padding-top: 2.5rem;
}

:where(body[data-page="contact"]) .contact-options-grid {
  display: grid;
  gap: 1rem;
  height: 100%;
}

:where(body[data-page="contact"]) .contact-option {
  display: grid;
  gap: 0.7rem;
  min-height: 0;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  color: var(--white);
  text-decoration: none;
}

:where(body[data-page="contact"]) .contact-option:hover {
  color: var(--white);
}

:where(body[data-page="contact"]) .contact-option .card-index {
  margin-bottom: 0;
  font-family: "Roadhouse";
}

:where(body[data-page="contact"]) .contact-option h2,
:where(body[data-page="contact"]) .contact-form-panel h2 {
  margin: 0;
  color: var(--white);
  font-family: "Roadhouse";
  line-height: 1.15;
  text-transform: uppercase;
}

:where(body[data-page="contact"]) .contact-option p,
:where(body[data-page="contact"]) .contact-option span,
:where(body[data-page="contact"]) .form-note,
:where(body[data-page="contact"]) .form-feedback {
  margin: 0;
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

:where(body[data-page="contact"]) .contact-option span {
  margin-top: auto;
  font-weight: 800;
  overflow-wrap: anywhere;
}

:where(body[data-page="contact"]) .contact-body-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

:where(body[data-page="contact"]) .contact-form-panel {
  padding: clamp(1.4rem, 2vw, 2rem);
}

:where(body[data-page="contact"]) .contact-form-panel h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

:where(body[data-page="contact"]) .contact-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

:where(body[data-page="contact"]) .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

:where(body[data-page="contact"]) .form-field {
  display: grid;
  gap: 0.45rem;
}

:where(body[data-page="contact"]) .form-field-wide {
  grid-column: 1 / -1;
}

:where(body[data-page="contact"]) .form-field label {
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
}

:where(body[data-page="contact"]) .form-field input,
:where(body[data-page="contact"]) .form-field textarea,
:where(body[data-page="contact"]) .form-field select {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--black) 44%, transparent);
  color: var(--white);
  font: inherit;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

:where(body[data-page="contact"]) .form-field textarea {
  min-height: 145px;
  resize: vertical;
}

:where(body[data-page="contact"]) .form-field input:focus,
:where(body[data-page="contact"]) .form-field textarea:focus,
:where(body[data-page="contact"]) .form-field select:focus {
  border-color: color-mix(in srgb, var(--cta) 62%, var(--white) 38%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cta) 16%, transparent);
  background: color-mix(in srgb, var(--black) 34%, transparent);
}

:where(body[data-page="contact"]) .form-field input:focus-visible,
:where(body[data-page="contact"]) .form-field textarea:focus-visible,
:where(body[data-page="contact"]) .form-field select:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}

:where(body[data-page="contact"]) .form-field input::placeholder,
:where(body[data-page="contact"]) .form-field textarea::placeholder {
  color: color-mix(in srgb, var(--white) 58%, transparent);
}

:where(body[data-page="contact"]) .form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

:where(body[data-page="contact"]) .form-note {
  max-width: 440px;
  font-size: 0.92rem;
}

:where(body[data-page="contact"]) .form-feedback {
  min-height: 1.5rem;
  font-weight: 800;
}

:where(body[data-page="contact"]) .form-feedback.is-success {
  color: var(--success);
}

:where(body[data-page="contact"]) .form-feedback.is-error {
  color: var(--error);
}

:where(body[data-page="contact"]) .contact-botcheck {
  display: none;
}

@media (max-width: 1100px) {
  :where(body[data-page="contact"]) .contact-body-grid {
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  :where(body[data-page="contact"]) .contact-body-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :where(body[data-page="contact"]) .form-grid {
    grid-template-columns: 1fr;
  }

  :where(body[data-page="contact"]) .form-actions {
    align-items: stretch;
  }
}

/* ========================================================================== 
   Design tokens, fonts, base styles and shared site components
   ========================================================================== */

/* Design tokens and local fonts */
:root {
  --main: #dba159;
  --cta: #7f332b;
  --black: #100e0b;
  --light-grey: #8a8a8a;
  --white: #eff4f0;
  --dark-grey: #212020;
  --whatsapp-green: #2f5b49;
  --success: #8ec7a8;
  --error: #f0a199;
  --header-height: 90px;
}

@font-face {
  font-family: "Roadhouse";
  src:
    url(../img/subset-Roadhouse-BoldNo3.woff2) format("woff2"),
    url(../img/subset-Roadhouse-BoldNo3.woff) format("woff");
}

/* Reset, base document styles and shared layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--black);
}

body.menu-open {
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
}

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

.section,
.hero-section {
  position: relative;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--white);
}

body.js-ready .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.js-ready .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

  body.js-ready .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--black);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img,
.footer-brand-block img {
  display: block;
  max-width: 100%;
}

.site-header-logo {
  width: 200px;
  height: auto;
}

.site-footer-logo {
  width: 150px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
}

.mobile-menu-inner a:not(.button),
.hero-copy,
.section-heading p,
.section-copy p,
.project-body p,
.value-card p,
.info-card p,
.footer-links a,
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.mobile-menu-inner a:not(.button),
.hero-copy,
.section-heading p,
.section-copy p,
.project-body p,
.value-card p,
.info-card p {
  color: color-mix(in srgb, var(--white) 74%, var(--black) 26%);
}

.nav-links a,
.mobile-menu-inner a:not(.button) {
  position: relative;
  font-weight: 600;
  transition: color 220ms ease;
}

.nav-links a::after,
.mobile-menu-inner a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--cta);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.mobile-menu-inner a:hover,
.mobile-menu-inner a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after,
.mobile-menu-inner a:hover::after,
.mobile-menu-inner a.is-active::after {
  transform: scaleX(1);
}

/* Buttons and shared interactive controls */
.button,
.nav-toggle {
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--cta);
}

.button-secondary {
  color: var(--white);
  background: color-mix(in srgb, var(--dark-grey) 84%, transparent);
  border-color: color-mix(in srgb, var(--white) 10%, transparent);
}

.button-secondary:hover {
  border-color: color-mix(in srgb, var(--cta) 26%, transparent);
  box-shadow: 0 18px 45px color-mix(in srgb, var(--black) 30%, transparent);
}

.nav-toggle,
.mobile-menu {
  display: none;
}

/* Shared page layout, typography and cards */
.hero-section {
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: 6rem 0 4.5rem;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--black) 70%, transparent),
      color-mix(in srgb, var(--black) 70%, transparent)
    ),
    url("../img/IMG_9573-1920.webp") no-repeat center/cover;
}

.hero-grid,
.two-column-section,
.card-grid,
.footer-grid,
.footer-columns {
  display: grid;
}

.hero-grid > *,
.two-column-section > *,
.card-grid > *,
.footer-grid > *,
.footer-columns > * {
  min-width: 0;
}

.hero-grid,
.two-column-section {
  gap: 3rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  align-items: center;
}

.section-heading h1,
.section-heading h2,
.two-column-section h2,
.cta-banner h2,
.info-card h3,
.project-body h3,
.value-card h3 {
  margin: 0;
  font-family: "Roadhouse";
  text-transform: uppercase;
  color: var(--black);
}

.section-heading h1,
.section-heading h2,
.two-column-section h2,
.cta-banner h2 {
  line-height: 1.05;
}

.hero-content h1 {
  max-width: 24ch;
  font-size: clamp(2.8rem, 4vw, 5rem);
  margin: 0;
  font-family: "Roadhouse";
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  text-shadow: 0 8px 24px color-mix(in srgb, var(--black) 34%, transparent);
  overflow-wrap: anywhere;
}

@media (min-width: 821px) {
  .hero-content h1 {
    overflow-wrap: normal;
  }
}

.section-heading h1,
.section-heading h2,
.two-column-section h2,
.cta-banner h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  word-spacing: -10px;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}

.hero-copy,
.section-heading p,
.section-copy p {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 60ch;
  margin: 1.5rem 0 0;
}

.hero-actions,
.cta-banner-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.surface-card {
  border: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
  border-radius: 32px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--dark-grey) 92%, transparent),
    color-mix(in srgb, var(--black) 82%, var(--dark-grey) 18%)
  );
  box-shadow:
    0 18px 45px color-mix(in srgb, var(--black) 32%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 4%, transparent);
  backdrop-filter: blur(8px);
}

.project-card,
.value-card,
.info-card {
  padding: clamp(1.4rem, 2vw, 2rem);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card:hover,
.info-card:hover,
.value-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 60px color-mix(in srgb, var(--black) 40%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--white) 5%, transparent);
  border-color: color-mix(in srgb, var(--cta) 28%, transparent);
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--white);
}

.section-kicker-on-dark,
h1.section-title-on-dark,
h2.section-title-on-dark,
h2.card-title-on-dark,
h3.card-title-on-dark,
h3.value-card-title-on-dark {
  color: var(--white);
}

.section-copy-on-dark p,
p.section-intro-on-dark {
  color: color-mix(in srgb, var(--white) 74%, var(--black) 26%);
}

.contact-hero-title {
  margin: 0;
  color: var(--black);
  font-family: "Roadhouse";
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  word-spacing: -10px;
}

.tag {
  padding: 0.45rem 0.8rem;
  background: color-mix(in srgb, var(--cta) 16%, transparent);
  color: color-mix(in srgb, var(--white) 88%, var(--cta) 12%);
  border: 1px solid color-mix(in srgb, var(--cta) 18%, transparent);
}

.section-alt .section-copy .tag {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

.tag-main-background {
  background: var(--main);
}

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

.section-heading,
.section-actions {
  text-align: center;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.card-grid {
  gap: 1.5rem;
}

.services-preview-grid,
.value-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card-index {
  display: inline-flex;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--cta) 86%, var(--white) 14%);
  font: 800 0.95rem "Roadhouse";
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-card h3,
.project-body h3,
.value-card h3,
.site-footer h3 {
  margin-top: 0;
  font-family: "Roadhouse";
  text-transform: uppercase;
}

.tag + h2,
.tag + h3 {
  margin-top: 1rem;
}

.project-card {
  overflow: hidden;
  padding: 0;
}

/* Shared project and image-card presentation */
.project-visual {
  position: relative;
  min-height: 220px;
  background-color: var(--main);
  background-position: center;
  background-size: cover;
}

.project-card-full-height {
  height: 100%;
}

.project-visual-full-height {
  height: 100%;
  min-height: 100%;
}

.project-visual-img-3837 {
  background-image: url("../img/IMG_3837-2560.webp");
  background-image: image-set(
    url("../img/IMG_3837-640.webp") 1x,
    url("../img/IMG_3837-1200.webp") 2x
  );
}

.project-visual-img-7129 {
  background-image: url("../img/IMG_7129-2560.webp");
  background-image: image-set(
    url("../img/IMG_7129-640.webp") 1x,
    url("../img/IMG_7129-1280.webp") 2x
  );
}

.project-visual-img-3830 {
  background-image: url("../img/IMG_3830-2560.webp");
  background-image: image-set(
    url("../img/IMG_3830-640.webp") 1x,
    url("../img/IMG_3830-1280.webp") 2x
  );
}

.project-visual-img-6918 {
  background-image: url("../img/IMG_6918-2560.webp");
  background-image: image-set(
    url("../img/IMG_6918-640.webp") 1x,
    url("../img/IMG_6918-1280.webp") 2x
  );
}

.project-visual-img-06392 {
  background-image: url("../img/IMG_06392-2560.webp");
  background-image: image-set(
    url("../img/IMG_06392-640.webp") 1x,
    url("../img/IMG_06392-1280.webp") 2x
  );
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-visual::after {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--black) 4%, transparent),
    color-mix(in srgb, var(--black) 42%, transparent)
  );
}

.project-visual-1 {
  background-image: url("../img/afb2breed-2560.webp");
  background-image: image-set(
    url("../img/afb2breed-480.webp") 1x,
    url("../img/afb2breed-960.webp") 2x
  );
}

.project-visual-2 {
  background-image: url("../img/afb-2560.webp");
  background-image: image-set(
    url("../img/afb-480.webp") 1x,
    url("../img/afb-960.webp") 2x
  );
}

.project-visual-3 {
  background-image: url("../img/portfolio3-2560.webp");
  background-image: image-set(
    url("../img/portfolio3-480.webp") 1x,
    url("../img/portfolio3-960.webp") 2x
  );
}

.project-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border-radius: 32px;
  color: var(--white);
  background: var(--main);
  border: 1px solid color-mix(in srgb, var(--white) 7%, transparent);
}

.cta-banner .eyebrow,
.cta-banner h2 {
  color: inherit;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.footer-grid,
.footer-columns {
  gap: 2rem;
  align-items: start;
}

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

.footer-brand-block {
  max-width: 320px;
}
.footer-brand-block img {
  max-width: 200%;
}

.footer-columns {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.footer-links {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-link-placeholder,
.footer-links li {
  color: var(--light-grey);
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  color: color-mix(in srgb, var(--white) 56%, transparent);
}

.footer-bottom a {
  text-decoration: none;
}

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

/* Floating contact and back-to-top controls */
.back-to-top-wrap,
.whatsapp-wrap {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 20;
  display: flex;
  width: min(calc(100vw - 2rem), 1300px);
  transform: translateX(-50%);
  pointer-events: none;
}

.back-to-top-wrap {
  justify-content: flex-end;
}

.whatsapp-wrap {
  justify-content: flex-end;
  bottom: 5rem;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  text-decoration: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

.back-to-top.is-visible,
.whatsapp-link.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 999px;
  background: var(--whatsapp-green);
  color: var(--white);
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  text-decoration: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.whatsapp-icon,
.whatsapp-icon svg,
.whatsapp-icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.cls-1 {
  fill: var(--white);
}

.whatsapp-link:hover {
  color: var(--dark-grey);
}

/* Shared responsive rules */
@media (min-width: 821px) {
  .site-header .nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .site-header .nav-wrap > .brand {
    justify-self: start;
  }

  .site-header .nav-wrap > .main-nav {
    justify-self: center;
  }

  .site-header .nav-wrap > .nav-cta {
    justify-self: end;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .services-preview-grid,
  .value-grid,
  .projects-grid,
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .nav-links-desktop,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--dark-grey) 92%, transparent);
    transition: border-color 220ms ease, background-color 220ms ease;
  }

  .nav-toggle:hover {
    border-color: color-mix(in srgb, var(--cta) 34%, transparent);
  }

  .nav-toggle span {
    width: 22px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--white);
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: color-mix(in srgb, var(--black) 96%, transparent);
    transition: max-height 300ms ease;
  }

  .mobile-menu.is-open {
    max-height: 420px;
    border-top-color: color-mix(in srgb, var(--white) 8%, transparent);
  }

  .mobile-menu-inner {
    display: grid;
    gap: 1.1rem;
    padding: 1rem 0 1.4rem;
  }

  .mobile-menu-inner a:not(.button) {
    width: fit-content;
    font-size: 1.05rem;
    text-decoration: none;
  }

  .mobile-cta {
    width: 100%;
  }

  .hero-section {
    padding-top: 4rem;
  }

  .project-visual-full-height {
    background-image: none;
  }

  .services-preview-grid,
  .value-grid,
  .projects-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.25rem);
    max-width: 425px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero-content h1 {
    max-width: none;
    font-size: clamp(2rem, 4.5vw, 5rem);
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .hero-actions,
  .cta-banner-actions,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .back-to-top-wrap,
  .whatsapp-wrap {
    width: calc(100% - 1.25rem);
    justify-content: flex-end;
  }

  .whatsapp-wrap {
    bottom: 5rem;
  }

  .back-to-top,
  .whatsapp-link {
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 999px;
  }
}

/* ========================================================================== 
   Page-specific post-global rules
   These retain the original Review/Terms-after-global cascade.
   ========================================================================== */

/* Reviews */
:where(body[data-page="review"]) .review-slider-shell {
  display: grid;
  gap: 1.5rem;
}

:where(body[data-page="review"]) .review-slider {
  position: relative;
  overflow: hidden;
  padding: 0.25rem 0 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

:where(body[data-page="review"]) .review-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: review-loop 42s linear infinite;
  will-change: transform;
}

:where(body[data-page="review"]) .review-slider:hover .review-track,
:where(body[data-page="review"]) .review-slider:focus-within .review-track {
  animation-play-state: paused;
}

:where(body[data-page="review"]) .review-card {
  display: grid;
  width: clamp(250px, 22vw, 300px);
  min-height: 440px;
  padding: clamp(1.5rem, 2vw, 2.2rem);
  flex: 0 0 auto;
}

:where(body[data-page="review"]) .review-stars {
  color: var(--main);
  font-size: 1rem;
  letter-spacing: 0.16em;
}

:where(body[data-page="review"]) .review-card blockquote {
  margin: 1.4rem 0;
  color: var(--white);
  font-size: clamp(1.25rem, 1.65vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
}

:where(body[data-page="review"]) .review-card p {
  margin: 0;
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

:where(body[data-page="review"]) .review-author {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
}

:where(body[data-page="review"]) .review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--main);
  color: var(--black);
  font-family: "Roadhouse";
  font-size: 1.1rem;
}

:where(body[data-page="review"]) .review-author .review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


:where(body[data-page="review"]) .review-author strong {
  display: block;
  color: var(--white);
  font-family: "Roadhouse";
  line-height: 1.15;
  text-transform: uppercase;
}

:where(body[data-page="review"]) .review-author span {
  display: block;
  color: color-mix(in srgb, var(--white) 58%, transparent);
  font-size: 0.92rem;
}

@keyframes review-loop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

@media (max-width: 1100px) {
  :where(body[data-page="review"]) .review-slider {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
}

@media (max-width: 720px) {
  :where(body[data-page="review"]) .review-slider {
    -webkit-mask-image: none;
    mask-image: none;
  }

  :where(body[data-page="review"]) .review-card {
    width: min(78vw, 300px);
    min-height: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(body[data-page="review"]) .review-slider {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  :where(body[data-page="review"]) .review-track {
    animation: none;
  }
}

/* Terms / legal */
:where(body[data-page="terms"]) .hero-section {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--dark-grey) 88%, var(--black) 12%),
    color-mix(in srgb, var(--dark-grey) 94%, var(--main) 6%)
  );
}

body:where([data-page="terms"]).js-ready .reveal-on-scroll,
body:where([data-page="terms"]).js-ready .reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
  transition: none;
}

:where(body[data-page="terms"]) .hero-grid {
  grid-template-columns: 1fr;
}

:where(body[data-page="terms"]) .hero-content,
:where(body[data-page="terms"]) .terms {
  width: 100%;
  max-width: 1100px;
}

:where(body[data-page="terms"]) .terms {
  margin-top: 2rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

:where(body[data-page="terms"]) .terms h1 {
  margin: 0 0 2rem;
  font-family: "Unison Pro Bold";
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  letter-spacing: 2px;
  line-height: 1.05;
  word-spacing: -10px;
}

:where(body[data-page="terms"]) .terms h2 {
  margin: 2.5rem 0 1rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.2;
  color: var(--white);
}

:where(body[data-page="terms"]) .terms p {
  margin: 0 0 1.1rem;
  color: color-mix(in srgb, var(--white) 82%, var(--black) 18%);
}
