/* Hallmark · shape: Photographic · genre: editorial · theme: custom from brand (gutierrezgroup.com.co/the-gray-zone-invest, by request) · job: buy · draw: 8bdd61
 * hero: Counter · nav: edge-aligned on night, the art deco logo · footer: mast on night, partner logos and the brand line · imagery: the project's own renders 12, layouts 14 as product · signature: every layout as render, plan and a 3D model to turn · brand: black, off-white, dusty pink
 * axes: mixed night and light/geometric-sans caps/neutral · posture: committed (night bands and one pink figure band) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a sales page argues little; it leads with the brand line and the tower at dusk, then lets the buyer turn each layout in 3D */
/* Hallmark · answered F4 · selected tab and list states fill with ink, not the accent; the pink fill is the WhatsApp action only */
/* Hallmark · waive 44c · tower render is a 9:16 portrait at 72dvh · widening the tower would crop the building, so the text keeps the left axis */
/* Hallmark · dismissed 42 · the nav is decided: the art deco logo image on a night bar, four section links and the advisor link, as on the brand page */
/* Hallmark · dismissed 58 · 88 words at the seam of the building facts and the next section, two sections sharing one window */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; --bar-h: 72px; }

h1, h2 { font-weight: var(--display-weight); text-transform: uppercase; line-height: 1.02; }
h1 { font-size: clamp(2.75rem, 4.6vw + 0.75rem, 5rem); }
h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: 0; }
.lead { color: var(--color-muted); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.link { display: inline-flex; align-items: center; padding: var(--space-2xs) 0; border: 0; background: none; box-shadow: inset 0 -2px 0 currentColor; font-weight: 500; color: inherit; text-decoration: none; white-space: nowrap; cursor: pointer; transition: box-shadow var(--dur-short) var(--ease-out); }
.link:hover { box-shadow: inset 0 -2px 0 var(--color-accent); }
.link:active { opacity: 0.8; }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-night); color: var(--color-night-ink); border-bottom: 1px solid var(--color-night-rule); }
.nav :focus-visible, .night :focus-visible { outline-color: var(--color-focus-night); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--nav-h); }
.wordmark { display: block; flex-shrink: 0; }
.wordmark img { height: 30px; width: auto; }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__links { display: flex; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav__links a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; padding-block: var(--space-xs); }
.nav__links a:hover { box-shadow: inset 0 -2px 0 var(--color-accent); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav__end { display: flex; align-items: center; gap: var(--space-lg); font-size: var(--text-sm); }
.lang { min-width: 44px; min-height: 44px; border: 1px solid var(--color-night-rule); border-radius: var(--radius-pill); background: transparent; color: inherit; font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.lang:hover { background: var(--color-night-2); }
.lang:active { background: var(--color-night-rule); }
.lang:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
@media (max-width: 60rem) { .nav__links { display: none; } }

/* Hero: Counter */
.night { background: var(--color-night); color: var(--color-night-ink); }
.night .lead, .night figcaption { color: var(--color-night-muted); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3xl); align-items: center; flex: 1; padding-block: var(--space-2xl); }
.hero { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-h)); }
.hero__text { display: grid; gap: var(--space-lg); }
.hero h1 { max-width: 16ch; }
.counter { display: grid; gap: var(--space-lg); margin-top: var(--space-md); padding: var(--space-xl); background: var(--color-night-2); max-width: 40rem; }
.night .seg legend { color: var(--color-night-muted); }
.night .seg label { background: transparent; border-color: var(--color-night-rule); color: var(--color-night-ink); }
.night .seg label:hover { background: var(--color-night-rule); }
.night .seg input:checked + label { background: var(--color-night-ink); color: var(--color-night); border-color: var(--color-night-ink); }
.night .seg input:focus-visible + label { outline-color: var(--color-focus-night); }
.counter__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.hero__photo { margin: 0; justify-self: end; }
figure, .photo { margin: 0; }
.photo > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
.photo--tower { aspect-ratio: 700 / 1130; height: min(66dvh, 640px); }
figcaption, .caption { margin-top: var(--space-sm); font: 500 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); }

/* Segmented choice */
.seg { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); margin-right: -1px; background: var(--color-paper); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.seg label:hover { background: var(--color-paper-3); }
.seg input:checked + label { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; position: relative; z-index: var(--z-raised); }
.seg input:disabled + label { opacity: 0.55; cursor: not-allowed; }

/* Sections */
.section { padding-block: var(--section-gap) 0; }
.section--l { padding-block: var(--section-gap-l) 0; }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); align-content: start; }
.head--split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; gap: var(--gap-columns); }

/* Showcase */
.show__wide { aspect-ratio: 21 / 9; min-height: 560px; }
.show__pair { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-columns); margin-top: var(--space-2xl); align-items: start; }
.show__pair .photo { aspect-ratio: 16 / 10; }
.show__pair figure:last-child .photo { aspect-ratio: 4 / 5; }

/* Layouts: index beside a switcher */
.types { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.types__list { margin: 0; padding: 0; list-style: none; border-top: var(--rule-ink) solid var(--color-rule-ink); max-height: 760px; overflow-y: auto; }
.types__list li { border-bottom: 1px solid var(--color-rule); }
.types__list button { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-sm); width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-xs); border: 0; background: transparent; color: var(--color-ink); text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.types__list button:hover { background: var(--color-paper-2); }
.types__list button:active { background: var(--color-paper-3); }
.types__list button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.types__list button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }
.types__list .num { font-family: var(--font-outlier); font-size: var(--text-sm); padding-top: var(--space-3xs); }
.panel { display: grid; gap: var(--space-lg); position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
.panel__tabs { display: flex; gap: 0; }
.panel__tabs button { min-height: 44px; padding: 0 var(--space-lg); border: 1px solid var(--color-rule); margin-right: -1px; background: transparent; color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.panel__tabs button:hover { background: var(--color-paper-2); }
.panel__tabs button:active { background: var(--color-paper-3); }
.panel__tabs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; position: relative; z-index: var(--z-raised); }
.panel__tabs button[aria-selected="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.stage { position: relative; aspect-ratio: 16 / 10; background: var(--color-paper-2); }
.stage > img { width: 100%; height: 100%; object-fit: contain; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.stage__status { position: absolute; left: var(--space-md); bottom: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.stage__views { position: absolute; right: var(--space-md); bottom: var(--space-md); display: flex; gap: var(--space-xs); }
.stage__views button { min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); background: var(--color-paper); color: var(--color-ink); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.stage__views button:hover { background: var(--color-paper-2); }
.stage__views button:active { background: var(--color-paper-3); }
.stage__views button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.panel__meta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: start; }
.panel__meta p + p { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.panel__meta .link { justify-self: start; }

/* Floors */
.floors__pick { margin-bottom: var(--space-xl); }
.floors__pick .seg label { min-width: 52px; justify-content: center; font-family: var(--font-outlier); font-size: var(--text-sm); }
.floors { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: start; }
.floorplan { aspect-ratio: 1800 / 1450; background: var(--color-paper-2); }
.floorplan img { width: 100%; height: 100%; object-fit: contain; }
.floorplan p { padding: var(--space-xl); color: var(--color-muted); }
.units { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.units caption { text-align: left; padding-bottom: var(--space-md); font: 400 var(--text-section)/1.04 var(--font-display); color: var(--color-ink); }
.units th { text-align: left; font-weight: 500; color: var(--color-muted); padding: var(--space-xs) var(--space-xs) var(--space-sm); border-bottom: var(--rule-ink) solid var(--color-rule-ink); white-space: nowrap; }
.units td { padding: var(--space-sm) var(--space-xs); border-bottom: 1px solid var(--color-rule); }
.units td.num { font-family: var(--font-outlier); text-align: right; }
.units th.num { text-align: right; }
.units td:first-child { font-weight: 500; }
.units tr.is-free td { background: var(--color-paper-2); }
.tag--free { color: var(--color-accent-deep); font-weight: 500; }
.tag--off { color: var(--color-muted); }
.floors__note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* Building: bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 320px 320px auto; gap: var(--gap-columns); }
.bento > * { margin: 0; min-width: 0; }
.bento .photo { height: 100%; }
.bento__lead { grid-column: span 8; grid-row: span 2; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.bento__side { grid-column: span 4; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.bento__facts { grid-column: span 12; grid-row: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border-top: var(--rule-ink) solid var(--color-rule-ink); }
.bento__facts > div { padding: var(--space-lg) var(--space-lg) 0; border-left: 1px solid var(--color-rule); }
.bento__facts > div:first-child { padding-left: 0; border-left: 0; }
.bento__facts dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.bento__facts dd { margin: var(--space-xs) 0 0; font: 400 var(--text-title)/1.25 var(--font-body); }

/* Buying from abroad: rows */
.abroad-wrap { margin-top: var(--section-gap); padding-block: var(--section-gap-s); }
.abroad { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); }
.night .rows { border-top-color: var(--color-accent); }
.night .rows li { border-bottom-color: var(--color-night-rule); }
.night .rows p { color: var(--color-night-muted); }
.night .rows h3 { color: var(--color-accent); }
.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-ink) solid var(--color-rule-ink); }
.rows li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: var(--gap-columns); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.rows p { color: var(--color-ink-2); }

/* Contact band */
.band { padding-block: var(--section-gap-s); background: var(--color-paper); color: var(--color-ink); border-top: 1px solid var(--color-rule); }
.band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.band__text { display: grid; gap: var(--space-lg); }
.band .btn { justify-self: start; }
.ghl { min-width: 0; }
.ghl iframe { display: block; width: 100%; height: 800px; border: 0; overflow: hidden; }
@media (max-width: 40rem) { .ghl iframe { height: 980px; } }

/* Footer: mast */
.foot { padding-block: var(--space-3xl) var(--space-xl); }
.foot__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin: 0; font: var(--display-weight) var(--text-3xl)/1.05 var(--font-display); text-transform: uppercase; overflow-wrap: break-word; min-width: 0; }
.foot__line img { height: clamp(40px, 5vw, 64px); width: auto; }
.foot__partners { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xl) var(--space-2xl); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.foot__partners img { height: 36px; width: auto; opacity: 0.85; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg) var(--space-xl); margin: var(--space-2xl) 0 0; padding: var(--space-lg) 0 0; list-style: none; border-top: 1px solid var(--color-night-rule); }
.foot__links a { text-decoration: none; font-weight: 500; }
.foot__links a:hover { box-shadow: inset 0 -2px 0 var(--color-accent); }
.foot__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.foot__legal { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-night-muted); max-width: 75ch; }

/* Sticky action bar */
.bar { position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); background: var(--color-night); color: var(--color-night-ink); border-top: 1px solid var(--color-night-rule); transform: translateY(100%); transition: transform var(--dur-long) var(--ease-out); }
.bar.is-on { transform: none; }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--bar-h); }
.bar p { font-weight: 500; }
html:not(.js) .bar { display: none; }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* Narrow screens */
@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: var(--space-xl); }
  .hero__photo { justify-self: start; }
  .photo--tower { height: 70svh; }
  .head--split, .types, .floors, .abroad, .band__grid, .panel__meta { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .types__list { max-height: 360px; }
  .show__wide { min-height: 0; aspect-ratio: 4 / 3; }
  .show__pair { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-rows: none; }
  .bento__lead, .bento__side { grid-column: 1 / -1; grid-row: auto; }
  .bento .photo { aspect-ratio: 16 / 10; height: auto; }
  .bento__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .rows li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
}
@media (max-width: 40rem) {
  .nav__end .link { display: none; }
  .bar p { display: none; }
  .bar__in { justify-content: stretch; }
  .bar .btn { flex: 1; }
  .units .hide-s { display: none; }
}
.counter__price { display: grid; gap: var(--space-2xs); color: var(--color-muted); font-size: var(--text-sm); }
.counter__fig { font: 400 var(--text-3xl)/1 var(--font-display); color: var(--color-ink); }

/* Price band: the presale terms as figures */
.offer { background: var(--color-accent); color: var(--color-accent-ink); padding-block: var(--space-xl); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.figs > div { display: flex; flex-direction: column-reverse; gap: var(--space-2xs); padding-inline: var(--space-xl); border-left: 1px solid var(--color-accent-ink); }
.figs > div:first-child { padding-left: 0; border-left: 0; }
.figs dt { font-size: var(--text-sm); font-weight: 500; }
.figs dd { margin: 0; font: var(--display-weight) var(--text-3xl)/1 var(--font-display); }

/* Developer */
.dev { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.dev__text { display: grid; gap: var(--space-lg); }
.dev__logo { height: 56px; width: auto; }
.dev__photo { aspect-ratio: 862 / 1080; }
.dev__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-md) 0 0; border-top: 1px solid var(--color-rule-ink); }
.dev__figs > div { display: flex; flex-direction: column-reverse; gap: var(--space-2xs); padding: var(--space-lg) var(--space-lg) 0; border-left: 1px solid var(--color-rule); }
.dev__figs > div:first-child { padding-left: 0; border-left: 0; }
.dev__figs dt { font-size: var(--text-sm); color: var(--color-muted); }
.dev__figs dd { margin: 0; font: var(--display-weight) var(--text-3xl)/1 var(--font-display); }
.foot.night a { color: var(--color-night-ink); }

@media (max-width: 60rem) {
  .dev { grid-template-columns: minmax(0, 1fr); }
  .figs { grid-template-columns: minmax(0, 1fr); }
  .figs > div { padding: var(--space-md) 0; border-left: 0; border-top: 1px solid var(--color-accent-ink); }
  .figs > div:first-child { border-top: 0; }
  .hero__grid { min-height: 0; }
}

.nav a:focus-visible, .nav button:focus-visible, .night a:focus-visible, .night button:focus-visible { outline-color: var(--color-focus-night); }
