/* "Der Weg" — fixed WebGL world behind tall chapter sections; HUD and labels float above.
   Single committed look: night fog to dawn, driven by the scene, so colours are explicit. */
:root {
  --night: #14173a; --ink: #0d0f24; --mist: #e8e9ff; --mist-dim: rgba(232, 233, 255, .64);
  --dawn: #f1c7ad; --ember: #ff8a6b; --glow: #b9b4ff; --dark-text: #1a1424; --dark-dim: rgba(26, 20, 36, .66);
  --display: "Syne", "Avenir Next", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --fg: var(--mist); --fg-dim: var(--mist-dim);
  --accent: var(--ember);
  color-scheme: dark;
}
body[data-tone="light"] { --fg: var(--dark-text); --fg-dim: var(--dark-dim) }
* { box-sizing: border-box }
html, body { margin: 0 }
body { background: var(--night); color: var(--fg); font-family: var(--body); -webkit-font-smoothing: antialiased; transition: color .6s }
body.is-gated, body.case-open { overflow: hidden }
img { display: block; max-width: 100% }
a { color: inherit }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px }
.gutter, .wrap, .hud, .strip-in, .case-in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0 }
.grain { position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .11; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite }
@keyframes grain { 0% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-4%) } 60% { transform: translate(-4%,-1%) } 80% { transform: translate(3%,3%) } 100% { transform: translate(0,0) } }
.flash { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: #fff6ee; opacity: 0 }

/* gate */
#gate { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; text-align: center; padding: 24px }
.gate-in { max-width: 560px; display: grid; justify-items: center; gap: 18px }
.gate-ring { position: relative; width: 112px; height: 112px }
.gate-ring svg { width: 100%; height: 100%; transform: rotate(-90deg) }
.gate-ring circle { fill: none; stroke-width: 2 }
.gate-ring .track { stroke: rgba(232, 233, 255, .14) }
.gate-ring .bar { stroke: var(--glow); stroke-dasharray: 339.3; stroke-dashoffset: 339.3; stroke-linecap: round; transition: stroke-dashoffset .3s }
.gate-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums }
.gate-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-dim); margin: 6px 0 0 }
#gate h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px }
.gate-hint { font-size: 13px; color: var(--mist-dim); margin: 0 }
.btn { border: 0; border-radius: 999px; padding: 15px 24px; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), background .25s }
.btn:hover { transform: translateY(-2px) }
.btn-solid { background: var(--mist); color: var(--ink) }
.btn-ghost { background: transparent; color: var(--mist); box-shadow: inset 0 0 0 1.5px rgba(232, 233, 255, .35) }
body[data-tone="light"] .btn-solid { background: var(--dark-text); color: #fff }

/* hud */
.hud { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 18px); display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none }
.hud > * { pointer-events: auto }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .01em }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; position: relative }
.brand-mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent) }
.hud-chapter { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 6px; font-variant-numeric: tabular-nums }
.hud-sep { color: var(--fg-dim) }
#hud-name { margin-left: 8px }
.sound { display: flex; align-items: flex-end; gap: 3px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; background: color-mix(in srgb, var(--fg) 10%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); align-items: center }
.sound i { width: 2px; height: 10px; background: currentColor; border-radius: 2px; transform-origin: bottom; transform: scaleY(.3) }
.sound[aria-pressed="true"] i { animation: eq .9s ease-in-out infinite }
.sound i:nth-child(2) { animation-delay: -.3s } .sound i:nth-child(3) { animation-delay: -.6s } .sound i:nth-child(4) { animation-delay: -.15s }
@keyframes eq { 0%, 100% { transform: scaleY(.3) } 50% { transform: scaleY(1.2) } }
.sound span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; margin-left: 8px; text-transform: uppercase }

/* path map (right edge) */
.map { position: fixed; z-index: 45; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: flex; gap: 12px }
.map-line { width: 1.5px; background: color-mix(in srgb, var(--fg) 20%, transparent); border-radius: 2px; position: relative }
.map-line b { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--fg); border-radius: 2px }
.map ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px }
.map li a { display: flex; gap: 10px; align-items: center; text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim); transition: color .3s }
.map li a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; margin-left: -16px; background: transparent; transition: background .3s }
.map li a span { opacity: 0; transform: translateX(-4px); transition: all .3s }
.map:hover li a span, .map li.on a span { opacity: 1; transform: none }
.map li.on a { color: var(--fg) } .map li.on a::before, .map li.done a::before { background: currentColor }

/* custom cursor */
.cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1.5px solid var(--fg); pointer-events: none; display: grid; place-items: center;
  transition: width .35s cubic-bezier(.2, 1.2, .4, 1), height .35s cubic-bezier(.2, 1.2, .4, 1), margin .35s cubic-bezier(.2, 1.2, .4, 1), background .3s, border-color .3s; opacity: 0 }
.cursor span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s }
.cursor.big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--mist); border-color: var(--mist) }
.cursor.big span { opacity: 1 }
@media (hover: hover) and (pointer: fine) { .cursor { opacity: 1 } }

/* chapters */
main { position: relative; z-index: 2 }
.chapter { position: relative }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center }
.wrap { max-width: 1360px; width: 100%; margin: 0 auto; position: relative; padding-block: calc(env(safe-area-inset-top, 0px) + 86px) 64px }
.wrap.top { margin-top: 0; align-self: stretch; height: 100%; display: flex; flex-direction: column; justify-content: flex-start }
.wrap.center { text-align: center; display: flex; flex-direction: column; align-items: center }
.chapter .wrap > * { opacity: var(--vis, 1); transform: translateY(calc((1 - var(--vis, 1)) * 30px)); transition: none }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 18px; display: flex; gap: 10px; align-items: center }
.wrap.center .eyebrow { justify-content: center }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--accent) }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; margin: 0; text-wrap: balance }
.title { font-size: clamp(48px, min(11vw, 21vh), 200px); line-height: .86; letter-spacing: -.05em }
.title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap }
.title .ch { display: inline-block; transform: translateY(105%) }
.intro-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-top: 36px; flex-wrap: wrap }
.intro-foot p { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; color: var(--fg-dim) }
.scroll-cue { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 10px; align-items: center }
.scroll-cue i { width: 1.5px; height: 34px; background: linear-gradient(var(--fg), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top }
@keyframes cue { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }
.statement { font-size: clamp(34px, min(6.2vw, 10.5vh), 104px); line-height: 1; max-width: 17ch; font-weight: 700 }
.statement .wd { color: rgba(232, 233, 255, .14); transition: color .35s }
.statement .wd.on { color: var(--mist) }
.statement em { font-style: normal }
.statement .wd.hot.on { color: var(--ember) }
.h-big { font-size: clamp(40px, min(7vw, 12vh), 120px); line-height: .92 }
.h-huge { font-size: clamp(42px, min(8.4vw, 14vh), 150px); line-height: .9; max-width: 14ch }
.lede { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; color: var(--fg-dim); max-width: 38ch; margin: 20px 0 0 }

/* projected labels */
.labels { position: fixed; inset: 0; z-index: 20; pointer-events: none }
.lbl { position: absolute; left: 0; top: 0; will-change: transform, opacity; pointer-events: auto }
.lbl.step { width: 230px; padding: 16px 18px; border-radius: 16px; background: rgba(13, 15, 36, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(232, 233, 255, .14) }
.lbl.step small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--glow) }
.lbl.step b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 6px 0 6px }
.lbl.step p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--mist-dim) }
.lbl.proj { width: min(380px, 80vw) }
.lbl.proj small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-dim) }
.lbl.proj b { display: block; font-family: var(--display); font-size: clamp(32px, 4vw, 56px); line-height: .95; letter-spacing: -.03em; margin: 8px 0 14px }
.lbl.proj button { border: 0; cursor: pointer; background: var(--mist); color: var(--ink); font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 999px; display: inline-flex; gap: 10px; align-items: center; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1) }
.lbl.proj button:hover { transform: translateY(-2px) }
.lbl.proj .num { font-family: var(--mono); font-size: 12px; color: var(--accent) }

/* werkstatt strip */
.strip { position: absolute; left: 0; right: 0; bottom: 10vh; overflow: visible }
.strip-in { display: flex; gap: 18px; will-change: transform; width: max-content }
.mcard { width: clamp(240px, 26vw, 340px); min-height: 250px; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(232, 233, 255, .07); box-shadow: inset 0 0 0 1px rgba(232, 233, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .4s cubic-bezier(.2, 1.2, .4, 1), background .3s }
.mcard:hover { transform: translateY(-8px) rotate(-1deg); background: rgba(232, 233, 255, .12) }
.mcard .sw { display: flex; gap: 6px } .mcard .sw i { width: 20px; height: 20px; border-radius: 50%; display: block }
.mcard b { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; line-height: 1 }
.mcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--mist-dim) }
.mcard small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--glow) }

/* tools */
.tools { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px }
.tools li { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.8vw, 22px); padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(232, 233, 255, .3);
  opacity: var(--t, 0); transform: translateY(calc((1 - var(--t, 0)) * 40px)) scale(calc(.8 + var(--t, 0) * .2)) }

/* contact */
.contact { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 34px }
.contact code { font-family: var(--mono); font-size: 15px; padding: 14px 20px; border-radius: 999px; background: rgba(26, 20, 36, .08); user-select: all }
.foot { margin-top: 36px; font-size: 13px; color: var(--fg-dim) }

/* curtain + grow */
.curtain { position: fixed; inset: 0; z-index: 80; background: var(--accent); transform: scaleY(0); transform-origin: bottom; pointer-events: none }
.grow { position: fixed; z-index: 79; left: 0; top: 0; background-size: cover; background-position: center; border-radius: 14px; pointer-events: none; opacity: 0 }

/* case study overlay */
.case { position: fixed; inset: 0; z-index: 70; visibility: hidden; color: var(--mist); background: var(--case-bg, #111) }
.case.open { visibility: visible }
.case-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch }
.case-close { position: fixed; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(16px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--mist); cursor: pointer; display: grid; place-items: center }
.case-close span { position: absolute; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transform: rotate(45deg) }
.case-close span + span { transform: rotate(-45deg) }
.case-hero { height: 78vh; height: 78svh; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, color-mix(in srgb, var(--tint, #222) 70%, #fff 12%), var(--case-bg, #111)); display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 80px) 16px 18vh }
.case-hero img { max-width: min(1100px, 92%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); transform: scale(1.08) }
.case-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--case-bg, #111)); pointer-events: none }
.case-in { max-width: 1180px; margin: 0 auto }
.case-head { margin-top: -18vh; position: relative; z-index: 2 }
.case-head small { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--case-accent) }
.case-head h1 { font-size: clamp(48px, 9vw, 140px); line-height: .88; margin-top: 12px; overflow: hidden }
.case-head h1 .ch { display: inline-block }
.case-meta { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin: 40px 0 0; padding: 22px 0; border-block: 1px solid rgba(232, 233, 255, .16) }
.case-meta p { margin: 0; font-size: 18px; line-height: 1.55 }
.case-meta div small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist-dim); margin-bottom: 8px }
.case-meta div span { font-size: 15px; line-height: 1.5 }
.case-ch { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 72px 0; border-bottom: 1px solid rgba(232, 233, 255, .1) }
.case-ch .n { font-family: var(--mono); font-size: 12px; color: var(--case-accent); letter-spacing: .12em; text-transform: uppercase }
.case-ch h3 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; margin-top: 8px }
.case-ch p { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; max-width: 58ch; color: rgba(232, 233, 255, .82) }
.case-fig { margin: 0; padding: 40px 0; clip-path: inset(18% 8% 18% 8% round 24px); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) }
.case-fig.in { clip-path: inset(0 0 0 0 round 12px) }
.case-fig img { width: 100%; border-radius: 12px; background: #fff }
.case-fig figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist-dim); margin-top: 12px }
.case-ch.reveal-up > * { opacity: 0; transform: translateY(40px); transition: opacity .9s, transform .9s cubic-bezier(.2, .8, .2, 1) }
.case-ch.reveal-up.in > * { opacity: 1; transform: none }
.case-ch.reveal-up.in > *:nth-child(2) { transition-delay: .12s }
.case-next { display: block; width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 90px 0 120px }
.case-next small { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-dim) }
.case-next b { display: block; font-family: var(--display); font-size: clamp(44px, 8vw, 130px); line-height: .9; letter-spacing: -.035em; margin-top: 12px; transition: letter-spacing .4s, color .4s }
.case-next:hover b { letter-spacing: -.01em; color: var(--case-accent) }

@media (max-width: 820px) {
  .title { font-size: 12.2vw }
  .map { display: none }
  .hud-chapter { display: none }
  .brand { font-size: 14px }
  .lbl.step { width: 200px; padding: 12px 14px } .lbl.step b { font-size: 21px } .lbl.step p { font-size: 13px }
  .case-meta { grid-template-columns: 1fr 1fr } .case-meta > p { grid-column: 1 / -1 }
  .case-ch { grid-template-columns: 1fr; gap: 14px; padding: 48px 0 }
  .strip { bottom: 6vh }
  .mcard { min-height: 200px }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue i, .sound i { animation: none !important }
  .case-fig { clip-path: none !important; transition: none }
  .case-ch.reveal-up > * { opacity: 1 !important; transform: none !important }
}

/* language switch */
.hud-right { display: flex; gap: 8px; align-items: center }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.lang button { border: 0; background: transparent; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding: 8px 10px; border-radius: 999px; color: var(--fg-dim) }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--night) }
body[data-tone="light"] .lang button[aria-pressed="true"] { color: #fff }
.lang-gate { margin-top: 4px; background: rgba(232, 233, 255, .08) }
.lang-gate button { font-size: 12px; padding: 9px 14px; color: var(--mist-dim) }
.lang-gate button[aria-pressed="true"] { background: var(--mist); color: var(--ink) }

/* case study blocks */
.cs-body { padding-bottom: 20px }
.cs-sec { display: flex; align-items: baseline; gap: 22px; margin: 110px 0 36px; padding-top: 28px; border-top: 1px solid rgba(232, 233, 255, .16) }
.cs-sec span { font-family: var(--mono); font-size: 13px; color: var(--case-accent); letter-spacing: .1em }
.cs-sec h2 { font-size: clamp(38px, 5.6vw, 84px); line-height: .95 }
.cs-h { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.05; margin: 64px 0 18px; max-width: 24ch }
.cs-h4 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 30px 0 10px; color: #fff }
.cs-p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: rgba(232, 233, 255, .84); max-width: 70ch; margin: 0 0 18px }
.cs-p strong, .cs-list strong, .cs-card strong, .cs-note strong, .cs-table strong { color: #fff; font-weight: 600 }
.cs-list { margin: 6px 0 22px; padding-left: 1.25em; max-width: 70ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: rgba(232, 233, 255, .82) }
.cs-list li { margin: 6px 0; padding-left: 4px }
.cs-list li::marker { color: var(--case-accent) }
.cs-note { margin: 22px 0; padding: 18px 22px; border-radius: 14px; background: rgba(232, 233, 255, .06); border-left: 3px solid var(--case-accent); font-size: 17px; line-height: 1.6; color: rgba(232, 233, 255, .88); max-width: 78ch }
.cs-quote { margin: 30px 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.25; letter-spacing: -.01em; max-width: 34ch; color: #fff }
.cs-quote::before { content: "“"; color: var(--case-accent); margin-right: 4px }
.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; align-items: start; margin: 8px 0 18px }
.cs-cols > div { min-width: 0 }
.cs-cols .cs-fig { --w: 100% !important }
.cs-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 10px }
.cs-steps li { display: flex; gap: 10px; align-items: center; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(232, 233, 255, .07); font-weight: 600 }
.cs-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--case-accent); color: var(--ink); font-family: var(--mono); font-size: 13px }
.cs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 26px; opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1) }
.cs-cards.in { opacity: 1; transform: none }
.cs-card { background: rgba(232, 233, 255, .06); box-shadow: inset 0 0 0 1px rgba(232, 233, 255, .1); border-radius: 18px; padding: 20px; min-width: 0 }
.cs-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 14px }
.cs-card h4 { font-family: var(--display); font-size: 19px; line-height: 1.2; margin: 0 0 6px; color: #fff }
.cs-card small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--case-accent); margin-bottom: 10px; line-height: 1.5 }
.cs-card p, .cs-card li { font-size: 15px; line-height: 1.55; color: rgba(232, 233, 255, .8) }
.cs-card p { margin: 0 }
.cs-card ul { margin: 0; padding-left: 1.1em } .cs-card li { margin: 5px 0 }
.cs-table { overflow-x: auto; margin: 16px 0 28px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(232, 233, 255, .12); opacity: 0; transition: opacity .8s }
.cs-table.in { opacity: 1 }
.cs-table table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; line-height: 1.5 }
.cs-table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--case-accent); padding: 14px 16px; background: rgba(232, 233, 255, .05); font-weight: 500 }
.cs-table td { padding: 13px 16px; border-top: 1px solid rgba(232, 233, 255, .09); color: rgba(232, 233, 255, .85); vertical-align: top }
.cs-table td:first-child { color: #fff; font-weight: 600 }
.cs-fig { margin: 30px auto 36px; width: var(--w, 100%); max-width: 100%; clip-path: inset(10% 6% 10% 6% round 22px); opacity: .3; transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), opacity 1s }
.cs-fig.in { clip-path: inset(0 0 0 0 round 12px); opacity: 1 }
.cs-fig.wide { width: min(100vw - 32px, 1240px); margin-left: 50%; transform: translateX(-50%) }
.cs-frame { position: relative; aspect-ratio: var(--ar); background: rgba(232, 233, 255, .05); border-radius: 12px; overflow: hidden }
.cs-frame img { width: 100%; height: 100%; object-fit: contain; display: block }
.cs-pending { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist-dim); border: 1px dashed rgba(232, 233, 255, .25); border-radius: 12px }
.cs-frame.missing img { visibility: hidden } .cs-frame.missing .cs-pending { display: grid }
.cs-fig figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist-dim); margin-top: 12px }
@media (max-width: 820px) {
  .cs-cols { grid-template-columns: 1fr }
  .cs-sec { margin-top: 72px }
  .cs-fig { width: 100% !important }
}
@media (prefers-reduced-motion: reduce) { .cs-fig, .cs-cards, .cs-table { clip-path: none !important; opacity: 1 !important; transform: none !important; transition: none } }
.cs-sec.reveal-up, .cs-h.reveal-up { opacity: 0; transform: translateY(34px); transition: opacity .9s, transform .9s cubic-bezier(.2, .8, .2, 1) }
.cs-sec.reveal-up.in, .cs-h.reveal-up.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .cs-sec.reveal-up, .cs-h.reveal-up { opacity: 1; transform: none } }

.case-head h1 .w { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: .06em }
.cs-sec { flex-wrap: wrap; gap: 8px 22px }
.cs-sec h2, .cs-h, .case-head h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; min-width: 0 }
@media (max-width: 820px) { .cs-sec h2 { font-size: clamp(30px, 9vw, 44px) } .case-head h1 { font-size: clamp(40px, 12vw, 64px) } }

/* animated scroll mouse */
.mouse { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg) }
.mouse-body { width: 28px; height: 44px; border: 2px solid currentColor; border-radius: 16px; position: relative; opacity: .9 }
.mouse-body i { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 3px; background: currentColor; animation: mouse-wheel 1.8s cubic-bezier(.6, 0, .3, 1) infinite }
.mouse-arrows { display: flex; flex-direction: column; align-items: center; gap: 1px }
.mouse-arrows b { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: 0; animation: mouse-arrow 1.8s ease-in-out infinite }
.mouse-arrows b + b { animation-delay: .2s }
@keyframes mouse-wheel { 0% { transform: translateY(0); opacity: 0 } 15% { opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }
@keyframes mouse-arrow { 0%, 100% { opacity: 0; transform: translateY(-3px) rotate(45deg) } 50% { opacity: .9; transform: translateY(2px) rotate(45deg) } }
@media (prefers-reduced-motion: reduce) { .mouse-body i, .mouse-arrows b { animation: none; opacity: 1 } }
body.hover-proj, body.hover-proj * { cursor: pointer }

/* header navigation */
.hud-nav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px) }
.hud-nav button { border: 0; background: transparent; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; color: var(--fg) }
.hud-nav button:hover, .hud-nav button[aria-current="page"] { background: var(--fg); color: var(--night) }
body[data-tone="light"] .hud-nav button:hover, body[data-tone="light"] .hud-nav button[aria-current="page"] { color: #fff }
body.page-open .hud { z-index: 75 } body.page-open .hud .hud-chapter { visibility: hidden }
body.page-open { overflow: hidden }

/* full-screen pages */
.page { position: fixed; inset: 0; z-index: 66; visibility: hidden; background: #101228; color: var(--mist) }
.page.open { visibility: visible }
.page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 80% 0%, rgba(124, 106, 255, .22), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(255, 138, 107, .14), transparent 60%); pointer-events: none }
.page-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain }
.page-in { position: relative; max-width: 1240px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 120px) max(16px, env(safe-area-inset-right, 0px)) 100px max(16px, env(safe-area-inset-left, 0px)) }
.page-close { z-index: 76 }
.page-title { font-size: clamp(48px, 8vw, 128px); line-height: .9; margin: 0 }
.page-lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--mist-dim); max-width: 56ch; margin: 22px 0 0 }
.page-h2 { font-size: clamp(30px, 3.6vw, 52px); margin: 90px 0 24px }
.page-h3 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin: 0 0 16px }
.page-back { margin-top: 70px; border: 0; background: none; color: var(--mist); font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px }
.page-back:hover { color: var(--ember) }

.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px }
.work { border-radius: 22px; overflow: hidden; background: color-mix(in srgb, var(--tint) 60%, #101228); box-shadow: inset 0 0 0 1px rgba(232, 233, 255, .1); display: flex; flex-direction: column; min-width: 0 }
.work:first-child { grid-column: 1 / -1 }
.work-media { border: 0; padding: 28px; margin: 0; cursor: pointer; background: radial-gradient(120% 100% at 50% 20%, color-mix(in srgb, var(--tint) 80%, #fff 14%), var(--tint)); display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden }
.work:first-child .work-media { aspect-ratio: 21 / 9 }
.work-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; transition: transform .7s cubic-bezier(.2, .8, .2, 1) }
.work:hover .work-media img { transform: scale(1.04) translateY(-4px) }
.work-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px }
.work-body small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc) }
.work-body h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: .95 }
.work-body p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(232, 233, 255, .78); max-width: 62ch }
.work-link { align-self: flex-start; margin-top: 8px; border: 0; cursor: pointer; background: var(--mist); color: var(--ink); font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 999px; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1) }
.work-link:hover { transform: translateY(-2px) }
.works-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px }
.works-more .mcard { width: auto; min-height: 200px }

.about-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center }
.about-text { min-width: 0 }
.about-sub { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 28px); color: var(--ember); margin: 18px 0 28px }
.about-p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.65; color: rgba(232, 233, 255, .86); max-width: 60ch; margin: 0 0 18px }
.about-p.dim { color: var(--mist-dim) }
.about-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #3a2f7a, #ff8a6b); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8) }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block }
.about-photo span { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(80px, 12vw, 160px); color: rgba(255, 255, 255, .9); letter-spacing: -.05em }
.about-photo.missing img { display: none } .about-photo.missing span { display: grid }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; margin-top: 100px; padding-top: 48px; border-top: 1px solid rgba(232, 233, 255, .14) }
.about-grid section { min-width: 0 }
.about-list { margin: 0; padding-left: 1.2em; font-size: 17px; line-height: 1.6; color: rgba(232, 233, 255, .84) }
.about-list li { margin: 6px 0 } .about-list li::marker { color: var(--ember) } .about-list b { color: #fff }
.about-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.about-chips li { font-family: var(--display); font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(232, 233, 255, .28) }
.about-cta { margin-top: 100px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; padding: 40px; border-radius: 26px; background: rgba(232, 233, 255, .06) }
.about-cta p { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 42px); line-height: 1.05; letter-spacing: -.02em; max-width: 18ch }

@media (max-width: 820px) {
  .hud-nav button { padding: 7px 11px; font-size: 13px }
  .works-grid, .about-hero, .about-grid { grid-template-columns: 1fr }
  .works-more { grid-template-columns: 1fr 1fr }
  .about-photo { max-width: 360px }
  .about-cta { padding: 26px }
}
@media (max-width: 480px) { .brand { font-size: 0 } .brand .brand-mark { font-size: 14px } .lang button { padding: 7px 8px } }

/* keep the close button clear of the header controls on Works/About */
body.page-open .hud { padding-right: calc(max(16px, env(safe-area-inset-right, 0px)) + 64px) }
.page-close { top: calc(env(safe-area-inset-top, 0px) + 14px) }
.about-photo { background: #e9e9ec }
.about-photo img { object-position: 50% 20% }

/* header nav: plain text links, underline on hover (no switch look) */
.hud-nav { background: none; padding: 0; gap: 26px; backdrop-filter: none; -webkit-backdrop-filter: none; margin-right: 10px }
.hud-nav button, .hud-nav button:hover, .hud-nav button[aria-current="page"],
body[data-tone="light"] .hud-nav button:hover, body[data-tone="light"] .hud-nav button[aria-current="page"] { background: none; color: var(--fg); padding: 6px 0; border-radius: 0 }
.hud-nav button { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color .25s }
.hud-nav button:hover, .hud-nav button:focus-visible, .hud-nav button[aria-current="page"] { text-decoration-color: currentColor }
@media (max-width: 820px) { .hud-nav { gap: 16px } .hud-nav button { padding: 6px 0 } }

/* image galleries inside case studies */
.cs-gallery { width: 100% }
.cs-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; align-items: start }
.cs-cell { aspect-ratio: var(--ar); border-radius: 10px; overflow: hidden; background: rgba(232, 233, 255, .05) }
.cs-cell img { width: 100%; height: 100%; object-fit: contain; display: block }
@media (max-width: 820px) { .cs-grid { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)) } }

/* Werkstatt card deck */
.deck { position: absolute; inset: 0; pointer-events: none }
.deck-stage { position: absolute; right: max(4vw, 16px); top: 50%; width: min(520px, 42vw); aspect-ratio: 4 / 5; transform: translateY(-46%); perspective: 1400px; transform-style: preserve-3d }
.dcard { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; color: #fff; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--tint) 85%, #000); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .1); will-change: transform, opacity; transform-origin: 50% 80%; pointer-events: auto }
.dcard-media { flex: 1; display: grid; place-items: center; padding: 26px; background: radial-gradient(120% 90% at 50% 20%, color-mix(in srgb, var(--tint) 75%, #fff 18%), var(--tint)); min-height: 0 }
.dcard-media img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); transition: transform .6s cubic-bezier(.2, .8, .2, 1) }
.dcard:hover .dcard-media img { transform: scale(1.04) }
.dcard-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px }
.dcard-body small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc) }
.dcard-body b { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: .95; letter-spacing: -.03em }
.dcard-cta { margin-top: 10px; align-self: flex-start; font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 999px; background: var(--mist); color: var(--ink) }
.works-more { grid-template-columns: repeat(2, 1fr); gap: 28px }
.works-more .work:first-child { grid-column: auto }
.works-more .work .work-media, .works-more .work:first-child .work-media { aspect-ratio: 16 / 10 }
@media (max-width: 820px) {
  .deck-stage { right: 50%; top: auto; bottom: 6vh; width: min(320px, 78vw); transform: translateX(50%) }
  .works-more { grid-template-columns: 1fr }
}
@media (prefers-reduced-motion: reduce) { .dcard { transition: none } }
@media (min-width: 821px) {
  .deck-stage { right: max(6vw, 24px); width: min(440px, 32vw) }
  #werkstatt .wrap.top > * { max-width: 52% }
}

/* Werkstatt deck – calm, ordered layout (overrides) */
.deck-stage { right: calc(max(16px, 4vw) + 130px); width: min(440px, 30vw); aspect-ratio: 4 / 5; perspective: 1600px }
.dcard { background: color-mix(in srgb, var(--tint) 92%, #000); transform-origin: 50% 100%; transition: none;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08) }
.dcard::after { content: ""; position: absolute; inset: 0; background: #0d0f24; opacity: var(--dim, 0); pointer-events: none; border-radius: inherit }
.dcard-media { padding: 22px 22px 0; align-items: end }
.dcard-media img { border-radius: 10px 10px 0 0; box-shadow: none }
.dcard-body { padding: 20px 24px 24px; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .08) }
.dcard-body b { font-size: clamp(26px, 2.2vw, 34px); line-height: 1 }
.deck-index { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; max-width: 360px }
.deck-index button { width: 100%; display: flex; gap: 16px; align-items: baseline; text-align: left; border: 0; background: none; cursor: pointer; padding: 10px 0; color: var(--fg-dim); font-family: var(--display); font-weight: 600; font-size: 18px; border-bottom: 1px solid rgba(232, 233, 255, .1); transition: color .3s, padding .3s }
.deck-index button span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--fg-dim) }
.deck-index li.on button { color: var(--fg); padding-left: 10px }
.deck-index li.on button span { color: var(--accent) }
.deck-index button:hover { color: var(--fg) }
@media (min-width: 821px) { #werkstatt .wrap.top > * { max-width: 46% } }
@media (max-width: 820px) {
  .deck-index { display: none }
  .deck-stage { right: 50%; width: min(300px, 74vw); bottom: 5vh }
}

.h-big, .h-huge, .statement { overflow-wrap: break-word; hyphens: manual }

/* process phase cards – twice the size, tilted in 3D */
.lbl.step { width: min(460px, 86vw); padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; perspective: 1100px }
.step-card { padding: 30px 34px 30px; border-radius: 26px; background: linear-gradient(150deg, rgba(20, 40, 58, .82), rgba(13, 15, 36, .78)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(127, 233, 255, .18), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(94, 242, 208, .25);
  transform: rotateY(-14deg) rotateX(5deg); transform-origin: 100% 50%; transition: transform .8s cubic-bezier(.2, .8, .2, 1) }
.lbl.step.from-left .step-card { transform: rotateY(14deg) rotateX(5deg); transform-origin: 0% 50% }
.step-card small { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--glow); text-transform: uppercase }
.step-card b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: .95; letter-spacing: -.03em; margin: 10px 0 14px; color: #fff }
.step-card > p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(232, 233, 255, .82) }
.step-meta { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(127, 233, 255, .16); display: grid; gap: 6px }
.step-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #5ef2d0; margin-top: 4px }
.step-meta ul { margin: 0 0 8px; padding-left: 1.1em; font-size: 15.5px; line-height: 1.55; color: rgba(232, 233, 255, .85) }
.step-meta ul li::marker { color: #5ef2d0 }
.step-meta em { font-style: normal; font-size: 15.5px; font-weight: 600; color: #fff }
@media (max-width: 820px) {
  .lbl.step { width: min(330px, 88vw) }
  .step-card { padding: 20px 22px; transform: rotateX(6deg) !important; transform-origin: 50% 100% !important }
  .step-card b { font-size: 32px } .step-card > p { font-size: 15px } .step-meta ul, .step-meta em { font-size: 13.5px } .step-meta { margin-top: 12px; padding-top: 12px }
}
@media (prefers-reduced-motion: reduce) { .step-card { transform: none !important } }

/* ===== liquid-glass phase card ===== */
.lbl.step { display: none !important }
.pglass { position: fixed; z-index: 21; left: 0; top: 0; width: min(460px, 86vw); pointer-events: none; opacity: 0; visibility: hidden; will-change: transform, opacity; transform-style: preserve-3d }
.pglass.melting { filter: none }
.pglass-slab { position: absolute; inset: 0; border-radius: 28px;
  background: linear-gradient(162deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .04) 22%, rgba(255, 255, 255, 0) 40%), linear-gradient(150deg, rgba(26, 58, 78, .9), rgba(12, 16, 38, .93));
  backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .6), inset 0 -1.5px 0 rgba(255, 255, 255, .14), inset 1.5px 0 0 rgba(210, 248, 255, .28), inset -1.5px 0 0 rgba(210, 248, 255, .14),
    inset 0 0 0 1px rgba(150, 230, 255, .2), inset 0 0 50px rgba(127, 233, 255, .07),
    0 1px 0 rgba(200, 248, 255, .55), 0 2.5px 0 rgba(160, 225, 245, .42), 0 4px 0 rgba(120, 195, 225, .34), 0 5.5px 0 rgba(90, 165, 205, .28), 0 7px 0 rgba(65, 130, 175, .24), 0 8.5px 0 rgba(45, 100, 145, .22), 0 10px 0 rgba(30, 72, 112, .22), 0 11.5px 1px rgba(18, 50, 85, .3),
    0 36px 70px -24px rgba(0, 0, 0, .75), 0 0 70px -10px rgba(94, 242, 208, .25) }
.pglass-slab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(160, 235, 255, .15) 28%, rgba(255, 255, 255, .05) 50%, rgba(150, 230, 255, .4) 78%, rgba(255, 255, 255, .85));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0) }
.pglass-slab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: radial-gradient(60% 40% at 18% 0%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .1) 46%, transparent 54%);
  background-size: 100% 100%, 260% 100%; animation: glint 7s ease-in-out infinite }
@keyframes glint { 0%, 100% { background-position: 0 0, 120% 0 } 50% { background-position: 0 0, -20% 0 } }
.pglass-liquid { position: absolute; inset: 0; opacity: 0; filter: url(#goo); pointer-events: none }
.liq-core, .pglass-liquid i { position: absolute; background: linear-gradient(115deg, #4f6b84 0%, #cfe9f7 20%, #7895ad 38%, #f4fcff 55%, #637f99 72%, #bfe0f0 88%, #56728b 100%); background-size: 240% 240%; background-position: 0% 50% }
.liq-core { inset: 0; border-radius: 28px; box-shadow: inset 0 2px 8px rgba(255, 255, 255, .6), inset 0 -6px 18px rgba(20, 40, 60, .55) }
.pglass-liquid i { width: 64px; height: 64px; border-radius: 50%; display: block }
.pglass-liquid i:nth-child(2) { left: 6%; top: -6% } .pglass-liquid i:nth-child(3) { right: 8%; top: 4%; width: 52px; height: 52px }
.pglass-liquid i:nth-child(4) { right: -5%; top: 44%; width: 74px; height: 74px } .pglass-liquid i:nth-child(5) { left: 40%; bottom: -6% }
.pglass-liquid i:nth-child(6) { left: -5%; top: 52%; width: 56px; height: 56px } .pglass-liquid i:nth-child(7) { left: 70%; bottom: 8%; width: 46px; height: 46px }
.pglass-liquid i:nth-child(8) { left: 24%; top: 30%; width: 80px; height: 80px }
.pglass-content { position: relative; padding: 30px 34px 34px }
.pglass-content small { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--glow); text-transform: uppercase }
.pglass-content b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4vw, 56px); line-height: .95; letter-spacing: -.03em; margin: 10px 0 14px; color: #fff; text-shadow: 0 2px 18px rgba(127, 233, 255, .25) }
.pglass-content > p { margin: 0; font-size: 18px; line-height: 1.55; color: rgba(232, 233, 255, .85) }
@media (max-width: 820px) {
  .pglass { width: min(330px, 88vw) }
  .pglass-content { padding: 20px 22px 24px } .pglass-content b { font-size: 32px } .pglass-content > p { font-size: 15px }
}
@media (prefers-reduced-motion: reduce) { .pglass-slab::after { animation: none } }

/* liquid metal: dark, mirror-like mercury instead of white */
.liq-core, .pglass-liquid i { background: linear-gradient(118deg, #0b2230 0%, #1d4a60 14%, #8fd6ea 22%, #16384b 30%, #0d2433 44%, #5fb2cc 52%, #e9fbff 55%, #2b6a82 60%, #0f2a3a 74%, #79c7de 84%, #0c2331 100%); background-size: 260% 260%; opacity: .96 }
.liq-core { box-shadow: inset 0 2px 6px rgba(220, 250, 255, .55), inset 0 -10px 24px rgba(0, 10, 20, .65), inset 0 0 0 1px rgba(160, 235, 255, .35) }
.pglass-liquid i { width: 34px; height: 34px }
.pglass-liquid i:nth-child(3), .pglass-liquid i:nth-child(6) { width: 28px; height: 28px }
.pglass-liquid i:nth-child(4), .pglass-liquid i:nth-child(8) { width: 42px; height: 42px }

/* phase card: standard UI title size, no animated sheen */
.pglass-slab::after { animation: none !important; background: radial-gradient(60% 40% at 18% 0%, rgba(255, 255, 255, .16), transparent 70%) }
.pglass-content b { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.08; letter-spacing: -.02em; margin: 8px 0 12px; overflow-wrap: anywhere; text-shadow: none }
.pglass-content > p { font-size: 17px }
@media (max-width: 820px) { .pglass-content b { font-size: 26px } }

/* cell division layers */
.pglass-liquid .cell { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 30px; transform-origin: 50% 50%;
  background: radial-gradient(120% 90% at 35% 30%, #6cc7da 0%, #2f8199 38%, #17506a 70%, #0f3a50 100%); box-shadow: inset 0 0 0 2px rgba(190, 245, 255, .55), inset 0 0 40px rgba(220, 250, 255, .25) }
.pglass-liquid i { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9f3fb, #3e93aa 70%); display: block }
.pglass-nuclei { position: absolute; inset: 0; opacity: 0; pointer-events: none }
.nuc { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 2px dashed rgba(210, 248, 255, .7); background: rgba(160, 230, 245, .12) }
.nuc s { position: absolute; width: 26px; height: 5px; border-radius: 4px; background: #c07bd8; left: 40%; top: 30% }
.nuc s:nth-child(2) { background: #3fa7d6; left: 22%; top: 52%; transform: rotate(35deg) } .nuc s:nth-child(3) { background: #c07bd8; left: 52%; top: 58%; transform: rotate(-25deg) } .nuc s:nth-child(4) { background: #3fa7d6; left: 36%; top: 72%; transform: rotate(60deg) }
.nuc s:nth-child(1) { transform: rotate(-40deg) }
.pglass-liquid i:nth-child(n) { left: 50%; top: 50%; right: auto; bottom: auto; width: 26px; height: 26px; opacity: 1 }

/* "and" joining toolkit and Design Thinking */
#werkzeuge .and-join { position: absolute; left: 50%; top: 100%; transform: translate(-50%, -50%); margin: 0; z-index: 2; pointer-events: none;
  font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 150px); line-height: 1; letter-spacing: -.02em; color: var(--accent) }
/* LinkedIn (not linked yet) */
.contact-li { margin: 14px 0 0; font-family: var(--mono); font-size: 14px; color: var(--fg-dim); display: flex; gap: 10px; justify-content: center; align-items: center }
.contact-li span { padding: 6px 12px; border-radius: 999px; background: rgba(26, 20, 36, .08); color: var(--fg); font-size: 12px; letter-spacing: .06em; text-transform: uppercase }

/* gate always uses the dark palette, whatever chapter tone the body reports */
#gate { --fg: var(--mist); --fg-dim: var(--mist-dim); color: var(--mist) }
body #gate .btn-solid { background: var(--mist); color: var(--ink) }
body #gate .lang button[aria-pressed="true"] { background: var(--mist); color: var(--night) }
