/* Dr. von Sontagh: the status line. One family (Jost, the Futura of his logo), four roles:
   display 200, heading 300, text 400, label 500 caps. At most two of them in one block. */
@font-face { font-family: 'Jost'; src: url(../fonts/jost.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #141615; --ink2: #1b1e1c; --ink3: #262a27;
  --paper: #f2f0eb; --paper2: #e8e5de; --white: #fbfaf6;
  --sage: #adb6a8; --sage-d: #5d6958; --sage-l: #cfd5ca;
  --on-d: rgba(242, 240, 235, .66); --on-l: rgba(20, 22, 21, .64);
  --line-d: rgba(242, 240, 235, .16); --line-l: rgba(20, 22, 21, .14);
  --sans: 'Jost', 'Futura', system-ui, sans-serif;
  --gut: clamp(20px, 4.2vw, 72px);
  --hdr: 78px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --h2: clamp(2.25rem, min(4.3vw, 7.6svh), 4.75rem);
  --t: clamp(1rem, .94rem + .22vw, 1.1875rem);
  --lab: 11.5px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; font: 400 var(--t)/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-synthesis: none; font-kerning: normal; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 300; }
figure { margin: 0; }
b, strong { font-weight: 500; }
:focus-visible { outline: 1.5px solid var(--sage); outline-offset: 3px; }
.vh, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 99; background: var(--paper); color: var(--ink); padding: 10px 16px; }

/* ---------- the four roles ---------- */
.h2 { font: 300 var(--h2)/1.04 var(--sans); letter-spacing: -.022em; text-wrap: balance; }
.ac { color: var(--sage-d); }
[data-tone="dark"] .ac { color: var(--sage); }
.lab { font: 500 var(--lab)/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--on-l); }
[data-tone="dark"] .lab { color: var(--on-d); }
section p { color: var(--on-l); max-width: 34em; }
[data-tone="dark"] p { color: var(--on-d); }
section { position: relative; }
[data-tone="dark"] { background: var(--ink); color: var(--paper); }
[data-tone="light"] { background: var(--paper); color: var(--ink); }
.small { font-size: .82rem; line-height: 1.5; }

/* buttons: label caps, quiet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 28px; font: 500 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); transition: background .35s var(--ease), color .35s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--ink3); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(20, 22, 21, .35); }
.btn--line:hover { background: rgba(20, 22, 21, .05); }
[data-tone="dark"] .btn, .sheet .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
[data-tone="dark"] .btn:hover, .sheet .btn:hover { background: #fff; }
[data-tone="dark"] .btn--line, .sheet .btn--line { background: transparent; color: var(--paper); border-color: rgba(242, 240, 235, .38); }
[data-tone="dark"] .btn--line:hover, .sheet .btn--line:hover { background: rgba(242, 240, 235, .08); }
/* a held finger must not lift the link into a preview or select its label */
.btn, .door, .lnk, .tools__tabs button, .tools__arrows button, .sv__q, .work__tabs button, .team__nav button { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.btn:active, .door:active, .tools__arrows button:active, .team__nav button:active { transform: scale(.97); transition-duration: .08s; }
.lnk { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid currentColor; }
.lnk svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.lnk:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.hdr { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--hdr); display: flex; align-items: center; gap: 36px; padding: 0 var(--gut); color: var(--paper); transition: transform .5s var(--ease), background .4s, color .4s; }
.hdr.is-solid { background: rgba(20, 22, 21, .95); /* no backdrop blur: it re-samples the page under the bar on every scrolled frame */ }
.hdr.is-solid.is-light { background: rgba(242, 240, 235, .96); color: var(--ink); }
.hdr.is-up { transform: translateY(-100%); }
.brand { display: flex; flex-direction: column; gap: 5px; width: 196px; transition: opacity .5s; }
.brand__dr { width: 41%; height: auto; aspect-ratio: 131.5 / 17.4; fill: currentColor; }
.brand__name { width: 100%; height: auto; aspect-ratio: 310.69 / 22.2; fill: currentColor; }
.hdr:not(.is-solid) .brand { opacity: 0; pointer-events: none; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a, .hdr__cta { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 10px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.hdr__cta { border: 1px solid currentColor; padding: 13px 18px; opacity: .9; }
.hdr__cta:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; }
.menu-btn span:not(.vh) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 25px; }
.hdr.is-menu .menu-btn span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.hdr.is-menu .menu-btn span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.hdr.is-menu { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; color: var(--paper) !important; }
.hdr.is-menu .brand { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; inset: 0; z-index: 29; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr) + 3svh) var(--gut) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.sheet__nav { display: flex; flex-direction: column; }
.sheet__nav a { font: 200 clamp(2rem, 9vw, 3.2rem)/1.22 var(--sans); letter-spacing: -.02em; }
.sheet__foot { display: grid; gap: 10px; margin-top: 28px; }
.sheet__note { justify-self: start; border: 0; margin-top: 6px; color: var(--on-d); }

/* ---------- 1 · cover ---------- */
/* he stands in front of his name: a cut-out from the studio portrait, its edges cleaned of the old grey (scratchpad lift + defringe) */
.cover { height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; background: #18191c; }
.cover__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(44% 64% at 67.5% 50%, #44474d 0%, #303237 34%, #212226 62%, #18191c 100%); }
.cover__dr { position: absolute; bottom: 0; left: 67.5%; --h: 86svh; height: var(--h); width: auto; max-width: none; margin-left: calc(var(--h) * -.3334); /* centred by margin: GSAP owns the transform */ user-select: none; -webkit-user-drag: none; }
.cover__dr { z-index: 2; will-change: transform; /* its own layer: the scroll moves it without repainting */ }
.cover__h { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); top: calc(var(--hdr) + 2.2svh); }
.cover__pre { display: block; font: 500 var(--lab)/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--on-d); margin: 0 0 2.2svh .5vw; }
.cover__name { display: block; font: 200 clamp(4.2rem, min(13.4vw, 26svh), 16rem)/.86 var(--sans); letter-spacing: -.04em; white-space: nowrap; color: var(--paper); will-change: transform; }
.cover__w { display: inline-block; }
.cover__foot { position: absolute; z-index: 3; left: var(--gut); bottom: max(5svh, 30px); display: flex; flex-direction: column; gap: 2.2svh; }
.cover__what { font: 500 var(--lab)/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--on-d) !important; }
.doors { display: flex; gap: 12px; }
.door { position: relative; display: flex; flex-direction: column; gap: 8px; width: clamp(240px, 19vw, 300px); padding: 20px 64px 20px 22px; background: rgba(24, 25, 28, .62); border: 1px solid rgba(242, 240, 235, .26); /* no backdrop blur: Safari drops it while the cover fades in */ color: var(--paper); transition: background .45s var(--ease), color .45s var(--ease), border-color .45s; }
.door__t { font: 300 clamp(1.3rem, 1.6vw, 1.6rem)/1.1 var(--sans); letter-spacing: -.01em; }
.door__s { font: 500 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-d); transition: color .45s; }
.door svg { position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; transition: transform .45s var(--ease); }
.door:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.door:hover .door__s { color: var(--on-l); }
.door:hover svg { transform: translateX(5px); }
.cover__credit { position: absolute; z-index: 3; right: var(--gut); bottom: max(5svh, 30px); font: 500 10px/1.8 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 240, 235, .45) !important; writing-mode: vertical-rl; transform: rotate(180deg); }

/* ---------- 2 · Zahnarchitektur ---------- */
.arch { height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: 4vw; align-items: center; padding: var(--hdr) var(--gut) 3svh; overflow: hidden; }
.arch__stage { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.tooth { position: relative; width: 100%; height: 100%; --sw: .34; --tf: 3.7px; }
.tooth__l { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; /* each layer repaints alone */ }
.tooth__tex { position: absolute; inset: 0; will-change: opacity; }
.tooth__l.t-body, .tooth__tex .tooth__l { will-change: opacity; /* body and texture only fade: painted once, then the compositor does it */ }
.t-dentin { fill: #ebe1cb; } .t-enamel { fill: #fbfaf5; } .t-pulp { fill: #e9c0b4; }
.t-tex { opacity: .9; }
.t-out { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * 1.15); stroke-linejoin: round; }
.t-dej, .t-pl { fill: none; stroke: rgba(20, 22, 21, .5); stroke-width: calc(var(--sw) * .8); }
.t-caries { fill: #6b563f; opacity: 0; }
.t-cav { fill: var(--paper); opacity: 0; }
.t-l1 { fill: #8e9a89; } .t-l2 { fill: #aab4a5; } .t-l3 { fill: #d2d8cd; }
.t-cavline { fill: none; stroke: var(--sage-d); stroke-width: calc(var(--sw) * 1.1); stroke-dasharray: 1.6 1.4; opacity: 0; }
.t-lines2 { opacity: 0; }
.t-gauge { opacity: 0; }
.t-gauge path { fill: none; stroke: var(--ink); stroke-width: calc(var(--sw) * .9); }
.t-gauge text { font: 500 var(--tf)/1 var(--sans); fill: var(--on-l); letter-spacing: .06em; }
.t-gauge text.is-k { fill: var(--ink); }
.t-ann { opacity: 0; }
.t-ann path { fill: none; stroke: rgba(20, 22, 21, .45); stroke-width: calc(var(--sw) * .75); }
.t-ann text { font: 500 var(--tf)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; fill: var(--ink); }
.arch__text { align-self: center; display: flex; flex-direction: column; gap: 3.2svh; }
.steps { display: grid; }
.step { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 2.6svh; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.step.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease) .12s, visibility 0s; }
.step .h2 { font-size: clamp(2.2rem, min(4vw, 7.4svh), 4.5rem); }
.steps__bar { display: flex; gap: 6px; max-width: 220px; }
.steps__bar i { flex: 1; height: 2px; background: var(--line-l); position: relative; overflow: hidden; }
.steps__bar i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }

/* ---------- 3 · before / after ---------- */
.work { height: 100svh; display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); column-gap: 4vw; align-items: center; padding: var(--hdr) var(--gut) 4svh; }
.work__head { display: flex; flex-direction: column; gap: 4svh; }
.work__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line-d); }
.work__tabs button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; font: 300 clamp(1.15rem, 1.5vw, 1.5rem)/1.2 var(--sans); padding: 1.7svh 0; border-bottom: 1px solid var(--line-d); color: var(--on-d); transition: color .3s, padding .45s var(--ease); }
.work__tabs button::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); transform: scale(0); transition: transform .45s var(--ease); }
.work__tabs button:hover { color: var(--paper); }
.work__tabs button[aria-selected="true"] { color: var(--paper); padding-left: 14px; }
.work__tabs button[aria-selected="true"]::after { transform: scale(1); }
.work__t { min-height: 4.8em; }
.cmp { position: relative; width: 100%; max-height: calc(100svh - var(--hdr) - 8svh); aspect-ratio: 3 / 2; justify-self: end; overflow: hidden; background: var(--ink2); --p: 50%; }
.cmp img, .cmp__a { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__a { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y; }
.cmp__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--p); width: 1px; background: rgba(255, 255, 255, .85); pointer-events: none; }
.cmp__handle b { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9); background: rgba(20, 22, 21, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmp__handle b::before, .cmp__handle b::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border: solid #fff; border-width: 0 0 1.4px 1.4px; margin-top: -3.5px; }
.cmp__handle b::before { left: 13px; transform: rotate(45deg); }
.cmp__handle b::after { right: 13px; transform: rotate(-135deg); }
.cmp__range:focus-visible ~ .cmp__handle b { outline: 1.5px solid var(--sage); outline-offset: 3px; }
.cmp__tag { position: absolute; z-index: 2; top: 18px; font: 500 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #fff; padding: 8px 10px; background: rgba(20, 22, 21, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.cmp__tag--a { left: 18px; } .cmp__tag--b { right: 18px; }

/* ---------- 4 · services: questions left, one answer right ---------- */
.sv { height: 100svh; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); column-gap: 5vw; padding: calc(var(--hdr) + 3svh) var(--gut) 5svh; }
.sv__side { display: flex; flex-direction: column; justify-content: center; gap: 4svh; min-height: 0; }
.sv__list { counter-reset: q; border-top: 1px solid var(--line-l); }
.sv__q { counter-increment: q; width: 100%; display: flex; align-items: baseline; gap: 18px; text-align: left; padding: 1.35svh 0; border-bottom: 1px solid var(--line-l); font: 300 clamp(1.05rem, min(1.45vw, 2.6svh), 1.45rem)/1.25 var(--sans); color: rgba(20, 22, 21, .48); transition: color .35s, padding .5s var(--ease); }
.sv__q::before { content: counter(q, decimal-leading-zero); flex: none; width: 2.2em; font: 500 10.5px/1 var(--sans); letter-spacing: .14em; color: rgba(20, 22, 21, .38); transform: translateY(-.2em); }
.sv__q:hover { color: var(--ink); }
.sv__q[aria-selected="true"] { color: var(--ink); padding-left: 12px; }
.sv__q[aria-selected="true"]::before { color: var(--sage-d); }
.sv__view { position: relative; min-height: 0; }
.sv__ph { position: absolute; inset: 0 0 0 8%; overflow: hidden; background: var(--paper2); }
.sv__ph img { width: 100%; height: 100%; object-fit: cover; }
.sv__card { position: absolute; left: 0; bottom: 6svh; width: min(440px, 74%); background: var(--paper); padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px rgba(20, 22, 21, .12); }
.sv__card .lab { color: var(--sage-d); }
.sv__card p:last-child { font: 300 clamp(1.15rem, 1.45vw, 1.45rem)/1.4 var(--sans); color: var(--ink); max-width: none; }
.sv__cards { display: none; }

/* ---------- 5 · instruments: slides ---------- */
.tools { height: 100svh; overflow: hidden; isolation: isolate; background: var(--paper); }
.tools__glow { position: absolute; inset: 0; z-index: -1; }
/* one glow per instrument, cross-faded: an opacity fade runs on the compositor, a colour transition repaints the screen every frame */
.tools__glow i { position: absolute; inset: 0; background: radial-gradient(46% 62% at 74% 56%, color-mix(in srgb, var(--c) 34%, #f2f0eb) 0%, color-mix(in srgb, var(--c) 10%, #f2f0eb) 48%, #f2f0eb 78%); opacity: 0; transition: opacity .9s var(--ease); }
.tools__glow i.is-on { opacity: 1; }
.tools__head { position: absolute; z-index: 4; top: calc(var(--hdr) + 2.4svh); left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; align-items: baseline; }
.tools__head .lab { max-width: none; }
.tools__count { font: 500 var(--lab)/1 var(--sans); letter-spacing: .2em; color: var(--on-l) !important; }
.tools__count b { color: var(--ink); font-weight: 500; }
.tools__stage { position: absolute; inset: 0; touch-action: pan-y; }
.tool { position: absolute; inset: 0; visibility: hidden; }
.tool.is-on { visibility: visible; }
.tool__code { position: absolute; z-index: 1; left: calc(var(--gut) - .05em); top: calc(var(--hdr) + 9svh); font: 200 clamp(5rem, min(15vw, 31svh), 18rem)/.8 var(--sans); letter-spacing: -.05em; color: var(--c); white-space: nowrap; max-width: none !important; }
.tool__img { position: absolute; z-index: 2; right: -2vw; top: calc(49% - min(calc(56vw / var(--ar)), 64svh) / 2); width: min(56vw, calc(64svh * var(--ar))); height: auto; /* centred without a transform: GSAP owns it */ max-width: none; filter: drop-shadow(0 34px 44px rgba(20, 22, 21, .16)); pointer-events: none; }
.tool__txt { position: absolute; z-index: 3; left: var(--gut); bottom: calc(5svh + 90px); width: min(30em, 36vw); display: flex; flex-direction: column; gap: 2.2svh; }
.tool__spec { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; color: var(--ink) !important; }
.tool__spec b { font: 200 clamp(2.6rem, min(4vw, 7svh), 4.2rem)/1 var(--sans); letter-spacing: -.02em; font-weight: 200; }
.tool__spec span { font: 500 var(--lab)/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-l); }
.tool__txt p.tool__t { color: var(--ink); opacity: .78; }
.tool__t b { font-weight: 500; }
.tools__nav { position: absolute; z-index: 4; left: var(--gut); right: var(--gut); bottom: 5svh; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line-l); padding-top: 14px; }
.tools__tabs { display: flex; gap: clamp(18px, 3vw, 44px); }
.tools__tabs button { position: relative; display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--sans); letter-spacing: .2em; color: var(--on-l); padding: 12px 0; transition: color .3s; }
.tools__tabs button i { width: 9px; height: 9px; border-radius: 50%; background: var(--b); }
.tools__tabs button::after { content: ''; position: absolute; left: 0; right: 0; top: -15px; height: 2px; background: var(--b); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.tools__tabs button:hover, .tools__tabs button[aria-selected="true"] { color: var(--ink); }
.tools__tabs button[aria-selected="true"] { --p: 1; }
.tools__arrows { display: flex; gap: 10px; }
.tools__arrows button { width: 54px; height: 54px; border: 1px solid rgba(20, 22, 21, .3); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.tools__arrows button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tools__arrows svg { width: 20px; height: 20px; }
.tools__arrows .prev svg { transform: rotate(180deg); }

/* ---------- 6 · on stage ---------- */
.stage { height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) calc(47vw - var(--gut)); grid-template-rows: auto auto auto; align-content: center; row-gap: 4.4svh; padding: calc(var(--hdr) + 2svh) var(--gut) 5svh; overflow: hidden; }
.stage > :not(.stage__ph) { grid-column: 1; }
.stage__ph { position: absolute; top: 0; right: 0; bottom: 0; width: 42vw; overflow: hidden; }
.stage__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.stage__ph figcaption { position: absolute; left: 18px; bottom: 16px; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 240, 235, .6); }
.stage__head { display: flex; flex-direction: column; gap: 2.4svh; }
.tour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.6vw; border-top: 1px solid var(--line-d); }
.tour li { display: flex; align-items: baseline; gap: 14px; padding: .95svh 0; border-bottom: 1px solid var(--line-d); min-width: 0; }
.tour time { flex: none; width: 4.4em; font: 500 11px/1.4 var(--sans); letter-spacing: .12em; color: var(--sage); font-variant-numeric: tabular-nums; }
.tour span { font: 300 clamp(1rem, 1.2vw, 1.2rem)/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour li.is-web span { color: var(--on-d); }
.stage__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }

/* ---------- 7 · course and publications ---------- */
.pubs { height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 5vw; padding: calc(var(--hdr) + 3svh) var(--gut) 5svh; align-items: stretch; }
.course { display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; gap: 2.2svh; min-height: 0; }
.course__ph { min-height: 0; overflow: hidden; background: var(--paper2); }
/* reveal window (main.js): it slides up while the picture holds still, so only transforms move */
.rv { display: block; width: 100%; height: 100%; overflow: hidden; background: var(--paper2); }
.is-rv { background: none !important; }
.course__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.course__m { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2vw; counter-reset: m; }
.course__m li { counter-increment: m; display: flex; gap: 12px; align-items: baseline; padding: 1svh 0; border-top: 1px solid var(--line-l); font-size: .95rem; color: var(--ink); }
.course__m li::before { content: counter(m); font: 500 11px/1 var(--sans); color: var(--sage-d); }
.pubs__body { display: flex; flex-direction: column; justify-content: center; gap: 3svh; min-height: 0; }
.pubs__n { display: flex; align-items: baseline; gap: 18px; font: 500 var(--lab)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--on-l) !important; }
.pubs__n b { font: 200 clamp(4rem, min(8vw, 15svh), 8.5rem)/.8 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.pubs__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.6vw; border-top: 1px solid var(--line-l); }
.pubs__list li { padding: 1.15svh 0; border-bottom: 1px solid var(--line-l); }
.pubs__list b { display: block; font: 400 .93rem/1.35 var(--sans); }
.pubs__list span { display: block; font-size: .8rem; color: var(--on-l); }
.pubs__more { display: none; }

/* ---------- 8 · Instagram ---------- */
.ig { height: 100svh; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.ig__wall { position: absolute; inset: -12svh 0; z-index: -2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 0 10px; }
.ig__col { display: flex; flex-direction: column; gap: 10px; will-change: transform; }
.ig__col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink3); }
.ig::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(58% 62% at 50% 50%, rgba(20, 22, 21, .93), rgba(20, 22, 21, .62)); }
.ig__body { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3svh; padding: 0 var(--gut); }
.ig__n { max-width: none !important; }
.ig__n b { font: 200 clamp(5rem, min(17vw, 30svh), 17rem)/.8 var(--sans); letter-spacing: -.045em; color: var(--paper); }
.ig__t { max-width: 26em; }

/* ---------- 9 · practice ---------- */
.praxis { height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 2svh 1.6vw; padding: calc(var(--hdr) + 3svh) var(--gut) 5svh; }
.praxis__head { grid-column: 1 / 5; grid-row: 1 / 3; align-self: end; display: flex; flex-direction: column; gap: 2.6svh; padding-bottom: 2svh; }
.praxis__ph { overflow: hidden; background: var(--paper2); min-height: 0; }
.praxis__ph img { width: 100%; height: 100%; object-fit: cover; }
.p1 { grid-column: 5 / 10; grid-row: 1 / 3; }
.p2 { grid-column: 10 / 13; grid-row: 1; }
.p3 { grid-column: 10 / 13; grid-row: 2; }

/* ---------- 10 · team ---------- */
.team { height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 4svh; padding: calc(var(--hdr) + 2svh) 0 5svh; }
.team__head { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 var(--gut); }
.team__nav { display: flex; gap: 10px; }
.team__nav button { width: 52px; height: 52px; border: 1px solid rgba(20, 22, 21, .3); display: grid; place-items: center; transition: background .3s, opacity .3s; }
.team__nav button:hover:not(:disabled) { background: rgba(20, 22, 21, .06); }
.team__nav button:disabled { opacity: .3; cursor: default; }
.team__nav svg { width: 20px; height: 20px; }
.team__nav .prev svg { transform: rotate(180deg); }
.team__rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut); scroll-padding: 0 var(--gut); scrollbar-width: none; }
.team__rail::-webkit-scrollbar { display: none; }
.team__rail li { flex: none; width: clamp(200px, 19vw, 290px); scroll-snap-align: start; }
.team__rail figure { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--hdr) - 26svh); overflow: hidden; background: var(--paper2); margin-bottom: 14px; }
.team__rail img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform 1.2s var(--ease); }
.team__rail li:hover img { transform: scale(1.04); }
.team__rail b { display: block; font: 400 1rem/1.3 var(--sans); }
.team__rail small { display: block; font-size: .82rem; line-height: 1.4; color: var(--on-l); }

/* ---------- 11 · contact ---------- */
.contact { height: 100svh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 6vw; align-items: end; padding: calc(var(--hdr) + 3svh) var(--gut) 7svh; overflow: hidden; isolation: isolate; }
.contact__ph { position: absolute; inset: 0; z-index: -1; }
.contact__ph img { width: 100%; height: 100%; object-fit: cover; }
.contact__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 21, .95) 8%, rgba(20, 22, 21, .55) 60%, rgba(20, 22, 21, .35)); }
.contact__body { display: flex; flex-direction: column; gap: 3svh; }
.now { display: flex; align-items: center; gap: 12px; font: 500 var(--lab)/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--paper) !important; }
.now i { width: 8px; height: 8px; border-radius: 50%; background: #7fd29a; box-shadow: 0 0 0 4px rgba(127, 210, 154, .18); }
.now i.is-closed { background: #c9a27a; box-shadow: 0 0 0 4px rgba(201, 162, 122, .18); }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__side { display: flex; flex-direction: column; gap: 2.6svh; }
.hours { border-collapse: collapse; width: 100%; font-size: .95rem; }
.hours td { padding: .9svh 0; border-bottom: 1px solid var(--line-d); color: var(--on-d); }
.hours td + td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--paper); }
.hours tr.is-today td:first-child::after { content: ' · heute'; color: var(--sage); }
.contact__adr { color: var(--paper) !important; font-size: 1.05rem; line-height: 1.5; }
.contact__more { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.contact__more .lnk { border: 0; padding: 8px 0; color: var(--on-d); }
.contact__more .lnk:hover { color: var(--paper); }

/* ---------- footer, note, dock ---------- */
.foot { background: var(--ink); color: var(--on-d); padding: 9svh var(--gut) calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 18px; border-top: 1px solid var(--line-d); font-size: .85rem; }
.foot__name { width: min(520px, 80vw); height: auto; aspect-ratio: 310.69 / 22.2; fill: var(--sage); margin-bottom: 18px; }
.foot__s { font-size: .78rem; }
.foot__note { text-decoration: underline; text-underline-offset: 3px; }
.note-tab { position: fixed; z-index: 25; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font: 500 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 16px 9px; background: var(--ink3); color: var(--paper); opacity: .82; }
.note-tab:hover { opacity: 1; }
.note { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: min(390px, calc(100vw - 36px)); background: var(--paper); color: var(--ink); padding: 26px 24px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); display: grid; gap: 14px; font-size: .92rem; line-height: 1.55; }
.note p { color: var(--on-l); }
.note b { color: var(--ink); font-weight: 500; }
.note .btn { justify-self: start; height: 46px; }
.note .small a { text-decoration: underline; }
.note__x { position: absolute; top: 6px; right: 12px; width: 40px; height: 40px; font-size: 24px; line-height: 1; }
.dock { display: none; }

/* ---------- motion helpers ---------- */
.is-intro .cover__name, .is-intro .cover__pre, .is-intro .cover__dr, .is-intro .cover__foot, .is-intro .cover__credit, .is-intro .hdr, .is-intro .note-tab { visibility: hidden; }
.is-intro .cover__glow { opacity: 0; }
.no-anim .cover *, .no-anim .hdr { visibility: visible !important; opacity: 1 !important; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hdr__cta { margin-left: auto; }
}
@media (max-width: 899px) {
  :root { --hdr: 62px; --gut: 18px; --t: 1rem; --h2: clamp(2.05rem, 9.2vw, 2.7rem); --lab: 10.5px; }
  .hdr { gap: 14px; }
  .brand { width: 150px; }
  .hdr__cta { display: none; }
  .menu-btn { margin-left: auto; }
  section p { font-size: .97rem; }

  .cover { min-height: 520px; }
  .cover__glow { background: radial-gradient(90% 56% at 52% 56%, #44474d 0%, #303237 36%, #212226 64%, #18191c 100%); }
  .cover__h { top: calc(var(--hdr) + 1svh); }
  .cover__pre { margin: 0 0 1.4svh 1vw; }
  .cover__name { font-size: min(27vw, 16svh); line-height: .84; }
  .cover__w { display: block; }
  .cover__dr { left: 56%; --h: min(79svh, 167vw); }
  .cover::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 30svh; background: linear-gradient(0deg, rgba(23, 24, 27, .92), rgba(23, 24, 27, 0)); pointer-events: none; }
  .cover__foot { right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
  .cover__what { font-size: 10px; letter-spacing: .26em; }
  .doors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .door { width: auto; padding: 14px 34px 14px 14px; gap: 6px; }
  .door__t { font-size: 1.12rem; }
  .door__s { font-size: 9px; letter-spacing: .12em; }
  .door svg { right: 10px; width: 20px; height: 20px; margin-top: -10px; }
  .cover__credit { display: none; }

  .arch { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; row-gap: 2svh; padding: calc(var(--hdr) + 1svh) var(--gut) calc(84px + env(safe-area-inset-bottom)); }
  .tooth { --sw: .55; --tf: 5.6px; }
  .arch__text { gap: 1.8svh; }
  .arch__text > .lab { display: none; }
  .step { gap: 1.2svh; }
  .step .h2 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .step p { font-size: .94rem; line-height: 1.5; }

  .work { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; align-content: center; row-gap: 2.4svh; padding: calc(var(--hdr) + 1svh) var(--gut) calc(84px + env(safe-area-inset-bottom)); }
  .work__head { display: contents; }
  .work .h2 { order: 1; }
  .cmp { order: 2; max-height: none; aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gut)); width: calc(100% + 2 * var(--gut)); }
  .work__tabs { order: 3; flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .work__tabs::-webkit-scrollbar { display: none; }
  .work__tabs button { width: auto; flex: none; white-space: nowrap; font-size: .98rem; padding: 10px 14px; border: 1px solid var(--line-d); }
  .work__tabs button::after { display: none; }
  .work__tabs button[aria-selected="true"] { padding-left: 14px; border-color: var(--sage); }
  .work__t { order: 4; min-height: 0; font-size: .94rem !important; }

  .sv { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); row-gap: 2.4svh; padding: calc(var(--hdr) + 1svh) 0 calc(84px + env(safe-area-inset-bottom)); }
  .sv__side { padding: 0 var(--gut); }
  .sv__list, .sv__view { display: none; }
  .sv__cards { display: flex; min-height: 0; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 var(--gut); scroll-padding: 0 var(--gut); scrollbar-width: none; }
  .sv__cards::-webkit-scrollbar { display: none; }
  .sv__c { flex: none; width: 80vw; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--white); }
  .sv__c img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; background: var(--paper2); }
  .sv__c div { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
  .sv__c .lab { color: var(--sage-d); font-size: 9.5px; }
  .sv__c b { font: 300 1.3rem/1.2 var(--sans); color: var(--ink); }
  .sv__c p { font-size: .9rem; line-height: 1.45; }

  .tools__head { top: calc(var(--hdr) + 1.2svh); }
  .tools__head .lab { max-width: 72%; font-size: 9.5px; }
  .tools__glow i { background: radial-gradient(80% 44% at 64% 50%, color-mix(in srgb, var(--c) 34%, #f2f0eb) 0%, color-mix(in srgb, var(--c) 10%, #f2f0eb) 50%, #f2f0eb 80%); }
  .tool__code { top: calc(var(--hdr) + 7svh); font-size: min(23vw, 15svh); }
  .tool__img { width: min(96vw, calc(34svh * var(--ar))); top: calc(43% - min(calc(96vw / var(--ar)), 34svh) / 2); right: -4vw; }
  .tool__txt { width: auto; right: var(--gut); bottom: calc(84px + 70px + env(safe-area-inset-bottom)); gap: 1.2svh; }
  .tool__spec b { font-size: 2.1rem; }
  .tool__spec span { font-size: 9.5px; }
  .tool__txt p.tool__t { font-size: .9rem; line-height: 1.45; }
  .tools__nav { bottom: calc(84px + env(safe-area-inset-bottom)); padding-top: 8px; }
  .tools__tabs { gap: 0; flex: 1; justify-content: space-between; }
  .tools__tabs button { font-size: 10.5px; letter-spacing: .12em; gap: 6px; }
  .tools__tabs button i { width: 7px; height: 7px; }
  .tools__tabs button::after { top: -9px; }
  .tools__arrows { display: none; }

  .stage { grid-template-columns: minmax(0, 1fr); align-content: end; row-gap: 2.6svh; padding: calc(var(--hdr) + 2svh) var(--gut) calc(84px + env(safe-area-inset-bottom)); isolation: isolate; }
  .stage__ph { width: auto; left: 0; z-index: -1; }
  .stage__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 22, 21, .97) 52%, rgba(20, 22, 21, .45)); }
  .stage__ph figcaption { display: none; }
  .stage__head { gap: 1.6svh; }
  .tour { column-gap: 14px; }
  .tour li { gap: 8px; padding: .55svh 0; }
  .tour time { width: 4.2em; font-size: 9.5px; letter-spacing: .08em; }
  .tour span { font-size: .9rem; }
  .stage__foot { gap: 12px 22px; }

  .pubs { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; row-gap: 3svh; padding: calc(var(--hdr) + 1svh) var(--gut) calc(84px + env(safe-area-inset-bottom)); }
  .course { gap: 1.4svh; }
  .course .h2 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .course p { font-size: .92rem; }
  .course__m li { font-size: .86rem; padding: .7svh 0; }
  .pubs__body { gap: 1.6svh; }
  .pubs__n b { font-size: 3.6rem; }
  .pubs__list { grid-template-columns: 1fr; }
  .pubs__list:not(.is-all) li:nth-child(n+4) { display: none; }
  .pubs__more { display: inline-flex; align-self: flex-start; }
  .pubs.is-open { height: auto; min-height: 100svh; }
  .pubs.is-open .course__ph { height: 28svh; }

  .ig__wall { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 6px; }
  .ig__col { gap: 6px; }
  .ig__col:nth-child(n+4) { display: none; }
  .ig__n { max-width: none !important; }
.ig__n b { font-size: 26vw; }

  .praxis { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) minmax(0, .7fr); gap: 1.4svh 8px; padding: calc(var(--hdr) + 1svh) var(--gut) calc(84px + env(safe-area-inset-bottom)); }
  .praxis__head { grid-column: 1 / 7; grid-row: 1; padding: 0; gap: 1.4svh; }
  .p1 { grid-column: 1 / 7; grid-row: 2; }
  .p2 { grid-column: 1 / 4; grid-row: 3; }
  .p3 { grid-column: 4 / 7; grid-row: 3; }

  .team { gap: 2.6svh; padding: calc(var(--hdr) + 1svh) 0 calc(84px + env(safe-area-inset-bottom)); }
  .team__nav { display: none; }
  .team__rail { gap: 10px; }
  .team__rail li { width: 62vw; }
  .team__rail figure { max-height: 52svh; }

  .contact { grid-template-columns: 1fr; align-content: end; row-gap: 3svh; padding: calc(var(--hdr) + 2svh) var(--gut) calc(84px + env(safe-area-inset-bottom)); }
  .contact__body { gap: 2svh; }
  .contact__btns .btn { flex: 1 1 auto; height: 50px; padding: 0 16px; }
  .contact__side { gap: 1.4svh; }
  .hours { font-size: .88rem; }
  .hours td { padding: .55svh 0; }
  .contact__adr { display: none; }
  .contact__more .lnk { padding: 5px 0; font-size: 11px; }

  .note-tab { display: none; }
  .dock { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; z-index: 26; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateY(150%); transition: transform .5s var(--ease); }
  .dock.is-on { transform: none; }
  .dock a { height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; background: rgba(20, 22, 21, .95); color: var(--paper); border: 1px solid rgba(242, 240, 235, .14); }
  .dock a:last-child { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  .dock svg { width: 18px; height: 18px; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .work__t { display: none; }
  .tour li:nth-child(n+13) { display: none; }
  .course__ph { display: none; }
  .course { grid-template-rows: auto auto auto; align-content: start; }
  .tool__txt p.tool__t { display: none; }
  .sv__c p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
