/* gf-tower.css: tower pages (EN /towers/*, ES /es/torres/*).
   Builds on gf-r5.css tokens and components. Website exception to Rev 5:
   navy-led, Newsreader headlines, Hanken Grotesk text. Square corners, no
   shadows, no gradients, photographs and video in true colour, text on white,
   mist or solid navy only. Figures and lists are ruled, never boxed. */

.r5 main { display: block; padding-top: var(--nav-h); background: var(--white); color: var(--ink); font-family: var(--font); }
.r5 main p { margin: 0; }
.r5 main a { text-underline-offset: 4px; }
.r5 main a:focus-visible, .r5 main summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.band--navy a:focus-visible, .tw-hero a:focus-visible, .tw-end a:focus-visible { outline-color: var(--sky); }
.t-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: clamp(26px, 3vw, 40px); }

/* ── Hero: the tower in motion beside a navy panel ───────────────────────── */
.tw-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--navy); min-height: clamp(640px, calc(100svh - var(--nav-h)), 940px); }
.tw-hero--left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.tw-hero--right .tw-hero-media { order: 2; }
.tw-hero-media { position: relative; overflow: hidden; background: var(--navy) center / cover no-repeat; }
.tw-hero-media video, .tw-hero-media picture, .tw-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tw-hero-media--right { background-position: right center; }
.tw-hero-media--right video, .tw-hero-media--right img { object-position: right center; }
.tw-hero-media img { animation: tw-settle 9s cubic-bezier(.2,.7,.2,1) both; }
.tw-hero-panel { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 4vw, 64px) clamp(28px, 4.4vw, 72px) clamp(36px, 4.4vw, 64px); animation: tw-panel .9s cubic-bezier(.2,.7,.2,1) both; }
.tw-hero--right .tw-hero-panel { padding-left: max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter))); }
.tw-hero--left .tw-hero-panel { padding-right: max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter))); }
.tw-where { font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.r5 .tw-hero h1 { color: var(--white); font-size: clamp(54px, 8.2vw, 136px); line-height: 0.94; letter-spacing: -0.025em; margin: clamp(14px, 1.6vw, 24px) 0 0; text-wrap: balance; }
.r5 .tw-hero--long h1 { font-size: clamp(44px, 6vw, 100px); }
.tw-facts { margin-top: clamp(14px, 1.6vw, 22px) !important; font-size: 17px; color: var(--white); }
.tw-hero .lede { color: var(--sky); margin-top: clamp(16px, 1.8vw, 26px); max-width: 30em; }
.tw-heads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 2.4vw, 40px); margin: clamp(22px, 2.6vw, 38px) 0 0; border-top: 1px solid rgba(169,193,234,.5); }
.tw-heads div { padding-top: 16px; }
.tw-heads dt { font-family: var(--display); font-size: clamp(28px, 2.9vw, 44px); line-height: 1; color: var(--white); font-variant-numeric: lining-nums; letter-spacing: -0.01em; }
.tw-heads dd { margin: 8px 0 0; font-size: 15px; line-height: 1.35; color: var(--sky); }
.tw-hero .btn, .tw-end .btn { background: var(--white); color: var(--navy) !important; }
.tw-hero .btn:hover, .tw-end .btn:hover { background: var(--sky); }
.tw-hero .link { color: var(--white) !important; border-color: var(--sky); }
.tw-hero .link:hover { color: var(--sky) !important; }
@keyframes tw-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes tw-panel { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Wide hero: one landscape photograph over the panel (no tower video) */
.tw-hero--wide { display: block; height: auto; min-height: 0; max-height: none; }
.tw-hero--wide .tw-hero-media { height: min(58svh, 620px); min-height: 320px; }
.tw-hero--film .tw-hero-media { height: auto; min-height: 0; aspect-ratio: 12 / 5; max-height: 68svh; width: 100%; }
.tw-hero--wide .tw-hero-panel { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 104px); align-items: start; max-width: var(--measure); margin: 0 auto; padding: clamp(36px, 4.4vw, 64px) var(--gutter) clamp(44px, 5vw, 76px); }
.tw-hero--wide .tw-where { grid-column: 1; grid-row: 1; }
.tw-hero--wide h1 { grid-column: 1; grid-row: 2; }
.tw-hero--wide .tw-facts { grid-column: 1; grid-row: 3; }
.tw-hero--wide .lede { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: end; }
.tw-hero--wide .tw-heads { grid-column: 2; grid-row: 3; }
.tw-hero--wide .t-actions { grid-column: 2; grid-row: 4; }

/* ── Section head ────────────────────────────────────────────────────────── */
.tw-head { margin-bottom: clamp(32px, 4.4vw, 64px); }
.tw-head .label { margin-bottom: 16px; }
.r5 .tw-head h2 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; max-width: 14em; text-wrap: balance; }
.r5 .band--navy .tw-head h2 { color: var(--white); }

/* ── Market figures ──────────────────────────────────────────────────────── */
.tw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3.4vw, 56px); margin: 0; }
.tw-grid > .w { grid-column: span 2; }
.tw-grid > div { border-top: 2px solid var(--navy); padding: 20px 0 clamp(34px, 4vw, 60px); }
.tw-grid dt { font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.tw-grid dd { margin: 18px 0 0; }
.tw-grid b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 3.3vw, 50px); line-height: 1.02; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: lining-nums; white-space: nowrap; }
.tw-grid > .w b { font-size: clamp(32px, 4.4vw, 68px); }
.tw-grid span { display: block; margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--slate); }
.tw-src { font-size: 15px; color: var(--slate); }

/* ── Photographs ─────────────────────────────────────────────────────────── */
.tw-gallery { padding-bottom: var(--band); }
.tw-gallery figure { margin: 0; }
.tw-gallery picture { display: block; overflow: hidden; background: var(--wash); }
.tw-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tw-gallery figure:hover img { transform: scale(1.03); }
.tw-gallery figcaption { padding: 14px 0 0; font-size: 16px; color: var(--slate); }
.tw-strips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 6px; }
.tw-strips picture { aspect-ratio: 9 / 21; }
.tw-strips figure:nth-child(even) { margin-top: clamp(28px, 5vw, 88px); }
.tw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.tw-pair picture { aspect-ratio: 3 / 5; border-radius: var(--gf-r); }
.tw-pair figure:nth-child(even) { margin-top: clamp(32px, 6vw, 96px); }
.tw-strips figcaption { padding-left: clamp(8px, 1.2vw, 20px); }
.tw-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px) 6px; padding: 0 6px; }
.tw-mosaic figure { grid-column: span 4; display: flex; flex-direction: column; }
.tw-mosaic figure:first-child { grid-column: span 8; grid-row: span 2; }
.tw-mosaic picture { aspect-ratio: 3 / 2; }
.tw-mosaic figure:first-child picture { aspect-ratio: auto; flex: 1; min-height: 0; }
.tw-mosaic figcaption { padding-left: clamp(8px, 1.2vw, 20px); }

/* ── Closed sales ────────────────────────────────────────────────────────── */
.tw-sales-in, .tw-faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.tw-sales-in .tw-head, .tw-faq-in .tw-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.tw-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--sky); font-variant-numeric: lining-nums tabular-nums; }
.tw-table thead th { font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); padding: 16px 0; text-align: left; border-bottom: 1px solid rgba(169,193,234,.3); }
.tw-table tbody th, .tw-table td { padding: clamp(16px, 1.7vw, 24px) 0; border-bottom: 1px solid rgba(169,193,234,.3); text-align: left; font-size: 18px; font-weight: 400; color: var(--sky); }
.tw-table tbody th { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); color: var(--white); }
.tw-table .n { text-align: right; padding-left: 16px; }
.tw-table td.p { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); color: var(--white); }

/* ── Three ways in ───────────────────────────────────────────────────────── */
.tw-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.tw-rows li { display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 7fr); gap: 0 24px; align-items: baseline; padding: clamp(24px, 2.8vw, 40px) 0; border-bottom: 1px solid var(--line); }
.tw-n { font-family: var(--display); font-size: 22px; color: var(--blue); font-variant-numeric: lining-nums tabular-nums; }
.r5 .tw-rows h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -0.015em; }
.tw-rows p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--slate); max-width: 32em; }

/* ── Collins Avenue ──────────────────────────────────────────────────────── */
.tw-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 48px; border-top: 2px solid var(--navy); }
.tw-line li:nth-child(n+6) { border-top: 2px solid var(--navy); }
.tw-line li { position: relative; padding: 30px 16px 0 0; }
.tw-line li::before { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--mist); border: 2px solid var(--navy); box-sizing: border-box; }
.tw-line li.is-here::before { background: var(--navy); width: 20px; height: 20px; top: -11px; }
.tw-line a { display: block; text-decoration: none; }
.tw-line span { display: block; font-family: var(--display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1; color: var(--blue); font-variant-numeric: lining-nums; }
.tw-line b { display: block; margin-top: 10px; font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--slate); transition: color .2s ease; }
.tw-line .is-here span, .tw-line .is-here b { color: var(--navy); }
.tw-line .is-here b { font-weight: 600; }
.tw-line a:hover b { color: var(--blue); text-decoration: underline; }

/* ── Questions ───────────────────────────────────────────────────────────── */
.tw-faq { border-top: 2px solid var(--navy); }
.tw-faq details { border-bottom: 1px solid var(--line); }
.tw-faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 24px; align-items: center; padding: clamp(20px, 2.2vw, 30px) 0; cursor: pointer; list-style: none; }
.tw-faq summary::-webkit-details-marker { display: none; }
.tw-faq summary::after { content: "+"; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--blue); text-align: center; transition: transform .25s ease; }
.tw-faq details[open] summary::after { transform: rotate(45deg); }
.r5 .tw-faq h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.25; margin: 0; }
.tw-faq summary:hover h3 { color: var(--blue); }
.tw-faq details p { padding: 0 48px clamp(22px, 2.4vw, 32px) 0; font-size: 18px; line-height: 1.65; color: var(--slate); max-width: 40em; }

/* ── Closing band: the broker ────────────────────────────────────────────── */
.tw-end { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--navy); color: var(--white); }
.tw-end-photo { overflow: hidden; background: var(--wash); max-height: 820px; }
.tw-end-photo picture, .tw-end-photo img { display: block; width: 100%; height: 100%; }
.tw-end-photo img { object-fit: cover; object-position: 50% 20%; }
.tw-end-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 104px) max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter))) clamp(48px, 6vw, 104px) clamp(28px, 5vw, 88px); }
.r5 .tw-end .label { color: var(--sky); margin-bottom: 18px; }
.r5 .tw-end h2 { color: var(--white); font-size: clamp(40px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.tw-end .lede { color: var(--sky); margin-top: 22px; }
.tw-end-lines { display: grid; gap: 6px; margin-top: clamp(30px, 3.4vw, 48px); padding-top: 24px; border-top: 1px solid rgba(169,193,234,.5); }
.tw-end-lines a { font-family: var(--display); font-size: clamp(22px, 2.2vw, 32px); color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.tw-end-lines a:hover { color: var(--sky); }
.tw-sign { margin-top: 26px !important; display: grid; gap: 2px; font-size: 16px; color: var(--sky); }
.tw-sign b { font-weight: 600; color: var(--white); font-size: 17px; }

@media (max-width: 1020px) {
  .tw-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-line li:nth-child(n+4) { border-top: 2px solid var(--navy); }
  .tw-rows li { grid-template-columns: 56px minmax(0, 1fr); }
  .tw-rows p { grid-column: 2; margin-top: 12px; }
}
@media (max-width: 860px) {
  .tw-hero, .tw-hero--left { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; }
  .tw-hero--right .tw-hero-media { order: 0; }
  .tw-hero-media { height: 64svh; min-height: 340px; }
  .tw-hero--wide .tw-hero-media { height: auto; aspect-ratio: 4 / 3; }
  .tw-hero--film .tw-hero-media { aspect-ratio: 16 / 10; }
  .tw-hero-panel, .tw-hero--right .tw-hero-panel, .tw-hero--left .tw-hero-panel, .tw-hero--wide .tw-hero-panel { display: flex; padding: 30px var(--gutter) 40px; }
  .tw-hero--wide .lede { margin-top: 16px; align-self: auto; }
  .tw-heads dd { font-size: 15px; }
  .tw-grid { grid-template-columns: minmax(0, 1fr); }
  .tw-grid > .w { grid-column: auto; }
  .tw-grid b, .tw-grid > .w b { font-size: clamp(32px, 9vw, 44px); }
  .tw-grid > div { padding-bottom: 30px; }
  .tw-strips { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .tw-strips picture { aspect-ratio: 9 / 17; }
  .tw-strips figure:nth-child(even) { margin-top: 36px; }
  .tw-mosaic figure, .tw-mosaic figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .tw-mosaic figure:first-child picture { aspect-ratio: 3 / 2; flex: none; }
  .tw-sales-in, .tw-faq-in { grid-template-columns: minmax(0, 1fr); }
  .tw-sales-in .tw-head, .tw-faq-in .tw-head { position: static; }
  .tw-table tbody th, .tw-table td { font-size: 16px; }
  .tw-table tbody th, .tw-table td.p { font-size: 19px; }
  .tw-table .n { padding-left: 10px; }
  .tw-table th:nth-child(2), .tw-table td:nth-child(2) { display: none; }
  .tw-line { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 0; border-left: 2px solid var(--navy); }
  .tw-line li, .tw-line li:nth-child(n+4) { border-top: 0; padding: 0 0 26px 26px; }
  .tw-line li:last-child { padding-bottom: 0; }
  .tw-line li::before { left: -7px; top: 6px; }
  .tw-line li.is-here::before { left: -11px; top: 2px; }
  .tw-line a, .tw-line li.is-here { display: flex; align-items: baseline; gap: 16px; }
  .tw-line b { margin-top: 0; }
  .tw-faq details p { padding-right: 0; }
  .tw-end { grid-template-columns: minmax(0, 1fr); }
  .tw-end-photo { aspect-ratio: 4 / 5; max-height: none; }
  .tw-end-panel { padding: 40px var(--gutter) 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-hero-media img, .tw-hero-panel { animation: none; }
  .tw-hero-media video { display: none; }
  .tw-gallery img { transition: none; }
}

/* ── Soft edges (tokens in gf-stack.css) ─────────────────────────────────── */
.tw-hero--right .tw-hero-media { border-radius: var(--gf-r) 0 0 var(--gf-r); }
.tw-hero--left .tw-hero-media { border-radius: 0 var(--gf-r) var(--gf-r) 0; }
.tw-strips picture, .tw-mosaic picture { border-radius: var(--gf-r); overflow: hidden; }
.tw-end-photo { border-radius: 0 var(--gf-r) var(--gf-r) 0; }
.tw-line li::before { border-radius: 50%; }
@media (max-width: 860px) {
  .tw-hero--right .tw-hero-media, .tw-hero--left .tw-hero-media, .tw-end-photo { border-radius: 0; }
  .tw-hero-panel { position: relative; margin-top: calc(-1 * var(--gf-r)); border-radius: var(--gf-r) var(--gf-r) 0 0; background: var(--navy); }
}
/* Figures size to their own cell so a long range never runs into the next one. */
.tw-grid > div { container-type: inline-size; }
@media (min-width: 861px) {
  .tw-grid b { font-size: clamp(26px, 17cqi, 50px); }
  .tw-grid > .w b { font-size: clamp(28px, 10.6cqi, 68px); }
}

/* Towers made of several buildings: one row per building, and closed sales grouped by building. */
.tw-rows--b li { grid-template-columns: 96px minmax(0, 4fr) minmax(0, 7fr); }
.r5 .tw-rows--b h3 { font-size: clamp(26px, 2.6vw, 40px); }
.tw-table tbody tr.g th { font-family: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); padding-top: clamp(28px, 3vw, 44px); }
@media (max-width: 1020px) { .tw-rows--b li { grid-template-columns: 72px minmax(0, 1fr); } }
