/* ============================================================
   NORDWOOD HOME — handcrafted stylesheet
   Identity: warm walnut, bronze, beige linen, travertine,
   soft daylight. In the spirit of RH / Poliform / Minotti.
   ============================================================ */

:root {
  /* Linen & travertine surfaces */
  --bg: #F4EFE6;
  --card: #FCFAF4;
  --travertine: #EAE2D3;

  /* Walnut & bronze */
  --walnut: #2A2118;
  --walnut-deep: #1C1610;
  --espresso: #221B13;
  --bronze: #8F6B44;
  --bronze-soft: #B08D5F;
  --bronze-light: #C9A97E;

  --text: #2A2118;
  --muted: #7C7265;
  --border: rgba(42, 33, 24, .12);
  --border-dark: rgba(255, 255, 255, .1);

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1320px;
  --gutter: 40px;
  --section-y: 120px;

  --radius: 24px;
  --shadow-img: 0 40px 100px rgba(42, 33, 24, .28);
  --ease: cubic-bezier(.22, .8, .28, 1);
  --t-hover: 300ms;
  --t-reveal: 800ms;
}

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; }

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

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

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

ul, ol { list-style: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--walnut); color: var(--bg); }

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Subtle separators between sections */
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}

h1 em, h2 em, .cta__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--bronze);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 28px;
  height: 1px;
  background: var(--bronze);
  margin-right: 14px;
  opacity: .7;
}

.section__title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  max-width: 16ch;
}

.section__head {
  margin-bottom: 72px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform var(--t-hover) var(--ease),
              box-shadow var(--t-hover) var(--ease),
              background-color var(--t-hover) var(--ease),
              border-color var(--t-hover) var(--ease),
              color var(--t-hover) var(--ease);
  will-change: transform;
}

.btn__icon { width: 18px; height: 18px; transition: transform var(--t-hover) var(--ease); }

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

.btn--primary {
  background: var(--walnut);
  color: var(--bg);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--walnut-deep);
  box-shadow: 0 12px 40px rgba(42, 33, 24, .35);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, .25);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 107, 68, .55);
  box-shadow: 0 10px 34px rgba(42, 33, 24, .16);
  color: var(--bronze);
}

.btn--sm { padding: 12px 24px; font-size: .88rem; }

.btn--lg { padding: 21px 46px; font-size: 1.05rem; }

.btn--glow {
  box-shadow: 0 0 60px rgba(176, 141, 95, .35);
}

.btn--glow:hover {
  box-shadow: 0 0 0 1px rgba(201, 169, 126, .5),
              0 0 90px rgba(176, 141, 95, .55);
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--bronze-light));
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 1002;
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid var(--bronze);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1001;
  opacity: 0;
  transition: opacity .3s ease, transform .18s ease-out;
  display: none;
  align-items: center;
  justify-content: center;
}

.cursor__plus {
  width: 14px;
  height: 14px;
  color: var(--bronze-light);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .2s ease, transform .2s ease;
}

.cursor__plus svg { width: 100%; height: 100%; }

.cursor.is-active { transform: scale(1.6); background: rgba(143, 107, 68, .08); }

.cursor.is-plus { transform: scale(1.9); background: rgba(28, 22, 16, .35); }

.cursor.is-plus .cursor__plus { opacity: 1; transform: scale(1); }

@media (hover: hover) and (pointer: fine) {
  .cursor { display: flex; }
}

/* ---------- Grain overlay ---------- */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1000;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 80px;
  z-index: 900;
  transition: border-color .4s ease;
  border-bottom: 1px solid transparent;
}

/* Glass background lives on a pseudo-element (not .navbar itself) so that
   backdrop-filter never creates a containing block for the fixed-position
   mobile menu nested inside — otherwise the menu ends up "fixed" to the
   80px navbar box instead of the viewport once scrolled. */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background-color .4s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border);
}

.navbar.is-scrolled::before {
  background: rgba(244, 239, 230, .6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.navbar__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.navbar__logo { width: 34px; height: 34px; }

.navbar__wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: .01em;
}

.navbar__wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--bronze);
  margin-left: 5px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar__link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--t-hover) ease;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-hover) var(--ease);
}

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

.navbar__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 950;
}

.navbar__toggle svg { width: 100%; height: 100%; }

.navbar__toggle .icon-close { display: none; }

/* Mobile fullscreen overlay nav */
@media (max-width: 900px) {
  .navbar__toggle { display: block; }

  .navbar__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: rgba(244, 239, 230, .92);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
  }

  .navbar__link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s ease;
  }

  .navbar__cta { margin-top: 28px; opacity: 0; transform: translateY(24px);
    transition: opacity .5s var(--ease) .3s, transform .5s var(--ease) .3s; }

  body.nav-open .navbar__nav { opacity: 1; visibility: visible; }

  body.nav-open .navbar__link,
  body.nav-open .navbar__cta { opacity: 1; transform: translateY(0); }

  body.nav-open .navbar__link:nth-child(1) { transition-delay: .05s; }
  body.nav-open .navbar__link:nth-child(2) { transition-delay: .1s; }
  body.nav-open .navbar__link:nth-child(3) { transition-delay: .15s; }
  body.nav-open .navbar__link:nth-child(4) { transition-delay: .2s; }
  body.nav-open .navbar__link:nth-child(5) { transition-delay: .25s; }

  body.nav-open { overflow: hidden; }

  body.nav-open .navbar__toggle .icon-menu { display: none; }
  body.nav-open .navbar__toggle .icon-close { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 12% 0%, rgba(201, 169, 126, .25), transparent 65%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(234, 226, 211, .8), transparent 60%),
    var(--bg);
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(255, 250, 240, .7), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 45fr 55fr;
  align-items: center;
  gap: 64px;
  width: 100%;
  position: relative;
}

.hero__title {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  margin-bottom: 28px;
}

.hero__desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44ch;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual { position: relative; }

.hero__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-img);
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  will-change: transform;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06); /* headroom so parallax never shows edges */
  will-change: transform;
}

.hero__badge {
  position: absolute;
  left: -28px;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  border-radius: 18px;
  background: rgba(252, 250, 244, .8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(42, 33, 24, .08);
  box-shadow: 0 24px 60px rgba(42, 33, 24, .18);
}

.hero__badge-num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--bronze);
  line-height: 1;
}

.hero__badge-text {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid rgba(42, 33, 24, .3);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 9px;
}

.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--bronze);
  animation: scroll-hint 2.2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Trust bar (dark walnut strip) ---------- */

.trust {
  background: linear-gradient(180deg, var(--espresso), var(--walnut-deep));
  border-block: 1px solid rgba(42, 33, 24, .2);
  padding-block: 64px;
  color: var(--bg);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.trust__item { text-align: center; }

.trust__icon {
  width: 30px;
  height: 30px;
  color: var(--bronze-light);
  margin-bottom: 16px;
}

.trust__num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.trust__label {
  color: rgba(244, 239, 230, .55);
  font-size: .92rem;
}

/* ---------- Categories ---------- */

.categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 50px rgba(42, 33, 24, .2);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
  will-change: transform;
  color: #FCFAF4;
}

/* first two cards span wider on the 12-col rhythm */
.category-card:nth-child(1),
.category-card:nth-child(2) { grid-column: span 3; aspect-ratio: 4 / 3.2; }

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
  will-change: transform;
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 22, 16, 0) 40%, rgba(28, 22, 16, .78) 100%);
  transition: opacity var(--t-hover) ease;
}

.category-card__content {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
}

.category-card__content h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

.category-card__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(252, 250, 244, .35);
  display: grid;
  place-items: center;
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease,
              color var(--t-hover) ease, transform var(--t-hover) var(--ease);
}

.category-card__arrow svg { width: 17px; height: 17px; }

.category-card:hover {
  transform: scale(1.04);
  box-shadow: 0 34px 80px rgba(42, 33, 24, .35);
}

.category-card:hover img { transform: scale(1.09); }

.category-card:hover .category-card__arrow {
  background: var(--bronze-soft);
  border-color: var(--bronze-soft);
  color: var(--walnut-deep);
  transform: rotate(45deg);
}

/* ---------- About ---------- */

.about__inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 88px;
  align-items: center;
}

.about__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-img);
}

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

.about__lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 26px 0 44px;
  max-width: 52ch;
}

.about__features { display: grid; gap: 30px; }

.about__features li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.about__feature-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--bronze);
  background: rgba(143, 107, 68, .08);
  border: 1px solid rgba(143, 107, 68, .22);
}

.about__feature-icon svg { width: 24px; height: 24px; }

.about__features h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.about__features p {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Why Nordwood (linen glass cards) ---------- */

.why { position: relative; overflow: hidden; }

.why::after {
  content: "";
  position: absolute;
  right: -15%;
  top: 20%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(201, 169, 126, .22), transparent 65%);
  pointer-events: none;
}

.why .container { position: relative; z-index: 1; }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.glass-card {
  padding: 40px 34px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .35));
  border: 1px solid rgba(42, 33, 24, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease),
              border-color var(--t-hover) ease;
  will-change: transform;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(143, 107, 68, .38);
  box-shadow: 0 30px 70px rgba(42, 33, 24, .18),
              0 0 50px rgba(201, 169, 126, .2);
}

.glass-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--bronze);
  background: rgba(143, 107, 68, .08);
  border: 1px solid rgba(143, 107, 68, .22);
  margin-bottom: 26px;
}

.glass-card__icon svg { width: 26px; height: 26px; }

.glass-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.glass-card p {
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Featured projects ---------- */

.projects__list { display: grid; gap: 32px; }

.project-card {
  display: grid;
  grid-template-columns: 7fr 5fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 90px rgba(42, 33, 24, .22);
}

.project-card--reverse { grid-template-columns: 5fr 7fr; }

.project-card--reverse .project-card__media { order: 2; }

.project-card__media { overflow: hidden; }

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
  transition: transform 900ms var(--ease);
  will-change: transform;
}

.project-card:hover .project-card__media img { transform: scale(1.05); }

.project-card__body {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.project-card__location {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.project-card__body h3 { font-size: 1.9rem; }

.project-card__desc {
  color: var(--muted);
  font-size: .98rem;
  margin-bottom: 14px;
}

/* ---------- Process ---------- */

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}

.process__step {
  position: relative;
  padding: 36px 28px 0;
  border-top: 1px solid var(--border);
}

.process__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 1px;
  background: var(--bronze);
}

.process__num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: italic;
  font-size: .95rem;
  color: var(--bronze);
  display: block;
  margin-bottom: 22px;
}

.process__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--bronze);
  background: var(--card);
  margin-bottom: 22px;
}

.process__icon svg { width: 22px; height: 22px; }

.process__step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process__step p {
  color: var(--muted);
  font-size: .93rem;
}

/* ---------- Gallery (masonry) ---------- */

.gallery__masonry {
  columns: 3;
  column-gap: 24px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 40px rgba(42, 33, 24, .16);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 16, .4);
  opacity: 0;
  transition: opacity var(--t-hover) ease;
  pointer-events: none;
}

.gallery__item img {
  width: 100%;
  transition: transform 600ms var(--ease);
  will-change: transform;
  cursor: pointer;
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item:hover::after { opacity: 1; }

/* ---------- Testimonials ---------- */

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}

.testimonial:nth-child(2) { margin-top: 40px; }

.testimonial:nth-child(3) { margin-top: 80px; }

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(42, 33, 24, .18);
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.testimonial__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--bronze-soft);
  stroke: none;
}

.testimonial blockquote {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.55;
  margin-bottom: 28px;
}

.testimonial figcaption { display: grid; gap: 2px; }

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

.testimonial__role { color: var(--muted); font-size: .85rem; }

/* ---------- CTA (dark walnut, bronze light) ---------- */

.cta {
  position: relative;
  padding-block: 160px;
  overflow: hidden;
  background: var(--espresso);
  text-align: center;
  color: #F4EFE6;
}

.cta__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 110%, rgba(176, 141, 95, .35), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% -10%, rgba(201, 169, 126, .16), transparent 65%),
    linear-gradient(180deg, rgba(28, 22, 16, .6), transparent 35%, transparent 70%, rgba(28, 22, 16, .5));
  pointer-events: none;
}

.cta__inner { position: relative; }

.eyebrow--light { color: var(--bronze-light); }

.eyebrow--light::before { background: var(--bronze-light); }

.cta__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.08;
  margin-bottom: 28px;
}

.cta__title em { color: var(--bronze-light); }

.cta__desc {
  color: rgba(244, 239, 230, .7);
  max-width: 52ch;
  margin: 0 auto 48px;
  font-size: 1.06rem;
}

/* Bronze button on the dark CTA panel */
.cta .btn--primary {
  background: var(--bronze-soft);
  color: var(--walnut-deep);
}

.cta .btn--primary:hover {
  background: var(--bronze-light);
}

/* ---------- Footer (dark walnut) ---------- */

.footer {
  border-top: 1px solid rgba(28, 22, 16, .4);
  padding: 88px 0 0;
  background: var(--walnut-deep);
  color: #F4EFE6;
}

.footer .navbar__wordmark { color: #F4EFE6; }

.footer .navbar__wordmark em { color: var(--bronze-light); }

.footer__grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 3fr;
  gap: 48px;
  padding-bottom: 72px;
}

.footer__tagline {
  color: rgba(244, 239, 230, .55);
  font-size: .95rem;
  max-width: 30ch;
  margin: 20px 0 26px;
}

.footer__social { display: flex; gap: 12px; }

.footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  color: rgba(244, 239, 230, .6);
  transition: color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-hover) var(--ease);
}

.footer__social a:hover {
  color: var(--bronze-light);
  border-color: rgba(201, 169, 126, .45);
  transform: translateY(-3px);
}

.footer__social svg { width: 18px; height: 18px; }

.footer__col { display: grid; gap: 14px; align-content: start; }

.footer__col h3 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #F4EFE6;
  margin-bottom: 8px;
}

.footer__col a, .footer__col span {
  color: rgba(244, 239, 230, .55);
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color var(--t-hover) ease;
}

.footer__col a:hover { color: var(--bronze-light); }

.footer__ci { width: 16px; height: 16px; flex: 0 0 auto; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0;
  border-top: 1px solid var(--border-dark);
  color: rgba(244, 239, 230, .45);
  font-size: .85rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(20, 16, 11, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 80px;
  opacity: 0;
  transition: opacity .3s ease;
  color: #F4EFE6;
}

.lightbox[hidden] { display: none; }

.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lightbox__figure img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}

.lightbox__figure figcaption {
  text-align: center;
  color: rgba(244, 239, 230, .6);
  font-size: .9rem;
}

.lightbox__close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  color: #F4EFE6;
  transition: border-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-hover) var(--ease);
}

.lightbox__close:hover { color: var(--bronze-light); border-color: rgba(201, 169, 126, .45); transform: rotate(90deg); }

.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  color: #F4EFE6;
  transition: border-color var(--t-hover) ease, color var(--t-hover) ease, background-color var(--t-hover) ease;
}

.lightbox__nav:hover { color: var(--walnut-deep); background: var(--bronze-soft); border-color: var(--bronze-soft); }

.lightbox__nav svg { width: 22px; height: 22px; }

.lightbox__nav--prev { left: 22px; }

.lightbox__nav--next { right: 22px; }

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 100ms);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }

  .categories__grid { grid-template-columns: repeat(6, 1fr); }

  .category-card { grid-column: span 3; }

  .category-card:nth-child(5) { grid-column: 2 / span 4; aspect-ratio: 4 / 3.2; }

  .gallery__masonry { columns: 2; }

  .about__inner { gap: 56px; }

  .project-card__body { padding: 40px 36px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  :root {
    --section-y: 80px;
    --gutter: 24px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__actions .btn { width: 100%; }

  .hero__badge { left: 16px; bottom: 20px; padding: 14px 18px; }

  .hero__scroll { display: none; }

  .trust { padding-block: 56px; }

  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }

  .section__head { margin-bottom: 48px; }

  /* categories become a swipe carousel */
  .categories__grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories__grid::-webkit-scrollbar { display: none; }

  .category-card,
  .category-card:nth-child(1),
  .category-card:nth-child(2),
  .category-card:nth-child(5) {
    flex: 0 0 78%;
    aspect-ratio: 3 / 4;
    scroll-snap-align: center;
  }

  .about__inner { grid-template-columns: 1fr; gap: 44px; }

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

  .project-card,
  .project-card--reverse { grid-template-columns: 1fr; }

  .project-card--reverse .project-card__media { order: 0; }

  .project-card__media img { min-height: 240px; }

  .project-card__body { padding: 32px 28px 40px; }

  .project-card__body .btn { width: 100%; }

  .process__timeline { grid-template-columns: 1fr; gap: 40px; }

  .gallery__masonry { columns: 1; }

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

  .testimonial:nth-child(2),
  .testimonial:nth-child(3) { margin-top: 0; }

  .cta { padding-block: 100px; }

  .cta .btn { width: 100%; max-width: 420px; }

  .footer__grid { grid-template-columns: 1fr; gap: 40px; }

  .footer__bottom { justify-content: center; text-align: center; }

  .lightbox { padding: 4vh 16px; }

  .lightbox__nav { display: none; }
}

/* ---------- Reduced motion ---------- */

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

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

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

  .cursor, .hero__scroll span { display: none; }
}
