/* Centurion homepage */

/* ---------- Hero: drawing to built ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; max-height: 1200px; color: var(--lime); background: var(--porph-deep); overflow: clip; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__stage { position: absolute; inset: 0; overflow: hidden; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster--photo { opacity: 0; }
.no-js .hero__poster--photo { opacity: 1; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; cursor: crosshair; }
.hero__canvas.is-live { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(34, 9, 15, .86) 0%, rgba(34, 9, 15, .58) 34%, rgba(34, 9, 15, 0) 66%),
  linear-gradient(0deg, rgba(34, 9, 15, .92) 0%, rgba(34, 9, 15, .4) 32%, rgba(34, 9, 15, 0) 55%),
  linear-gradient(180deg, rgba(34, 9, 15, .5), rgba(34, 9, 15, 0) 22%); }
.hero__body { position: relative; z-index: 2; padding-bottom: 34px; }
.hero__title { max-width: 15.5em; margin-bottom: 26px; text-wrap: balance; }
.hero__lede { max-width: 640px; margin-bottom: 30px; color: var(--lime-dim); }
.hero__rail { position: relative; z-index: 2; border-top: 1px solid rgba(247, 245, 240, .18); background: linear-gradient(0deg, rgba(34, 9, 15, .6), rgba(34, 9, 15, 0)); }
.hero__rail-in { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; padding-top: 16px; padding-bottom: 18px; }
.hero__cap { display: flex; align-items: baseline; gap: 16px; margin: 0; min-width: 0; overflow: hidden; }
.hero__cap-title { font-family: var(--f-display); font-size: 1.45rem; color: var(--stock); white-space: nowrap; }
.hero__cap-note { color: var(--lime-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 2px; }
.hero__ctl { display: flex; align-items: center; gap: 10px; flex: none; }
.hero__count { margin: 0 8px 0 0; font-weight: 600; letter-spacing: .04em; }
.hero__count-of { color: var(--lime-dim); }
.hero__progress { position: relative; width: 140px; height: 2px; background: rgba(247, 245, 240, .22); margin-right: 10px; overflow: hidden; }
.hero__progress i { position: absolute; inset: 0; background: var(--stock); transform: scaleX(0); transform-origin: 0 50%; }
.hero__btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; background: transparent; border: 1.5px solid rgba(247, 245, 240, .4); color: var(--lime); cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.hero__btn:hover, .hero__btn:focus-visible { background: var(--stock); border-color: var(--stock); color: var(--soot); }
.hero__btn svg { width: 16px; height: 12px; }
.hero__btn .i-play { display: none; width: 13px; height: 13px; }
.hero__btn .i-pause { width: 13px; height: 13px; }
.hero.is-paused .i-play { display: block; }
.hero.is-paused .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__poster--photo { opacity: 1; }
}
@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .hero__body { padding-bottom: 22px; }
  .hero__title { margin-bottom: 18px; }
  .hero__lede { font-size: 1.04rem; margin-bottom: 22px; }
  .hero__rail-in { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 14px; }
  .hero__cap { width: 100%; }
  .hero__cap-note { display: none; }
  .hero__progress { width: 72px; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  .hero__scrim { background: linear-gradient(0deg, rgba(34, 9, 15, .95) 0%, rgba(34, 9, 15, .72) 45%, rgba(34, 9, 15, .15) 75%), linear-gradient(180deg, rgba(34, 9, 15, .55), rgba(34, 9, 15, 0) 25%); }
}

/* ---------- What we build: expanding panels ---------- */
.services { padding: clamp(64px, 7vw, 104px) 0; }
.panels { display: flex; gap: 14px; height: min(54vh, 520px); min-height: 420px; }
.panel { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: var(--lime); text-decoration: none; overflow: hidden; isolation: isolate; transition: flex-grow .9s var(--ease); background: var(--porph-deep); }
.panel.is-open { flex-grow: 2.3; }
.panel__media { position: absolute; inset: 0; z-index: -2; }
.panel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.panel.is-open .panel__media img { transform: scale(1.04); }
.panel__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(34, 9, 15, .94) 0%, rgba(34, 9, 15, .45) 42%, rgba(34, 9, 15, .05) 72%); transition: opacity .6s; }
.panel__body { display: grid; gap: 10px; }
.panel__title { font-family: var(--f-display); font-size: clamp(1.5rem, 2vw, 2.05rem); line-height: 1.12; }
.panel__line { color: var(--lime-dim); max-width: 34em; font-size: .95rem; line-height: 1.5; }
.panel__arrow { position: absolute; top: 22px; right: 22px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--stock); color: var(--soot); transform: translate(8px, -8px); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.panel__arrow svg { width: 18px; height: 12px; }
.panel.is-open .panel__arrow { transform: none; opacity: 1; }
.panel:focus-visible { outline-offset: 4px; }
@media (max-width: 900px) {
  .panels { flex-direction: column; height: auto; min-height: 0; }
  .panel, .panel.is-open { flex: none; min-height: 300px; }
  .panel__arrow { transform: none; opacity: 1; }
}

/* ---------- Why: sticky photo stage, plumb line, three reasons ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.05fr); gap: 0 clamp(24px, 3vw, 48px); align-items: start; }
.why__stage-wrap { position: sticky; top: calc(var(--head-h) + 24px); }
.why__stage { width: min(100%, calc(min(70vh, 640px) * .8)); aspect-ratio: 4 / 5; }
.why__stage .frame__img { height: 100%; }
.why__stage .frame__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.why__stage .frame__img img.is-on { clip-path: inset(0 0 0 0); animation: cb-breathe 9s ease-in-out infinite alternate; }
.no-js .why__stage .frame__img img:not(.is-on) { display: none; }
.why__plumb { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.why__line { display: block; width: 2px; height: 0; background: var(--stock); }
.why__bob { display: block; width: 30px; height: 50px; color: var(--stock); margin-top: -2px; transform-origin: 50% 0; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__item { min-height: min(50vh, 460px); padding: 8px 0 48px; display: flex; flex-direction: column; justify-content: center; }
.why__item:last-child { min-height: min(56vh, 520px); padding-bottom: 0; }
.why__title { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.15rem); line-height: 1.12; margin-bottom: 20px; display: flow-root; color: var(--lime); }
.why__item p { color: var(--lime-dim); font-size: 1.08rem; }
.why__proof { padding-left: 18px; border-left: 2px solid var(--stock); color: var(--lime) !important; font-weight: 500; }
.why__item { opacity: .38; transition: opacity .6s; }
.why__item.is-on, .no-js .why__item { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .why__item { opacity: 1; } }
@media (max-width: 900px) {
  .why__grid { grid-template-columns: minmax(0, 1fr); }
  .why__plumb { display: none; }
  .why__stage-wrap { position: relative; top: 0; margin-bottom: 40px; }
  .why__stage { width: min(100%, 420px); aspect-ratio: 4 / 3.4; }
  .why__item, .why__item:last-child { min-height: 0; padding: 0 0 44px; opacity: 1; }
}

/* ---------- The programme (pinned) ---------- */
.prog { padding: 0; }
.prog__in { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--head-h) - 6px); padding-bottom: 24px; }
.prog__head { display: grid; gap: 12px; margin-bottom: clamp(18px, 3.2vh, 40px); }
.prog__head .h2 { font-size: clamp(1.9rem, min(3.3vw, 6.2vh), 3.3rem); }
.prog__note { margin: 0; color: var(--soot-dim); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.prog__flag { display: inline-block; padding: 4px 10px; background: var(--porph); color: var(--lime); font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.prog__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.prog__draw { margin: 0; position: relative; background: var(--lime); border: 1.5px solid var(--mortar); padding: clamp(10px, 2vh, 24px); height: min(56vh, 520px); display: grid; place-items: center; }
.prog__draw::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(58, 19, 32, .18); pointer-events: none; }
.house { width: 100%; height: 100%; }
.prog__week { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: clamp(10px, 2vh, 22px); }
.prog__week-n { font-family: var(--f-display); font-size: clamp(2rem, min(3.4vw, 6vh), 3.2rem); line-height: 1; color: var(--porph); }
.prog__week-of { color: var(--soot-dim); font-weight: 600; margin-left: -4px; }
.prog__stage { flex-basis: 100%; font-weight: 600; color: var(--stock-deep); }
.gantt { position: relative; padding-top: 26px; }
.gantt__axis { position: absolute; top: 0; left: calc(34% + 14px); right: 0; height: 20px; font-size: .875rem; color: var(--soot-dim); font-weight: 600; }
.gantt__axis small { position: absolute; font-size: inherit; transform: translateX(-50%); }
.gantt__axis small:first-child { transform: none; }
.gantt__axis small:last-child { transform: translateX(-100%); }
.gantt__row { display: grid; grid-template-columns: 30px calc(34% - 30px) minmax(0, 1fr); gap: 0 14px; align-items: center; min-height: clamp(30px, 4.6vh, 44px); border-top: 1px solid var(--mortar); transition: color .4s; }
.gantt__row:last-of-type { border-bottom: 1px solid var(--mortar); }
.gantt__num { display: block; font-family: var(--f-display); color: var(--stock-deep); font-size: 1rem; }
.gantt__label { font-size: .95rem; font-weight: 500; line-height: 1.25; color: var(--soot-dim); transition: color .4s; }
.gantt__row.is-on .gantt__label { color: var(--soot); font-weight: 600; }
.gantt__track { position: relative; height: 14px; background: repeating-linear-gradient(90deg, rgba(58, 19, 32, .07) 0 1px, transparent 1px calc(100% / 6)); }
.gantt__bar { position: absolute; top: 0; bottom: 0; background: rgba(58, 19, 32, .12); }
.gantt__fill { position: absolute; inset: 0; background: var(--porph); transform: scaleX(0); transform-origin: 0 50%; }
.gantt__row.is-on .gantt__fill { background: var(--stock); }
.gantt__now { position: absolute; top: 22px; bottom: 0; left: calc(34% + 14px); right: 0; pointer-events: none; }
.gantt__now span { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--stock-deep); }
.gantt__now span::before { content: ""; position: absolute; top: -6px; left: -5px; width: 12px; height: 12px; background: var(--stock-deep); transform: rotate(45deg); }
@media (max-width: 900px) {
  .prog__in { padding-top: calc(var(--head-h) + 4px); padding-bottom: 16px; }
  .prog__note { font-size: .92rem; }
  .prog__body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .prog__draw { height: min(26vh, 240px); padding: 6px; }
  .gantt__row { grid-template-columns: 24px calc(42% - 24px) minmax(0, 1fr); min-height: 30px; gap: 0 10px; }
  .gantt__axis, .gantt__now { left: calc(42% + 10px); }
  .gantt__label { font-size: .875rem; }
  .prog__week { margin-bottom: 6px; }
  .prog__week-n { font-size: 1.9rem; }
}
@media (max-width: 600px) {
  .prog__head { gap: 8px; margin-bottom: 12px; }
  .prog__head .h2 { font-size: 1.65rem; }
  .prog__note-text { display: none; }
  .prog__draw { height: min(23vh, 200px); }
  .prog__week { gap: 2px 10px; }
  .prog__week-n { font-size: 1.6rem; }
  .prog__stage { font-size: .9rem; }
  .gantt { padding-top: 22px; }
  .gantt__row { min-height: 27px; }
  .gantt__label { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gantt__axis { font-size: .875rem; }
}

/* ---------- Planner teaser ---------- */
.teaser { overflow: clip; }
.teaser__bg { position: absolute; inset: 0; overflow: hidden; background: url("../img/planner-hero-1920.webp") 50% 0% / cover no-repeat; }
.teaser__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 9, 15, .97), rgba(34, 9, 15, .82)); }
.teaser__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.teaser__copy .h2 { margin-bottom: 20px; }
.teaser__copy .lede { margin-bottom: 26px; }
.teaser__pick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { min-height: 46px; padding: 0 18px; background: transparent; border: 1.5px solid rgba(247, 245, 240, .35); color: var(--lime); font-weight: 600; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.chip:hover { border-color: var(--stock); }
.chip.is-on { background: var(--stock); border-color: var(--stock); color: var(--soot); }
.teaser__panel { position: relative; padding: clamp(24px, 3vw, 40px); background: rgba(247, 245, 240, .05); border: 1px solid rgba(211, 165, 78, .35); }
.teaser__sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 18px; }
.teaser__big { margin: 0; font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; color: var(--stock); }
.teaser__small { margin: 0; color: var(--lime-dim); }
.teaser__ex { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--stock); color: var(--stock); font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mini { position: relative; display: grid; gap: 8px; }
.mini__row { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 14px; align-items: center; }
.mini__label { font-size: .92rem; color: var(--lime-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__track { position: relative; height: 12px; background: rgba(247, 245, 240, .07); }
.mini__bar { position: absolute; top: 0; bottom: 0; background: var(--stock); }
.mini__row:nth-child(even) .mini__bar { background: #E6C27A; }
@media (max-width: 900px) {
  .teaser__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Homeowners and businesses ---------- */
.aud__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.aud__card { position: relative; display: flex; flex-direction: column; background: var(--lime); transform-style: preserve-3d; will-change: transform; }
.aud { padding: clamp(64px, 7vw, 104px) 0; }
.aud__media { position: relative; height: min(34vh, 330px); overflow: hidden; background: var(--porph-deep); }
.aud__media img { width: 100%; height: 100%; object-fit: cover; }
.aud__body { padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 12px; justify-items: start; }
.aud__body p { margin: 0 0 6px; color: var(--soot-dim); }
.aud__body .link-arrow { color: var(--porph); }
.aud__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 244, 214, .3), rgba(255, 244, 214, 0) 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
.aud__card:hover .aud__glare { opacity: 1; }
@media (max-width: 900px) {
  .aud__grid { grid-template-columns: minmax(0, 1fr); }
  .aud__media { height: 260px; }
}

/* ---------- Greater London map ---------- */
.area__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.area__copy .h2 { margin-bottom: 20px; }
.area__copy .lede { margin-bottom: 28px; }
.area__readout { display: grid; gap: 4px; margin: 0 0 30px; padding: 16px 20px; border-left: 3px solid var(--stock); background: rgba(247, 245, 240, .05); }
.area__readout-label { font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stock); }
.area__readout-name { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.2; color: var(--lime); min-height: 1.2em; }
.area__map { margin: 0; position: relative; }
.area__map .lmap { max-height: min(70vh, 640px); }
@media (max-width: 900px) {
  .area__grid { grid-template-columns: minmax(0, 1fr); }
}
.mini__sweep { position: absolute; top: -8px; bottom: -8px; width: 56px; margin-left: -54px; background: linear-gradient(90deg, rgba(247, 245, 240, 0), rgba(247, 245, 240, .16) 85%, rgba(247, 245, 240, .85) 96%, rgba(247, 245, 240, 0)); pointer-events: none; }
