/* Papaya Development: shared styles
   Brand guide colors and type. Mobile-first.
   Direction: immersive photography, light confident type, soft framed
   imagery, white cards on green. Flat: no shadows, no ornament. */

:root {
  --green: #1A574F;
  --green-80: #486C66;
  --green-60: #6E8681;
  --cambridge: #80A6A0;
  --ash: #96A5A2;
  --silver: #C3CBC9;
  --jet: #312B29;
  --onyx: #404040;
  --night: #0D0D0D;
  --white: #F1F3F4;

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Brand guide scale, scaled for screens */
  --fs-hero: clamp(3rem, 1rem + 7vw, 7.25rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --fs-h4: clamp(1.375rem, 1.2rem + 0.5vw, 1.875rem);
  --fs-h6: 1.25rem;
  --fs-xl: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --gutter: 16px;
  --max: 1280px;
  --space: clamp(4rem, 2.5rem + 4.6vw, 7rem);
  --radius: 16px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--jet);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.2;
}

p, ul, ol, figure, h1, h2, h3 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; }
h2 { max-width: 18ch; font-size: var(--fs-h2); font-weight: 500; line-height: 1.05; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--cambridge); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Placeholders (dev only, never deploy) ---------- */

.draft-banner {
  position: fixed;
  bottom: 12px;
  left: 50%;
  z-index: 90;
  transform: translateX(-50%);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: #FFE8A3;
  color: var(--night);
  font-size: var(--fs-label);
  font-weight: 700;
  white-space: nowrap;
}
.tbd {
  display: inline-block;
  padding: 0.25em 0.5em;
  background: #FFE8A3;
  outline: 1px dashed var(--night);
  color: var(--night);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Shared pieces ---------- */

.label, .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.label { color: var(--green); }
/* Labels set as headings keep the label size, not the headline width limit */
h2.label { max-width: none; line-height: 1.2; }
.label::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* Cross accent: solid fill, square corners, never rotated, never repeated */
.cross { position: relative; display: inline-block; flex: none; width: 12px; height: 12px; }
.cross::before, .cross::after { content: ""; position: absolute; background: currentColor; }
.cross::before { left: 0; right: 0; top: 5px; height: 2px; }
.cross::after { top: 0; bottom: 0; left: 5px; width: 2px; }

.intro {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: var(--onyx);
  font-size: var(--fs-xl);
}

.photo { width: 100%; border-radius: var(--radius); object-fit: cover; }

.btn {
  display: inline-block;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn-sm { padding: 0.7rem 1.1rem; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--jet); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--silver); }

.text-link {
  color: var(--jet);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
}
.text-link-light { color: var(--white); }
.text-link-light:hover { color: var(--silver); }

/* ---------- Header: a floating bar over the photography ---------- */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: 72px;
  padding: 0 0.75rem 0 1.25rem;
  border-radius: var(--radius);
  background: var(--white);
  pointer-events: auto;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
/* Primary lockup, inlined so "development" uses the site's Montserrat */
.brand-logo { display: block; width: auto; height: 58px; }
/* Web legibility adjustment (team approved): the hairline "papaya" letters get a thin
   matching outline, and "development" is set heavier. The original artwork is in reference/logo. */
.brand-logo path:nth-child(-n+6) { stroke: #195E55; stroke-width: 1.1; stroke-linejoin: round; }
.brand-logo text { font-family: var(--font); font-weight: 600; letter-spacing: 0.6px; }
@media (max-width: 699px) { .brand-logo { height: 48px; } }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--jet);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; padding: 0.25rem 0.5rem 1rem 0; }
.site-nav li { border-top: 1px solid var(--silver); }
.site-nav li:last-child { padding-top: 1rem; }
.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.9rem 0;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:not(.btn):hover { color: var(--green); }

/* Five items fit on one line from 1100px; below that the menu button takes over */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; }
  .site-nav a { white-space: nowrap; }
  .site-nav li { border: 0; }
  .site-nav li:last-child { padding-top: 0; }
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  min-height: max(640px, 100svh);
  overflow: hidden;
  background: var(--jet);
  color: var(--white);
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img { object-fit: cover; object-position: 50% 45%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle 9s ease-out both; }
}
@keyframes hero-settle { from { transform: scale(1.1); } to { transform: scale(1); } }

/* Darken only where the type sits, so the photo stays unfiltered above */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13, 13, 13, 0.6) 0%, rgba(13, 13, 13, 0.3) 40%, rgba(13, 13, 13, 0) 65%),
    linear-gradient(to top, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.4) 40%, rgba(13, 13, 13, 0) 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.hero .eyebrow { color: var(--white); }

.hero-title { font-size: var(--fs-hero); font-weight: 400; line-height: 0.98; }
.hero-title span { display: block; }
.w-bold { font-weight: 700; }

.lede { max-width: 42rem; margin-top: 1.75rem; font-size: var(--fs-xl); }
.actions { margin-top: 2rem; }

/* Frosted card over photography */
.glass-card {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(241, 243, 244, 0.22);
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--white);
  text-decoration: none;
}
a.glass-card { transition: background-color 0.2s; }
a.glass-card:hover { background: rgba(13, 13, 13, 0.55); }
.glass-label { font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.glass-body { font-size: var(--fs-small); line-height: 1.3; }
.glass-arrow { font-size: var(--fs-h6); }

.hero .glass-card { max-width: 22rem; }

.hero-aside { display: grid; gap: 1rem; justify-items: start; }
.hero-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-caption::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* Workforce card: thumbnail beside copy */
.hero .wf-card {
  grid-template-columns: 10rem 1fr;
  align-items: center;
  gap: 1.1rem;
  max-width: 31rem;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
}
.wf-card-media { position: relative; display: block; }
.wf-card-media img { width: 100%; aspect-ratio: 8 / 5; border-radius: var(--radius-sm); object-fit: cover; }
.wf-card-media .wf-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 0.15rem 0.35rem;
  background: rgba(13, 13, 13, 0.55);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
}
.wf-card-copy { display: grid; gap: 0.4rem; }
.wf-card-cta {
  margin-top: 0.35rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wf-card:hover .wf-card-cta { text-decoration: underline; text-underline-offset: 0.35em; }

@media (min-width: 1000px) {
  .hero-aside { justify-items: end; }
}

@media (max-width: 699px) {
  .hero .wf-card { grid-template-columns: 7rem 1fr; max-width: none; width: 100%; }
  .hero .wf-card .glass-body { font-size: var(--fs-label); }
  .hero-caption { display: none; }
  .hero::after {
    background: linear-gradient(to top, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.5) 55%, rgba(13, 13, 13, 0.25) 100%);
  }
}

@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Sections ---------- */

.section { padding: var(--space) 0; }
.section-tight-top { padding-top: 0; }
.section-green { background: var(--green); color: var(--white); }
.section-green .label { color: var(--silver); }
.section-green .intro { color: var(--silver); }
.section-head { margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3.25rem); }
.section-head-row { display: grid; gap: 1rem 4rem; }

@media (min-width: 1000px) {
  .section-head-row { grid-template-columns: 1fr 1fr; align-items: center; }
  .section-head-row .intro { margin-top: 0; }
}

.split { display: grid; gap: 3rem; }

/* ---------- Why Papaya closing: three phrases align into one sentence ---------- */

.converge { position: relative; width: fit-content; max-width: 100%; }
.converge-text .cv { display: inline-block; }
/* Thin rule drawn under the finished sentence */
.converge::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.6rem;
  background: var(--green);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .converge.is-armed .cv { opacity: 0; }
  .converge.is-armed .cv-1 { transform: translate(-40px, 6px); }
  .converge.is-armed .cv-2 { transform: translate(40px, -6px); }
  .converge.is-armed .cv-3 { transform: translateY(26px); }
  .converge.is-armed::after { transform: scaleX(0); }

  .converge.is-in .cv { animation: cv-settle 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .converge.is-in .cv-2 { animation-delay: 320ms; }
  .converge.is-in .cv-3 { animation-delay: 640ms; }
  /* Last phrase settles at 1740ms; the rule starts 200ms later */
  .converge.is-in::after { animation: cv-rule 900ms cubic-bezier(0.22, 1, 0.36, 1) 1940ms forwards; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 699px) {
  .converge.is-armed .cv-1 { transform: translate(-20px, 5px); }
  .converge.is-armed .cv-2 { transform: translate(20px, -5px); }
}
@keyframes cv-settle { to { opacity: 1; transform: none; } }
@keyframes cv-rule { to { transform: scaleX(1); } }
/* Why Papaya headline: set line breaks on desktop, natural balanced wrap below */
.problem-title { text-wrap: balance; }
@media (min-width: 1000px) { .problem-title { max-width: none; } }
@media (min-width: 1240px) { .problem-title span { display: block; } }
.closing { margin-top: 2.5rem; color: var(--green); font-size: var(--fs-h4); font-weight: 700; }
.photo-square { aspect-ratio: 1 / 1; }
.photo-landscape { aspect-ratio: 4 / 3; }

@media (min-width: 1000px) {
  .split { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
  .split-photo-first { grid-template-columns: 7fr 5fr; gap: 5rem; }
}
/* Built around the need: photo and text sit side by side, centered on each other, from 900px */
@media (min-width: 900px) and (max-width: 999px) {
  .split-photo-first { grid-template-columns: 6fr 5fr; gap: 3rem; align-items: center; }
}

/* ---------- 3. Step cards ---------- */

.cards { display: grid; gap: 1rem; }
.card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.75rem 2rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--jet);
}
.card-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 700;
}
.card h3 { margin-top: 3.5rem; font-size: var(--fs-h4); font-weight: 500; }
.card p { margin-top: 0.75rem; color: var(--onyx); font-size: var(--fs-small); line-height: 1.3; }

/* ---------- Delivery: the truck sets each step card onto its footprint ----------
   Card entry uses the individual `translate` property and hover uses `transform`,
   so the two never fight. Everything here only runs when motion is allowed. */
#deliver { overflow-x: clip; }
.delivery { position: relative; }
.card { position: relative; border-radius: 10px; }
/* Two lifting points on each card's top edge */
.card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24%;
  right: 24%;
  height: 6px;
  border-left: 2px solid rgba(241, 243, 244, 0.55);
  border-right: 2px solid rgba(241, 243, 244, 0.55);
  pointer-events: none;
}

.footprints, .delivery-ground, .truck-track { display: none; }

@keyframes card-set { to { translate: 0 0; opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes exhaust-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(-20px, -16px) scale(1.9); }
}
@keyframes truck-drive { from { transform: translateX(var(--truck-from, -230px)); } to { transform: translateX(var(--truck-to, calc(100% + 140px))); } }

@media (prefers-reduced-motion: no-preference) {
  /* Cards are lowered into place, one at a time; the script sets each delay */
  .cards.is-armed .card { opacity: 0; translate: 0 -24px; }
  .cards.is-in .card { animation: card-set 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
}

/* Full truck scene only when the four cards sit in one row */
@media (prefers-reduced-motion: no-preference) and (min-width: 1100px) {
  .delivery.is-armed { padding-bottom: 5.5rem; }
  .delivery.is-armed .footprints {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    height: var(--cards-h, 16rem);
    pointer-events: none;
  }
  .footprints span {
    border: 1px dashed rgba(241, 243, 244, 0.35);
    border-radius: 10px;
  }
  .delivery.is-in .footprints span { animation: fade-out 400ms ease forwards; }

  /* While the truck drives, the road extends edge to edge so it never floats;
     once it has left, the extension fades and the line settles back to the content width */
  .delivery-ground::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 1px;
    background: rgba(241, 243, 244, 0.35);
    opacity: 0;
    transition: opacity 400ms ease;
  }
  /* Crossfade so only one line shows at a time: full width while driving, content width before and after */
  .delivery.is-armed.is-in .delivery-ground { background: transparent; }
  .delivery.is-in .delivery-ground::before { opacity: 1; }
  .delivery.is-armed.is-parked .delivery-ground { background: rgba(241, 243, 244, 0.35); transition: background-color 900ms cubic-bezier(0.22, 1, 0.36, 1); }
  .delivery.is-parked .delivery-ground::before { opacity: 0; transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1); }
  .delivery.is-armed .delivery-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: block;
    height: 1px;
    background: rgba(241, 243, 244, 0.35);
  }
  .delivery.is-armed .truck-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: block;
    height: 64px;
    pointer-events: none;
  }
  .truck-track { transform: translateX(var(--truck-from, -230px)); }
  .truck { position: absolute; left: 0; bottom: -6px; width: 205px; height: 77px; overflow: visible; }
  .truck-body path, .truck-body circle {
    fill: var(--green);
    stroke: var(--white);
    stroke-width: 1.5;
    stroke-linejoin: round;
  }
  .truck-load rect { fill: rgba(241, 243, 244, 0.18); stroke: var(--white); stroke-width: 1.25; }
  .delivery.is-in .truck-track { animation: truck-drive var(--truck-ms, 4600ms) linear forwards; }
  .delivery.is-in .truck-load rect { animation: fade-out 250ms ease forwards; }

  /* Exhaust: three puffs on a loop while the truck is driving, stopped once it has left */
  .truck-stack { stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
  .truck-exhaust circle {
    fill: none;
    stroke: var(--white);
    stroke-width: 1.2;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
  }
  .delivery.is-in .truck-exhaust circle { animation: exhaust-puff 1200ms ease-out infinite; }
  .delivery.is-in .truck-exhaust circle:nth-child(2) { animation-delay: 400ms; }
  .delivery.is-in .truck-exhaust circle:nth-child(3) { animation-delay: 800ms; }
  .delivery.is-parked .truck-exhaust circle { animation: none; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .card {
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 250ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .card:hover {
    z-index: 2;
    transform: translateY(-5px) scale(1.025);
    box-shadow: 0 18px 40px -18px rgba(13, 13, 13, 0.45);
  }
}

@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: 3rem;
}
.note { max-width: 38rem; color: var(--silver); font-size: var(--fs-small); }

/* ---------- Workforce housing: full-bleed crossfade ---------- */

.workforce {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, 92svh);
  overflow: hidden;
  background: var(--jet);
  color: var(--white);
}
.wf-slides { position: absolute; inset: 0; }
.wf-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.wf-slide.is-active { opacity: 1; }
.wf-slide img { width: 100%; height: 100%; object-fit: cover; }
.wf-slide.is-active img { animation: wf-drift 9s ease-out both; }
.wf-slide figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes wf-drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.workforce::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(13, 13, 13, 0.55) 0%, rgba(13, 13, 13, 0) 100%),
    linear-gradient(to right, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.62) 40%, rgba(13, 13, 13, 0.25) 70%, rgba(13, 13, 13, 0.1) 100%),
    linear-gradient(to top, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0) 55%);
  pointer-events: none;
}

.wf-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.workforce .eyebrow { color: var(--white); }
.workforce h2 { max-width: 16ch; color: var(--white); }
.wf-body { max-width: 34rem; margin: 1.5rem 0 2rem; font-size: var(--fs-xl); }

.wf-meta { display: grid; gap: 0.75rem; justify-items: start; align-self: end; }
.wf-product {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wf-tag {
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(241, 243, 244, 0.6);
  border-radius: 6px;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
}
.wf-caption {
  min-height: 1.2em;
  color: var(--silver);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.wf-controls { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.wf-count {
  min-width: 4.5rem;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.wf-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(241, 243, 244, 0.6);
  border-radius: var(--radius-sm);
  background: rgba(13, 13, 13, 0.3);
  color: var(--white);
  font: inherit;
  font-size: var(--fs-h6);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.wf-btn:hover { background: var(--white); color: var(--jet); }
.wf-pause { margin-left: 0.5rem; }
.wf-pause-icon { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.wf-pause.is-paused .wf-pause-icon {
  width: 0; height: 0;
  border-width: 7px 0 7px 11px;
  border-style: solid;
  border-color: transparent transparent transparent currentColor;
}

@media (min-width: 1000px) {
  .wf-inner { grid-template-columns: 1fr auto; align-items: end; }
  .wf-meta { justify-items: end; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-slide.is-active img { animation: none; }
}

/* Papaya Homes: real site photo full-bleed behind, dark gradient on the text side, copy left, framed rendering
   slideshow right (reuses the Workforce slide, button, and counter styles). Stacks below 1000px. */
.homes { position: relative; overflow: hidden; background: var(--jet); color: var(--white); }
.homes-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.homes::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13, 13, 13, 0.86) 0%, rgba(13, 13, 13, 0.72) 45%, rgba(13, 13, 13, 0.35) 75%, rgba(13, 13, 13, 0.2) 100%),
    linear-gradient(to top, rgba(13, 13, 13, 0.55) 0%, rgba(13, 13, 13, 0) 50%);
  pointer-events: none;
}
.homes-inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-block: var(--space); }
.homes .eyebrow { color: var(--white); }
.homes h2 { max-width: 16ch; color: var(--white); }
.homes-body { max-width: 34rem; margin-top: 1.25rem; font-size: var(--fs-xl); }
.homes-relation:empty { display: none; }
.homes-featured { display: grid; gap: 0.35rem; max-width: 34rem; margin: 2rem 0; padding-top: 1.1rem; border-top: 1px solid rgba(241, 243, 244, 0.35); }
.homes-featured-label { color: var(--silver); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.homes-featured-name { font-size: var(--fs-xl); font-weight: 500; }
.homes-featured-stats { font-weight: 500; }
.homes-featured-meta { color: var(--silver); font-size: var(--fs-small); }
.homes-show { display: grid; gap: 1rem; align-content: end; }
.homes-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--night); }
.homes-frame .wf-slide figcaption { display: none; }
/* Clean crossfade: the incoming slide fades in on top while the outgoing one stays fully visible underneath, then
   drops out once covered. No zoom here, so nothing snaps when a slide is replaced. */
.homes-frame .wf-slide { transition: opacity 0s linear 0.9s; }
.homes-frame .wf-slide.is-active { z-index: 1; transition: opacity 0.9s ease; }
.homes-frame .wf-slide.is-active img { animation: none; }
.homes-tag { z-index: 2; }
.homes-controls { margin-top: 0; }
.homes-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.homes-film-btn { display: inline-flex; align-items: center; gap: 0.6rem; }
.homes-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.homes-film { display: block; width: 100%; max-width: 34rem; margin-top: 1.25rem; border-radius: var(--radius); background: var(--night); }
.homes-film[hidden] { display: none; }
.homes-film:fullscreen { max-width: none; margin: 0; border-radius: 0; }
@media (min-width: 1000px) {
  .homes-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
  .homes-controls { justify-content: flex-end; }
}
@media (max-width: 999px) {
  .homes::after { background: rgba(13, 13, 13, 0.78); }
  .homes-body { font-size: var(--fs-body); }
  .homes-actions { display: grid; }
  .homes .btn { display: flex; justify-content: center; text-align: center; }
}

/* ---------- 4. Outcomes ---------- */

.outcomes { display: grid; gap: 0 3rem; }
.outcomes article { padding: 2rem 0; border-top: 1px solid var(--silver); }
.outcomes h3 { font-size: var(--fs-h6); line-height: 1; }
.outcomes p { max-width: 28rem; margin-top: 0.75rem; color: var(--onyx); }

/* Skyline line drawing (homepage closing section) */
.outcomes-head { display: grid; gap: 2.5rem; align-items: end; }
.skyline { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.sk-line line, .sk-line rect, .sk-line polyline {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.sk-line .sk-seam { stroke-opacity: 0.45; stroke-width: 1; }
.sk-trolley, .sk-cable { fill: var(--white); }
.sk-module rect { fill: rgba(241, 243, 244, 0.18); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sk-module line { stroke: var(--white); stroke-opacity: 0.45; vector-effect: non-scaling-stroke; }
.sk-cable { transform-box: fill-box; transform-origin: 50% 0; }

/* 12s loop: carry across, lower into place, hold, fade and reset */
@media (prefers-reduced-motion: no-preference) {
  .sk-load { animation: sk-travel 12s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
  .sk-module { animation: sk-lower 12s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
  .sk-cable { animation: sk-cable 12s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
}
@keyframes sk-travel {
  0% { transform: translateX(-150px); opacity: 0; }
  4% { opacity: 1; }
  34% { transform: translateX(0); }
  86% { transform: translateX(0); opacity: 1; }
  94%, 100% { transform: translateX(0); opacity: 0; }
}
@keyframes sk-lower {
  0%, 38% { transform: translateY(-88px); }
  62%, 100% { transform: translateY(0); }
}
@keyframes sk-cable {
  0%, 38% { transform: scaleY(0.358); }
  62%, 100% { transform: scaleY(1); }
}

@media (min-width: 1000px) {
  .outcomes-head { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .skyline { justify-self: end; }
}

.section-green .outcomes article { border-top-color: var(--green-60); }
.section-green .outcomes p { color: var(--silver); }

@media (min-width: 700px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .outcomes { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 5. Housing types ---------- */

.types { margin-top: 2.5rem; }
.types li { border-top: 1px solid var(--silver); }
.types li:last-child { border-bottom: 1px solid var(--silver); }
.types h3 { font-size: var(--fs-h6); line-height: 1; }
.types p { margin-top: 0.5rem; color: var(--onyx); }

/* Whole row is the link. Text stays aligned with the column; the tint bleeds slightly past it. */
.type-row {
  --ease-arch: cubic-bezier(0.22, 1, 0.36, 1);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-inline: -0.75rem;
  padding: 1.25rem 0.75rem;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: background-color 220ms var(--ease-arch), color 220ms var(--ease-arch);
}
.type-row h3 { transition: color 220ms var(--ease-arch); }
.type-arrow {
  color: var(--green);
  font-size: var(--fs-h6);
  opacity: 0.45;
  transition: transform 220ms var(--ease-arch), opacity 220ms var(--ease-arch);
}
.type-row:hover, .type-row:focus-visible { background: rgba(26, 87, 79, 0.05); }
.type-row:hover h3, .type-row:focus-visible h3 { color: var(--green); }
.type-row:hover .type-arrow, .type-row:focus-visible .type-arrow { transform: translateX(5px); opacity: 1; }
@media (hover: none) { .type-arrow { opacity: 0.8; } }

.build-cta { display: inline-block; margin-top: 2.25rem; }

/* Tighter vertical rhythm for this section only */
.build.section { padding-block: calc(var(--space) * 0.8); }

/* Completed / construction pair */
.proof {
  --ease-arch: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--silver);
}
.proof-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.proof-construction {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 650ms var(--ease-arch), transform 650ms var(--ease-arch);
}
.proof-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.proof-label span { grid-area: 1 / 1; transition: opacity 650ms var(--ease-arch); }
.proof-label-construction { opacity: 0; }

/* Swapped state: hover on fine pointers, or the toggle button anywhere */
.proof.is-construction .proof-construction { opacity: 1; transform: scale(1); }
.proof.is-construction .proof-label-completed { opacity: 0; }
.proof.is-construction .proof-label-construction { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .proof:hover .proof-construction { opacity: 1; transform: scale(1); }
  .proof:hover .proof-label-completed { opacity: 0; }
  .proof:hover .proof-label-construction { opacity: 1; }
}

.proof-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(241, 243, 244, 0.6);
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.45);
  color: var(--white);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.proof-toggle::after { content: " \2194"; }
/* On mouse devices the photo swaps on hover, so the button only shows for keyboard users */
@media (hover: hover) and (pointer: fine) {
  .proof-toggle:not(:focus-visible) { opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-construction { transform: none; transition: opacity 150ms linear; }
  .proof-label span { transition: opacity 150ms linear; }
  .type-row, .type-row h3, .type-arrow { transition: none; }
}

/* ---------- Interiors slideshow ---------- */

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 2.5rem;
}
.gallery-controls { display: flex; align-items: center; gap: 0.5rem; }
.gallery-count {
  margin-right: 1rem;
  color: var(--onyx);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.gallery-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--jet);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--jet);
  font: inherit;
  font-size: var(--fs-h6);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.gallery-btn:hover:not(:disabled) { background: var(--jet); color: var(--white); }
.gallery-btn:disabled { opacity: 0.3; cursor: default; }

/* Slides line up with the page margin and bleed off the right edge */
.gallery-track {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--edge);
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-track ul {
  display: flex;
  gap: 1rem;
  padding: 0 var(--edge);
  width: max-content;
}
.gallery-slide {
  flex: 0 0 auto;
  width: 86vw;
  scroll-snap-align: start;
}
.gallery-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  object-fit: cover;
}

@media (min-width: 900px) {
  .gallery-slide { width: min(64vw, 880px); }
  .gallery-track ul { gap: 1.5rem; }
}

/* Slideshow controls when placed on green */
.section-green .gallery-count { color: var(--silver); }
.section-green .gallery-btn { border-color: var(--white); color: var(--white); }
.section-green .gallery-btn:hover:not(:disabled) { background: var(--white); color: var(--green); }

/* ---------- 7. Principles over a full-bleed photo ---------- */

.immersive {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 90vh;
  min-height: max(600px, 90svh);
  overflow: hidden;
  background: var(--jet);
  color: var(--white);
}
.immersive-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.immersive::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13, 13, 13, 0.55) 0%, rgba(13, 13, 13, 0.25) 45%, rgba(13, 13, 13, 0) 70%),
    linear-gradient(to top, rgba(13, 13, 13, 0.8) 0%, rgba(13, 13, 13, 0.5) 45%, rgba(13, 13, 13, 0.1) 80%);
  pointer-events: none;
}

.immersive-inner {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.immersive .eyebrow { color: var(--white); }
.glass-row { display: grid; gap: 1rem; margin-top: 2.5rem; }
.glass-row .glass-card { align-content: start; }
.glass-row .glass-label { line-height: 1.2; }

@media (min-width: 800px) { .glass-row { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 8. Inquiry ---------- */

.start-grid { display: grid; gap: 3rem; }
.start-title span { display: block; }
.start-title span:first-child { font-weight: 700; }
.start-secondary { max-width: 30rem; margin-top: 1.5rem; font-weight: 500; }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--jet);
}
.inquiry-form { display: grid; gap: 1.25rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: var(--fs-small); font-weight: 500; }
.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--jet);
  font: inherit;
  font-size: var(--fs-body);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23312B29' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--cambridge); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--jet); box-shadow: 0 0 0 1px var(--jet); }
.field-error { margin-top: 0.4rem; font-size: var(--fs-small); font-weight: 700; }
.field-error::before { content: "Error: "; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }

.inquiry-success { color: var(--jet); }
.inquiry-success:focus { outline: none; }
.inquiry-success .cross { color: var(--green); }
.inquiry-success h3 { margin-top: 1.25rem; font-size: var(--fs-h4); font-weight: 500; }
.inquiry-success p { margin: 0.75rem 0 1.25rem; color: var(--onyx); }

@media (min-width: 640px) {
  .inquiry-form { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .start-grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; }
}

/* ---------- Footer ---------- */

.site-footer { padding: 3.5rem 0 5rem; background: var(--white); }
.footer-inner { display: grid; gap: 2rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; }
.footer-legal { flex-basis: 100%; color: var(--onyx); font-size: var(--fs-small); }
.footer-mark { display: inline-block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer-nav a { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.06em; text-decoration: none; }
.footer-nav a:hover { color: var(--green); }

@media (min-width: 960px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: start; }
  .footer-inner nav { justify-self: end; }
  .footer-contact { grid-column: 1 / -1; }
}

/* ---------- Our Process page ---------- */

.page-green main { background: var(--green); color: var(--white); }
.page-green .label { color: var(--silver); }
.page-green .intro { color: var(--silver); }

.hw-hero { position: relative; padding-top: clamp(8.5rem, 6rem + 6vw, 12rem); overflow: hidden; }
.hw-hero .eyebrow { color: var(--silver); }
/* Two sentences, one per line; sized so each holds a single line on desktop */
.hw-title { font-size: clamp(2.5rem, 0.75rem + 5.4vw, 5.5rem); font-weight: 500; line-height: 1.02; }
.hw-title span { display: block; }
.hw-hero .lede { color: var(--silver); }

.hw-stats { display: grid; gap: 1.25rem 2rem; margin: 3rem 0 0; }
.hw-stats div { padding-left: 1.25rem; border-left: 1px solid var(--green-60); }
.hw-stats dt { font-size: var(--fs-h4); font-weight: 700; letter-spacing: 0.02em; }
.hw-stats dd {
  margin: 0.4rem 0 0;
  color: var(--silver);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* Values and labels each share a row, so a two-line value doesn't push its label out of line */
@media (min-width: 700px) {
  .hw-stats { grid-template-columns: repeat(3, minmax(0, 16rem)); grid-template-rows: auto auto; row-gap: 0; }
  .hw-stats div { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; }
  .hw-stats dt { align-self: end; }
}

/* Signature line drawing: factory to site */
.hw-scene-wrap { margin-top: clamp(3rem, 2rem + 3vw, 5rem); overflow: hidden; }
.hw-scene { display: block; width: 100%; height: auto; overflow: visible; }
.hw-scene * { fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }
.hw-scene g { stroke: none; }
.hw-scene .hw-soft { stroke-opacity: 0.45; stroke-width: 1; }
/* Solid green fills hide what passes behind: the line inside the factory, lines behind the wheels */
.hw-scene .hw-wall, .hw-scene .hw-door rect, .hw-scene .hw-truck rect, .hw-scene .hw-truck path, .hw-scene circle { fill: var(--green); }
.hw-scene .hw-crane > rect, .hw-scene .hw-crane > path { fill: var(--green); }
.hw-scene .hw-module { fill: var(--green); stroke-width: 2; }
.hw-scene .hw-studs line { stroke-opacity: 0.7; stroke-width: 1; }
/* The boom pivots on top of the crane's mast */
.hw-scene .hw-boom { transform-box: view-box; transform-origin: 900px 150px; }
.hw-scene .hw-slab { fill: rgba(241, 243, 244, 0.18); }
.hw-scene .hw-solid { fill: var(--white); stroke: none; }
.hw-scene .hw-cable { transform-box: fill-box; transform-origin: 50% 0; }
.hw-scene .hw-door { transform-box: fill-box; transform-origin: 50% 0; }
/* The finished home comes alive: windows lit */
.hw-scene .hw-lite { fill: var(--white); stroke: none; opacity: 0.9; filter: drop-shadow(0 0 5px rgba(241, 243, 244, 0.75)); }
@media (max-width: 699px) {
  .hw-scene * { stroke-width: 3; }
  .hw-scene .hw-soft, .hw-scene .hw-studs line { stroke-width: 2; }
}

/* Resting state (also what visitors who prefer less motion see): the module set, the truck at the site, windows lit */
.hw-mod-x { transform: translateX(795px); }
.hw-mod-y { transform: translateY(-12px); }
.hw-truck { transform: translateX(260px); }
.hw-cable { transform: scaleY(0.4); }
.hw-slings, .hw-studs { opacity: 0; }
.hw-door { transform: scaleY(0); }

/* One 5.6 second take. The module, the truck, the boom's swing, and the cable share keyframe positions,
   so the load always rides the bed or hangs from the hook. */
@media (prefers-reduced-motion: no-preference) {
  .hw-draw { stroke-dasharray: 1; animation: hw-draw 1s cubic-bezier(0.45, 0, 0.25, 1) 0.1s both; }
  .hw-draw-late { stroke-dasharray: 1; animation: hw-draw 0.7s cubic-bezier(0.45, 0, 0.25, 1) 2.2s both; }
  .hw-build { stroke-dasharray: 1; animation: hw-draw 0.4s ease-out 0.6s both; }
  .hw-studs line { stroke-dasharray: 1; animation: hw-draw 0.22s ease-out both; }
  .hw-studs line:nth-child(1) { animation-delay: 0.75s; }
  .hw-studs line:nth-child(2) { animation-delay: 0.82s; }
  .hw-studs line:nth-child(3) { animation-delay: 0.89s; }
  .hw-studs line:nth-child(4) { animation-delay: 0.96s; }
  .hw-studs line:nth-child(5) { animation-delay: 1.03s; }
  .hw-studs line:nth-child(6) { animation-delay: 1.1s; }
  .hw-door, .hw-truck, .hw-mod-x, .hw-mod-y, .hw-boom, .hw-hoist, .hw-cable, .hw-slings, .hw-found, .hw-roof,
  .hw-studs, .hw-skin, .hw-scene .hw-lite {
    animation-duration: 5.6s;
    animation-delay: 0.15s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
  }
  .hw-door { animation-name: hw-door; }
  .hw-truck { animation-name: hw-truck; }
  .hw-mod-x { animation-name: hw-mod-x; }
  .hw-mod-y { animation-name: hw-mod-y; }
  .hw-boom { animation-name: hw-boom; }
  .hw-hoist { animation-name: hw-hoist; }
  .hw-cable { animation-name: hw-cable; }
  .hw-slings { animation-name: hw-slings; }
  .hw-found { animation-name: hw-found; }
  .hw-studs { animation-name: hw-studs; }
  .hw-skin { animation-name: hw-skin; }
  .hw-scene .hw-lite { animation-name: hw-lite; }
  .hw-roof { stroke-dasharray: 1; animation-name: hw-roof; }
}
@keyframes hw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hw-door { 0%, 8% { transform: none; } 15%, 100% { transform: scaleY(0); } }
/* Framed on the line, then closed in: studs give way to the finished wall and its windows */
@keyframes hw-studs { 0%, 28% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes hw-skin { 0%, 28% { opacity: 0; } 33%, 100% { opacity: 1; } }
/* The truck backs in from the right, stops at the bay, then drives to the site */
@keyframes hw-truck {
  0%, 15% { transform: translateX(850px); }
  31.7%, 40% { transform: none; }
  55%, 100% { transform: translateX(260px); }
}
@keyframes hw-mod-x {
  0%, 31.7% { transform: none; }
  40% { transform: translateX(175px); }
  55%, 65% { transform: translateX(435px); }
  75%, 100% { transform: translateX(795px); }
}
@keyframes hw-mod-y {
  0%, 60% { transform: none; }
  65%, 75% { transform: translateY(-60px); }
  80%, 100% { transform: translateY(-12px); }
}
/* Boom swings from the truck (reach to the left) over to the house (reach to the right) */
@keyframes hw-boom { 0%, 65% { transform: scaleX(-1); } 75%, 100% { transform: none; } }
@keyframes hw-hoist {
  0%, 42% { transform: translateX(-360px); opacity: 0; }
  50%, 65% { transform: translateX(-360px); opacity: 1; }
  75%, 100% { transform: none; opacity: 1; }
}
/* Hook heights: waiting 90, on the module 136, lifted 76, set on the first story 124 (cable hangs from the boom tip at 30) */
@keyframes hw-cable {
  0%, 55% { transform: scaleY(0.4545); }
  60% { transform: scaleY(0.803); }
  65%, 75% { transform: scaleY(0.348); }
  80% { transform: scaleY(0.712); }
  84%, 100% { transform: scaleY(0.4); }
}
@keyframes hw-slings { 0%, 59% { opacity: 0; } 60%, 80% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes hw-found { 0%, 42% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes hw-roof { 0%, 80% { stroke-dashoffset: 1; } 87%, 100% { stroke-dashoffset: 0; } }
@keyframes hw-lite { 0%, 87% { opacity: 0; } 95%, 100% { opacity: 0.9; } }
/* Owner tags */
.tag {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--white);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.tag-papaya { background: var(--white); color: var(--green); }
.tag-gc { background: transparent; color: var(--white); }

/* Who owns what: the headline and summary lead straight into the steps */
.hw-owners { padding-bottom: 0; }
.owner-note {
  max-width: 34rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--green-60);
  color: var(--silver);
  font-size: var(--fs-small);
  line-height: 1.4;
}

/* The nine steps */
.hw-steps { --col-gap: 3rem; display: grid; gap: 0 var(--col-gap); }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--green-60);
}
.decal { display: block; width: 100%; max-width: 190px; height: auto; margin-bottom: 1.75rem; overflow: visible; }
.decal > * { fill: none; stroke: var(--white); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.decal .soft { stroke-opacity: 0.45; stroke-width: 1.1; }
.step-meta { display: flex; align-items: baseline; gap: 0.75rem; }
.step-num { font-size: var(--fs-h4); font-weight: 700; letter-spacing: 0.02em; }
.step-phase { color: var(--silver); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.step h3 { margin-top: 0.9rem; font-size: var(--fs-h6); font-weight: 700; }
.step-owner { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }
.step-body { max-width: 30rem; margin-top: 1rem; color: var(--silver); line-height: 1.4; }

/* 05 and 06 run in parallel: a marker sits on the line above the pair */
.parallel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.4rem 0 1.5rem;
  color: var(--white);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.parallel::before, .parallel::after { content: ""; flex: 1; height: 1px; background: var(--cambridge); }
.parallel::before { flex: 0 0 18px; }
.step-parallel-start, .step-parallel-end { border-top-color: var(--cambridge); }
@media (min-width: 700px) {
  .hw-steps { grid-template-columns: repeat(2, 1fr); }
  /* The marker spans both steps of the pair, which always sit side by side */
  .parallel {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(200% + var(--col-gap));
    margin: 0;
    transform: translateY(-50%);
  }
  .parallel span { padding: 0 0.25rem; background: var(--green); }
  .parallel::before, .parallel::after { display: none; }
  .step-parallel-start, .step-parallel-end { border-top: 1px solid var(--cambridge); }
}
@media (min-width: 1100px) { .hw-steps { grid-template-columns: repeat(3, 1fr); --col-gap: 3.5rem; } }

/* Shared entrance: fades and rises into place once, as it reaches the screen (see main.js) */
[data-reveal].is-armed { opacity: 0; translate: 0 16px; }
[data-reveal].is-armed.is-in {
  opacity: 1;
  translate: 0 0;
  transition: opacity 450ms ease-out var(--draw-delay, 0ms), translate 500ms cubic-bezier(0.22, 1, 0.36, 1) var(--draw-delay, 0ms);
}

/* Where Papaya fits, and the way in */
.hw-fit { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.hw-fit-grid { display: grid; gap: 3rem; padding-top: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--green-60); }
.hw-cta {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1.25rem;
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  border: 1px solid var(--green-60);
  border-radius: var(--radius);
  background: var(--green-80);
}
.hw-cta-title { font-size: var(--fs-h4); font-weight: 500; }
.hw-cta p { color: var(--white); font-size: var(--fs-xl); line-height: 1.3; }
.hw-cta .btn { margin-top: 0.5rem; }
@media (min-width: 1000px) { .hw-fit-grid { grid-template-columns: 7fr 5fr; gap: 5rem; align-items: center; } }

/* ---------- Housing Solutions and category pages ---------- */

.hs-hero { padding: clamp(8.5rem, 6rem + 6vw, 12rem) 0 var(--space); }
.hs-hero-short { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); }
.hs-hero .eyebrow { color: var(--silver); }
.hs-title { max-width: 20ch; font-size: clamp(2.5rem, 1rem + 4.6vw, 5rem); font-weight: 500; line-height: 1.02; }
.hs-hero .lede { color: var(--silver); }
/* Housing Solutions headline: two balanced lines on wider screens, sized so each fits on one line;
   on phones it wraps naturally, balanced so no word sits alone */
.hs-title-lines { max-width: none; font-size: clamp(2.25rem, 0.9rem + 3.9vw, 4.5rem); text-wrap: balance; }
@media (min-width: 900px) { .hs-title-lines span { display: block; } }
.hs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }

/* Compact editorial intro on category pages: text beside one image, about 55 to 70% of the screen,
   so the next section shows at the bottom of the first view. No forced full height. */
.cat-intro { padding: clamp(7rem, 6rem + 2vw, 8rem) 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.cat-intro-grid { display: grid; gap: 2rem; align-items: center; }
.cat-intro-copy { display: grid; justify-items: start; }
.cat-intro-title { max-width: 20ch; font-size: clamp(2rem, 1rem + 2.2vw, 3.25rem); font-weight: 500; line-height: 1.05; text-wrap: balance; }
.cat-intro-lede { max-width: 34rem; margin: 1.25rem 0 1.75rem; color: var(--silver); font-size: var(--fs-xl); line-height: 1.4; text-wrap: pretty; }
.cat-intro-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.cat-intro-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rendering-tag:empty { display: none; }
/* Delivered-project link under the intro copy (Workforce Housing links to Aspen) */
.cat-intro-proof { display: grid; gap: 0.3rem; justify-self: stretch; max-width: 34rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(195, 203, 201, 0.35); color: var(--white); text-decoration: none; }
.cat-intro-proof-label { color: var(--silver); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.cat-intro-proof-name { font-size: var(--fs-xl); font-weight: 500; }
.cat-intro-proof-name span { display: inline-block; transition: translate 200ms ease; }
.cat-intro-proof-meta { color: var(--silver); font-size: var(--fs-small); }
.cat-intro-proof:hover .cat-intro-proof-name { color: var(--silver); }
.cat-intro-proof:hover .cat-intro-proof-name span { translate: 4px 0; }
/* Same link in the homepage workforce section, sitting between the body copy and the button */
.wf-proof { margin: 0 0 2rem; padding: 1.1rem 0 0; border-top-color: rgba(241, 243, 244, 0.35); }
/* The section after the intro starts closer, so its heading shows in the first view */
.cat-intro + .section { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 900px) {
  .cat-intro { display: flex; align-items: center; min-height: clamp(32rem, 64vh, 44rem); }
  .cat-intro-grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 1rem + 4vw, 5rem); }
  /* The image never grows taller than the intro allows, so the next section stays in view */
  .cat-intro-media img { aspect-ratio: auto; max-height: min(52vh, 30rem); min-height: 20rem; }
}
@media (max-width: 699px) {
  .cat-intro-title { font-size: 1.875rem; }
  .cat-intro-lede { font-size: var(--fs-body); }
  .cat-intro-media img { aspect-ratio: 16 / 10; }
}
/* One restrained entrance: copy fades and rises with a slight stagger, the image opens from a soft mask.
   All of it finishes in about 850ms. */
@media (prefers-reduced-motion: no-preference) {
  .cat-intro-copy > * { animation: intro-rise 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .cat-intro-copy > :nth-child(2) { animation-delay: 70ms; }
  .cat-intro-copy > :nth-child(3) { animation-delay: 140ms; }
  .cat-intro-copy > :nth-child(4) { animation-delay: 210ms; }
  .cat-intro-copy > :nth-child(5) { animation-delay: 280ms; }
  .cat-intro-media { animation: intro-mask 800ms cubic-bezier(0.22, 1, 0.36, 1) 50ms both; }
}
@keyframes intro-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes intro-mask { from { opacity: 0.4; clip-path: inset(6% 0 6% 12% round var(--radius)); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); } }

/* Breadcrumb in place of the eyebrow on category pages */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  color: var(--silver);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.crumbs a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(241, 243, 244, 0.4); }
.crumbs a:hover { border-bottom-color: var(--white); }

/* Three panels: side by side on desktop, the hovered one widens a little; stacked on phones */
.hs-panels-section { background: var(--green); padding: 0 var(--gutter); }
/* The panels and the closing share one green field, so one moderate gap separates them */
.hs-after-panels.section { padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.hs-panels { display: grid; gap: 0.75rem; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }
.hs-panels li { display: flex; }
.hs-panel {
  --ease-arch: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 26rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-80);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.hs-panel-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-arch); }
/* Darken only where the type sits */
.hs-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.78) 0%, rgba(13, 13, 13, 0.45) 38%, rgba(13, 13, 13, 0) 68%);
}
/* Twin Oaks side view: keep the near end of the row in frame when the panel crops it */
.hs-panel-media-left { object-position: 30% 50%; }
.hs-panel-copy { display: grid; gap: 0.6rem; padding: 1.75rem; }
.hs-panel-title { font-size: var(--fs-h4); font-weight: 500; letter-spacing: 0.02em; }
.hs-panel-body { max-width: 26rem; color: var(--silver); line-height: 1.4; }
.hs-panel-cta { margin-top: 0.5rem; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hs-panel-cta span { display: inline-block; transition: transform 250ms var(--ease-arch); }
.hs-panel:hover .hs-panel-cta span, .hs-panel:focus-visible .hs-panel-cta span { transform: translateX(6px); }
@media (min-width: 900px) {
  .hs-panels { display: flex; height: clamp(30rem, 62vh, 40rem); gap: 1rem; }
  .hs-panels li { flex: 1 1 0; min-width: 0; transition: flex-grow 600ms cubic-bezier(0.22, 1, 0.36, 1); }
  .hs-panel { min-height: 0; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .hs-panels li:hover, .hs-panels li:focus-within { flex-grow: 1.35; }
  .hs-panel:hover .hs-panel-media { transform: scale(1.03); }
  /* The link reveals on hover; keyboard focus and touch screens always show it */
  .hs-panel-cta { opacity: 0; translate: 0 6px; transition: opacity 300ms, translate 300ms var(--ease-arch); }
  .hs-panel:hover .hs-panel-cta, .hs-panel:focus-visible .hs-panel-cta { opacity: 1; translate: 0 0; }
}

/* Restrained label for renderings and plans: always visible, never loud */
.rendering-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: rgba(13, 13, 13, 0.55);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Category page sections */
.hs-split { align-items: center; }
@media (min-width: 1000px) { .hs-split { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.tag-green { border-color: var(--green); background: transparent; color: var(--green); }
.hs-audience { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.hs-audience-label { color: var(--onyx); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.hs-audience ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hs-blocks { display: grid; gap: 0 3rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.hs-blocks article { padding: 1.75rem 0; border-top: 1px solid var(--silver); }
.hs-blocks h3 { font-size: var(--fs-h6); }
.hs-blocks p { max-width: 28rem; margin-top: 0.75rem; color: var(--onyx); line-height: 1.4; }
.section-green .hs-blocks article { border-top-color: var(--green-60); }
.section-green .hs-blocks p { color: var(--silver); }
@media (min-width: 900px) { .hs-blocks { grid-template-columns: repeat(3, 1fr); } }
.hs-closing-line { max-width: 40rem; margin-top: 1rem; color: var(--green); font-size: var(--fs-xl); font-weight: 500; line-height: 1.35; }
/* On green (How we help now sits on green, below the models) */
.section-green .hs-closing-line { color: var(--white); }
.section-green .hs-audience-label { color: var(--silver); }
.section-green .tag-green { border-color: var(--white); color: var(--white); }

.hs-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.hs-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

/* Model cards */
.model-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .model-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
/* Multifamily: four models, two per row at every width above phones */
@media (min-width: 1100px) { .model-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.model-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--silver); border-radius: var(--radius); background: #FFFFFF; color: var(--jet); }
.model-media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--silver); }
.model-media img { width: 100%; height: 100%; object-fit: cover; }
/* Floor plans: the plan image stays hidden in the card; the "View floor plan" button opens it large in a dialog (main.js) */
.has-plan .model-plan, .tag-plan { display: none; }
.plan-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(241, 243, 244, 0.6);
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.55);
  color: var(--white);
  font: inherit;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.plan-toggle:hover { border-color: var(--green); background: var(--green); }

/* The large view: a white sheet up to 92% of the screen, over a dimmed page */
.plan-zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 3vh 4vw;
  background: rgba(13, 13, 13, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease-out, visibility 0s linear 200ms;
}
.plan-zoom.is-open { opacity: 1; visibility: visible; transition: opacity 200ms ease-out; }
.plan-zoom-frame {
  position: relative;
  display: grid;
  gap: 0.75rem;
  max-width: min(1400px, 92vw);
  margin: 0;
  padding: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 30px 80px -30px rgba(13, 13, 13, 0.6);
}
.plan-zoom-frame img { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.plan-zoom-frame figcaption {
  color: var(--green);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* Native dialog: takes clicks and stays open until closed */
.plan-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: inherit; }
.plan-dialog[open] { opacity: 1; visibility: visible; pointer-events: auto; transition: none; }
.plan-dialog::backdrop { background: transparent; }
.plan-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--silver);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--jet);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.plan-close:hover { border-color: var(--green); color: var(--green); }
/* Single-family renderings are very wide, so their frame is too */
.model-grid-wide .model-media { aspect-ratio: 2 / 1; }
/* Floor plans sit whole on white rather than cropped */
.model-media-plan { background: #FFFFFF; }
.model-media-plan img { padding: 4%; object-fit: contain; }
.model-body { display: grid; align-content: start; gap: 0.6rem; padding: 1.5rem 1.5rem 1.75rem; }
.model-body h3 { font-size: var(--fs-h6); }
.model-tag { color: var(--green); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.model-specs { color: var(--green); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.06em; }
.model-note { color: var(--onyx); font-size: var(--fs-small); line-height: 1.4; }
.model-link { justify-self: start; margin-top: 0.5rem; }
/* A featured model takes the full row; the rest pair up beneath it */
.model-grid-featured .model-card-featured { grid-column: 1 / -1; }
@media (min-width: 1100px) { .model-grid-featured { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .model-card-featured { flex-direction: row; }
  .model-card-featured .model-media { flex: 1 1 60%; aspect-ratio: auto; min-height: 100%; }
  .model-card-featured .model-body { flex: 1 1 40%; align-content: center; padding: 2rem; }
  .model-card-featured h3 { font-size: var(--fs-h4); font-weight: 500; }
}

/* Multifamily: one wide rendering, then detail beside a second view */
.model-hero { position: relative; margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem); overflow: hidden; border-radius: var(--radius); }
.model-hero img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
.model-specs-lg { margin-top: 1rem; font-size: var(--fs-body); }
.model-plan-link { display: inline-block; margin-top: -1.5rem; }

/* Closing card on category pages */
.hs-endcard {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--white);
}
.hs-endcard .label { color: var(--silver); }
.hs-endcard .intro { color: var(--silver); }
.hs-endcard .btn { justify-self: start; }
@media (min-width: 900px) { .hs-endcard { grid-template-columns: 1fr auto; } }

.hs-close { border-top: 0; padding-top: 0; }

/* ---------- Start a Project page ---------- */

/* Compact header: intro and next steps beside the form, so the form shows without scrolling */
.start-page { padding: clamp(7rem, 6rem + 2vw, 8rem) 0 var(--space); }
.start-page .eyebrow { color: var(--silver); }
.start-page-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1000px) { .start-page-grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; } }
.start-page-title { font-size: clamp(2.25rem, 1rem + 3vw, 3.75rem); font-weight: 500; line-height: 1.05; }
.start-page .start-secondary { color: var(--white); }
.start-next-title { margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0.5rem; color: var(--silver); }
.start-steps { display: grid; }
.start-steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--green-60); }
.start-step-num { color: var(--silver); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.08em; }
.start-steps h3 { font-size: var(--fs-body); font-weight: 700; }
.start-steps p { margin-top: 0.35rem; color: var(--silver); line-height: 1.4; }
@media (min-width: 1000px) { .start-page .form-card { position: sticky; top: 7rem; } }

/* Homepage project preview: four completed homes, linking through */
.home-projects-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .home-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .home-projects-grid { grid-template-columns: repeat(4, 1fr); } }
.proj-card-compact .proj-card-copy { gap: 0.3rem; padding-top: 1rem; }
.proj-card-compact .proj-card-name { font-size: var(--fs-h6); }
.home-projects-link { justify-self: start; }
@media (min-width: 1000px) { .home-projects-link { justify-self: end; } }
.section-foot-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }

/* Why Papaya: link to the completed projects, under the closing line */
.why-projects-link { display: inline-block; margin-top: 2rem; }

/* Homepage closing call to action (the form itself lives on the Start a Project page) */
.home-cta-grid { display: grid; gap: 1.5rem 4rem; align-items: center; }
@media (min-width: 1000px) { .home-cta-grid { grid-template-columns: 1fr 1fr; } }
.home-cta .intro { margin-top: 1.5rem; max-width: 30rem; }
/* The crane from the old outcomes header now closes the page: setting the last module beside "Bring us the site." */
.home-cta .skyline { justify-self: center; }
@media (min-width: 1000px) { .home-cta .skyline { justify-self: end; } }
.home-cta-btn { margin-top: 1.75rem; }

/* Text link under a paragraph: a clear gap above it */
.hs-cta { display: inline-block; margin-top: 2rem; }

/* ---------- 404 and legal pages ---------- */

.notfound-links .types { margin-top: 0; max-width: 46rem; }
.notfound-links .type-row h2 { max-width: none; font-size: var(--fs-h6); font-weight: 700; line-height: 1; }
/* Privacy Policy: contents list beside numbered sections. Brand type and color: green numbers, Jet headings, Onyx body. */
.legal-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 15rem minmax(0, 44rem); justify-content: start; gap: clamp(3rem, 1rem + 5vw, 6rem); }
  .legal-toc { position: sticky; top: 7rem; align-self: start; }
}
.legal-toc .label { margin-bottom: 1rem; }
.legal-toc ol { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { display: grid; grid-template-columns: 2rem 1fr; counter-increment: toc; font-size: var(--fs-small); }
.legal-toc li::before { content: "0" counter(toc); color: var(--green); font-weight: 700; letter-spacing: 0.08em; }
.legal-toc a { color: var(--onyx); text-decoration: none; }
.legal-toc a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.25em; }
.legal-text { color: var(--onyx); line-height: 1.7; }
.legal-lead { color: var(--jet); font-size: var(--fs-xl); line-height: 1.5; }
.legal-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--silver); scroll-margin-top: 7rem; }
.legal-num { color: var(--green); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; }
.legal-text h2 { max-width: none; margin: 0.4rem 0 0.9rem; color: var(--jet); font-size: var(--fs-h6); font-weight: 500; line-height: 1.3; letter-spacing: 0.01em; }
.legal-text p + p { margin-top: 1rem; }
.legal-text p:empty { display: none; }
.legal-foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--silver); color: var(--onyx); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 999px) {
  .legal-toc { padding-bottom: 2rem; border-bottom: 1px solid var(--silver); }
  .legal-lead { font-size: var(--fs-body); }
}
.footer-legal a { text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-legal a:hover { color: var(--green); }

/* ---------- About Papaya ---------- */

/* Production network: copy beside a static outline map */
.network-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .network-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.us-map { margin: 0; }
.us-map-frame { position: relative; aspect-ratio: 975 / 610; }
.us-map-frame svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Thin state lines, a slightly stronger national outline; flat, no fills or shading */
.us-map-svg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-borders { stroke: var(--silver); stroke-opacity: 0.45; stroke-width: 0.75; }
.map-nation { stroke: var(--white); stroke-opacity: 0.85; stroke-width: 1.25; }
/* Factory partner markers: small rings (Papaya has no facilities of its own) */
.map-marker { fill: var(--green); stroke: var(--white); stroke-width: 1.5; }
/* Entrance, once: the outline draws in, then the markers fade in. Static without motion. */
@media (prefers-reduced-motion: no-preference) {
  .us-map.is-armed .us-map-svg path { stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: none; }
  .us-map.is-armed.is-in .us-map-svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(0.45, 0, 0.25, 1) 0.1s; }
  .us-map.is-armed .map-markers { opacity: 0; }
  .us-map.is-armed.is-in .map-markers { opacity: 1; transition: opacity 500ms ease-out 1s; }
}
/* Until the outline map is added, don't hold an empty space for it */
.us-map-frame:empty { display: none; }
.us-map-note { margin-top: 1rem; }

/* Team: a slideshow of team photos (same component as the homepage interiors slideshow) */
.team-gallery .gallery-slide figure { margin: 0; }
.team-meet-btn { margin-top: 1.25rem; }

/* Meet the Team page: portrait headshot (4:5), name, title, bio. One column on phones, two on tablets, three on desktop. */
.team-grid { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 3.5rem) 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-photo { margin: 0 0 1.25rem; overflow: hidden; border-radius: var(--radius); background: var(--silver); }
.team-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.team-name { font-size: var(--fs-h6); font-weight: 500; line-height: 1.3; }
.team-role { margin-top: 0.35rem; color: var(--onyx); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.team-bio { max-width: 34rem; margin-top: 0.9rem; color: var(--jet); line-height: 1.55; }
/* "Read bio" toggle: label text swaps to "Hide bio" when open (no rotating arrow, per the brand rules) */
.team-more { margin-top: 0.9rem; }
.team-more summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; color: var(--green); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.team-more summary::-webkit-details-marker { display: none; }
.team-more summary::after { content: "+"; font-size: 1.1rem; font-weight: 500; line-height: 1; letter-spacing: 0; }
.team-more[open] summary::after { content: "\2212"; }
.team-more summary:hover { color: var(--green-80); }
.team-more summary:focus-visible { outline: 2px solid var(--cambridge); outline-offset: 4px; border-radius: 2px; }
.team-more .when-open, .team-more[open] .when-closed { display: none; }
.team-more[open] .when-open { display: inline; }
.team-bio p + p { margin-top: 0.75rem; }
.team-bio p:empty { display: none; }

/* ---------- Projects ---------- */

/* Compact title band: no hero, the work shows right below */
.proj-intro { padding: clamp(7rem, 6rem + 2vw, 8rem) 0 clamp(2.25rem, 1.75rem + 2vw, 3.25rem); }
.proj-intro .eyebrow { color: var(--silver); }
.proj-list-intro .cat-intro-lede { margin-bottom: 0; }
.proj-location { margin-top: 0.75rem; color: var(--silver); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.proj-note { max-width: 40rem; margin-top: 1rem; color: var(--silver); line-height: 1.4; }
.proj-note:empty { display: none; }
.proj-intro + .section { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* Build Footage: 16:9 Vimeo player beside the Projects intro text */
.proj-video { margin: 0; }
.proj-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--night); }
.proj-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Individual Homes: prefab foundations, text beside the install video */
.foundation-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .foundation-grid { grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 1rem + 4vw, 5rem); } }
.foundation-copy .intro { margin-top: 1.25rem; }
.foundation-steps { display: grid; gap: 0.6rem; margin: 1.5rem 0 1.75rem; padding: 0; list-style: none; counter-reset: fstep; }
.foundation-steps li { display: grid; grid-template-columns: 2rem 1fr; align-items: baseline; counter-increment: fstep; }
.foundation-steps li::before { content: "0" counter(fstep); color: var(--green); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; }
.foundation-video .proj-video-caption { color: var(--onyx); }

/* Project page: video in the photo's place, on a light background */
.proj-hero-video[hidden], .proj-hero[hidden] { display: none; }
.proj-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-hero-video .proj-video-caption { color: var(--onyx); }
.proj-video-caption { margin-top: 0.75rem; color: var(--silver); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.proj-intro-grid .cat-intro-lede { margin-bottom: 0; }

/* Status label: the same small uppercase tag everywhere */
.status-tag {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}
.status-on-photo { position: absolute; left: 12px; top: 12px; }

/* Project grid: two columns on desktop, photos lead */
.proj-grid { display: grid; gap: 1.5rem; }
/* Projects page: one labeled group per housing type. Stacked on smaller screens (with jump links in the intro);
   side by side on desktop, workforce in one column and the single-family homes two across, so both show at once. */
.proj-group-title { margin-bottom: 1.25rem; }
.proj-groups { display: grid; gap: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.proj-group { scroll-margin-top: 6rem; }
.proj-jump { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 1.5rem; }
@media (min-width: 1000px) {
  .proj-groups { grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
  .proj-groups .proj-grid-1 { grid-template-columns: 1fr; }
  .proj-group + .proj-group { padding-left: 2rem; border-left: 1px solid var(--silver); }
  .proj-jump { display: none; }
}
@media (min-width: 800px) { .proj-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
.proj-card {
  --ease-arch: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--jet);
  text-decoration: none;
}
.proj-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--silver); }
.proj-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-arch); }
.proj-card-copy { display: grid; gap: 0.45rem; padding: 1.25rem 0.25rem 0; }
.proj-card-name { font-size: var(--fs-h4); font-weight: 500; letter-spacing: 0.02em; }
.proj-card-meta { color: var(--green); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.proj-card-role { color: var(--onyx); line-height: 1.4; }
.proj-card-link { margin-top: 0.4rem; font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.proj-card-link span { display: inline-block; transition: transform 250ms var(--ease-arch); }
.proj-card:hover .proj-card-link span, .proj-card:focus-visible .proj-card-link span { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) { .proj-card:hover .proj-card-media img { transform: scale(1.03); } }


/* Detail page: photo and facts side by side, so the key facts show immediately */
.proj-top { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .proj-top { grid-template-columns: 2fr 1fr; gap: 3rem; } }
.proj-hero { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.proj-hero img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.proj-facts { display: grid; margin: 0; }
.proj-facts div { padding: 0.9rem 0; border-top: 1px solid var(--silver); }
.proj-facts dt { color: var(--onyx); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.proj-facts dd { margin: 0.4rem 0 0; font-weight: 500; line-height: 1.35; }
.proj-sections { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
@media (min-width: 900px) { .proj-sections { grid-template-columns: repeat(2, 1fr); } }
.proj-sections p + p { margin-top: 0.5rem; }
/* Project title band: title on the left, optional short description on the right (green background) */
.proj-head { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1000px) { .proj-head { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 1rem + 4vw, 5rem); } }
.proj-story { max-width: 40rem; padding-top: 1.1rem; border-top: 1px solid rgba(195, 203, 201, 0.35); }
.proj-story[hidden] { display: none; }
.proj-story .label { color: var(--silver); }
.proj-story p { margin-top: 0.75rem; color: var(--white); line-height: 1.55; text-wrap: pretty; }

/* Finished photos: the button in the facts panel and the carousel dialog it opens */
.proj-photos-btn { margin-top: 1.5rem; }
.photos-dialog {
  width: min(1200px, 94vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}
/* The project page stays visible behind a dim veil */
.photos-dialog::backdrop { background: rgba(13, 13, 13, 0.72); }
@media (prefers-reduced-motion: no-preference) {
  .photos-dialog[open] { animation: photos-in 260ms cubic-bezier(0.22, 1, 0.36, 1); }
  .photos-dialog[open]::backdrop { animation: fade-in 260ms ease-out; }
}
@keyframes photos-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.photos-frame { position: relative; display: grid; }
.photos-head { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0.85rem 0.85rem 1.25rem; }
.photos-title { flex: 1; max-width: none; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; line-height: 1.2; text-transform: uppercase; }
.photos-count { color: var(--silver); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.photos-close {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(241, 243, 244, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.photos-close:hover { border-color: var(--white); }
.photos-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.photos-track::-webkit-scrollbar { display: none; }
.photos-track:focus-visible { outline: 3px solid var(--cambridge); outline-offset: -3px; }
.photos-track ul { display: flex; }
.photos-slide { position: relative; flex: 0 0 100%; height: min(78vh, 760px); scroll-snap-align: center; }
/* The whole photo always shows: it is sized to the frame, letterboxed if its shape differs */
.photos-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photos-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.55);
  color: var(--white);
  font-size: var(--fs-h6);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s, opacity 0.2s;
}
.photos-nav:hover:not(:disabled) { background: rgba(13, 13, 13, 0.8); }
.photos-nav:disabled { opacity: 0.25; cursor: default; }
.photos-prev { left: 0.75rem; }
.photos-next { right: 0.75rem; }
@media (max-width: 699px) {
  .photos-slide { height: min(62vh, 520px); }
  .photos-nav { display: none; }
}

/* Gallery */
.proj-gallery { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 800px) { .proj-gallery { grid-template-columns: repeat(2, 1fr); } }
.proj-gallery figure { margin: 0; }
.proj-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.gallery-caption { margin-top: 0.75rem; color: var(--silver); font-size: var(--fs-small); line-height: 1.4; }

/* Construction to completion slider: drag, click, or use the arrow keys */
.compare { margin: 0; }
.compare-frame { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--green-80); }
@media (min-width: 900px) { .compare-frame { aspect-ratio: 16 / 10; } }
.compare-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.compare-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.45);
  transform: translate(-50%, -50%);
}
.compare-label {
  position: absolute;
  bottom: 12px;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: rgba(13, 13, 13, 0.55);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare-label-before { left: 12px; }
.compare-label-after { right: 12px; }
/* The range input covers the photo so it can be dragged anywhere; it stays invisible but keyboard focusable */
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-frame:has(.compare-range:focus-visible) { outline: 3px solid var(--cambridge); outline-offset: 3px; }

.site-nav a.btn[aria-current] { box-shadow: none; color: var(--white); }
.site-nav a:not(.btn)[aria-current] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Phone refinements ---------- */

@media (max-width: 699px) {
  :root { --space: 3.25rem; }
  .section-head { margin-bottom: 2rem; }
  .intro { font-size: var(--fs-body); }

  /* Hero: tighter copy so the first screen breathes */
  .hero-inner { gap: 1.5rem; padding-bottom: 1.5rem; }
  .lede { margin-top: 1.25rem; font-size: var(--fs-body); }
  .actions { margin-top: 1.5rem; }

  /* Delivery steps: number sits beside the title, no empty gap */
  .cards { gap: 0.75rem; }
  .card {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    column-gap: 1rem;
    align-items: center;
    padding: 1.25rem;
  }
  .card h3 { margin-top: 0; }
  .card p { grid-column: 2; margin-top: 0.5rem; }
  .section-foot { margin-top: 2rem; }
  .section-foot .text-link { display: inline-block; padding: 1rem 0 0.5rem; }

  /* Workforce: image on top, copy below, so the Pinwheel stays visible */
  .workforce { display: block; min-height: 0; }
  .workforce::after { display: none; }
  .wf-slides { position: relative; aspect-ratio: 4 / 3; }
  .wf-inner { display: flex; flex-direction: column; gap: 2rem; padding-top: 1.25rem; padding-bottom: 3.5rem; }
  .wf-meta { order: -1; align-self: stretch; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: 0.25rem 0.75rem; }
  .wf-controls { gap: 0.4rem; }
  .wf-pause { margin-left: 0.25rem; }
  .wf-meta { grid-template-columns: 1fr; }
  .wf-controls { margin-top: 0.75rem; }
  .wf-count { min-width: 3.75rem; }
  .wf-body { margin: 1.25rem 0 1.75rem; font-size: var(--fs-body); }
  .workforce .btn { display: block; text-align: center; }

  /* Outcomes and skyline */
  .outcomes-head { gap: 2rem; }
  .outcomes article { padding: 1.5rem 0; }

  /* Finished homes: swipe on phones, counter only */
  .gallery-head { margin-bottom: 1.5rem; }
  .gallery-btn { display: none; }
  .gallery-count { margin-right: 0; }

  /* Principles: cards fill the lower screen, photo shows above */
  .immersive { min-height: 0; }
  .immersive-inner { padding-top: 14rem; }
  .glass-row { gap: 0.6rem; margin-top: 1.75rem; }
  .glass-row .glass-card { padding: 1rem 1.2rem; }

  /* Comfortable tap targets */
  .footer-nav { gap: 0 1.5rem; }
  .footer-nav a { display: inline-block; padding: 0.75rem 0; }
  .start-grid { gap: 2.5rem; }
}

/* ---------- Build-out pass (October 2026) ---------- */

/* Secondary hero button: outline on photography */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-outline-light { border-color: rgba(241, 243, 244, 0.7); background: transparent; color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(241, 243, 244, 0.12); }

/* Small arrow motion on links and buttons */
.arrow { display: inline-block; transition: transform 220ms var(--ease-arch); }
a:hover .arrow, a:focus-visible .arrow, button:hover .arrow { transform: translateX(4px); }

/* Workforce: who it is for, as quiet tags */
.wf-audience-label { margin: -0.5rem 0 0.6rem; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.wf-audience { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.wf-audience li { padding: 0.45rem 0.8rem; border: 1px solid currentColor; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; line-height: 1.2; opacity: 0.92; }

/* Production partners (homepage): the partner map on the light background */
.us-map-light .map-borders { stroke: var(--ash); stroke-opacity: 0.6; }
.us-map-light .map-nation { stroke: var(--green-60); stroke-opacity: 1; }
.us-map-light .map-marker { fill: var(--green); stroke: var(--white); }
.us-map-light .us-map-note { color: var(--onyx); font-size: var(--fs-small); }

/* Featured Projects */
.featured-head { align-items: center; }
.featured .proj-card-meta { color: var(--onyx); }

/* Optional elements a page can switch off with the hidden attribute */
.proj-photos-btn[hidden], .cat-intro-proof[hidden] { display: none; }
/* Homepage: In the news, a compact band above the closing call to action */
.news-strip { padding-block: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); border-top: 1px solid var(--silver); }
.news-strip-inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.news-logo { width: min(100%, 11rem); height: auto; }
.news-logo[hidden] { display: none; }
.news-copy { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.news-copy .label { display: none; }
.news-text { display: grid; gap: 0.3rem; }
.news-title { font-size: var(--fs-h6); font-weight: 500; line-height: 1.3; }
.news-date { color: var(--onyx); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
/* Desktop: one compact row: logo | headline and date | button. Flex items never overlap; the row wraps if space runs out. */
@media (min-width: 900px) {
  .news-strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; text-align: left; }
  .news-logo { width: 11rem; flex: none; }
  .news-copy { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding-left: 2.5rem; border-left: 1px solid var(--silver); }
  .news-strip .btn { flex: none; }
}

.hw-scene .hw-crane > rect:first-child { fill: none; }
.hw-scene-wrap.is-waiting * { animation-play-state: paused !important; }

/* Model actions: renderings carousel and a model-specific inquiry link */
.model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.6rem; }
.model-hero + .model-actions { margin-top: 1.5rem; }
button.text-link { background: none; border-width: 0 0 1px; border-style: solid; border-radius: 0; padding: 0 0 0.25rem; font-family: inherit; cursor: pointer; }
.model-actions .text-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding-bottom: 0; border-bottom: 0; text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }

/* Inquiry form: optional marker and send error */
.field-opt { color: var(--onyx); font-weight: 400; }
.form-error { flex-basis: 100%; font-size: var(--fs-small); font-weight: 700; }
.inquiry-form button[disabled] { opacity: 0.6; cursor: progress; }

/* Touch screens: larger tap areas for text links, breadcrumbs, and plan buttons without changing the layout */
@media (pointer: coarse) {
  .text-link, .crumbs a { position: relative; }
  .text-link::after, .crumbs a::after { content: ""; position: absolute; inset: -12px -6px; }
  .plan-toggle { min-height: 40px; padding-block: 0.6rem; }
}
@media (max-width: 639px) {
  .home-projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
  .featured .proj-card-meta { font-size: var(--fs-label); }
}
.mf-more-title { margin: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0 1.5rem; }
.network-photos-btn { margin-top: 2rem; }
/* Twin Oaks: the very wide rendering shows in full instead of being cropped to 16:7 */
.model-hero img { aspect-ratio: auto; }

/* ---------- Speed and value: schedule comparison under the hero (green) ---------- */
.speed .intro { color: var(--silver); }
.schedule { margin: clamp(2.25rem, 1.75rem + 2vw, 3.5rem) 0 0; }
.schedule-chart { display: grid; gap: 2rem; }
.sched-row { display: grid; gap: 0.6rem; }
.sched-name { color: var(--silver); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sched-papaya .sched-name { color: var(--white); }
.sched-track { --bar: 3.25rem; --gap: 6px; position: relative; height: var(--bar); }
.sched-track-2 { height: calc(var(--bar) * 2 + var(--gap)); }
.seg {
  position: absolute;
  top: 0;
  left: calc(var(--x) * 1%);
  width: calc(var(--w) * 1% - 4px);
  height: var(--bar);
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 6px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.15;
  overflow: hidden;
}
/* Typical build: quiet outlines */
.sched-typical .seg { border: 1px solid rgba(241, 243, 244, 0.35); color: var(--silver); }
/* With Papaya: the brightest thing in the section */
.sched-papaya .seg { background: var(--white); color: var(--green); font-weight: 700; }
.sched-papaya .seg-a { background: var(--silver); color: var(--jet); font-weight: 500; }
.sched-papaya .seg-b { top: calc(var(--bar) + var(--gap)); }
.sched-papaya .seg-c { height: calc(var(--bar) * 2 + var(--gap)); }
/* Faint full-length guide behind Papaya's row: the open stretch after "Homes on site" is the time saved */
.sched-ghost { position: absolute; inset: 0; border: 1px dashed rgba(241, 243, 244, 0.22); border-radius: 6px; }
.sched-done { position: absolute; top: -0.5rem; bottom: -0.5rem; left: calc(var(--x) * 1% + 6px); border-left: 1px solid var(--white); }
.sched-done span { position: absolute; top: 50%; left: 0.85rem; transform: translateY(-50%); color: var(--white); font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.sched-caption { margin-top: 1.25rem; color: var(--silver); font-size: var(--fs-label); letter-spacing: 0.02em; }
@media (min-width: 800px) {
  .sched-row { grid-template-columns: 9.5rem 1fr; align-items: center; gap: 1.5rem; }
  .sched-caption { padding-left: 11rem; }
}
@media (max-width: 599px) {
  .sched-track { --bar: 3rem; }
  .seg { padding: 0 0.5rem; font-size: 0.75rem; }
}

.speed-points { display: grid; gap: 1.5rem; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding: 0; list-style: none; }
.speed-points li { padding-top: 1.1rem; border-top: 1px solid var(--green-60); }
.speed-points h3 { font-size: var(--fs-h6); font-weight: 700; }
.speed-points p { margin-top: 0.4rem; color: var(--silver); line-height: 1.4; }
@media (min-width: 640px) { .speed-points { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; } }
@media (min-width: 1100px) { .speed-points { grid-template-columns: repeat(4, 1fr); } }

/* One pass as the chart reaches the screen: the typical phases draw one after another,
   Papaya's two lanes draw together, then set and finish, then the marker */
@media (prefers-reduced-motion: no-preference) {
  .schedule.is-armed .seg { clip-path: inset(0 100% 0 0 round 6px); }
  .schedule.is-armed .sched-done { opacity: 0; }
  .schedule.is-armed.is-in .seg { clip-path: inset(0 0 0 0 round 6px); transition: clip-path 550ms cubic-bezier(0.45, 0, 0.25, 1) var(--d, 0ms); }
  .schedule.is-armed.is-in .sched-done { opacity: 1; transition: opacity 400ms ease-out 1.25s; }
  .seg-1, .seg-a, .seg-b { --d: 250ms; }
  .seg-2, .seg-c { --d: 800ms; }
  .seg-3 { --d: 1350ms; }
}.sk-module .sk-win { fill: none; stroke: var(--white); stroke-width: 1; stroke-opacity: 0.45; vector-effect: non-scaling-stroke; }

/* Individual Homes: project and inquiry links under the prefab foundation steps */
.foundation-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
