.cofihaus-project {
  --cf-paper: #f4eadc;
  --cf-cream: #faf5ed;
  --cf-green: #203a2f;
  --cf-leaf: #63735b;
  --cf-brass: #a98552;
  --cf-bronze: #8d6a48;
  --cf-espresso: #2a211b;
  --cf-wine: #542434;
  --surface: var(--cf-paper);
  --heading: var(--cf-espresso);
  --body: #55483d;
  --label: #765f4f;
  --link: var(--cf-wine);
  background: var(--surface);
}

.cofihaus-project .site-header {
  background: rgba(244, 234, 220, 0.94);
}

.cf-hero,
.cf-closing {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--cf-espresso);
}

.cf-hero {
  align-items: start;
}

.cf-hero-media,
.cf-hero-media img,
.cf-closing-media,
.cf-closing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cf-hero-media,
.cf-closing-media,
.cf-image-pair figure,
.cf-feature figure,
.cf-plan,
.cf-zoning,
.cf-materials figure,
.cf-brand figure,
.cf-development-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--cf-cream);
}

.cf-hero-media img,
.cf-closing-media img,
.cf-image-pair img,
.cf-feature img,
.cf-plan img,
.cf-zoning img,
.cf-materials img,
.cf-brand img,
.cf-development-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-hero-media img {
  object-position: center 52%;
}

.cf-hero::after,
.cf-closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 33, 27, 0.62), rgba(42, 33, 27, 0.08) 58%, rgba(42, 33, 27, 0.36));
  pointer-events: none;
}

.cf-hero-copy,
.cf-closing-copy {
  position: relative;
  z-index: 1;
  color: var(--cf-cream);
}

.cf-hero-copy {
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.cf-hero-copy .kicker,
.cf-hero-copy h1,
.cf-hero-copy p,
.cf-closing-copy .kicker,
.cf-closing-copy h2,
.cf-closing-copy h3,
.cf-closing-copy p,
.cf-closing-copy .meta-row,
.cf-closing-copy a {
  color: inherit;
}

.cf-hero-copy h1 {
  max-width: 100%;
  font-size: clamp(3.8rem, 8vw, 6.8rem);
}

.cf-hero-copy p {
  max-width: 50ch;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 3.15rem);
  line-height: 1.1;
}

.cf-section {
  padding: clamp(5rem, 10vw, 10rem) 0;
  border-bottom: 1px solid rgba(84, 36, 52, 0.16);
}

.cf-section--cream {
  background: var(--cf-cream);
}

.cf-section--green {
  --heading: var(--cf-cream);
  --body: #dfd2bf;
  --label: #c8b592;
  --link: var(--cf-cream);
  background: var(--cf-green);
  color: var(--heading);
}

.cf-two-col,
.cf-feature,
.cf-materials,
.cf-planning {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.cf-feature,
.cf-materials {
  align-items: center;
}

.cf-feature--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.cf-feature--reverse figure {
  order: 2;
}

.cf-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.72fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: var(--space-5);
}

.cf-section-heading h2,
.cf-two-col h2,
.cf-feature h2,
.cf-materials h2,
.cf-planning h2 {
  max-width: 12ch;
}

.cf-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  width: 100%;
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(84, 36, 52, 0.2);
}

.cf-facts dt {
  color: var(--label);
  font-size: var(--fs-micro);
  line-height: 1.5;
  text-transform: uppercase;
}

.cf-facts dd {
  margin: var(--space-1) 0 0;
  color: var(--body);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.cf-image-pair,
.cf-development-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: var(--grid-gap);
  align-items: start;
}

.cf-image-pair figure:first-child {
  aspect-ratio: 16 / 8;
}

.cf-image-pair figure:last-child {
  aspect-ratio: 4 / 5;
  margin-top: var(--space-6);
}

.cf-feature figure {
  aspect-ratio: 16 / 9;
}

.cf-feature--reverse figure {
  aspect-ratio: 16 / 8;
}

.cf-planning {
  align-items: center;
}

.cf-planning-copy {
  display: grid;
  gap: var(--space-3);
}

.cf-zone-list,
.cf-material-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-3);
  margin: var(--space-3) 0 0;
  padding: 0;
  border-top: 1px solid rgba(250, 245, 237, 0.24);
  list-style: none;
}

.cf-zone-list li,
.cf-material-list li {
  min-height: 44px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(250, 245, 237, 0.18);
  color: var(--body);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.cf-material-list {
  border-top-color: rgba(84, 36, 52, 0.18);
}

.cf-material-list li {
  border-bottom-color: rgba(84, 36, 52, 0.14);
}

.cf-zoning {
  padding: var(--space-3);
  background: var(--cf-cream);
}

.cf-zoning img {
  display: block;
  height: auto;
  object-fit: contain;
}

.cf-zones {
  display: grid;
  gap: var(--space-3);
}

.cf-zone {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(250, 245, 237, 0.24);
}

.cf-zone h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.4;
}

.cf-zone-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d4e8de;
}

.cf-zone--social .cf-zone-dot { background: #f4ce89; }
.cf-zone--window .cf-zone-dot { background: #ddb4ef; }
.cf-zone--exit .cf-zone-dot { background: #8dceee; }

.cf-board {
  margin: 0;
}

.cf-board img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cf-feature figure.cf-study {
  aspect-ratio: auto;
}

.cf-study img {
  display: block;
  height: auto;
  object-fit: contain;
}

.cf-zoning figcaption,
.cf-plan figcaption,
.cf-development-grid figcaption {
  padding-top: var(--space-2);
  color: var(--label);
  font-size: var(--fs-micro);
  line-height: 1.5;
  text-transform: uppercase;
}

.cf-section--green .cf-zoning figcaption,
.cf-section--green .cf-development-grid figcaption {
  color: #c8b592;
}

.cf-plan-section {
  background: #f8f3eb;
}

.cf-plan {
  padding: var(--space-3);
  background: #fff;
}

.cf-plan img {
  height: auto;
  object-fit: contain;
}

.cf-plan figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
}

.cf-plan figcaption > :first-child {
  color: var(--body);
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-transform: none;
}

.cf-plan figcaption > :last-child {
  text-align: right;
}

.cf-materials figure {
  aspect-ratio: 16 / 6;
}

.cf-brand {
  padding-bottom: 0;
}

.cf-brand figure {
  aspect-ratio: 16 / 7.4;
}

.cf-development-grid figure:first-child {
  aspect-ratio: 16 / 7.3;
}

.cf-development-grid figure:last-child {
  aspect-ratio: 4 / 3;
  margin-top: var(--space-5);
}

.cf-closing {
  min-height: 92svh;
}

.cf-closing-media img {
  object-position: center 52%;
}

.cf-closing-copy {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

.cf-closing-copy h2 {
  max-width: 13ch;
}

.cf-closing-copy p {
  max-width: 50ch;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 3.6rem);
  line-height: 1.1;
}

.cf-closing-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(250, 245, 237, 0.34);
}

.cf-next {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.1;
}

@media (max-width: 980px) {
  .cf-hero,
  .cf-closing {
    min-height: 78svh;
  }

  .cf-hero-media img {
    object-position: 47% center;
  }

  .cf-two-col,
  .cf-feature,
  .cf-feature--reverse,
  .cf-section-heading,
  .cf-materials,
  .cf-planning {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-feature--reverse figure {
    order: -1;
  }

  .cf-section-heading {
    align-items: start;
  }

  .cf-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cf-hero,
  .cf-closing {
    min-height: 74svh;
  }

  .cf-hero::after,
  .cf-closing::after {
    background: linear-gradient(180deg, rgba(42, 33, 27, 0.08), rgba(42, 33, 27, 0.26) 38%, rgba(42, 33, 27, 0.78));
  }

  .cf-hero-copy {
    padding-bottom: var(--space-5);
  }

  .cf-section {
    padding: var(--space-6) 0;
  }

  .cf-facts,
  .cf-image-pair,
  .cf-development-grid,
  .cf-zone-list,
  .cf-material-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-image-pair figure:first-child,
  .cf-image-pair figure:last-child,
  .cf-feature figure,
  .cf-feature--reverse figure,
  .cf-materials figure,
  .cf-brand figure,
  .cf-development-grid figure:first-child,
  .cf-development-grid figure:last-child {
    aspect-ratio: 4 / 3;
    margin-top: 0;
  }

  .cf-plan {
    overflow-x: auto;
  }

  .cf-plan img {
    min-width: 900px;
  }

  .cf-plan figcaption {
    grid-template-columns: minmax(0, 1fr);
  }

  .cf-plan figcaption > :last-child {
    text-align: left;
  }

  .cf-closing-meta {
    align-items: start;
    flex-direction: column;
    gap: var(--space-3);
  }
}
