/* ==========================================================================
   Wellspring Homes — homepage stylesheet
   Built by NexusReply
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Layout primitives
   4.  Typography
   5.  Buttons & links
   6.  Header & navigation
   7.  Hero
   8.  Statement / about
   9.  Feature tabs (Hempcrete)
   10. Developments carousel & marquee
   11. Parallax
   12. Services
   13. Recognition
   14. CTA collage
   15. Footer & form
   16. Motion, utilities, responsive
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
  --ink: #0a0f14;
  --ink-2: #0f1720;
  --ink-3: #17222e;
  --ink-soft: #1e2a36;

  --bone: #f6f4ef;
  --bone-2: #ece7dd;
  --paper: #ffffff;

  --blue: #0f52a9;
  --blue-2: #2f7ac9;
  --blue-3: #6ea3dd;
  --sky: #c3d5ee;
  --sand: #d9cdb6;

  --text: #111a23;
  --muted: #5d6a76;
  --muted-2: #7d8994;

  --line: rgba(13, 20, 28, 0.12);
  --line-strong: rgba(13, 20, 28, 0.22);
  --line-light: rgba(255, 255, 255, 0.14);
  --line-light-2: rgba(255, 255, 255, 0.28);

  --on-dark: rgba(255, 255, 255, 0.78);
  --on-dark-2: rgba(255, 255, 255, 0.56);

  --shell: 1440px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section-y: clamp(84px, 9vw, 150px);

  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. Reset & base --------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

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

address { font-style: normal; }

::selection { background: var(--blue); color: #fff; }

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

.hero :focus-visible,
.feature :focus-visible,
.parallax :focus-visible,
.recognition :focus-visible,
.footer :focus-visible { outline-color: rgba(255, 255, 255, 0.85); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 12px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* 3. Layout primitives ---------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--bone { background: var(--bone); }

/* 4. Typography ----------------------------------------------------------- */
.display {
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.display--xl { font-size: clamp(2.45rem, 5.4vw, 4.8rem); line-height: 0.97; }
.display--lg { font-size: clamp(1.85rem, 3.4vw, 3.15rem); }
.display--md { font-size: clamp(1.3rem, 2.3vw, 2rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow--light { color: var(--sky); }
.eyebrow--center { justify-content: center; }

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--center::before { display: none; }

.lede { font-size: clamp(1rem, 1.15vw, 1.125rem); color: var(--muted); }

/* 5. Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.02rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -18px rgba(6, 10, 14, 0.55); }
.btn:hover .btn__dot { transform: scale(1.55); }
.btn:active { transform: translateY(0); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--blue); }
.btn--light:hover { --btn-bg: var(--bone); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 3px;
  border-bottom: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease);
}

.link-arrow:hover { color: var(--text); border-color: var(--line-strong); }
.link-arrow:hover svg { transform: translateX(4px); }

.link-arrow--light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.link-arrow--light:hover { color: #fff; border-color: #fff; }

.round-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-light-2);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.round-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.round-btn:active { transform: scale(0.96); }

.round-btn--dark { border-color: var(--line-strong); color: var(--text); }
.round-btn--dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 6. Header & navigation -------------------------------------------------- */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  color: #fff;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 9, 13, 0.6), rgba(5, 9, 13, 0));
  opacity: 1;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.masthead.is-scrolled {
  background: rgba(8, 12, 17, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.masthead.is-scrolled::before { opacity: 0; }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(12px, 1.4vw, 18px);
  transition: padding 0.45s var(--ease);
}

.masthead.is-scrolled .masthead__inner { padding-block: clamp(8px, 0.9vw, 12px); }

.masthead__brand { display: inline-flex; align-items: center; }
.masthead__brand img {
  height: clamp(34px, 2.9vw, 44px);
  width: auto;
  transition: opacity 0.3s var(--ease);
}
.masthead__brand:hover img { opacity: 0.82; }

.masthead__nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}

.masthead__nav a {
  position: relative;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}

.masthead__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.masthead__nav a:hover { color: #fff; }
.masthead__nav a:hover::after { transform: scaleX(1); }

.masthead__actions { display: flex; align-items: center; gap: 14px; }
.masthead__cta { padding: 0.82rem 1.35rem; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  color: #fff;
  display: grid;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
  padding: calc(var(--header-h) + 24px) 0 40px;
}

.mobile-menu.is-open { opacity: 1; }
.mobile-menu[hidden] { display: none; }

.mobile-menu ul { display: grid; }

.mobile-menu li { border-bottom: 1px solid var(--line-light); }

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: clamp(16px, 2.4vh, 24px) var(--gutter);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}

.mobile-menu nav a span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue-3);
}

.mobile-menu nav a:hover { color: var(--sky); padding-left: calc(var(--gutter) + 10px); }

.mobile-menu__foot {
  padding: clamp(28px, 4vh, 44px) var(--gutter) 0;
  display: grid;
  gap: 10px;
  font-size: 1rem;
  color: var(--on-dark);
}

.mobile-menu__foot a {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 4.2vw, 1.2rem);
  letter-spacing: 0.01em;
}

.mobile-menu__foot p { color: var(--on-dark-2); font-size: 0.88rem; margin-top: 6px; }
.mobile-menu__foot a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 2px; }
.mobile-menu__foot a:hover { border-color: #fff; }

/* 7. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero::after,
.feature::after,
.parallax::after,
.recognition::after,
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 3;
}

.hero__media { position: absolute; inset: 0; }

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 1.15s var(--ease), transform 8s linear;
  will-change: opacity, transform;
}

.hero__img.is-active { opacity: 1; transform: scale(1); }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, rgba(5, 9, 13, 0.88) 0%, rgba(5, 9, 13, 0.66) 34%, rgba(5, 9, 13, 0.18) 68%, rgba(5, 9, 13, 0.42) 100%),
    linear-gradient(to top, rgba(5, 9, 13, 0.92) 0%, rgba(5, 9, 13, 0.25) 38%, rgba(5, 9, 13, 0) 62%);
}

.hero__shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: clamp(28px, 5vh, 56px);
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 64px));
  padding-bottom: clamp(26px, 4vh, 46px);
  width: 100%;
}

.hero__panels { align-self: center; max-width: 74rem; }

.hero__panel[hidden] { display: none; }

.hero__panel.is-active { animation: panelIn 0.9s var(--ease-out) both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: clamp(16px, 2.4vh, 26px);
}

.hero__eyebrow-rule { width: 28px; height: 1px; background: var(--sky); }

.hero__title {
  max-width: min(100%, 1260px);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
  overflow-wrap: break-word;
}

.hero__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 46px);
  margin-top: clamp(24px, 3.6vh, 42px);
}

.hero__sub {
  max-width: 34ch;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.hero__dock {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
}

.hero__tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 28px);
  flex: 1;
  min-width: 0;
}

.hero__tab {
  display: grid;
  gap: 9px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.4s var(--ease);
}

.hero__tab.is-active,
.hero__tab:hover { color: #fff; }

.hero__tab-num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.hero__tab-label {
  font-size: clamp(0.7rem, 0.78vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.35;
}

.hero__tab-track {
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hero__tab-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}

.hero__tab.is-active .hero__tab-fill { background: #fff; }

.hero__controls { display: flex; gap: 10px; flex-shrink: 0; }

.hero__scroll {
  position: absolute;
  right: clamp(14px, 2.2vw, 34px);
  bottom: 120px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero__scroll-line {
  width: 1px;
  height: 62px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  animation: scrollCue 2.6s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scrollCue {
  0% { transform: scaleY(0.2); opacity: 0.2; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(62px); opacity: 0; }
}

/* 8. Statement / about ---------------------------------------------------- */
.statement { position: relative; }

.statement__title { margin: clamp(18px, 2.6vh, 30px) 0 clamp(40px, 6vh, 76px); }

.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
}

.statement__copy { display: grid; gap: 1.35rem; max-width: 56ch; }
.statement__copy p { color: var(--muted); }
.statement__copy p:first-child { color: var(--text); font-size: 1.13rem; }

.statement__figure { position: relative; }
.statement__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
.statement__figure figcaption {
  margin-top: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(56px, 8vh, 104px);
  padding-top: clamp(30px, 4vh, 48px);
  border-top: 1px solid var(--line);
}

.stats__item dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 22ch;
  line-height: 1.5;
}

.stats__item dd {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.stats__unit {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* 9. Feature tabs --------------------------------------------------------- */
.feature {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(680px, 94vh, 920px);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  padding-block: clamp(76px, 11vh, 132px);
}

.feature__media { position: absolute; inset: 0; }

.feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 6s linear;
}

.feature__img.is-active { opacity: 1; transform: scale(1); }

.feature__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(5, 9, 13, 0.95) 0%, rgba(5, 9, 13, 0.8) 42%, rgba(5, 9, 13, 0.34) 78%, rgba(5, 9, 13, 0.55) 100%),
    linear-gradient(to top, rgba(5, 9, 13, 0.7), rgba(5, 9, 13, 0) 55%);
}

.feature__shell { position: relative; z-index: 2; width: 100%; }

.feature__tabs {
  display: flex;
  gap: clamp(20px, 3vw, 52px);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: clamp(34px, 6vh, 64px);
}

.feature__tab {
  position: relative;
  background: none;
  border: 0;
  padding: 0 0 16px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  transition: color 0.35s var(--ease);
}

.feature__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.feature__tab.is-active { color: #fff; }
.feature__tab.is-active::after { transform: scaleX(1); }
.feature__tab:hover { color: #fff; }

.feature__title { margin-bottom: clamp(26px, 4vh, 42px); }

.feature__panels { min-height: 0; }

.feature__panel[hidden] { display: none; }
.feature__panel.is-active { animation: panelIn 0.7s var(--ease-out) both; }

.feature__lede {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  margin-bottom: clamp(20px, 3vh, 32px);
}

.feature__list {
  max-width: 620px;
  border-top: 1px solid var(--line-light);
}

.feature__list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: clamp(12px, 1.6vh, 17px) 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

.feature__list li span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--sky);
  min-width: 24px;
}

.feature__shell .btn { margin-top: clamp(28px, 4vh, 46px); }

/* 10. Developments -------------------------------------------------------- */
.projects { position: relative; overflow: hidden; }

.projects__head { text-align: center; margin-bottom: clamp(44px, 6.5vh, 80px); }
.projects__title { margin-top: clamp(16px, 2.4vh, 26px); }

.projects__viewport { position: relative; min-height: 520px; }

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}

.project[hidden] { display: none; }
.project.is-active { animation: panelIn 0.8s var(--ease-out) both; }

.project__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--blue) 26%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 5%, transparent);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.project__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent);
}

.project__status--sold { color: var(--muted-2); }
.project__status--sold::before { box-shadow: 0 0 0 4px rgba(125, 137, 148, 0.16); }

.project__name {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: clamp(14px, 2vh, 20px) 0 10px;
}

.project__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.project__copy { margin-top: clamp(16px, 2.4vh, 26px); color: var(--muted); max-width: 52ch; }

.project__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.6rem;
  margin: clamp(20px, 3vh, 32px) 0;
  padding-top: clamp(18px, 2.6vh, 28px);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
}

.project__specs li { position: relative; padding-left: 18px; }
.project__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--blue);
}

.project__media {
  position: relative;
  aspect-ratio: 1.28;
  min-height: 440px;
}

.project__figure {
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 30px 60px -40px rgba(6, 10, 14, 0.55);
}

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

.project__figure--tall { left: 20%; top: 0; width: 37%; aspect-ratio: 4 / 5; }
.project__figure--wide { left: 45%; top: 26%; width: 39%; aspect-ratio: 4 / 3; }
.project__figure--street { left: 1%; top: 50%; width: 41%; aspect-ratio: 3 / 1; }

.project__logo {
  position: absolute;
  right: 0;
  top: 4%;
  width: clamp(104px, 9vw, 150px);
  height: auto;
}

.project__logo--llynfi { width: clamp(80px, 6.6vw, 110px); }

.project__plan {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(96px, 8.4vw, 132px);
  margin: 0;
}

.project__plan img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px;
}

.project__plan figcaption {
  margin-top: 8px;
  text-align: right;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.projects__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(34px, 5vh, 56px);
}

.projects__dots { display: flex; align-items: center; gap: 10px; }

.projects__dot {
  width: 38px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(17, 26, 35, 0.18);
  cursor: pointer;
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}

.projects__dot.is-active { width: 64px; background: var(--blue); }

.projects__arrows { display: flex; gap: 10px; }

.marquee {
  margin-top: clamp(52px, 8vh, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(16px, 2.6vh, 30px);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  width: max-content;
  animation: marquee 42s linear infinite;
  font-size: clamp(2rem, 6.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(17, 26, 35, 0.14);
}

.marquee__sep { color: rgba(15, 82, 169, 0.4); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* 11. Parallax ------------------------------------------------------------ */
.parallax {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 82vh, 780px);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.parallax__media { position: absolute; inset: -12% 0; }

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

.parallax__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(94deg, rgba(5, 9, 13, 0.88) 0%, rgba(5, 9, 13, 0.5) 46%, rgba(5, 9, 13, 0.24) 100%),
    linear-gradient(to top, rgba(5, 9, 13, 0.72), rgba(5, 9, 13, 0) 58%);
}

.parallax__content { position: relative; z-index: 2; padding-block: clamp(80px, 12vh, 130px); }

.parallax__quote {
  margin: clamp(16px, 2.4vh, 26px) 0 clamp(22px, 3vh, 34px);
  max-width: 24ch;
  text-transform: none;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

/* 12. Services ------------------------------------------------------------ */
.services__head { max-width: 46rem; margin-bottom: clamp(40px, 6vh, 72px); }
.services__head .display { margin-top: clamp(16px, 2.4vh, 26px); }

.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.services__figure { position: sticky; top: calc(var(--header-h) + 24px); }

.services__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.services__list { border-top: 1px solid var(--line); }

.services__list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 34px;
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
  padding: clamp(22px, 3.2vh, 34px) 0;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: background 0.45s var(--ease), padding-left 0.45s var(--ease), padding-right 0.45s var(--ease);
}

.services__list li:hover { background: var(--paper); padding-left: clamp(10px, 1.4vw, 20px); padding-right: clamp(10px, 1.4vw, 20px); }

.services__num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
  padding-top: 0.45em;
}

.services__list h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color 0.35s var(--ease);
}

.services__list li:hover h3 { color: var(--blue); }

.services__list p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; max-width: 62ch; }

.services__arrow { padding-top: 0.3em; justify-self: end; color: var(--muted-2); transition: transform 0.4s var(--ease), color 0.35s var(--ease); }
.services__arrow svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.services__list li:hover .services__arrow { transform: translateX(5px); color: var(--blue); }

.services__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(44px, 6vh, 76px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--line);
}

.services__foot p { color: var(--muted); max-width: 44ch; }

/* 13. Recognition --------------------------------------------------------- */
.recognition {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  padding-block: clamp(84px, 11vh, 140px);
}

.recognition__media { position: absolute; inset: 0; }
.recognition__media img { width: 100%; height: 100%; object-fit: cover; }

.recognition__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 9, 13, 0.92) 0%, rgba(5, 9, 13, 0.74) 48%, rgba(5, 9, 13, 0.42) 100%),
    linear-gradient(to top, rgba(5, 9, 13, 0.8), rgba(5, 9, 13, 0.1) 60%);
}

.recognition__shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}

.recognition__quote blockquote {
  margin-top: clamp(18px, 2.6vh, 30px);
  text-transform: none;
  font-weight: 400;
  font-size: clamp(1.16rem, 1.9vw, 1.72rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.36;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: pretty;
}

.recognition__attribution {
  display: grid;
  gap: 3px;
  margin-top: clamp(20px, 3vh, 32px);
  font-size: 0.88rem;
  color: var(--on-dark-2);
}

.recognition__attribution strong { color: #fff; font-weight: 600; letter-spacing: 0.01em; }

.recognition__cards { display: grid; gap: 18px; }

.award-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  border-radius: 10px;
  padding: clamp(22px, 2.6vw, 34px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.award-card__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
}

.award-card__title {
  margin-top: 12px;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.award-card__year {
  margin-top: 6px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1;
}

.award-card__copy { margin-top: 12px; color: var(--on-dark); font-size: 0.95rem; }
.award-card .link-arrow { margin-top: 20px; }

/* 14. CTA collage --------------------------------------------------------- */
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.cta__tiles { position: relative; aspect-ratio: 1.16; }

.cta__tile {
  position: absolute;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 34px 60px -46px rgba(6, 10, 14, 0.6);
}

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

.cta__tile--1 { left: 0; top: 6%; width: 38%; aspect-ratio: 4 / 3; }
.cta__tile--2 { left: 31%; top: 40%; width: 40%; aspect-ratio: 4 / 3; }
.cta__tile--3 { left: 62%; top: 16%; width: 37%; aspect-ratio: 4 / 5; }

.cta__copy .display { margin-bottom: clamp(18px, 2.6vh, 28px); }
.cta__lede { color: var(--muted); max-width: 42ch; margin-bottom: clamp(26px, 4vh, 40px); }

/* 15. Footer & form ------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding-top: clamp(72px, 10vh, 124px);
}

.footer__title { margin-bottom: clamp(44px, 6.5vh, 80px); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 88px);
  padding-bottom: clamp(48px, 7vh, 80px);
  border-bottom: 1px solid var(--line-light);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.2vw, 34px);
  margin-bottom: clamp(30px, 4.5vh, 52px);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__nav a { color: rgba(255, 255, 255, 0.82); transition: color 0.3s var(--ease); }
.footer__nav a:hover { color: #fff; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.footer h3 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 16px;
}

.footer__cols p { color: var(--on-dark); line-height: 1.72; }
.footer__cols a { border-bottom: 1px solid rgba(255, 255, 255, 0.22); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.footer__cols a:hover { color: #fff; border-color: #fff; }

.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.form__field { display: grid; gap: 9px; margin-bottom: 18px; }

.form__field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.form__field label span { color: var(--sky); }

.form__field input,
.form__field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.96rem;
  color: #fff;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.form__field textarea { resize: vertical; min-height: 118px; }

.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(255, 255, 255, 0.34); }

.form__field input:hover,
.form__field textarea:hover { border-color: rgba(255, 255, 255, 0.32); }

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.form__field [aria-invalid="true"] { border-color: #ff9a8f; }

.form__note { font-size: 0.82rem; color: var(--on-dark-2); margin: 4px 0 20px; max-width: 52ch; }
.form__note.is-error { color: #ffb3a8; }
.form__note.is-success { color: var(--sky); }

.form__submit { width: auto; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: clamp(20px, 3vh, 30px);
  font-size: 0.82rem;
  color: var(--on-dark-2);
}

.footer__credit a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.footer__credit a:hover { border-color: #fff; }

/* 16. Motion & utilities -------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.95s var(--ease-out) var(--d, 0s), transform 0.95s var(--ease-out) var(--d, 0s);
}

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

html.no-js [data-reveal] { opacity: 1; transform: none; }

[data-parallax-soft] { will-change: transform; }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__img,
  .feature__img { transform: none !important; }

  .marquee__track { animation: none !important; }

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

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero__scroll { display: none; }
  .statement__grid,
  .services__grid,
  .recognition__shell,
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__figure { order: -1; max-width: 640px; }
  .services__figure { position: relative; top: 0; max-width: 560px; }
  .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .cta__tiles { max-width: 640px; }
}

@media (max-width: 1024px) {
  .masthead__nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .project { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vh, 48px); }
  .project__media { min-height: 0; aspect-ratio: 1.5; }
  .project__figure--street { display: none; }
  .project__logo { position: static; margin: 0 0 18px; }
  .project__plan { position: static; width: 148px; margin-top: 22px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 900px) {
  .masthead__cta { display: none; }
  .hero { min-height: 92vh; min-height: 92svh; }
  .hero__shell { padding-top: calc(var(--header-h) + 24px); }
  .hero__dock { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__tabs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, #000 82%, transparent 100%);
  }
  .hero__tabs::-webkit-scrollbar { display: none; }
  .hero__tab { flex: 0 0 auto; min-width: 128px; }
  .hero__controls { align-self: flex-end; }
  .feature__tabs { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .feature__tabs::-webkit-scrollbar { display: none; }
  .feature__tab { flex: 0 0 auto; }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .cta__tiles { aspect-ratio: 1.5; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .display--xl { font-size: clamp(1.86rem, 8.4vw, 2.5rem); }
  .display--lg { font-size: clamp(1.62rem, 7.2vw, 2.1rem); }
  .hero__eyebrow { font-size: 0.62rem; letter-spacing: 0.14em; white-space: normal; }
  .hero__title { max-width: 22ch; }
  .hero__row { align-items: flex-start; flex-direction: column; gap: 18px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .project__media { aspect-ratio: 1.05; }
  .project__figure--tall { left: 0; width: 56%; }
  .project__figure--wide { left: 40%; top: 32%; width: 60%; }
  .project__specs { grid-template-columns: minmax(0, 1fr); }
  .projects__nav { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .cta__tiles { aspect-ratio: 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
