/* Times Square 2 subpages, in the homepage's own world (DESIGN.md "The Night Specification"):
   night ink ground, ivory type on an opacity ladder, one bronze accent for actions and the word Freehold,
   Fraunces Light headings beside Manrope, hairline rules instead of boxes, square corners, plans on ivory paper.
   Structure follows the approved Accent PJ subpages: photo hero, figures band, plan cards, ruled tables, photo CTA. */
:root {
  --ink: #0a0f1c;
  --ink-soft: #131a2c;
  --ivory: #f4efe2;
  --bronze: #dc9a4c;
  --iv-80: rgba(244, 239, 226, .8);
  --iv-70: rgba(244, 239, 226, .7);
  --iv-60: rgba(244, 239, 226, .6);
  --iv-55: rgba(244, 239, 226, .55);
  --iv-45: rgba(244, 239, 226, .45);
  --hair: rgba(244, 239, 226, .12);
  --rule: rgba(244, 239, 226, .1);
  --hair-strong: rgba(244, 239, 226, .2);
  --display: Fraunces, "Noto Serif SC", serif;
  --text: Manrope, "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: color-mix(in srgb, var(--bronze) 45%, transparent) var(--ink);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 16px/1.75 var(--text);
  caret-color: var(--bronze);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--bronze); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }

/* ---- Header: the homepage bar, transparent over the photo ---- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { margin-right: auto; font: 400 19px/1 var(--display); letter-spacing: .01em; color: var(--ivory); text-decoration: none; white-space: nowrap; }
.links { display: flex; gap: 28px; }
.links a, .lang { font-size: 13px; letter-spacing: .08em; color: var(--iv-70); text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.lang { color: var(--iv-60); letter-spacing: .02em; }
.links a:hover, .lang:hover { color: var(--ivory); }
.links a[aria-current] { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 8px; }
.reg { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border: 1px solid rgba(220, 154, 76, .7); color: var(--bronze); font-size: 13px; letter-spacing: .08em; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease); }
.reg:hover { background: var(--bronze); color: var(--ink); }
.menu { display: none; }

/* ---- Hero: full-bleed render under a night gradient. No eyebrow: the heading stands alone. ---- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 82vh; min-height: 82svh; background: var(--ink) var(--photo) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 15, 28, .7) 0%, rgba(10, 15, 28, .22) 34%, rgba(10, 15, 28, .55) 62%, rgba(10, 15, 28, .96) 100%); }
.hero .wrap { width: 100%; padding-top: 150px; padding-bottom: 72px; }
h1 { margin: 0 0 26px; max-width: 17ch; font: 300 clamp(2.5rem, 5.4vw, 4.5rem)/1.05 var(--display); letter-spacing: -.015em; color: var(--ivory); text-wrap: balance; }
.lead { margin: 0; max-width: 38rem; font-size: 17px; line-height: 1.75; color: var(--iv-80); }

/* ---- Figures: a ruled spec row on deep ink, not a stat bar ---- */
.band { background: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-variant-numeric: tabular-nums lining-nums; }
.facts > div { padding: 34px 28px 36px; border-left: 1px solid var(--hair); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts b { display: block; margin-bottom: 8px; font: 300 clamp(1.9rem, 3.2vw, 2.75rem)/1.08 var(--display); letter-spacing: -.01em; color: var(--ivory); }
.facts b.freehold { color: var(--bronze); }
.facts span { display: block; font-size: 13px; line-height: 1.5; letter-spacing: .02em; color: var(--iv-55); }

/* ---- Sections: full-bleed bands that alternate ink / ink-soft, like the homepage ---- */
.sec { padding: 96px 0; border-top: 1px solid var(--rule); }
main > .sec:first-child { border-top: 0; }
.sec:nth-child(even) { background: rgba(19, 26, 44, .4); }
h2 { margin: 0 0 20px; max-width: 20ch; font: 300 clamp(2rem, 4vw, 3rem)/1.12 var(--display); letter-spacing: -.01em; color: var(--ivory); text-wrap: balance; }
.split .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
.split h2 { grid-column: 1 / span 4; }
.split .sec-body { grid-column: 5 / -1; padding-top: 10px; }
.full h2 { margin-bottom: 40px; }
.sec p { margin: 0 0 16px; max-width: 40rem; color: var(--iv-70); }
.sec p:last-child { margin-bottom: 0; }
.sec p.note { margin-top: 20px; max-width: 46rem; font-size: 14px; line-height: 1.7; color: var(--iv-55); }
.zh h2, .zh h3 { letter-spacing: .02em; }

/* ---- Tables: hairline rows, tabular figures, no boxes ---- */
.tablewrap { overflow-x: auto; border-top: 1px solid var(--hair-strong); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
th, td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
th:last-child, td:last-child { padding-right: 0; }
th { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--iv-55); }
td { color: var(--iv-70); }
td:first-child { color: var(--ivory); }
.tablewrap.wide table { min-width: 760px; }
.tablewrap.wide td:first-child { white-space: nowrap; }
.zh td:first-child { min-width: 4.5em; }

/* ---- Paper: plans printed on ivory, as on the homepage ---- */
.plate, .paper { margin: 0; padding: 32px; background: var(--ivory); }
.plate { margin-bottom: 40px; }
.plate img, .paper img { width: 100%; }
.paper img { aspect-ratio: 4 / 3; object-fit: contain; }

/* ---- Plan cards: large plan beside its spec, alternating sides ---- */
.cards { display: flex; flex-direction: column; gap: 96px; }
.card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.card:nth-child(even) .paper { order: 2; }
.card h3 { margin: 0 0 8px; font: 300 clamp(1.9rem, 2.8vw, 2.5rem)/1.1 var(--display); color: var(--ivory); }
.card .spec { margin: 0 0 24px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--iv-70); }
.ruled { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.ruled li { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; line-height: 1.6; color: var(--iv-70); }
.sec-body .ruled { max-width: 44rem; margin-bottom: 24px; }
.fit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 20px; margin: 24px 0 0; font-size: 15px; line-height: 1.6; }
.fit dt { padding-top: 2px; font-size: 13px; letter-spacing: .04em; color: var(--iv-55); white-space: nowrap; }
.fit dd { margin: 0; color: var(--iv-80); }
.action { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--bronze); text-decoration: underline; text-decoration-color: rgba(220, 154, 76, .4); text-underline-offset: 6px; transition: text-decoration-color .2s var(--ease); }
.action:hover { text-decoration-color: var(--bronze); }

/* ---- Facility levels: plan on paper beside its numbered legend; captioned photographs ---- */
.level { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.level .plate { margin: 0; }
.legend { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.legend li { display: flex; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; color: var(--ivory); }
.legend span { width: 1.6em; flex: none; text-align: right; color: var(--iv-45); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 64px; }
.duo figure { margin: 0; }
.duo figure:nth-child(2) { margin-top: 96px; }
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.cap { font: 400 20px/1.3 var(--display); color: var(--ivory); }
.lvl { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--iv-55); }

/* ---- Two-sided comparison: ruled columns, no fill ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hair-strong); }
.compare > div { padding: 28px 40px 8px 0; }
.compare > div + div { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--hair); }
.compare h3 { margin: 0 0 12px; font: 400 22px/1.3 var(--display); color: var(--ivory); }
.compare p { font-size: 15px; }

/* ---- Distance lists, as in the homepage Location section ---- */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.list h3 { margin: 0 0 16px; font: 400 13px/1.5 var(--text); letter-spacing: .08em; color: var(--iv-55); }
.list ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.list li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.list li span:last-child { color: var(--iv-55); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- FAQ: folded on load, bronze hairline plus ---- */
.faq { border-top: 1px solid var(--hair); }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 16px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { margin: 0; font: 400 16px/1.5 var(--text); letter-spacing: 0; color: var(--ivory); }
.qa summary::after { content: ""; flex: none; width: 13px; height: 13px; background: linear-gradient(var(--bronze), var(--bronze)) center / 13px 1px no-repeat, linear-gradient(var(--bronze), var(--bronze)) center / 1px 13px no-repeat; transition: background-size .3s var(--ease); }
.qa[open] summary::after { background-size: 13px 1px, 1px 0; }
.qa summary:hover h3 { text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 5px; }
.sec .qa p { margin: 0 0 20px; max-width: 60ch; font-size: 15px; color: rgba(244, 239, 226, .65); }

/* ---- Closing band: photograph under ink, bronze primary button ---- */
.cta { position: relative; isolation: isolate; background: var(--ink) var(--photo) center / cover no-repeat; border-top: 1px solid var(--rule); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 15, 28, .8); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; padding-top: 112px; padding-bottom: 112px; }
.cta p { margin: 0; max-width: 34rem; font: 300 clamp(1.75rem, 3.2vw, 2.5rem)/1.2 var(--display); color: var(--ivory); text-wrap: balance; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 32px; background: var(--bronze); color: var(--ink); font-size: 14px; letter-spacing: .06em; text-decoration: none; white-space: nowrap; transition: opacity .2s var(--ease); }
.btn:hover { opacity: .9; }

footer { padding: 32px 0 40px; border-top: 1px solid var(--rule); background: var(--ink); font-size: 12.5px; line-height: 1.7; color: var(--iv-45); }

/* ---- Tablet ---- */
@media (max-width: 1000px) {
  .links { gap: 20px; }
  .bar { gap: 22px; }
  .split .wrap { display: block; }
  .split .sec-body { padding-top: 0; }
  .card, .level { grid-template-columns: 1fr; gap: 32px; }
  .card:nth-child(even) .paper { order: 0; }
}

/* ---- Phone: the homepage's two-line toggle and full-width menu ---- */
@media (max-width: 860px) {
  .bar { height: 64px; gap: 16px; }
  .links, .bar > .lang, .reg { display: none; }
  .menu { display: block; }
  .menu summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; list-style: none; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 20px; height: 1px; background: var(--ivory); transition: transform .3s var(--ease); }
  .menu[open] summary span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .panel { position: absolute; top: 64px; left: 0; right: 0; display: flex; flex-direction: column; padding: 0 24px 32px; background: rgba(10, 15, 28, .96); border-bottom: 1px solid var(--rule); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .panel > a { padding: 16px 0; border-bottom: 1px solid var(--rule); font: 400 20px/1.3 var(--display); letter-spacing: 0; color: var(--ivory); text-decoration: none; }
  .panel > a[aria-current] { text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 6px; }
  .panel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
  .panel-foot .btn { height: 44px; padding: 0 24px; font-size: 13px; }
  .panel-foot .lang { padding: 12px 0; font-size: 14px; }

  .hero { min-height: 88vh; min-height: 88svh; }
  .hero .wrap { padding-top: 120px; padding-bottom: 48px; }
  .lead { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div, .facts > div:first-child { padding: 24px 16px 26px 0; border-left: 0; border-top: 1px solid var(--hair); }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--hair); }
  .facts > div:nth-child(-n+2) { border-top: 0; }
  .sec { padding: 80px 0; }
  .full h2 { margin-bottom: 28px; }
  .plate, .paper { padding: 16px; }
  .cards { gap: 72px; }
  .duo { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .duo figure:nth-child(2) { margin-top: 0; }
  .compare, .lists { grid-template-columns: 1fr; }
  .compare > div, .compare > div + div { padding: 24px 0 8px; border-left: 0; }
  .compare > div + div { border-top: 1px solid var(--hair); }
  .cta .wrap { padding-top: 80px; padding-bottom: 80px; }
  .cta .btn { white-space: normal; text-align: center; height: auto; min-height: 48px; padding: 12px 24px; }
  footer { padding-bottom: 48px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 20px; }
  .fit { grid-template-columns: 1fr; gap: 4px; }
  .fit dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
