/* Selected Works v2: only what Webflow classes cannot hold. Everything you would want to edit (type, colour,
   spacing, layout, images) is in Webflow: classes in the Style panel, values in Variables > "Selected Works".
   This file holds: scroll snap, page base, tag resets, dialog backdrop and animation, focus rings, states that the
   page script sets (aria-current, aria-pressed, data-view, is-in, is-live), hover rules that change a child,
   keyframes, the massing drawing (built by script), and the reduced-motion version.
   No !important: the resets use :where(), so any Webflow class wins over them. */

/* ---------- scroll snap: firm on desktop and tablet, soft on phones ---------- */
html { scroll-padding-top: 3.25rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* desktop and tablet: every panel is one screen and the page always comes to rest on one */
@media (min-width: 768px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory; }
  .sw-hook, .sw-panel { scroll-snap-align: start; }
  .sw-panel--end { scroll-snap-align: end; }
}
/* phones and short landscape screens: smaller blocks are snap points and the page only settles when close to one */
@media (max-width: 767px), (max-height: 599px) {
  html { scroll-snap-type: y proximity; }
  .sw-hook, .sw-section, .sw-chapter, [data-sw-snap] { scroll-snap-align: start; }
  .sw-panel--end { scroll-snap-align: end; }
}
/* a drawer is open: nothing behind it scrolls or snaps */
html:has(.sw-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; scroll-snap-type: none; }

/* ---------- page base and tag resets (the site's h2, p, a, ul, li, img tag styles) ---------- */
body { background: #070709; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.sw-main *, .sw-bar *, .sw-rail *, .sw-dialog * { box-sizing: border-box; }
:where(.sw-main, .sw-bar, .sw-rail, .sw-dialog) :is(h1, h2, h3, h4, p, ul, ol, li, figure) { margin: 0; padding: 0; }
:where(.sw-main, .sw-bar, .sw-rail, .sw-dialog) :is(ul, ol) { list-style: none; }
:where(.sw-main, .sw-bar, .sw-rail, .sw-dialog) a { color: inherit; text-decoration: none; }
:where(.sw-main) img { display: block; max-width: 100%; }
:where(.sw-h2, .sw-hook__title, .sw-dialog__title, .sw-toc__title) { text-wrap: balance; }
:where(.sw-stat__num, .sw-bar__count, .sw-toc__num, .sw-nav__num, .sw-chapter__num, .sw-timeline__year) { font-variant-numeric: tabular-nums; }
.sw-bar { padding-top: env(safe-area-inset-top, 0px); }
.sw-foot { padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px)); }
:where(.sw-main, .sw-bar, .sw-dialog) [role="button"] { user-select: none; -webkit-user-select: none; }

/* ---------- focus ---------- */
.sw-main :focus-visible, .sw-bar :focus-visible, .sw-rail :focus-visible, .sw-dialog :focus-visible { outline: 2px solid #f5f5f7; outline-offset: 3px; border-radius: 1px; }
.sw-main [tabindex="-1"]:focus { outline: none; }

/* ---------- states set by the page script ---------- */
.sw-rail__link[aria-current] { color: #f5f5f7; }
.sw-rail__link[aria-current] .sw-rail__tick { background: #da0037; height: 2px; }
.sw-rail__link:hover .sw-rail__name, .sw-rail__link:focus-visible .sw-rail__name { opacity: 1; transform: none; }
.sw-rail__link[aria-current] .sw-rail__tick, .sw-rail__link:hover .sw-rail__tick { transform: none; }
.sw-rail__name, .sw-rail__tick { transition: opacity .25s, transform .25s cubic-bezier(.2, .7, .2, 1); }
.sw-nav__link[aria-current] { box-shadow: inset 2px 0 0 #da0037; padding-left: .75rem; }
.sw-toc__go { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.sw-toc__link:hover .sw-toc__go, .sw-toc__link:focus-visible .sw-toc__go { transform: translateY(.25rem); }
.sw-more, .sw-btn { transition: opacity .2s; }
.sw-seg__btn { transition: background-color .2s, color .2s; }
.sw-seg__btn[aria-pressed="true"] { background: #f5f5f7; color: #070709; border-color: #f5f5f7; }
.sw-nepa.is-live .sw-nepa__start, .sw-nepa.is-live .sw-nepa__poster { display: none; }
.sw-nepa__start[aria-disabled="true"] { opacity: .7; cursor: progress; }
.sw-nepa .isvg { --isvg-radius: 0; font-family: Rubik, system-ui, sans-serif; padding-top: .75rem; }
.sw-nepa .isvg[hidden] { display: none; }
/* Animated KPI graphic (selected-works.js 7d): once it replaces the image, the frame takes the graphic's own shape. */
.sw-kpi.is-gkpi { aspect-ratio: 1407.8 / 354.13; overflow: visible; }
.sw-kpi.is-gkpi .sw-kpi__wipe, .sw-kpi.is-gkpi .sw-kpi__inner { height: auto; overflow: visible; }
.sw-bar__fill, .sw-timeline__fill { will-change: transform; }
.sw-hook__draw svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* sign explorer: five framings of one board, chosen with the buttons (transform only) */
.sw-signs { --x: 0; --y: 0; --k: 1; }
.sw-signs__img { transform: translate(calc(var(--x) * 1%), calc(var(--y) * 1%)) scale(var(--k)); transition: transform .9s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.sw-signs[data-view="1"] { --k: 2.3; --x: -10; --y: -87; }
.sw-signs[data-view="2"] { --k: 3.4; --x: -9; --y: -235; }
.sw-signs[data-view="3"] { --k: 3; --x: -64; --y: -200; }
.sw-signs[data-view="4"] { --k: 1.75; --x: -75; --y: -52; }

/* ---------- motion (the script adds .sw-motion to <html> only when motion is welcome) ---------- */
.sw-motion [data-sw-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.sw-motion [data-sw-reveal].is-in { opacity: 1; transform: none; }
.sw-motion .sw-cue__glyph { animation: sw-nudge 2.4s cubic-bezier(.2, .7, .2, 1) 2.6s 3 both; }
@keyframes sw-nudge { 0%, 100% { transform: none; } 50% { transform: translateY(.3rem); } }
/* first screen: the drawing starts as a faint ghost (still the LCP image) and the script draws the lines over it;
   without the script the ghost fades up to full strength after 5 s */
@media (prefers-reduced-motion: no-preference) {
  .sw-hook__img { opacity: .3; animation: sw-ghost .8s linear 5s forwards; }
  .sw-hook.is-drawn .sw-hook__img { animation: none; }
  .sw-hook.is-static .sw-hook__img { animation: none; opacity: 1; }
}
@keyframes sw-ghost { to { opacity: 1; } }
/* the one exception to "transform and opacity only": the strokes draw once on load (paint only, about 2 s) */
.sw-hook__draw path, .sw-hook__draw ellipse { stroke-dasharray: var(--l, 400); stroke-dashoffset: var(--l, 400); animation: sw-draw var(--t, 1s) cubic-bezier(.4, 0, .2, 1) var(--d, .4s) forwards; }
.sw-hook__draw ellipse { --l: 40; --t: .5s; --d: .9s; }
@keyframes sw-draw { to { stroke-dashoffset: 0; } }
/* short landscape phones: Webflow has no height breakpoint, so the first screen is tightened here */
@media (orientation: landscape) and (max-height: 30rem) {
  .sw-hook { align-items: center; padding-block: 1rem; }
  .sw-hook__visual { top: 0; right: 4%; width: 34%; }
  .sw-hook__copy { row-gap: .6rem; }
}

/* ---------- drawers: native <dialog> ---------- */
.sw-dialog::backdrop { background: rgba(0, 0, 0, .66); }
.sw-dialog[open] { animation: sw-sheet-x .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes sw-sheet-x { from { opacity: 0; transform: translateX(2rem); } }
@media (max-width: 767px) { .sw-dialog[open] { animation-name: sw-sheet-y; } }
@keyframes sw-sheet-y { from { opacity: 0; transform: translateY(2rem); } }
.sw-dialog__inner { padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px)); }

/* ---------- massing viewer (Legacy Projects): the drawing is built by the script ---------- */
.sw-massing { --mv-line: #e9e5dc; --mv-fg: #f5f5f7; --mv-dim: #a1a1aa; --mv-a: #f5f5f7; --mv-b: #da0037; --mv-c: #b7ac99; }
.sw-massing__plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.sw-massing__plate.dragging { cursor: grabbing; }
.sw-massing__bar { position: absolute; z-index: 2; top: .75rem; left: .9rem; right: .9rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; pointer-events: none; }
.sw-massing__bar > * { pointer-events: auto; }
.sw-massing__view { pointer-events: none; }
.sw-massing__vname { margin: 0; font-size: .6875rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--mv-fg); min-height: 1.1rem; }
.sw-massing__vdots { display: flex; gap: 6px; margin-top: 6px; }
.sw-massing__vdots i { display: block; width: 12px; height: 1px; background: var(--mv-fg); opacity: .25; transition: opacity .3s; }
.sw-massing__vdots i.on { opacity: .95; height: 2px; }
.sw-massing__cams { display: flex; min-height: calc(2.75rem + 2px); border: 1px solid rgba(183, 172, 153, .32); background: rgba(7, 7, 9, .7); }
.sw-massing__cams button { min-height: 2.75rem; margin: 0; padding: 0 .9rem; border: 0; border-left: 1px solid rgba(183, 172, 153, .32); background: none; color: var(--mv-fg); font: inherit; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.sw-massing__cams button:first-child { border-left: 0; }
.sw-massing__cams button[aria-pressed="true"] { background: var(--mv-fg); color: #070709; }
.sw-massing__nav { position: absolute; z-index: 1; top: 50%; width: 2.75rem; height: 5.5rem; margin: -2.75rem 0 0; padding: 0; border: 0; background: none; color: var(--mv-fg); opacity: .6; cursor: pointer; transition: opacity .2s; -webkit-tap-highlight-color: transparent; }
.sw-massing__nav:hover, .sw-massing__nav:focus-visible { opacity: 1; }
.sw-massing__nav svg { width: 11px; height: 36px; overflow: visible; }
.sw-massing__nav path { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.sw-massing__nav--prev { left: 0; } .sw-massing__nav--next { right: 0; }
.sw-massing__info { transition: opacity .3s ease; }
.sw-massing__info.out { opacity: 0; }
.sw-massing__vt { margin: 0; font-size: clamp(1.0625rem, min(1rem + .6vw, 2.6svh), 1.375rem); font-weight: 500; line-height: 1.2; color: var(--mv-fg); }
.sw-massing__vd { margin: 0; font-size: 1rem; line-height: 1.55; color: #d9d9de; max-width: 44rem; }
.sw-massing__lg { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .75rem; letter-spacing: .06em; color: var(--mv-dim); }
.sw-massing__lg li { display: flex; align-items: center; gap: .45rem; }
.sw-massing .sw { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--mv-line); }
.sw-massing .sw.glass, .sw-massing .sw.water { border-color: var(--mv-a); } .sw-massing .sw.red, .sw-massing .sw.core { border-color: var(--mv-b); } .sw-massing .sw.car { border-color: var(--mv-c); border-top-style: dashed; }
.sw-massing__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sw-massing .paper { fill: none; }
.sw-massing .c, .sw-massing .hl { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.sw-massing .c-grid { stroke: var(--mv-line); stroke-width: .5; opacity: .05; }
.sw-massing .c-site { stroke: var(--mv-line); stroke-width: .6; opacity: .28; }
.sw-massing .c-ctx { stroke: var(--mv-line); stroke-width: .6; opacity: .12; }
.sw-massing .c-guide { stroke: var(--mv-b); stroke-width: .7; opacity: .7; }
.sw-massing .c-slabF { stroke: var(--mv-line); stroke-width: .5; opacity: .5; } .sw-massing .c-slabB { stroke: var(--mv-line); stroke-width: .4; opacity: .12; }
.sw-massing .c-colF { stroke: var(--mv-line); stroke-width: .45; opacity: .4; } .sw-massing .c-colB { stroke: var(--mv-line); stroke-width: .4; opacity: .1; }
.sw-massing .c-floorF { stroke: var(--mv-line); stroke-width: .45; opacity: .55; } .sw-massing .c-floorB { stroke: var(--mv-line); stroke-width: .3; opacity: .1; }
.sw-massing .c-glassF { stroke: var(--mv-c); stroke-width: .35; opacity: .55; } .sw-massing .c-glassB { stroke: var(--mv-c); stroke-width: .3; opacity: .1; }
.sw-massing .c-louvreF { stroke: var(--mv-line); stroke-width: .5; opacity: .45; } .sw-massing .c-louvreB { stroke: var(--mv-line); stroke-width: .4; opacity: .1; }
.sw-massing .c-spineF { stroke: var(--mv-line); stroke-width: .5; opacity: .6; } .sw-massing .c-spineB { stroke: var(--mv-line); stroke-width: .4; opacity: .14; }
.sw-massing .c-mSil { stroke: var(--mv-fg); stroke-width: 1.15; opacity: .95; } .sw-massing .c-mCrease { stroke: var(--mv-fg); stroke-width: .75; opacity: .8; }
.sw-massing .c-mFine { stroke: var(--mv-line); stroke-width: .45; opacity: .5; } .sw-massing .c-mHid { stroke: var(--mv-line); stroke-width: .35; opacity: .07; }
.sw-massing .c-tree { stroke: var(--mv-line); stroke-width: .6; opacity: .3; }
.sw-massing .glab { font: 500 calc(9px * var(--ts, 1)) Rubik, system-ui, sans-serif; letter-spacing: .24em; fill: var(--mv-fg); opacity: .6; }
.sw-massing .s-tone { stroke: none; } .sw-massing .s-lit { fill: url(#lit); stroke: none; }
.sw-massing .s-tone.k-glass { fill: url(#sw-gGlass); } .sw-massing .s-tone.k-wall { fill: url(#sw-gWall); } .sw-massing .s-tone.k-roof { fill: url(#sw-gRoof); } .sw-massing .s-tone.k-garage { fill: url(#sw-gGarage); }
.sw-massing .plate.p-terrain { fill: url(#sw-gTerrain); } .sw-massing .plate.p-pad { fill: #b7ac99; fill-opacity: .16; } .sw-massing .plate.p-plaza { fill: #cfc8bb; fill-opacity: .2; } .sw-massing .plate.p-road { fill: #050506; fill-opacity: .75; }
.sw-massing .h-red { stroke: var(--mv-b); stroke-width: 1.1; } .sw-massing .h-blue { stroke: var(--mv-a); stroke-width: 1.1; } .sw-massing .h-blue2 { stroke: var(--mv-a); stroke-width: .7; stroke-opacity: .7; } .sw-massing .h-ink { stroke: var(--mv-line); stroke-width: .9; }
.sw-massing .h-ring { stroke: var(--mv-line); stroke-width: .6; stroke-opacity: .35; }
.sw-massing .door { stroke-width: 3; stroke-linecap: butt; }
.sw-massing .f-red { fill: var(--mv-b); fill-opacity: .2; } .sw-massing .f-red2 { fill: var(--mv-b); fill-opacity: .14; }
.sw-massing .f-blue { fill: var(--mv-a); fill-opacity: .2; } .sw-massing .f-blue2 { fill: var(--mv-a); fill-opacity: .07; }
.sw-massing .f-lvA { fill: var(--mv-c); fill-opacity: .1; } .sw-massing .f-lvB { fill: var(--mv-c); fill-opacity: .04; } .sw-massing .f-ink { fill: var(--mv-line); fill-opacity: .1; }
.sw-massing .flow-in, .sw-massing .flow-out, .sw-massing .flow-car, .sw-massing .flow-water { stroke-width: 1.6; stroke-dasharray: 9 7; }
.sw-massing .flow-in, .sw-massing .flow-water { stroke: var(--mv-a); } .sw-massing .flow-out { stroke: var(--mv-b); } .sw-massing .flow-car { stroke: var(--mv-c); stroke-width: 1.4; stroke-dasharray: 3 5; }
.sw-massing .arrow-in, .sw-massing .arrow-water { fill: var(--mv-a); stroke: none; } .sw-massing .arrow-out { fill: var(--mv-b); stroke: none; } .sw-massing .arrow-car { fill: var(--mv-c); stroke: none; }
.sw-massing .traffic { fill: none; stroke: var(--mv-c); stroke-width: 1.2; stroke-dasharray: 8 8; stroke-linecap: butt; stroke-opacity: .4; vector-effect: non-scaling-stroke; }
.sw-massing .traffic-ar { fill: var(--mv-c); fill-opacity: .4; stroke: none; }
.sw-motion .sw-massing.is-live .traffic { animation: sw-march 2.8s linear infinite; }
@keyframes sw-march { to { stroke-dashoffset: -32; } }
.sw-massing .datum { stroke: var(--mv-c); stroke-width: .7; stroke-dasharray: 5 4; }
.sw-massing .mark circle { fill: #070709; stroke: var(--mv-fg); stroke-width: 1; } .sw-massing .mark text { font: 500 10px Rubik, system-ui, sans-serif; fill: var(--mv-fg); }
.sw-massing .hl-hid { stroke: var(--mv-line); stroke-width: .35; opacity: .14; fill: none; stroke-dasharray: none; }
.sw-massing .tbrk { fill: none; stroke: var(--mv-fg); stroke-width: .8; opacity: .9; vector-effect: non-scaling-stroke; stroke-linecap: butt; }
.sw-massing .tlead { fill: none; stroke: var(--mv-fg); stroke-width: .6; opacity: .85; vector-effect: non-scaling-stroke; } .sw-massing .tdot { fill: var(--mv-fg); }
.sw-massing .tt1 { font: 500 calc(13px * var(--ts, 1)) Rubik, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; fill: var(--mv-fg); }
.sw-massing .tt2 { font: 400 calc(11px * var(--ts, 1)) Rubik, system-ui, sans-serif; letter-spacing: .03em; fill: #d9d9de; }
.sw-massing .ruler { opacity: 0; transition: opacity .5s ease; } .sw-massing .ruler.on { opacity: 1; }
.sw-massing .rl, .sw-massing .rt { stroke: var(--mv-c); stroke-width: .8; fill: none; vector-effect: non-scaling-stroke; }
.sw-massing .rlab { font: 400 calc(9px * var(--ts, 1)) Rubik, system-ui, sans-serif; fill: var(--mv-c); } .sw-massing .rcap { font: 500 calc(9px * var(--ts, 1)) Rubik, system-ui, sans-serif; letter-spacing: .14em; fill: var(--mv-dim); }
.sw-massing .cring { fill: none; stroke: var(--mv-line); stroke-width: .7; opacity: .4; } .sw-massing .cnorth { stroke: var(--mv-b); stroke-width: 1.4; fill: none; }
.sw-massing .clab { font: 500 9px Rubik, system-ui, sans-serif; fill: var(--mv-dim); } .sw-massing .clab.n { fill: var(--mv-fg); }

/* ---------- reduced motion: a complete static page ---------- */
@media (prefers-reduced-motion: reduce) {
  .sw-signs__img, .sw-toc__go, .sw-rail__name, .sw-rail__tick, .sw-massing__info, .sw-massing .ruler, .sw-more, .sw-btn, .sw-seg__btn { transition: none; }
  .sw-dialog[open] { animation: none; }
  .sw-hook__draw { display: none; }
}
