/* SWISS GRID — typographic, modular family for contemporary city blocks.
   Tokens come from core.css + the per-project theme (<style id="pdx-theme">).
   Type: the site's Stapel Expanded (headlines) and FactorA (text). */

html[data-design="swiss-grid"] { --pdx-footer: #111; }
.sg {
  --pdx-gutter: clamp(18px, 3.4vw, 56px);
  --sg-gap: clamp(12px, 1.6vw, 24px);
  --sg-rule: var(--pdx-ink);
  position: relative;
  background: var(--pdx-bg);
  overflow-x: clip;
}
.sg > section { position: relative; z-index: 1; }

/* ---------- the visible grid ---------- */
.sg > .sg-grid {
  position: absolute;
  z-index: 0;
  inset: 0 var(--pdx-gutter);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sg-gap);
  pointer-events: none;
}
.sg-grid i { border-left: 1px solid var(--pdx-line); border-right: 1px solid color-mix(in srgb, var(--pdx-line) 45%, transparent); transform-origin: top; }
.pdx.js-ready .sg-grid i { animation: sg-draw-y 1.6s var(--pdx-ease) both; }
.sg-grid i:nth-child(2) { animation-delay: .05s; } .sg-grid i:nth-child(3) { animation-delay: .1s; }
.sg-grid i:nth-child(4) { animation-delay: .15s; } .sg-grid i:nth-child(5) { animation-delay: .2s; }
.sg-grid i:nth-child(6) { animation-delay: .25s; } .sg-grid i:nth-child(7) { animation-delay: .3s; }
.sg-grid i:nth-child(8) { animation-delay: .35s; } .sg-grid i:nth-child(9) { animation-delay: .4s; }
.sg-grid i:nth-child(10) { animation-delay: .45s; } .sg-grid i:nth-child(11) { animation-delay: .5s; }
.sg-grid i:nth-child(12) { animation-delay: .55s; }
@keyframes sg-draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- atoms ---------- */
.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--pdx-ink);
  border-radius: 0;
  font: 500 12px/1 var(--pdx-font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.sg .sg-btn--solid { background: var(--pdx-ink); color: var(--pdx-bg); }
.sg .sg-btn--solid:hover { background: var(--pdx-accent); border-color: var(--pdx-accent); color: var(--pdx-accent-ink); }
.sg .sg-btn--line { background: transparent; color: var(--pdx-ink); }
.sg .sg-btn--line:hover { background: var(--pdx-ink); color: var(--pdx-bg); }
.sg-btn--block { width: 100%; }
.sg-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font: 500 12px/1 var(--pdx-font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pdx-ink);
  background: linear-gradient(var(--pdx-accent), var(--pdx-accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--pdx-ease);
}
.sg-arrow span { color: var(--pdx-accent); }
.sg-arrow:hover { background-size: 100% 2px; }

.sg-section { padding: clamp(90px, 14vh, 170px) var(--pdx-gutter) 0; }
.sg-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sg-gap);
  align-items: baseline;
  padding-top: 14px;
  border-top: 2px solid var(--sg-rule);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.sg-head__no { grid-column: 1 / span 1; font: 700 15px/1 var(--pdx-font-title); color: var(--pdx-accent); }
.sg-head__label { grid-column: 2 / span 6; font: 500 13px/1.3 var(--pdx-font-text); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- hero ---------- */
.sg-hero {
  --sg-title: min(26svh, calc((100vw - 2 * var(--pdx-gutter)) / (var(--len, 10) * .86)));
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sg-gap);
  align-content: start;
  min-height: 100svh;
  padding: clamp(84px, 12vh, 120px) var(--pdx-gutter) clamp(28px, 4vh, 44px);
}
.sg-logo { position: absolute; top: clamp(22px, 3.6vh, 36px); left: var(--pdx-gutter); width: clamp(104px, 9vw, 140px); z-index: 2; }
.sg-logo img { width: 100%; height: auto; filter: brightness(0); }
.sg[data-tone="dark"] .sg-logo img { filter: none; }

.sg-spec { margin: 0; }
.sg-spec dt { font: 500 10px/1.3 var(--pdx-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--pdx-muted); }
.sg-spec dd { margin: 4px 0 0; font: 500 14px/1.35 var(--pdx-font-text); white-space: pre-line; overflow-wrap: break-word; }
.sg-hero__spec {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--sg-gap);
  padding-top: 12px;
  border-top: 2px solid var(--sg-rule);
}
.sg-hero__title {
  grid-column: 1 / -1;
  margin: .1em 0 .16em;
  font: 700 var(--sg-title)/.84 var(--pdx-font-display);
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pdx-ink);
}
.sg-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.sg-ch { display: inline-block; }
.pdx.js-ready .sg-ch { animation: sg-rise 1.1s var(--pdx-ease) both; animation-delay: calc(.35s + var(--i) * 45ms); }
@keyframes sg-rise { from { transform: translateY(105%); } to { transform: none; } }
.sg-hero__copy { grid-column: 1 / span 3; align-self: end; display: grid; gap: 22px; }
.sg-hero__subtitle { font: 400 clamp(17px, 1.3vw, 21px)/1.4 var(--pdx-font-text); max-width: 30ch; }
.sg-hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sg-hero__actions .sg-btn { width: 100%; }
.sg-hero__media {
  grid-column: 4 / -1;
  position: relative;
  height: max(300px, calc(100svh - var(--sg-title) * 1.12 - clamp(84px, 12vh, 120px) - 140px));
  margin: 0;
  overflow: hidden;
  background: var(--pdx-surface);
}
.sg-hero__frame { position: absolute; inset: -6% 0 0; }
.sg-hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pdx-hero-focus, 50% 50%); }
.pdx.js-ready .sg-hero__media { animation: sg-scan 1.5s steps(9, end) .5s both; }
@keyframes sg-scan { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.pdx.js-ready .sg-hero__spec, .pdx.js-ready .sg-hero__copy { animation: sg-fade 1s var(--pdx-ease) .9s both; }
@keyframes sg-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* hero: strip — name, then the render as a full-bleed band, spec sheet below */
.sg-hero--strip { align-content: space-between; }
.sg-hero--strip .sg-hero__title { grid-row: 1; margin-top: 0; }
.sg-hero--strip .sg-hero__media { grid-column: 1 / -1; grid-row: 2; height: clamp(260px, 46svh, 560px); margin: 0 calc(-1 * var(--pdx-gutter)); }
.sg-hero--strip .sg-hero__spec { grid-row: 3; grid-column: 1 / span 8; margin-top: 22px; }
.sg-hero--strip .sg-hero__copy { grid-row: 3; grid-column: 9 / -1; margin-top: 22px; }
.sg-hero--strip .sg-hero__actions { flex-direction: row; flex-wrap: wrap; }
.sg-hero--strip .sg-hero__actions .sg-btn { width: auto; }

/* hero: stack — the name stacked word by word beside a full-height render */
.sg-hero--stack { --sg-title: min(24svh, calc(46vw / (var(--wlen, 8) * .86)), calc(68svh / (var(--words, 1) * .86 + .3))); }
.sg-hero--stack .sg-hero__spec { grid-column: 1 / span 6; }
.sg-hero--stack .sg-hero__title { grid-column: 1 / span 6; white-space: normal; }
.sg-hero--stack .sg-word { display: block; width: fit-content; }
.sg-hero--stack .sg-hero__copy { grid-column: 1 / span 4; }
.sg-hero--stack .sg-hero__media { grid-column: 7 / -1; grid-row: 1 / span 3; height: auto; min-height: calc(100svh - clamp(84px, 12vh, 120px) - clamp(28px, 4vh, 44px)); margin-right: calc(-1 * var(--pdx-gutter)); }

/* hero: label — full-bleed render, name and text set on museum-label blocks */
.sg-hero--label { --sg-title: min(15svh, calc((100vw - 2 * var(--pdx-gutter)) * .62 / (var(--len, 10) * .86))); align-content: end; padding-bottom: clamp(40px, 7vh, 80px); }
.sg-hero--label .sg-hero__media { position: absolute; inset: 0; grid-column: auto; grid-row: auto; height: auto; z-index: -1; }
.sg-hero--label .sg-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 45%), linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 20%); }
.sg-hero--label .sg-hero__spec { position: absolute; top: clamp(84px, 12vh, 120px); left: var(--pdx-gutter); right: var(--pdx-gutter); color: #fff; border-color: rgba(255, 255, 255, .8); }
.sg-hero--label .sg-hero__spec dt { color: rgba(255, 255, 255, .7); }
.sg-hero--label .sg-hero__title { grid-column: 1 / -1; justify-self: start; margin: 0; padding: .14em .2em .08em; background: var(--pdx-accent); color: var(--pdx-accent-ink); }
.sg-hero--label .sg-hero__copy { grid-column: 1 / span 5; padding: 24px; background: var(--pdx-bg); }
.sg-hero--label .sg-hero__actions { flex-direction: row; flex-wrap: wrap; }
.sg-hero--label .sg-hero__actions .sg-btn { width: auto; }

/* hero: rotated — the name turned along the left edge */
.sg-hero--rotated { --sg-title: min(17vw, calc(80svh / (var(--len, 10) * .86))); grid-template-rows: auto 1fr auto; }
.sg-hero--rotated .sg-hero__title {
  grid-column: 1 / span 2;
  grid-row: 1 / span 3;
  align-self: end;
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: .8;
}
.sg-hero--rotated .sg-word { padding: 0 0 0 .04em; }
.sg-hero--rotated .sg-hero__spec { grid-column: 3 / span 3; grid-row: 1; grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
.sg-hero--rotated .sg-hero__copy { grid-column: 3 / span 3; grid-row: 3; }
.sg-hero--rotated .sg-hero__media { grid-column: 6 / -1; grid-row: 1 / span 3; height: auto; margin-right: calc(-1 * var(--pdx-gutter)); }
.pdx.js-ready .sg-hero--rotated .sg-ch { animation-name: sg-rise-x; }
@keyframes sg-rise-x { from { transform: translateX(-105%); } to { transform: none; } }

/* ---------- prologue ---------- */
.sg-prologue { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sg-gap); }
.sg-prologue .sg-head { grid-column: 1 / -1; }
.sg-lede { grid-column: 2 / span 9; font: 400 clamp(26px, 2.7vw, 46px)/1.16 var(--pdx-font-text); letter-spacing: -.015em; text-wrap: pretty; }
.sg-prologue__rest { grid-column: 5 / span 7; margin-top: clamp(32px, 5vh, 56px); columns: 2 280px; column-gap: var(--sg-gap); color: var(--pdx-muted); font-size: 16px; line-height: 1.65; }
.sg-prologue__rest p + p { margin-top: 1em; }

/* ---------- features ---------- */
.sg-feats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); column-gap: var(--sg-gap); }
.sg-feat {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 16px;
  padding: 18px 18px 28px;
  border-top: 1px solid var(--sg-rule);
  isolation: isolate;
  transition: color .4s;
}
.sg-feat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--pdx-accent); transform: scaleY(0); transform-origin: top; transition: transform .55s var(--pdx-ease); }
.sg-feat:hover { color: var(--pdx-accent-ink); --pdx-icon-accent: var(--pdx-accent-ink); }
.sg-feat:hover::before { transform: none; }
.sg-feat__no { font: 700 13px/1 var(--pdx-font-title); }
.sg-feat__icon { width: clamp(64px, 6vw, 92px); color: currentColor; }
.sg-glyph { width: 100%; height: auto; stroke-width: 1.4; }
.sg-feat__title { font: 500 clamp(16px, 1.3vw, 20px)/1.2 var(--pdx-font-title); text-transform: uppercase; letter-spacing: 0; }
.sg-feat__text { font-size: 14px; line-height: 1.55; opacity: .75; }
.pdx.js-ready .sg-feat { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--pdx-ease), transform .9s var(--pdx-ease), color .4s; transition-delay: calc(var(--d) * .1s), calc(var(--d) * .1s), 0s; }
.pdx.js-ready .sg-feats.is-in .sg-feat { opacity: 1; transform: none; }

/* features: list — numbered rows */
.sg-features--list .sg-feats { grid-template-columns: minmax(0, 1fr); }
.sg-features--list .sg-feat { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto; align-items: center; column-gap: var(--sg-gap); padding: 22px 0; }
.sg-features--list .sg-feat__no { grid-column: 1 / span 1; font-size: 15px; padding-left: 4px; }
.sg-features--list .sg-feat__title { grid-column: 2 / span 6; font-size: clamp(20px, 2vw, 32px); }
.sg-features--list .sg-feat__text { grid-column: 8 / span 3; }
.sg-features--list .sg-feat__icon { grid-column: 12; grid-row: 1; justify-self: end; width: clamp(48px, 4vw, 64px); margin-right: 4px; }
.sg-features--list .sg-feat::before { transform: scaleX(0); transform-origin: left; }
.sg-features--list .sg-feat:hover::before { transform: none; }

/* features: matrix — 2 × 2 large cells */
.sg-features--matrix .sg-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sg-gap); }
.sg-features--matrix .sg-feat { min-height: clamp(260px, 34vh, 380px); grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; padding: 22px 24px 28px; border: 1px solid var(--sg-rule); }
.sg-features--matrix .sg-feat__no { font-size: clamp(56px, 6vw, 104px); line-height: .8; letter-spacing: -.04em; }
.sg-features--matrix .sg-feat__icon { grid-column: 2; grid-row: 1; }
.sg-features--matrix .sg-feat__title { grid-column: 1 / -1; grid-row: 3; font-size: clamp(20px, 1.8vw, 28px); }
.sg-features--matrix .sg-feat__text { grid-column: 1 / -1; }

/* ---------- chapters ---------- */
.sg-chhead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--sg-gap);
  align-items: baseline;
  padding-top: 14px;
  border-top: 2px solid var(--sg-rule);
  margin-bottom: clamp(32px, 5vh, 56px);
}
.sg-chhead .sg-head__no { grid-row: 1 / span 2; }
.sg-chhead__label { grid-column: 2 / span 4; font: 500 13px/1.3 var(--pdx-font-text); letter-spacing: .1em; text-transform: uppercase; }
.sg-chhead__title { grid-column: 2 / span 10; margin-top: 18px; font: 500 clamp(30px, 3.6vw, 64px)/1.02 var(--pdx-font-title); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.sg-body { margin-top: clamp(32px, 5vh, 56px); margin-left: calc((100% + var(--sg-gap)) / 12 * 4); max-width: 920px; columns: 2 300px; column-gap: var(--sg-gap); color: var(--pdx-muted); font-size: 16px; line-height: 1.65; }
.sg-body p + p { margin-top: .9em; }
.sg-chapter--text .sg-body { margin-top: 0; }

/* figures */
.sg-fig { position: relative; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sg-fig__btn { position: relative; flex: 1 1 auto; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: var(--pdx-surface); cursor: zoom-in; }
.sg-fig__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--pdx-ease); }
.sg-fig__btn:hover img { transform: scale(1.035); }
.sg-fig__cap { display: flex; justify-content: space-between; font: 500 10px/1 var(--pdx-font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--pdx-muted); }
.sg-fig__cap::after { content: ''; width: 24px; height: 1px; align-self: center; background: currentColor; transition: width .5s var(--pdx-ease), background-color .3s; }
.sg-fig:hover .sg-fig__cap { color: var(--pdx-ink); }
.sg-fig:hover .sg-fig__cap::after { width: 64px; background: var(--pdx-accent); }
/* reveal by columns: a stepped wipe (the container is never clipped, see core.js) */
.pdx.js-ready .sg-mosaic .sg-fig__btn,
.pdx.js-ready .sg-strip .sg-fig__btn { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s steps(6, end); transition-delay: calc(.1s + var(--d) * .12s); }
.pdx.js-ready .sg-mosaic.is-in .sg-fig__btn,
.pdx.js-ready .sg-strip.is-in .sg-fig__btn { clip-path: inset(0); }

/* mosaic */
.sg-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sg-gap); row-gap: clamp(18px, 2.4vh, 30px); }
.sg-fig--lead { grid-column: span 8; grid-row: span 2; }
.sg-fig--lead .sg-fig__btn { min-height: clamp(380px, 62vh, 660px); }
.sg-fig--side { grid-column: span 4; }
.sg-fig--side .sg-fig__btn { min-height: 0; aspect-ratio: auto; }
.sg-fig--side-full { grid-column: span 4; grid-row: span 2; }
.sg-fig--full { grid-column: 1 / -1; }
.sg-fig--full .sg-fig__btn { aspect-ratio: 21 / 9; }
.sg-fig--row .sg-fig__btn { aspect-ratio: 4 / 3; }
.sg-fig--of1 { grid-column: 1 / -1; } .sg-fig--of1 .sg-fig__btn { aspect-ratio: 21 / 8; }
.sg-fig--of2 { grid-column: span 6; } .sg-fig--of2 .sg-fig__btn { aspect-ratio: 16 / 10; }
.sg-fig--of3 { grid-column: span 4; }

/* viewer: one large view and a contact sheet */
.sg-viewer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sg-gap); align-items: start; }
.sg-viewer__main { grid-column: 1 / span 8; margin: 0; display: grid; gap: 10px; }
.sg-viewer__stage { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; background: var(--pdx-surface); cursor: zoom-in; }
.sg-viewer__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--pdx-ease); }
.sg-viewer__slide.is-active { opacity: 1; }
.sg-viewer__slide img { width: 100%; height: 100%; object-fit: cover; }
.sg-viewer__cap { display: flex; justify-content: space-between; font: 500 11px/1 var(--pdx-font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--pdx-muted); }
.sg-viewer__cap b { color: var(--pdx-ink); font-weight: 500; }
.sg-viewer__thumbs { grid-column: 9 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-viewer__thumb { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; background: var(--pdx-surface); cursor: pointer; outline-offset: 2px; }
.sg-viewer__thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .5s, opacity .5s, transform .8s var(--pdx-ease); }
.sg-viewer__thumb span { position: absolute; left: 6px; bottom: 6px; padding: 3px 5px; font: 500 10px/1 var(--pdx-font-text); letter-spacing: .08em; background: var(--pdx-bg); color: var(--pdx-ink); }
.sg-viewer__thumb:hover img, .sg-viewer__thumb.is-active img { filter: none; opacity: 1; }
.sg-viewer__thumb.is-active { box-shadow: 0 0 0 2px var(--pdx-accent); }
.pdx.js-ready .sg-viewer .sg-viewer__thumbs li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--pdx-ease), transform .7s var(--pdx-ease); }
.pdx.js-ready .sg-viewer.is-in .sg-viewer__thumbs li { opacity: 1; transform: none; }
.pdx.js-ready .sg-viewer .sg-viewer__thumbs li:nth-child(n) { transition-delay: .3s; }
.pdx.js-ready .sg-viewer .sg-viewer__stage { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s steps(8, end) .1s; }
.pdx.js-ready .sg-viewer.is-in .sg-viewer__stage { clip-path: inset(0); }

/* strip: a film strip that scrolls sideways (drag, wheel with shift, keys) */
.sg-strip { margin: 0 calc(-1 * var(--pdx-gutter)); }
.sg-strip__track {
  display: flex;
  gap: var(--sg-gap);
  overflow-x: auto;
  padding: 0 var(--pdx-gutter) 6px;
  scroll-snap-type: x proximity;
  scroll-padding: 0 var(--pdx-gutter);
  scrollbar-width: none;
  cursor: grab;
  outline: none;
}
.sg-strip__track::-webkit-scrollbar { display: none; }
.sg-strip__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.sg-strip__track.is-dragging .sg-fig__btn { pointer-events: none; }
.sg-strip .sg-fig { flex: 0 0 auto; scroll-snap-align: start; }
.sg-strip .sg-fig__btn { height: clamp(300px, 54vh, 560px); aspect-ratio: 3 / 2; width: auto; }
.sg-strip .sg-fig--tall .sg-fig__btn { aspect-ratio: 2 / 3; }
.sg-strip__bar { display: block; height: 2px; margin: 18px var(--pdx-gutter) 0; background: var(--pdx-line); }
.sg-strip__bar i { display: block; height: 100%; width: var(--w, 20%); background: var(--pdx-ink); transform: translateX(var(--tx, 0%)); }

/* ---------- location: spec sheet + map with a crosshair ---------- */
.sg-location--continued { padding-top: clamp(28px, 5vh, 56px); }
.sg-location__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sg-gap); row-gap: 40px; align-items: start; }
.sg-location__info { grid-column: 1 / span 4; display: grid; gap: 28px; }
.sg-location__grid--no-map .sg-location__info { grid-column: 1 / span 8; }
.sg-location__place { font: 700 clamp(26px, 2.6vw, 50px)/.95 var(--pdx-font-title); letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: break-word; }
.sg-table { margin: 0; border-top: 2px solid var(--sg-rule); }
.sg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--pdx-line); }
.sg-row dt { font: 500 11px/1.4 var(--pdx-font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--pdx-muted); }
.sg-row dd { margin: 0; display: grid; justify-items: end; gap: 6px; font: 500 14px/1.3 var(--pdx-font-text); text-align: right; }
.sg-row--stat dd b { font: 700 clamp(34px, 3vw, 52px)/.9 var(--pdx-font-title); letter-spacing: -.03em; }
.sg-row__bar { display: block; width: 120px; height: 3px; background: var(--pdx-line); }
.sg-row__bar i { display: block; height: 100%; width: calc(var(--share, 1) * 100%); margin-left: auto; background: var(--pdx-accent); transform-origin: right; }
.pdx.js-ready .sg-table .sg-row__bar i { transform: scaleX(0); transition: transform 1.3s var(--pdx-ease); transition-delay: calc(.3s + var(--d, 0) * .15s); }
.pdx.js-ready .sg-table.is-in .sg-row__bar i { transform: none; }
.sg .sg-map { grid-column: 5 / -1; position: relative; margin: 0; height: clamp(420px, 68svh, 720px); border: 2px solid var(--sg-rule); background: var(--pdx-surface); }
.sg-map__canvas { position: absolute; inset: 0; }
.sg-map__cross { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sg-map__cross::before, .sg-map__cross::after { content: ''; position: absolute; background: color-mix(in srgb, var(--pdx-accent) 70%, transparent); }
.sg-map__cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.sg-map__cross::after { top: 50%; left: 0; right: 0; height: 1px; }
.pdx.js-ready .sg-map__cross::before { transform: scaleY(0); transition: transform 1.4s var(--pdx-ease) .3s; }
.pdx.js-ready .sg-map__cross::after { transform: scaleX(0); transition: transform 1.4s var(--pdx-ease) .5s; }
.pdx.js-ready .sg-location__grid:has(.sg-location__info.is-in) .sg-map__cross::before,
.pdx.js-ready .sg-location__grid:has(.sg-location__info.is-in) .sg-map__cross::after { transform: none; }

/* ---------- contact ---------- */
.sg-contact { padding-bottom: clamp(90px, 14vh, 160px); }
.sg-contact__title { font: 700 clamp(44px, 7.6vw, 140px)/.86 var(--pdx-font-title); letter-spacing: -.04em; text-transform: uppercase; margin-bottom: clamp(40px, 7vh, 80px); }
.sg-contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sg-gap); row-gap: 40px; }
.sg-contact__intro { grid-column: 1 / span 4; display: grid; align-content: start; gap: 22px; font-size: 18px; }
.sg-contact__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sg .pd-form-box.sg-form {
  display: block;
  grid-column: 6 / -1;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--pdx-ink);
  text-align: left;
  backdrop-filter: none;
}
.sg .sg-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sg-gap); row-gap: 26px; }
.sg .sg-form .sg-field { display: grid; gap: 8px; margin: 0; }
.sg .sg-form .sg-field--wide, .sg .sg-form button, .sg .sg-form .sg-form__consent { grid-column: 1 / -1; }
.sg .sg-form .sg-field__label { font: 500 10px/1 var(--pdx-font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--pdx-muted); }
.sg .sg-form .sg-field__row { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--sg-rule); }
.sg .sg-form input {
  width: 100%;
  margin: 0;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 2px solid var(--sg-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pdx-ink);
  font: 400 clamp(18px, 1.4vw, 22px)/1.2 var(--pdx-font-text);
}
.sg .sg-form .sg-field__row input { border-bottom: 0; }
.sg .sg-form input::placeholder { color: color-mix(in srgb, var(--pdx-ink) 35%, transparent); }
.sg .sg-form input:focus { outline: none; border-bottom-color: var(--pdx-accent); }
.sg .sg-form .sg-field__row:focus-within { border-bottom-color: var(--pdx-accent); }
.sg .sg-form .pd-phone-prefix { position: static; padding: 0; margin: 0; transform: none; color: var(--pdx-accent); font: 400 clamp(18px, 1.4vw, 22px)/1.2 var(--pdx-font-text); }
.sg .sg-form button[type="submit"] { min-height: 60px; margin-top: 6px; }
.sg .sg-form .sg-form__consent { margin: 0; font-size: 12px; line-height: 1.5; color: var(--pdx-muted); }

/* ---------- index strip ---------- */
.sg-index {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 42px;
  padding: 0 var(--pdx-gutter);
  background: color-mix(in srgb, var(--pdx-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--sg-rule);
  font: 500 11px/1 var(--pdx-font-text);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .5s var(--pdx-ease);
}
.sg.is-hero-view .sg-index { transform: translateY(100%); }
.sg-index__title { color: var(--pdx-accent); font-weight: 700; }
.sg-index ol { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.sg-index a { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; text-decoration: none; color: var(--pdx-muted); white-space: nowrap; transition: color .3s, background-color .3s; }
.sg-index a b { font-weight: 700; }
.sg-index a span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.sg-index a:hover { color: var(--pdx-ink); }
.sg-index a[aria-current="true"] { color: var(--pdx-accent-ink); background: var(--pdx-accent); }
.sg-index__meter { position: absolute; left: 0; right: 0; top: -1px; height: 2px; }
.sg-index__meter i { display: block; height: 100%; background: var(--pdx-accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }
@media (max-width: 1099px) { .sg-index { display: none; } }

/* ---------- dock (phones) ---------- */
.sg-dock { display: none; }

/* ---------- tone: dark ---------- */
.sg[data-tone="dark"] { --sg-rule: var(--pdx-ink); }

/* ---------- tablets & phones ---------- */
@media (max-width: 899px) {
  .pdx.sg { font-size: 16px; }
  .sg > .sg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-grid i:nth-child(n + 5) { display: none; }
  .sg-hero, .sg-head, .sg-chhead, .sg-prologue, .sg-mosaic, .sg-viewer, .sg-location__grid, .sg-contact__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sg-hero { --sg-title: min(20svh, calc((100vw - 2 * var(--pdx-gutter)) / (var(--len, 10) * .86))); min-height: 0; row-gap: 22px; }
  .sg-hero__title { white-space: normal; }
  .sg-hero__spec { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .sg-hero__copy, .sg-hero__media, .sg-hero--stack .sg-hero__title, .sg-hero--stack .sg-hero__spec, .sg-hero--stack .sg-hero__copy,
  .sg-hero--strip .sg-hero__spec, .sg-hero--strip .sg-hero__copy, .sg-hero--label .sg-hero__copy,
  .sg-hero--rotated .sg-hero__spec, .sg-hero--rotated .sg-hero__copy { grid-column: 1 / -1; grid-row: auto; }
  .sg-hero__media { height: 52svh; order: 3; }
  .sg-hero--stack .sg-hero__media, .sg-hero--rotated .sg-hero__media { grid-column: 1 / -1; grid-row: auto; min-height: 0; height: 56svh; margin-right: calc(-1 * var(--pdx-gutter)); margin-left: calc(-1 * var(--pdx-gutter)); }
  .sg-hero--stack { --sg-title: min(16svh, calc((100vw - 2 * var(--pdx-gutter)) / (var(--wlen, 8) * .86))); }
  .sg-hero--strip .sg-hero__media { height: 42svh; }
  .sg-hero--label { min-height: 100svh; }
  .sg-hero--label .sg-hero__spec { position: relative; top: auto; left: auto; right: auto; grid-column: 1 / -1; order: -1; }
  .sg-hero--rotated .sg-hero__title { grid-column: 1 / -1; grid-row: auto; writing-mode: horizontal-tb; transform: none; }
  .sg-hero--rotated { --sg-title: min(20svh, calc((100vw - 2 * var(--pdx-gutter)) / (var(--len, 10) * .86))); }
  .pdx.js-ready .sg-hero--rotated .sg-ch { animation-name: sg-rise; }
  .sg-hero__actions { flex-direction: column; align-items: stretch; }
  .sg-hero--strip .sg-hero__actions, .sg-hero--label .sg-hero__actions { flex-direction: column; }
  .sg-hero__actions .sg-btn, .sg-hero--strip .sg-hero__actions .sg-btn, .sg-hero--label .sg-hero__actions .sg-btn { width: 100%; }

  .sg-head__no { grid-column: 1; }
  .sg-head__label { grid-column: 2 / -1; }
  .sg-lede, .sg-prologue__rest { grid-column: 1 / -1; }
  .sg-prologue__rest { columns: 1; }
  .sg-chhead__label { grid-column: 2 / -1; }
  .sg-chhead__title { grid-column: 1 / -1; font-size: clamp(22px, 6.6vw, 32px); overflow-wrap: break-word; hyphens: auto; }
  .sg-feat__title { font-size: 14px; overflow-wrap: break-word; hyphens: auto; }
  .sg-features--list .sg-feat__title { font-size: clamp(16px, 4.6vw, 20px); }
  .sg-contact__title { font-size: clamp(30px, 10vw, 48px); overflow-wrap: break-word; }
  .sg-body { margin-left: 0; columns: 1; }
  .sg-feats, .sg-features--matrix .sg-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--sg-gap); }
  .sg-features--list .sg-feats { grid-template-columns: minmax(0, 1fr); }
  .sg-features--list .sg-feat { grid-template-columns: 40px minmax(0, 1fr) 48px; }
  .sg-features--list .sg-feat__no { grid-column: 1; }
  .sg-features--list .sg-feat__title { grid-column: 2; }
  .sg-features--list .sg-feat__text { grid-column: 2; }
  .sg-features--list .sg-feat__icon { grid-column: 3; grid-row: 1; width: 44px; }
  .sg-features--matrix .sg-feat { min-height: 220px; padding: 16px; }
  .sg-fig--lead, .sg-fig--side, .sg-fig--side-full, .sg-fig--of1, .sg-fig--of2, .sg-fig--of3 { grid-column: span 4; grid-row: auto; }
  .sg-fig--lead .sg-fig__btn { min-height: 0; aspect-ratio: 4 / 3; }
  .sg-fig--side .sg-fig__btn, .sg-fig--side-full .sg-fig__btn { aspect-ratio: 4 / 3; }
  .sg-fig--of3 { grid-column: span 2; }
  .sg-fig--of3 .sg-fig__btn { aspect-ratio: 1; }
  .sg-viewer__main, .sg-viewer__thumbs { grid-column: 1 / -1; }
  .sg-viewer__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; gap: 6px; }
  .sg-strip .sg-fig__btn { height: 46vh; }
  .sg-location__info, .sg .sg-map, .sg-location__grid--no-map .sg-location__info { grid-column: 1 / -1; }
  .sg .sg-map { height: clamp(360px, 60svh, 520px); }
  .sg-contact__intro, .sg .pd-form-box.sg-form { grid-column: 1 / -1; }
  .sg .sg-form form { grid-template-columns: minmax(0, 1fr); }
  .sg-contact { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  .sg-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
    background: var(--pdx-bg);
    border: 2px solid var(--sg-rule);
    transform: translateY(calc(100% + 24px));
    transition: transform .5s var(--pdx-ease);
  }
  .sg-dock.is-visible { transform: none; }
  .sg-dock .sg-btn { min-height: 46px; padding: 0 10px; }
}

/* ---------- motion preferences ---------- */
.sg[data-motion="none"] *, .sg[data-motion="none"] *::before, .sg[data-motion="none"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .pdx.js-ready .sg-mosaic .sg-fig__btn, .pdx.js-ready .sg-strip .sg-fig__btn, .pdx.js-ready .sg-viewer .sg-viewer__stage { clip-path: none; }
}
