/* ==========================================================================
   Sovereign Developments — modern redesign mockup
   Brand colors: black, white, yellow (#fef100)
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-fg: #0a0a0a;
  --color-fg-soft: #2a2a2a;
  --color-muted: #6b6b6b;
  --color-line: #e8e8e8;
  --color-line-soft: #f3f3f3;
  --color-yellow: #fef100;
  --color-yellow-deep: #ebd900;

  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;

  --max-w: 1440px;
  --gutter: clamp(1.5rem, 4vw, 4rem);

  /* Marquee strip height — used by the hero so hero + marquee = 100svh */
  --marquee-h: 60px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 720px) {
  :root { --marquee-h: 56px; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--color-yellow); color: var(--color-fg); }

/* ----- Layout helpers ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-tight { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* ----- Dark section variant ----- */
.section--dark {
  background: var(--color-fg);
  color: var(--color-bg);
  position: relative;
  isolation: isolate;
}
/* Subtle ambient glow + grain so glass cards have something to refract */
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% 18%, rgba(254, 241, 0, 0.07), transparent 60%),
    radial-gradient(800px 600px at 88% 82%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}
.section--dark .eyebrow { color: rgba(255, 255, 255, 0.55); }
.section--dark .eyebrow::before { background: rgba(255, 255, 255, 0.4); }
.section--dark .section-head__title em { color: var(--color-yellow); }
.section--dark .section-head__link { border-bottom-color: rgba(255, 255, 255, 0.7); }
.section--dark .section-head__link:hover { color: var(--color-yellow); border-bottom-color: var(--color-yellow); }

/* ----- Glass surface utility ----- */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 40px -20px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.glass--light {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 40px -20px rgba(0, 0, 0, 0.15);
}

.eyebrow,
h1.eyebrow,
.page-hero__h1 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--color-fg);
  display: inline-block;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease);
  color: #fff;
}

/* Apply the "difference" blend only to the text bits of the nav when it's
   floating over the hero video — never on the dropdown or the yellow CTA,
   so the button stays a clean solid yellow regardless of what's behind it. */
.nav:not(.scrolled):not(.nav--solid) .nav__brand,
.nav:not(.scrolled):not(.nav--solid) .nav__menu,
.nav:not(.scrolled):not(.nav--solid) .nav__toggle {
  mix-blend-mode: difference;
}

.nav.scrolled,
.nav.nav--solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--color-fg);
  padding: 0.85rem var(--gutter);
  border-bottom: 1px solid var(--color-line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.nav__brand img {
  height: 48px;
  width: auto;
  max-width: 240px;
}
/* The horizontal logo is wordmark + icon together, so the separate text
   label that used to sit beside the small icon is no longer needed. */
.nav__brand-text { display: none; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav__menu > li { position: relative; }
.nav__menu > li > a, .nav__menu > li > button.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
  transition: opacity 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  font-family: inherit;
}
.nav__menu > li > a::after, .nav__menu > li > button.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav__menu > li > a:hover::after, .nav__menu > li > button.nav__link:hover::after { width: 100%; }
.nav__menu .caret {
  font-size: 0.6em;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}
.nav__menu li.has-dropdown:hover .caret { transform: rotate(180deg); }

/* Dropdown panel — frosted glass */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 240px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 20px 50px -20px rgba(0, 0, 0, 0.25);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  color: var(--color-fg);
}
.nav__menu li.has-dropdown:hover .nav__dropdown,
.nav__menu li.has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav__dropdown li { display: block; }
.nav__dropdown a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease);
}
.nav__dropdown a small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0;
}
.nav__dropdown a:hover { background: rgba(254, 241, 0, 0.45); }
.nav__dropdown::after { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 12px; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--color-yellow);
  color: var(--color-fg);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
  mix-blend-mode: normal;
}
.nav__cta:hover {
  background: var(--color-yellow-deep);
  transform: translateY(-1px);
}
.nav__cta::after { content: "→"; transition: transform 0.25s var(--ease); }
.nav__cta:hover::after { transform: translateX(3px); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
  position: relative;
}
.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Mobile drawer (off-canvas) ===== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 6rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer ul { list-style: none; }
.mobile-drawer > ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-drawer > ul > li > a,
.mobile-drawer > ul > li > .m-acc__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.mobile-drawer .m-acc__head .caret { transition: transform 0.3s var(--ease); }
.mobile-drawer .m-acc.is-open .m-acc__head .caret { transform: rotate(180deg); }
.mobile-drawer .m-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.mobile-drawer .m-acc.is-open .m-acc__panel { max-height: 500px; }
.mobile-drawer .m-acc__panel ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-drawer .m-acc__panel a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0 0.4rem 1rem;
  border-left: 2px solid var(--color-yellow);
  display: block;
}
.mobile-drawer__cta {
  margin-top: auto;
  padding: 2rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-drawer__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--color-yellow);
  color: var(--color-fg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.mobile-drawer__cta .m-contact {
  background: transparent;
  color: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}

/* ==========================================================================
   Hero — 16:9 video, title overlaid + visible on load
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  /* Sized so the hero + the marquee strip together fit in one viewport.
     User lands on the page and sees the headline + horizontal marquee
     without needing to scroll. */
  height: calc(100svh - var(--marquee-h, 60px));
  min-height: 480px;
  max-height: 100svh;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
  padding-top: clamp(5rem, 7vw, 6rem);
  padding-bottom: clamp(1rem, 2vw, 1.75rem);
}
/* Narrow-desktop / tablet — caught between full desktop and the phone
   media query at 720px (e.g. 724×900 windows, devtools docked, etc.) */
@media (max-width: 1024px) {
  .hero {
    padding-top: clamp(4rem, 6vw, 5rem);
    padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  }
  .hero__title {
    font-size: clamp(2rem, 5vw, 3.35rem);
    max-width: 22ch;
  }
}
@media (max-width: 720px) {
  .hero {
    height: calc(100svh - var(--marquee-h, 56px));
    min-height: 520px;
    padding-top: clamp(5rem, 14vw, 6rem);
  }
  .hero__content {
    transform: translateY(-46px);
  }
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.6) 100%);
}

.hero__content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  transform: translateY(-100px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 4.65vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.hero__title .hero__highlight {
  color: var(--color-yellow);
  font-weight: 700;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: clamp(2rem, 5vw, 3.35rem);
    max-width: 22ch;
  }
}

@media (max-width: 720px) {
  .hero__content {
    transform: translateY(-46px);
  }
}

.hero__meta {
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
  max-width: 26ch;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 12px 40px -20px rgba(0, 0, 0, 0.5);
}
.hero__meta strong { display: block; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; color: var(--color-yellow); }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: currentColor;
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 720px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__meta { text-align: left; }
}

/* ==========================================================================
   Marquee strip (between hero and intro)
   ========================================================================== */
.marquee {
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 1px solid var(--color-fg);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.04em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee__track span::after {
  content: "✦";
  color: var(--color-yellow);
  font-size: 0.85em;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Marquee scrolls 2x faster on mobile (it covers less width per loop there) */
@media (max-width: 720px) { .marquee__track { animation-duration: 19s; } }

/* ==========================================================================
   Intro section — copy + photo side by side
   ========================================================================== */
.intro {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-top: 1.25rem;
}
.intro__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.intro__copy p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--color-fg-soft);
  max-width: 56ch;
}
.intro__copy p + p { margin-top: 1.1rem; }
.intro__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-line-soft);
  border-radius: 4px;
  position: relative;
}
.intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.intro__photo--logo {
  background: transparent;
}
.intro__photo--logo img {
  object-fit: contain;
  padding: clamp(2rem, 5vw, 4rem);
}
.intro__photo:hover img { transform: scale(1.03); }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro__photo { aspect-ratio: 4 / 3; max-height: 60vh; }
}

/* ==========================================================================
   Stats bar (dark + glass tiles)
   ========================================================================== */
.stats-section {
  background: var(--color-fg);
  color: var(--color-bg);
  padding: clamp(3rem, 5vw, 5rem) 0;
  position: relative;
  isolation: isolate;
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 400px at 10% 50%, rgba(254, 241, 0, 0.08), transparent 60%),
    radial-gradient(500px 400px at 95% 50%, rgba(255, 255, 255, 0.06), transparent 60%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 40px -20px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.stat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(254, 241, 0, 0.3);
  transform: translateY(-2px);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat__num sup {
  font-size: 0.45em;
  vertical-align: super;
  margin-left: 0.1em;
  color: var(--color-yellow);
}
.stat__label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

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

/* ==========================================================================
   Section heading (re-usable)
   ========================================================================== */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.section-head__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--color-fg);
  padding-bottom: 0.3rem;
  transition: gap 0.25s var(--ease);
}
.section-head__link:hover { gap: 0.7rem; }

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

/* ==========================================================================
   Featured projects grid
   ========================================================================== */
.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.project {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-line-soft);
  border-radius: 4px;
  isolation: isolate;
}
.project--feat-l { grid-column: span 7; aspect-ratio: 4 / 3; }
.project--feat-r { grid-column: span 5; aspect-ratio: 5 / 6; }
.project--third { grid-column: span 4; aspect-ratio: 4 / 5; }
.project--half { grid-column: span 6; aspect-ratio: 4 / 3; }
.project--wide { grid-column: span 12; aspect-ratio: 21 / 9; }

@media (max-width: 900px) {
  .project--feat-l, .project--feat-r, .project--third, .project--half {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.5s var(--ease);
}
.project:hover img { transform: scale(1.04); }

.project__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  z-index: 2;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}
.project__caption h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.project__caption .meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
  margin-bottom: 0.4rem;
}
.project__caption .arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.project:hover .arrow {
  background: var(--color-yellow);
  color: var(--color-fg);
  border-color: var(--color-yellow);
}

/* ----- Projects on dark sections ----- */
.section--dark .project { background: rgba(255, 255, 255, 0.04); }
.section--dark .project__caption {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}

/* ----- About teaser on dark ----- */
.section--dark.about-section .about-teaser__body p { color: rgba(255, 255, 255, 0.7); }
.section--dark.about-section .about-teaser__img {
  background: rgba(255, 255, 255, 0.04);
}
.section--dark.about-section .section-head__link {
  color: var(--color-bg);
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  isolation: isolate;
}
/* Soft gradient bg behind services so glass on hover has something to refract */
.services::before {
  content: "";
  position: absolute;
  inset: -2rem;
  z-index: -1;
  background:
    radial-gradient(500px 300px at 15% 20%, rgba(254, 241, 0, 0.18), transparent 60%),
    radial-gradient(500px 400px at 85% 80%, rgba(10, 10, 10, 0.06), transparent 60%);
  filter: blur(40px);
  opacity: 0.7;
  pointer-events: none;
}
.service {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--color-bg);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.service:hover {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 50px -25px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}
.service:hover .service__num { color: var(--color-yellow-deep); }
.service__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  transition: color 0.25s var(--ease);
}
.service__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  margin-top: 2.5rem;
}
.service__copy {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.55;
}

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

/* ==========================================================================
   Why choose us — split layout
   ========================================================================== */
.why {
  background: var(--color-fg);
  color: var(--color-bg);
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.why__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.why__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-yellow);
}
.why__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin-top: 1.5rem;
  max-width: 50ch;
}
.why__pillars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pillar {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  align-items: start;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 40px -20px rgba(0, 0, 0, 0.6);
}
.pillar:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(254, 241, 0, 0.3);
}
.pillar__num {
  font-family: var(--font-display);
  color: var(--color-yellow);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.pillar__copy {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 800px) { .why__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Areas
   ========================================================================== */
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem 0.55rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.area-chip::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-yellow);
}
.area-chip:hover { background: var(--color-fg); color: #fff; border-color: var(--color-fg); }

/* ==========================================================================
   Trusted by — partner / city logos
   ========================================================================== */
.trust {
  border-top: 1px solid var(--color-line);
  padding: 4rem 0;
}
.trust__label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2.25rem;
}
.trust__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 2.5rem;
  opacity: 0.7;
}
.trust__row img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  margin: 0 auto;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.trust__row img:hover { filter: grayscale(0); }

@media (max-width: 900px) { .trust__row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* ==========================================================================
   About teaser
   ========================================================================== */
.about-teaser {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-teaser__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-line-soft);
  max-width: 380px;
}
.about-teaser__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-teaser__sticker {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--color-yellow);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-teaser__body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.about-teaser__body h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.about-teaser__body p {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--color-fg-soft);
  line-height: 1.6;
  max-width: 50ch;
}

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

/* ==========================================================================
   CTA / contact
   ========================================================================== */
.cta {
  background: var(--color-yellow);
  color: var(--color-fg);
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 0 auto;
}
.cta h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.cta__contact {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.cta__contact a { display: inline-flex; align-items: center; gap: 0.5rem; }
.cta__contact a:hover { text-decoration: underline; }
.cta__btn {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  background: var(--color-fg);
  color: var(--color-bg);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease);
}
.cta__btn:hover { transform: translateY(-2px); }
.cta__btn::after { content: "→"; transition: transform 0.25s var(--ease); }
.cta__btn:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-fg);
  color: var(--color-bg);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand img {
  width: 200px;
  filter: invert(1);
  margin-bottom: 1.25rem;
}
.footer__brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 32ch;
  line-height: 1.55;
}
.footer__col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s var(--ease);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; }
}

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Project page specific
   ========================================================================== */
.proj-hero {
  padding-top: 7.5rem;
  padding-bottom: 2rem;
}
.proj-hero__meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.proj-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.proj-hero__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.proj-hero__sub {
  color: var(--color-muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.proj-cover {
  aspect-ratio: 21 / 9;
  background: var(--color-line-soft);
  margin-top: 1.5rem;
  overflow: hidden;
}
.proj-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ----- Clickable video wrapper (used wherever a project page embeds an
   mp4). Gives the still frame a clear "play" affordance so it doesn't
   read as a static image when scrolling. ----- */
.proj-video {
  position: relative;
  display: block;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-fg);
  cursor: pointer;
  isolation: isolate;
}
.proj-video video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}
.proj-video:hover video { transform: scale(1.02); }
.proj-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 14px;
}
.proj-video::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 1;
}
.proj-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  background: var(--color-yellow);
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), opacity 0.25s var(--ease);
  z-index: 2;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(254, 241, 0, 0.3);
}
.proj-video:hover .proj-video__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--color-yellow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(254, 241, 0, 0.18);
}
.proj-video__play svg {
  width: 30px;
  height: 30px;
  fill: var(--color-fg);
  margin-left: 5px; /* nudge so the triangle looks centred */
}
.proj-video__hint {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.proj-video.is-playing::after,
.proj-video.is-playing .proj-video__play,
.proj-video.is-playing .proj-video__hint { opacity: 0; }
.proj-video.is-playing { cursor: default; }
.proj-video.is-playing video { transform: none; }

.proj-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.proj-info__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.75rem;
}
.proj-info__specs dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}
.proj-info__specs dd {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 1.1rem;
}
.proj-info__copy p {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--color-fg-soft);
  max-width: 60ch;
}
.proj-info__copy p + p { margin-top: 1.25rem; }

@media (max-width: 800px) { .proj-info { grid-template-columns: 1fr; } }

.proj-gallery {
  display: grid;
  /* old 12-col rules removed — see 3-col gallery section below */
  display: none; /* intentionally overridden */
}
/* Legacy class stubs — classes stripped from HTML but kept harmless here */
.gal--big, .gal--small, .gal--half { grid-column: unset; }

/* ----- More projects grid on project page ----- */
.more-projects {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
}
.more-projects .section-head { margin-bottom: 2.5rem; }
.more-projects--related {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.more-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.more-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}
.more-projects--related .more-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.more-projects--related .more-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 241, 0, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.more-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-line-soft);
  position: relative;
}
.more-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.more-card:hover .more-card__img img { transform: scale(1.05); }
.more-card__body {
  padding: 1rem 0.25rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}
.more-card__body .meta {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.35rem;
}
.more-card__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.section--dark .more-card__body {
  color: var(--color-bg);
  padding: 1rem;
}
.section--dark .more-card__body .meta {
  color: rgba(255, 255, 255, 0.58);
}
.more-card__body .arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.more-card:hover .arrow {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}
.coming-soon-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--color-yellow);
  color: var(--color-fg);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.more-grid--2 { grid-template-columns: repeat(2, 1fr); }
.more-grid--3 { grid-template-columns: repeat(3, 1fr); }
.more-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .more-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .more-grid, .more-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .more-grid--related { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .more-grid, .more-grid--3, .more-grid--4 { grid-template-columns: 1fr; }
  .more-card__img { aspect-ratio: 4 / 3; }
}

/* Wide variant of more-card (used in 2-col grids — wider preview photos) */
.more-card--wide .more-card__img { aspect-ratio: 16 / 10; }
.more-card--wide .more-card__body { padding: 1.25rem 0.5rem 0.5rem; }
.more-card--wide .more-card__body h3 { font-size: 1.2rem; }
.more-card--wide .arrow { width: 32px; height: 32px; font-size: 0.9rem; }

/* Dark variant of more-card (for the "earlier homes" section in dark) */
.more-card--dark .more-card__img { aspect-ratio: 16 / 9; }
.more-card--dark .more-card__body .meta { color: rgba(255, 255, 255, 0.55); }
.more-card--dark .more-card__body h3 { color: var(--color-bg); }
.more-card--dark .arrow {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-bg);
}

/* Linked variant — subtle "click me" cue: arrow gets a soft yellow tint by
   default, fills in fully on hover. Keeps it understated, not distracting. */
.more-card--linked .arrow {
  background: rgba(254, 241, 0, 0.18);
  border-color: rgba(254, 241, 0, 0.55);
}
.more-card--linked:hover .arrow {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
}

/* Static variant — for project tiles that don't navigate anywhere yet.
   No pointer cursor, no zoom, no arrow — clearly not interactive. */
.more-card--static { cursor: default; }
.more-card--static:hover .more-card__img img { transform: none; }
.more-card--static:hover .arrow {
  background: transparent;
  border-color: var(--color-line);
}
.more-card--static .arrow { display: none; }
.more-card--dark.more-card--static:hover .arrow {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Home type cards (residential / custom homes page) */
.hometype-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.hometype-card {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.4s var(--ease), background-color 0.35s var(--ease);
}
.hometype-card:hover {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 50px -25px rgba(0,0,0,0.18);
  transform: translateY(-3px);
}
.hometype-card__img {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--color-line-soft);
}
.hometype-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.hometype-card:hover .hometype-card__img img { transform: scale(1.04); }
.hometype-card__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.hometype-card__num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  transition: color 0.3s var(--ease);
}
.hometype-card:hover .hometype-card__num { color: var(--color-yellow-deep); }
.hometype-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.hometype-card p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}

@media (max-width: 900px) { .hometype-grid { grid-template-columns: 1fr; } }

/* Dark variant of hometype card (for service pages on dark sections) */
.hometype-card--dark {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-bg);
}
.hometype-card--dark:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(254, 241, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 18px 50px -25px rgba(0,0,0,0.6);
}
.hometype-card--dark .hometype-card__num { color: rgba(255, 255, 255, 0.55); }
.hometype-card--dark:hover .hometype-card__num { color: var(--color-yellow); }
.hometype-card--dark p { color: rgba(255, 255, 255, 0.65); }
.hometype-card--dark .hometype-card__img { background: rgba(255, 255, 255, 0.04); }

/* Stacked motion treatment for key building-type sections */
.hometype-grid--stacked {
  perspective: 1200px;
  isolation: isolate;
  padding: clamp(0.5rem, 1.5vw, 1rem) 0;
}
.hometype-grid--stacked .hometype-card {
  --rz: 0deg;
  --rx: 0deg;
  --ry: 0deg;
  --y: 0px;
  --scale: 1;
  position: relative;
  z-index: 1;
  transform:
    translateY(var(--y))
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(var(--rz))
    scale(var(--scale));
  transform-style: preserve-3d;
  transform-origin: center bottom;
  will-change: transform;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    opacity 0.3s var(--ease),
    filter 0.3s var(--ease),
    transform 0.55s var(--ease);
}
.hometype-grid--stacked .hometype-card:nth-child(3n + 1) { --rz: -2.2deg; --y: 0.65rem; }
.hometype-grid--stacked .hometype-card:nth-child(3n + 2) { --rz: 1.2deg; --y: -0.2rem; z-index: 2; }
.hometype-grid--stacked .hometype-card:nth-child(3n) { --rz: 2.35deg; --y: 0.75rem; }
.hometype-grid--stacked .hometype-card:nth-child(n + 4) { --y: 0.2rem; }
.hometype-grid--stacked .hometype-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.16) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.hometype-grid--stacked:hover .hometype-card {
  opacity: 0.58;
  filter: saturate(0.8);
}
.hometype-grid--stacked .hometype-card:hover {
  --rz: 0deg;
  --y: -0.95rem;
  --scale: 1.035;
  z-index: 5;
  opacity: 1;
  filter: saturate(1);
}
.hometype-grid--stacked .hometype-card:hover::before { transform: translateX(130%); }
.hometype-grid--stacked .hometype-card__img,
.hometype-grid--stacked .hometype-card__body {
  position: relative;
  z-index: 2;
}
.hometype-grid--stacked .hometype-card__img { transform: translateZ(12px); }
.hometype-grid--stacked .hometype-card__body { transform: translateZ(26px); }
@media (max-width: 900px) {
  .hometype-grid--stacked .hometype-card,
  .hometype-grid--stacked .hometype-card:nth-child(3n + 1),
  .hometype-grid--stacked .hometype-card:nth-child(3n + 2),
  .hometype-grid--stacked .hometype-card:nth-child(3n) {
    --rz: 0deg;
    --y: 0px;
  }
  .hometype-grid--stacked:hover .hometype-card {
    opacity: 1;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hometype-grid--stacked .hometype-card,
  .hometype-grid--stacked .hometype-card::before,
  .hometype-grid--stacked .hometype-card__img img {
    transition: none;
  }
  .hometype-grid--stacked .hometype-card,
  .hometype-grid--stacked .hometype-card:hover {
    --rx: 0deg !important;
    --ry: 0deg !important;
    --rz: 0deg;
    --y: 0px;
    --scale: 1;
  }
}

/* Medical services 2-column list (Primary / Additional) */
.medical-services {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  padding: 2rem 0;
}
.medical-services h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-yellow);
  margin-bottom: 1rem;
}
.medical-services ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.medical-services__additional ul {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
}
.medical-services li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 1rem;
  position: relative;
}
.medical-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-yellow);
}
@media (max-width: 800px) {
  .medical-services { grid-template-columns: 1fr; gap: 2rem; }
  .medical-services__additional ul { grid-template-columns: 1fr; }
}

/* Trust row — bigger card variant for client logos */
.trust--big { padding: 5rem 0; }
.trust__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.trust__cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.trust__card {
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  aspect-ratio: 4 / 3;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.4s var(--ease);
}
.trust__card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 50px -25px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.trust__card img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.trust__card--dark {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.trust__card--dark:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(254, 241, 0, 0.35) !important;
}
.trust__card--dark img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.trust__card--dark:hover img { opacity: 1; }
@media (max-width: 900px) { .trust__cards, .trust__cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust__cards, .trust__cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ADU model cards (large featured) */
.adu-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  perspective: 1200px;
  isolation: isolate;
  padding: clamp(0.75rem, 2vw, 1.35rem) 0;
}
.adu-card {
  --rz: 0deg;
  --ry: 0deg;
  --rx: 0deg;
  --y: 0px;
  --scale: 1;
  position: relative;
  z-index: 1;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 18px 45px -32px rgba(0, 0, 0, 0.28);
  transform:
    translateY(var(--y))
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(var(--rz))
    scale(var(--scale));
  transform-style: preserve-3d;
  transform-origin: center bottom;
  will-change: transform;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    opacity 0.3s var(--ease),
    filter 0.3s var(--ease),
    transform 0.55s var(--ease);
}
.adu-card:nth-child(1) {
  --rz: -3.25deg;
  --y: 1rem;
}
.adu-card:nth-child(2) {
  --rz: 1.25deg;
  --y: -0.35rem;
  z-index: 2;
}
.adu-card:nth-child(3) {
  --rz: 3.5deg;
  --y: 1.15rem;
}
.adu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.0) 20%, rgba(255, 255, 255, 0.38) 45%, rgba(255, 255, 255, 0.0) 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.adu-models:hover .adu-card {
  opacity: 0.62;
  filter: saturate(0.8);
}
.adu-models .adu-card:hover {
  --rz: 0deg;
  --y: -1rem;
  --scale: 1.045;
  z-index: 5;
  opacity: 1;
  filter: saturate(1);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.35);
}
.adu-card:hover::before {
  transform: translateX(130%);
}
.adu-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-line-soft);
  transform: translateZ(16px);
}
.adu-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.adu-card:hover .adu-card__img img { transform: scale(1.06); }
.adu-card__body {
  position: relative;
  z-index: 3;
  padding: 1.75rem;
  transform: translateZ(32px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.adu-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.adu-card__specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.adu-card__specs strong {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-fg);
  letter-spacing: -0.01em;
}
@media (max-width: 900px) {
  .adu-models { grid-template-columns: 1fr; padding: 0; }
  .adu-card,
  .adu-card:nth-child(1),
  .adu-card:nth-child(2),
  .adu-card:nth-child(3) {
    --rz: 0deg;
    --y: 0px;
  }
  .adu-models:hover .adu-card {
    opacity: 1;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .adu-card,
  .adu-card::before,
  .adu-card__img img {
    transition: none;
  }
  .adu-card,
  .adu-card:hover {
    --rx: 0deg !important;
    --ry: 0deg !important;
    --rz: 0deg;
    --y: 0px;
    --scale: 1;
  }
}

/* Division card (about page) */
.division-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.division-card {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg);
}
.division-card__img {
  aspect-ratio: auto;
  background: var(--color-line-soft);
  overflow: hidden;
}
.division-card__img img { width: 100%; height: 100%; object-fit: cover; }
.division-card__body { padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: 0.85rem; }
.division-card__tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow-deep);
}
.division-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.division-card p {
  font-size: 1rem;
  color: var(--color-fg-soft);
  line-height: 1.55;
  max-width: 60ch;
}

@media (max-width: 800px) {
  .division-card { grid-template-columns: 1fr; }
  .division-card__img { aspect-ratio: 4 / 3; }
}

.proj-nav {
  border-top: 1px solid var(--color-line);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.proj-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-display);
}
.proj-nav .label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.proj-nav .name { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.proj-nav .right { text-align: right; }

/* ==========================================================================
   Global responsive tightening
   ========================================================================== */
@media (max-width: 720px) {
  :root { --gutter: 1.25rem; }
  .section { padding: clamp(3.5rem, 8vw, 5rem) 0; }
  .section--dark { padding: clamp(3.5rem, 8vw, 5rem) 0; }
  .stats-section { padding: 3rem 0; }
  .why { padding: clamp(3.5rem, 8vw, 5rem) 0; }
  .cta { padding: 4rem 0 4.5rem; }
  .cta h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .footer { padding: 3rem 0 1.5rem; }
  .footer__grid { gap: 2rem; margin-bottom: 2rem; }
  .footer__brand img { width: 160px; }
  .marquee { padding: 0.85rem 0; }
  .marquee__track { font-size: 0.95rem; gap: 1.75rem; }
  .marquee__track span { gap: 1.75rem; }
  .nav { padding: 0.85rem var(--gutter); }
  .nav.scrolled { padding: 0.7rem var(--gutter); }
  .hero__content { gap: 1.25rem; }
  .hero__title { line-height: 1; }
  .hero__meta { padding: 0.85rem 1rem; font-size: 0.78rem; max-width: 24ch; }
  .hero__scroll { display: none; }
  .section-head { gap: 1rem; margin-bottom: 2rem; }
  .section-head__title { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .intro__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .why__title { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .stat { padding: 1.5rem 1.1rem 1.4rem; }
  .stat__num { font-size: clamp(2rem, 10vw, 3rem); }
  .service { padding: 1.75rem 1.4rem; min-height: 13rem; }
  .service__title { font-size: 1.35rem; margin-top: 1.75rem; }
  .pillar { padding: 1.25rem 1.4rem; grid-template-columns: 2.25rem 1fr; }
  .pillar__title { font-size: 1.2rem; }
  .areas { gap: 0.45rem; }
  .area-chip { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
  .trust { padding: 2.5rem 0; }
  .trust__row img { height: 28px; }
  .about-teaser__img { max-width: none; aspect-ratio: 4 / 5; }
  .project__caption { padding: 1rem; }
  .project__caption h3 { font-size: 1rem; }
  .project__caption .arrow { width: 30px; height: 30px; font-size: 0.85rem; }
  .more-card__body h3 { font-size: 0.95rem; }
  .proj-hero { padding-top: 6rem; }
  .proj-hero__title { font-size: clamp(2rem, 10vw, 3.2rem); }
  .proj-info__copy p { font-size: 1.05rem; }
}

/* ==========================================================================
   Page hero (compact header for internal pages)
   ========================================================================== */
.page-hero {
  padding: clamp(7rem, 14vw, 10rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  isolation: isolate;
}
.page-hero--dark {
  background: var(--color-fg);
  color: var(--color-bg);
}
.page-hero--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% 20%, rgba(254, 241, 0, 0.10), transparent 60%),
    radial-gradient(700px 500px at 88% 80%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-top: 1.25rem;
  max-width: 18ch;
}
.page-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.page-hero--dark .page-hero__title em { color: var(--color-yellow); }
.page-hero__sub {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 60ch;
}
.page-hero--dark .eyebrow { color: rgba(255, 255, 255, 0.55); }
.page-hero--dark .eyebrow::before { background: rgba(255, 255, 255, 0.4); }

/* ==========================================================================
   Team grid (about page)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.team-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.team-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(254, 241, 0, 0.3);
  transform: translateY(-2px);
}
.team-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.team-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card__body { padding: 1.5rem 1.5rem 1.75rem; }
.team-card__role {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  display: block;
  margin-bottom: 0.5rem;
}
.team-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.team-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact page (faq.html)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-info__list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}
.contact-info__list li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line);
}
.contact-info__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-info__list a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.contact-info__list a:hover { border-bottom-color: var(--color-fg); }

.contact-form {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 2rem 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 50px -25px rgba(0, 0, 0, 0.18);
}
.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.contact-form .form-sub {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-fg);
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-yellow-deep);
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin: -0.2rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.form-status[data-tone="success"] { color: #a7f3d0; }
.form-status[data-tone="error"] { color: #fecaca; }
.form-status[data-tone="pending"] { color: rgba(255, 255, 255, 0.86); }

.contact-form__submit {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.85rem 1.5rem;
  background: var(--color-fg);
  color: var(--color-bg);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease);
}
.contact-form__submit:hover { transform: translateY(-2px); }
.contact-form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Formspree — field-level errors */
.field-error {
  display: block;
  font-size: 0.8rem;
  color: #fca5a5;
  margin: -0.5rem 0 0.25rem;
  min-height: 1em;
}
.field-error:empty { display: none; }

/* Formspree — global error banner */
.contact-form__global-error {
  display: none;
  padding: 0.85rem 1rem;
  background: rgba(254, 202, 202, 0.1);
  border: 1px solid rgba(252, 165, 165, 0.35);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.contact-form__global-error:not(:empty) { display: block; }

/* Formspree — success panel (hidden until submission) */
.contact-form__success {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(167, 243, 208, 0.08);
  border: 1px solid rgba(167, 243, 208, 0.25);
  border-radius: 12px;
  color: #a7f3d0;
  margin-bottom: 1.5rem;
}
.contact-form__success strong { display: block; margin-bottom: 0.25rem; font-size: 1rem; }
.contact-form__success p { font-size: 0.9rem; opacity: 0.85; margin: 0; }
.contact-form__success svg { flex-shrink: 0; margin-top: 2px; }

/* Formspree marks invalid fields — highlight them */
.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
  border-color: #fca5a5 !important;
  outline-color: #fca5a5;
}

.form-success {
  display: none;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--color-yellow);
  color: var(--color-fg);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .contact-info__list li { grid-template-columns: 5rem 1fr; }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(254, 241, 0, 0.2); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-yellow);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
  padding: 0 1.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 65ch;
}

/* ==========================================================================
   Before / After slider
   ========================================================================== */
.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-line-soft);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  border: 1px solid var(--color-line);
}
.ba__before, .ba__after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba__before img, .ba__after img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ba__after {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__label {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 0.75rem;
  background: rgba(10, 10, 10, 0.7);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.ba__label--before { left: 1rem; }
.ba__label--after { right: 1rem; background: var(--color-yellow); color: var(--color-fg); }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-yellow);
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  color: var(--color-fg);
  font-size: 1.2rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}
.ba__knob::before { content: "‹›"; letter-spacing: -0.1em; font-weight: 700; }
.ba:hover .ba__knob { transform: translate(-50%, -50%) scale(1.08); }

@media (max-width: 720px) {
  .ba { aspect-ratio: 4 / 3; }
  .ba__knob { width: 42px; height: 42px; }
  .ba__label { font-size: 0.62rem; padding: 0.3rem 0.6rem; }
}

/* ==========================================================================
   Google Maps embed
   ========================================================================== */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-line-soft);
  border: 1px solid var(--color-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 18px 50px -25px rgba(0,0,0,0.15);
}

.map-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ==========================================================================
   Project gallery — 3-column grid, portrait tiles span 2 rows, hover zoom
   ========================================================================== */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(220px, 22vw, 340px);
  gap: clamp(0.6rem, 1vw, 1rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.proj-gallery > div {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.proj-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.proj-gallery > div:hover img { transform: scale(1.07); }
.proj-gallery > div.is-portrait { grid-row: span 2; }
@media (max-width: 800px) {
  .proj-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(180px, 26vw, 280px);
  }
}
@media (max-width: 500px) {
  .proj-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(220px, 55vw, 340px);
  }
  .proj-gallery > div.is-portrait { grid-row: span 1; }
}

/* ==========================================================================
   More-projects 4-up row
   ========================================================================== */
.more-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .more-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .more-grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Instagram section
   ========================================================================== */
.instagram-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.instagram-link-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.25s, transform 0.25s;
  max-width: 520px;
}
.instagram-link-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.instagram-link-card__icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.instagram-link-card__icon svg { width: 28px; height: 28px; fill: #fff; }
.instagram-link-card__text strong { display: block; font-size: 1rem; font-weight: 600; }
.instagram-link-card__text span { font-size: 0.85rem; color: var(--color-muted); }

/* ==========================================================================
   ADUs interactive 3-panel hero
   ========================================================================== */
.adu-panels {
  display: flex;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  margin: clamp(3rem, 6vw, 5rem) 0;
}
.adu-panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}
.adu-panel:hover { flex: 3.5; }
.adu-panels:has(.adu-panel:hover) .adu-panel:not(:hover) { flex: 0.65; }
.adu-panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}
.adu-panel:hover img { transform: scale(1.04); }
.adu-panel__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  transition: opacity 0.35s;
}
.adu-panel:not(:hover) .adu-panel__overlay { opacity: 0.55; }
.adu-panel__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.75rem 1.5rem;
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.3s 0.15s, transform 0.3s 0.15s;
}
.adu-panel:hover .adu-panel__content { opacity: 1; transform: translateY(0); }
.adu-panel__content h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.35rem; }
.adu-panel__content p { font-size: 0.85rem; opacity: 0.85; margin: 0; line-height: 1.5; }
.adu-panel__label {
  position: absolute;
  top: 1.25rem; left: 1.25rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  opacity: 0.7;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.adu-panel:hover .adu-panel__label { opacity: 0; }
@media (max-width: 700px) {
  .adu-panels { flex-direction: column; height: auto; }
  .adu-panel { flex: none !important; height: 200px; }
  .adu-panel__content { opacity: 1; transform: translateY(0); }
  .adu-panel__label { display: none; }
}

/* Instagram card — body/handle/sub/arrow helpers */
.instagram-link-card__body { flex: 1; min-width: 0; }
.instagram-link-card__handle { display: block; font-size: 1rem; font-weight: 600; color: #ffffff; }
.instagram-link-card__sub { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; line-height: 1.45; }
.instagram-link-card__arrow { font-size: 1.25rem; color: rgba(255,255,255,0.6); flex-shrink: 0; transition: transform 0.2s; }
.instagram-link-card:hover .instagram-link-card__arrow { transform: translateX(4px); }

/* Instagram section layout with side photo */

/* ==========================================================================
   Blog portfolio and article pages
   ========================================================================== */
.blog-hero .page-hero__title { max-width: 14ch; }
.blog-index__lead { margin-bottom: 1.5rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.blog-grid--all { margin-top: clamp(1.25rem, 3vw, 2rem); }

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 10, 10, 0.22);
  box-shadow: 0 22px 60px -34px rgba(0, 0, 0, 0.32);
}
.blog-card__image {
  aspect-ratio: 16 / 10;
  background: var(--color-line-soft);
  overflow: hidden;
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__body { padding: clamp(1.1rem, 2vw, 1.5rem); }
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.blog-card__meta span {
  color: var(--color-fg);
  background: var(--color-yellow);
  border-radius: 999px;
  padding: 0.32rem 0.55rem 0.28rem;
}
.blog-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.blog-card p {
  margin-top: 0.85rem;
  color: var(--color-fg-soft);
  line-height: 1.55;
}
.blog-card--featured {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  grid-template-rows: 1fr;
  min-height: clamp(360px, 44vw, 560px);
}
.blog-card--featured .blog-card__image { aspect-ratio: auto; height: 100%; }
.blog-card--featured .blog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.blog-card--featured h2 { font-size: clamp(2rem, 4.2vw, 4.25rem); max-width: 11ch; }

.blog-article__hero {
  padding: clamp(8rem, 13vw, 11rem) 0 clamp(3rem, 7vw, 6rem);
  background: var(--color-fg);
  color: var(--color-bg);
}
.blog-article__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.blog-back {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.blog-article__intro .blog-card__meta { color: rgba(255, 255, 255, 0.58); }
.blog-article__intro h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.8vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
.blog-article__intro p {
  margin-top: 1.35rem;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}
.blog-article__image {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.blog-article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 340px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.blog-article__body {
  color: var(--color-fg-soft);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
}
.blog-article__body > * + * { margin-top: 1.1rem; }
.blog-article__body h2,
.blog-article__body h3,
.blog-article__body h4,
.blog-article__body h5 {
  font-family: var(--font-display);
  color: var(--color-fg);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
}
.blog-article__body h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.blog-article__body h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.blog-article__body h4,
.blog-article__body h5 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.blog-article__body p { line-height: 1.72; }
.blog-article__body a {
  border-bottom: 1px solid currentColor;
  color: var(--color-fg);
}
.blog-article__body ul,
.blog-article__body ol {
  padding-left: 1.35rem;
  line-height: 1.7;
}
.blog-article__body li + li { margin-top: 0.45rem; }
.blog-article__body img {
  width: 100%;
  border-radius: 6px;
  margin: 1.2rem 0 0.35rem;
  background: var(--color-line-soft);
}
.blog-article__body figure { margin-top: 1.6rem; }
.blog-article__body figcaption {
  margin-top: 0.55rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}
.blog-article__body hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: 2.25rem 0;
}
.blog-article__aside {
  position: sticky;
  top: 6.5rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 1.4rem;
  background: #fff;
}
.blog-article__aside h2 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.05;
}
.blog-article__aside p {
  margin: 0.9rem 0 1.3rem;
  color: var(--color-fg-soft);
  font-size: 0.95rem;
}
.blog-related .blog-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--color-bg);
}
.blog-related .blog-card p { color: rgba(255, 255, 255, 0.66); }
.blog-related .blog-card__meta { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card--featured,
  .blog-article__hero-grid,
  .blog-article__layout { grid-template-columns: 1fr; }
  .blog-card--featured { min-height: 0; }
  .blog-card--featured .blog-card__image { aspect-ratio: 16 / 10; }
  .blog-article__aside { position: static; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card__meta { align-items: flex-start; flex-direction: column; }
  .blog-article__hero { padding-top: 7rem; }
}

/* ─── Before / After Slider ─── */
.ba-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;}
[data-ba]{position:relative;overflow:hidden;cursor:ew-resize;user-select:none;border-radius:.5rem;touch-action:none;aspect-ratio:16/9;}
[data-ba] .ba__after{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;clip-path:none;}
[data-ba] .ba__before{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;clip-path:inset(0 calc(100% - var(--pos,50%)) 0 0);z-index:1;}
[data-ba] .ba__line{position:absolute;top:0;bottom:0;left:var(--pos,50%);transform:translateX(-50%);width:3px;background:#fff;z-index:2;pointer-events:none;}
[data-ba] .ba__knob{position:absolute;top:50%;left:var(--pos,50%);transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;z-index:3;pointer-events:none;box-shadow:0 2px 8px rgba(0,0,0,.3);font-size:1.1rem;color:#333;}
[data-ba] .ba__knob::before{content:none;}
[data-ba] .ba-label{position:absolute;bottom:.75rem;background:rgba(0,0,0,.55);color:#fff;font-size:.7rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:.2rem .6rem;border-radius:2rem;z-index:2;pointer-events:none;}
[data-ba] .ba-label--before{left:.75rem;}
[data-ba] .ba-label--after{right:.75rem;}
.ba-caption{font-size:.85rem;color:var(--color-fg-soft);margin-bottom:.5rem;font-weight:500;}
.gallery-section-label{font-size:.8rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--color-fg-soft);margin:2.5rem 0 .75rem;}

/* More commercial projects — 4-up thumbnail row */
.more-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;}
.more-thumb{display:block;text-decoration:none;color:inherit;}
.more-thumb__img{aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:rgba(255,255,255,0.06);}
.more-thumb__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--ease,ease);}
.more-thumb:hover .more-thumb__img img{transform:scale(1.05);}
.more-thumb__name{margin-top:.6rem;font-size:.85rem;font-weight:500;color:rgba(255,255,255,0.8);letter-spacing:.01em;transition:color .25s;}
.more-thumb:hover .more-thumb__name{color:var(--color-yellow);}
@media(max-width:700px){.more-row{grid-template-columns:repeat(2,1fr);}}
