:root {
  --detail-night: #071c2d;
  --detail-night-soft: #0d263a;
  --detail-blue: #173652;
  --detail-glass: rgba(10, 31, 48, .72);
  --detail-lime: #C2FF08;
  --detail-green: #00B67A;
  --detail-mist: #edf3f0;
}

.detail-page { background: var(--detail-night); color: var(--navy); }
.detail-page em { font-style: normal; }
.detail-page .detail-header { position: sticky; z-index: 80; top: 0; background: #fff; backdrop-filter: none; }
.detail-page .detail-header.is-scrolled .header-inner { height: 64px; }
.detail-page .detail-header .desktop-nav a::after { background: var(--green); }

.detail-hero {
  position: relative;
  display: grid;
  min-height: min(850px, calc(100svh - 72px));
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: var(--detail-night);
}
.detail-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 20, 34, .96) 0%, rgba(4, 20, 34, .83) 32%, rgba(4, 20, 34, .3) 65%, rgba(4, 20, 34, .16) 100%),
    linear-gradient(0deg, rgba(4, 20, 34, .7) 0%, transparent 45%);
  content: "";
  pointer-events: none;
}
.detail-hero::after {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  width: 68px;
  height: 68px;
  border-right: 2px solid var(--detail-lime);
  border-bottom: 2px solid var(--detail-lime);
  content: "";
  opacity: .75;
  pointer-events: none;
}
.detail-hero-media { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; min-height: 0; background: #10283a; }
.detail-hero-media::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 23, 37, .08), rgba(5, 23, 37, .22)); content: ""; }
.detail-hero-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.015);
  animation: project-hero-settle 1.4s var(--ease) both;
}
@keyframes project-hero-settle { from { opacity: .6; transform: scale(1.055); } }
.detail-breadcrumbs {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 0;
  left: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.52);
  font-size: .64rem;
}
.detail-breadcrumbs a { transition: color 180ms ease; }
.detail-breadcrumbs a:hover { color: var(--detail-lime); }
.detail-breadcrumbs strong { color: #fff; font-weight: 620; }
.detail-hero-heading {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
  min-height: inherit;
  padding-block: 98px 74px;
}
.detail-kicker { display: flex; gap: 12px; align-items: center; margin: 0 0 24px; color: var(--detail-lime); font-size: .7rem; font-weight: 700; }
.detail-kicker span { width: 28px; height: 2px; background: currentColor; }
.detail-kicker-dark { color: var(--green-dark); }
.detail-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(4.4rem, 7.3vw, 7.2rem);
  font-weight: 475;
  letter-spacing: -.06em;
  line-height: .86;
  text-shadow: 0 12px 44px rgba(3, 18, 31, .28);
}
.detail-hero-copy h1 em { color: var(--detail-lime); }
.detail-hero-copy > p:not(.detail-kicker) { max-width: 590px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: .94rem; line-height: 1.65; }
.detail-hero-actions { display: flex; gap: 18px; align-items: center; margin-top: 32px; }
.detail-hero-actions .button { box-shadow: 0 18px 40px rgba(5, 22, 34, .22); }

.investment-pass {
  position: relative;
  padding: 22px 24px 20px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(9, 30, 47, .82), rgba(17, 48, 66, .58)), rgba(8, 25, 40, .62);
  color: #fff;
  box-shadow: 0 24px 64px rgba(2, 15, 26, .3), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(20px) saturate(115%);
}
.investment-pass::before,
.investment-pass::after { position: absolute; width: 34px; height: 34px; content: ""; pointer-events: none; }
.investment-pass::before { top: -7px; left: -7px; border-top: 2px solid var(--detail-lime); border-left: 2px solid var(--detail-lime); }
.investment-pass::after { right: -7px; bottom: -7px; border-right: 2px solid var(--detail-lime); border-bottom: 2px solid var(--detail-lime); }
.investment-pass > p { display: flex; justify-content: space-between; margin: 0 0 16px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--detail-lime); font-size: .67rem; font-weight: 700; }
.investment-pass > p span { color: rgba(255,255,255,.48); font-weight: 500; }
.investment-pass > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; color: rgba(255,255,255,.56); font-size: .66rem; }
.investment-pass > div + div { border-top: 1px solid rgba(255,255,255,.08); }
.investment-pass strong { color: #fff; font-size: .78rem; font-weight: 650; text-align: right; }
.investment-pass div:nth-of-type(2) strong { color: var(--detail-lime); }
.investment-pass small { display: block; margin-top: 14px; color: rgba(255,255,255,.38); font-size: .55rem; line-height: 1.45; }
.detail-section { padding-block: clamp(82px, 8.5vw, 124px); }
.project-intro {
  position: relative;
  background: radial-gradient(circle at 78% 28%, rgba(0,182,122,.08), transparent 32%), var(--detail-night);
  color: #fff;
  overflow: hidden;
}
.project-intro::after { position: absolute; right: -90px; bottom: -180px; width: 520px; height: 520px; border: 1px solid rgba(194,255,8,.08); border-radius: 50%; content: ""; }
.project-intro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.project-intro h2,
.detail-section-head h2,
.detail-calculator-copy h2,
.ownership-detail-heading h2,
.detail-contact-copy h2 { margin: 0; font-size: var(--section-title-size); font-weight: 485; letter-spacing: -.045em; line-height: 1; }
.project-intro h2 { color: #fff; }
.project-intro h2 em { color: var(--detail-lime); }
.project-intro .detail-kicker-dark { color: var(--detail-lime); }
.project-intro-copy { padding-top: 38px; }
.project-intro-copy p { margin: 0 0 22px; color: rgba(255,255,255,.56); font-size: .88rem; line-height: 1.76; }
.project-intro-copy .project-intro-lead { color: #fff; font-size: 1.12rem; line-height: 1.62; }
.detail-inline-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .76rem; font-weight: 700; transition: color 180ms ease, border-color 180ms ease; }
.detail-inline-link:hover { border-color: var(--detail-lime); color: var(--detail-lime); }
.project-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(58px, 7vw, 92px);
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(12px);
}
.project-facts > div { min-height: 108px; padding: 25px 24px 22px 0; }
.project-facts > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.project-facts span,
.project-facts strong { display: block; }
.project-facts span { margin-bottom: 12px; color: rgba(255,255,255,.43); font-size: .61rem; }
.project-facts strong { color: #fff; font-size: 1.1rem; font-weight: 600; letter-spacing: -.025em; }

.detail-gallery { background: var(--detail-mist); }
.detail-section-head { display: grid; grid-template-columns: 1fr 360px; gap: 54px; align-items: end; margin-bottom: 42px; }
.detail-section-head h2 { color: var(--navy-deep); }
.detail-section-head h2 em { color: var(--green-dark); }
.detail-section-head > p { margin: 0 0 4px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.gallery-mosaic { display: grid; grid-template-columns: 1.45fr .8fr .8fr; grid-template-rows: 250px 250px; gap: 12px; }
.gallery-tile { position: relative; padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: #dce4df; box-shadow: 0 18px 46px rgba(17,44,57,.08); cursor: zoom-in; }
.gallery-tile-main { grid-row: 1 / span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), filter 500ms ease; }
.gallery-tile::after { position: absolute; inset: 0; background: linear-gradient(140deg, transparent 50%, rgba(194,255,8,.18)); content: ""; opacity: 0; transition: opacity 300ms ease; }
.gallery-tile:hover img { filter: saturate(1.04); transform: scale(1.04); }
.gallery-tile:hover::after { opacity: 1; }
.gallery-tile-more::after { background: rgba(7,28,45,.48); opacity: 1; }
.gallery-tile-more span { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 700; }

.project-reasons { background: radial-gradient(circle at 15% 75%, rgba(0,182,122,.12), transparent 28%), var(--detail-night); color: #fff; }
.project-reasons .detail-section-head h2 { color: #fff; }
.project-reasons .detail-section-head h2 em,
.project-reasons .detail-kicker-dark { color: var(--detail-lime); }
.project-reasons .detail-section-head > p { color: rgba(255,255,255,.52); }
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border: 0; }
.reason-grid article {
  position: relative;
  min-height: 250px;
  padding: 25px 23px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
  transition: border-color 260ms ease, background 260ms ease, transform 260ms var(--ease);
}
.reason-grid article + article { padding-left: 23px; border-left: 1px solid rgba(255,255,255,.1); }
.reason-grid article::after { position: absolute; right: -25px; bottom: -36px; width: 105px; height: 105px; border: 1px solid rgba(194,255,8,.12); border-radius: 50%; content: ""; }
.reason-grid article:hover { border-color: rgba(194,255,8,.28); background: rgba(255,255,255,.065); transform: translateY(-3px); }
.reason-grid article > span { color: var(--detail-lime); font-size: .62rem; font-weight: 700; }
.reason-grid h3 { margin: 58px 0 12px; color: #fff; font-size: 1.12rem; font-weight: 620; letter-spacing: -.025em; }
.reason-grid p { margin: 0; color: rgba(255,255,255,.51); font-size: .74rem; line-height: 1.65; }
.amenities-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.amenities-row span { padding: 10px 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; background: rgba(255,255,255,.045); color: rgba(255,255,255,.68); font-size: .63rem; }

.detail-calculator-section {
  position: relative;
  background: linear-gradient(90deg, rgba(7,28,45,.96), rgba(7,28,45,.78)), url("../../assets/projects/apartmany-star-lipno/10.jpg") center / cover;
  color: #fff;
}
.detail-calculator-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(60px, 9vw, 120px); align-items: center; }
.detail-calculator-copy h2 { color: #fff; }
.detail-calculator-copy h2 em { color: var(--detail-lime); }
.detail-calculator-copy > p:not(.detail-kicker) { max-width: 420px; margin: 26px 0 32px; color: rgba(255,255,255,.56); font-size: .84rem; line-height: 1.7; }
.detail-model-note { display: grid; gap: 5px; max-width: 410px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); }
.detail-model-note strong { color: #fff; font-size: .71rem; }
.detail-model-note span { color: rgba(255,255,255,.4); font-size: .61rem; }
.detail-calculator {
  padding: clamp(28px, 3.8vw, 42px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 26px;
  background: rgba(246,249,247,.93);
  color: var(--navy);
  box-shadow: 0 34px 90px rgba(3,16,28,.28), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(18px) saturate(105%);
}
.detail-calculator > label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; color: var(--navy); font-size: .72rem; font-weight: 700; }
.detail-calculator > label:not(:first-child) { margin-top: 22px; }
.detail-calculator output { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.detail-result { margin-top: 28px; padding: 22px 24px; border-radius: 19px; background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.detail-result > span { color: rgba(255,255,255,.56); font-size: .65rem; }
.detail-result > strong { display: block; margin: 6px 0 18px; color: var(--detail-lime); font-size: clamp(2.55rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.detail-result > div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.13); }
.detail-result p { display: grid; gap: 5px; margin: 0; padding-top: 15px; }
.detail-result p + p { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.13); }
.detail-result small { color: rgba(255,255,255,.44); font-size: .57rem; }
.detail-result b { color: #fff; font-size: .78rem; font-weight: 620; }
.detail-calculator-cta { width: 100%; justify-content: space-between; margin-top: 14px; }

.ownership-detail { background: var(--detail-mist); }
.ownership-detail-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(60px, 9vw, 130px); }
.ownership-detail-heading h2 { color: var(--navy-deep); }
.ownership-detail-heading h2 em { color: var(--green-dark); }
.ownership-detail ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ownership-detail li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left 220ms var(--ease); }
.ownership-detail li:hover { padding-left: 8px; }
.ownership-detail li > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #cbdad2; border-radius: 50%; color: var(--green-dark); font-size: .63rem; font-weight: 700; }
.ownership-detail li:hover > span { border-color: var(--detail-lime); background: var(--detail-lime); color: var(--navy-deep); }
.ownership-detail li strong { display: block; margin: 2px 0 6px; color: var(--navy); font-size: .9rem; font-weight: 620; }
.ownership-detail li p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }

.detail-contact {
  padding-block: clamp(82px, 8.5vw, 124px);
  background: radial-gradient(circle at 12% 22%, rgba(0,182,122,.13), transparent 29%), #17304d;
  color: #fff;
}
.detail-contact-layout { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(60px, 9vw, 120px); align-items: center; }
.detail-contact-copy h2 { color: #fff; }
.detail-contact-copy h2 em { color: var(--detail-lime); }
.detail-contact-copy > p:not(.detail-kicker) { max-width: 430px; margin: 26px 0 32px; color: rgba(255,255,255,.58); font-size: .82rem; line-height: 1.7; }
.selected-property { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; max-width: 390px; padding: 9px; border: 1px solid rgba(255,255,255,.11); border-radius: 15px; background: rgba(255,255,255,.05); }
.selected-property img { width: 84px; height: 64px; border-radius: 9px; object-fit: cover; }
.selected-property span,
.selected-property strong,
.selected-property small { display: block; }
.selected-property span { color: var(--detail-lime); font-size: .56rem; }
.selected-property strong { margin: 4px 0 2px; color: #fff; font-size: .76rem; }
.selected-property small { color: rgba(255,255,255,.46); font-size: .57rem; }
.detail-form { display: grid; gap: 17px; padding: clamp(28px, 3.8vw, 40px); border: 1px solid rgba(255,255,255,.1); border-radius: 25px; background: rgba(255,255,255,.96); color: var(--navy); box-shadow: 0 30px 80px rgba(5,19,33,.25); }
.detail-form > div:first-child { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.detail-form > div:first-child span { color: var(--green-dark); font-size: .62rem; font-weight: 700; }
.detail-form > div:first-child strong { font-size: 1.02rem; font-weight: 650; }
.detail-form label:not(.consent) { display: grid; gap: 8px; color: var(--navy); font-size: .68rem; font-weight: 700; }
.detail-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-form input:not([type="checkbox"]),
.detail-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; color: var(--navy); outline: 0; }
.detail-form input:not([type="checkbox"]):focus,
.detail-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(0,182,122,.09); }
.detail-form textarea { resize: vertical; }
.detail-form .consent { color: var(--muted); font-size: .61rem; line-height: 1.5; }
.detail-form .consent a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.detail-form .button { width: 100%; justify-content: space-between; }
.detail-form-status { min-height: 1em; margin: -8px 0 0; color: var(--green-dark); font-size: .62rem; }
.detail-footer { padding: 46px 0 20px; }

.gallery-lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(820px, calc(100dvh - 32px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #071827;
  color: #fff;
  box-shadow: 0 40px 120px rgba(0,0,0,.4);
  overflow: hidden;
}
.gallery-lightbox::backdrop { background: rgba(3,13,22,.84); backdrop-filter: blur(10px); }
.gallery-lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: lightbox-in 320ms var(--ease) both; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.985); } }
.gallery-lightbox figure { display: flex; min-width: 0; height: 100%; margin: 0; flex-direction: column; justify-content: center; }
.gallery-lightbox figure img { width: 100%; height: calc(100% - 72px); object-fit: contain; }
.gallery-lightbox figcaption { display: flex; justify-content: space-between; align-items: center; min-height: 72px; color: rgba(255,255,255,.53); font-size: .64rem; }
.gallery-lightbox figcaption strong { color: #fff; font-size: .72rem; font-weight: 600; }
.gallery-close,
.gallery-nav { padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.gallery-close { position: absolute; z-index: 2; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.gallery-close::before,
.gallery-close::after { position: absolute; top: 50%; left: 50%; width: 16px; height: 1.5px; background: currentColor; content: ""; transform: translate(-50%,-50%) rotate(45deg); }
.gallery-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.gallery-nav { position: relative; width: 64px; height: 64px; opacity: .68; transition: opacity 180ms ease; }
.gallery-nav:hover { opacity: 1; }
.gallery-nav::before { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; content: ""; }
.gallery-prev::before { transform: translate(-35%,-50%) rotate(-135deg); }
.gallery-next::before { transform: translate(-65%,-50%) rotate(45deg); }

@media (max-width: 980px) {
  .detail-hero-heading,
  .project-intro-grid,
  .detail-calculator-layout,
  .ownership-detail-grid,
  .detail-contact-layout { grid-template-columns: 1fr; }
  .detail-hero { min-height: auto; }
  .detail-hero-heading { min-height: 830px; align-content: center; padding-top: 112px; }
  .investment-pass { width: min(500px, 100%); }
  .detail-section-head { grid-template-columns: 1fr; }
  .detail-section-head > p { max-width: 520px; }
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .detail-calculator-copy,
  .ownership-detail-heading { max-width: 600px; }
}

@media (max-width: 700px) {
  .detail-hero-heading { gap: 34px; min-height: 850px; padding-block: 108px 70px; }
  .detail-hero-copy h1 { font-size: clamp(3.7rem, 17vw, 5.2rem); }
  .detail-hero-copy > p:not(.detail-kicker) { font-size: .85rem; }
  .detail-hero-actions { align-items: stretch; flex-direction: column; }
  .detail-hero-media > img { object-position: 56% center; }
  .detail-hero::after { display: none; }
  .detail-section { padding-block: 68px; }
  .project-intro-copy { padding-top: 0; }
  .project-facts { grid-template-columns: 1fr 1fr; padding: 0 18px; }
  .project-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .project-facts > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 290px 160px 160px; }
  .gallery-tile-main { grid-column: 1 / -1; grid-row: auto; }
  .reason-grid { grid-template-columns: 1fr; }
  .reason-grid article + article { padding-left: 23px; }
  .reason-grid h3 { margin-top: 34px; }
  .detail-form-row { grid-template-columns: 1fr; }
  .gallery-lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .gallery-nav { width: 44px; }
  .gallery-lightbox figcaption { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (max-width: 520px) {
  .detail-breadcrumbs { overflow: hidden; white-space: nowrap; }
  .investment-pass { padding-inline: 20px; }
  .project-facts > div { min-height: 92px; padding: 19px 12px 17px 0; }
  .project-facts > div + div { padding-left: 12px; }
  .project-facts strong { font-size: .94rem; }
  .gallery-mosaic { grid-template-rows: 225px 125px 125px; gap: 8px; }
  .detail-calculator { padding: 23px 17px; }
  .detail-result { padding: 19px 17px; }
  .detail-result > strong { font-size: 2.6rem; }
  .detail-contact-layout { gap: 40px; }
  .detail-form { padding: 23px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-hero-media > img { animation: none; transform: none; }
}

/* Listing-detail composition: photography first, content + sticky information rail. */
.detail-hero {
  min-height: min(720px, calc(100svh - 72px));
}
.detail-hero::before {
  background:
    linear-gradient(90deg, rgba(4, 20, 34, .94) 0%, rgba(4, 20, 34, .75) 34%, rgba(4, 20, 34, .18) 68%, rgba(4, 20, 34, .08) 100%),
    linear-gradient(0deg, rgba(4, 20, 34, .62) 0%, transparent 52%);
}
.detail-hero-heading {
  grid-template-columns: 1fr;
  align-items: end;
  min-height: inherit;
  padding-block: 112px 88px;
}
.detail-hero-copy { align-self: end; }
.detail-hero-copy h1 {
  max-width: 640px;
  font-size: clamp(3.3rem, 4.8vw, 4.85rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.01;
}
.detail-hero-copy > p:not(.detail-kicker) {
  max-width: 520px;
  margin: 25px 0 0;
  font-size: .94rem;
  line-height: 1.62;
}
.detail-hero-media > img { object-position: center 47%; }

.project-overview {
  padding-block: clamp(72px, 7vw, 96px);
  background: var(--detail-mist);
}
.project-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  align-items: start;
}
.project-overview-main { min-width: 0; }
.overview-copy {
  margin-bottom: 22px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(36,59,90,.08);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(22,42,67,.07);
}
.overview-copy .detail-kicker { margin-bottom: 18px; }
.detail-split-heading,
.project-reasons .detail-section-head h2,
.detail-calculator-copy h2,
.ownership-detail-heading h2,
.detail-contact-copy h2 {
  max-width: 820px;
  margin: 0;
  font-size: var(--section-title-size);
  font-weight: 500;
  letter-spacing: -.034em;
  line-height: 1.035;
}
.detail-split-heading { color: var(--navy-deep); }
.detail-split-heading > span {
  display: block;
  margin-bottom: .1em;
  color: var(--green-dark);
}
.overview-copy > p:not(.detail-kicker) {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.62;
}
.overview-copy .overview-lead {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
}

.gallery-stream { display: grid; gap: 12px; }
.gallery-stream button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #dce5e0;
  box-shadow: 0 18px 52px rgba(22,42,67,.09);
  cursor: zoom-in;
}
.gallery-stream button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 52%, rgba(194,255,8,.2));
  content: "";
  opacity: 0;
  transition: opacity 280ms ease;
}
.gallery-stream img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 720ms var(--ease), filter 400ms ease;
}
.gallery-stream button:hover img { filter: saturate(1.04); transform: scale(1.025); }
.gallery-stream button:hover::after { opacity: 1; }
.gallery-stream-main { height: 480px; }
.gallery-stream-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-stream-pair button { height: 280px; }
.gallery-stream-wide { height: 340px; }
.gallery-stream-wide > span,
.gallery-stream-more > span {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--navy);
  font-size: .67rem;
  font-weight: 650;
  backdrop-filter: blur(10px);
}
.gallery-stream-more { height: 300px; }
.gallery-stream-more::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(7,28,45,.3);
  content: "";
  transition: background 280ms ease;
}
.gallery-stream-more:hover::before { background: rgba(7,28,45,.42); }
.gallery-stream-more > span { top: 50%; right: auto; bottom: auto; left: 50%; padding: 12px 18px; color: var(--navy-deep); transform: translate(-50%,-50%); white-space: nowrap; }

.project-sidebar {
  position: sticky;
  top: 88px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(17, 52, 75, .9), rgba(7, 28, 45, .97)),
    var(--detail-night);
  color: #fff;
  box-shadow: 0 26px 72px rgba(9,28,44,.2), inset 0 1px 0 rgba(255,255,255,.09);
  overflow: hidden;
}
.project-sidebar::after {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(194,255,8,.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.sidebar-status {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar-status span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(194,255,8,.12);
  color: var(--detail-lime);
  font-size: .62rem;
  font-weight: 700;
}
.sidebar-status strong { color: rgba(255,255,255,.64); font-size: .66rem; font-weight: 600; }
.sidebar-primary { padding: 22px 0 18px; }
.sidebar-primary span,
.sidebar-primary strong { display: block; }
.sidebar-primary span { margin-bottom: 8px; color: rgba(255,255,255,.46); font-size: .64rem; }
.sidebar-primary strong {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 540;
  letter-spacing: -.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.sidebar-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-grid > div { min-height: 90px; padding: 15px 11px 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-grid > div:nth-child(even) { padding-right: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12); }
.sidebar-grid span,
.sidebar-grid strong { display: block; }
.sidebar-grid span { margin-bottom: 7px; color: rgba(255,255,255,.42); font-size: .57rem; line-height: 1.35; }
.sidebar-grid strong { color: #fff; font-size: .73rem; font-weight: 620; line-height: 1.35; }
.sidebar-grid > div:first-child strong { color: var(--detail-lime); }
.sidebar-cta { width: 100%; justify-content: space-between; margin: 18px 0; }
.sidebar-facts { border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-facts p { display: flex; justify-content: space-between; gap: 14px; margin: 0; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-facts span { color: rgba(255,255,255,.43); font-size: .59rem; }
.sidebar-facts strong { color: #fff; font-size: .64rem; font-weight: 620; }
.project-sidebar > small { display: block; margin-top: 14px; color: rgba(255,255,255,.36); font-size: .54rem; line-height: 1.45; }

@media (max-width: 980px) {
  .project-overview-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: relative; top: auto; width: min(560px, 100%); }
}

@media (max-width: 700px) {
  .detail-hero { min-height: 720px; }
  .detail-hero-heading { min-height: inherit; padding-block: 105px 70px; }
  .detail-hero-copy h1 { font-size: clamp(2.8rem, 12.2vw, 3.5rem); }
  .detail-hero-copy > p:not(.detail-kicker) { margin-top: 17px; font-size: .9rem; line-height: 1.48; }
  .project-overview { padding-block: 56px; }
  .overview-copy { padding: 26px 22px; }
  .detail-split-heading,
  .project-reasons .detail-section-head h2,
  .detail-calculator-copy h2,
  .ownership-detail-heading h2,
  .detail-contact-copy h2 { font-size: clamp(2.2rem, 10.5vw, 2.85rem); }
  .gallery-stream-main { height: 320px; }
  .gallery-stream-pair { grid-template-columns: 1fr; }
  .gallery-stream-pair button { height: 250px; }
  .gallery-stream-wide { height: 280px; }
  .gallery-stream-more { height: 240px; }
}

/* Perspective homepage alignment — final detail-page system. */
.detail-section-title {
  max-width: 820px;
  margin: 0;
  color: var(--navy-deep);
  font-size: var(--section-title-size) !important;
  font-weight: 500 !important;
  letter-spacing: -.034em !important;
  line-height: 1.035 !important;
}

.detail-section-title > span {
  display: block;
  margin-bottom: .1em;
  color: var(--green-dark);
}

.overview-copy {
  padding: clamp(38px, 4.6vw, 56px);
}

.overview-copy > p:not(.detail-kicker) {
  max-width: 760px;
  font-size: .98rem;
  line-height: 1.67;
}

.overview-copy .overview-lead {
  font-size: 1.12rem;
  line-height: 1.58;
}

.project-overview-layout {
  grid-template-columns: minmax(0, 1fr) 382px;
  gap: 28px;
}

.project-sidebar {
  top: 94px;
  padding: 30px;
  border-radius: 28px;
}

.project-sidebar::after { display: none; }

.sidebar-status {
  justify-content: flex-start;
  padding-bottom: 22px;
}
.sidebar-status span {
  display: inline-flex;
  gap: 10px;
  padding: 0;
  align-items: center;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
}
.sidebar-status span::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--detail-lime);
  box-shadow: 0 0 0 5px rgba(194, 255, 8, .1);
  content: "";
}
.sidebar-status strong { font-size: .82rem; }

.sidebar-primary { padding: 28px 0 24px; }
.sidebar-primary span { margin-bottom: 10px; font-size: .82rem; }
.sidebar-primary strong { font-size: clamp(2.15rem, 3vw, 2.8rem); }

.sidebar-grid > div { min-height: 116px; padding: 22px 16px 20px 0; }
.sidebar-grid > div:nth-child(even) { padding-left: 18px; }
.sidebar-grid span { margin-bottom: 10px; font-size: .75rem; line-height: 1.45; }
.sidebar-grid strong { font-size: 1rem; line-height: 1.35; }
.sidebar-cta { min-height: 58px; margin: 24px 0; font-size: .9rem; }
.sidebar-facts p { padding: 15px 0; }
.sidebar-facts span { font-size: .75rem; }
.sidebar-facts strong { font-size: .82rem; }

.project-sidebar > small { margin-top: 20px; font-size: .67rem; line-height: 1.55; }

.detail-benefits {
  background: #f2f6f4;
  color: var(--navy);
}

.detail-benefit-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 34px;
}

.detail-benefit-heading > p {
  max-width: 430px;
  margin: 0 0 3px;
  color: #6e7d7c;
  font-size: .94rem;
  line-height: 1.65;
}

.detail-benefit-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.detail-benefit-panel .benefit-item {
  min-height: 286px;
  padding: 34px;
}

.detail-benefit-panel .benefit-copy small { font-size: .78rem; }
.detail-benefit-panel .benefit-copy strong { font-size: clamp(1.42rem, 1.7vw, 1.72rem); }
.detail-benefit-panel .benefit-copy em { margin-top: 12px; font-size: .78rem; line-height: 1.52; }

.detail-calculator-section .detail-section-title,
.detail-contact .detail-section-title { color: #fff; }
.detail-calculator-section .detail-section-title > span,
.detail-contact .detail-section-title > span { color: var(--detail-lime); }

.detail-calculator-copy > p:not(.detail-kicker) {
  max-width: 470px;
  margin: 28px 0 34px;
  font-size: .94rem;
  line-height: 1.68;
}
.detail-model-note strong { font-size: .82rem; }
.detail-model-note span { font-size: .74rem; }

.ownership-detail { background: #e8f0ec; }
.ownership-detail-grid { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); align-items: start; }
.ownership-detail-heading { position: sticky; top: 104px; }
.ownership-detail li {
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 25px 0;
}
.ownership-detail li > span { width: 46px; height: 46px; font-size: .72rem; }
.ownership-detail li strong { margin: 2px 0 8px; font-size: 1.02rem; }
.ownership-detail li p { font-size: .82rem; line-height: 1.6; }

.detail-contact {
  width: 100%;
  margin: 0;
  padding-block: clamp(86px, 8vw, 112px);
  border-radius: 0;
  background: var(--navy-deep);
}

.detail-contact-layout {
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(44px, 6vw, 72px);
}

.detail-contact-copy > p:not(.detail-kicker) {
  max-width: 550px;
  margin: 28px 0 32px;
  font-size: .94rem;
  line-height: 1.62;
}

.selected-property {
  grid-template-columns: 94px 1fr;
  gap: 16px;
  max-width: 460px;
  padding: 10px;
  border-radius: 17px;
}
.selected-property img { width: 94px; height: 70px; }
.selected-property span { font-size: .68rem; }
.selected-property strong { margin: 5px 0 3px; font-size: .9rem; }
.selected-property small { font-size: .68rem; }

.detail-form {
  gap: 18px;
  padding: clamp(28px, 3vw, 34px);
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 22px 60px rgba(0,0,0,.16);
}
.detail-form > div:first-child { gap: 24px; margin-bottom: 2px; padding-bottom: 16px; }
.detail-form > div:first-child span {
  color: var(--navy);
  font-size: 1.42rem;
  font-weight: 590;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.detail-form > div:first-child strong {
  max-width: 340px;
  color: var(--green-dark);
  font-size: 1.42rem;
  font-weight: 590;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-align: right;
}
.detail-form label:not(.consent) { gap: 8px; font-size: .76rem; }
.detail-form input:not([type="checkbox"]),
.detail-form textarea { font-size: .9rem; }
.detail-form .consent { font-size: .7rem; }

.gallery-lightbox {
  height: min(880px, calc(100dvh - 32px));
  border-radius: 26px;
}
.gallery-lightbox[open] {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) 112px;
  align-items: stretch;
}
.gallery-stage {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  min-height: 0;
  align-items: center;
}
.gallery-stage figure { min-height: 0; }
.gallery-stage figure img { height: calc(100% - 64px); }
.gallery-lightbox figcaption { min-height: 64px; font-size: .74rem; }
.gallery-lightbox figcaption strong { font-size: .82rem; }
.gallery-thumbnails {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(194,255,8,.5) rgba(255,255,255,.08);
}
.gallery-thumbnails button {
  flex: 0 0 112px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #10283a;
  opacity: .48;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}
.gallery-thumbnails button:hover { opacity: .78; }
.gallery-thumbnails button.is-active {
  border-color: var(--detail-lime);
  opacity: 1;
  transform: translateY(-2px);
}
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .project-overview-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .detail-benefit-panel .benefit-item { padding: 28px; }
}

@media (max-width: 980px) {
  .project-overview-layout,
  .detail-benefit-heading,
  .ownership-detail-grid,
  .detail-contact-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: relative; top: auto; width: 100%; }
  .detail-benefit-panel { grid-template-columns: 1fr 1fr; }
  .ownership-detail-heading { position: static; }
}

@media (max-width: 700px) {
  .detail-section-title { font-size: clamp(2.2rem, 10.5vw, 2.85rem) !important; }
  .overview-copy { padding: 30px 22px; }
  .overview-copy .overview-lead { font-size: 1rem; }
  .project-sidebar { padding: 24px 20px; }
  .sidebar-primary strong { font-size: 2.1rem; }
  .sidebar-grid > div { min-height: 104px; }
  .detail-benefit-panel { grid-template-columns: 1fr; }
  .detail-benefit-panel .benefit-item { min-height: 248px; }
  .gallery-lightbox { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .gallery-lightbox[open] { grid-template-rows: minmax(0, 1fr) 94px; }
  .gallery-stage { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .gallery-stage figure img { height: calc(100% - 78px); }
  .gallery-lightbox figcaption { min-height: 78px; padding-inline: 4px; }
  .gallery-thumbnails { padding: 10px 12px 12px; }
  .gallery-thumbnails button { flex-basis: 88px; height: 60px; }
}

/* Project info tags live with the project description, not in the sticky rail. */
.overview-amenities {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(36,59,90,.09);
}

.overview-amenities span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: #e5f1eb;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 620;
}

/* The same 48 / 54 / 56px CTA rhythm as the perspective homepage. */
.detail-page .button { min-height: 54px; }
.detail-page .desktop-cta {
  min-height: 48px;
  height: 48px;
}
.detail-page .mobile-nav .button { min-height: 48px; }
.detail-hero-actions .button { min-height: 56px; }
.detail-page .sidebar-cta,
.detail-page .detail-calculator-cta,
.detail-page .detail-form .button { min-height: 54px; }

/* Project hero follows the perspective homepage composition. */
.detail-hero::after { display: none; }

.detail-hero-heading {
  align-items: center;
  min-height: inherit;
  padding-block: 86px;
}

.detail-hero-copy {
  align-self: center;
  transform: translateY(-1px);
}

.detail-hero-eyebrow {
  margin: 0 0 46px;
  color: rgba(255,255,255,.84);
  font-size: .82rem;
  font-weight: 660;
}

.detail-hero-eyebrow > span { color: var(--detail-lime); }

.detail-hero-copy h1 {
  max-width: 700px;
  font-size: clamp(3.3rem, 4.8vw, 4.85rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.01;
}

.detail-hero-copy > p:not(.detail-kicker) {
  margin: 25px 0 28px;
}

.detail-hero-actions {
  gap: 12px;
  margin-top: 0;
}

.detail-gallery-button {
  padding-inline: 24px;
  border-color: rgba(255,255,255,.42);
  background: rgba(10,28,45,.56);
  color: #fff;
  box-shadow: 0 14px 34px rgba(5,20,32,.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.detail-gallery-button:hover {
  border-color: rgba(194,255,8,.55);
  background: rgba(194,255,8,.1);
  color: #fff;
}

.gallery-stream-wide > span { display: none; }

@media (max-width: 700px) {
  .detail-hero-heading { padding-block: 88px 64px; }
  .detail-hero-copy { transform: none; }
  .detail-hero-eyebrow { margin-bottom: 36px; font-size: .72rem; }
  .detail-gallery-button { width: 100%; }
}

/* The calculator keeps the homepage typography over the original photographic project backdrop. */
.detail-calculator-section {
  background:
    linear-gradient(90deg, rgba(7,28,45,.96), rgba(7,28,45,.78)),
    url("../../assets/projects/apartmany-star-lipno/10.jpg") center / cover;
  color: #fff;
}

.detail-calculator-section .detail-section-title { color: #fff; }
.detail-calculator-section .detail-section-title > span { color: var(--detail-lime); }

.detail-calculator-copy > p:not(.detail-kicker) {
  max-width: 510px;
  color: rgba(255,255,255,.62);
  font-size: .94rem;
  line-height: 1.68;
}

.detail-model-note { border-top-color: rgba(255,255,255,.16); }
.detail-model-note strong { color: #fff; font-size: .82rem; }
.detail-model-note span { color: rgba(255,255,255,.52); font-size: .72rem; line-height: 1.5; }

.detail-calculator {
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid rgba(36,59,90,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 22px 60px rgba(36,59,90,.1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.detail-calculator > label {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: .83rem;
  font-weight: 700;
}

.detail-calculator > label:not(:first-child) { margin-top: 24px; }
.detail-calculator output { color: var(--green-dark); }

.detail-result {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--navy);
}

.detail-result > span { font-size: .76rem; font-weight: 650; }
.detail-result > strong {
  margin-block: 5px 18px;
  font-size: clamp(2.2rem, 3.8vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -.035em;
}
.detail-result small { font-size: .68rem; }
.detail-result b { font-size: .82rem; }
.detail-calculator-cta { margin-top: 22px; }

.detail-project-modal .calc-modal-kicker { letter-spacing: 0; }
.detail-project-modal .calc-modal-summary strong { line-height: 1.35; }

/* The detail page follows the same full-width band rhythm as the homepage. */
.project-overview,
.detail-section,
.detail-contact {
  padding-block: var(--section-space-y);
}

/* Automatically played ownership process. */
.ownership-detail-grid {
  position: relative;
  display: block;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ownership-detail-heading {
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 370px);
  gap: clamp(38px, 7vw, 100px);
  max-width: none;
  margin-bottom: clamp(34px, 4vw, 48px);
  padding-bottom: 0;
  align-items: end;
  border-bottom: 0;
}

.ownership-detail-heading h2 {
  max-width: 720px;
}

.ownership-detail-heading > p {
  max-width: 360px;
  margin: 0 0 4px;
  color: #5d706a;
  font-size: .84rem;
  line-height: 1.68;
}

.ownership-timeline {
  --ownership-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
}

.ownership-detail .ownership-timeline {
  border: 0;
}

.ownership-timeline::before,
.ownership-timeline::after {
  position: absolute;
  z-index: 0;
  top: 28px;
  right: 12.5%;
  bottom: auto;
  left: 12.5%;
  width: auto;
  height: 2px;
  border-radius: 999px;
  content: "";
}

.ownership-timeline::before {
  background: rgba(22, 42, 67, .2);
}

.ownership-timeline::after {
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 182, 122, .2);
  transform: scaleX(var(--ownership-progress));
  transform-origin: left center;
  transition: transform 4.2s linear;
}

.ownership-detail .ownership-timeline > li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  min-width: 0;
  min-height: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  transition: none;
}

.ownership-detail .ownership-timeline > li + li {
  border-top: 0;
  border-left: 0;
}

.ownership-detail .ownership-timeline > li:hover {
  padding: 0 10px;
}

.ownership-detail .ownership-timeline > li > span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(0, 182, 122, .2);
  border-radius: 50%;
  background: #eef8f3;
  color: var(--green-dark);
  font-size: .74rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--surface, #edf4f1), 0 8px 20px rgba(8, 123, 89, .08);
  transition: border-color 420ms ease, background 420ms ease, color 420ms ease, box-shadow 420ms ease;
}

.ownership-detail .ownership-timeline > li.is-active > span {
  border-color: transparent;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 8px var(--surface, #edf4f1), 0 8px 22px rgba(0, 182, 122, .2);
}

.ownership-detail .ownership-timeline > li > span svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ownership-detail .ownership-timeline > li > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
  align-items: start;
  justify-items: start;
  width: min(100%, 270px);
  height: 174px;
  min-height: 174px;
  margin-inline: auto;
  padding: 22px 22px 24px;
  border: 1px solid rgba(22, 42, 67, .06);
  border-radius: 18px;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 12px 30px rgba(22, 42, 67, .04);
  text-align: left;
  transition: border-color 420ms ease, background-color 420ms ease, box-shadow 420ms ease;
}

.ownership-detail .ownership-timeline > li.is-active > div {
  border-color: transparent;
  background: var(--green-dark);
  box-shadow: 0 18px 40px rgba(8, 123, 89, .18);
}

.ownership-detail .ownership-timeline strong {
  margin: 0;
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 650;
  line-height: 1.25;
  transition: color 420ms ease;
}

.ownership-detail .ownership-timeline p {
  margin: 0;
  color: #516660;
  font-size: .79rem;
  line-height: 1.62;
  transition: color 420ms ease;
}

.ownership-detail .ownership-timeline > li.is-active strong {
  color: #fff;
}

.ownership-detail .ownership-timeline > li.is-active p {
  color: rgba(255, 255, 255, .76);
}

@media (max-width: 980px) {
  .ownership-detail-grid { padding: 0; }

  .ownership-detail-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 38px;
  }

  .ownership-detail-heading > p { max-width: 560px; }

  .ownership-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ownership-timeline::before,
  .ownership-timeline::after {
    top: 41px;
    right: auto;
    bottom: 41px;
    left: 45px;
    width: 2px;
    height: auto;
  }

  .ownership-timeline::after {
    background: var(--green);
    transform: scaleY(var(--ownership-progress));
    transform-origin: center top;
  }

  .ownership-detail .ownership-timeline > li {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    min-height: 0;
    padding: 14px 18px;
  }

  .ownership-detail .ownership-timeline > li + li {
    border-top: 0;
    border-left: 0;
  }

  .ownership-detail .ownership-timeline > li > span {
    margin: 0;
  }

  .ownership-detail .ownership-timeline > li > div {
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: start;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-inline: 0;
    text-align: left;
  }

  .ownership-detail .ownership-timeline > li:hover {
    padding: 14px 18px;
  }
}

@media (max-width: 600px) {
  .ownership-detail-grid { padding: 0; border-radius: 0; }
  .ownership-timeline { border-radius: 0; }
  .ownership-detail .ownership-timeline > li { gap: 16px; padding: 14px 10px; }
  .ownership-detail .ownership-timeline > li:hover { padding: 14px 10px; }
  .ownership-detail .ownership-timeline > li > div { padding: 14px 16px 16px; }
  .ownership-timeline::before,
  .ownership-timeline::after { top: 41px; bottom: 41px; left: 37px; }
}
