/* ------------------------------------------------------------------ *
 * Platinum Tower — brochure, web edition.
 *
 * Third stylesheet over the same content.js + render.js as the two PDFs, so
 * the shared link and the printed piece can never say different things.
 *
 * The print sheets are fixed boxes (a page is exactly 1280x720 or A4) and a
 * lot of the layout leans on that: blocks claim leftover height with
 * `flex: 1`. On the web there is no leftover height to claim — the page is as
 * tall as its content — so most of this file is releasing those constraints
 * and letting the same blocks flow.
 * ------------------------------------------------------------------ */

:root {
  --pad: clamp(20px, 5vw, 72px);
  --runner-h: 0px;
  --gap: clamp(10px, 1.6vw, 18px);
  --stack: clamp(10px, 1.4vw, 16px);
  --maxw: 1240px;

  --fs-cover: clamp(38px, 7.4vw, 96px);
  --fs-h-lg: clamp(32px, 5.6vw, 68px);
  --fs-h-md: clamp(25px, 3.6vw, 44px);
  --fs-h-sm: clamp(22px, 3vw, 36px);
  --fs-h-xs: clamp(18px, 2.2vw, 26px);
  --fs-lede: clamp(14px, 1.32vw, 18px);
  --fs-body: clamp(13px, 1.15vw, 15.5px);
  --fs-cap: clamp(9.5px, 0.82vw, 11px);
  --fs-eyebrow: clamp(9px, 0.78vw, 11px);
  --fs-runner: 9px;
  --fs-ghost: clamp(70px, 11vw, 150px);
  --fs-stat: clamp(32px, 4.4vw, 56px);
  --fs-toc-n: clamp(15px, 1.5vw, 21px);
  --fs-toc-t: clamp(15px, 1.5vw, 21px);
  --fs-table: clamp(11px, 1vw, 13.5px);
  --fs-mono: clamp(10.5px, 0.95vw, 13px);
  --fs-out: clamp(9.5px, 0.85vw, 11.5px);
  --fs-key: clamp(14px, 1.35vw, 19px);
  --fs-mix-h: clamp(12px, 1.15vw, 16px);
  --fs-amen-h: clamp(13px, 1.25vw, 17px);
  --fs-amen-b: clamp(11px, 0.98vw, 13px);
  --fs-faq-q: clamp(13px, 1.15vw, 16px);
  --fs-trust: clamp(26px, 3vw, 38px);
  --fs-enq: clamp(14px, 1.3vw, 18px);
  --fs-disc: clamp(9px, 0.76vw, 10.5px);
  --fs-chip: clamp(8px, 0.72vw, 10px);
  --fs-badge: clamp(10.5px, 1vw, 14px);

  --toc-n: clamp(34px, 4vw, 52px);
  --toc-pad: clamp(12px, 1.4vw, 20px);
  --spec-k: clamp(96px, 13vw, 170px);
  --spec-pad: clamp(8px, 1vw, 13px);
  --row-pad: clamp(7px, 0.85vw, 11px);
  --key-pad: clamp(11px, 1.2vw, 16px) clamp(12px, 1.3vw, 18px);
  --mix-pad: clamp(11px, 1.2vw, 16px) clamp(12px, 1.3vw, 18px);
  --amen-pad: clamp(13px, 1.4vw, 20px) clamp(14px, 1.5vw, 22px);
  --useful-pad: clamp(6px, 0.7vw, 9px);
  --faq-pad: clamp(12px, 1.4vw, 18px);
  --shot-h: clamp(90px, 11vw, 150px);
  --qr: clamp(84px, 8vw, 104px);
  --mark-w: clamp(130px, 15vw, 200px);
  --mark-sm-w: clamp(110px, 12vw, 150px);
}

/* base.css paints the page-preview grey behind the sheets; on the web the
   document itself is the black surface. */
html,
body {
  background: var(--bg);
  scroll-behavior: smooth;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------ page → section */

#book {
  display: block;
}

.page {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  max-width: none;
  box-shadow: none;
  border-bottom: 1px solid var(--line-soft);
}

/* Print furniture: the folio rule means nothing in a scrolling document. */
.runner {
  display: none;
}

.pad-box {
  height: auto;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 104px) var(--pad);
  gap: var(--stack);
}

/* Every "claim the leftover height" rule from the print sheets, released. */
.toc,
.mix,
.faq,
.amen-grid,
.amen-grid.three,
.map-fig,
.plan-fig,
.mix-shot,
.amen-shot,
.axo,
.unit-media,
.col-copy {
  flex: none;
  min-height: 0;
}
.toc li,
.faq-item {
  flex: none;
}

/* ------------------------------------------------------------------ shell */

/* ------------------------------------------------- navigation (site parity)
 * Lifted from the site's globals.css: the same floating pill bar, the same
 * typographic lockup with its silver gradient, the same .pill buttons. A
 * shared link that looks like a different product undoes the point of it.
 * ------------------------------------------------------------------------ */

:root {
  --silver-grad: linear-gradient(180deg, #f6f7f9 0%, #c6c9cf 48%, #8f9298 100%);
}

.ptnav {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.navbar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 26px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.5s ease,
    border-color 0.5s ease;
}
.ptnav.scrolled .navbar {
  background: rgba(6, 6, 8, 0.94);
  border-color: rgba(255, 255, 255, 0.16);
}
.lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.lockup b {
  font-family: var(--exp);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lockup small {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-top: 4px;
}
.navacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  font-family: var(--exp);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  background: var(--silver);
  color: var(--bg);
  transition: all 0.35s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pill svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.pill-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--silver);
}
@media (hover: hover) and (pointer: fine) {
  .pill:hover {
    background: #ffffff;
    color: #000;
  }
  .pill-ghost:hover {
    background: var(--silver);
    color: var(--bg);
  }
}

.nav-dl-short {
  display: none;
}
/* The site drops its nav links at 920px; here there are only two buttons, so
   the shed is the secondary link and then the long label. */
@media (max-width: 720px) {
  .nav-site {
    display: none;
  }
}
@media (max-width: 420px) {
  .navbar {
    padding: 10px 10px 10px 18px;
  }
  .lockup b {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
  .lockup small {
    font-size: 0.5rem;
    letter-spacing: 0.24em;
  }
  .nav-dl-long {
    display: none;
  }
  .nav-dl-short {
    display: inline;
  }
  .pill {
    padding: 0.6em 1.1em;
  }
}

/* Footer buttons keep the same pill vocabulary. */
.dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  background: var(--silver);
  color: var(--bg);
  font-family: var(--exp);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.35s ease;
}
.dl svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.dl-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--silver);
}
@media (hover: hover) and (pointer: fine) {
  .dl:hover {
    background: #ffffff;
    color: #000;
  }
  .dl-ghost:hover {
    background: var(--silver);
    color: var(--bg);
  }
}

.webfoot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--pad) clamp(48px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-cap);
  color: var(--silver-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.webfoot a {
  color: var(--accent);
}
.webfoot .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ cover */

.cover {
  height: min(92vh, 820px);
  min-height: 520px;
  overflow: hidden;
}
/* The nav already carries the lockup, and it floats over the hero exactly as
   it does on the site — so the cover's own wordmark would be the same mark
   twice, 80px apart. */
.cover .mark {
  display: none;
}
.cover-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px var(--pad) clamp(28px, 5vw, 64px);
  justify-content: flex-end;
  gap: clamp(26px, 5vw, 56px);
}
.cover-title .sub {
  max-width: 40ch;
}

/* ------------------------------------------------------------------ split */

.split {
  flex-direction: row;
  align-items: stretch;
  max-width: var(--maxw);
  margin: 0 auto;
}
.col-copy {
  width: 52%;
  padding: clamp(46px, 6vw, 96px) clamp(28px, 3.4vw, 56px) clamp(46px, 6vw, 96px) var(--pad);
  justify-content: center;
}
.col-media {
  width: 48%;
  min-height: clamp(320px, 42vw, 560px);
}
.unit .col-copy {
  width: 56%;
  justify-content: flex-start;
}
.unit-media {
  width: 44%;
  padding: clamp(46px, 6vw, 96px) var(--pad) clamp(46px, 6vw, 96px) clamp(20px, 2vw, 32px);
  gap: var(--gap);
}
.axo {
  aspect-ratio: 4 / 3;
}
.axo img {
  transform: none;
}

/* --------------------------------------------------------------- blocks */

.toc li {
  padding: var(--toc-pad) 0;
}

.mix {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  margin-top: clamp(24px, 3vw, 44px);
}
.mix-shot {
  aspect-ratio: 4 / 3;
}

.map-fig,
.plan-fig {
  padding: 0;
  margin-top: clamp(24px, 3vw, 44px);
}
.map-fig img,
.plan-fig img {
  max-height: none;
  width: 100%;
}
.map-page,
.plan-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 104px) var(--pad);
  flex-direction: column;
}
.plan-head {
  width: auto;
}

.amen-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(24px, 3vw, 44px);
}
.amen-grid.three {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
}
.amen-shot {
  aspect-ratio: 4 / 3;
}

.faq {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(24px, 3vw, 44px);
}
.faq-item {
  display: grid;
  grid-template-columns: minmax(200px, 30%) 1fr;
  gap: 0 clamp(20px, 3vw, 44px);
  align-items: baseline;
  padding: clamp(16px, 2vw, 26px) 0;
}
.faq-item p {
  margin-top: 0;
}

.interiors {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(46px, 7vw, 104px) 0;
}
.int-head {
  padding: 0 var(--pad);
}
.int-grid {
  padding: clamp(24px, 3vw, 44px) var(--pad) 0;
  min-height: clamp(340px, 46vw, 620px);
}
.interiors > .cap {
  padding: var(--gap) var(--pad) 0;
}

.enquiry {
  min-height: clamp(560px, 80vh, 820px);
}
.enq-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.enq-grid {
  grid-template-columns: 1fr 1fr auto;
  margin-top: clamp(28px, 4vw, 56px);
}

/* ------------------------------------------------------------------ phone */

@media (max-width: 860px) {
  .split {
    flex-direction: column-reverse;
  }
  .unit {
    flex-direction: column;
  }
  .col-copy,
  .col-media,
  .unit-media {
    width: 100%;
  }
  .col-copy {
    padding: clamp(32px, 8vw, 52px) var(--pad);
  }
  .unit-media {
    padding: 0 var(--pad) clamp(40px, 9vw, 64px);
  }
  .col-media {
    min-height: 58vw;
  }

  .int-grid {
    flex-direction: column;
  }
  .int-rest {
    flex-direction: row;
  }
  .int-hero,
  .int-rest figure {
    aspect-ratio: 4 / 3;
  }

  .mix,
  .amen-grid,
  .amen-grid.three,
  .enq-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
  }
  .faq-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .specs > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .lines .out,
  .lines th:last-child {
    display: none; /* six columns will not fit a phone; outlook is in the note */
  }
  .ghost {
    display: none;
  }
  .cover {
    height: auto;
    min-height: 88vh;
  }
  .enq-qr {
    justify-content: flex-start;
  }

  /* The plan sheets are wide technical drawings: let them scroll sideways at
     a readable size rather than shrink to illegibility. */
  .plan-fig {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .plan-fig img {
    width: auto;
    height: 62vh;
    max-width: none;
  }
}
