/* McKinley Group — interior finish guide. Editorial, not a spec sheet.
   Scoped .fin- ; uses tokens.css. */

:root { --fin-rule: rgba(44,52,38,.28); }

.fin-body { background: var(--paper); }
.fin-sub { color: rgba(255,255,255,.86); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.2rem; }

/* ---------- sticky room rail ---------- */
.fin-nav { position: sticky; top: var(--hdr-h, 79px); z-index: 40; background: rgba(244,241,234,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.fin-nav__in { display: flex; align-items: center; gap: .3rem; overflow-x: auto; padding: .65rem var(--gutter); scrollbar-width: none; }
.fin-nav__in::-webkit-scrollbar { display: none; }
.fin-nav a {
  flex: 0 0 auto; font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
  text-decoration: none; padding: .45rem .8rem; border-radius: 999px;
  white-space: nowrap; transition: all .25s var(--ease);
}
@media (hover: hover) { .fin-nav a:hover { color: var(--green); background: rgba(44,52,38,.06); } }
.fin-nav a.on { background: var(--green); color: #fff; }

/* ---------- opening spread ---------- */
.fin-open { display: grid; align-items: start; grid-template-columns: 1.35fr 1fr; gap: clamp(2.4rem,6vw,5rem); align-items: start; }
.fin-open__lede { font-family: var(--serif); font-size: clamp(1.5rem,2.6vw,2.05rem); line-height: 1.35; color: var(--ink); max-width: 22ch; }
.fin-open__body { margin-top: 1.4rem; font-size: 1.02rem; line-height: 1.8; color: rgba(28,26,24,.76); max-width: 50ch; }
.fin-acts { display: flex; flex-direction: column; gap: .7rem; }
.fin-acts .btn { width: 100%; text-align: center; }
.fin-acts__meta { font-size: .74rem; color: var(--grey); letter-spacing: .04em; text-align: center; margin-top: -.2rem; }
.fin-acts__rule { height: 1px; background: var(--line); margin: .5rem 0; }

/* ---------- level title ---------- */
.fin-level { margin: clamp(2.6rem,5vw,4.2rem) 0 clamp(1.8rem,3vw,2.6rem); scroll-margin-top: calc(var(--hdr-h, 79px) + 56px); }
.fin-level__rule { height: 1px; background: var(--fin-rule); margin-bottom: 1.4rem; }
.fin-level h2 { font-family: var(--serif); font-size: clamp(2rem,4.4vw,3.1rem); color: var(--ink); line-height: 1.05; }
.fin-level p { margin-top: .7rem; font-size: 1rem; line-height: 1.7; color: var(--grey); max-width: 58ch; font-style: italic; font-family: var(--serif); }
.fin-level p.fin-room__n { font-family: var(--sans); font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-align: left; max-width: none; }

/* ---------- room ---------- */
.fin-room { margin-bottom: clamp(3rem,6vw,5rem); scroll-margin-top: calc(var(--hdr-h, 79px) + 64px); }
.fin-room__h { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.fin-room__h h3 { font-family: var(--serif); font-size: clamp(1.55rem,3vw,2.15rem); color: var(--ink); line-height: 1.1; }
.fin-room__n { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-left: auto; }
.fin-tag { font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--white); background: var(--green); padding: .3rem .6rem; }

/* a room with photography splits: image left, selections right */
.fin-room__split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.55fr); gap: clamp(1.4rem,3vw,2.6rem); align-items: start; }
.fin-room__split--wide { grid-template-columns: 1fr; }
.fin-photo { position: sticky; top: calc(var(--hdr-h, 79px) + 64px); overflow: hidden; background: var(--champagne); }
.fin-photo img { width: 100%; height: auto; display: block; }
.fin-photo--tall img { aspect-ratio: 3/4; object-fit: cover; }
.fin-photo figcaption {
  font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--grey); margin-top: .55rem;
}

/* ---------- selections ---------- */
.fin-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,2vw,1.6rem) clamp(1rem,2vw,1.5rem); align-content: start; }
.fin-list--tight { grid-template-columns: repeat(3, 1fr); }
.fin-item { display: flex; flex-direction: column; }
.fin-item__img {
  position: relative; width: 100%; padding: 0; border: 0; background: var(--white);
  cursor: zoom-in; overflow: hidden; display: block; line-height: 0;
  box-shadow: 0 1px 0 rgba(28,26,24,.06);
}
/* one aspect for every swatch: a row of tiles that line up reads designed,
   a row of natural heights reads like a dump of assets */
.fin-item__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .7s var(--ease); }
@media (hover: hover) { .fin-item__img:hover img { transform: scale(1.04); } }
.fin-item__img--spec {
  aspect-ratio: 4/3; cursor: default; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px dashed var(--line); color: var(--grey);
  font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.fin-item__label { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--green); margin-top: .7rem; }
.fin-item__text { font-size: .86rem; line-height: 1.5; color: rgba(28,26,24,.75); margin-top: .25rem; }

@media (max-width: 1080px) { .fin-list { grid-template-columns: repeat(3, 1fr); } .fin-list--tight { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .fin-open, .fin-room__split { grid-template-columns: 1fr; }
  .fin-photo { position: static; }
  .fin-photo--tall img { aspect-ratio: 16/10; }
  .fin-list--tight { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) { .fin-list, .fin-list--tight { grid-template-columns: repeat(2, 1fr); } }

/* ---------- closing note ---------- */
.fin-note { margin-top: clamp(2.4rem,5vw,3.4rem); padding-top: 1.6rem; border-top: 1px solid var(--fin-rule); max-width: 66ch; }
.fin-note h4 { font-family: var(--sans); font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.fin-note p { font-size: .9rem; line-height: 1.7; color: var(--grey); }

/* ---------- lightbox ---------- */
.fin-lb { position: fixed; inset: 0; z-index: 90; background: rgba(16,14,12,.96); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 1.3rem; padding: 2rem; }
.fin-lb.on { display: flex; }
.fin-lb img { max-width: 86vw; max-height: 68vh; object-fit: contain; background: #fff; }
.fin-lb__cap { text-align: center; max-width: 48ch; }
.fin-lb__cap b { display: block; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .45rem; }
.fin-lb__cap span { color: #fff; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.fin-lb__x, .fin-lb__p, .fin-lb__n { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); color: #fff; width: 46px; height: 46px; font-size: 1.15rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fin-lb__x { top: 1.2rem; right: 1.2rem; }
.fin-lb__p { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.fin-lb__n { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- exhibit sheets (2026-09-14): floor plans and elevations, shown whole inside the tile ---------- */
.fin-item__img--sheet img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.fin-body--exhibit .fin-lb img { max-height: 84vh; }
