/* Shared foundation for all five variants. Palette: maroon #801727 + cream #fff4d3, plus a near-black maroon. */
@font-face { font-family: "Ahsing"; src: url("Ahsing.woff2") format("woff2"), url("Ahsing.otf") format("opentype"); font-display: swap; }

:root {
  --maroon: #801727;
  --maroon-lift: #9c2236;
  --cream: #fff4d3;
  --deep: #1c0609;
  --display: "Ahsing", Alice, serif;
  --serif: Alice, Georgia, serif;
  --ui: Montserrat, Alice, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--serif); background: var(--cream); color: var(--deep); -webkit-font-smoothing: antialiased; font-synthesis: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--maroon); color: var(--cream); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero motion shared by every variant */
.hero-photo { animation: hero-zoom 14s ease-out both; transform-origin: 50% 60%; }
.fade-up { animation: fade-up 1.1s cubic-bezier(.2,.7,.2,1) both; }
.fade-up.d2 { animation-delay: .15s; } .fade-up.d3 { animation-delay: .3s; } .fade-up.d4 { animation-delay: .45s; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.credit { font-family: var(--ui); font-size: 12px; letter-spacing: .04em; opacity: .7; }
.credit a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Section 2: Property Pulse ---------- */
.pp-section { background: var(--pp-bg); color: var(--pp-ink); }
.pp { max-width: 1400px; margin: 0 auto; padding: 112px 40px 72px; }
.pp-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; text-wrap: balance; }
.pp-pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 8px 16px; border-radius: 999px; font-family: var(--ui); font-size: 13px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--pp-line), inset 0 0 0 999px rgba(255,244,211,.04); }
.pp-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pp-filter button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-family: var(--ui); font-size: 13.5px; font-weight: 500;
  color: var(--pp-ink); box-shadow: inset 0 0 0 1px var(--pp-line); transition: background-color .2s ease, color .2s ease; }
.pp-filter button span { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.pp-filter button:hover { box-shadow: inset 0 0 0 1px var(--pp-muted); }
.pp-filter button[aria-pressed="true"] { background: var(--pp-ink); color: var(--pp-bg); box-shadow: none; }
.pp-sub { margin-top: 10px; font-family: var(--ui); font-size: 12.5px; color: var(--pp-muted); }
.pp-empty { color: var(--pp-muted); display: block !important; }
.pp-card, .pp-pin, .pp-leaders > * { transition: opacity .3s ease; }
.pp-card.off { opacity: .12; } .pp-pin.off, .pp-leaders > .off { opacity: .1 !important; }
.pp-cv2 small { font-family: var(--ui); font-size: 11.5px; opacity: .65; margin-left: 5px; }
.pp-sources { margin-top: 28px; font-family: var(--ui); font-size: 13px; color: var(--pp-muted); }
.pp-sources summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--pp-ink); font-weight: 500; }
.pp-sources ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px 32px; margin: 8px 0 14px; }
.pp-sources li b { color: var(--pp-ink); font-weight: 600; margin-right: 6px; }
.pp-sources li a { display: block; margin-top: 2px; text-underline-offset: 3px; }
.pp-sources li span { margin-right: 6px; }
.pp-sources .pp-sw { display: block; margin-top: 2px; color: var(--pp-muted); }
.pp-list li { grid-template-columns: 1fr auto auto auto !important; }
.pp-lp { font-size: 11.5px; color: var(--pp-muted); }
.pp-card.off .pp-ci { opacity: .5; }
.pp-cp { font-style: normal; margin-left: 6px; opacity: .7; font-size: 11.5px; }
.pp-cp:not(:empty)::before { content: "· "; }

.pp-lede { margin-top: 14px; max-width: 560px; font-size: 18px; line-height: 1.5; color: var(--pp-muted); }
.pp-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 48px; align-items: start; }
.pp-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; align-items: start; }
.pp-side .pp-activity, .pp-side .pp-tiles { margin-top: 0; }
@media (min-width: 1100px) {
  .pp-grid { grid-template-columns: 280px 1fr; gap: 40px; }
  .pp-side { display: block; }
  .pp-side .pp-activity { margin-top: 36px; } .pp-side .pp-tiles { margin-top: 32px; }
}
.pp-label { font-family: var(--ui); font-size: 13px; font-weight: 600; }
.pp-label span { font-weight: 400; color: var(--pp-muted); }
.pp-big { font-family: var(--serif); font-size: 60px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pp-sample { display: inline-block; margin-top: 12px; font-family: var(--ui); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--pp-line); color: var(--pp-muted); }
.pp-activity { margin-top: 36px; }
.pp-bar { display: flex; gap: 3px; height: 6px; margin: 12px 0 10px; }
.pp-seg { display: block; border-radius: 3px; }
.s0 { background: var(--pp-s0); } .s1 { background: var(--pp-s1); } .s2 { background: var(--pp-s2); }
.s3 { background: var(--pp-s3); } .s4 { background: var(--pp-s4); } .s5 { background: var(--pp-s5); }
.pp-rows { list-style: none; font-family: var(--ui); font-size: 13px; }
.pp-rows li { display: grid; grid-template-columns: 14px 1fr auto 44px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--pp-line); }
.pp-dot { width: 7px; height: 7px; border-radius: 50%; }
.pp-cv { color: var(--pp-muted); font-variant-numeric: tabular-nums; }
.pp-cp { text-align: right; font-weight: 600; }
.pp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.pp-tile { border-radius: 14px; padding: 18px 12px 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.pp-tile.t1 { background: var(--pp-t1-bg); color: var(--pp-t1-ink); }
.pp-tile.t2 { background: var(--pp-t2-bg); color: var(--pp-t2-ink); }
.pp-tile.t3 { background: var(--pp-t3-bg); color: var(--pp-t3-ink); box-shadow: inset 0 0 0 1px var(--pp-line); }
.pp-tn { font-family: var(--serif); font-size: 21px; }
.pp-tl { font-family: var(--ui); font-size: 12px; line-height: 1.3; opacity: .85; }

.pp-map { position: relative; width: 100%; }
.pp-stage { position: absolute; left: 0; top: 0; width: 1020px; height: 738px; transform-origin: 0 0; }
.pp-svg { position: absolute; inset: 0; width: 1020px; height: 738px; }
.pp-card { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap; background: var(--pp-card-bg); color: var(--pp-card-ink); border: 1px solid var(--pp-line); border-radius: 10px; padding: 7px 12px 7px 7px; box-shadow: 0 6px 18px rgba(28, 6, 9, .18); }
.pp-ci { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.pp-ci svg { width: 16px; height: 16px; fill: none; stroke-width: 2; }
.pp-card.ic0 .pp-ci, .pp-card.ic2 .pp-ci { background: var(--maroon); } .pp-card.ic0 svg, .pp-card.ic2 svg { stroke: var(--cream); }
.pp-card.ic1 .pp-ci, .pp-card.ic3 .pp-ci { background: var(--cream); } .pp-card.ic1 svg, .pp-card.ic3 svg { stroke: var(--maroon); }
.pp-cm { display: flex; align-items: center; gap: 6px; font-family: var(--ui); font-size: 12.5px; opacity: .78; }
.pp-cv2 { display: flex; align-items: baseline; font-family: var(--serif); font-size: 19px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pp-chg { display: inline-flex; align-items: center; gap: 3px; font-family: var(--ui); font-size: 12px; margin-left: 8px; opacity: .85; font-variant-numeric: tabular-nums; }
.pp-chg.down { opacity: .6; }
.pp-arrow { width: 8px; height: 8px; fill: currentColor; }
.pp-arrow.down { transform: rotate(180deg); }
.pp-fr { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; background: currentColor; }
.pp-fr.weekly { opacity: .7; } .pp-fr.monthly { opacity: .4; }
.pp-fr.quarterly { background: transparent; box-shadow: inset 0 0 0 1.2px currentColor; opacity: .7; }
.pp-fr.live { box-shadow: 0 0 0 2px var(--pp-bg), 0 0 0 3px currentColor; }
.pp-list { display: none; list-style: none; font-family: var(--ui); font-size: 13px; margin-top: 20px; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.pp-list li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--pp-line); }
.pp-lv { font-family: var(--serif); font-size: 15px; }
.pp-compact .pp-card, .pp-compact .pp-leaders { display: none; }
.pp-compact .pp-list { display: grid; }

.pp-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--pp-line); flex-wrap: wrap; }
.pp-legend { display: flex; gap: 18px; font-family: var(--ui); font-size: 12px; color: var(--pp-muted); flex-wrap: wrap; }
.pp-legend span { display: flex; align-items: center; gap: 7px; color: var(--pp-ink); }
.pp-legend span { opacity: .8; }
.pp-kpis { display: flex; gap: 44px; flex-wrap: wrap; }
.pp-kpis dt { font-family: var(--ui); font-size: 12px; color: var(--pp-muted); }
.pp-kpis dd { font-family: var(--serif); font-size: 30px; margin-top: 4px; }
.pp-kpis small { font-family: var(--ui); font-size: 13px; color: var(--pp-muted); }
.pp-note { margin-top: 20px; font-family: var(--ui); font-size: 12.5px; color: var(--pp-muted); }

/* ---------- Section 3: Flow ---------- */
.fl-section { background: var(--fl-bg); color: var(--fl-ink); background-image: var(--fl-pattern, none); background-size: 22px 22px; }
.fl { max-width: 1400px; margin: 0 auto; padding: 112px 40px 96px; }
.fl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.fl-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; color: var(--fl-title, var(--fl-ink)); text-wrap: balance; }
.fl-lede { margin-top: 12px; font-size: 18px; color: var(--fl-muted); max-width: 560px; line-height: 1.5; }
.fl-all { font-family: var(--ui); font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--fl-node-border); background: var(--fl-node-bg); color: var(--fl-node-ink); }
.fl-body { margin-top: 48px; }
.fl-scale { position: relative; }
.fl-stage { position: relative; transform-origin: 0 0; }
.fl-svg { position: absolute; inset: 0; overflow: visible; }
.fl-edge { fill: none; stroke: var(--fl-edge); stroke-width: 1.4; opacity: .55; }
.fl-edge.strong { stroke-width: 1.8; opacity: .8; }
.fl-port { fill: var(--fl-node-bg); stroke: var(--fl-edge); stroke-width: 1.6; }
.fl-edge.enter { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fl-draw .7s ease-out forwards; }
.fl-port.enter { opacity: 0; animation: fl-in .3s .5s ease-out forwards; }
@keyframes fl-draw { to { stroke-dashoffset: 0; } }
.fl-pos { position: absolute; }
.fl-node { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: left; width: 100%; height: 70px; padding: 0 18px; border-radius: var(--fl-radius, 14px); background: var(--fl-node-bg); color: var(--fl-node-ink); border: 1px solid var(--fl-node-border); box-shadow: 0 8px 20px rgba(60, 14, 20, .08); transition: transform .2s ease, border-color .2s ease; }
.fl-node:hover { transform: translateY(-2px); }
.fl-node.k-branch { border: 1.6px solid var(--fl-branch-border); }
.fl-node.k-start { background: var(--fl-start-bg); color: var(--fl-start-ink); border-color: transparent; }
.fl-node.sel { border-color: var(--fl-branch-border); }
.fl-t { font-family: var(--serif); font-size: 18px; line-height: 1.15; white-space: nowrap; }
.k-start .fl-t { font-size: 22px; }
.k-branch .fl-t { font-size: 16.5px; }
.fl-l { font-family: var(--ui); font-size: 13.5px; display: flex; align-items: center; gap: 7px; opacity: .65; }
.fl-l i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.fl-badge { position: absolute; left: 14px; top: -11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ui); font-size: 15px; line-height: 1; background: var(--fl-badge-bg); color: var(--fl-badge-ink); border: 2px solid var(--fl-bg); }
.k-start .fl-badge:not(.on) { animation: fl-pulse 1.8s ease-in-out infinite; }
@keyframes fl-pulse { 50% { transform: scale(1.18); } }
.enter { animation: fl-in .45s ease-out both; }
@keyframes fl-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.fl-result { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--fl-radius, 14px); background: var(--fl-result-bg); color: var(--fl-result-ink); min-height: 132px; }
.fl-rt { font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.fl-rd { font-size: 14.5px; line-height: 1.45; opacity: .85; }
.fl-cta { display: block; margin-top: 22px; text-align: center; font-family: var(--ui); font-weight: 600; font-size: 15px; text-decoration: none; padding: 16px 0; border-radius: 999px; background: var(--fl-cta-bg); color: var(--fl-cta-ink); }
.fl-detail { margin-top: 28px; min-height: 26px; font-size: 16px; color: var(--fl-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.fl-detail b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--fl-ink); }

/* narrow screens: vertical tree */
.fl-tree, .fl-tree ul { list-style: none; }
.fl-tree ul { margin-left: 18px; padding-left: 18px; border-left: 1.4px solid var(--fl-edge); }
.fl-tree li { padding-top: 18px; position: relative; }
.fl-tree ul > li::before { content: ""; position: absolute; left: -18px; top: 53px; width: 18px; border-top: 1.4px solid var(--fl-edge); }
.fl-tree .fl-node { height: auto; min-height: 64px; padding: 14px 16px; }
.fl-tree .fl-t { white-space: normal; }
.fl-mend { margin-top: 28px; }

@media (max-width: 900px) {
  .pp, .fl { padding: 80px 16px 56px; }
  .pp-grid { grid-template-columns: 1fr; gap: 32px; }
  .pp-side { grid-template-columns: 1fr; gap: 32px; }
  .pp-list { grid-template-columns: 1fr; }
  .pp-big { font-size: 48px; }
  .pp-kpis { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fl-edge.enter { stroke-dasharray: none; stroke-dashoffset: 0; }
  .fl-port.enter { opacity: 1; }
}
