/* Liquid Glass for the control layer. Content remains on an opaque reading surface. */
:root {
  --glass-fill: rgb(250 251 253 / .38);
  --glass-menu-fill: rgb(250 251 253 / .82);
  --glass-blur: 12px;
  --glass-edge: rgb(255 255 255 / .64);
  --glass-rim: rgb(28 37 48 / .10);
  --glass-shadow: 0 5px 18px rgb(20 30 45 / .07), 0 1px 3px rgb(20 30 45 / .04);
  --glass-inner: inset 0 1px 0 rgb(255 255 255 / .65), inset 0 -1px 0 rgb(255 255 255 / .12);
  --glass-selected: rgb(255 255 255 / .46);
  --glass-hover: rgb(120 130 145 / .09);
  --glass-highlight: rgb(255 255 255 / .24);
  --glass-ease: cubic-bezier(.22, .8, .22, 1);
  --glass-text: #22262c;
  --control-top: 94px;
}
[data-theme=dark] {
  --glass-fill: rgb(28 31 36 / .32);
  --glass-menu-fill: rgb(28 31 36 / .80);
  --glass-edge: rgb(255 255 255 / .24);
  --glass-rim: rgb(0 0 0 / .16);
  --glass-shadow: 0 5px 20px rgb(0 0 0 / .16), 0 1px 4px rgb(0 0 0 / .10);
  --glass-inner: inset 0 1px 0 rgb(255 255 255 / .17), inset 0 -1px 0 rgb(255 255 255 / .04);
  --glass-selected: rgb(255 255 255 / .10);
  --glass-hover: rgb(255 255 255 / .08);
  --glass-highlight: rgb(255 255 255 / .07);
  --glass-text: #f4f5f7;
}
/* Each surface has one blur layer; selected states inside it are simple fills. */
.glass-surface {
  background-color: var(--glass-fill);
  background-image: radial-gradient(ellipse 150px 52px at var(--glass-x, 30%) var(--glass-y, 0%), var(--glass-highlight), transparent 78%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-inner), var(--glass-shadow), 0 0 0 1px var(--glass-rim);
  color: var(--glass-text);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
}
.glass-segments { position: relative; isolation: isolate; }
.glass-segments > :is(a,button) { position: relative; z-index: 1; }
.glass-indicator {
  position: absolute; z-index: 0; pointer-events: none;
  top: 0; left: 0; width: var(--indicator-w,0px); height: var(--indicator-h,0px);
  transform: translate3d(var(--indicator-x,0px),var(--indicator-y,0px),0);
  border-radius: inherit; background: var(--glass-selected);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), inset 0 1px 0 rgb(255 255 255 / .25), 0 2px 5px rgb(0 0 0 / .04);
  opacity: var(--indicator-opacity,0);
  transition: transform .42s var(--glass-ease), width .42s var(--glass-ease), height .42s var(--glass-ease), opacity .18s;
}
.glass-segments > :is(a,button):hover { background: var(--glass-hover); }
.glass-segments.has-indicator > :is(a,button):is([aria-selected=true],[aria-pressed=true],[aria-current]) { background: transparent; }
.glass-segments > :is(a,button):active { scale: .97; }
.glass-segments > :is(a,button) { transition: color .2s, background .2s, scale .25s var(--glass-ease); }
:is(a,button,summary,input):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
html { scroll-padding-top: 170px; }
.reading-progress { z-index: 60; height: 2px; }
/* Separate floating navigation islands leave the composition visible between them. */
.header, .header.is-scrolled {
  height: var(--control-top); padding: 16px var(--gutter); gap: 12px;
  background: transparent; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  z-index: 40; pointer-events: none; max-width: none;
}
.header::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 -12px;
  background: linear-gradient(var(--paper),color-mix(in srgb,var(--paper) 90%,transparent) 45%,transparent);
  pointer-events: none; opacity: .95;
}
.header > * { pointer-events: auto; }
.header .brand { width: 54px; height: 54px; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; border-radius: 50%; font-size: 22px; letter-spacing: -1.6px; flex-shrink: 0; margin-right: auto; }
.header > nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 99px; font-size: 14px; }
.header > nav a { padding: 11px 20px; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 99px; font-weight: 500; white-space: nowrap; }
.header > nav a::after, .case-nav nav a::after { display: none; }
.header > nav a[aria-current=page] { background: var(--glass-selected); }
.header .language-switch { font-size: 13px; }
.language-switch summary { min-height: 54px; min-width: 72px; justify-content: center; padding: 12px 16px; border-radius: 99px; gap: 8px; font-weight: 500; }
.language-switch summary > span { transition: rotate .25s var(--glass-ease); }
.language-switch[open] summary > span { rotate: 180deg; }
.language-switch ul { background-color: var(--glass-menu-fill); top: calc(100% + 12px); min-width: 185px; padding: 7px; border-radius: 25px; transform-origin: top right; }
.language-switch[open] ul { animation: glass-menu-in .26s var(--glass-ease); }
.language-switch a { min-height: 44px; padding: 12px 16px; border-radius: 18px; }
.language-switch a:hover, .language-switch a[aria-current=true] { color: var(--glass-text); background: var(--glass-hover); }
.language-switch a[aria-current=true]::after { content: '✓'; float: right; margin-left: 24px; }
.header .theme { width: 54px; height: 54px; flex-shrink: 0; padding: 0; border-radius: 50%; font-size: 25px; }
.theme select { border-radius: inherit; }
.theme:focus-within { border-radius: 50%; }
.menu-toggle { border-radius: 99px; font-weight: 500; }
@keyframes glass-menu-in { from { opacity: 0; transform: translateY(-7px) scale(.96); } to { opacity: 1; transform: none; } }
/* The clear variant appears only over imagery, with a darkened backing for contrast. */
.glass-clear, .lightbox {
  --glass-fill: rgb(12 17 23 / .12); --glass-edge: rgb(255 255 255 / .40);
  --glass-blur: 6px;
  --glass-rim: rgb(0 0 0 / .09); --glass-text: #fff;
  --glass-selected: rgb(255 255 255 / .11); --glass-hover: rgb(255 255 255 / .08);
  --glass-highlight: rgb(255 255 255 / .06);
  --glass-inner: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(255 255 255 / .04);
}
.cover-story { --cover-height: clamp(440px,64svh,820px); position: relative; }
.cover-image { height: var(--cover-height); min-height: 0; max-height: none; border-radius: 28px; }
.cover-image::after { inset: 0; background: linear-gradient(180deg,transparent 22%,rgb(0 0 0 / .12) 43%,rgb(0 0 0 / .64)); }
.cover-overlay { left: 36px; right: 36px; bottom: 115px; }
.cover-overlay h2 { max-width: 76%; }
.cover-overlay .eyebrow { font-weight: 500; }
.cover-link { display: flex; align-items: center; gap: 18px; width: max-content; position: absolute; right: 0; bottom: 5px; padding: 13px 19px; min-height: 48px; border-radius: 99px; margin: 0; font-weight: 500; }
.icon-arrow { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; vertical-align: -.16em; }
.cover-link { gap: 13px; }
.cover-link .icon-arrow { transition: transform .25s var(--glass-ease); }
.document-link { display: inline-flex; align-items: center; gap: 10px; }
.cover-link, .cover-selector button { text-shadow: 0 1px 3px rgb(0 0 0 / .28); }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .cover-image:hover .icon-arrow { transform: translate(2px,-2px); }
}
.cover-foot { padding: 22px 5px 12px; }
.cover-selector { position: absolute; top: calc(var(--cover-height) - 87px); left: 32px; width: min(620px,calc(100% - 64px)); padding: 5px; gap: 2px; border-radius: 99px; }
.cover-selector button { border-radius: 99px; min-height: 50px; padding: 10px 16px; text-align: center; font-size: 14px; font-weight: 500; color: rgb(255 255 255 / .85); line-height: 1.3; }
.cover-selector button > span { display: inline; color: inherit; font-size: 10px; margin: 0 10px 0 0; opacity: .7; font-variant-numeric: tabular-nums; }
.cover-selector button::before { display: none; }
.cover-selector button[aria-selected=true] { color: #fff; background: var(--glass-selected); }
.project-image { border-radius: 18px; }
.image-badge { border-radius: 99px; background: rgb(250 250 250 / .94); padding: 8px 13px; }
.card-visit { border-radius: 99px; }
.project-hero, .project-hero > .gallery-open { border-radius: 22px; overflow: hidden; }
.gallery-open .enlarge { background-color: var(--glass-fill); color: var(--glass-text); display: grid; place-items: center; border-radius: 50%; width: 48px; height: 48px; font-size: 24px; opacity: 1; }
/* Project chapters float above long drawings without tinting the drawings themselves. */
.case-nav { top: 92px; margin-top: 28px; padding: 5px; gap: 16px; border-radius: 99px; }
.case-nav nav { padding: 0; gap: 2px; border-radius: 99px; scrollbar-width: none; }
.case-nav nav::-webkit-scrollbar { display: none; }
.case-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 19px; border-radius: 99px; color: var(--glass-text); font-size: 13px; }
.case-nav a[aria-current=location] { background: var(--glass-selected); color: var(--glass-text); }
.case-nav > span { padding-right: 20px; }
.project-story, .project-chapter, .model-section, .project-film { scroll-margin-top: 166px; }
/* Catalog selectors: one material per group, one moving selection. */
.filter-bar { padding-top: 24px; padding-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.filters { gap: 2px; padding: 5px; border-radius: 29px; }
.filters button { min-height: 44px; padding: 11px 16px; border: 0; border-radius: 99px; font-size: 13px; color: var(--glass-text); }
.filters button[aria-pressed=true], .view-options button[aria-pressed=true] { background: var(--glass-selected); color: var(--glass-text); border-color: transparent; }
.view-options { padding: 4px; gap: 2px; border-radius: 99px; }
.view-options button { min-height: 44px; padding: 11px 18px; border-radius: 99px; }
.index-options { gap: 18px; }
/* Model controls share the same material and stay outside the gesture surface. */
.model-stage { border-radius: 24px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .05); }
.model-launch { border-radius: 99px; min-height: 58px; padding: 16px 28px; font-weight: 500; }
.model-controls { padding: 18px 0; border: 0; gap: 12px; }
.model-controls > div { padding: 5px; gap: 2px; border-radius: 29px; }
.model-controls button { border: 0; min-width: 44px; min-height: 44px; padding: 11px 17px; font-size: 13px; border-radius: 99px; color: var(--glass-text); }
.model-controls button:disabled { opacity: .45; }
.model-controls button[aria-pressed=true] { background: var(--glass-selected); color: var(--glass-text); }
.model-controls button:hover:not(:disabled) { background: var(--glass-hover); }
.model-tools { padding: 24px 0; border-bottom: 0; }
.model-layer { min-height: 44px; border-radius: 99px; border-color: var(--line); padding: 10px 15px; background: color-mix(in srgb,var(--panel) 55%,transparent); }
.model-layer[aria-pressed=false] { opacity: .6; background: transparent; }
.model-swatch { border-radius: 50%; width: 9px; height: 9px; }
.model-sliders input { appearance: none; -webkit-appearance: none; background: transparent; min-height: 44px; cursor: pointer; }
.model-sliders input::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(to right,var(--accent) var(--range-fill,100%),var(--line) var(--range-fill,100%)); }
.model-sliders input::-moz-range-track { height: 5px; border-radius: 99px; background: var(--line); }
.model-sliders input::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--accent); }
.model-sliders input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; margin-top: -11.5px; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 6px #0002; transition: scale .2s var(--glass-ease); }
.model-sliders input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid #ddd; box-shadow: 0 2px 6px #0002; }
.model-sliders input:active::-webkit-slider-thumb { scale: 1.15; }
.ar-entry a { border-radius: 99px; overflow: hidden; box-shadow: 0 5px 15px #0001; transition: transform .25s var(--glass-ease); }
.ar-entry a:hover { transform: translateY(-2px); }
/* The viewer is dark so the artwork, rather than a blurred page, carries the scene. */
.lightbox { background: #111318; }
.lightbox::backdrop { background: #111318; }
.lightbox-top { padding: max(18px,env(safe-area-inset-top)) 24px 14px; min-height: 82px; }
.lightbox-top > div { gap: 8px; }
.lightbox-top button, .lightbox-bottom > button { border-radius: 99px; min-height: 46px; padding: 11px 21px; font-size: 13px; font-weight: 500; }
.lightbox-top .zoom-viewer { border: 1px solid var(--glass-edge); border-radius: 99px; min-height: 46px; }
#image-count { min-width: 58px; padding: 12px 17px; border-radius: 99px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.lightbox-bottom { padding: 16px 24px 0; gap: 24px; }
.lightbox-bottom p { max-width: 680px; color: #dddfe5; line-height: 1.5; }
.viewer-thumbs { padding-bottom: max(18px,env(safe-area-inset-bottom)); }
.viewer-thumbs button { border-radius: 12px; overflow: hidden; opacity: .55; }
.viewer-thumbs button[aria-current=true] { border-color: #fff; box-shadow: 0 0 0 2px #ffffff30; }
@media(min-width:1800px) { .header { max-width: 2000px; } }
@media(max-width:1100px) {
  .header > nav a { padding-inline: 16px; }
  .cover-overlay h2 { max-width: 100%; }
  .cover-link { right: 0; bottom: -82px; }
  .cover-selector { width: min(560px,calc(100% - 255px)); }
}
@media(max-width:820px) {
  :root { --control-top: 82px; }
  .header { padding-block: 14px; gap: 10px; }
  .header .brand { width: 50px; height: 50px; }
  .header .theme { width: 50px; height: 50px; }
  .language-switch summary { min-height: 50px; min-width: 67px; padding-inline: 13px; }
  .js-ready .header .brand { margin-right: auto; }
  .js-ready .menu-toggle { display: block; min-height: 50px; padding: 11px 20px; margin-left: 0; font-size: 14px; }
  .js-ready .header > nav {
    display: none; position: absolute; top: 76px; left: auto; right: var(--gutter);
    width: min(320px,calc(100% - 2 * var(--gutter))); padding: 8px; flex-direction: column;
    align-items: stretch; gap: 2px; border-radius: 30px; transform-origin: top right;
    background-color: var(--glass-menu-fill); border: 1px solid var(--glass-edge); box-shadow: var(--glass-inner), var(--glass-shadow);
  }
  .js-ready .header > nav.is-open { display: flex; animation: glass-menu-in .26s var(--glass-ease); }
  .js-ready .header > nav a { display: flex; justify-content: flex-start; padding: 16px 22px; min-height: 54px; font-size: 18px; letter-spacing: -.02em; border-radius: 23px; }
  .header > nav a:last-child { display: flex; }
  .home-intro { padding-top: 21px; }
  .cover-story { --cover-height: clamp(430px,62svh,640px); }
  .cover-image { border-radius: 24px; }
  .cover-overlay { left: 25px; right: 25px; bottom: 120px; }
  .cover-link { position: static; font-size: 12px; min-height: 42px; padding: 10px 15px; margin-top: 20px; }
  .cover-selector { left: 18px; width: calc(100% - 36px); }
  .cover-selector button { padding: 10px 12px; font-size: 12px; }
  .cover-selector button > span { margin-right: 6px; }
  .case-nav { top: 80px; }
  .case-nav a { padding-inline: 16px; }
  .case-nav > span { display: none; }
  .filters { width: 100%; }
  .index-options { width: 100%; justify-content: space-between; }
  .model-controls button { font-size: 12px; padding-inline: 14px; }
}
@media(max-width:540px) {
  .header { gap: 8px; }
  .header .brand { width: 46px; height: 46px; font-size: 20px; }
  .header .theme { width: 46px; height: 46px; font-size: 23px; }
  .js-ready .menu-toggle { min-height: 46px; padding: 11px 17px; font-size: 13px; }
  .language-switch summary { min-height: 46px; min-width: 62px; padding: 10px 12px; font-size: 12px; gap: 5px; }
  .home-intro { padding-top: 16px; padding-bottom: 25px; }
  .home-intro > p { max-width: 31ch; line-height: 1.5; font-size: 15px; }
  .home-intro h1 { font-size: 17.6vw; margin-top: 12px; }
  .cover-story { --cover-height: clamp(440px,64svh,570px); }
  .cover-overlay { left: 22px; right: 22px; bottom: 122px; }
  .cover-overlay h2 { font-size: clamp(34px,10vw,50px); }
  .cover-selector { top: calc(var(--cover-height) - 89px); left: 12px; width: calc(100% - 24px); border-radius: 35px; padding: 4px; gap: 0; }
  .cover-selector button { min-height: 60px; padding: 9px 5px; font-size: 12px; border-radius: 30px; text-wrap: balance; }
  .cover-selector button > span { display: block; margin: 0 0 4px; font-size: 9px; }
  .cover-foot { padding-inline: 2px; }
  .cover-foot p { font-size: 14px; }
  .case-nav { margin-inline: 12px; padding: 4px; }
  .case-nav a { font-size: 12px; min-height: 44px; padding: 11px 14px; }
  .filters { border-radius: 27px; }
  .filters button { font-size: 12px; padding: 10px 12px; }
  .model-stage { border-radius: 18px; }
  .model-controls { gap: 10px; }
  .model-controls > div { padding: 4px; border-radius: 27px; }
  .model-controls button { padding: 10px 13px; }
  .model-tools { padding-top: 22px; }
  .model-layer { padding: 9px 12px; font-size: 12px; }
  .lightbox-top { padding-inline: 14px; min-height: 80px; }
  .lightbox-top button, .lightbox-bottom > button { min-width: 44px; padding: 10px 15px; font-size: 12px; }
  .lightbox-bottom { padding-inline: 12px; gap: 10px; }
  .lightbox-bottom p { max-width: 54%; font-size: 11px; }
  .viewer-thumbs { padding-top: 16px; }
}
@media(max-width:360px) {
  .header { padding-inline: 16px; gap: 6px; }
  .js-ready .menu-toggle { padding-inline: 14px; }
  .language-switch summary { min-width: 58px; }
  .cover-overlay { left: 18px; right: 18px; }
  .cover-selector button { font-size: 11px; }
  .model-controls button { padding-inline: 10px; }
}
/* System accessibility settings take precedence over the material effect. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-surface, .language-switch ul, .js-ready .header > nav, .gallery-open .enlarge { background: var(--paper); color: var(--ink); }
  .glass-clear, .gallery-open .enlarge, .lightbox .glass-surface { background: #30343a; color: white; }
}
@media(prefers-reduced-transparency:reduce) {
  .glass-surface, .language-switch ul, .js-ready .header > nav, .gallery-open .enlarge { background: var(--paper); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass-clear, .gallery-open .enlarge, .lightbox .glass-surface { background: #30343a; color: white; }
  .header::before { background: var(--paper); inset: 0; }
}
@media(prefers-contrast:more) {
  :root { --glass-fill: var(--paper); }
  .glass-clear, .lightbox { --glass-fill: #24272c; }
  .glass-surface { border: 1px solid currentColor; background: var(--paper); color: var(--ink); }
  .glass-clear, .gallery-open .enlarge, .lightbox .glass-surface { background: #24272c; color: white; }
  .glass-indicator { box-shadow: inset 0 0 0 1px currentColor; }
}
@media(prefers-reduced-motion:reduce) {
  .glass-indicator, .glass-segments > :is(a,button), .ar-entry a { transition: none; }
  .glass-segments > :is(a,button):active, .model-sliders input:active::-webkit-slider-thumb { scale: 1; }
  .ar-entry a:hover { transform: none; }
}
@media(forced-colors:active) {
  :root, .glass-clear, .lightbox { --glass-fill: Canvas; --glass-text: CanvasText; }
  .glass-surface { background: Canvas; color: CanvasText; border: 1px solid ButtonText; box-shadow: none; backdrop-filter: none; }
  .glass-indicator { display: none; }
  .glass-segments > :is(a,button):is([aria-current],[aria-selected=true],[aria-pressed=true]) { outline: 2px solid Highlight; outline-offset: -4px; }
}

/* Owner's horizontal signature: preserve its proportions on a transparent background. */
.header .brand { width: 158px; height: 54px; padding: 11px 17px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.brand picture { display: block; width: 124px; max-width: 100%; line-height: 0; }
.header .brand-mark { display: block; width: 100%; height: auto; object-fit: contain; }
[data-theme=dark] .brand-mark { filter: invert(1); }
.menu-glyph { display: none; }
@media(max-width:820px) {
  .header .brand { width: 142px; height: 50px; padding: 10px 16px; }
}
@media(max-width:540px) {
  .header .brand { width: 112px; height: 46px; padding: 10px 14px; }
  .js-ready .menu-toggle { display: grid; place-items: center; width: 46px; min-width: 46px; height: 46px; padding: 0; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-glyph { position: relative; display: block; width: 18px; height: 14px; }
  .menu-glyph::before, .menu-glyph::after { content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .22s var(--glass-ease); }
  .menu-glyph::before { top: 3px; }
  .menu-glyph::after { bottom: 3px; }
  [aria-expanded=true] .menu-glyph::before { transform: translateY(3.25px) rotate(45deg); }
  [aria-expanded=true] .menu-glyph::after { transform: translateY(-3.25px) rotate(-45deg); }
}
@media(max-width:360px) {
  .header .brand { width: 96px; padding-inline: 11px; }
}
@media(forced-colors:active) {
  .brand-mark { filter: none; }
  .header .brand { background: #fff; forced-color-adjust: none; }
}
