/* ==========================================================================
   COSTA RICA CONSTRUCTION — style.css
   --------------------------------------------------------------------------
   HOW TO USE THIS FILE
   • Colors: change the values in the :root block below (section 1).
   • Fonts: swap the two font names (also update the <link> in index.html).
   • Everything is grouped by page section — search for "SECTION" comments.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (colors, fonts, spacing)
   -------------------------------------------------------------------------- */
:root {
  /* Color palette — warm earth tones */
  --p-bg:            oklch(0.972 0.005 65);   /* warm off-white (page background) */
  --p-surface:       oklch(0.945 0.012 70);   /* peach cream (alt. surfaces) */
  --p-text:          oklch(0.33 0.012 60);    /* charcoal brown (main text) */
  --p-text-muted:    oklch(0.46 0.015 60);    /* secondary text */
  --p-accent:        oklch(0.60 0.110 55);    /* terracotta (decorative accents) */
  --p-accent-strong: oklch(0.51 0.100 52);    /* dark bronze (buttons, links) */
  --p-dark:          oklch(0.24 0.030 50);    /* deep brown (dark sections) */
  --p-sand:          oklch(0.84 0.030 70);    /* pale sand (hairlines) */
  --p-cream:         oklch(0.95 0.015 75);    /* text on dark backgrounds */
  --p-success:       oklch(0.52 0.11 150);    /* form success */
  --p-error:         oklch(0.52 0.14 25);     /* form error */

  /* Semantic mapping */
  --bg: var(--p-bg);
  --surface: var(--p-surface);
  --text: var(--p-text);
  --text-muted: var(--p-text-muted);
  --accent: var(--p-accent);
  --accent-strong: var(--p-accent-strong);
  --dark: var(--p-dark);
  --sand: var(--p-sand);
  --cream: var(--p-cream);

  /* Typography */
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --pad-inline: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;

  /* Motion */
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-swift: cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }

::selection { background: color-mix(in oklch, var(--accent) 30%, transparent); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--dark);
  color: var(--cream);
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Shared layout helpers */
.section { padding-block: var(--section-pad); }
.section > * { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-inline); }

/* Section heading: small label left, big serif title right */
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  border-top: 1px solid var(--sand);
  padding-top: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  white-space: nowrap;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  text-align: right;
  max-width: 18ch;
  text-wrap: balance;
}
.section__title em { font-style: normal; color: var(--accent); }

/* --------------------------------------------------------------------------
   3. BUTTONS — pill with clip-path hover reveal
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 1em 2em;
  border: 1px solid color-mix(in oklch, var(--text) 40%, transparent);
  border-radius: 0.35em;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  transition: border-color 0.45s var(--ease-swift);
}
.btn__content { position: relative; z-index: 2; }
.btn__mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: var(--accent-strong);
  color: var(--cream);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.45s var(--ease-swift);
}
.btn:hover, .btn:focus-visible { border-color: var(--accent-strong); }
.btn:hover .btn__mask, .btn:focus-visible .btn__mask { clip-path: inset(0 0 0 0); }
.btn:hover .btn__content, .btn:focus-visible .btn__content { color: transparent; }
.btn__content { transition: color 0.2s; }

/* Ghost = light text, for use on photos */
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--accent-strong); }

/* Solid = filled terracotta, for the main call-to-action on photos */
.btn--solid { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--cream); }
.btn--solid .btn__mask { background: var(--cream); color: var(--dark); }
.btn--solid:hover, .btn--solid:focus-visible { border-color: var(--cream); }

/* Light = cream on dark sections */
.btn--light { border-color: color-mix(in oklch, var(--cream) 55%, transparent); color: var(--cream); }
.btn--light .btn__mask { background: var(--cream); color: var(--dark); }
.btn--light:hover, .btn--light:focus-visible { border-color: var(--cream); }

.btn--small { padding: 0.7em 1.4em; font-size: 0.82rem; }
.btn--submit { width: 100%; }

/* Text link with arrow */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.text-link svg { transition: transform 0.3s var(--ease-expo); }
.text-link:hover { border-color: var(--accent-strong); }
.text-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.6s var(--ease-expo), box-shadow 0.6s var(--ease-expo);
}
.site-header__inner {
  max-width: calc(var(--container) + 2 * var(--pad-inline));
  margin-inline: auto;
  padding-inline: var(--pad-inline);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Transparent over the hero photo → light background after scrolling */
.site-header:not(.is-scrolled) { color: #fff; }
.site-header.is-scrolled {
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--sand);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; }
.brand__mark { width: 36px; height: 36px; object-fit: contain; }
.site-header:not(.is-scrolled) .brand__mark { filter: brightness(0) invert(1); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand__name em { font-style: normal; opacity: 0.72; }

.main-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav-link {
  overflow: hidden;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding-block: 0.25rem;
}
.nav-link__text {
  position: relative;
  display: inline-block;
  transition: transform 0.3s var(--ease-expo);
}
.nav-link__text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--accent);
}
.nav-link:hover .nav-link__text, .nav-link:focus-visible .nav-link__text { transform: translateY(-100%); }
.site-header:not(.is-scrolled) .nav-link__text::after { color: #fff; }

.site-header:not(.is-scrolled) .btn--small { border-color: rgba(255,255,255,0.55); color: #fff; }

/* Hamburger (mobile only) */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 110;
  width: 44px;
  height: 44px;
  place-items: center;
}
.menu-toggle__line {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-expo);
}
.menu-toggle__line:first-child { transform: translateY(-5px); }
.menu-toggle__line:last-child { transform: translateY(5px); }
.menu-toggle.is-active .menu-toggle__line:first-child { transform: rotate(22.5deg); }
.menu-toggle.is-active .menu-toggle__line:last-child { transform: rotate(-22.5deg); }
.menu-toggle.is-active { color: var(--cream); }

/* Keep the header (logo + close button) visible above the open mobile menu */
.site-header.menu-open { z-index: 120; color: var(--cream); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.menu-open .brand__mark { filter: brightness(0) invert(1); }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: var(--pad-inline);
  background: var(--dark);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-expo), visibility 0s 0.6s;
}
.mobile-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.6s var(--ease-expo), visibility 0s;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  color: var(--cream);
  padding-block: 0.35rem;
  transition: color 0.3s, transform 0.5s var(--ease-expo);
  transform: translateY(20px);
  opacity: 0;
}
.mobile-menu.is-open .mobile-menu__link { transform: none; opacity: 1; }
.mobile-menu__link:hover, .mobile-menu__link:focus-visible { color: var(--accent); }
.mobile-menu__foot { color: color-mix(in oklch, var(--cream) 60%, transparent); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }

/* --------------------------------------------------------------------------
   5. HERO (full-screen photo, headline, stats)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: clip;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%;
  height: 112%;               /* extra height for the parallax drift */
  object-fit: cover;
  will-change: transform;
}
.hero__overlay { position: absolute; inset: 0; }
.hero__overlay--top { background: linear-gradient(180deg, rgba(20, 12, 8, 0.5), transparent 45%); }
.hero__overlay--bottom { background: linear-gradient(180deg, transparent 45%, rgba(20, 12, 8, 0.82)); }

.hero__content {
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad-inline);
  padding-top: calc(var(--header-h) + 3rem);
}
.hero__kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 18px rgba(20, 12, 8, 0.55);
  margin-bottom: 1.25rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.05;
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(20, 12, 8, 0.45);
}
.hero__sub { text-shadow: 0 1px 16px rgba(20, 12, 8, 0.5); }
/* per-character reveal (spans are added by js/main.js) */
.hero__title .char-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__title .char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-expo);
}
.hero__title .char.is-in { transform: translateY(0); }
.hero__sub {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container);
  width: 100%;
  margin: clamp(2.5rem, 6vh, 4.5rem) auto 0;
  padding: 1.75rem var(--pad-inline) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  order: 2;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat__value { order: 1; }

/* --------------------------------------------------------------------------
   6. ABOUT (offset image pair + text)
   -------------------------------------------------------------------------- */
.about { position: relative; overflow: clip; }
.about__line {
  position: absolute;
  top: 8%;
  left: 0;
  width: 100%;
  height: 220px;
  pointer-events: none;
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.about__images { grid-column: 1 / 8; position: relative; padding-bottom: 4rem; }
.about__img { overflow: hidden; border-radius: 6px; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { width: 72%; aspect-ratio: 4 / 5; }
.about__img--b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -20px rgba(42, 22, 13, 0.35);
}
.about__text { grid-column: 8 / 13; }
.about__lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}
.about__text p:not(.about__lead) { color: var(--text-muted); }
.about__points { margin-top: 1.75rem; }
.about__points li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--sand);
  color: var(--text-muted);
}
.about__points strong { color: var(--text); }
.about__text .text-link { margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   7. SERVICES (accordion list + sticky preview image)
   -------------------------------------------------------------------------- */
.services { background: var(--surface); }
.services__layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.services__list { grid-column: 1 / 8; }
.service { border-top: 1px solid color-mix(in oklch, var(--text) 18%, transparent); }
.service:last-child { border-bottom: 1px solid color-mix(in oklch, var(--text) 18%, transparent); }
.service__row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  text-align: left;
  transition: padding-left 0.4s var(--ease-expo);
}
.service__row:hover, .service__row:focus-visible { padding-left: 0.75rem; }
.service__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  transition: color 0.3s;
}
.service.is-active .service__name, .service__row:hover .service__name { color: var(--accent-strong); }
.service__plus { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.service__plus::before, .service__plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  transition: transform 0.4s var(--ease-expo);
}
.service__plus::before { width: 100%; height: 1.5px; }
.service__plus::after { width: 1.5px; height: 100%; }
.service.is-open .service__plus::after { transform: rotate(90deg); }

.service__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-expo);
}
.service__body-inner { overflow: hidden; min-height: 0; }
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__body p { color: var(--text-muted); max-width: 56ch; padding-bottom: 1.6rem; }
.service__img { display: none; overflow: hidden; border-radius: 6px; margin-bottom: 1.25rem; aspect-ratio: 16 / 10; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }

/* Sticky preview image (desktop only) */
.services__visual {
  grid-column: 8 / 13;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
}
.services__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s var(--ease-expo), transform 1.2s var(--ease-expo);
}
.services__visual-img.is-active { opacity: 1; transform: scale(1); }

/* --------------------------------------------------------------------------
   8. PROJECTS (asymmetric gallery grid)
   -------------------------------------------------------------------------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
.project { position: relative; overflow: hidden; border-radius: 6px; grid-column: span 5; }
.project--wide { grid-column: span 7; }
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.8s var(--ease-expo);
}
.project--wide img { aspect-ratio: 3 / 2; }
.project:hover img { transform: scale(1.045); }
.project__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.85rem;
}
.project__name { font-weight: 600; }
.project__loc { font-size: 0.88rem; color: var(--text-muted); white-space: nowrap; }
/* Editorial stagger on desktop */
@media (min-width: 901px) {
  .project:nth-child(even) { transform: translateY(2.5rem); }
  .projects__grid { padding-bottom: 2.5rem; }
}

/* --------------------------------------------------------------------------
   9. PROCESS (numbered steps)
   -------------------------------------------------------------------------- */
.process__list { max-width: 880px; }
.process__step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.9rem 0;
  border-top: 1px solid var(--sand);
  align-items: start;
}
.process__step:last-child { border-bottom: 1px solid var(--sand); }
.process__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--accent);
  line-height: 1.1;
}
.process__name { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-bottom: 0.4rem; }
.process__step p { color: var(--text-muted); max-width: 62ch; }

/* --------------------------------------------------------------------------
   10. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials { background: var(--surface); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.testimonial { border-top: 1px solid color-mix(in oklch, var(--text) 22%, transparent); padding-top: 1.5rem; }
.testimonial--featured { grid-column: 1 / -1; }
.testimonial p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  max-width: 44ch;
}
.testimonial--featured p { font-size: clamp(1.5rem, 2.8vw, 2.2rem); max-width: 34ch; }
.testimonial footer { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial footer strong { font-weight: 600; }
.testimonial footer span { font-size: 0.88rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   11. CTA BANNER
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  overflow: clip;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 15, 9, 0.72), rgba(28, 22, 13, 0.82));
}
.cta__content { padding: var(--section-pad) var(--pad-inline); }
.cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  text-wrap: balance;
}
.cta__title em { font-style: normal; color: var(--sand); }
.cta__sub { margin-top: 1.1rem; color: color-mix(in oklch, var(--cream) 80%, transparent); }
.cta .btn { margin-top: 2.2rem; }

/* --------------------------------------------------------------------------
   12. CONTACT (info + form)
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact__info { grid-column: 1 / 6; }
.contact__info-title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: 1rem; }
.contact__info address { line-height: 2; }
.contact__info address a { border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.contact__info address a:hover { border-color: var(--accent-strong); }
.contact__hours { margin-top: 1.5rem; color: var(--text-muted); }
.contact__note { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--sand); color: var(--text-muted); font-size: 0.95rem; }

.contact__form { grid-column: 6 / 13; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--text);
  padding: 0.85rem 1rem;
  background: color-mix(in oklch, #fff 55%, var(--bg));
  border: 1px solid color-mix(in oklch, var(--text) 25%, transparent);
  border-radius: 4px;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent);
}
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--p-error); }
.field--hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 500; min-height: 1.5em; }
.form-status.is-success { color: var(--p-success); }
.form-status.is-error { color: var(--p-error); }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--cream); }
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad-inline) 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.brand--footer { color: var(--cream); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.site-footer__nav a {
  color: var(--cream);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.site-footer__nav a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer__contact a { color: color-mix(in oklch, var(--cream) 82%, transparent); }
.site-footer__contact a:hover { color: var(--cream); }
.site-footer__legal {
  padding-top: 1.6rem;
  border-top: 1px solid color-mix(in oklch, var(--cream) 18%, transparent);
  font-size: 0.85rem;
  color: color-mix(in oklch, var(--cream) 55%, transparent);
}

/* --------------------------------------------------------------------------
   14. SCROLL REVEAL STATES (activated by js/main.js — visible without JS)
   -------------------------------------------------------------------------- */
html.js [data-scroll-fade] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
html.js [data-scroll-fade].in-view { opacity: 1; transform: none; }

html.js [data-scroll-mask] { clip-path: inset(10% 7% 10% 7%); transition: clip-path 1.1s var(--ease-expo); }
html.js [data-scroll-mask] img { transform: scale(1.12); transition: transform 1.4s var(--ease-expo); }
html.js [data-scroll-mask].in-view { clip-path: inset(0 0 0 0); }
html.js [data-scroll-mask].in-view img { transform: scale(1); }
/* project hover zoom still works after reveal */
html.js .project[data-scroll-mask].in-view:hover img { transform: scale(1.045); }

/* --------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .main-nav { gap: 1.25rem; }
}

@media (max-width: 900px) {
  .main-nav, .site-header__cta { display: none; }
  .menu-toggle { display: grid; }

  .section__head { flex-direction: column; gap: 0.75rem; }
  .section__title { text-align: left; max-width: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__images { grid-column: 1; margin-bottom: 1rem; }
  .about__text { grid-column: 1; }

  .services__layout { grid-template-columns: 1fr; }
  .services__list { grid-column: 1; }
  .services__visual { display: none; }
  .service__img { display: block; }

  .projects__grid { grid-template-columns: 1fr; }
  .project, .project--wide { grid-column: 1; }
  .project img, .project--wide img { aspect-ratio: 4 / 3; }

  .testimonials__grid { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { grid-column: 1; }
  .contact__form { grid-column: 1; }
}

@media (max-width: 640px) {
  .hero__stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }
  .stat__label { font-size: 0.68rem; letter-spacing: 0.08em; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero__actions .btn { width: 100%; }
  .process__step { grid-template-columns: 3.5rem 1fr; }
  .brand__name { font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   16. REDUCED MOTION — show everything, disable animation
   -------------------------------------------------------------------------- */
@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;
  }
  html.js [data-scroll-fade], html.js [data-scroll-mask] { opacity: 1; transform: none; clip-path: none; }
  html.js [data-scroll-mask] img { transform: none; }
  .hero__title .char { transform: none; }
  .hero__media img { transform: none !important; }
}
