/* ==========================================================================
   ARCHINEERS homepage — interactive layer (loaded only by index.html).
   Six deliberate moments: hero, six layers, one team, design→finish,
   project in focus, process. Everything else stays still.

   Base rules = static, readable layout (no JS, reduced motion).
   html.scenes = pinned, scroll-linked versions (added by arch-home.js).
   ========================================================================== */

/* ---------- 1 · Hero ---------- */
.hx { position: relative; background: var(--ink); color: #fff; overflow: hidden; display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h)); padding-top: clamp(28px, 4vw, 56px); }
.hx__grid { position: absolute; inset: 0; margin: 0 auto; width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); padding-inline: var(--gutter); display: flex; justify-content: space-between; pointer-events: none; }
.hx__grid i { width: 1px; background: rgba(255, 255, 255, 0.055); transform-origin: top; }
.hx__inner { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 36px; align-items: center; flex: 1 0 auto; padding-bottom: clamp(32px, 4vw, 56px); }
.hx__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 26px; }
.hx__place { font-size: 15px; color: var(--on-ink-3); }
.hx__title { font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 6vw, 92px); line-height: 0.94; letter-spacing: -0.025em; }
.hx__w { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hx__w > span { display: block; white-space: nowrap; }
.hx__sub { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--on-ink-2); max-width: 30em; }
.hx__note { font-size: 14px; color: var(--on-ink-3); }
.hx__media { grid-column: 7 / span 6; margin: 0; }
.hx__frame { position: relative; padding: 22px; }
.hx__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav-h) - 300px); width: 100%; background: #1c2128; }
.hx__img img { width: 100%; height: 100%; object-fit: cover; transform: translateY(calc(var(--hp, 0) * 6%)) scale(calc(1.06 + var(--hp, 0) * 0.04)); }
.hx__crop { position: absolute; width: 16px; height: 16px; border-color: var(--gold); border-style: solid; border-width: 0; }
.hx__crop--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hx__crop--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hx__crop--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hx__crop--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hx__dim { position: absolute; background: rgba(184, 146, 74, 0.75); }
.hx__dim--h { left: 22px; right: 22px; top: 8px; height: 1px; transform-origin: left; }
.hx__dim--v { top: 22px; bottom: 22px; right: 8px; width: 1px; transform-origin: top; }
.hx__dim::before, .hx__dim::after { content: ""; position: absolute; background: var(--gold); }
.hx__dim--h::before, .hx__dim--h::after { top: -4px; width: 1px; height: 9px; }
.hx__dim--h::before { left: 0; } .hx__dim--h::after { right: 0; }
.hx__dim--v::before, .hx__dim--v::after { left: -4px; height: 1px; width: 9px; }
.hx__dim--v::before { top: 0; } .hx__dim--v::after { bottom: 0; }
.hx__cross { position: absolute; left: 62%; top: 36%; width: 26px; height: 26px; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; }
.hx__cross::before, .hx__cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.85); }
.hx__cross::before { left: 50%; top: -9px; bottom: -9px; width: 1px; }
.hx__cross::after { top: 50%; left: -9px; right: -9px; height: 1px; }
.hx__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 4px 22px 0; font-size: 14px; color: var(--on-ink-3); }
.hx__meta b { color: #fff; font-weight: 500; }
.hx__meta-k { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11.5px; }
.hx__meta .tlink { margin-left: auto; color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); font-size: 14px; }
.hx > .wrap:last-child { position: relative; }
.hx__disc { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-ink); }
.hx__disc a { display: flex; align-items: baseline; gap: 12px; padding: 20px 0 22px; text-decoration: none; color: var(--on-ink-2); font-size: 17px; border-left: 1px solid var(--rule-ink); padding-left: 20px; transition: color 0.2s ease; }
.hx__disc a:first-child { border-left: 0; padding-left: 0; }
.hx__disc a span { font-family: var(--ff-num); font-size: 13px; color: var(--on-ink-3); }
.hx__disc a:hover { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .arch-js .hx__grid i { animation: hx-grid 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .arch-js .hx__grid i:nth-child(2n) { animation-delay: 0.08s; }
  .arch-js .hx__grid i:nth-child(3n) { animation-delay: 0.16s; }
  .arch-js .hx__w > span { animation: hx-rise 0.9s cubic-bezier(.2, .7, .2, 1) both, hx-light 0.6s ease both; }
  .arch-js .hx__w[data-w="0"] > span { animation-delay: 0.15s, 0.9s; }
  .arch-js .hx__w[data-w="1"] > span { animation-delay: 0.27s, 1.5s; }
  .arch-js .hx__w[data-w="2"] > span { animation-delay: 0.39s, 2.1s; }
  .arch-js .hx__img { animation: hx-reveal 1.3s cubic-bezier(.65, 0, .25, 1) 0.2s both; }
  .arch-js .hx__dim--h { animation: hx-scale-x 1s cubic-bezier(.2, .7, .2, 1) 1s both; }
  .arch-js .hx__dim--v { animation: hx-scale-y 1s cubic-bezier(.2, .7, .2, 1) 1.2s both; }
  .arch-js .hx__crop, .arch-js .hx__cross { animation: hx-fade 0.8s ease 1.4s both; }
}
@keyframes hx-grid { from { transform: scaleY(0); } }
@keyframes hx-rise { from { transform: translateY(105%); } }
@keyframes hx-light { from { color: rgba(255, 255, 255, 0.26); } to { color: #fff; } }
@keyframes hx-reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hx-scale-x { from { transform: scaleX(0); } }
@keyframes hx-scale-y { from { transform: scaleY(0); } }
@keyframes hx-fade { from { opacity: 0; } }

/* ---------- Pinned scene scaffold ---------- */
.scene__bar { display: none; }
html.scenes .scene { height: calc(var(--n, 4) * 62vh + 100vh); }
html.scenes .scene__pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
html.scenes .scene__bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rule); }
html.scenes .scene__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--gold); }

/* ---------- 2 · Six layers ---------- */
.lay { background: var(--dust); padding-block: var(--sec); }
.lay__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 32px; align-items: center; }
.lay__text { grid-column: 1 / span 4; }
.lay__title { font-size: clamp(28px, 3vw, 42px); margin-bottom: 28px; }
.lay__steps { border-top: 1px solid var(--ink); }
.lay__steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--rule-strong); transition: opacity 0.3s ease; }
.lay__no { grid-row: span 2; font-family: var(--ff-num); font-size: 13px; color: var(--text-3); padding-top: 3px; }
.lay__steps b { font-weight: 500; font-size: 17px; }
.lay__d { grid-column: 2 / span 2; font-size: 14.5px; color: var(--text-2); line-height: 1.45; }
.lay__steps em { grid-column: 3; grid-row: 1; font-style: normal; font-size: 12.5px; color: var(--slate); align-self: center; }
.lay__fig { grid-column: 6 / span 7; margin: 0; }
.lay__sheet { background: var(--paper); border: 1px solid var(--rule-strong); padding: clamp(8px, 1.2vw, 16px); }
.lay__cap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; font-size: 13.5px; color: var(--text-3); }
.lay__count { font-family: var(--ff-num); color: var(--text); }
html.scenes .lay { padding-block: 0; }
html.scenes .lay .scene__pin { padding-block: 24px; }
html.scenes .lay__steps li b { color: var(--text-3); transition: color 0.3s ease; }
html.scenes .lay__steps li .lay__d { color: var(--text-3); }
html.scenes .lay__steps li.is-past b { color: var(--text-2); }
html.scenes .lay__steps li.is-now b { color: var(--ink); }
html.scenes .lay__steps li.is-now .lay__no { color: var(--ink); font-weight: 600; }

.layers-svg { display: block; width: 100%; height: auto; }
.layers-svg .sheet-grid { fill: none; stroke: #EFEBE3; stroke-width: 0.6; }
.layers-svg .L { --lc: var(--ink); transition: opacity 0.4s ease; }
.layers-svg .L path, .layers-svg .L rect, .layers-svg .L circle { fill: none; stroke: var(--lc); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lp, 1)); }
.layers-svg .L .fill { fill: var(--lc); stroke: none; opacity: var(--lp, 1); stroke-dasharray: none; }
.layers-svg .L text { fill: var(--lc); stroke: none; opacity: var(--lp, 1); font: 500 8.5px var(--ff); letter-spacing: 0.14em; }
.layers-svg .L .tx--s { font-size: 7px; letter-spacing: 0.1em; }
.layers-svg .L .tx--b { font-size: 9.5px; font-weight: 600; letter-spacing: 0; }
.layers-svg .L .thin { stroke-width: 0.7; }
.layers-svg .L .wall { stroke-width: 1.6; }
.layers-svg .L .beam { stroke-width: 2.2; opacity: 0.55; }
.layers-svg .L .dash, .layers-svg .L .axis, .layers-svg .L .pipe, .layers-svg .L .wire, .layers-svg .L .cut, .layers-svg .L .gap { stroke-dashoffset: 0; opacity: var(--lp, 1); }
.layers-svg .L .dash { stroke-dasharray: 5 4; stroke-width: 0.8; }
.layers-svg .L .axis { stroke-dasharray: 14 4 2 4; stroke-width: 0.7; }
.layers-svg .L .pipe { stroke-dasharray: 8 4; stroke-width: 1.4; }
.layers-svg .L .wire { stroke-dasharray: 3 3; stroke-width: 0.8; }
.layers-svg .L .cut { stroke-dasharray: 18 5 3 5; stroke-width: 1.6; }
.layers-svg .L .gap { stroke: var(--paper); stroke-width: 10; }
.layers-svg .L--site { --lc: var(--slate); }
.layers-svg .L--str { --lc: var(--ink); }
.layers-svg .L--svc { --lc: var(--teal); }
.layers-svg .L--int { --lc: #6B5A3E; }
.layers-svg .L--exe { --lc: var(--gold); }
html.scenes .layers-svg .L.is-past { opacity: 0.5; }
html.scenes .layers-svg .L--plan.is-past { opacity: 0.9; }

/* ---------- 3 · One integrated team ---------- */
.team__ui { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 24px; align-items: start; }
.team__tabs { grid-column: 1 / span 5; border-top: 1px solid var(--ink); }
.team__tabs button { appearance: none; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; cursor: pointer; font: inherit; color: var(--text); display: grid; grid-template-columns: 34px 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 22px 0; position: relative; }
.team__tabs button::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--gold); transition: width 0.45s cubic-bezier(.2, .7, .2, 1); }
.team__tabs button[aria-selected="true"]::before { width: 100%; }
.team__no { grid-row: span 2; font-family: var(--ff-num); font-size: 13px; color: var(--text-3); padding-top: 8px; }
.team__tabs .glyph { grid-row: span 2; width: 44px; height: 44px; }
.team__name { font-size: clamp(22px, 2.1vw, 30px); font-weight: 400; letter-spacing: -0.015em; color: var(--text-3); transition: color 0.25s ease; line-height: 1.15; }
.team__line { font-size: 15px; color: var(--text-3); line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease; }
.team__tabs button[aria-selected="true"] .team__name, .team__tabs button:hover .team__name { color: var(--ink); }
.team__tabs button[aria-selected="true"] .team__line { max-height: 4em; opacity: 1; }
.glyph { fill: none; stroke: var(--rule-strong); stroke-width: 1.4; stroke-linejoin: round; transition: stroke 0.25s ease; }
.glyph .th, .glyph .ax { stroke-width: 0.9; }
.glyph .ax { stroke-dasharray: 4 3; }
.glyph .fl { fill: currentColor; color: var(--rule-strong); stroke: none; }
.team__tabs button[aria-selected="true"] .glyph { stroke: var(--teal); }
.team__tabs button[aria-selected="true"] .glyph .fl { color: var(--teal); }
.team__stage { grid-column: 7 / span 6; position: relative; }
.team__panel { display: flex; flex-direction: column; gap: 16px; }
.team__fig { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--placeholder); }
.team__fig img { width: 100%; height: 100%; object-fit: cover; }
.team__fig::before, .team__fig::after { content: ""; position: absolute; z-index: 1; width: 18px; height: 18px; border: 0 solid #fff; pointer-events: none; }
.team__fig::before { left: 14px; top: 14px; border-left-width: 1px; border-top-width: 1px; }
.team__fig::after { right: 14px; bottom: 14px; border-right-width: 1px; border-bottom-width: 1px; }
.team__info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; }
.team__info p { color: var(--text-2); max-width: 30em; font-size: 16px; }
/* JS crossfade: every panel stays in the layout grid, the active one is revealed */
.team__ui.is-js .team__stage { display: grid; }
.team__ui.is-js .team__panel { grid-area: 1 / 1; visibility: hidden; }
.team__ui.is-js .team__panel.is-on { visibility: visible; }
.team__ui.is-js .team__panel .team__fig { clip-path: inset(0 0 0 100%); transition: clip-path 0.7s cubic-bezier(.65, 0, .25, 1); }
.team__ui.is-js .team__panel.is-on .team__fig { clip-path: inset(0 0 0 0); }
.team__ui.is-js .team__panel.is-leaving { visibility: visible; z-index: 0; }
.team__ui.is-js .team__panel.is-on { z-index: 1; }
.team__ui.is-js .team__panel .team__info { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s; }
.team__ui.is-js .team__panel.is-on .team__info { opacity: 1; transform: none; }
.team__ui.is-js .team__panel.is-leaving .team__info { opacity: 0; }

/* ---------- 4 · Design → Engineer → Build → Finish ---------- */
.jr { background: var(--ink); color: #fff; padding-block: var(--sec); }
.jr .kicker { color: var(--on-ink-2); }
.jr__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 28px; }
.jr__rail { display: flex; gap: 4px; }
.jr__rail li { min-width: 92px; padding-top: 10px; border-top: 2px solid var(--rule-ink); font-size: 14px; color: var(--on-ink-3); transition: color 0.3s ease, border-color 0.3s ease; }
.jr__rail li.is-past { border-top-color: rgba(184, 146, 74, 0.5); color: var(--on-ink-2); }
.jr__rail li.is-now { border-top-color: var(--gold); color: #fff; }
.jr__stage { position: relative; display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.jr__panel { position: relative; }
.jr__fig { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #1c2128; }
.jr__fig > img { width: 100%; height: 100%; object-fit: cover; }
.jr__panel[data-j="1"] .jr__fig > img { filter: grayscale(0.4) brightness(0.62); }
.jr__inset { position: absolute; right: clamp(12px, 2vw, 28px); top: clamp(12px, 2vw, 28px); width: 26%; aspect-ratio: 4 / 5; border: 6px solid var(--ink); background: #1c2128; overflow: hidden; }
.jr__inset img { width: 100%; height: 100%; object-fit: cover; }
.jr__card { background: var(--ink); border-top: 1px solid var(--gold); padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.jr__no { font-family: var(--ff-num); font-size: 13px; color: var(--on-ink-3); }
.jr__card h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 400; letter-spacing: -0.02em; }
.jr__card p { color: var(--on-ink-2); font-size: 15.5px; }
.jr__note { display: block; margin-top: 6px; font-size: 13px; color: var(--on-ink-3); }
.jr__card .tlink { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); font-size: 15px; margin-top: 4px; }
.sgrid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sgrid__ax path { fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--gp, 1)); }
.sgrid__b circle { fill: rgba(17, 20, 24, 0.6); stroke: var(--gold); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--gp, 1)); }
.sgrid__b text { fill: #fff; font: 600 13px var(--ff-num); opacity: var(--gp, 1); }
.sgrid__c rect { fill: var(--gold); opacity: calc(var(--gp, 1) * 0.9); }
.jr__panel.will-reveal .jr__fig { clip-path: inset(0 0 0 100%); }
.jr__panel.will-reveal.is-vis .jr__fig { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.65, 0, .25, 1); }
@media (min-width: 761px) {
  .jr__panel { display: grid; grid-template-columns: minmax(0, 1fr); }
  .jr__card { position: absolute; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 2; }
  html.scenes .jr { padding-block: 0; }
  html.scenes .jr .scene__pin { padding-block: 24px 28px; }
  html.scenes .jr__stage { display: block; flex: 1 1 auto; min-height: 0; width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); margin-inline: auto; padding: 0; }
  html.scenes .jr__panel { position: absolute; inset: 0; }
  html.scenes .jr__fig { aspect-ratio: auto; height: 100%; }
  html.scenes .jr__panel + .jr__panel { clip-path: inset(0 0 0 calc(var(--r, 0) * -100% + 100%)); }
  html.scenes .jr__panel .jr__card { opacity: calc(var(--c, 0)); transform: translateY(calc((1 - var(--c, 0)) * 12px)); }
  html.scenes .jr__panel[data-j="0"] .jr__card { opacity: var(--c, 1); }
  html.scenes .jr__card { transition: opacity 0.35s ease, transform 0.35s ease; }
}

/* ---------- 5 · Project in focus ---------- */
.pf { padding-block: var(--sec); }
.pf__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 28px; align-items: center; }
.pf__meta { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.pf__name { font-size: clamp(32px, 3.4vw, 50px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.pf__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pf__facts > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.pf__facts dt { font-size: 12.5px; color: var(--text-3); letter-spacing: 0.04em; }
.pf__facts dd { margin: 2px 0 0; font-size: 15.5px; }
.pf__desc { font-family: var(--ff-serif); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.pf__nav { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pf__count { font-family: var(--ff-num); color: var(--text-3); font-size: 15px; }
.pf__count b { font-size: 34px; font-weight: 500; color: var(--ink); }
.pf__gal { grid-column: 6 / span 7; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: 4px; }
.pf__gal::-webkit-scrollbar { display: none; }
.pf__img { margin: 0; flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: start; background: var(--placeholder); overflow: hidden; }
.pf__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 761px) {
  html.scenes .pf { padding-block: 0; }
  html.scenes .pf .scene__pin { padding-block: 24px; }
  html.scenes .pf__gal { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-height: calc(100vh - var(--nav-h) - 80px); }
  html.scenes .pf__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.7s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
  html.scenes .pf__img.is-on { opacity: 1; transform: none; }
}

/* More work rail */
.more { padding-bottom: clamp(56px, 7vw, 96px); }
.more__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 32px; }
.more__ctl { display: flex; align-items: center; gap: 10px; }
.more__ctl .tlink { margin-left: 14px; }
.more__btn { appearance: none; width: 48px; height: 48px; border: 1px solid var(--rule-strong); background: var(--paper); cursor: pointer; font-size: 18px; color: var(--ink); }
.more__btn:hover { border-color: var(--ink); }
.more__rail { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.more__rail::-webkit-scrollbar { display: none; }
.works--rail { display: flex; gap: clamp(16px, 2vw, 28px); }
.works--rail .work-card, .works--rail .work-card:nth-child(n) { flex: 0 0 clamp(280px, 40vw, 600px); grid-column: auto; padding-top: 0; scroll-snap-align: start; }
.works--rail .work-card img, .works--rail .work-card:nth-child(n) img { aspect-ratio: 4 / 3; transition: transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.works--rail .work-card { overflow: hidden; }
.works--rail .work-card:hover img { transform: scale(1.025); opacity: 1; }
.more__all { flex: 0 0 clamp(200px, 20vw, 280px); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border: 1px solid var(--rule-strong); text-decoration: none; font-size: 22px; aspect-ratio: 3 / 4; max-height: 420px; }
.more__all i { font-style: normal; font-size: 28px; align-self: flex-end; }
.more__all:hover { border-color: var(--ink); }

/* ---------- 6 · Process ---------- */
.pr__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.pr__vis { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 40px); }
.pr__sheet { position: relative; aspect-ratio: 4 / 3; background: var(--dust); }
.pr__art { position: absolute; inset: 9% 9% 20%; opacity: 0; transition: opacity 0.5s ease; }
.pr__art.is-on { opacity: 1; }
.psvg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.psvg .t { stroke: var(--text-3); stroke-width: 0.9; }
.psvg .d { stroke-dasharray: 5 4; }
.psvg .a { stroke: var(--slate); stroke-dasharray: 10 4 2 4; stroke-width: 0.9; }
.psvg .f { fill: var(--ink); stroke: none; }
.psvg .g { stroke: var(--teal); stroke-width: 1.6; }
.pr__art.is-on .psvg [pathLength] { stroke-dasharray: 1; animation: pr-draw 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pr-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.pr__big { position: absolute; left: 24px; bottom: 16px; font-family: var(--ff-num); font-size: clamp(44px, 4.4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.pr__big small { font-size: 16px; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.pr__track { height: 2px; background: var(--rule); margin-top: 14px; }
.pr__track i { display: block; height: 100%; width: calc(var(--pp, 0.1667) * 100%); background: var(--gold); transition: width 0.5s ease; }
.pr__steps { grid-column: 7 / span 6; border-top: 1px solid var(--ink); }
.pr__steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule); min-height: 30vh; align-content: center; transition: opacity 0.35s ease; }
.pr__steps li > * { grid-column: 2; }
.pr__no { grid-column: 1 !important; grid-row: span 2; font-family: var(--ff-num); font-size: 14px; color: var(--text-3); padding-top: 8px; }
.pr__steps h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.02em; }
.pr__steps p { color: var(--text-2); max-width: 32em; }
.pr__m { display: none; }
html.scenes .pr__steps li h3, html.scenes .pr__steps li p { color: var(--text-3); transition: color 0.35s ease; }
html.scenes .pr__steps li.is-on h3 { color: var(--ink); }
html.scenes .pr__steps li.is-on p { color: var(--text-2); }
html.scenes .pr__steps li.is-on .pr__no { color: var(--ink); font-weight: 600; }

/* ---------- Mobile ---------- */
@media (max-width: 1080px) {
  .hx__copy { grid-column: 1 / span 7; }
  .hx__media { grid-column: 8 / span 5; }
  .lay__text { grid-column: 1 / span 5; }
  .lay__fig { grid-column: 6 / span 7; }
  .lay__steps em { display: none; }
  .team__tabs { grid-column: 1 / span 5; }
  .team__stage { grid-column: 6 / span 7; }
  .pf__meta { grid-column: 1 / span 5; }
  .pf__gal { grid-column: 6 / span 7; }
}
@media (max-width: 760px) {
  html.scenes .jr.scene, html.scenes .pf.scene { height: auto; }
  html.scenes .jr .scene__pin, html.scenes .pf .scene__pin { position: static; height: auto; overflow: visible; display: block; }
  html.scenes .jr .scene__bar, html.scenes .pf .scene__bar { display: none; }
  html.scenes .jr, html.scenes .pf { padding-block: var(--sec); }
  .hx { min-height: 0; padding-top: 24px; }
  .hx__copy, .hx__media { grid-column: 1 / -1; }
  .hx__title { font-size: clamp(40px, 11.5vw, 56px); }
  .hx__frame { padding: 14px; margin-inline: -6px; }
  .hx__img { aspect-ratio: 4 / 3; max-height: none; }
  .hx__dim--h { left: 14px; right: 14px; top: 5px; }
  .hx__dim--v { top: 14px; bottom: 14px; right: 5px; }
  .hx__meta { padding-inline: 8px; }
  .hx__disc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx__disc a, .hx__disc a:first-child { border-left: 0; padding: 16px 0; font-size: 16px; }
  .hx__disc a:nth-child(even) { border-left: 1px solid var(--rule-ink); padding-left: 16px; }
  .hx__disc a:nth-child(n+3) { border-top: 1px solid var(--rule-ink); }

  .lay__text, .lay__fig { grid-column: 1 / -1; }
  html.scenes .lay .scene__pin { justify-content: center; padding-block: 16px 28px; }
  html.scenes .lay__steps li.is-now { min-height: 5.5em; }
  html.scenes .lay__grid { row-gap: 14px; }
  html.scenes .lay__text { order: 2; }
  html.scenes .lay__fig { order: 1; }
  html.scenes .lay__title, html.scenes .lay .kicker { display: none; }
  html.scenes .lay__steps li { display: none; border: 0; padding: 4px 0 0; }
  html.scenes .lay__steps li.is-now { display: grid; }
  html.scenes .lay__steps { border-top-color: var(--rule-strong); }
  html.scenes .lay__d { font-size: 15px; }
  .lay__title { font-size: 28px; }

  .team__tabs, .team__stage { grid-column: 1 / -1; }
  .team__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; border: 1px solid var(--rule-strong); }
  .team__tabs button { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 12px 4px 10px; border-bottom: 0; row-gap: 4px; }
  .team__tabs button + button { border-left: 1px solid var(--rule-strong); }
  .team__tabs button::before { top: auto; bottom: -1px; }
  .team__no, .team__line { display: none; }
  .team__tabs .glyph { grid-row: auto; width: 34px; height: 34px; }
  .team__name { font-size: 13px; letter-spacing: 0; color: var(--text-2); }

  .jr__rail { display: none; }
  .jr__fig { aspect-ratio: 4 / 3; }
  .jr__inset { width: 34%; border-width: 4px; }
  .jr__card { padding: 18px 0 0; max-width: none; }

  .pf__meta, .pf__gal { grid-column: 1 / -1; }
  .pf__gal { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

  .works--rail .work-card, .works--rail .work-card:nth-child(n) { flex-basis: 80vw; }
  .more__btn { display: none; }
  .more__ctl .tlink { margin-left: 0; }

  .pr__vis { display: none; }
  .pr__steps { grid-column: 1 / -1; }
  .pr__steps li { min-height: 0; }
  .pr__m { display: block; margin-top: 10px; background: var(--dust); padding: 16px 24px; }
  .pr__m .psvg { height: auto; max-height: 150px; }
  html.scenes .pr__steps li h3 { color: var(--ink); }
  html.scenes .pr__steps li p { color: var(--text-2); }
}

@media (prefers-reduced-motion: reduce) {
  .team__ui.is-js .team__panel .team__fig, .team__ui.is-js .team__panel .team__info { transition: none; }
  .pr__art.is-on .psvg [pathLength] { animation: none; }
  .hx__img img { transform: none; }
}
.cta-band .kicker { color: var(--on-ink-2); }

/* ---------- 2 · From plan to built form: see arch-story.css (reusable project story) ---------- */

