#brand-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #000;
  opacity: 1;
  transition: opacity 700ms cubic-bezier(.4, 0, .2, 1);
}
#brand-intro[hidden] { display: none; }
#brand-intro.is-leaving { opacity: 0; pointer-events: none; }
#brand-intro img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  animation: alza-mark-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}
@keyframes alza-mark-pulse { 50% { opacity: .5; } }
@media (min-width: 768px) {
  #brand-intro img { width: 176px; height: 176px; }
}
@media (prefers-reduced-motion: reduce), print {
  #brand-intro { display: none; }
}

/* The same editorial hierarchy as the Horizon development brief. */
.project-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(580px, calc(var(--home-header-height) + 50vw));
  padding: calc(var(--home-header-height) + 3rem) 0 5rem;
  overflow: hidden;
  background: #1d2922;
  color: white;
}
.hero-aerial {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}
.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #0c1713ba, transparent var(--home-header-height)),
    linear-gradient(90deg, rgba(12,23,19,.9), rgba(12,23,19,.71) 25%, rgba(12,23,19,.12) 48%, transparent 60%),
    linear-gradient(0deg, rgba(12,23,19,.82), transparent 18%);
}
.hero-content { position: relative; }
@media (min-width: 681px) {
  .project-hero > .shell { width: min(90%, 1680px); }
  .hero-content > :is(.lead, .heroactions) { max-width: clamp(270px, 33vw, 515px); }
  .hero-content .heroactions { gap: .8rem 1.2rem; }
}
.location, .section-label, .sum-label, .metrics span, .hero-caption strong {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.location { display: flex; align-items: center; gap: .85rem; margin: 0 0 14px; color: #f1eee7; font-weight: 600; letter-spacing: .14em; }
.location::before { content: ""; width: 2.2rem; height: 2px; background: #d3ad79; }
.hero-content h1 {
  margin: 0;
  font: 400 clamp(4rem,6.8vw,6.5rem)/.99 var(--serif);
  letter-spacing: -.035em;
  text-shadow: 0 2px 16px #0003;
}
.lead { max-width: 490px; margin: 20px 0 0; color: #f1eee7; font-size: 1rem; line-height: 1.7; }
.heroactions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 25px; margin-top: 28px; }
.home-page .hero-primary {
  display: inline-flex;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.home-page .hero-primary:hover { border-color: #ead4b2; background: #ead4b2; }
.hero-link, .hero-tools a { font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.hero-link, .hero-tools a { color: white; }
.hero-link:hover, .hero-tools a:hover { color: #ead4b2; }
.project-hero a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.hero-caption.shell {
  position: absolute;
  inset-inline: 0;
  bottom: 27px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 28px;
}
.hero-caption strong { color: white; font-size: .6875rem; }
@media (min-width: 981px) {
  .hero-caption > div:first-child { max-width: min(28vw, 390px); }
}
.hero-caption p { margin: 3px 0 0; color: #eee9df; font-size: .8125rem; line-height: 1.5; }
.hero-tools { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-tools a { padding-block: 4px; }

.visual-guide { padding-block: clamp(2.6rem, 5.5vw, 5.3rem); }
.visual-guide > h2 { margin-bottom: 1.5rem; font-size: clamp(2.4rem,4.1vw,3.9rem); letter-spacing: -.04em; }
.visual-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.5rem,4vw,3.7rem); }
.visual-choice { display: block; text-decoration: none; }
.visual-choice img { display: block; width: 100%; height: auto; aspect-ratio: 1.64; object-fit: cover; object-position: 50% 52%; }
.visual-choice h3 { margin: .95rem 0 .38rem; font-size: clamp(1.75rem,2.6vw,2.5rem); line-height: 1.12; text-decoration: underline; text-decoration-color: #b69a73; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.visual-choice:is(:hover,:focus-visible) h3 { color: var(--bronze); text-decoration-color: currentColor; }
.visual-choice p { max-width: 54ch; line-height: 1.65; color: var(--muted); }
.bid-instruction { margin: 0; padding-block: .75rem; color: var(--muted); font-size: .9rem; border-bottom: 1px solid #cfc7b9; }
.schedule-name { display: grid; gap: .13rem; }
.schedule-name small { font-size: .86rem; font-weight: 400; color: var(--muted); }
.fact-band { border-bottom: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: .85fr 1fr 1.15fr; padding-block: 30px; }
.metrics > div { min-width: 0; padding-inline: clamp(17px,3.5vw,50px); border-left: 1px solid var(--line); }
.metrics > div:first-child { padding-left: 0; border-left: 0; }
.metrics span { display: block; font-size: .6875rem; letter-spacing: .11em; color: var(--muted); }
.metrics b { display: block; margin-top: 8px; font: 400 clamp(2rem,3.1vw,2.875rem)/1.12 var(--serif); letter-spacing: -.025em; }
.work, .investment { padding-block: clamp(54px,7vw,100px); }
.work { background: var(--cream); }
.investment { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px 9%; margin: 0 0 38px; }
.section-label { margin: 0 0 16px; color: #79592e; }
.section-head h2 { margin: 0; font: 400 clamp(2.75rem,4.4vw,4.1rem)/1.02 var(--serif); letter-spacing: -.035em; }
.date { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.workgrid { display: grid; grid-template-columns: minmax(235px, .9fr) minmax(0,1.8fr); gap: clamp(28px,6.5vw,92px); align-items: start; }
.sum { padding: clamp(24px,3vw,40px); background: var(--ink); color: white; }
.sum-label { margin: 0; color: #efdec7; font-size: .6875rem; }
.sum-num { margin: 9px 0 18px; font: 400 clamp(2.5rem,3.7vw,3.7rem)/1.02 var(--serif); letter-spacing: -.03em; }
.bar { display: flex; height: 4px; gap: 3px; }
.bar i:nth-child(1) { flex: 680614; background: #dacdb3; }
.bar i:nth-child(2) { flex: 240735; background: #a3af9b; }
.bar i:nth-child(3) { flex: 276560; background: #bb9770; }
.bar i:nth-child(4) { flex: 426410; background: #8b9e87; }
.sum p:not(.sum-label) { margin: 20px 0; line-height: 1.7; color: #ece8df; }
.schedules, .assumptions { border-top: 1px solid #b4aa98; }
.schedule, .assumptions { border-bottom: 1px solid #cfc7b9; }
.schedule summary, .assumptions summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 16px 0; list-style: none; cursor: pointer; font-weight: 600; line-height: 1.5; }
.schedule summary::-webkit-details-marker, .assumptions summary::-webkit-details-marker { display: none; }
.schedule summary::after, .assumptions summary::after { content: "+"; margin-left: auto; font: 400 1.3rem/1 var(--sans); }
.schedule[open] > summary::after, .assumptions[open] > summary::after { content: "−"; }
.schedule summary .amount { margin-left: auto; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.schedule summary:has(.amount)::after { margin-left: 0; }
.schedule summary:hover, .assumptions summary:hover { color: #79592e; }
.schedule-body { padding: 3px 0 24px; }
.schedule-body table, .comparison table { width: 100%; border-collapse: collapse; text-align: left; }
.schedule-body :is(td,th) { border-bottom: 1px solid var(--line); padding: 9px 7px; font-size: .9rem; line-height: 1.5; }
.schedule-body tr > :first-child { padding-left: 0; }
.schedule-body thead { font-size: .8125rem; color: var(--muted); }
.schedule-body tr > :nth-child(n+2), .schedule-body tfoot td { text-align: right; }
.schedule-body abbr { text-decoration: none; }
.schedule-body h3, .assumptiongrid h3 { margin: 20px 0 12px; font: 400 1.85rem/1.1 var(--serif); }
.schedule-body ul { padding-left: 21px; line-height: 1.7; }
.invest-intro { max-width: 510px; margin: 0; line-height: 1.75; color: var(--muted); }
.comparison { min-width: 0; border-top: 1px solid var(--line); }
.comparison th, .comparison td { padding: 14px 18px; vertical-align: middle; border-bottom: 1px solid var(--line); line-height: 1.5; }
.comparison tbody th { width: 34%; font-weight: 400; }
.comparison td { width: 33%; font-variant-numeric: tabular-nums; }
.comparison thead { background: var(--ink); color: white; }
.comparison small { display: block; margin-top: 3px; font-size: .8125rem; }
.comparison .owner { background: #e2e6dc; }
.comparison .owner > * { font-weight: 600; }
.terms { max-width: 980px; margin: 25px 0; line-height: 1.75; }
.assumptions { margin-top: 25px; }
.assumptiongrid { display: grid; grid-template-columns: 1fr 1.18fr; gap: 8%; }
.assumptions dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.assumptions dt, .assumptions dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.assumptions dd { text-align: right; font-variant-numeric: tabular-nums; }
.assumptions p { max-width: 950px; margin-block: 20px; color: var(--muted); line-height: 1.75; }

@media (max-width: 980px) {
  .project-hero { background: #243027 url("assets/chagan-court-five-homes-960.webp") left top / auto 300% no-repeat; }
}
@media (min-width: 681px) and (max-width: 980px) {
  .project-hero { min-height: clamp(555px, 69vw, 640px); padding: calc(var(--home-header-height) + 2rem) 0 7rem; }
  .hero-aerial {
    inset: 50% 0 auto auto;
    transform: translateY(-50%);
    width: 90%;
    height: auto;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent), linear-gradient(to right, transparent, black 22%);
    mask-composite: intersect;
  }
  .hero-content h1 { font-size: clamp(3.5rem, 7vw, 4.5rem); }
  .hero-caption > div:first-child { max-width: 35%; }
  .hero-tools { justify-content: flex-end; }
}
@media (max-width: 680px) {
  /* Carry the hillside behind the copy and keep all five homes in the opening view. */
  .project-hero {
    --scene-height: min(78vw, 390px);
    display: grid;
    align-content: start;
    gap: 1.3rem;
    min-height: 0;
    padding: var(--home-header-height) 0 1.5rem;
  }
  .hero-aerial {
    top: var(--home-header-height);
    height: var(--scene-height);
    object-position: 78% center;
    mask-image: linear-gradient(to bottom, transparent, black 9%, black 89%, transparent);
  }
  .project-hero::before {
    background:
      linear-gradient(180deg, #0a1511a6, #0a151133 var(--home-header-height), transparent calc(var(--home-header-height) + 4rem)),
      radial-gradient(ellipse 62% 11rem at 0 var(--home-header-height), #0b1916c9, transparent),
      linear-gradient(180deg, transparent calc(var(--home-header-height) + var(--scene-height) * .76), #0d1a16da calc(var(--home-header-height) + var(--scene-height)), #0d1a16bf);
  }
  .hero-content {
    display: grid;
    grid-template-rows: auto minmax(min-content, 1fr) auto auto;
  }
  .hero-content .location { margin: .7rem 0 .25rem; font-size: .625rem; }
  .hero-content .location::before { width: 1.25rem; }
  .hero-content h1 {
    align-self: start;
    width: 48%;
    max-width: 11.5rem;
    min-height: calc(var(--scene-height) - 2.3rem);
    font-size: clamp(2.75rem, 10.2vw, 3.7rem);
    text-shadow: 0 2px 12px #07100da8;
  }
  .hero-content .lead { margin-top: 0; }
  .hero-caption.shell { position: static; align-items: start; flex-direction: column; gap: .5rem; }
  .hero-tools { gap: .4rem 1.25rem; }
}
@media (max-width: 760px) {
  .workgrid { grid-template-columns: 1fr; }
  .sum-num { font-size: 3rem; }
  .section-head { flex-wrap: wrap; align-items: start; gap: 15px; margin-bottom: 26px; }
  .invest-intro { max-width: 100%; }
  .metrics { padding-block: 22px; }
  .metrics > div { padding-inline: 12px; }
  .comparison th, .comparison td { padding: 10px 6px; font-size: .875rem; }
  .comparison small { font-size: .75rem; }
}
@media (max-width: 600px) {
  .visual-choices { grid-template-columns: 1fr; gap: 1.75rem; }
  .heroactions { column-gap: 1rem; }
}
@media (max-width: 520px) {
  .lead { margin-top: 14px; max-width: 355px; }
  .heroactions { margin-top: 21px; }
  .metrics { grid-template-columns: .8fr 1.2fr; row-gap: 14px; }
  .metrics > div:last-child { grid-column: 1/-1; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
  .metrics > div:nth-child(2) { padding-right: 0; }
  .metrics b { margin-top: 5px; font-size: 2.25rem; }
  .assumptiongrid { grid-template-columns: 1fr; }
  .schedule summary { gap: 8px; }
}
