/* Inner pages (Process, Studio, Projects). Same artboard system as the homepage (see base.css):
   everything is placed in Figma design pixels × --u, so it stays on the red guide lines. */

.pre { white-space: pre-wrap; }
.r-al { text-align: right; }

/* Page titles: Cormorant Garamond 160 / 128 (mobile 72 / 70) */
.g-title { margin: 0; font-family: var(--ff-garamond); font-weight: 500; }
/* Figma trims this title to its cap height, so its --y is the top of the capitals.
   With a 128 line box at 160 px the capitals start 14.96 px down: pull the box up by that much. */
.g-title--trim { margin-top: calc(-14.96 * var(--u)); }

.t-col { display: flex; flex-direction: column; }
.flipx { transform: scaleX(-1); }

/* Bordered boxes (quotes, process steps); the 1 px stroke is drawn inside, like Figma */
.qbox { box-shadow: inset 0 0 0 1px var(--line-grey); display: flex; align-items: center; justify-content: center; }
.qbox-in { display: flex; flex-direction: column; }
.qbox-q { display: flex; align-items: center; justify-content: center; text-align: center; }

.step { box-shadow: inset 0 0 0 1px var(--line-grey); padding: calc(30 * var(--u)); display: flex; flex-direction: column; justify-content: flex-end; gap: calc(20 * var(--u)); text-transform: lowercase; color: var(--ink); }
.step--m { box-shadow: inset 0 0 0 calc(.601 * var(--u)) var(--line-grey); padding: calc(16 * var(--u)); gap: calc(12 * var(--u)); }
.step--gold { background: var(--gold); color: var(--bg); box-shadow: none; }
/* Ivy numbers trimmed to cap height: the box runs from the cap top to the baseline */
.step-num, .step-star { text-align: right; line-height: .453em; height: .685em; }
.step-star { font-size: calc(80 * var(--u)); letter-spacing: calc(3.2 * var(--u)); height: calc(31 * var(--u)); }
.step--m .step-star { font-size: calc(48 * var(--u)); letter-spacing: 0; height: calc(18.642 * var(--u)); }

/* Process accordion rows: the process page draws its lines at 50 % gold */
.row-line--strong { border-bottom-color: rgba(255, 214, 118, .5); }
.proc-chev { position: absolute; width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.proc-chev .chev { position: absolute; left: 0; top: 0; }
@property --pd { syntax: "<number>"; inherits: true; initial-value: 813; }
@property --pm { syntax: "<number>"; inherits: true; initial-value: 875; }
.board--desk .proc-art { --pd: 813; }
.board--mob .proc-art { --pm: 875; }
.proc-art { transition: --pd .95s var(--ease-io), --pm .95s var(--ease-io); }
/* everything below the Process row moves with it */
.proc-after { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.board--desk .proc-after { transform: translateY(calc((var(--pd) - 813) * var(--u))); }
.board--mob .proc-after { transform: translateY(calc((var(--pm) - 875) * var(--u))); }
.proc-after > * { pointer-events: auto; }

.m-cta { display: flex; align-items: flex-end; }

/* Captions under photos (team names, dates, project names) */
.capt { font-weight: 600; color: var(--ink-50); font-variant-numeric: lining-nums proportional-nums; }
.pcap { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--ink-50); white-space: nowrap; font-variant-numeric: lining-nums proportional-nums; }
.pcap .up { text-transform: uppercase; }

/* ---------- Projects: filters ---------- */
.cat { background: none; border: 0; padding: 0; font-family: inherit; color: var(--ink-50); text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: color .45s ease; }
.cat:hover { color: var(--ink-74); }
.cat.is-on { color: var(--gold); }
.cat-dot { position: absolute; border-radius: 50%; background: var(--gold); transition: left .7s var(--ease-io), top .7s var(--ease-io); }
.style-pick { overflow: hidden; }
.style-name { position: absolute; left: 0; top: 0; white-space: nowrap; color: rgba(254, 251, 243, .75); transition: translate .6s var(--ease-io), opacity .45s ease; }
.style-name.out-up { translate: 0 -110%; opacity: 0; }
.style-name.out-down { translate: 0 110%; opacity: 0; }
.style-name.no-anim { transition: none; }
.arrow-btn.chev24 { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.arrow-btn img { width: 100%; height: 100%; }
.up-chev { transform: rotate(-90deg); }
.down-chev { transform: rotate(90deg); }
.filt-rule { border-top: 1px solid var(--line-grey); display: flex; justify-content: space-between; align-items: center; }
.reset-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; cursor: pointer; transition: color .25s ease; }
.reset-btn:hover { color: var(--gold); }
.proj-fig { transition: opacity .5s ease, translate .6s var(--ease-out); }
.proj-fig.is-swapping { opacity: 0; translate: 0 calc(24 * var(--u)); transition: opacity .35s ease, translate .35s ease; }
a.proj-fig { display: block; color: inherit; }
.proj-fig .ph { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .proj-fig.is-swapping { opacity: 1; translate: none; }
}
.evo { display: flex; align-items: flex-end; }
.filt-wrap { position: absolute; left: 0; top: 0; width: 100%; height: 0; }
.pcap--v { flex-direction: column; align-items: flex-start; gap: calc(4 * var(--u)); }

/* The giant footer wordmark's line box reaches up over the circle button: let clicks through it */
footer .brand { pointer-events: none; }
