/* tieronearchitects.ph as one platform: the landing page, /residential and
   /commercial share styles.css; this sheet adds the page links in the nav,
   the page heroes, the featured-project story and the new sections. */

/* Nav: the three pages first, then this page's own sections */
.nav__page a { color: var(--ink); font-weight: 600; }
.nav__page a[aria-current="page"] { color: var(--timber); }
.nav__sep { width: 1px; align-self: center; height: 1.1rem; background: var(--line); }
.menu__pages { list-style: none; margin: 0 0 1.5rem; padding: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border-bottom: 1px solid var(--line); }
.menu__pages a { font: 600 .8rem/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.menu__pages a[aria-current="page"] { color: var(--timber); }
@media (max-width: 1360px) { .nav__links > li:not(.nav__page):not(.nav__sep):nth-last-child(-n+2) { display: none; } }
@media (max-width: 1180px) { .nav__links > li:not(.nav__page) { display: none; } }

/* Featured project, told in chapters beside a sticky account */
.story { padding: var(--sect) var(--gutter); }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.story__text { position: sticky; top: calc(var(--nav-h) + 2rem); }
.story__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 2rem; margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.story__facts div { display: grid; gap: .25rem; }
.story__facts dt { font: 600 .7rem/1.3 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.story__facts dd { margin: 0; font: 500 1.25rem/1.25 var(--f-display); color: var(--ink); }
.story__chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.chap__n { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 1rem; font: 500 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--f-display); color: var(--ink); }
.chap__n span { font: 600 .74rem/1 var(--f-text); letter-spacing: .2em; color: var(--timber); }
.chap__photos { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chap__photos--1 { grid-template-columns: 1fr; }
.chap__photos--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chap__photos--lead figure:first-child { grid-column: 1 / -1; }
.chap__photos figure { margin: 0; overflow: hidden; background: var(--paper); }
.chap__photos img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.chap__photos--1 img, .chap__photos--lead figure:first-child img { aspect-ratio: 16 / 10; }
.chap__photos figure:hover img { transform: scale(1.03); }
.chap__body { max-width: 52ch; margin: 1rem 0 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__text { position: static; }
}

/* A home, lived in: one rail of real photographs */
.lived { padding: var(--sect) 0; overflow: hidden; }
.lived__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; padding: 0 var(--gutter); }
.lived__head .lede { margin: 0; }
.lived__rail { display: flex; gap: .9rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 0 var(--gutter) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgb(245 241 235 / .3) transparent; cursor: grab; }
.lived__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.lived__rail:focus-visible { outline-offset: -2px; }
.lived__rail figure { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.lived__rail img { height: clamp(16rem, 34vw, 30rem); width: auto; max-width: none; aspect-ratio: auto; object-fit: cover; pointer-events: none; user-select: none; }
.lived__rail .lived__lead img { height: clamp(16rem, 34vw, 30rem); }
.lived__rail figcaption { margin-top: .6rem; font-size: .85rem; color: var(--chalk-dim); }
.lived__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter) 0; }
.lived__hint { font: 600 .7rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--chalk-dim); }
@media (max-width: 900px) { .lived__head { grid-template-columns: 1fr; } .lived__rail img { height: 15rem; } }

/* Project cards */
.homes, .sectors, .clients { padding: var(--sect) var(--gutter); }
.pgrid { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); }
.pcard[hidden] { display: none; }
.pcard__btn { display: grid; gap: .9rem; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pcard__img { margin: 0; overflow: hidden; background: var(--paper); }
.pcard__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease-out); }
.pcard__btn:hover .pcard__img img { transform: scale(1.04); }
.pcard__meta { display: grid; gap: .2rem; }
.pcard__status { font: 600 .68rem/1.3 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--timber); }
.pcard__title { font: 500 1.45rem/1.15 var(--f-display); color: var(--ink); }
.pcard__place { font-size: .92rem; color: var(--ink-2); }
.pcard__facts { font-size: .85rem; color: var(--ink-2); opacity: .8; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.filter span { margin-left: .35rem; opacity: .6; font-weight: 500; }

/* Design without limits: modern beside modern classical */
.styles { padding: 0 var(--gutter) var(--sect); }
.styles__head { max-width: 62rem; }
.styles__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.styles__f { position: relative; display: block; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; overflow: hidden; }
.styles__f figure { margin: 0; }
.styles__f img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.styles__f:hover img { transform: scale(1.03); }
.styles__f::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(20 15 10 / .7), rgb(20 15 10 / 0) 50%); pointer-events: none; }
.styles__tag { position: absolute; z-index: 1; left: 1.25rem; bottom: 2.9rem; font: 500 clamp(1.8rem, 3vw, 2.6rem)/1 var(--f-display); font-style: italic; }
.styles__name { position: absolute; z-index: 1; left: 1.25rem; bottom: 1.2rem; font-size: .88rem; color: rgb(255 255 255 / .85); }
@media (max-width: 760px) { .styles__pair { grid-template-columns: 1fr; } }

/* Process and timeline, in months to scale */
.process { padding: var(--sect) var(--gutter); background: var(--paper); }
.tline { display: flex; gap: 3px; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.tline__seg { flex: var(--m) 1 0; min-width: 0; display: grid; gap: .25rem; padding: 1rem 1rem 1.1rem; border-top: 3px solid var(--timber); background: var(--ivory); }
.tline__seg--p { border-color: var(--gold); min-width: 8.5rem; }
.tline__seg--c { border-color: var(--espresso); }
.tline__seg b { font: 500 1.35rem/1.1 var(--f-display); color: var(--ink); }
.tline__seg span { font-weight: 600; color: var(--ink); }
.tline__seg small { font-size: .8rem; color: var(--ink-2); }
.psteps { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.psteps li { display: grid; gap: .6rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--line); }
.psteps span { font: 500 2.4rem/1 var(--f-display); color: var(--timber); }
.psteps b { font-weight: 600; font-size: .98rem; line-height: 1.4; color: var(--ink); }
.process__more { margin: 2.5rem 0 0; }
@media (max-width: 1000px) { .psteps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tline { flex-direction: column; } .tline__seg { min-width: 0; } .psteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Future-ready, as a doorway to the full walk on the landing page */
.fteaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.fteaser__img { margin: 0; min-height: 28rem; }
.fteaser__img img { width: 100%; height: 100%; object-fit: cover; }
.fteaser__body { padding: var(--sect) var(--gutter); align-self: center; }
.fteaser__chips { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.fteaser__chips li { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--chalk-text); }
@media (max-width: 900px) { .fteaser { grid-template-columns: 1fr; } .fteaser__img { min-height: 18rem; } }

/* Homeowners' words */
.words { padding: var(--sect) 0; overflow: hidden; }
.words .sect-head { padding: 0 var(--gutter); }
.words__q { list-style: none; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.words__q blockquote { margin: 0; }
.words__q blockquote p { margin: 0; font: 400 clamp(1.3rem, 1.9vw, 1.65rem)/1.35 var(--f-display); color: var(--chalk-text); }
.words__by { margin: 1rem 0 0; font-size: .9rem; color: var(--chalk-dim); }
.words__by b { color: var(--gold); font-weight: 600; }
.words__wall { margin-top: clamp(3rem, 6vw, 4.5rem); }
.words__track { display: flex; gap: 1rem; width: max-content; animation: drift 80s linear infinite; }
.words__wall:hover .words__track { animation-play-state: paused; }
.words__track figure { margin: 0; width: clamp(13rem, 20vw, 18rem); flex: 0 0 auto; }
.words__track img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .words__track { animation: none; } .words__wall { overflow-x: auto; } }
@media (max-width: 760px) { .words__q { grid-template-columns: 1fr; } }

/* Commercial: how we deliver */
.deliver { padding: var(--sect) var(--gutter); }
.deliver__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.deliver__q { margin: 2.5rem 0 0; padding-top: 1.1rem; background: linear-gradient(var(--gold), var(--gold)) 0 0 / 2.5rem 1px no-repeat; }
.deliver__q p { margin: 0; font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.35 var(--f-display); font-style: italic; }
.deliver__q footer { margin-top: .75rem; font-size: .85rem; color: var(--chalk-dim); }
.deliver__p { list-style: none; margin: 0; padding: 0; display: grid; }
.deliver__p li { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font: 500 clamp(1.4rem, 2.2vw, 1.9rem)/1.15 var(--f-display); }
.deliver__p span { font: 600 .74rem/1 var(--f-text); letter-spacing: .18em; color: var(--gold); }
.deliver__kinds { margin: 1.75rem 0 0; color: var(--chalk-dim); font-size: .95rem; }
.deliver__kinds b { display: block; margin-bottom: .3rem; color: var(--chalk-text); }
.deliver__bp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; align-items: end; margin-top: clamp(3rem, 6vw, 4.5rem); }
.deliver__bp figure { margin: 0; }
.deliver__bp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.deliver__bp p { margin: 0; color: var(--chalk-dim); }
.deliver__bp p b { display: block; margin-bottom: .4rem; font: 500 1.5rem/1.2 var(--f-display); color: var(--chalk-text); }
@media (max-width: 900px) { .deliver__grid { grid-template-columns: 1fr; } .deliver__bp { grid-template-columns: 1fr 1fr; } .deliver__bp p { grid-column: 1 / -1; } }

.clients__wall { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients__wall li { display: grid; place-items: center; min-height: 7rem; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font: 500 clamp(1.15rem, 1.7vw, 1.5rem)/1.15 var(--f-display); color: var(--ink); }
@media (max-width: 760px) { .clients__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Landing: two paths, each one big link. Both sides cycle their own projects; the
   hovered side widens and the other dims; an italic "or" sits on the seam. */
.paths { padding: var(--sect) var(--gutter); }
.paths__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.paths__head .lede { margin: 0; }
.paths__row { position: relative; display: flex; gap: 4px; height: clamp(34rem, 74vh, 50rem); }
.path { container-type: inline-size; position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.25rem, 2.4vw, 2.25rem); overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: #120e0a; transition: flex-grow 1s var(--ease-out); }
.path:focus-visible { outline: 2px solid var(--gold); outline-offset: -6px; }
.path__pics { position: absolute; inset: 0; z-index: -2; }
.path__pic { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s cubic-bezier(.45, 0, .2, 1), filter .8s ease; }
.path__pic.is-on { opacity: 1; z-index: 1; }
.path__pic.is-leaving { opacity: 1; }
.path__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.path__pic.is-on img, .path__pic.is-leaving img { animation: path-push 7s cubic-bezier(.33, 0, .25, 1) forwards; }
@keyframes path-push { from { transform: scale(1.08); } to { transform: scale(1); } }
.path__shade { position: absolute; inset: 0; z-index: -1; transition: background .8s ease; }
.path--res .path__shade { background: linear-gradient(0deg, rgb(27 20 12 / .86) 0%, rgb(27 20 12 / .38) 38%, rgb(27 20 12 / 0) 62%), linear-gradient(180deg, rgb(27 20 12 / .5), rgb(27 20 12 / 0) 22%); }
.path--com .path__shade { background: linear-gradient(0deg, rgb(12 9 7 / .94) 0%, rgb(12 9 7 / .5) 40%, rgb(12 9 7 / .12) 64%), linear-gradient(180deg, rgb(12 9 7 / .6), rgb(12 9 7 / 0) 24%); }
.path--com .path__pic img { filter: saturate(.92) brightness(.9); }
.path__top { display: flex; align-items: baseline; gap: .9rem; font: 600 .72rem/1.3 var(--f-text); letter-spacing: .2em; text-transform: uppercase; }
.path__no { color: var(--gold); }
.path__count { margin-left: auto; letter-spacing: .14em; color: rgb(255 255 255 / .7); text-align: right; }
.path__body { display: grid; gap: 1rem; }
.path__lead { max-width: 22ch; font: 500 clamp(1.6rem, 4.6cqi, 2.4rem)/1.08 var(--f-display); }
.path__lead em { font-weight: 400; color: #f1dfc6; }
.path--com .path__lead em { color: var(--gold); }
.path__now { display: flex; align-items: center; gap: .9rem; min-height: 1.4rem; }
.path__bar { position: relative; flex: 0 0 3rem; height: 1px; background: rgb(255 255 255 / .3); overflow: hidden; }
.path__bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.path.is-running .path__bar i { animation: fill var(--hold, 5s) linear forwards; }
.path__caps { position: relative; flex: 1; min-height: 1.4rem; }
.path__cap { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: .88rem; color: rgb(255 255 255 / .8); opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.path__cap b { font-weight: 600; color: #fff; }
.path__cap.is-on { opacity: 1; transform: none; }
.path__word { display: block; margin: .25rem 0 -.08em; font: 500 13.4cqi/.8 var(--f-display); letter-spacing: -.035em; text-transform: uppercase; white-space: nowrap; }
.path--res .path__word { color: var(--ivory); }
.path--com .path__word { font-size: 13.6cqi; color: transparent; -webkit-text-stroke: 1px rgb(201 164 122 / .9); }
.path__go { position: absolute; top: clamp(1rem, 2vw, 1.75rem); right: clamp(1rem, 2vw, 1.75rem); display: none; }
.paths__or { position: absolute; z-index: 3; left: 50%; top: 34%; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; margin: -2.125rem 0 0 -2.125rem; border-radius: 50%; background: var(--ivory); color: var(--ink); font: 400 1.6rem/1 var(--f-display); font-style: italic; box-shadow: 0 10px 30px -12px rgb(27 22 17 / .6); pointer-events: none; transition: left 1s var(--ease-out), opacity .4s ease; }
@media (hover: hover) and (min-width: 901px) {
  .paths__row:hover .path { flex-grow: .72; }
  .paths__row .path:hover { flex-grow: 1.28; }
  .paths__row:has(.path--res:hover) .paths__or { left: 64%; }
  .paths__row:has(.path--com:hover) .paths__or { left: 36%; }
  .paths__row:hover .path:not(:hover) .path__pic img { filter: grayscale(.5) brightness(.62); }
  .path .path__count { transition: opacity .5s ease; }
}
@media (max-width: 900px) {
  .paths__head { grid-template-columns: 1fr; }
  .paths__row { flex-direction: column; height: auto; gap: 4px; }
  .path { min-height: 30rem; }
  .paths__or { top: 50%; left: 50%; width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; font-size: 1.35rem; }
  .path__count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .path, .path__pic, .paths__or { transition: none; } .path__pic img { animation: none !important; transform: none; } }

/* Landing: as featured in Archikonst */
.press { padding: var(--sect) var(--gutter); background: var(--paper); }
.press__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.press__cover { margin: 0; }
.press__cover img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.press__q { margin: 1.5rem 0 0; }
.press__q p { margin: 0; font: 400 clamp(1.6rem, 2.6vw, 2.3rem)/1.2 var(--f-display); font-style: italic; color: var(--ink); }
.press__p { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.press__p li { padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink-2); }
.press__by { margin: 1.75rem 0 0; font-size: .92rem; line-height: 1.7; color: var(--ink-2); }
.press__by b { color: var(--ink); font-weight: 600; }
.press__q2 { margin: 1.75rem 0 0; padding-top: 1rem; background: linear-gradient(var(--timber), var(--timber)) 0 0 / 2.5rem 1px no-repeat; }
.press__q2 p { margin: 0; font: 400 1.25rem/1.4 var(--f-display); font-style: italic; color: var(--ink-2); }
@media (max-width: 900px) { .press__grid { grid-template-columns: 1fr; } .press__cover img { aspect-ratio: 1; } }

.teamshot { margin: clamp(3rem, 6vw, 5rem) 0 0; }
.teamshot img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.teamshot figcaption { margin-top: .75rem; font-size: .88rem; color: var(--ink-2); }

/* Brief: the extra rows of Tier One's own proposal details */
.part__row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.part__label { margin: 1.25rem 0 .6rem; font: 600 .82rem/1.3 var(--f-text); color: var(--chalk-dim); }
.field__opt { font-weight: 400; opacity: .7; }
.link svg { width: 1rem; height: 1rem; flex: none; transition: transform .25s var(--ease-out); }
.link:hover svg { transform: translateX(3px); }

/* ───────── Residential hero: the cover of their magazine ─────────
   A tall cover photograph with the nameplate and a three-part caption, beside an
   ivory page: headline, deck, actions, and "In this issue" as the slideshow index. */
.rhero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: calc(100svh - var(--nav-h)); margin-top: var(--nav-h); padding: 0; background: var(--ivory); }
.rhero__cover { position: relative; overflow: hidden; isolation: isolate; background: var(--espresso); }
.rhero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.8s cubic-bezier(.45, 0, .2, 1); }
.rhero__slide.is-on { opacity: 1; z-index: 1; }
.rhero__slide.is-leaving { opacity: 1; z-index: 0; }
.rhero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); }
.rhero__slide.is-on img, .rhero__slide.is-leaving img { animation: kb 12s cubic-bezier(.33, 0, .25, 1) forwards; }
@keyframes kb { from { transform: scale(1.07); } to { transform: scale(1); } }
.rhero__veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgb(20 15 10 / .55) 0%, rgb(20 15 10 / .12) 24%, rgb(20 15 10 / 0) 46%, rgb(20 15 10 / .1) 64%, rgb(20 15 10 / .72) 100%); }
.rhero__nameplate { position: absolute; z-index: 3; top: clamp(1.1rem, 2.4vw, 2rem); left: 0; right: 0; margin: 0; text-align: center; font: 500 11.4cqi/.82 var(--f-display); letter-spacing: -.035em; text-transform: uppercase; color: var(--ivory); text-shadow: 0 2px 30px rgb(20 15 10 / .25); }
.rhero__cover { container-type: inline-size; }
.rhero__issue { position: absolute; z-index: 3; top: calc(clamp(1.1rem, 2.4vw, 2rem) + 10.2cqi); left: clamp(1.25rem, 3vw, 2.5rem); right: clamp(1.25rem, 3vw, 2.5rem); display: flex; justify-content: space-between; margin: 0; padding-top: .65rem; border-top: 1px solid rgb(245 241 235 / .5); font: 600 .66rem/1.3 var(--f-text); letter-spacing: .22em; text-transform: uppercase; color: rgb(245 241 235 / .92); }
.rhero__caps { position: absolute; z-index: 3; left: clamp(1.25rem, 3vw, 2.5rem); right: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.25rem, 3vw, 2.25rem); min-height: 5.5rem; }
.rhero__cap { position: absolute; left: 0; bottom: 0; display: grid; gap: .25rem; max-width: 30rem; margin: 0; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .9s ease .25s, transform .9s var(--ease-out) .25s; }
.rhero__cap.is-on { opacity: 1; transform: none; }
.rhero__label { font: 600 .66rem/1.3 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.rhero__tag { font: 600 .9rem/1.3 var(--f-text); letter-spacing: .08em; text-transform: uppercase; }
.rhero__line { font-size: .9rem; line-height: 1.5; color: rgb(255 255 255 / .82); }
.rhero__page { display: flex; flex-direction: column; justify-content: center; gap: clamp(1.1rem, 2.4vh, 1.75rem); padding: clamp(2rem, 5vh, 4rem) clamp(4.5rem, 6vw, 6rem) clamp(2rem, 5vh, 4rem) clamp(1.5rem, 4vw, 4rem); }
.rhero__title { margin: 0; font: 500 clamp(2.6rem, 4.6vw, 4.6rem)/.98 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.rhero__title em { font-weight: 400; color: var(--timber); }
.rhero__deck { margin: 0; max-width: 40ch; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.rhero__deck::first-letter { float: left; margin: .08em .1em 0 0; font: 500 3.4em/.78 var(--f-display); color: var(--ink); }
.rhero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; }
.rhero__contents { margin-top: clamp(.5rem, 2vh, 1.5rem); }
.rhero__ch { margin: 0 0 .4rem; font: 500 1.05rem/1.2 var(--f-display); font-style: italic; color: var(--ink-2); }
.rhero__index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rhero__home { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-2); text-align: left; font: inherit; cursor: pointer; transition: color .3s ease, padding-left .4s var(--ease-out); }
.rhero__home:hover, .rhero__home[aria-pressed="true"] { color: var(--ink); padding-left: .4rem; }
.rhero__name { font: 500 1.2rem/1.2 var(--f-display); }
.rhero__place { font-size: .8rem; text-align: right; }
.rhero__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
.rhero__bar b { position: absolute; inset: 0; background: var(--timber); transform: scaleX(0); transform-origin: left; }
.rhero__home[aria-pressed="true"] .rhero__bar b { animation: fill var(--hold, 7s) linear forwards; }
[data-show].is-paused [aria-pressed="true"] i b { animation-play-state: paused; }
@media (max-width: 900px) {
  .rhero { grid-template-columns: 1fr; min-height: 0; }
  .rhero__cover { height: min(128vw, 40rem); }
  .rhero__nameplate { font-size: 13.4cqi; }
  .rhero__issue { top: calc(clamp(1.1rem, 2.4vw, 2rem) + 11.8cqi); }
  .rhero__page { padding: 2rem var(--gutter) 2.5rem; }
  .rhero__line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rhero__slide, .chero__slide { transition: none; } .rhero__slide img, .chero__slide img { animation: none !important; transform: none; } }

/* ───────── Commercial hero: a drawing sheet at night ─────────
   Full-bleed buildings, the headline at the left, a title block in the corner that
   follows the slide, and a dimension line across the foot as the navigation. */
.chero { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: max(100svh, 44rem); padding: calc(var(--nav-h) + 1rem) var(--gutter) 0; overflow: hidden; isolation: isolate; background: #120e0a; }
.chero__stage { position: absolute; inset: 0; z-index: -1; }
.chero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s cubic-bezier(.45, 0, .2, 1); }
.chero__slide.is-on { opacity: 1; z-index: 1; }
.chero__slide.is-leaving { opacity: 1; z-index: 0; }
.chero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.chero__slide.is-on img, .chero__slide.is-leaving img { animation: kbc 10s cubic-bezier(.33, 0, .25, 1) forwards; }
@keyframes kbc { from { transform: scale(1.06); } to { transform: scale(1); } }
.chero__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgb(14 11 8 / .82) 0%, rgb(14 11 8 / .45) 34%, rgb(14 11 8 / 0) 60%), linear-gradient(0deg, rgb(14 11 8 / .9) 0%, rgb(14 11 8 / .35) 26%, rgb(14 11 8 / 0) 48%), linear-gradient(180deg, rgb(14 11 8 / .35), rgb(14 11 8 / 0) 18%); }
.chero__body { position: relative; z-index: 3; align-self: end; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem; padding-bottom: clamp(1.75rem, 4vh, 2.75rem); }
.chero__copy { max-width: 40rem; color: #fff; }
.chero__title { margin: 0; font: 500 clamp(2.7rem, 5vw, 5rem)/.98 var(--f-display); letter-spacing: -.02em; }
.chero__title em { font-weight: 400; color: var(--gold); }
.chero__sub { margin: 1.1rem 0 0; max-width: 46ch; font-size: 1rem; line-height: 1.6; color: rgb(255 255 255 / .8); }
/* the title block, as on their drawing sheets */
.tblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: clamp(19rem, 26vw, 24rem); margin: 0 4.5rem 0 0; background: rgb(18 14 10 / .82); border: 1px solid rgb(201 164 122 / .55); color: #fff; }
.tblock__row { position: relative; display: grid; gap: .25rem; min-height: 3.6rem; padding: .55rem .8rem; border-right: 1px solid rgb(201 164 122 / .3); border-bottom: 1px solid rgb(201 164 122 / .3); overflow: hidden; }
.tblock__row:nth-child(2n+1):not(.tblock__row--wide) { border-right: 0; }
.tblock__row--wide { grid-column: 1 / -1; border-right: 0; }
.tblock dt { font: 600 .6rem/1 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tblock__v { grid-area: 2 / 1; margin: 0; font: 500 1.05rem/1.2 var(--f-display); opacity: 0; transform: translateY(6px); transition: opacity .7s ease .3s, transform .7s var(--ease-out) .3s; }
.tblock__row--wide .tblock__v { font-size: 1.3rem; }
.tblock__v.is-on { opacity: 1; transform: none; }
.tblock__row--brand { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 0; border: 0; padding: .6rem .8rem; }
.tblock__row--brand img { width: 6.5rem; height: auto; }
.tblock__row--brand span { font: 600 .6rem/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: rgb(245 241 235 / .7); }
/* the dimension line: one span per project, tick marks at each end, the active span fills */
.dimline { position: relative; z-index: 3; list-style: none; display: flex; margin: 0 4.5rem 0 0; padding: 0 0 clamp(1.25rem, 3vh, 2rem); }
.dimline li { flex: 1 1 0; min-width: 0; }
.dimline__seg { position: relative; display: block; width: 100%; padding: 0 0 .9rem; border: 0; background: none; color: rgb(245 241 235 / .55); text-align: center; font: 600 .66rem/1.3 var(--f-text); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: color .3s ease; }
.dimline__seg:hover, .dimline__seg[aria-pressed="true"] { color: #fff; }
.dimline__t { display: block; padding: 0 .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dimline__bar { position: absolute; left: 0; right: 0; bottom: .3rem; height: 1px; background: rgb(245 241 235 / .35); }
.dimline__bar::before, .dimline__bar::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: rgb(245 241 235 / .6); transform: rotate(45deg); }
.dimline__bar::before { left: 0; } .dimline__bar::after { right: 0; }
.dimline__bar b { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.dimline__seg[aria-pressed="true"] .dimline__bar b { animation: fill var(--hold, 6.5s) linear forwards; }
.dimline__seg[aria-pressed="true"] .dimline__bar::before, .dimline__seg[aria-pressed="true"] .dimline__bar::after { background: var(--gold); }
@media (max-width: 900px) {
  .chero__body { grid-template-columns: 1fr; padding-bottom: 1.5rem; }
  .tblock { width: auto; margin-right: 0; }
  .tblock__row--brand { display: none; }
  .dimline { margin-right: 0; }
  .dimline__seg:not([aria-pressed="true"]) .dimline__t { opacity: 0; }
}
@media (max-width: 640px) {
  .chero__sub { display: none; }
  .chero .hero__actions .link { display: none; }
  .tblock__row:nth-child(n+3):not(.tblock__row--brand) { display: none; }
}

/* ───────── Landing: where would you like to start? ───────── */
.choose { width: min(54rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100svh - 2rem); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.choose::backdrop { background: rgb(27 22 17 / .42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.choose__card { position: relative; padding: clamp(1.5rem, 3.4vw, 2.75rem); background: var(--ivory); box-shadow: 0 30px 80px -30px rgb(27 22 17 / .55); overflow-y: auto; max-height: calc(100svh - 2rem); }
.choose__card .eyebrow { margin-bottom: .6rem; }
.choose__title { margin: 0; font: 500 clamp(2rem, 3.6vw, 3rem)/1.04 var(--f-display); letter-spacing: -.01em; }
.choose__title em { font-weight: 400; }
.choose__x { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.choose__x:hover { color: var(--ink); background: var(--paper); }
.choose__x svg { width: 1.1rem; height: 1.1rem; }
.choose__opts { list-style: none; margin: clamp(1.25rem, 2.6vw, 2rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.choose__opt { display: grid; gap: .8rem; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.choose__opt figure { margin: 0; overflow: hidden; background: var(--paper); }
.choose__opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease-out); }
.choose__opt:hover img, .choose__opt:focus-visible img { transform: scale(1.05); }
.choose__opt span { display: grid; gap: .2rem; }
.choose__opt b { display: inline-flex; align-items: center; gap: .45rem; font: 500 1.45rem/1.15 var(--f-display); color: var(--ink); }
.choose__opt b::after { content: "→"; font-family: var(--f-text); font-size: .95rem; color: var(--timber); transition: transform .25s var(--ease-out); }
.choose__opt:hover b::after { transform: translateX(4px); }
.choose__opt small { font-size: .85rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 640px) {
  .choose__opts { grid-template-columns: 1fr; gap: .6rem; }
  .choose__opt { grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem; }
  .choose__opt img { aspect-ratio: 1; }
}
.choose__card:focus { outline: none; }
.dr--com .dr__word { font-size: 13.2cqi; }

/* ───────── First load: a calm, staggered entrance ─────────
   CSS only (no script needed, so nothing waits on JS). Each piece fades and rises
   into place on the site's own ease, one after another; "backwards" fill hands
   control back to the scroll effects once it ends. Off for reduced motion. */
@keyframes in-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes in-fade { from { opacity: 0; } }
@keyframes in-down { from { opacity: 0; transform: translateY(-14px); } }
@keyframes in-settle { from { opacity: 0; transform: scale(1.035); } }
@keyframes in-word { from { opacity: 0; transform: translateY(14%); letter-spacing: -.01em; } }
@media (prefers-reduced-motion: no-preference) {
  .nav { animation: in-down .9s var(--ease-out) backwards; }
  .hero__top > * { animation: in-rise 1s var(--ease-out) backwards; }
  .hero__top > :nth-child(1) { animation-delay: .15s; }
  .hero__top > :nth-child(2) { animation-delay: .3s; }
  .dock { animation: in-fade 1.2s ease-out 1.6s backwards; }

  /* landing: the slideshow settles, the words follow (the big wordmark keeps its own rise) */
  .hero:not(.rhero):not(.chero) .hero__stage { animation: in-fade 1.6s cubic-bezier(.45, 0, .2, 1) .2s backwards; }
  .hero:not(.rhero):not(.chero) .hero__title { animation: in-rise 1.1s var(--ease-out) .75s backwards; }
  .hero:not(.rhero):not(.chero) .hero__sub { animation: in-rise 1.1s var(--ease-out) .9s backwards; }
  .hero:not(.rhero):not(.chero) .hero__actions { animation: in-rise 1.1s var(--ease-out) 1.05s backwards; }
  .hero:not(.rhero):not(.chero) .hero__base { animation: in-fade 1.2s ease-out 1.3s backwards; }

  /* residential: the cover settles, the nameplate lands, then the page reads in */
  .rhero__cover { animation: in-settle 1.6s var(--ease-out) .1s backwards; }
  .rhero__nameplate { animation: in-word 1.4s var(--ease-out) .45s backwards; }
  .rhero__issue, .rhero__caps { animation: in-fade 1.2s ease-out 1s backwards; }
  .rhero__title { animation: in-rise 1.1s var(--ease-out) .55s backwards; }
  .rhero__deck { animation: in-rise 1.1s var(--ease-out) .72s backwards; }
  .rhero__acts { animation: in-rise 1.1s var(--ease-out) .88s backwards; }
  .rhero__ch { animation: in-fade 1s ease-out 1.1s backwards; }
  .rhero__index li { animation: in-rise 1s var(--ease-out) backwards; }
  .rhero__index li:nth-child(1) { animation-delay: 1.35s; } .rhero__index li:nth-child(2) { animation-delay: 1.45s; }
  .rhero__index li:nth-child(3) { animation-delay: 1.55s; } .rhero__index li:nth-child(4) { animation-delay: 1.65s; }

  /* commercial: lights come up on the building, then the copy, the spec list, the outline word */
  .chero__stage { animation: in-fade 1.8s cubic-bezier(.45, 0, .2, 1) backwards; }
  .chero__title { animation: in-rise 1.1s var(--ease-out) .7s backwards; }
  .chero__sub { animation: in-rise 1.1s var(--ease-out) .85s backwards; }
  .chero__copy .hero__actions { animation: in-rise 1.1s var(--ease-out) 1s backwards; }
  .tblock { animation: in-settle 1.2s var(--ease-out) 1.05s backwards; }
  .dimline li { animation: in-fade .9s ease-out backwards; }
  .dimline li:nth-child(1) { animation-delay: 1.2s; } .dimline li:nth-child(2) { animation-delay: 1.3s; } .dimline li:nth-child(3) { animation-delay: 1.4s; }
  .dimline li:nth-child(4) { animation-delay: 1.5s; } .dimline li:nth-child(5) { animation-delay: 1.6s; }
}
.tw { display: inline-block; }

/* Commercial: the valued-clients wall, logos in one ink tone on the grid, full colour on hover */
.logos { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: clamp(1rem, 2vw, 1.75rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos img { width: auto; height: auto; max-width: 78%; max-height: clamp(2.6rem, 5vw, 4.2rem); object-fit: contain; filter: grayscale(1) contrast(1.35) brightness(.88); mix-blend-mode: multiply; opacity: .86; transition: opacity .45s ease, transform .6s var(--ease-out); }
.logos li:hover img { opacity: 1; transform: scale(1.05); }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Journey: their own timeline under the heading */
.journey__time { max-width: 62ch; }
.journey__time b { color: var(--ink); font-weight: 600; }
.journey__time span { display: block; margin-top: .3rem; font-size: .88rem; opacity: .8; }

/* Valued clients ribbon under the numbers: label in the margin, logos drifting slowly in
   one ink tone, the edges fading into the paper. It keeps moving on hover, as asked. */
.lstrip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.25rem, 3vw, 3rem); padding: clamp(1.5rem, 3vw, 2.25rem) 5.5rem clamp(1.5rem, 3vw, 2.25rem) var(--gutter); border-bottom: 1px solid var(--line); overflow: hidden; }
.lstrip__label { display: grid; gap: .2rem; margin: 0; padding-right: clamp(1rem, 2vw, 2rem); border-right: 1px solid var(--line); white-space: nowrap; }
.lstrip__label em { font: 400 1.3rem/1.1 var(--f-display); font-style: italic; color: var(--ink); }
.lstrip__label span { font-size: .78rem; color: var(--ink-2); }
.lstrip__view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 86%, transparent 100%); }
.lstrip__track { list-style: none; display: flex; align-items: center; width: max-content; margin: 0; padding: 0; animation: lstrip 95s linear infinite; }
.lstrip__track li { flex: none; display: grid; place-items: center; height: 3.6rem; padding: 0 clamp(1.4rem, 2.6vw, 2.4rem); }
.lstrip__track img { display: block; width: auto; height: var(--lh, 2.6rem); max-width: 10rem; object-fit: contain; filter: grayscale(1) contrast(1.35) brightness(.88); mix-blend-mode: multiply; opacity: .78; }
@keyframes lstrip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lstrip__track { animation-duration: 240s; } }
@media (max-width: 760px) {
  .lstrip { grid-template-columns: 1fr; padding-right: 4.25rem; gap: 1rem; }
  .lstrip__label { grid-auto-flow: column; justify-content: start; gap: .75rem; align-items: baseline; border-right: 0; }
  .lstrip__track { animation-duration: 70s; }
}
@media (max-width: 640px) { .tblock__row:nth-child(2) { grid-column: 1 / -1; border-right: 0; } }
/* every logo sits fully inside the ribbon, sized by shape so marks and wordmarks weigh the same */
.lstrip__s { --lh: 3rem; } .lstrip__m { --lh: 2.15rem; } .lstrip__w { --lh: 1.45rem; }
@media (max-width: 760px) { .lstrip__s { --lh: 2.5rem; } .lstrip__m { --lh: 1.8rem; } .lstrip__w { --lh: 1.2rem; } }

/* Journey: the step in frame is marked. A node on the timeline lights (with a ripple from
   main.js), and a timber marker sweeps under the title from left to right. */
.step__node { position: absolute; left: -6px; top: 2.35rem; width: 11px; height: 11px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--stone); transition: background .5s ease, border-color .5s ease; }
.step:first-child .step__node { top: .35rem; }
.step__node i { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--timber); opacity: 0; }
.step.is-on .step__node { background: var(--timber); border-color: var(--timber); }
.step__hl { display: inline; padding: 0 .15em; margin-left: -.15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(180deg, transparent 58%, rgb(201 164 122 / .34) 58%, rgb(201 164 122 / .34) 90%, transparent 90%) no-repeat 0 0 / 0% 100%; transition: background-size 1.1s cubic-bezier(.65, 0, .35, 1) .15s; }
.step.is-on .step__hl { background-size: 100% 100%; }
.step__n { margin-bottom: .55rem; }
.step__name + .step__body { margin-top: .9rem; }
@media (prefers-reduced-motion: reduce) { .step__hl { transition: none; } }

/* ───────── /residential as their magazine feature ───────── */
.masthead { padding: var(--sect) var(--gutter) clamp(2.5rem, 5vw, 4rem); }
.masthead__rule { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font: 600 .7rem/1.3 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.masthead__rule em { font: italic 400 .95rem/1 var(--f-display); letter-spacing: 0; text-transform: none; }
.masthead__t { max-width: 18ch; margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; font: 600 clamp(2.6rem, 5.6vw, 5.4rem)/.98 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.masthead__t em { font-weight: 500; color: var(--timber); }
.masthead__by { margin: 1rem 0 0; font: 600 .8rem/1.3 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.masthead__open { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--line); }
.masthead__dek { margin: 0; font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.25 var(--f-display); font-style: italic; color: var(--ink); }
.masthead__body { margin: 0; max-width: 60ch; font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.masthead__body::first-letter { float: left; margin: .06em .12em 0 0; font: 600 4.6em/.76 var(--f-display); color: var(--ink); }
@media (max-width: 900px) { .masthead__open { grid-template-columns: 1fr; } }

/* chapter headings, as in the feature */
.chapter { max-width: 58rem; }
.chapter__t { margin: 0; font: 600 clamp(2rem, 3.6vw, 3.2rem)/1.04 var(--f-display); letter-spacing: -.01em; color: var(--chalk-text); }
.chapter__t em { font-weight: 500; font-style: italic; color: var(--accent-text); }
.chapter__b { margin: 1rem 0 0; max-width: 62ch; font-size: 1.04rem; line-height: 1.7; color: var(--chalk-dim); }
.chapter-wrap { padding: var(--sect) var(--gutter) 0; }
.chapter-wrap--dark { padding-bottom: 0; }
.chapter-wrap + .story { padding-top: clamp(2.5rem, 5vw, 4rem); }
.chapter-wrap + .homes { padding-top: clamp(2rem, 4vw, 3rem); }
.chapter-wrap--dark + .words { padding-top: clamp(2.5rem, 5vw, 4rem); }
.chapter-pair { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
@media (max-width: 900px) { .chapter-pair { grid-template-columns: 1fr; } }

/* pull quotes */
.pull { margin: clamp(3rem, 6vw, 5rem) auto; max-width: 52rem; padding: 0 var(--gutter); text-align: center; }
.chapter-pair .pull { margin: 0; padding: 0; text-align: left; }
.pull p { margin: 0; font: 400 clamp(1.7rem, 3vw, 2.7rem)/1.18 var(--f-display); font-style: italic; color: var(--chalk-text); }
.pull footer { margin-top: 1rem; font: 600 .72rem/1.3 var(--f-text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }

/* magazine figures and their three-part captions */
.mfig { position: relative; margin: 0; overflow: hidden; background: var(--paper); }
.mfig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.mfig:hover img { transform: scale(1.025); }
.mcap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .2rem; padding: 3.5rem clamp(1rem, 2vw, 1.5rem) clamp(.9rem, 1.6vw, 1.25rem); color: #fff; background: linear-gradient(0deg, rgb(20 15 10 / .82), rgb(20 15 10 / .45) 55%, rgb(20 15 10 / 0)); }
.mcap__label { font: 600 .66rem/1.3 var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.mcap__tag { font: 700 .84rem/1.3 var(--f-text); letter-spacing: .06em; text-transform: uppercase; }
.mcap__line { max-width: 52ch; font-size: .86rem; line-height: 1.5; color: rgb(255 255 255 / .85); }

/* the cover house, in spreads */
.cover-house { padding: 0 var(--gutter) var(--sect); }
.cover-house .chapter { margin-bottom: clamp(2rem, 4vw, 3rem); }
.spread { display: grid; gap: clamp(.75rem, 1.4vw, 1.25rem); }
.spread--a { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.spread--a .mfig--tall { aspect-ratio: 3 / 4; }
.spread__col { display: grid; gap: clamp(1.25rem, 2.6vw, 2.25rem); align-content: start; }
.spread__col .mfig { aspect-ratio: 4 / 3; }
.spread__text { padding: 0 clamp(.25rem, 1vw, 1rem); }
.spread__h { margin: 0; font: 600 clamp(1.6rem, 2.4vw, 2.2rem)/1.08 var(--f-display); color: var(--ink); }
.spread__h em { font-weight: 500; font-style: italic; color: var(--timber); }
.spread__text p { margin: .9rem 0 0; max-width: 56ch; line-height: 1.7; color: var(--ink-2); }
.principles { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: 1.1rem 0 0; padding: 0; }
.principles li { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; color: var(--ink); }
.spread--b { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spread--b .mfig { aspect-ratio: 4 / 3; }
.spread--b .mfig:last-child { aspect-ratio: auto; }
.spread--c { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(.75rem, 1.4vw, 1.25rem); }
.spread--c .mfig { aspect-ratio: 1; }
.spread--c .mcap { padding-top: 2.5rem; }
.mfig--wide { aspect-ratio: 21 / 9; margin-top: clamp(.75rem, 1.4vw, 1.25rem); }
.cover-house__more { margin: 1.5rem 0 0; }
@media (max-width: 900px) {
  .spread--a, .spread--b { grid-template-columns: 1fr; }
  .spread--c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfig--wide { aspect-ratio: 4 / 3; }
  .mcap__line { display: none; }
}

/* the close: the principals */
.closing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: var(--sect) var(--gutter); background: var(--paper); }
.closing__portrait { margin: 0; }
.closing__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.closing__portrait figcaption { margin-top: .7rem; font-size: .82rem; color: var(--ink-2); }
.closing__q { margin: 0; font: 400 clamp(1.7rem, 2.8vw, 2.6rem)/1.2 var(--f-display); color: var(--ink); }
.closing__q em { color: var(--timber); }
.closing__by { margin: 1.2rem 0 1.75rem; font: 600 .74rem/1.4 var(--f-text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.closing__credit { margin: 1.75rem 0 0; font-size: .78rem; color: var(--ink-2); }
@media (max-width: 900px) { .closing { grid-template-columns: 1fr; } .closing__portrait img { aspect-ratio: 1; } }

/* Update tour (?tour): bold system font so the team can read it easily on the card */
.tour--guide .tour__h { font: 700 1.3rem/1.25 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.005em; }
.tour--guide .tour__b, .tour--guide .tour__list, .tour--guide .tour__note { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 500; }
.tour--guide .tour__b { color: var(--ink); }
.tour--guide .tour__list { gap: .25rem; font-size: .84rem; }

/* Novodental is a colour file; in grey it needs more ink to match the rest */
.logos img[src*="novodental"], .lstrip__track img[src*="novodental"] { filter: grayscale(1) brightness(.45) contrast(1.4); }
