/* AP&P page styles. Tokens only (see theme.css). Signature: the slanted slate band of the logo. */
html { scroll-behavior: smooth; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-s { width: 15px; height: 15px; }
[hidden] { display: none !important; }
a { text-underline-offset: 0.22em; }
.eyebrow { color: var(--accent-text); }

/* Signature: slanted band, right edge cut like the logo's bands */
.slant > span, .band-tag, .price-tag {
  display: inline-block; background: var(--band-slate); color: var(--on-band);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.55em) 100%, 0 100%);
  padding: 0.08em 0.9em 0.12em 0.35em;
}

/* Header */
.site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.header-inner { gap: 16px; }
.brand { margin-right: auto; display: block; }
.brand img { width: 132px; height: auto; }
@media (min-width: 760px) { .brand img { width: 150px; } }
.nav-links { gap: 22px; }
@media (min-width: 900px) { .nav-links { display: none; } }
@media (min-width: 1180px) { .nav-links { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; align-items: center; gap: 8px; min-height: 44px; padding-inline: 8px; font-weight: 600; font-size: var(--fs-small); text-decoration: none; color: var(--muted-strong); }
.header-phone:hover { color: var(--ink); }
@media (min-width: 1000px) { .header-phone { display: inline-flex; } }
.header-cta { display: inline-flex; min-height: 44px; padding: 10px 12px; font-size: var(--fs-small); white-space: nowrap; }
@media (min-width: 640px) { .header-cta { padding: 10px 18px; font-size: 0.9375rem; } }
@media (max-width: 400px) { .brand img { width: 112px; } .header-inner { gap: 6px; } .header-actions { gap: 2px; } }
.theme-toggle { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted-strong); cursor: pointer; border-radius: var(--radius-sm); }
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle .ic { grid-area: 1 / 1; }
.theme-toggle .ic:last-child { display: none; }
:root[data-theme="dark"] .theme-toggle .ic:first-child { display: none; }
:root[data-theme="dark"] .theme-toggle .ic:last-child { display: block; }
.mobile-nav { position: relative; }
.mobile-nav summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: var(--radius-sm); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .ic { grid-area: 1 / 1; width: 24px; height: 24px; }
.mobile-nav summary .ic:last-child, .mobile-nav[open] summary .ic:first-child { display: none; }
.mobile-nav[open] summary .ic:last-child { display: block; }
.mobile-nav nav { position: fixed; left: 0; right: 0; top: var(--header-height); bottom: 0; overflow: auto; background: var(--bg); padding: 16px max(16px, calc((100vw - var(--shell)) / 2)) 40px; display: grid; align-content: start; gap: 0; border-top: 1px solid var(--line); }
.mobile-nav nav a:not(.button) { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; }
.mobile-nav nav a.button { margin-top: 24px; }
@media (min-width: 1180px) { .mobile-nav { display: none; } }

/* Hero: full-bleed office photo, slanted bands for the headline */
.hero { min-height: clamp(520px, 78svh, 760px); color: var(--on-photo); isolation: isolate; align-content: end; }
.hero-bleed { z-index: -1; }
.hero-bleed img { object-position: 62% 50%; }
.hero-bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--photo-wash) 0%, var(--photo-wash) 45%, transparent 100%), linear-gradient(0deg, var(--photo-wash), transparent 70%); }
.hero-inner { gap: 20px; }
.hero-kicker { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.02em; max-width: 46ch; text-shadow: 0 1px 2px var(--photo-shade); }
.hero .display { display: grid; justify-items: start; gap: 0.08em; color: var(--on-band); font-size: clamp(1.75rem, 0.6rem + 5.6vw, 5.2rem); }
.hero .display > span { max-width: 100%; }
.hero .display > span { padding-right: 1.1em; }
.hero .display em { font-style: normal; color: var(--amp); }
.hero .lead { color: var(--on-photo); max-width: 48ch; text-shadow: 0 1px 2px var(--photo-shade); }
.hero .button-quiet { color: var(--on-photo); border-color: var(--on-photo-line); background: var(--photo-shade-soft); }
.hero .button-quiet:hover { border-color: var(--on-photo); }

/* Search strip: tinted band right under the hero */
.search-bar { background: var(--accent-fill); color: var(--accent-on-fill); }
.search-inner { display: grid; gap: 12px; padding-block: 18px; align-items: end; }
@media (min-width: 760px) { .search-inner { grid-template-columns: auto 1fr 1fr auto; gap: 16px; } }
.seg { display: inline-flex; border: 0; padding: 0; margin: 0; background: var(--bg); border-radius: var(--radius-button); padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; min-width: 76px; padding-inline: 14px; font-weight: 600; color: var(--ink); border-radius: var(--radius-sm); }
.seg input:checked + span { background: var(--band-slate); color: var(--on-band); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.sel { display: grid; gap: 4px; }
.sel .label { color: var(--accent-on-fill); }
select, input, textarea { min-height: 48px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.search-bar select { border-color: transparent; }
.search-bar .button-primary { background: var(--band-slate); color: var(--on-band); }
.search-bar :focus-visible { outline-color: var(--ink); }

/* Listings: photo first, facts row, price on the slate band. No boxes. */
.result-count { font-weight: 600; color: var(--muted-strong); }
.listings { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.listing-link { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.listing-photo { position: relative; aspect-ratio: 720 / 476; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.listing-link:hover .listing-photo img { transform: scale(1.03); }
.tile-type { position: absolute; inset: 0; display: grid; align-content: center; gap: 4px; padding: 20px; background: var(--band-slate); color: var(--on-band); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; }
.tile-type span:first-child { font-size: 1.2rem; }
.tile-type span:last-child { color: var(--on-ink-muted); font-size: 0.85rem; }
.price-tag { position: absolute; left: 0; bottom: 14px; font-family: var(--font-display); font-weight: 500; font-size: 1rem; padding: 6px 26px 7px 14px; }
.sticker { position: absolute; top: 12px; left: 12px; background: var(--accent-fill); color: var(--accent-on-fill); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-sm); }
.listing-body { display: grid; gap: 6px; }
.listing-body .h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.addr { color: var(--muted); font-size: var(--fs-small); }
.feats { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted-strong); font-size: var(--fs-small); padding-top: 4px; }
.feats li { display: inline-flex; align-items: center; gap: 6px; }
.feats .ic { width: 18px; height: 18px; color: var(--accent-text); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-text); padding-top: 4px; }
.listing-link:hover .more { text-decoration: underline; }
.listings-more { margin-top: 40px; }
.empty-note { padding: 24px 0; color: var(--muted-strong); max-width: 60ch; }

/* Services: tabs + panel, prefill the request form */
.svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.svc-tab { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink); border-radius: var(--radius-button); font-weight: 600; cursor: pointer; }
.svc-tab:hover { border-color: var(--ink); }
.svc-tab[aria-selected="true"] { background: var(--band-slate); border-color: var(--band-slate); color: var(--on-band); }
.svc-panel { display: grid; gap: 18px; }
.js .svc-panel:not(.is-active) { display: none; }
.no-js .svc-panel + .svc-panel { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.svc-panel .h3 { font-family: var(--font-display); font-weight: 500; max-width: 26ch; }
.checks { display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks .ic { color: var(--accent-text); margin-top: 2px; }
.svc-panel .button { justify-self: start; margin-top: 8px; }

/* Process */
.process-photo { margin-top: 24px; max-width: 420px; aspect-ratio: 1; }
.process > li { grid-template-columns: 3.5rem 1fr !important; }
.process > li::before { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem) !important; }
.process > li > * { grid-column: 2; }
.process > li > h3 { font-family: var(--font-display); font-weight: 500; }
.process p { color: var(--muted-strong); max-width: 60ch; }
@media (min-width: 760px) { .process > li { grid-template-columns: 4.5rem 1fr !important; } }

/* Figures: slate band */
.figures { background: var(--ink-field); }
.figures .facts > div { border-top-color: color-mix(in srgb, var(--on-ink) 35%, transparent); }
.figures .facts strong { color: var(--on-ink); }
.figures .facts span { color: var(--on-ink-muted); }
.figures .label { color: var(--on-ink-muted); margin-bottom: 28px; }

/* Projects */
.proj-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .proj-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; } }
.proj-now { display: grid; gap: 22px; }
.proj-photo { aspect-ratio: 848 / 434; }
.proj-now .h3 { font-family: var(--font-display); font-weight: 500; max-width: 24ch; }
.proj-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--muted-strong); }
.band-tag { font-family: var(--font-display); font-weight: 500; padding: 6px 26px 7px 12px; }
.sold-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.sold-list li:last-child { border-bottom: 1px solid var(--line); }
.proj-sold .label { margin-bottom: 12px; }

/* Stories */
.stories-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.stories-head .intro { margin-bottom: 0; }
.story-nav { display: flex; align-items: center; gap: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.round { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.round:hover { border-color: var(--ink); }
.story-track { display: grid; gap: 40px; }
.js .story-track.is-carousel .story:not(.is-active) { display: none; }
.story { display: grid; gap: 22px; padding-left: clamp(16px, 3vw, 32px); border-left: 4px solid var(--accent); }
.story .quote { max-width: 34ch; font-weight: 500; font-size: clamp(1.25rem, 0.95rem + 1.4vw, 2.1rem); }
.story figcaption { display: grid; gap: 2px; margin: 0; }
.story figcaption strong { color: var(--ink); font-size: 1rem; }

/* About */
.about-split { margin-bottom: clamp(40px, 5vw, 72px); }
.timeline { display: grid; gap: 0 28px; margin-bottom: clamp(48px, 6vw, 88px); }
.timeline li { display: grid; gap: 8px; align-content: start; padding-block: 18px 24px; border-top: 2px solid var(--ink); }
.timeline .year { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--accent-text); }
.timeline .h4 { font-family: var(--font-display); font-weight: 500; }
.timeline p { color: var(--muted-strong); font-size: var(--fs-small); }
@media (min-width: 700px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.team-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-bottom: 28px; }
.team-head .h3 { font-family: var(--font-display); font-weight: 500; }
.team { display: grid; gap: 28px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.team li { display: grid; gap: 4px; align-content: start; min-width: 0; }
.portrait { aspect-ratio: 5 / 6; background: var(--surface-2); border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; margin-bottom: 10px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.initials { font-family: var(--font-display); font-size: 2rem; color: var(--muted); }
.team .h4 { font-size: 1rem; }
.team a { font-size: var(--fs-small); color: var(--accent-text); overflow-wrap: anywhere; }
.team .small { color: var(--muted); font-size: var(--fs-micro); }

/* Engagement */
.engagement { border-top: 1px solid var(--line); }
.engagement .h3 { font-family: var(--font-display); font-weight: 500; }
.sponsors { display: flex; flex-wrap: wrap; gap: 8px; }
.sponsors li { padding: 6px 12px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: var(--fs-small); }

/* Contact + form (the one bordered panel) */
@media (min-width: 900px) { .contact-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.kv a { color: inherit; }
.request { grid-template-columns: 1fr !important; align-items: start !important; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .f-topic, .f-msg, .f-ok { grid-column: 1 / -1; } }
.form-grid label { display: grid; gap: 6px; font-size: var(--fs-small); font-weight: 600; }
.f-ok { grid-template-columns: 24px 1fr; align-items: start; font-weight: 400 !important; }
.f-ok input { min-height: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-fill); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
textarea { resize: vertical; }
[aria-invalid="true"] { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text); }
.form-status { font-weight: 600; }
.form-status.is-error { color: var(--accent-text); }

/* Footer */
.footer-top { display: grid; gap: 12px; margin-bottom: 40px; }
.footer-logo { width: 170px; height: auto; }
.legal { margin-top: 32px; max-width: 110ch; color: var(--muted-strong); }
.legal + .legal { margin-top: 12px; }
.site-footer a { text-underline-offset: 0.2em; }

/* Reveal */
.js .reveal { transition-duration: 480ms; }

/* 360 tour (S4) */
.tour { background: var(--ink-field); }
.tour .eyebrow { color: var(--amp); }
.tour-viewer { display: grid; gap: 0; }
.tour-stage { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; border-radius: var(--radius-sm); }
@media (min-width: 700px) { .tour-stage { aspect-ratio: 16 / 9; } }
.tour-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tour.is-dragging .tour-stage, .is-dragging .tour-stage { cursor: grabbing; }
.tour-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tour-fallback { width: 100%; height: 100%; object-fit: cover; }
.is-live .tour-fallback { display: none; }
.tour-hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 0; min-height: 44px; padding: 0; margin: -22px 0 0 -22px; border: 0; background: transparent; color: var(--on-band); cursor: pointer; font: inherit; }
.hotspot.is-off { visibility: hidden; }
.hotspot.flip { flex-direction: row-reverse; }
.hotspot.flip .hs-label { margin: 0 -4px 0 0; padding: 6px 10px 7px 22px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.hs-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 0 6px var(--photo-shade-soft); display: grid; place-items: center; flex: none; }
.hs-dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-on-fill); }
.hs-label { background: var(--band-slate); color: var(--on-band); font-weight: 600; font-size: var(--fs-small); padding: 6px 22px 7px 10px; margin-left: -4px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); white-space: nowrap; }
.hotspot:hover .hs-dot, .hotspot:focus-visible .hs-dot { transform: scale(1.08); }
.hotspot:focus-visible { outline: 3px solid var(--on-photo); outline-offset: 2px; border-radius: 24px; }
.demo-badge { position: absolute; left: 0; top: 14px; display: grid; gap: 0; padding: 8px 26px 9px 14px; background: var(--accent-fill); color: var(--accent-on-fill); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); font-size: var(--fs-small); line-height: 1.3; pointer-events: none; }
.demo-badge strong { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-micro); }
.tour-room { position: absolute; left: 0; bottom: 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.3rem); background: var(--band-slate); color: var(--on-band); padding: 6px 30px 8px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); pointer-events: none; }
.tour-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.tool { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: var(--band-slate); color: var(--on-band); cursor: pointer; }
.tour-bar { display: grid; gap: 10px; padding-top: 16px; }
.rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.rooms button { min-height: 44px; padding: 8px 14px; border: 1.5px solid color-mix(in srgb, var(--on-ink) 40%, transparent); background: transparent; color: var(--on-ink); border-radius: var(--radius-button); font-weight: 600; cursor: pointer; }
.rooms button:hover { border-color: var(--on-ink); }
.rooms button[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-on-fill); }
.tour-status, .tour-vr-note, .tour-credit { color: var(--on-ink-muted); }
.tour-status { color: var(--on-ink); font-weight: 600; }
.no-webgl .tour-hotspots, .no-webgl .tour-room { display: none; }
.real-tour { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid color-mix(in srgb, var(--on-ink) 30%, transparent); }
.real-tour .h3 { font-family: var(--font-display); font-weight: 500; }
.real-tour .eyebrow { color: var(--amp); }
.real-tour .text-link { color: var(--on-ink); margin-right: 18px; }
.real-frame { position: relative; aspect-ratio: 16 / 10; background: var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.real-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.real-load { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 10px; padding: clamp(20px, 4vw, 40px); border: 0; background: var(--band-slate); color: var(--on-band); text-align: left; cursor: pointer; font: inherit; }
.real-load .band-tag { background: var(--accent-fill); color: var(--accent-on-fill); }
.real-load-title { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); font-weight: 500; }
.real-load .small { color: var(--on-ink-muted); }
.real-load:hover .real-load-title { text-decoration: underline; text-underline-offset: 0.2em; }
.listing { position: relative; display: grid; gap: 10px; align-content: start; }
.tour-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; background: var(--accent-fill); color: var(--accent-on-fill); font-weight: 700; font-size: var(--fs-small); text-decoration: none; border-radius: var(--radius-button); }
