/* Home page, sections 2-6: three steps, services, parking-to-unit path, works row, FAQ. */

/* ---------- 2. how: three steps, a gold line fills across them ---------- */
/* sits right under the hero with less top space, so its heading already shows on the first screen */
.how { padding-top: 72px !important; }
@media (max-width: 639px) { .how { padding-top: 44px !important; } }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; padding-top: 34px; }
.steps::before, .steps::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--line); }
.steps::after { background: var(--gold); height: 2px; transform-origin: right; transform: scaleX(1); }
.steps .n { display: block; font-size: 64px; font-weight: 300; color: var(--deep); line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.steps p { margin-top: 6px; max-width: 34ch; }
.how__cta { margin-top: 52px; }
/* js/main.js lands the line on each step in turn (--fill) and lights the numbers it reached; a fast scroll just glides it there */
.js .steps::after { transform: scaleX(var(--fill, 0)); }
.js .steps li:not(.is-on) .n { color: rgba(118, 88, 23, .3); }
.steps.is-ready::after { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.steps.is-ready .n { transition: color .4s ease .25s; }
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-inline-start: 28px; margin-top: 36px; }
  .steps::before, .steps::after { inset: 0 0 0 auto; width: 1px; height: auto; }
  .steps::after { width: 2px; transform-origin: top; }
  .steps li { padding: 0 0 30px; }
  .steps .n { font-size: 40px; margin-bottom: 8px; }
  .js .steps::after { transform: scaleY(var(--fill, 0)); }
  .how__cta { margin-top: 20px; }
}
@media (max-width: 639px) { .how__cta { display: flex; } }

/* ---------- 3. services ---------- */
.services__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; border-top: 1px solid var(--line); }
.svc li { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.svc li::before { content: ""; flex: none; width: 18px; height: 18px; background: var(--deep); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 1023px) { .services__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 639px) { .svc { grid-template-columns: 1fr 1fr; column-gap: 20px; } .svc li { font-size: 17px; padding: 12px 0; } }

/* ---------- 4. units: six photos in build order; a photo-wide gold bar travels the path under them as you scroll ---------- */
.units__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.path { position: relative; margin-top: 48px; }
.path__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 56px; }
/* the bottom row runs back from left to right (in RTL column 3 is the left one), so the path snakes */
.path__step:nth-child(4) { grid-area: 2 / 3; }
.path__step:nth-child(5) { grid-area: 2 / 2; }
.path__step:nth-child(6) { grid-area: 2 / 1; }
.path__step img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; background: var(--sand); border-radius: 14px; }
.path__cap { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding-top: 22px; }
.path__cap .n { font-size: 15px; font-weight: 600; color: var(--deep); padding-top: 3px; font-variant-numeric: tabular-nums; transition: color .4s ease; }
.path__cap h3 { font-size: 19px; }
.path__cap p { font-size: 15.5px; color: var(--muted); margin-top: 2px; }
.path__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.path__base { fill: none; stroke: var(--line); stroke-width: 1; }
.path__bar { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 1; opacity: 0; }
.path.is-live .path__bar { opacity: 1; }
/* numbers the bar has reached turn gold */
.path.is-live .path__step:not(.is-on) .n { color: rgba(118, 88, 23, .35); }
.units__head .btn--line { flex: none; }

/* phones: one column, the bar runs down the side */
@media (max-width: 767px) {
  .path { margin-top: 32px; }
  .path__grid { grid-template-columns: 1fr; row-gap: 28px; padding-inline-start: 22px; }
  .path__step:nth-child(n) { grid-area: auto; }
  .path__step img { border-radius: 12px; }
  .path__cap { padding-top: 12px; }
  .units__head .btn--line { align-self: stretch; justify-content: center; }
}

/* ---------- 5. works: endless row that drifts on its own; touching it stops it ---------- */
.works { overflow-x: clip; }
.head { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; margin-bottom: 44px; }
.head .sub { margin: 0; }
.loop__track { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-inline: var(--safe); }
.loop__track::-webkit-scrollbar { display: none; }
.slide { flex: none; width: clamp(240px, 24vw, 340px); }
.slide img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: var(--sand); }
.slide figcaption { margin-top: 12px; font-size: 16.5px; color: var(--ink); }
.loop__nav { margin-top: 28px; display: flex; justify-content: space-between; } /* right arrow on the right edge, left arrow on the left edge */
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--deep); color: var(--deep); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .16s var(--press); }
.round-btn:active { transform: scale(.94); }
.round-btn svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .round-btn:hover { background: var(--deep); color: var(--sand); } }
@media (max-width: 1023px) { .head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; } }
/* phones swipe the row, so no arrows; the next section moves up by their height */
@media (max-width: 639px) { .slide { width: 72vw; } .loop__track { gap: 12px; } .loop__nav { display: none; } }

/* ---------- 6. faq ---------- */
.faq { padding-bottom: 96px !important; }
.faq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
.faq__ask { margin-top: 32px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 21px; font-weight: 500; color: var(--ink); transition: color .2s var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform .22s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--deep); } .qa summary:hover::after { border-color: var(--gold); background-color: rgba(201,162,77,.18); } }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details::details-content { height: 0; overflow: hidden; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
.qa details[open]::details-content { height: auto; }
.qa details p { padding: 0 0 26px; max-width: 58ch; padding-inline-end: 64px; }
@media (max-width: 1023px) {
  .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .faq__head { display: contents; } .faq__head h2 { order: 1; } .qa { order: 2; } .faq__ask { order: 3; margin-top: 0; justify-self: start; }
}
@media (max-width: 639px) { .faq { padding-bottom: 72px !important; } .qa summary { font-size: 18px; padding: 20px 0; } .qa summary::after { width: 34px; height: 34px; } .qa details p { padding-inline-end: 0; } }
