/* 3 Park Avenue – "Park Signal, Sky". Values come from the Paper file (1440px artboards). */

:root {
  --sky: #A9C7E8;
  --ink: #171717;
  --stone: #E7E5DE;
  --paper: #F1EEE6;
  --muted: #66645E;
  --dim: #BEBDB8;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  /* 48px page margin at 1440, content never wider than 1344 */
  --gutter: max(clamp(20px, 3.33vw, 48px), calc((100vw - 1344px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 19px/29px "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

h1, h2, h3, p, dl, dd, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.nav :focus-visible, .ribbon :focus-visible, .tour :focus-visible, .dark :focus-visible, .lb :focus-visible { outline-color: var(--sky); }

h1 {
  font: 400 clamp(56px, 9vw, 130px)/0.97 var(--display);
  letter-spacing: -0.055em;
  white-space: nowrap;
}
h2 {
  font: 400 clamp(34px, 3.6vw, 52px)/1.12 var(--display);
  letter-spacing: -0.035em;
}

/* ---------- Navigation ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  min-height: 88px;
  padding: 12px var(--gutter);
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  line-height: 20px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 8px; }
.brand-number { color: var(--sky); font: 400 52px/0.9 var(--display); letter-spacing: -0.07em; }
.brand-name { font: 400 15px/1.08 var(--display); letter-spacing: -0.025em; }
.nav nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav nav a { display: inline-flex; align-items: center; justify-content: center; padding-block: 13px; border-block: 1px solid transparent; }
.nav nav a:hover, .nav nav a[aria-current] { border-bottom-color: var(--sky); }
.nav nav a.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 1px solid #fff; }
.nav-arrow { display: block; flex: 0 0 1em; width: 1em; height: 1em; }
.nav nav a.nav-cta:hover, .nav nav a.nav-cta[aria-current] { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: clamp(600px, 50vw, 720px);
  padding-inline: var(--gutter);
  overflow: clip;
}
.hero-copy { display: flex; flex-direction: column; padding-block: 46px 94px; }
.lede { max-width: 520px; margin-top: 38px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.31; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: auto; padding-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 26px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  line-height: 22px;
  cursor: pointer;
}
.btn span, .space-row .arrow { transition: translate 0.15s; }
.btn:hover span { translate: 3px -3px; }
.link { padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 16px; line-height: 20px; }
.actions .link { padding-top: 8px; border-top: 1px solid transparent; }
.link:hover { border-bottom-width: 2px; padding-bottom: 7px; }

/* Tilted prints, placed as fractions of the 692×720 design box */
.collage { position: relative; container-type: inline-size; aspect-ratio: 692 / 720; align-self: center; }
.collage > * { position: absolute; transform-origin: 0 0; }
.collage a { display: block; overflow: hidden; border: 10px solid #fff; cursor: zoom-in; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { left: 19.65%; top: 6.1%; width: 75.14%; height: 78.06%; rotate: 5deg; }
.collage .photo-inset { left: 0; top: 66.4%; width: 54.34%; height: 28.6%; border-width: 8px; rotate: -6deg; }

/* The one moment of motion: the prints land on the page */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .photo-main { animation: land 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
  .collage .photo-inset { animation: land 0.6s 0.12s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
  @keyframes land { from { opacity: 0; rotate: 0deg; translate: 0 -24px; } }
}

/* ---------- Ribbon ---------- */

.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 2vw, 28px);
  min-height: 80px;
  padding: 14px var(--gutter);
  background: var(--ink);
  color: #fff;
  font: 400 clamp(17px, 1.95vw, 28px)/1.2 var(--display);
}
.ribbon .sep { color: var(--sky); }

/* ---------- Details ---------- */

.details { display: flex; gap: clamp(32px, 4.4vw, 64px); padding: 72px var(--gutter); background: #fff; }
.details-intro { flex: 0 0 clamp(240px, 30vw, 440px); min-width: 0; }
.details-intro p { margin-top: 22px; color: var(--muted); }
.facts { flex: 1; min-width: 0; border-top: 2px solid var(--ink); }
.facts > div { display: flex; align-items: center; gap: 32px; padding-block: 22px; border-bottom: 1px solid var(--ink); }
.facts dt { flex: 0 0 clamp(160px, 16vw, 240px); font: 400 26px/32px var(--display); letter-spacing: -0.02em; }
.facts dd { flex: 1; min-width: 0; }

/* ---------- Photos ---------- */

.photos { padding: 64px var(--gutter); background: var(--stone); }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 32px; }
.section-head a { font-size: 18px; line-height: 22px; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 6px; }

.photo-grid { display: grid; grid-template-columns: 664fr 324fr 324fr; gap: 16px; }
.photo-grid figure { display: flex; flex-direction: column; }
.photo-grid a { position: relative; display: block; aspect-ratio: 324 / 222; overflow: hidden; cursor: zoom-in; }
.photo-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-grid figure:first-child { grid-row: span 2; }
.photo-grid figure:first-child a { flex: 1; aspect-ratio: auto; }
.photo-grid figcaption { margin-top: 8px; font-size: 15px; line-height: 22px; }

/* ---------- Tour stage ---------- */

.tour { padding: 48px var(--gutter); background: var(--ink); color: #fff; }
.tour-body { display: grid; grid-template-columns: 264px minmax(0, 1fr) 288px; gap: 32px; }
.tour-body > * { min-width: 0; }

.tabs { display: flex; flex-direction: column; }
.tabs :is(button, a) {
  flex: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--muted);
  background: none;
  font-size: 17px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}
.tabs .tab-icon { grid-column: 1; justify-self: center; }
.tabs .tab-icon svg { display: block; width: 18px; height: 18px; }
.tabs .tab-label { grid-column: 2; min-width: 0; text-align: center; }
.tabs :is(button, a):hover { background: #262626; }
.tabs button[aria-pressed="true"] { background: var(--sky); color: var(--ink); }

.stage { position: relative; aspect-ratio: 728 / 384; overflow: hidden; background: #000; }
.panel, .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel > video, .panel > iframe, .poster img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.poster { display: block; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000c 0%, #0000000d 60%); }
.poster .play {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 72px;
  height: 72px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #17171766;
  transition: scale 0.15s;
}
.poster:hover .play { scale: 1.08; background: var(--ink); }

.plan { display: flex; flex-direction: column; gap: 22px; cursor: pointer; }
.plan-img { display: grid; place-items: center; aspect-ratio: 288 / 264; background: var(--paper); overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; }
.plan-img img { width: 100%; height: 100%; object-fit: contain; }
.plan-title { display: flex; align-items: center; justify-content: flex-start; font-size: 18px; line-height: 22px; }
.plan:is(:hover, :focus-visible) { background: #A9C7E814; }
.plan:is(:hover, :focus-visible) .plan-img { outline-color: var(--sky); }
.plan:is(:hover, :focus-visible) .plan-title { color: var(--sky); }
.plan:is(:hover, :focus-visible) .plan-title > span:first-child { text-decoration: underline; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .plan { transition: background-color 0.15s; }
}

/* ---------- Space rows (links to the two spaces) ---------- */

.space-row {
  display: grid;
  grid-template-columns: 176px 400px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 40px;
  padding: 38px var(--gutter);
  background: #fff;
}
.space-row.alt { background: var(--stone); }
.space-row .letter { font: 400 180px/200px var(--display); }
.space-row img { width: 100%; aspect-ratio: 400 / 254; object-fit: cover; }
.space-row h2 { font-size: clamp(28px, 2.65vw, 38px); line-height: 1.16; }
.space-row p { margin-top: 22px; color: var(--muted); }
.space-row .meta { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 22px; font-size: 16px; line-height: 20px; }
.space-row .go { padding-bottom: 4px; border-bottom: 2px solid var(--sky); }
.space-row.alt .go { border-bottom-color: var(--ink); }
.space-row .arrow { font-size: 48px; line-height: 60px; text-align: right; }
.space-row:hover .arrow { translate: 6px -6px; }

/* ---------- Inquiry call to action ---------- */

.inquiry-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; padding: 64px var(--gutter) 72px; background: var(--sky); }
.inquiry-cta > div { min-width: 0; }
.inquiry-cta p { max-width: 640px; margin-top: 20px; }
.inquiry-cta .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */

.foot {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 16px 24px;
  min-height: 88px;
  padding: 16px var(--gutter);
  background: var(--stone);
  font-size: 15px;
  line-height: 22px;
}
.foot-with-top { grid-template-columns: 32px minmax(0, 1fr) auto; }
.footer-copy { min-width: 0; justify-self: end; text-align: right; }
.footer-top { justify-self: end; white-space: nowrap; }
.foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-logo { display: inline-flex; align-items: center; flex: 0 0 32px; }
.footer-logo img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- Homepage location ---------- */

#location { scroll-margin-top: 24px; }
.traffic { display: flex; flex-direction: column; gap: 40px; padding: 72px var(--gutter); background: #fff; }
.traffic .section-head { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.stats > div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--ink); }
.stats dt { font: 400 clamp(44px, 5.83vw, 84px)/1.05 var(--display); letter-spacing: -0.045em; }
.stats dd { font-size: 19px; line-height: 27px; }
.getting { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; padding: 72px var(--gutter); background: var(--stone); }
.getting figure { min-width: 0; align-self: center; }
.getting figure img { width: 100%; aspect-ratio: 560 / 534; object-fit: contain; background: var(--paper); }
.getting-list { min-width: 0; }
.getting-list h2 { margin-bottom: 32px; }
.getting .facts > div { align-items: center; padding-block: 20px; }
.getting .facts dt { flex-basis: 140px; }
.nearby { padding: 64px var(--gutter) 72px; background: var(--ink); color: #fff; }
.nearby .section-head { align-items: center; margin-bottom: 40px; }
.nearby .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.nearby .cols > div { min-width: 0; padding-top: 20px; border-top: 1px solid var(--muted); }
.nearby h3 { margin-bottom: 18px; color: var(--sky); font: inherit; font-size: 17px; line-height: 22px; }
.nearby li { overflow-wrap: anywhere; font: 400 clamp(19px, 1.8vw, 26px)/1.385 var(--display); letter-spacing: -0.02em; }

/* ---------- Photo lightbox (built by script.js) ---------- */

.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: #fff; }
.lb figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.lb img { width: 100%; height: 100%; object-fit: contain; }
.lb figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 16px var(--gutter); font-size: 16px; line-height: 20px; }
.lb-controls { display: flex; align-items: center; gap: 12px; }
.lb button { min-width: 48px; padding: 12px 16px; border: 1px solid #fff; background: none; cursor: pointer; }
.lb button:hover { background: #fff; color: var(--ink); }

/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
  .tour-body { grid-template-columns: minmax(0, 1fr); }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs :is(button, a) { grid-template-columns: 28px minmax(0, 1fr) 28px; min-height: 64px; border-bottom: 1px solid var(--muted); }
  .plan { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 24px; }

  .space-row { grid-template-columns: auto minmax(0, 1fr); gap: 24px; }
  .space-row .letter { font-size: 110px; line-height: 1; }
  .space-row > div { grid-column: 1 / -1; }
  .space-row .arrow { display: none; }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .space-row .space-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr); align-items: stretch; gap: 40px; padding-block: 12px; }
  .space-row .space-intro { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
  .space-row .space-summary .meta { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; margin-top: 0; padding: 12px 0 12px 32px; border-left: 1px solid var(--dim); }
  .space-row .space-summary .meta > span:first-child { font: 400 clamp(24px, 2.7vw, 30px)/1.12 var(--display); letter-spacing: -0.035em; }
}

@media (max-width: 900px) {
  .hero, .home-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-block: 32px 8px; }
  .collage { width: min(100%, 560px); margin-bottom: 40px; }
  .details { flex-direction: column; gap: 32px; padding-block: 48px; }
  .details-intro { flex: none; }
  .photos { padding-block: 48px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .photo-grid figure:first-child a { flex: none; aspect-ratio: 664 / 486; }
  .stats { grid-template-columns: 1fr 1fr; }
  .getting { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .nearby .cols { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .foot, .foot-with-top { grid-template-columns: minmax(0, 1fr); justify-items: center; padding-block: 24px; }
  .footer-logo, .footer-copy, .footer-top { justify-self: center; }
  .footer-copy { max-width: 42ch; text-align: center; }
  .footer-separator { display: none; }
  .footer-address { display: block; margin-top: 4px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; line-height: 26px; }
  .nav { gap: 20px; padding-block: 18px; }
  .nav .brand { margin-inline: auto; }
  .nav nav { width: 100%; justify-content: space-between; gap: 12px; }
  .nav nav a { padding-block: 9px; }
  .nav nav a.nav-cta { padding: 9px 14px; }
  h1 { white-space: normal; }
  .facts > div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .facts dt { flex: none; font-size: 22px; line-height: 28px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs :is(button, a) { grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 6px; padding-inline: 12px; overflow-wrap: anywhere; }
  .tabs .tab-icon { font-size: 13px; white-space: nowrap; }
  .tabs .tab-label { font-size: 15px; line-height: 20px; }
  .stage { aspect-ratio: 4 / 3; }
  .plan { grid-template-columns: 120px minmax(0, 1fr); }
  .space-row .letter { font-size: 72px; }
  .ribbon .sep { display: none; }
  .ribbon { flex-direction: column; align-items: flex-start; }
  .traffic { padding-block: 48px; }
  .stats { grid-template-columns: 1fr; }
  .getting .facts dt { flex-basis: auto; }
  .getting .facts > div { align-items: flex-start; }
  .inquiry-cta { flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 48px; }
}

@media (max-width: 380px) {
  .nav nav { gap: 10px; }
  .nav nav a { font-size: 14px; white-space: nowrap; }
  .nav nav a.nav-cta { padding-inline: 12px; }
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tabs :is(button, a) { min-height: 52px; overflow-wrap: normal; }
}
