/* JD Home Improvement - homepage shell (header + hero)
   Extend this file as new sections are added. */

:root {
  /* Neutral stone / warm gray - backgrounds stay calm; gold is for accents only */
  --color-bg-deep: #e2e0dc;
  --color-bg-elevated: #f0efec;
  --color-bg-muted: #e8e6e3;
  --color-bg-card: #f7f6f4;
  --color-bg-warm: #faf9f7;
  /* Nav / floating panels */
  --color-bg-panel: rgba(247, 246, 244, 0.94);
  --color-text: #1a1814;
  --color-text-muted: #5a5854;
  --color-border-subtle: rgba(28, 30, 34, 0.09);
  /* Brand gold - CTAs, hovers, section labels */
  --color-accent: #f5c542;
  --color-accent-hover: #ffd54f;
  --color-accent-deep: #e6aa1a;
  --color-accent-soft: rgba(245, 197, 66, 0.28);
  --color-cta-text: #141414;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-nav: 1rem;
  --radius-button: 0.5rem;
  --shadow-nav: 0 10px 36px rgba(28, 30, 34, 0.1), 0 2px 8px rgba(28, 30, 34, 0.05),
    0 0 0 1px rgba(28, 30, 34, 0.05);
  --shadow-cta: 0 1px 3px rgba(28, 30, 34, 0.1), 0 6px 20px rgba(230, 170, 26, 0.35);
  --shadow-soft: 0 10px 40px rgba(28, 30, 34, 0.07);
  /* Fixed header offset: top inset + logo + nav vertical padding + small buffer */
  --header-top-pad: 0.42rem;
  --nav-logo-height: 5.35rem;
  --nav-pad-y: 0.06rem;
  --header-space: calc(
    var(--header-top-pad) + var(--nav-logo-height) + (var(--nav-pad-y) * 2) + 0.25rem
  );
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-space);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-padding-top: var(--header-space);
  }

  .site-nav__panel {
    transition: none;
  }

  .site-nav__toggle-bar,
  .cta-button {
    transition: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg-deep);
}

body.is-loading {
  overflow: hidden;
}

/* --- Preloader (hammer + nail construction animation) --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.preloader__scene {
  width: clamp(6.5rem, 16vw, 8.5rem);
  height: auto;
  overflow: visible;
}

.preloader__board {
  fill: #b98252;
}

.preloader__grain {
  stroke: #8a5c34;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.45;
}

.preloader__nail-shaft {
  fill: #9aa0a6;
}

.preloader__nail-head {
  fill: #c3c8cd;
}

.preloader__struck {
  animation: preloader-struck-shake 2.3s ease-in-out infinite;
}

.preloader__nail {
  animation: preloader-nail-sink 2.3s ease-in-out infinite;
}

.preloader__impact {
  opacity: 0;
  color: var(--color-accent);
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  animation: preloader-impact-flash 2.3s ease-in-out infinite;
}

.preloader__handle {
  fill: #8a5c34;
}

.preloader__head {
  fill: var(--color-text);
}

.preloader__head-accent {
  fill: var(--color-accent);
}

.preloader__hammer-pivot {
  transform-origin: 171.3px 80px;
  animation: preloader-hammer-swing 2.3s ease-in-out infinite;
}

.preloader__text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Two-hit sequence: raise, strike, rebound - repeated twice with the nail
   driving progressively deeper each hit - then reset for the next loop
   (in case a slow connection needs more than one pass). */
@keyframes preloader-hammer-swing {
  0%,
  12% {
    transform: rotate(170deg);
  }
  22% {
    transform: rotate(76deg);
  }
  29% {
    transform: rotate(92deg);
  }
  42%,
  58% {
    transform: rotate(160deg);
  }
  68% {
    transform: rotate(76deg);
  }
  75% {
    transform: rotate(90deg);
  }
  88% {
    transform: rotate(84deg);
  }
  100% {
    transform: rotate(170deg);
  }
}

@keyframes preloader-nail-sink {
  0%,
  20% {
    transform: translateY(0);
  }
  22% {
    transform: translateY(3px);
  }
  28% {
    transform: translateY(2.5px);
  }
  66% {
    transform: translateY(2.5px);
  }
  68% {
    transform: translateY(7px);
  }
  75% {
    transform: translateY(6.5px);
  }
  88%,
  100% {
    transform: translateY(0);
  }
}

@keyframes preloader-struck-shake {
  0%,
  20%,
  25%,
  66%,
  71%,
  100% {
    transform: translateY(0);
  }
  22%,
  68% {
    transform: translateY(2.5px);
  }
}

@keyframes preloader-impact-flash {
  0%,
  19%,
  31%,
  65%,
  79%,
  100% {
    opacity: 0;
  }
  22%,
  68% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    transition: opacity 0.3s linear;
  }

  .preloader__hammer-pivot,
  .preloader__struck,
  .preloader__nail,
  .preloader__impact {
    animation: none;
  }

  .preloader__hammer-pivot {
    transform: rotate(82deg);
  }
}

.page-anchors {
  position: relative;
}

.page-anchor {
  scroll-margin-top: 7rem;
  height: 1px;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--color-accent);
  color: var(--color-cta-text);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-button);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* --- Header / floating glass nav --- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: var(--header-top-pad) 1.25rem 0;
  pointer-events: none;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  pointer-events: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--nav-pad-y) 1rem var(--nav-pad-y) 0.85rem;
  border-radius: var(--radius-nav);
  background: var(--color-bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow-nav);
}

.site-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo {
  height: var(--nav-logo-height);
  width: auto;
  max-height: var(--nav-logo-height);
  object-fit: contain;
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.045);
  color: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.site-nav__toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.site-nav__toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-nav__toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-nav__panel {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.15rem;
  border-radius: 0.25rem;
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--color-accent);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-cta-text);
  background: linear-gradient(
    180deg,
    var(--color-accent-hover) 0%,
    var(--color-accent) 45%,
    var(--color-accent-deep) 100%
  );
  border: none;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 10px 28px rgba(230, 170, 26, 0.45);
}

.cta-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button--nav {
  white-space: nowrap;
  padding-inline: 1.1rem;
  padding-block: 0.55rem;
  font-size: 0.82rem;
}

.cta-button__icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
  transform: translate(0, -1px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-space) + 1.5rem) 1.5rem 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-margin-top: 6rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("../images/livingroom.webp");
  background-size: cover;
  background-position: 62% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Dark scrim so hero type reads clearly on the photo */
  background: rgba(0, 0, 0, 0.52);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-right: clamp(0px, 5vw, 3.5rem);
  box-sizing: border-box;
}

.hero__copy {
  width: 100%;
  max-width: min(46rem, calc(100% - 1rem));
  flex-shrink: 0;
}

.hero__panel {
  background: transparent;
  border-radius: 0;
  padding: clamp(1.65rem, 3.2vw, 2.35rem) clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: none;
  border: none;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 14px rgba(0, 0, 0, 0.4);
}

.hero__title {
  margin: 0 0 1.4rem;
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.11;
  letter-spacing: -0.02em;
  max-width: none;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 2px 20px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.hero__title-line {
  display: block;
}

.hero__title-line + .hero__title-line {
  margin-top: 0.06em;
}

.hero__rule {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), rgba(245, 197, 66, 0.25));
  margin: 0 auto 1.4rem;
  border-radius: 1px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.hero__lede {
  margin: 0 auto 2rem;
  font-size: clamp(1.02rem, 1.25vw, 1.1rem);
  color: rgba(255, 253, 246, 0.96);
  max-width: 62ch;
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 2px 14px rgba(0, 0, 0, 0.5);
}

.cta-button--hero {
  padding: 1rem 1.65rem;
  font-size: 0.88rem;
}

/* --- About section (homepage) --- */
.about-section {
  scroll-margin-top: 7rem;
  padding: clamp(4.25rem, 9vw, 6.25rem) 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border-subtle);
}

.about-section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4.5vw, 1.75rem);
  padding-right: clamp(1.25rem, 4.5vw, 1.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.35rem, 5.5vw, 4.25rem);
}

.about-section__media {
  position: relative;
}

/* Subtle gold L-accent */
.about-section__media::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -4px;
  left: -4px;
  width: min(36%, 160px);
  height: min(36%, 160px);
  border-top: 1px solid var(--color-accent);
  border-left: 1px solid var(--color-accent);
  border-radius: 0.35rem 0 0 0;
  pointer-events: none;
  opacity: 0.65;
}

.about-section__frame {
  position: relative;
  z-index: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
}

.about-section__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.about-section__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-section__title {
  margin: 0 0 1.15rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.about-section__rule {
  width: 2.75rem;
  height: 2px;
  background: var(--color-accent-soft);
  margin: 0 0 1.35rem;
  border-radius: 1px;
}

.about-section__body {
  margin: 0 0 2.35rem;
}

.about-section__body p {
  margin: 0 0 1.1rem;
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.about-section__body p:last-child {
  margin-bottom: 0;
}

.about-section__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2rem;
}

.about-section__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.about-section__highlight-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-accent);
  display: flex;
  opacity: 0.92;
}

.about-section__highlight-icon svg path {
  stroke-width: 2;
}

@media (max-width: 900px) {
  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .about-section__media {
    max-width: min(28rem, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .about-section__highlights {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .about-section {
    padding: 3.35rem 0 4rem;
  }

  .about-section__inner {
    gap: 2rem;
    padding-left: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-left, 0px) + 0.5rem)
    );
    padding-right: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-right, 0px) + 0.5rem)
    );
  }

  .about-section__title {
    margin-bottom: 1.25rem;
  }

  .about-section__body {
    margin-bottom: 1.75rem;
  }
}

/* --- Responsive: tablet --- */
@media (max-width: 960px) {
  .hero__media {
    background-position: center center;
  }

  .hero__content {
    padding-right: clamp(0px, 3vw, 2rem);
  }

  .hero__copy {
    max-width: min(42rem, calc(100% - 1rem));
  }

  .hero__title {
    max-width: none;
  }
}

/* --- Hero: mobile spacing (breathing room, premium rhythm) --- */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-space) + 2rem);
    padding-bottom: 3.75rem;
    padding-left: max(
      clamp(1.25rem, 4.5vw, 1.75rem),
      calc(env(safe-area-inset-left, 0px) + 0.75rem)
    );
    padding-right: max(
      clamp(1.25rem, 4.5vw, 1.75rem),
      calc(env(safe-area-inset-right, 0px) + 0.75rem)
    );
    box-sizing: border-box;
  }

  .hero__content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__panel {
    padding: 1.45rem clamp(1.2rem, 4vw, 1.65rem);
  }

  .hero__eyebrow {
    margin-bottom: 1.25rem;
  }

  .hero__title {
    margin-bottom: 1.35rem;
  }

  .hero__rule {
    margin-bottom: 1.3rem;
  }

  .hero__lede {
    max-width: none;
    margin-bottom: 2.1rem;
    line-height: 1.62;
  }

  .cta-button--hero {
    margin-top: 0.25rem;
    padding: 1.1rem 1.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* --- Responsive: mobile nav --- */
@media (max-width: 780px) {
  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav__panel {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: calc(var(--nav-logo-height) + (var(--nav-pad-y) * 2) + 0.85rem);
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: var(--radius-nav);
    background: rgba(247, 246, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-subtle);
    box-shadow: 0 20px 48px rgba(28, 30, 34, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s linear;
  }

  .site-nav--open .site-nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav--open .site-nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav--open .site-nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-nav--open .site-nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: relative;
  }

  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav__link {
    display: block;
    padding: 0.65rem 0.5rem;
    font-size: 1rem;
  }

  .cta-button--nav {
    width: 100%;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-logo-height: 4.65rem;
    --nav-pad-y: 0.06rem;
    --header-space: calc(
      var(--header-top-pad) + var(--nav-logo-height) + (var(--nav-pad-y) * 2) + 0.25rem
    );
  }

  .hero {
    padding-top: calc(var(--header-space) + 2.25rem);
    padding-bottom: 4rem;
    padding-left: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-left, 0px) + 0.75rem)
    );
    padding-right: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-right, 0px) + 0.75rem)
    );
  }

  .hero__copy {
    max-width: none;
  }

  .hero__panel {
    padding: 1.3rem 1.2rem;
  }

  .hero__eyebrow {
    margin-bottom: 1.2rem;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.6rem);
    margin-bottom: 1.35rem;
  }

  .hero__rule {
    margin-bottom: 1.25rem;
  }

  .hero__lede {
    max-width: none;
    margin-bottom: 2.35rem;
  }

  .cta-button--hero {
    margin-top: 0.35rem;
    padding: 1.15rem 1.5rem;
    width: 100%;
    max-width: 100%;
  }
}

/* --- Services section (homepage) --- */
.services-section {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 7rem;
  padding: clamp(3.85rem, 8.5vw, 6.35rem) 0 clamp(4.75rem, 10vw, 7.25rem);
  border-top: 1px solid rgba(28, 30, 34, 0.06);
  background: linear-gradient(
    180deg,
    #fcfaf6 0%,
    #f6f2ec 42%,
    #ebe6df 100%
  );
  overflow: hidden;
}

.services-section::before {
  content: "";
  position: absolute;
  inset: -35% -25% auto -25%;
  height: 90%;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    rgba(255, 255, 255, 0.85),
    transparent 55%
  );
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.services-section::after {
  content: "";
  position: absolute;
  width: min(100vw, 56rem);
  height: min(100vw, 56rem);
  left: -15%;
  bottom: -35%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(245, 197, 66, 0.07),
    transparent 65%
  );
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
}

.services-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4.5vw, 1.75rem);
  padding-right: clamp(1.25rem, 4.5vw, 1.75rem);
}

.services-section__header {
  max-width: min(42rem, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.65rem, 3.25vw, 2.35rem);
  text-align: center;
}

.services-section__title-wrap {
  display: flex;
  justify-content: center;
}

.services-section__eyebrow {
  margin: 0 0 0.62rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  opacity: 0.88;
}

.services-section__title {
  margin: 0 0 0.85rem;
  max-width: 36rem;
  font-size: clamp(1.45rem, 3.1vw, 2.05rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.028em;
  color: var(--color-text);
  text-wrap: balance;
}

.services-section__rule {
  width: 2.25rem;
  height: 1px;
  margin: 0 auto 0.85rem;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230, 170, 26, 0.35),
    rgba(245, 197, 66, 0.85),
    rgba(230, 170, 26, 0.35),
    transparent
  );
  opacity: 0.65;
}

.services-section__intro {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(0.91rem, 1.1vw, 0.99rem);
  font-weight: 400;
  line-height: 1.68;
  color: var(--color-text-muted);
}

.services-section__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.35rem, 2.8vw, 2rem);
  align-items: stretch;
}

.services-section__grid-cell {
  display: flex;
  min-height: 0;
}

.services-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: clamp(16.5rem, 32vw, 21.5rem);
  aspect-ratio: 16 / 11;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #1a1814;
  border-radius: 16px;
  border: 1px solid rgba(28, 30, 34, 0.14);
  box-shadow: 0 10px 40px rgba(20, 18, 16, 0.14), 0 2px 8px rgba(20, 18, 16, 0.06);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.services-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.services-card__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(8, 7, 6, 0.9) 0%,
    rgba(8, 7, 6, 0.55) 42%,
    rgba(8, 7, 6, 0.15) 68%,
    transparent 100%
  );
}

.services-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(0.65rem, 2vw, 1.15rem);
  padding: 1.35rem 1.2rem 1.45rem;
}

.services-card__textblock {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.services-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  margin-top: 0.06rem;
  color: var(--color-accent-hover);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.services-card__svg {
  display: block;
  flex-shrink: 0;
}

.services-card__copy {
  min-width: 0;
}

.services-card__title {
  margin: 0 0 0.38rem;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: #faf8f4;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.services-card__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(252, 250, 246, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.services-card__arrow {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 0.12rem;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
}

.services-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(20, 18, 16, 0.2), 0 0 0 1px rgba(245, 197, 66, 0.18);
}

.services-card:hover .services-card__img {
  transform: scale(1.06);
}

.services-card:hover .services-card__arrow {
  transform: translateX(5px);
}

.services-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg-warm), 0 0 0 4px var(--color-accent-deep),
    0 20px 48px rgba(20, 18, 16, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .services-card {
    transition: box-shadow 0.2s ease;
  }

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

  .services-card__img,
  .services-card__arrow {
    transition: none;
  }

  .services-card:hover .services-card__img {
    transform: none;
  }

  .services-card:hover .services-card__arrow {
    transform: none;
  }
}

.services-section__cta {
  margin-top: clamp(3.65rem, 8vw, 5rem);
  text-align: center;
}

.services-section__cta-label {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.cta-button--services {
  padding: 1rem 1.65rem;
  font-size: 0.88rem;
}

@media (max-width: 1023px) {
  .services-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.05rem);
  }
}

@media (max-width: 680px) {
  .services-section__grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .services-card:hover {
    transform: translateY(-3px);
  }

  .services-card {
    aspect-ratio: 5 / 4;
    min-height: 15.5rem;
  }

  .services-card__content {
    padding: 1.15rem 1.05rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .services-section {
    padding: 3.35rem 0 4.1rem;
  }

  .services-section__header {
    margin-bottom: clamp(1.35rem, 4vw, 1.85rem);
  }

  .services-section__inner {
    padding-left: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-left, 0px) + 0.5rem)
    );
    padding-right: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-right, 0px) + 0.5rem)
    );
  }

  .services-card {
    border-radius: 14px;
  }

  .services-card__content {
    padding: 1.1rem 1rem 1.2rem;
  }

  .cta-button--services {
    width: 100%;
    max-width: 22rem;
  }
}

/* --- FAQ section (homepage) --- */
.faq-section {
  scroll-margin-top: 7rem;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: var(--color-bg-deep);
  border-top: 1px solid var(--color-border-subtle);
}

.faq-section__inner {
  max-width: 760px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4.5vw, 1.75rem);
  padding-right: clamp(1.25rem, 4.5vw, 1.75rem);
}

.faq-section__header {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.35rem);
  text-align: center;
}

.faq-section__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.faq-section__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}

.faq-section__intro {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--color-text-muted);
}

.faq-section__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-item__summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  outline: none;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary::after {
  content: "+";
  float: right;
  font-weight: 600;
  color: var(--color-accent-deep);
  margin-left: 0.75rem;
}

.faq-item[open] .faq-item__summary::after {
  content: "–";
}

.faq-item__summary:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: -2px;
}

.faq-item__body {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid rgba(28, 30, 34, 0.06);
}

.faq-item__text {
  margin: 0;
  padding-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .faq-item__summary {
    font-size: 0.9rem;
  }
}

/* --- Projects section (homepage) --- */
.projects-section {
  scroll-margin-top: 7rem;
  padding: clamp(4rem, 8vw, 5.75rem) 0;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border-subtle);
}

.projects-section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 4.5vw, 1.75rem);
  padding-right: clamp(1.25rem, 4.5vw, 1.75rem);
}

.projects-section__header {
  max-width: min(52rem, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.projects-section__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.projects-section__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-wrap: balance;
}

.projects-section__intro {
  margin: 0 auto;
  max-width: 48rem;
  font-size: clamp(1rem, 1.2vw, 1.06rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.45rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.projects-filter__chip {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-elevated);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease;
}

.projects-filter__chip:hover {
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--color-text);
}

.projects-filter__chip--active {
  background: rgba(245, 197, 66, 0.16);
  border-color: var(--color-accent-soft);
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.projects-filter__chip:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.projects-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.projects-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: clamp(2rem, 4.5vw, 2.75rem);
  padding: 0;
}

.projects-pagination__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.projects-pagination__arrow:hover:not(:disabled) {
  border-color: var(--color-accent-soft);
  background: rgba(245, 197, 66, 0.12);
}

.projects-pagination__arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.projects-pagination__arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.projects-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects-pagination__num {
  min-width: 2.6rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.projects-pagination__num:hover:not(.projects-pagination__num--active) {
  border-color: rgba(0, 0, 0, 0.14);
}

.projects-pagination__num:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.projects-pagination__num--active {
  background: rgba(245, 197, 66, 0.2);
  border-color: var(--color-accent-soft);
  box-shadow: 0 2px 8px rgba(28, 30, 34, 0.08);
}

.projects-pagination__meta {
  width: 100%;
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.projects-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  .projects-card {
    transition: none;
  }

  .projects-card:hover .projects-card__img {
    transform: none;
  }
}

.projects-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09);
  border-color: var(--color-accent-soft);
}

.projects-card__category {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.projects-card__title {
  margin: 0 0 1rem;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.projects-card__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.05rem;
}

.projects-card__shot {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e2d9c8;
  cursor: zoom-in;
}

.projects-card__shot:focus {
  outline: none;
}

.projects-card__shot:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 3px;
}

.projects-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(247, 246, 244, 0.96);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(28, 30, 34, 0.08);
}

.projects-card__badge--after {
  background: rgba(245, 197, 66, 0.35);
}

.projects-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.projects-card:hover .projects-card__img {
  transform: scale(1.04);
}

.projects-card__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--color-text-muted);
}

.projects-section__cta {
  margin-top: clamp(2.75rem, 6vw, 3.75rem);
  text-align: center;
}

.projects-section__cta-label {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.cta-button--projects {
  padding: 1rem 1.65rem;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .projects-card__compare {
    grid-template-columns: 1fr;
  }

  .projects-section__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .projects-section {
    padding: 3.25rem 0 3.75rem;
  }

  .projects-section__inner {
    padding-left: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-left, 0px) + 0.5rem)
    );
    padding-right: max(
      clamp(1.25rem, 5vw, 1.75rem),
      calc(env(safe-area-inset-right, 0px) + 0.5rem)
    );
  }

  .projects-card {
    padding: 1.35rem 1.15rem 1.4rem;
  }

  .projects-filter__chip {
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
  }

  .cta-button--projects {
    width: 100%;
    max-width: 22rem;
  }
}

/* --- Project gallery image lightbox --- */
.project-lightbox {
  width: 100vw;
  width: 100dvw;
  max-width: 100vw;
  max-width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: clamp(2rem, 6vw, 3.5rem);
  border: none;
  background: transparent;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Author `display:flex` on `<dialog>` overrides UA `dialog:not([open]){display:none}`
   in some browsers, leaving an invisible "stuck" layer after close(). */
.project-lightbox:not([open]) {
  display: none;
  pointer-events: none;
}

.project-lightbox::backdrop {
  background: rgba(26, 22, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-lightbox__shell {
  position: relative;
  width: 100%;
  max-width: min(90vw, 40rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.project-lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  background: rgba(247, 246, 244, 0.96);
  border: 1px solid rgba(42, 36, 28, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(28, 24, 20, 0.15);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.project-lightbox__close:hover {
  background: #fff;
  border-color: rgba(230, 170, 26, 0.45);
}

.project-lightbox__close:active {
  transform: scale(0.96);
}

.project-lightbox__close:focus {
  outline: none;
}

.project-lightbox__close:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}

.project-lightbox__frame {
  --project-lightbox-viewport-h: min(72vh, 72dvh, 28rem);
  position: relative;
  z-index: 1;
  width: 100%;
  height: var(--project-lightbox-viewport-h);
  max-height: var(--project-lightbox-viewport-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: #1a1814;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 252, 248, 0.08);
}

.project-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (prefers-reduced-motion: reduce) {
  .project-lightbox__close {
    transition: none;
  }

  .project-lightbox__close:active {
    transform: none;
  }
}

/* --- Contact section (homepage, single-page) --- */
.contact-section {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 7rem;
  padding: clamp(3.5rem, 7.5vw, 5.25rem)
    max(1.25rem, env(safe-area-inset-right, 0px))
    clamp(3.5rem, 7.5vw, 5.25rem)
    max(1.25rem, env(safe-area-inset-left, 0px));
  background: linear-gradient(
    180deg,
    #f7f5f1 0%,
    #f1ede7 38%,
    #ebe6df 100%
  );
  border-top: 1px solid rgba(42, 36, 28, 0.06);
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  width: min(90vw, 42rem);
  height: min(90vw, 42rem);
  right: -20%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(245, 197, 66, 0.09),
    transparent 68%
  );
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.contact-section__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.contact-section__header {
  text-align: center;
  max-width: min(36rem, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(1.5rem, 3.5vw, 2rem);
}

.contact-section__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(122, 92, 24, 0.92);
}

.contact-section__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.75vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text);
  text-wrap: balance;
}

.contact-section__intro {
  margin: 0 auto;
  max-width: 31rem;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  font-weight: 400;
  line-height: 1.58;
  color: var(--color-text-muted);
}

.contact-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: min(38rem, 100%);
  margin: 0 auto clamp(1.25rem, 3vw, 1.65rem);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.contact-banner__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-accent-deep);
}

.contact-banner--success {
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.28);
  color: var(--color-text);
}

.contact-banner--error {
  background: rgba(180, 40, 40, 0.05);
  border: 1px solid rgba(180, 40, 40, 0.18);
  color: #5c1a1a;
}

.contact-section__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.15rem);
  width: 100%;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 880px) {
  .contact-section__body {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(1.75rem, 3.5vw, 2.35rem);
    align-items: stretch;
  }
}

.contact-section__aside {
  display: block;
  min-width: 0;
}

@media (min-width: 880px) {
  .contact-section__aside {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
  }

  .contact-section__media {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .contact-section__frame {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .contact-form-card {
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }
}

.contact-section__media {
  position: relative;
}

.contact-section__media::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -3px;
  left: -3px;
  width: min(32%, 120px);
  height: min(26%, 100px);
  border-top: 1px solid rgba(245, 197, 66, 0.55);
  border-left: 1px solid rgba(245, 197, 66, 0.55);
  border-radius: 0.4rem 0 0 0;
  pointer-events: none;
  opacity: 0.75;
}

.contact-section__frame {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(28, 24, 20, 0.08), 0 2px 8px rgba(28, 24, 20, 0.04);
  border: 1px solid rgba(42, 36, 28, 0.07);
  max-width: 100%;
}

.contact-section__image-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    185deg,
    rgba(250, 248, 244, 0) 38%,
    rgba(62, 52, 42, 0.12) 100%
  );
  opacity: 0.55;
}

.contact-section__image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 880px) {
  .contact-section__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    min-height: 0;
    object-fit: cover;
    object-position: center 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-section__image {
    transition: none;
  }
}

.contact-section__aside:hover .contact-section__image {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .contact-section__aside:hover .contact-section__image {
    transform: none;
  }
}

.contact-form-card {
  position: relative;
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid rgba(42, 36, 28, 0.07);
  border-radius: 14px;
  padding: clamp(1.45rem, 2.5vw, 1.72rem);
  box-shadow: 0 8px 32px rgba(28, 24, 20, 0.05), 0 1px 3px rgba(28, 24, 20, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-form-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 197, 66, 0.4) 20%,
    var(--color-accent) 50%,
    rgba(245, 197, 66, 0.4) 80%,
    transparent 100%
  );
  opacity: 0.9;
}

.contact-form {
  position: relative;
  z-index: 1;
}

.contact-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.contact-form-global-error {
  margin: 0 0 1rem;
  padding: 0.72rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: #6b1818;
  background: rgba(180, 40, 40, 0.07);
  border: 1px solid rgba(180, 40, 40, 0.2);
  border-radius: 10px;
}

.contact-form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__row {
  margin-bottom: 1.28rem;
}

.contact-form__row--split {
  display: grid;
  gap: 1.28rem;
}

@media (min-width: 560px) {
  .contact-form__row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-field {
  margin-bottom: 0;
}

.contact-field__label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(90, 86, 78, 0.88);
}

.contact-field__req {
  color: var(--color-accent-deep);
  font-weight: 600;
}

.contact-field__input {
  width: 100%;
  padding: 0.82rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--color-text);
  background: rgba(247, 245, 241, 0.75);
  border: 1px solid rgba(42, 36, 28, 0.09);
  border-radius: 11px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.contact-field__input::placeholder {
  color: rgba(120, 116, 108, 0.55);
}

.contact-field__input:hover {
  border-color: rgba(42, 36, 28, 0.12);
  background: rgba(252, 250, 246, 0.92);
}

.contact-field__input:focus {
  outline: none;
  border-color: rgba(230, 170, 26, 0.55);
  background: #fffcf8;
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.2), 0 2px 12px rgba(245, 197, 66, 0.06);
}

.contact-field__input.contact-field__input--error {
  border-color: rgba(180, 40, 40, 0.4);
  box-shadow: 0 0 0 3px rgba(180, 40, 40, 0.1);
}

.contact-field__input--textarea {
  min-height: 6.75rem;
  resize: vertical;
}

.contact-field__select-wrap {
  position: relative;
}

.contact-field__select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.12rem;
  border-right: 2px solid rgba(122, 92, 24, 0.65);
  border-bottom: 2px solid rgba(122, 92, 24, 0.65);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.85;
}

.contact-field__input--select {
  appearance: none;
  padding-right: 2.45rem;
  cursor: pointer;
}

.contact-field__error {
  margin: 0.32rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8a2222;
}

.contact-form__footer {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-form__fineprint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(107, 101, 88, 0.92);
  max-width: 34rem;
}

.contact-form__btn-spinner {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(20, 20, 20, 0.1);
  border-top-color: var(--color-accent-deep);
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 0.45rem;
  animation: contact-spin 0.65s linear infinite;
}

.contact-form.is-loading .contact-form__btn-spinner {
  display: inline-block;
}

@keyframes contact-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__btn-spinner {
    animation: none;
    border-top-color: rgba(20, 20, 20, 0.25);
  }
}

.contact-form.is-loading .contact-form__btn-label {
  opacity: 0.85;
}

.contact-form .cta-button--contact {
  padding: 0.72rem 1.42rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(230, 170, 26, 0.22), 0 1px 2px rgba(28, 24, 20, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.contact-form .cta-button--contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 197, 66, 0.38), 0 2px 8px rgba(28, 24, 20, 0.08);
  filter: brightness(1.02);
}

.contact-form .cta-button--contact:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-form .cta-button--contact,
  .contact-form .cta-button--contact:hover {
    transition: none;
    transform: none;
  }
}

.contact-direct {
  margin-top: 0;
  padding-top: 1.25rem;
  text-align: left;
}

.contact-direct__divider {
  height: 1px;
  margin-bottom: 1rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(42, 36, 28, 0.1) 15%,
    rgba(42, 36, 28, 0.1) 85%,
    transparent
  );
  border: 0;
}

.contact-direct__heading {
  margin: 0 0 0.65rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(122, 92, 24, 0.88);
}

.contact-direct__row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-direct__icon {
  flex-shrink: 0;
  margin-top: 0.08rem;
  color: rgba(122, 92, 24, 0.75);
  display: flex;
}

.contact-direct__icon svg {
  display: block;
}

.contact-direct__body {
  min-width: 0;
}

.contact-direct__email {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 197, 66, 0.45);
  padding-bottom: 0.06rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  word-break: break-word;
}

.contact-direct__email:hover {
  color: var(--color-accent-deep);
  border-bottom-color: var(--color-accent);
}

.contact-direct__email:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-direct__meta {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(90, 88, 80, 0.85);
}

.contact-form-success {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.contact-form-success__inner {
  max-width: 22rem;
  margin: 0 auto;
}

.contact-form-success__check {
  display: block;
  margin: 0 auto 0.85rem;
  color: var(--color-accent-deep);
}

.contact-form-success__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.contact-form-success__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .contact-section {
    padding: 2.85rem
      max(1.25rem, env(safe-area-inset-right, 0px))
      3.35rem
      max(1.25rem, env(safe-area-inset-left, 0px));
  }

  .contact-section__header {
    margin-bottom: clamp(1.25rem, 4vw, 1.5rem);
  }

  .contact-form .cta-button--contact {
    width: 100%;
    max-width: 22rem;
    justify-content: center;
    box-sizing: border-box;
  }

  .contact-form__footer {
    align-items: stretch;
  }

  .contact-form__footer .cta-button--contact {
    justify-content: center;
  }

  .contact-section__frame {
    max-height: none;
  }

  .contact-section__image {
    max-height: none;
    aspect-ratio: 4 / 5;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-field__input,
  .contact-direct__email,
  .contact-form .cta-button--contact {
    transition: none;
  }
}

/* --- Site footer - premium warm band, aligned with site visual language --- */
.site-footer {
  position: relative;
  margin-top: 0;
  color: var(--color-text);
  background: linear-gradient(
    180deg,
    #e3ded6 0%,
    #d8d2c8 42%,
    #cbc4b8 100%
  );
  border-top: 1px solid rgba(42, 36, 28, 0.08);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -12px 36px rgba(245, 197, 66, 0.06);
}

.site-footer__accent {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 197, 66, 0.5) 18%,
    var(--color-accent) 50%,
    rgba(245, 197, 66, 0.5) 82%,
    transparent 100%
  );
  box-shadow: 0 3px 20px rgba(230, 170, 26, 0.22);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 2.85rem) clamp(1.25rem, 4.5vw, 1.75rem) 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.35rem);
  padding-bottom: clamp(1.65rem, 3.5vw, 2.1rem);
  border-bottom: 1px solid rgba(42, 36, 28, 0.085);
}

@media (min-width: 800px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.72fr) minmax(0, 1.06fr);
    gap: clamp(1.85rem, 4.5vw, 3rem);
    align-items: start;
  }

  .site-footer__col--nav {
    padding-left: clamp(0.5rem, 2vw, 1.25rem);
  }

  .site-footer__col--contact {
    justify-self: end;
    max-width: 22rem;
    width: 100%;
  }
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.site-footer__col--contact {
  align-items: stretch;
}

.site-footer__brand-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 0.85rem;
  transition: opacity 0.2s ease;
}

.site-footer__brand-link:hover {
  opacity: 0.88;
}

.site-footer__logo {
  width: auto;
  max-height: 4.1rem;
  height: auto;
  display: block;
}

.site-footer__tagline {
  margin: 0 0 1.15rem;
  max-width: 22rem;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.01em;
  color: rgba(42, 36, 28, 0.76);
}

.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  color: rgba(42, 36, 28, 0.55);
  background: rgba(255, 252, 247, 0.35);
  border: 1px solid rgba(42, 36, 28, 0.08);
  box-shadow: 0 1px 2px rgba(28, 24, 20, 0.04);
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}

.site-footer__social-link:hover {
  color: var(--color-accent-deep);
  background: rgba(255, 252, 247, 0.75);
  border-color: rgba(245, 197, 66, 0.35);
  box-shadow: 0 4px 14px rgba(28, 24, 20, 0.07);
  transform: translateY(-2px);
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
}

.site-footer__social-svg {
  display: block;
  flex-shrink: 0;
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(122, 92, 24, 0.92);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-footer__link {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(42, 36, 28, 0.72);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.22s ease;
  padding-bottom: 0.1rem;
}

.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-deep), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.85;
}

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

.site-footer__link:hover::after {
  transform: scaleX(1);
}

.site-footer__link:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer__email-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.site-footer__email-icon {
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: rgba(122, 92, 24, 0.75);
  display: flex;
}

.site-footer__email-icon svg {
  display: block;
}

.site-footer__email {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(42, 36, 28, 0.88);
  text-decoration: none;
  line-height: 1.45;
  word-break: break-word;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.site-footer__email:hover {
  color: var(--color-accent-deep);
  border-bottom-color: rgba(245, 197, 66, 0.55);
}

.site-footer__email:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-footer__location {
  margin: 0 0 1.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(42, 36, 28, 0.55);
}

.site-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.62rem 1.2rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1814;
  background: linear-gradient(
    180deg,
    rgba(255, 253, 246, 0.95) 0%,
    rgba(247, 244, 238, 0.92) 100%
  );
  border: 1px solid rgba(42, 36, 28, 0.12);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(28, 24, 20, 0.06), 0 1px 2px rgba(28, 24, 20, 0.04);
  transition: color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease,
    transform 0.22s ease, background 0.22s ease;
}

.site-footer__cta:hover {
  color: #141210;
  border-color: rgba(245, 197, 66, 0.55);
  background: linear-gradient(
    180deg,
    rgba(255, 250, 232, 0.98) 0%,
    rgba(252, 240, 200, 0.45) 100%
  );
  box-shadow: 0 6px 20px rgba(245, 197, 66, 0.18), 0 2px 6px rgba(28, 24, 20, 0.06);
  transform: translateY(-1px);
}

.site-footer__cta:focus-visible {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 3px;
}

.site-footer__cta-arrow {
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.88;
  transform: translate(0, -1px);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.2rem) 0 clamp(1.25rem, 3vw, 1.6rem);
}

.site-footer__legal {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(42, 36, 28, 0.58);
}

.site-footer__areas {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(42, 36, 28, 0.58);
  text-align: right;
}

@media (max-width: 799px) {
  .site-footer__areas {
    text-align: left;
  }
}

@media (max-width: 799px) {
  .site-footer__col--nav {
    margin-top: 0.15rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(42, 36, 28, 0.06);
  }

  .site-footer__col--contact {
    margin-top: 0.15rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(42, 36, 28, 0.06);
  }

  .site-footer__cta {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 479px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__brand-link,
  .site-footer__social-link,
  .site-footer__link,
  .site-footer__link::after,
  .site-footer__email,
  .site-footer__cta {
    transition: none;
  }

  .site-footer__social-link:hover,
  .site-footer__cta:hover {
    transform: none;
  }
}

/* Inner-page placeholders until full content is published */
.page-placeholder {
  padding: calc(var(--header-space) + 1.5rem) 1.5rem 3rem;
  background: var(--color-bg-elevated);
}

.page-placeholder__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.page-placeholder__title {
  max-width: none;
  color: var(--color-text);
}

.page-placeholder__lede {
  max-width: 42ch;
  color: var(--color-text-muted);
}

.page-placeholder__lede a {
  color: var(--color-accent);
}
