:root {
  color-scheme: light;
  --paper: #f5eee4;
  --ivory: #fff8ed;
  --ink: #251b15;
  --muted: #655447;
  --line: #d4c2ad;
  --bronze: #885633;
  --gold: #edbc8d;
  --gold-light: #ffd9ad;
  --dark: #1a1310;
  --ease: cubic-bezier(.18,.72,.19,1);
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: min(1320px, calc(100% - clamp(40px, 9vw, 140px)));
  --bar: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--ink); font: 16px/1.62 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--gold-light); color: var(--dark); }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h2 { margin-top: 18px; font-size: clamp(54px, 6.2vw, 102px); line-height: .97; letter-spacing: -.065em; text-wrap: balance; }
h2 em { font-weight: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a96533; outline-offset: 5px; }
.header :focus-visible, .hero :focus-visible, .contact :focus-visible, .footer :focus-visible, dialog :focus-visible { outline-color: var(--gold-light); }
.shell { width: var(--shell); margin-inline: auto; }
.section { scroll-margin-top: calc(var(--bar) - 1px); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; z-index: 20; top: 8px; left: 12px; padding: 10px 16px; background: var(--ivory); transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 5; margin-bottom: calc(-1 * var(--bar)); color: var(--ivory); transition: background .35s, box-shadow .35s; }
.header.scrolled { background: #1a1310f3; box-shadow: 0 8px 35px #100a0655; backdrop-filter: blur(14px); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-inner { min-height: var(--bar); border-bottom: 1px solid #f9e5cd36; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; font: 27px/.96 var(--display); letter-spacing: -.04em; }
.brand img { width: 42px; height: 42px; filter: brightness(1.63); }
.brand small { display: block; margin-top: 7px; color: var(--gold); font: 650 8px/1 var(--body); text-transform: uppercase; letter-spacing: .23em; }
nav { display: flex; gap: clamp(20px, 3vw, 48px); align-items: center; }
nav a { display: inline-flex; gap: 11px; align-items: center; position: relative; font-size: 13px; font-weight: 600; text-decoration: none; transition: color .25s, border-color .25s, background .25s; }
nav a:hover, nav a[aria-current] { color: var(--gold-light); }
nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--gold); }
nav .nav-contact[aria-current]::after { content: none; }
.nav-contact { min-height: 42px; padding: 7px 14px; border: 1px solid #f9e5cd67; }
.nav-contact:hover, .nav-contact[aria-current] { border-color: var(--gold); background: #f9e5cd13; }
.progress { position: absolute; inset: auto 0 0; height: 2px; transform: scaleX(var(--progress, 0)); transform-origin: left; background: var(--gold); pointer-events: none; }
.menu-toggle { display: none; }

.hero { min-height: clamp(660px, 94svh, 1040px); position: relative; isolation: isolate; overflow: hidden; display: grid; background: radial-gradient(ellipse at 16% 53%, #322219 0%, #1a1310 49%); color: var(--ivory); }
.hero-frame { position: absolute; z-index: -1; inset: var(--bar) 0 0 21%; overflow: hidden; isolation: isolate; }
.hero-photo, .hero-shade, .hero-curtain { position: absolute; inset: 0; }
.hero-photo { bottom: -90px; animation: photo-arrive 1.85s var(--ease) both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 67% 48%; transform: translate3d(var(--photo-x, 0px), calc(var(--photo-y, 0px) - var(--photo-shift, 0px)), 0) scale(1.035); transition: transform .24s ease-out; }
.hero-shade { background: linear-gradient(90deg, #1a1310 0%, #201610e8 10%, #22170ea0 33%, #1a131022 62%, #1a131009 100%), linear-gradient(0deg, #160f0bd9 0%, transparent 34%), linear-gradient(180deg, #160f0b52, transparent 19%); }
.hero-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at var(--light-x, 78%) var(--light-y, 35%), #ffd19952, transparent 52%); opacity: .6; mix-blend-mode: soft-light; }
.hero-curtain { display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.hero-curtain i { background: linear-gradient(90deg, #201711, #2b1d14); transform-origin: top; animation: curtain 1.28s var(--ease) both; }
.hero-curtain i:nth-child(2) { animation-delay: .09s; }
.hero-curtain i:nth-child(3) { animation-delay: .18s; }
.hero-curtain i:nth-child(4) { animation-delay: .27s; }
.hero-inner { position: relative; display: grid; align-content: center; padding-block: calc(var(--bar) + 56px) 112px; }
.hero-content { max-width: 880px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--bronze); font-size: 10px; font-weight: 720; text-transform: uppercase; letter-spacing: .21em; }
.eyebrow > span { color: inherit; font-variant-numeric: tabular-nums; }
.eyebrow > span:empty { width: 28px; height: 1px; background: currentColor; flex: none; }
.hero .eyebrow, .studio .eyebrow, .contact .eyebrow, dialog .eyebrow, .result-page .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(95px, 12.15vw, 190px); line-height: .8; letter-spacing: -.074em; margin: 28px 0 23px -.052em; text-shadow: 0 8px 50px #1a131033; }
.hero-line { display: block; overflow: hidden; width: fit-content; max-width: 100%; padding: .05em .16em .19em .05em; margin-bottom: -.14em; }
.hero-line em, .hero h1 em { color: var(--gold-light); }
.hero-line > span { display: block; animation: headline 1.2s .23s var(--ease) both; }
.hero h1 em > span { animation-delay: .37s; }
.hero-enter { animation: intro .95s .72s var(--ease) both; }
.hero .eyebrow { animation-delay: .27s; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 27px; animation-delay: .85s; }
.hero-intro { max-width: 370px; color: #fff4e6; font-size: clamp(15px, 1.15vw, 18px); }
.hero-index { position: absolute; right: 0; top: 43%; display: grid; justify-items: center; gap: 8px; font-size: 9px; letter-spacing: .11em; font-variant-numeric: tabular-nums; color: #fff0df; text-shadow: 0 1px 4px #1a1310; }
.hero-index i { width: 1px; height: 38px; background: #fbe0c68c; }
.hero-meta { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 75px; border-top: 1px solid #f9e5cd43; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; color: #f4e3d0; animation: intro .9s .94s var(--ease) both; }
.hero-meta p span { margin-right: 9px; color: var(--gold-light); }
.scroll-cue { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 650; }
.scroll-cue > span, .round { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #f9e5cd64; border-radius: 50%; transition: background .3s, color .3s, border-color .3s; }
.scroll-cue:hover > span, .round:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--dark); }
.scroll-cue .icon { animation: drift 2.8s .95s ease-in-out 1 both; }
@keyframes curtain { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes photo-arrive { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes headline { from { transform: translateY(118%) rotate(3deg); } to { transform: translateY(0); } }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { 25%, 75% { transform: translateY(4px); } }

.button { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 51px; padding: 12px 17px; border: 1px solid transparent; text-decoration: none; font: 700 13px/1.35 var(--body); cursor: pointer; transition: background .25s, color .25s, box-shadow .35s; }
.button::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(105deg, transparent 24%, #fff7db8a 49%, transparent 74%); transform: translateX(-115%); pointer-events: none; }
.button:hover::before { animation: shine .76s var(--ease); }
@keyframes shine { to { transform: translateX(115%); } }
.button .icon, .text-link .icon { transition: transform .3s var(--ease); }
.button:hover .icon, .text-link:hover .icon { transform: translate(3px,-3px); }
.button-light { background: var(--gold); color: var(--dark); }
.button-light:hover { background: var(--gold-light); box-shadow: 0 9px 34px #eab68833; }
.button:disabled { cursor: wait; opacity: .78; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero .text-link:hover .icon { transform: translateY(4px); }
.ribbon { position: relative; overflow: hidden; background: var(--gold); color: var(--ink); border-block: 1px solid #f6d4b3; }
.ribbon-track, .ribbon-track > div { display: flex; align-items: center; width: max-content; }
.ribbon-track { padding-block: 16px; transform: translateX(var(--ribbon-x, -14px)); }
.ribbon-track > div { gap: clamp(20px, 4vw, 72px); padding-right: clamp(20px, 4vw, 72px); }
.ribbon span { text-transform: uppercase; font-size: 10px; letter-spacing: .24em; font-weight: 750; white-space: nowrap; }
.ribbon .icon { width: 13px; height: 13px; }

.work, .studio, .contact { padding-block: clamp(72px, 10vw, 146px); }
.work { background: radial-gradient(ellipse at 100% 22%, #e9dac7, transparent 54%), var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .31fr); align-items: end; gap: 22px 42px; margin-bottom: clamp(32px, 5vw, 74px); }
.section-head > p { color: var(--muted); max-width: 35ch; padding-bottom: 4px; }
.work h2 em { color: var(--bronze); }
.work-grid { display: grid; grid-template-columns: 1.16fr 1fr .89fr; align-items: start; gap: clamp(15px, 2.4vw, 36px); }
.piece { min-width: 0; }
.piece:nth-child(2) { margin-top: 55px; --delay: .105s; }
.piece:nth-child(3) { margin-top: 110px; --delay: .2s; }
.piece-image { position: relative; display: block; isolation: isolate; overflow: hidden; aspect-ratio: .93; background: #a48772; color: var(--ivory); }
.piece:nth-child(2) .piece-image { aspect-ratio: .88; }
.piece:nth-child(3) .piece-image { aspect-ratio: .94; }
.piece-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #1a130ec2, transparent 31%); pointer-events: none; }
.piece-image::after { content: ""; position: absolute; inset: 9px; z-index: 2; border: 1px solid #fff4da74; opacity: 0; transform: scale(.94); transition: transform .56s var(--ease), opacity .45s; pointer-events: none; }
.piece-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease); }
.piece-image:is(:hover,:focus-visible) img { transform: scale(1.09); }
.piece-image:is(:hover,:focus-visible)::after { transform: none; opacity: 1; }
.piece-tag, .piece-open { position: absolute; z-index: 3; }
.piece-tag { bottom: 19px; left: 17px; max-width: calc(100% - 72px); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.piece-open { display: grid; place-items: center; bottom: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid #fff4da9e; border-radius: 50%; background: #26190f51; transition: background .3s, color .3s, transform .5s var(--ease); }
.piece-image:is(:hover,:focus-visible) .piece-open { transform: rotate(90deg); color: var(--dark); background: var(--gold-light); }
.piece-title { display: flex; align-items: baseline; gap: 11px; margin: 16px 0 6px; }
.piece-title > span, .steps li > span { color: var(--bronze); font-size: 11px; font-weight: 730; letter-spacing: .1em; }
.piece-title h3 { font-size: clamp(28px, 3.1vw, 48px); line-height: 1.05; letter-spacing: -.055em; }
.piece p { max-width: 36ch; color: var(--muted); font-size: 14px; }
.work-end { margin-top: clamp(36px, 5vw, 73px); border-top: 1px solid var(--line); padding-top: 15px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; }
.work-end p { color: var(--muted); font-size: 12px; }

.studio { position: relative; isolation: isolate; overflow: hidden; color: var(--ivory); background: #322117; }
.studio::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #2d1c13ef, #2a1c15de 49%, #211711f5 88%), url("assets/wohnwand.webp") center 52% / cover; }
.studio-grain { position: absolute; z-index: -1; pointer-events: none; width: clamp(370px, 62vw, 1040px); aspect-ratio: 1; top: 50%; left: max(-12vw, -175px); background: url("assets/jahresringe.svg") center / contain no-repeat; opacity: .22; transform: translateY(calc(-50% + var(--grain-y, 0px))) rotate(-11deg); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(30px, 9vw, 145px); }
.studio h2 { text-wrap: initial; }
.studio h2 em, .contact h2 em { color: var(--gold-light); }
.studio-copy > p:not(.eyebrow) { max-width: 40ch; margin-top: 22px; color: #f2e1d2; }
.studio-mark { display: inline-grid; grid-template-columns: auto auto; gap: 4px 11px; align-items: end; border-top: 1px solid #edbc8d78; margin-top: 40px; padding-top: 9px; color: var(--gold-light); }
.studio-mark b { grid-row: span 2; font: 53px/.86 var(--display); letter-spacing: -.07em; }
.studio-mark span { font-size: 9px; line-height: 1; text-transform: uppercase; letter-spacing: .18em; }
.studio-mark span:last-child { grid-row: 2; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 15px; gap: 12px; align-items: baseline; padding-block: clamp(24px, 3.1vw, 45px); position: relative; }
.steps li:nth-child(2) { --delay: .09s; }
.steps li:nth-child(3) { --delay: .18s; }
.steps li::before, .steps li:last-child::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: #edbc8d70; transform-origin: left; transition: transform 1.18s var(--ease) var(--delay, 0s); }
.steps li:last-child::after { top: auto; bottom: 0; }
.steps li.is-pending::before, .steps li.is-pending::after { transform: scaleX(0); }
.steps li > span, .steps li > .icon { color: var(--gold-light); }
.steps li > .icon { width: 13px; height: 13px; align-self: center; }
.steps h3 { font-size: clamp(25px, 3vw, 43px); line-height: 1.08; letter-spacing: -.045em; }
.steps p { margin-top: 7px; color: #e8d7c8; font-size: 14px; }

.contact { color-scheme: dark; background: radial-gradient(ellipse at 100% 0%, #392519, transparent 54%), #1d1511; color: var(--ivory); }
.contact .section-head > p, address, .map-provider, .form-note { color: #e1ccbb; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.12fr); align-items: start; gap: clamp(24px, 7vw, 110px); }
address { font-style: normal; }
address strong { font: 33px/1.35 var(--display); letter-spacing: -.04em; color: var(--ivory); }
.direct { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 9px; }
.direct a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 650; font-size: 14px; }
.map { position: relative; margin: 21px 0 12px; min-height: 251px; display: grid; background: #302219; border: 1px solid #f4c79f56; overflow: hidden; }
.map-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px 12px; }
.map-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; fill: none; stroke: #dab58d3d; }
.map-road { stroke: #e9c29965; stroke-width: 3; }
.map-cover::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at center, #2b1e16f8 10%, transparent 76%); }
.map-code { position: absolute; top: 11px; left: 12px; color: #f4cfab; font-size: 9px; text-transform: uppercase; letter-spacing: .17em; }
.map-pin { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #f4c79f70; background: #2c1c13; box-shadow: 0 0 0 7px #edbc8d13; }
.map-pin .icon { width: 23px; height: 23px; color: var(--gold-light); }
.map-cover p { font: 29px/1.1 var(--display); margin: 12px 0 8px; }
.map-toggle { min-height: 42px; padding: 7px 12px; border: 1px solid #edbc8d85; background: #291d15; color: var(--ivory); cursor: pointer; font: 670 13px var(--body); transition: background .25s, color .25s; }
.map-toggle:hover { background: var(--gold-light); color: var(--dark); }
.map-provider { margin-top: 6px; font-size: 11px; }
.map iframe { display: block; width: 100%; min-height: 251px; border: 0; }
.route { color: var(--gold-light); }
form { scroll-margin-top: calc(var(--bar) + 16px); padding: clamp(19px, 3vw, 43px); background: linear-gradient(147deg, #3b2a20, #291e18 74%); border: 1px solid #f4c79f59; box-shadow: 0 23px 65px #0d080638; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #f4c79f45; padding-bottom: 15px; margin-bottom: 19px; color: var(--gold-light); }
.form-heading h3 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.08; letter-spacing: -.045em; color: var(--ivory); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.full { grid-column: 1 / -1; }
label { display: block; min-width: 0; color: var(--ivory); font-size: 13px; font-weight: 650; }
label small { color: #e1ccbb; font-size: 11px; font-weight: 400; margin-left: 2px; }
label span { color: var(--gold-light); }
input, textarea, select { display: block; min-width: 0; width: 100%; margin-top: 5px; padding: 9px 10px; min-height: 46px; border: 1px solid #b994756e; border-radius: 0; background: #221912; color: var(--ivory); font: 400 16px/1.4 var(--body); transition: border-color .25s, box-shadow .25s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px #edbc8d42; }
textarea { resize: vertical; }
textarea::placeholder { color: #c6b3a3; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; margin-top: 18px; }
.form-note { font-size: 12px; }
.form-status:not(:empty) { border-top: 1px solid #f4c79f45; margin-top: 15px; padding-top: 11px; font-size: 13px; }
.form-status[data-state="error"] { color: #ffbaa8; }
.form-status[data-state="success"] { color: #e6eec6; }
form[aria-busy="true"] .button .icon { display: none; }
form[aria-busy="true"] .button::after { content: ""; width: 15px; height: 15px; border: 2px solid #48322655; border-top-color: var(--ink); border-radius: 50%; animation: spin .72s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.footer { color: #f8ebdb; background: #16100d; border-top: 1px solid #efc09b45; }
.footer-inner { padding-block: 26px; font-size: 12px; }
.footer-inner > span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #e1ccbb; }
.footer .text-link:hover { color: var(--gold-light); }

[data-reveal] { transition: opacity .74s var(--ease) var(--delay, 0s), transform .96s var(--ease) var(--delay, 0s); }
.is-pending { opacity: 0; transform: translateY(41px); }
.is-pending:focus-within, .is-pending:target { opacity: 1; transform: none; }
.piece.is-pending .piece-image { clip-path: inset(13% 0 13% 0); }
.piece-image { transition: clip-path 1.12s var(--ease) var(--delay, 0s); clip-path: inset(0); }
.piece.is-pending:focus-within .piece-image { clip-path: inset(0); }

dialog { position: fixed; inset: 0; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #edbc8d78; background: #281c15; color: var(--ivory); box-shadow: 0 24px 110px #100a07b5; overflow: auto; }
dialog[open] { animation: dialog-in .56s var(--ease) both; }
dialog::backdrop { background: #160f0bd9; backdrop-filter: blur(9px); }
dialog[open]::backdrop { animation: fade-in .3s ease-out both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.round { background: transparent; color: var(--ivory); padding: 0; cursor: pointer; }
.close-dialog { position: absolute; z-index: 2; top: 15px; right: 15px; background: #22160ee8; }
.gallery { width: min(940px, calc(100% - 32px)); }
.gallery-layout { display: grid; grid-template-columns: 1.19fr 1fr; }
.gallery-visual { background: #1d1511; overflow: hidden; }
.gallery-visual img { width: 100%; height: 100%; object-fit: cover; }
.gallery img.is-switching { animation: gallery-in .55s var(--ease) both; }
@keyframes gallery-in { from { opacity: .34; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
.gallery-info { position: relative; padding: 67px clamp(22px, 4vw, 48px) 29px; align-self: stretch; display: grid; align-content: center; justify-items: start; gap: 21px; }
.gallery h2 { margin-block: 11px; font-size: clamp(37px, 5vw, 65px); color: var(--ivory); text-wrap: initial; }
#gallery-material { color: var(--gold-light); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
#gallery-description { margin-top: 10px; color: #e1ccbb; font-size: 14px; }
.gallery-controls { display: flex; gap: 8px; }
#gallery-prev .icon { transform: rotate(180deg); }

.receipt { width: min(540px, calc(100% - 32px)); }
.receipt-body { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(35px, 6vw, 66px) clamp(21px, 5vw, 49px); background: radial-gradient(ellipse at 50% 0%, #62422a, transparent 73%), #281c15; }
.receipt-body::before { content: ""; position: absolute; z-index: -1; inset: -16% -15%; background: url("assets/jahresringe.svg") center / contain no-repeat; opacity: .19; pointer-events: none; }
.receipt-body > .eyebrow { justify-content: center; margin-top: 23px; }
.receipt h2, .result-page h1 { margin: 12px 0 13px; color: var(--ivory); font: 400 clamp(48px, 7.5vw, 84px)/.98 var(--display); letter-spacing: -.07em; }
.receipt h2 em, .result-page h1 em { color: var(--gold-light); }
.receipt-body > p:not(.eyebrow) { color: #f3dfce; max-width: 39ch; margin-inline: auto; }
.receipt-body > .button { margin-top: 24px; }
.receipt-seal { position: relative; display: grid; place-items: center; margin: 0 auto; width: 84px; height: 84px; border: 1px solid #f5c69ac0; border-radius: 50%; background: #503320; color: var(--gold-light); box-shadow: 0 0 35px #efaf7864; }
.receipt-seal svg { width: 43px; height: 43px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.receipt-seal i { position: absolute; inset: -7px; border: 1px solid #eabd91aa; border-radius: 50%; opacity: 0; }
.receipt-seal i:nth-child(2) { --ring-delay: .25s; }
.receipt-seal i:nth-child(3) { --ring-delay: .43s; }
.receipt[open] .receipt-seal i { animation: seal-ring 1.5s var(--ring-delay, .06s) var(--ease) both; }
.receipt[open] .receipt-seal path { stroke-dasharray: 1; animation: seal-tick .57s .22s var(--ease) both; }
@keyframes seal-ring { from { transform: scale(.83); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }
@keyframes seal-tick { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.result-page { min-height: 100svh; display: grid; place-items: center; padding: 16px; color: var(--ivory); }
.result-page main { width: min(560px, 100%); border: 1px solid #edbc8d78; }
.result-page main > .eyebrow { margin-top: 0; }

@media (max-width: 980px) {
  .hero-frame { left: 15%; }
  .hero h1 { font-size: clamp(84px, 13.7vw, 145px); }
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(185px, .38fr); gap: 15px 22px; }
  .work-grid { gap: 17px; }
  .piece:nth-child(2) { margin-top: 38px; }
  .piece:nth-child(3) { margin-top: 76px; }
  .contact-grid { gap: 27px; }
}

@media (max-width: 680px) {
  :root { --bar: 66px; --shell: calc(100% - 36px); }
  .header { background: #1a1310; }
  .brand { gap: 8px; font-size: 23px; }
  .brand img { width: 35px; height: 35px; }
  .brand small { font-size: 7px; }
  nav { gap: 0; }
  nav a:not(.nav-contact) { display: none; }
  nav .nav-contact { min-height: 39px; }
  .has-menu .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 10px; border: 1px solid #f9e5cd67; background: transparent; color: var(--ivory); font: 650 13px var(--body); cursor: pointer; }
  .menu-toggle span { width: 13px; height: 7px; border-block: 1px solid currentColor; transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span { transform: rotate(-90deg); }
  .has-menu nav { display: none; position: absolute; inset: 100% 0 auto; background: #211711; padding: 9px 18px 16px; border-bottom: 1px solid #f9e5cd67; }
  .has-menu .menu-toggle[aria-expanded="true"] + nav { display: grid; animation: mobile-menu .32s var(--ease) both; }
  .has-menu nav a { display: flex; width: fit-content; min-height: 44px; padding: 8px; }
  .has-menu nav a[aria-current]::after { content: none; }
  .has-menu nav .nav-contact { border: 0; }
  @keyframes mobile-menu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .hero { min-height: clamp(660px, 92svh, 840px); }
  .hero-frame { left: 0; }
  .hero-photo { bottom: 12%; }
  .hero-photo img { object-position: 53% 29%; }
  .hero-shade { background: linear-gradient(0deg, #1a1310 4%, #1a1310f7 18%, #1a1310c4 39%, #1a131032 74%, #1a131019 100%), linear-gradient(90deg, #20160c36, transparent 62%); }
  .hero-inner { align-content: end; padding: calc(var(--bar) + 94px) 0 75px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .16em; }
  .hero h1 { font-size: clamp(62px, 18.3vw, 123px); margin-block: 22px 17px; }
  .hero-intro { max-width: 34ch; }
  .hero-actions { gap: 10px 15px; margin-top: 19px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-index { display: none; }
  .hero-meta { min-height: 54px; font-size: 8px; letter-spacing: .07em; gap: 8px; }
  .hero-meta p { text-align: right; }
  .hero-meta p span { display: none; }
  .scroll-cue { gap: 7px; white-space: nowrap; }
  .scroll-cue > span { width: 31px; height: 31px; }
  .scroll-cue .icon { width: 13px; height: 13px; }
  .ribbon-track { padding-block: 12px; }
  .ribbon-track > div { gap: 21px; padding-right: 21px; }
  .ribbon span { font-size: 9px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head > p { padding-bottom: 0; }
  h2 { font-size: clamp(48px, 12vw, 76px); text-wrap: initial; }
  .work-grid, .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .work-grid { gap: 33px; }
  .piece:nth-child(n) { margin-top: 0; --delay: 0s; }
  .piece:nth-child(n) .piece-image { aspect-ratio: 1.13; }
  .studio-grain { left: -150px; top: 31%; }
  .studio-mark { margin-top: 25px; }
  .studio-grid { gap: 34px; }
  .contact-grid { gap: 32px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > span { display: none; }
  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-visual img { height: min(41dvh, 420px); }
  .gallery-info { position: static; padding: 19px 19px 21px; gap: 13px; }
  .gallery h2 { margin-block: 6px; }
}

@media (max-width: 390px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .button { min-height: 46px; padding-inline: 12px; gap: 9px; }
  .hero-actions .text-link { gap: 4px; }
  .hero-actions .text-link .icon { width: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .is-pending { opacity: 1; transform: none; }
  .hero-photo img { transform: none; }
  .piece.is-pending .piece-image { clip-path: inset(0); }
  .steps li.is-pending::before, .steps li.is-pending::after { transform: none; }
}

/* The normal hero remains readable when the page is opened without JavaScript. */
.cinema { --cinema-run: clamp(360px, 63svh, 680px); position: relative; }
@supports (position: sticky) {
  @media (prefers-reduced-motion: no-preference) {
    .has-js .cinema { min-height: calc(100svh + var(--cinema-run)); }
    .has-js .cinema .hero { position: sticky; top: 0; min-height: 100svh; }
    .has-js .cinema .hero-detail { display: block; }
  }
  @media (max-width: 680px) and (prefers-reduced-motion: no-preference) {
    .has-js .cinema { min-height: calc(max(660px, 100svh) + var(--cinema-run)); }
    .has-js .cinema .hero { min-height: max(660px, 100svh); }
  }
}
.scene-marker { position: absolute; top: calc(var(--cinema-run) * .78); }
.scroll-cue b { font-weight: inherit; }
.hero-photo img {
  transform: translate3d(calc(var(--photo-x, 0px) + var(--scene-pan, 0%)), var(--photo-y, 0px), 0) scale(var(--photo-zoom, 1.035));
  transform-origin: 70% 63%;
}
.hero-shade { z-index: 1; pointer-events: none; }
.hero-curtain { z-index: 3; }
.hero-frame::after { z-index: 2; }
.hero-beam {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: var(--beam-alpha, 0);
  background: linear-gradient(108deg, transparent 36%, #c477373f 43%, #ffe4af99 50%, #d18c4b4d 58%, transparent 64%);
  background-size: 180% 100%;
  background-position: var(--beam-position, -35%) center;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, black 23%);
  pointer-events: none;
}
.hero-content { opacity: var(--intro-alpha, 1); }
.hero-content.scene-muted { pointer-events: none; }
.hero-content:focus-within { opacity: 1; pointer-events: auto; }
.hero-content:focus-within ~ .hero-detail { opacity: 0; }
.hero-detail {
  position: absolute;
  left: 0;
  top: 50%;
  max-width: min(100%, 600px);
  display: none;
  pointer-events: none;
  opacity: var(--detail-alpha, 0);
  transform: translateY(calc(-42% + (1 - var(--detail-alpha, 0)) * 32px));
}
.detail-title { margin: 14px 0 18px; font: 400 clamp(66px, 10vw, 145px)/.82 var(--display); letter-spacing: -.076em; }
.detail-title em { color: var(--gold-light); }
.hero-detail > p:last-child { color: #fff2df; text-shadow: 0 2px 12px #1a1310; max-width: 30ch; }
.scene-line { position: absolute; inset: auto 0 0; height: 2px; background: var(--gold-light); transform: scaleX(var(--scene, 0)); transform-origin: left; pointer-events: none; }
.material { padding-block: clamp(58px, 8vw, 120px); color: var(--ivory); background: radial-gradient(ellipse at 100% 0%, #61432e, transparent 54%), #302017; }
.material-grid { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1fr); gap: clamp(30px, 8vw, 128px); align-items: center; }
.material .eyebrow, .material h2 em { color: var(--gold-light); }
.material-copy > p:not(.eyebrow) { color: #efdbca; max-width: 40ch; margin-top: 17px; }
.material-copy .material-note { font-size: 12px; }
.finish-frame { width: min(100%, 610px); justify-self: end; margin: 0; border: 1px solid #edbc8d66; border-radius: 18px; overflow: hidden; background: #281a13; box-shadow: 0 20px 64px #10090555; }
.finish-picture { position: relative; }
.finish-picture > svg { width: 100%; height: auto; aspect-ratio: 1; display: block; background: #60442f; }
.finish-divider { position: absolute; left: var(--finish-position, 50%); top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: #ffe0bc; box-shadow: 0 0 13px #24160e77; pointer-events: none; }
.finish-divider > span { position: absolute; display: grid; place-items: center; top: 48%; left: 50%; transform: translate(-50%, -50%); width: 43px; height: 43px; color: var(--dark); background: var(--gold-light); border-radius: 50%; box-shadow: 0 4px 25px #1a131070; }
.finish-controls:not([hidden]) ~ .material-note { margin-top: 16px; }
.finish-divider > span { touch-action: none; cursor: ew-resize; }
.material:has(.finish-controls:not([hidden])) .finish-divider > span { pointer-events: auto; }
.finish-frame:not(.is-dragging):is([data-finish="0"], [data-finish="100"]) .finish-divider { display: none; }
.finish-frame[data-finish="0"] figcaption span:first-child,
.finish-frame[data-finish="100"] figcaption span:last-child { visibility: hidden; }
.finish-frame figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 12px 16px; color: var(--gold-light); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.finish-controls { margin-top: 24px; }
.finish-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.finish-options button { color: var(--ivory); background: #231911; border: 1px solid #edbc8d74; padding: 8px 11px; border-radius: 9px; font: 650 12px/1.25 var(--body); min-height: 42px; cursor: pointer; transition: background .25s, color .25s; }
.finish-options button:hover, .finish-options button[aria-pressed="true"] { color: var(--dark); background: var(--gold-light); }
.finish-options i { display: inline-block; width: 11px; height: 11px; border: 1px solid #f4d1ac; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.finish-options .oak { background: #b8824f; }
.finish-options .walnut { background: #53311f; }
.finish-controls label { font-size: 12px; color: #efdbca; }
.finish-controls input { accent-color: var(--gold-light); width: min(100%, 315px); min-height: 28px; margin: 3px 0 0; padding: 0; border: 0; background: transparent; cursor: ew-resize; }
.finish-controls input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.button, .nav-contact, .map-toggle, .menu-toggle { border-radius: 10px; }
input, textarea, select { border-radius: 10px; }
form, .map, dialog { border-radius: 18px; }
.piece-image { border-radius: 12px; }
.piece-image::after { border-radius: 8px; }
#receipt-project { color: var(--gold-light); font-weight: 650; margin-bottom: 7px; }
.footer-links { flex-wrap: wrap; justify-content: center; gap: 8px 19px; }
.footer-links a { display: inline-flex; text-decoration: underline; text-underline-offset: 4px; }
.footer-inner > .text-link { flex-shrink: 0; }
.info-page { background: var(--paper); min-height: 100svh; display: flex; flex-direction: column; }
.info-page .header { background: #1a1310; margin-bottom: 0; }
.info-page main { flex: 1; padding-block: clamp(58px, 9vw, 122px); }
.info-copy { max-width: 75ch; }
.info-copy h1 { font-size: clamp(47px, 7.5vw, 91px); line-height: 1.02; letter-spacing: -.061em; margin-block: 14px 20px; }
.info-copy h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; margin-block: 29px 11px; line-height: 1.08; text-wrap: initial; }
.info-copy p { margin-bottom: 11px; }
.info-copy address { color: var(--ink); }
.info-copy a:not(.button) { text-underline-offset: 4px; }
.info-copy .button { margin-top: 13px; }
.result-page main { border-radius: 18px; }

@media (max-width: 680px) {
  .cinema { --cinema-run: clamp(310px, 48svh, 450px); }
  .hero-photo img { transform-origin: 52% 58%; }
  .hero-beam { mask-image: none; }
  .hero-detail { top: auto; bottom: 110px; transform: translateY(calc((1 - var(--detail-alpha, 0)) * 25px)); }
  .material-grid { grid-template-columns: 1fr; gap: 29px; }
  .footer-links { order: 3; width: 100%; justify-content: flex-start; }
  .footer-links a { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo img { transform: none; }
  .hero-beam, .scene-line { display: none; }
}

/* Einzelne Akzente unterstützen die vorhandenen Scrollanimationen. */
.error-layout { display:grid; grid-template-columns:1fr .85fr; align-items:center; gap:clamp(28px,6vw,92px); min-height:70svh; padding-block:clamp(55px,10vw,145px); }
.error-copy { min-width:0; }
.error-copy .eyebrow { color:#765736; }
.error-copy h1 { font:400 clamp(48px,8vw,108px)/.96 var(--display,Georgia,serif); letter-spacing:-.06em; margin:22px 0; }
.error-copy h1 em { display:block; color:#96764f; }
.error-copy>p:not(.eyebrow) { max-width:43ch; }
.error-actions { display:flex; gap:22px; align-items:center; flex-wrap:wrap; margin-top:26px; }
.error-grain { display:grid; place-items:center; aspect-ratio:1.1; border-radius:16px; background:linear-gradient(145deg,#24181140,#241811b0),url('/assets/wohnwand.webp') center/cover; }
.error-grain span { color:#fff3df; font:italic clamp(75px,11vw,170px)/1 Georgia,serif; letter-spacing:-.1em; }
@media(max-width:680px){.error-layout{grid-template-columns:1fr;min-height:0}.error-grain{aspect-ratio:1.8;background-image:linear-gradient(145deg,#24181140,#241811b0),url('/assets/wohnwand-mobil.webp')}}
@media(prefers-reduced-motion:no-preference){
  .error-copy { animation:detail-arrive .75s var(--ease) both; }
  .error-grain { animation:detail-arrive .95s .10s var(--ease) both; }
  .steps li > .icon { transition:transform .8s var(--ease) var(--delay,0s); }
  .steps li.is-pending > .icon { transform:rotate(-75deg) scale(.65); }
  .finish-frame[data-reveal] { transition-duration:.8s,1.05s; }
  #anfrage .form-heading .icon { transition:transform .55s var(--ease); }
  #anfrage:focus-within .form-heading .icon { transform:rotate(45deg); }
  .form-grid :is(input,textarea,select) { transition:border-color .25s,background .25s,box-shadow .25s; }
  .form-grid :is(input,textarea,select):focus { box-shadow:0 0 0 3px #e5b98526; }
}
@keyframes detail-arrive { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

/* Reserve space before the deferred controls receive their handlers. */
.has-js :is(.finish-controls,.map-provider)[hidden] { display: block !important; visibility: hidden; }
.has-js .map-toggle[hidden] { display: inline-block !important; visibility: hidden; }
.has-js .finish-controls ~ .material-note { margin-top: 16px; }
