/* ==========================================================================
   19 West 21st Street — KSR
   Palette and type follow the KSR brand: navy #14315B, orange #EE5C1B.
   Poppins / Michroma stand in for Avant Garde Gothic + Termina.
   ========================================================================== */

:root {
  --navy-900: #060d16;
  --navy-850: #0a1522;
  --navy-800: #0d1c2e;
  --navy-700: #10273f;
  --navy-600: #14315b;
  --navy-500: #1c4278;

  --orange:    #ee5c1b;
  --orange-hi: #ff7438;   /* lighter — for focus rings on the dark ground */
  --orange-deep: #c9490f; /* darker — white on this is 4.73:1, passes AA */
  --orange-dim: rgba(238, 92, 27, 0.14);

  --text:   #eef2f7;
  --text-2: #b7c5d6;
  --muted:  #7d8fa5;
  --line:   rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.06);

  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --eyebrow: "Michroma", "Poppins", sans-serif;
  --body:    "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- shared bits ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.eyebrow {
  font-family: var(--eyebrow);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 90px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::before {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 90px;
  background: linear-gradient(270deg, var(--orange), transparent);
}

.section { padding-block: clamp(72px, 11vw, 148px); position: relative; }
.section-title { font-size: clamp(34px, 5vw, 62px); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
/* darkens on hover rather than lightening, so contrast improves on interaction
   instead of dropping to 2.7:1 */
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.32); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  /* Must sit ABOVE .nav-drawer (65). position:fixed + z-index makes this a
     stacking context, so .nav-toggle's own z-index is clamped to this value —
     at 60 the drawer painted over the close button and the menu could not be
     dismissed on a phone. */
  z-index: 70;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), height 0.35s var(--ease),
              box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav.is-stuck {
  height: 68px;
  background: rgba(6, 13, 22, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-2);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-logo { display: block; flex-shrink: 0; }
.nav-logo img {
  height: 27px;
  width: auto;
  transition: height 0.35s var(--ease);
}
.nav.is-stuck .nav-logo img { height: 23px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  position: relative;
  padding-block: 6px;
  transition: color 0.22s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: #fff; }

.nav-cta { margin-left: 8px; padding: 11px 22px; font-size: 12.5px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 70;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--gut);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
body.menu-open .nav-drawer { opacity: 1; visibility: visible; }
.nav-drawer a {
  font-family: var(--display);
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  padding-block: 10px;
  border-bottom: 1px solid var(--line-2);
}
.nav-drawer a:last-of-type { border-bottom: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 660px;
  height: 100svh;
  max-height: 1080px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 13, 22, 0.96) 0%, rgba(6, 13, 22, 0.55) 32%, rgba(6, 13, 22, 0.12) 62%, rgba(6, 13, 22, 0.5) 100%),
    linear-gradient(to right, rgba(6, 13, 22, 0.75) 0%, rgba(6, 13, 22, 0.15) 55%, transparent 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(38px, 6vw, 78px); }
.hero h1 {
  font-size: clamp(44px, 8.2vw, 118px);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}
.hero-sub {
  margin: 22px 0 34px;
  font-size: clamp(17px, 2vw, 23px);
  color: var(--text-2);
  max-width: 44ch;
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero-stats dt {
  font-family: var(--display);
  font-size: clamp(21px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- building ---------- */

.building { background: var(--navy-850); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.split-head { position: sticky; top: 120px; }
.split-head .loc {
  margin: 20px 0 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.split-body p { margin: 0 0 22px; color: var(--text-2); font-size: clamp(16.5px, 1.35vw, 19px); max-width: 66ch; text-wrap: pretty; }
.split-body p:last-child { margin-bottom: 0; }
.split-body strong { color: var(--text); font-weight: 600; }

.features {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.feature {
  background: var(--navy-850);
  padding: 32px 28px 34px;
  transition: background 0.3s var(--ease);
}
.feature:hover { background: var(--navy-800); }
.feature svg { width: 26px; height: 26px; stroke: var(--orange); fill: none; stroke-width: 1.4; margin-bottom: 18px; }
.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- gallery ---------- */

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 54px);
}
.gallery-head .lede { max-width: 46ch; margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  border: 0;
  padding: 0;
  margin: 0; /* <figure> carries a default 40px side margin — without this every
                tile is inset 40px and clipped off the right edge on mobile */
  cursor: zoom-in;
  display: block;
  width: 100%;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease), filter 0.45s var(--ease);
}
.tile:hover img { transform: scale(1.045); }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 42px 20px 16px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(to top, rgba(6, 13, 22, 0.88), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }

.t-wide  { grid-column: span 8; aspect-ratio: 16 / 10; }
.t-tall  { grid-column: span 4; aspect-ratio: 4 / 5; }
.t-half  { grid-column: span 6; aspect-ratio: 3 / 2; }
.t-third { grid-column: span 4; aspect-ratio: 3 / 2; }
.t-full  { grid-column: span 12; aspect-ratio: 21 / 9; }

/* ---------- availability ---------- */

.avail { background: var(--navy-850); }
.avail-head { text-align: center; margin-bottom: clamp(38px, 5vw, 62px); }
.avail-head .lede { margin: 18px auto 0; max-width: 52ch; }

.suite {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--navy-800);
}

/* carousel */
.carousel { position: relative; background: #000; overflow: hidden; }
.carousel-track { display: flex; height: 100%; transition: transform 0.6s var(--ease); }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; cursor: zoom-in; }
.carousel-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0; /* <p> default margin leaves the scrim short of the photo edge */
  padding: 46px 22px 18px;
  font-size: 13.5px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(6, 13, 22, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* iOS Safari still needs the prefix */
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.carousel-btn:hover { background: var(--orange); border-color: var(--orange); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.carousel-dots {
  position: absolute;
  left: 22px; bottom: 16px;
  display: flex;
  gap: 7px;
  z-index: 2;
}
.carousel-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: background 0.25s, width 0.25s var(--ease), border-radius 0.25s;
}
.carousel-dots button.is-on { background: var(--orange); width: 20px; border-radius: 4px; }

.suite-info { padding: clamp(30px, 3.4vw, 50px); display: flex; flex-direction: column; }
.suite-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--eyebrow);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(238, 92, 27, 0.3);
  padding: 7px 13px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.suite-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(238, 92, 27, 0.22);
}
.suite-info h3 { font-size: clamp(30px, 3.4vw, 46px); }
.suite-info > p { color: var(--text-2); font-size: 16px; margin: 18px 0 0; }

.specs { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}
.specs dt, .specs .k {
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.specs .v {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  text-align: right;
}
.specs .v.hi { color: var(--orange); }

.suite-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.suite-actions .btn { flex: 1 1 auto; }

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

.loc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}
.map-card {
  border: 1px solid var(--line);
  background: var(--navy-850);
  overflow: hidden;
  position: sticky;
  top: 108px;
}
.map-card svg { width: 100%; height: auto; display: block; }
.map-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--line-2);
}
.map-foot a {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: 2px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.map-foot a:hover { color: #fff; border-color: var(--orange); background: var(--orange-dim); }

.addr { font-family: var(--display); font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 6px; }
.addr + p { margin: 0 0 34px; color: var(--muted); }

.transit { list-style: none; margin: 0; padding: 0; }
.transit li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}
.transit li:first-child { border-top: 1px solid var(--line-2); }
/* max-width caps a row at 4 bullets so Union Square's eight wrap to two lines
   instead of squeezing the station name */
.bullets { display: flex; gap: 4px; flex-shrink: 0; flex-wrap: wrap; max-width: 118px; }
.bul {
  width: 25px; height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  flex-shrink: 0;
}
.bul.red { background: #ee352e; }
.bul.grn { background: #00933c; }
.bul.org { background: #ff6319; }
.bul.yel { background: #fccc0a; color: #111; }
.bul.gry { background: #a7a9ac; color: #111; }
.bul.path { background: #0b6ec9; font-size: 8.5px; width: auto; padding-inline: 9px; border-radius: 13px; letter-spacing: 0.06em; }
.transit .t-name { flex: 1; font-size: 15.5px; }
.transit .t-walk { font-size: 13px; color: var(--muted); white-space: nowrap; }

.near { margin-top: 40px; }
.near h3 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.near ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.near li {
  font-size: 13.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 20px;
}

/* ---------- contact ---------- */

.contact { background: var(--navy-850); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  background: var(--navy-800);
  padding: 30px;
}
.card + .card { margin-top: 14px; }
.card .role {
  font-family: var(--eyebrow);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}
.card .name { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 14px; }
.card a, .card .li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  color: var(--text-2);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.22s;
}
.card a:hover { color: var(--orange); }
.card svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.5; flex-shrink: 0; }
/* Several people share one card: email and phone sit on one line, wrapping
   under each other only when the card is too narrow. */
.card .person { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; }
.card .person + .person { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.card .person .name { flex-basis: 100%; font-size: 19px; margin-bottom: 4px; }
.card .hours { font-size: 15px; color: var(--text-2); margin: 0; }
.card .hours span { color: var(--muted); }

.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--orange); }
.field input, .field textarea, .field select {
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 15px;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--navy-700);
}
.field input::placeholder, .field textarea::placeholder { color: #56687d; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1 1 220px; }
.form-status { grid-column: 1 / -1; font-size: 15px; margin: 0; display: none; padding: 13px 16px; border-radius: 2px; }
.form-status.ok { display: block; color: #9be3b4; background: rgba(58, 190, 113, 0.1); border: 1px solid rgba(58, 190, 113, 0.3); }
.form-status.err { display: block; color: #ffb4a0; background: rgba(238, 92, 27, 0.1); border: 1px solid rgba(238, 92, 27, 0.35); }

.hp { display: none; } /* honeypot for Netlify's spam filter */

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line-2); padding-block: 56px 40px; background: var(--navy-900); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 34px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-2);
}
.footer img { height: 26px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.22s;
}
.footer-nav a:hover { color: var(--orange); }
.footer-bot {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bot p { margin: 0; max-width: 74ch; }

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 9, 15, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 48px);
}
.lb.is-open { display: flex; }
.lb img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  animation: lbIn 0.32s var(--ease);
}
/* line drawings need a sheet of paper behind them, not a black void */
.lb img.is-paper { background: #fff; padding: 14px; }
@keyframes lbIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.lb-cap {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  padding-inline: 70px;
}
.lb-close, .lb-nav {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.lb-close:hover, .lb-nav:hover { background: var(--orange); border-color: var(--orange); }
.lb-close { top: 22px; right: 22px; }
.lb-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }

body.lb-open, body.menu-open { overflow: hidden; }

/* ---------- reveal ---------- */

/* Reveal-on-scroll. The hidden state is gated on .js — main.js sets that class
   on <html> at parse time, so if the script fails to load or JS is off the
   content is simply visible instead of an invisible page. */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .suite { grid-template-columns: 1fr; }
  .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .map-card { position: static; }
  .t-wide, .t-half, .t-third, .t-tall, .t-full { grid-column: span 6; aspect-ratio: 4 / 3; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { gap: 10px; }
  .t-wide, .t-half, .t-third, .t-tall, .t-full { grid-column: span 12; aspect-ratio: 3 / 2; }
  .form { grid-template-columns: 1fr; }
  .hero { min-height: 580px; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .tile figcaption { opacity: 1; transform: none; font-size: 12px; }
  .lb-nav.prev { left: 12px; }
  .lb-nav.next { right: 12px; }
  .lb-cap { padding-inline: 20px; bottom: 18px; }
}

@media print {
  .nav, .nav-drawer, .lb, .carousel-btn, .carousel-dots, .form { display: none !important; }
  body { background: #fff; color: #000; }
  /* without this the reveal-on-scroll blocks print blank */
  .js .rv, .js .rv.in { opacity: 1 !important; transform: none !important; }
  .split-body p, .lede, .feature p, .transit .t-name, .card a, .card .hours,
  .specs .k, .addr + p, .near li { color: #222 !important; }
  .section-title, .suite-info h3, .hero h1, .card .name, .specs .v { color: #000 !important; }
  a { text-decoration: underline; }
}
