/* ==========================================================================
   ARTAS Restaurierung — main stylesheet
   Palette from the logo: charcoal ink, ivory paper, gold.
   ========================================================================== */

/* ---------- Fonts (Google Fonts, self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cormorant.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cormorant-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cinzel.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/manrope.woff2') format('woff2');
}
/* metric-matched fallbacks keep layout stable while fonts load */
@font-face { font-family: 'Cormorant Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 88%; ascent-override: 100%; descent-override: 31%; }
@font-face { font-family: 'Cinzel Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 112%; ascent-override: 90%; descent-override: 30%; }
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 103%; ascent-override: 103%; descent-override: 29%; }

/* ---------- Tokens ---------- */
:root {
  --ink: #16130f;
  --ink-2: #211d18;
  --ink-3: #2c2721;
  --ivory: #f5f0e6;
  --paper: #fbf8f2;
  --stone: #8a8378;
  --stone-2: #b9b2a5;
  --gold: #b8892f;
  --gold-2: #d4a955;
  --gold-soft: rgba(184, 137, 47, .14);
  --line: rgba(22, 19, 15, .12);
  --line-light: rgba(245, 240, 230, .16);

  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --caps: 'Cinzel', 'Cinzel Fallback', Georgia, serif;
  --sans: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --fs-h1: clamp(2.75rem, 1.6rem + 5.2vw, 6.25rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(80px, 11vw, 168px);
  --radius: 2px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
body.is-locked { overflow: hidden; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 920px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--ivory { background: var(--ivory); }
.section--dark ::selection { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--caps); font-size: .75rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); flex: none;
}
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--gold-2); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h2 em, .h1 em, .h3 em { font-style: italic; color: var(--gold); font-weight: 500; }
.section--dark .h2 em, .on-dark em { color: var(--gold-2); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: #4a443b; }
.section--dark .lead, .on-dark .lead { color: var(--stone-2); }
.muted { color: #6b645a; }
.section--dark .muted { color: var(--stone-2); }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; }
}

/* gold hairline divider with diamond */
.divider {
  display: flex; align-items: center; gap: 16px; color: var(--gold); width: min(240px, 60%);
}
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: currentColor; opacity: .55; }
.divider span { width: 8px; height: 8px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink); --fill: var(--ivory);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg); border-radius: var(--radius);
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .35s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-io);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { border-color: var(--fill); }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; --fill: var(--gold); border-color: currentColor; }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--gold); }
.btn--dark { --bg: var(--ink); --fg: var(--ivory); --fill: var(--gold); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--ink); }
.btn--sm { min-height: 42px; padding: 10px 20px; font-size: .75rem; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: 0; }
.btn .spinner {
  position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; opacity: 0;
}
.btn.is-loading .spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); position: relative; padding-bottom: 6px;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(.35); transform-origin: left; transition: transform .5s var(--ease-out);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); }
.link-arrow svg { width: 18px; height: 18px; color: var(--gold); transition: transform .45s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }
.section--dark .link-arrow, .on-dark .link-arrow { color: var(--ivory); }

.text-link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); }
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; }

/* ---------- Image placeholders (LQIP) ---------- */
.ph { position: relative; overflow: hidden; background: var(--ink-3); }
.ph::before {
  content: ''; position: absolute; inset: -20px; background: var(--lqip) center / cover no-repeat;
  filter: blur(18px) saturate(1.1); transform: scale(1.1);
}
.ph img { position: relative; opacity: 0; transition: opacity .9s var(--ease); }
.ph.is-loaded img { opacity: 1; }
.ph.is-loaded::before { transition: opacity .2s 1s; opacity: 0; }
.ph--cover { position: absolute; inset: 0; }
.ph picture { width: 100%; height: 100%; }
.ph--cover img, .ph--fill img { width: 100%; height: 100%; object-fit: cover; object-position: var(--obj, 50% 50%); }
/* fixed-ratio boxes (aspect-ratio set by a modifier class) fill with the image */
.pcard__img img, .collage__main img, .svc-row__img img, .drop__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph--fill { width: 100%; height: 100%; }
.no-js .ph img { opacity: 1; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 120;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--ivory);
  height: var(--header-h);
  transition: transform .5s var(--ease-out), height .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 9, 7, .55), rgba(10, 9, 7, 0));
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(22, 19, 15, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 48px; width: auto; transition: height .4s var(--ease); }
.site-header.is-scrolled .brand img { height: 40px; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--caps); font-weight: 600; font-size: 1.375rem; letter-spacing: .14em; }
.brand__sub { font-size: .5625rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-2); margin-top: 6px; font-weight: 600; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); list-style: none; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245, 240, 230, .86); transition: color .3s var(--ease);
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current='page'], .nav__item.is-current > .nav__link { color: var(--ivory); }
.nav__link:hover::after, .nav__link:focus-visible::after,
.nav__link[aria-current='page']::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); transform-origin: left; }
.nav__link svg { width: 10px; height: 10px; transition: transform .35s var(--ease); }
.nav__item--drop { position: relative; }
.nav__item--drop.is-open .nav__link svg { transform: rotate(180deg); }

/* dropdown mega-panel */
.drop {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 560px;
  translate: -50% 0;
  background: var(--paper); color: var(--ink); padding: 14px; border-radius: 3px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s .35s;
}
.drop::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item--drop.is-open .drop {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.drop__item {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: 2px; transition: background-color .3s var(--ease);
}
.drop__item:hover, .drop__item:focus-visible { background: var(--ivory); }
.drop__thumb { width: 64px; height: 64px; border-radius: 2px; }
.drop__thumb img { transition: transform .6s var(--ease-out); }
.drop__item:hover .drop__thumb img { transform: scale(1.1); }
.drop__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; }
.drop__num { font-family: var(--caps); font-size: .65rem; color: var(--gold); letter-spacing: .1em; }
.drop__desc { font-size: .78rem; color: #6b645a; line-height: 1.4; margin-top: 3px; }
.drop__all {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; padding: 14px 12px 6px; border-top: 1px solid var(--line);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.drop__all svg { width: 16px; color: var(--gold); transition: transform .4s var(--ease-out); }
.drop__all:hover svg { transform: translateX(5px); }

.header-cta { display: none; }

/* burger */
.burger {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center; color: var(--ivory);
  border: 1px solid var(--line-light); border-radius: 50%;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.burger:hover { border-color: var(--gold-2); }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .45s var(--ease-out), opacity .3s var(--ease), width .3s var(--ease);
}
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); right: 20px; }
.burger:hover span:nth-child(2) { right: 14px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: rotate(-45deg); right: 14px; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .burger { display: none; }
  .header-cta { display: inline-flex; }
}

/* mobile menu overlay */
.mnav {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at calc(100% - 44px) 42px);
  visibility: hidden;
  transition: clip-path .75s var(--ease-io), visibility 0s .75s;
}
.mnav.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; transition-delay: 0s; }
.mnav__list { list-style: none; padding: 0; display: grid; gap: 4px; }
.mnav__link {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; font-weight: 500;
  border-bottom: 1px solid var(--line-light);
}
.mnav__link small { font-family: var(--caps); font-size: .7rem; color: var(--gold-2); letter-spacing: .14em; }
.mnav__sub { list-style: none; padding: 8px 0 12px 34px; display: grid; gap: 2px; border-bottom: 1px solid var(--line-light); }
.mnav__sub a { display: block; padding: 8px 0; font-size: 1.05rem; color: var(--stone-2); }
.mnav__sub a:hover, .mnav__sub a[aria-current='page'] { color: var(--gold-2); }
.mnav__link[aria-current='page'] { color: var(--gold-2); }
.mnav__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 10px; color: var(--stone-2); font-size: .95rem; }
.mnav__foot a { color: var(--ivory); }
.mnav [data-stagger] { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .7s var(--ease-out); }
.mnav.is-open [data-stagger] { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i, 0) * .06s); }

/* ==========================================================================
   Home hero slider
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: var(--ivory); background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide .ph { position: absolute; inset: 0; background: var(--ink); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
.hero__slide[data-pos] img { object-position: var(--obj, 50% 50%); }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(14, 12, 9, .92) 0%, rgba(14, 12, 9, .55) 38%, rgba(14, 12, 9, .1) 70%, rgba(14, 12, 9, .45) 100%),
    linear-gradient(90deg, rgba(14, 12, 9, .55) 0%, rgba(14, 12, 9, 0) 60%);
}
.hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero__title { font-size: var(--fs-h1); max-width: 13ch; margin: 22px 0 24px; font-weight: 500; }
.hero__title em { font-style: italic; color: var(--gold-2); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; transform: translateY(105%); animation: lineUp 1.1s var(--ease-out) forwards; animation-delay: calc(.25s + var(--i) * .12s); }
@keyframes lineUp { to { transform: none; } }
.hero__text { max-width: 540px; font-size: var(--fs-lead); color: rgba(245, 240, 230, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__actions .btn--ghost { color: var(--ivory); }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease-out) forwards; animation-delay: var(--d, .6s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__tabs {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light); margin-top: clamp(40px, 7vh, 80px);
}
.hero__tab {
  position: relative; text-align: left; padding: 18px 12px 4px 0; color: rgba(245, 240, 230, .55);
  display: grid; gap: 4px; transition: color .4s var(--ease);
}
.hero__tab::before {
  content: ''; position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: var(--gold-2); transform: scaleX(0); transform-origin: left;
}
.hero__tab.is-active { color: var(--ivory); }
.hero__tab.is-active::before { animation: tabProgress var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__tab.is-active::before { animation-play-state: paused; }
.hero__tab:hover { color: var(--ivory); }
@keyframes tabProgress { to { transform: scaleX(1); } }
.hero__tab-num { font-family: var(--caps); font-size: .7rem; letter-spacing: .2em; color: var(--gold-2); }
.hero__tab-label { font-family: var(--caps); font-size: clamp(.72rem, .6rem + .5vw, 1rem); letter-spacing: .16em; text-transform: uppercase; }
.hero__tab-desc { display: none; font-size: .82rem; color: rgba(245, 240, 230, .6); }
@media (min-width: 900px) { .hero__tab-desc { display: block; } .hero__tab { padding-right: 32px; } }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; display: none;
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(245, 240, 230, .7);
  align-items: center; gap: 14px;
}
.hero__scroll::after { content: ''; width: 1px; height: 64px; background: linear-gradient(var(--gold-2), transparent); animation: scrollCue 2.4s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 1080px) { .hero__scroll { display: flex; } }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; isolation: isolate; color: var(--ivory); background: var(--ink);
  min-height: clamp(460px, 74vh, 780px); display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero--short { min-height: clamp(340px, 46vh, 460px); }
.page-hero .ph--cover img { transform: scale(1.08); animation: heroZoom 2.4s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(14, 12, 9, .94) 0%, rgba(14, 12, 9, .5) 45%, rgba(14, 12, 9, .3) 100%);
}
.page-hero .ph--cover { z-index: -2; }
.page-hero__inner { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 7vw, 96px); width: 100%; }
.page-hero__title { font-size: var(--fs-h1); margin: 20px 0 22px; max-width: 16ch; }
.page-hero__lead { max-width: 640px; font-size: var(--fs-lead); color: rgba(245, 240, 230, .82); }
.page-hero__num {
  position: absolute; right: var(--gutter); bottom: clamp(30px, 5vw, 70px);
  font-family: var(--caps); font-size: clamp(5rem, 14vw, 13rem); line-height: .8; color: transparent;
  -webkit-text-stroke: 1px rgba(212, 169, 85, .45); pointer-events: none; user-select: none;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 240, 230, .6); list-style: none; padding: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; color: var(--gold-2); }
.breadcrumb a:hover { color: var(--ivory); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='left'] { transform: translateX(-40px); }
.js [data-reveal='right'] { transform: translateX(40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* mask reveal: a curtain in the section colour slides away (no clip-path, so lazy-loading and
   IntersectionObserver still see the element) */
.js [data-reveal='mask'] { opacity: 1; transform: none; overflow: hidden; }
.js [data-reveal='mask']::after {
  content: ''; position: absolute; inset: 0; z-index: 2; background: var(--curtain, var(--paper));
  transform-origin: top; transition: transform 1.3s var(--ease-io); transition-delay: calc(var(--i, 0) * 110ms);
}
.section--ivory [data-reveal='mask'] { --curtain: var(--ivory); }
.section--dark [data-reveal='mask'] { --curtain: var(--ink); }
.js [data-reveal='mask'] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out), opacity .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal='mask'].is-in::after { transform: scaleY(0); }
.js [data-reveal='mask'].is-in img { transform: scale(1); }

/* ==========================================================================
   Home: intro + stats
   ========================================================================== */
.intro { display: grid; gap: 48px; }
@media (min-width: 960px) { .intro { grid-template-columns: 1.15fr .85fr; gap: 96px; align-items: end; } }
.intro__statement { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.12; font-weight: 500; }
.intro__statement em { color: var(--gold); }
.intro__statement--sm { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.15rem); line-height: 1.3; margin-top: 22px; }
.intro__body p + p { margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.stat { padding-top: 26px; position: relative; }
.stat::before { content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--gold); }
.stat__num { font-family: var(--caps); font-size: clamp(2.3rem, 1.6rem + 3vw, 4.5rem); line-height: 1; font-weight: 500; letter-spacing: .02em; }
.stat__num sup { font-size: .45em; color: var(--gold); vertical-align: top; position: relative; top: .3em; margin-left: 2px; }
.stat__label { margin-top: 10px; font-size: .9rem; color: #6b645a; max-width: 22ch; }
@media (max-width: 639px) {
  .stats { grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .stat { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
  .section--dark .stat { border-color: var(--line-light); }
  .stat__label { margin-top: 0; max-width: none; }
}
.section--dark .stats { border-color: var(--line-light); }
.section--dark .stat__label { color: var(--stone-2); }

/* ==========================================================================
   Service cards
   ========================================================================== */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; color: var(--ivory); overflow: hidden; isolation: isolate; border-radius: var(--radius);
}
@media (max-width: 639px) { .card { aspect-ratio: 4 / 4.2; } }
.card .ph { z-index: -2; }
.card .ph img { transition: transform 1.2s var(--ease-out), opacity .9s var(--ease); }
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(14, 12, 9, .9) 0%, rgba(14, 12, 9, .25) 55%, rgba(14, 12, 9, .05) 80%, rgba(14, 12, 9, .45) 100%);
  transition: opacity .6s var(--ease);
}
.card__body { padding: clamp(22px, 2.4vw, 32px); }
.card__num { position: absolute; top: 22px; left: clamp(22px, 2.4vw, 32px); font-family: var(--caps); font-size: .8rem; letter-spacing: .2em; color: var(--gold-2); }
.card__title { font-size: clamp(1.75rem, 1.1rem + 1.1vw, 2.2rem); line-height: 1.02; hyphens: auto; -webkit-hyphens: auto; }
.card__text {
  font-size: .92rem; color: rgba(245, 240, 230, .78); margin-top: 12px;
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out), opacity .5s var(--ease); opacity: 0;
}
.card__text > span { overflow: hidden; }
.card__more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.card__more::before { content: ''; width: 28px; height: 1px; background: var(--gold-2); transition: width .5s var(--ease-out); }
.card:hover .ph img, .card:focus-visible .ph img { transform: scale(1.07); }
.card:hover .card__text, .card:focus-visible .card__text { grid-template-rows: 1fr; opacity: 1; }
.card:hover .card__more::before, .card:focus-visible .card__more::before { width: 54px; }
@media (hover: none) { .card__text { grid-template-rows: 1fr; opacity: 1; } }

/* ==========================================================================
   Split feature (Villa Cannes etc.)
   ========================================================================== */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr .95fr; } .split--rev > :first-child { order: 2; } }
.collage { position: relative; padding: 0 12% 14% 0; }
.collage__main { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.collage__inset {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 5;
  outline: 10px solid var(--paper); border-radius: var(--radius);
}
.section--ivory .collage__inset { outline-color: var(--ivory); }
.section--dark .collage__inset { outline-color: var(--ink); }
.collage__tag {
  position: absolute; left: -1px; top: 28px; background: var(--gold); color: var(--ink);
  font-family: var(--caps); font-size: .7rem; letter-spacing: .2em; padding: 10px 16px; text-transform: uppercase;
}
.split__body > * + * { margin-top: 22px; }
.split__body .h2 { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--line); border-radius: 40px;
}
.section--dark .chip { border-color: var(--line-light); color: var(--stone-2); }

/* ==========================================================================
   Process steps
   ========================================================================== */
.process { display: grid; gap: 56px; }
@media (min-width: 960px) {
  .process { grid-template-columns: .8fr 1.2fr; gap: 96px; }
  .process__head { position: sticky; top: 120px; align-self: start; }
}
.process__head > * + * { margin-top: 22px; }
.steps { list-style: none; padding: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: start;
  padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line-light); position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step::after {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold-2);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + .2s);
}
.step.is-in::after { transform: scaleX(1); }
.step__num {
  font-family: var(--caps); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.8rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--gold-2); transition: color .5s var(--ease);
  min-width: 2.2ch;
}
.step:hover .step__num { color: var(--gold-2); }
.step__title { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); line-height: 1.15; font-weight: 500; }
.step__text { color: var(--stone-2); margin-top: 8px; font-size: .97rem; max-width: 52ch; }
.section:not(.section--dark) .step { border-color: var(--line); }
.section:not(.section--dark) .step__text { color: #6b645a; }
.section:not(.section--dark) .step__num { -webkit-text-stroke-color: var(--gold); }
.section:not(.section--dark) .step:hover .step__num { color: var(--gold); }
.section:not(.section--dark) .step::after { background: var(--gold); }

/* ==========================================================================
   Before / after slider
   ========================================================================== */
.ba-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .ba-grid--2 { grid-template-columns: 1fr 1fr; } }
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y; background: var(--ink-3); }
.ba--wide { aspect-ratio: 16 / 10; }
.ba .ph { position: absolute; inset: 0; }
.ba .ph img { width: 100%; height: 100%; object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--ivory);
  box-shadow: 0 0 18px rgba(0, 0, 0, .35); pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: var(--pos); width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--ivory); color: var(--ink); display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .35s var(--ease-out), background-color .3s;
}
.ba__knob svg { width: 26px; height: 26px; }
.ba:hover .ba__knob, .ba.is-dragging .ba__knob { transform: scale(1.1); background: var(--gold-2); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 3; touch-action: pan-y; }
.ba__range:focus-visible ~ .ba__knob { outline: 2px solid var(--gold); outline-offset: 4px; }
.ba__label {
  position: absolute; top: 16px; z-index: 2; pointer-events: none;
  font-family: var(--caps); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(22, 19, 15, .72); color: var(--ivory); padding: 8px 12px; border-radius: 2px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .3s;
}
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }
.ba-caption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: #6b645a; }
.ba-caption strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.section--dark .ba-caption { color: var(--stone-2); }
.section--dark .ba-caption strong { color: var(--ivory); }

/* ==========================================================================
   Project strip (home)
   ========================================================================== */
.strip-wrap { position: relative; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 72vw, 380px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  padding-bottom: 6px; cursor: grab;
}
@media (min-width: 1400px) { .strip { padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging a { pointer-events: none; }
.strip__item { scroll-snap-align: start; }
.pcard { display: block; position: relative; }
.pcard__img { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.pcard__img img { transition: transform 1.1s var(--ease-out), opacity .9s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__meta { padding-top: 16px; display: grid; gap: 4px; }
.pcard__place { font-family: var(--caps); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.pcard__name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; font-weight: 500; }
.pcard__crafts { font-size: .85rem; color: #6b645a; }
.section--dark .pcard__crafts { color: var(--stone-2); }
.section--dark .pcard__place { color: var(--gold-2); }
.strip-nav { display: flex; gap: 10px; }
.icon-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease-out);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover:not(:disabled) { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.section--dark .icon-btn { border-color: var(--line-light); }
.section--dark .icon-btn:hover:not(:disabled) { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }

/* ==========================================================================
   Trust grid / value
   ========================================================================== */
.trust { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust__item { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 700px) { .trust__item { padding-right: 40px; } }
.trust__icon { display: block; width: 38px; height: 38px; color: var(--gold); margin-bottom: 18px; transition: transform .6s var(--ease-out); }
.trust__icon svg { width: 100%; height: 100%; }
.trust__item:hover .trust__icon { transform: rotate(45deg); }
.trust__title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; font-weight: 600; }
.trust__text { margin-top: 8px; color: #6b645a; font-size: .95rem; }

.value { position: relative; isolation: isolate; color: var(--ivory); overflow: hidden; }
.value .ph--cover { z-index: -2; }
.value::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 12, 9, .94) 0%, rgba(14, 12, 9, .78) 55%, rgba(14, 12, 9, .5) 100%); }
.value__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .value__grid { grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: center; } }
.ticks { list-style: none; padding: 0; display: grid; gap: 0; }
.ticks li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-light); font-family: var(--serif); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.25; }
.ticks li::before { content: ''; flex: none; width: 8px; height: 8px; border: 1px solid var(--gold-2); transform: translateY(-3px) rotate(45deg); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { text-align: center; }
.cta__title { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.8rem); max-width: 18ch; margin: 26px auto 22px; }
.cta__text { max-width: 640px; margin-inline: auto; color: var(--stone-2); }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.cta__actions .btn--ghost { color: var(--ivory); }
.cta .divider { margin-inline: auto; }
.cta__ornament { position: absolute; inset: auto 0 0; display: flex; justify-content: center; opacity: .08; pointer-events: none; }
.cta__ornament img { width: min(560px, 80vw); }

/* ==========================================================================
   Service page
   ========================================================================== */
.svc-intro { display: grid; gap: 56px; }
@media (min-width: 1000px) { .svc-intro { grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; } }
.svc-intro__text > * + * { margin-top: 20px; }
.svc-list {
  background: var(--ivory); padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); position: relative;
}
.svc-list::before { content: ''; position: absolute; top: 0; left: clamp(28px, 4vw, 52px); width: 56px; height: 2px; background: var(--gold); }
.svc-list h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); line-height: 1.2; margin-bottom: 22px; }
.svc-list ol { list-style: none; padding: 0; counter-reset: li; }
.svc-list li {
  counter-increment: li; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .97rem;
  transition: padding-left .4s var(--ease-out), color .3s;
}
.svc-list li::before { content: counter(li, decimal-leading-zero); font-family: var(--caps); font-size: .75rem; color: var(--gold); padding-top: 3px; }
.svc-list li:hover { padding-left: 6px; }

.gallery-block + .gallery-block { margin-top: clamp(64px, 9vw, 120px); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.gallery-head .h3 { font-size: var(--fs-h3); }
.gallery-count { font-family: var(--caps); font-size: .75rem; letter-spacing: .2em; color: #6b645a; }
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 760px) { .masonry { columns: 3; column-gap: 14px; } }
@media (min-width: 1200px) { .masonry { columns: 4; } }
.masonry__item { break-inside: avoid; margin-bottom: 10px; display: block; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
@media (min-width: 760px) { .masonry__item { margin-bottom: 14px; } }
.masonry__item img { transition: transform 1s var(--ease-out), opacity .9s var(--ease), filter .6s var(--ease); width: 100%; }
.masonry__item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 12, 9, .55), transparent 50%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.masonry__item figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: var(--ivory); font-size: .82rem; line-height: 1.35;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .55s var(--ease-out);
}
.masonry__item:hover img, .masonry__item:focus-visible img { transform: scale(1.05); }
.masonry__item:hover::after, .masonry__item:focus-visible::after,
.masonry__item:hover figcaption, .masonry__item:focus-visible figcaption { opacity: 1; transform: none; }

/* cursor-follow label (desktop) */
.cursor-label {
  position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none;
  width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  background: var(--gold); color: var(--ink); display: grid; place-items: center;
  font-family: var(--caps); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0); transition: transform .35s var(--ease-out);
  will-change: transform;
}
.cursor-label.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor-label { display: none; } }

.svc-next { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .svc-next { grid-template-columns: 1fr 1fr; } }
.svc-next a {
  display: grid; gap: 6px; padding: clamp(28px, 4vw, 48px) 0; position: relative;
}
@media (min-width: 760px) { .svc-next a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 48px; } .svc-next a:first-child { padding-right: 48px; } }
@media (max-width: 759px) { .svc-next a + a { border-top: 1px solid var(--line); } }
.svc-next__label { font-family: var(--caps); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.svc-next__title { font-family: var(--serif); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 3rem); line-height: 1; transition: color .3s, transform .5s var(--ease-out); }
.svc-next a:hover .svc-next__title { color: var(--gold); }
.svc-next a:first-child:hover .svc-next__title { transform: translateX(-6px); }
.svc-next a + a:hover .svc-next__title { transform: translateX(6px); }

/* Leistungen overview rows */
.svc-rows { display: grid; gap: clamp(72px, 10vw, 140px); }
.svc-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) {
  .svc-row { grid-template-columns: 1.1fr .9fr; gap: 88px; }
  .svc-row:nth-child(even) > :first-child { order: 2; }
}
.svc-row__img { aspect-ratio: 5 / 4; border-radius: var(--radius); display: block; position: relative; overflow: hidden; }
.svc-row__img img { transition: transform 1.2s var(--ease-out), opacity .9s var(--ease); }
.svc-row__img:hover img { transform: scale(1.04); }
.svc-row__body > * + * { margin-top: 20px; }
.svc-row__num { font-family: var(--caps); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.svc-row__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }

/* ==========================================================================
   Referenzen
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  position: relative; padding: 11px 18px; border: 1px solid var(--line); border-radius: 40px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.filter sup { font-family: var(--caps); font-size: .62rem; color: var(--gold); margin-left: 4px; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed='true'] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.filter[aria-pressed='true'] sup { color: var(--gold-2); }
.refs { display: grid; gap: 40px 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .refs { grid-template-columns: repeat(3, 1fr); } }
.ref { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ref.is-hidden { display: none; }
.ref.is-leaving { opacity: 0; transform: scale(.96); }
.ref--featured { grid-column: 1 / -1; }
.ref--featured .pcard__img { aspect-ratio: 16 / 9; }
@media (min-width: 1080px) {
  .ref--featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: end; }
  .ref--featured.is-hidden { display: none; }
}
.ref__open { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.ref__count {
  position: absolute; right: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(22, 19, 15, .7); color: var(--ivory); padding: 6px 10px; border-radius: 30px; font-size: .72rem; letter-spacing: .08em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ref__count svg { width: 14px; height: 14px; }
.ref__text { margin-top: 14px; color: #4a443b; }
.countries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
@media (min-width: 900px) { .countries { grid-template-columns: repeat(4, 1fr); } }
.country { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line-light); }
.country__code { font-family: var(--caps); font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold-2); }
.country__name { font-family: var(--serif); font-size: 1.5rem; margin-top: 10px; }
.country__places { font-size: .88rem; color: var(--stone-2); margin-top: 4px; }

/* ==========================================================================
   Über uns
   ========================================================================== */
.bios { display: grid; gap: 18px; }
@media (min-width: 900px) { .bios { grid-template-columns: 1fr 1fr; } }
.bio { background: var(--paper); padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); position: relative; overflow: hidden; }
.bio::after {
  content: attr(data-initial); position: absolute; right: -10px; bottom: -40px;
  font-family: var(--caps); font-size: 12rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(184, 137, 47, .25);
  transition: transform 1s var(--ease-out);
}
.bio:hover::after { transform: translateY(-14px); }
.bio__role { font-family: var(--caps); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.bio__name { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); margin: 10px 0 18px; }
.bio ul { list-style: none; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.bio li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; font-size: .97rem; }
.bio li::before { content: ''; width: 6px; height: 6px; background: var(--gold); transform: translateY(10px) rotate(45deg); }
.approach-words { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1.05; font-weight: 500; }
.approach-words span { transition: color .4s; }
.approach-words span:nth-child(even) { font-style: italic; color: var(--gold-2); }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.25; max-width: 28ch; }
.quote::before { content: '“'; display: block; font-size: 3em; line-height: .6; color: var(--gold); font-style: normal; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact { grid-template-columns: .85fr 1.15fr; gap: 96px; } }
.contact__info > * + * { margin-top: 24px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a, .contact-list div {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 20px 0;
}
.contact-list svg { width: 22px; height: 22px; color: var(--gold); }
.contact-list small { display: block; font-family: var(--caps); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: #6b645a; }
.contact-list strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.contact-list .go { width: 18px; height: 18px; color: var(--ink); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .45s var(--ease-out); }
.contact-list a:hover .go { opacity: 1; transform: none; }

.form { display: grid; gap: 18px; background: var(--ivory); padding: clamp(24px, 4vw, 52px); border-radius: var(--radius); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-bottom: 1px solid rgba(22, 19, 15, .3); background: transparent;
  padding: 26px 0 10px; font-size: 1rem; border-radius: 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8892f' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 bottom 12px; background-size: 18px; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field label {
  position: absolute; left: 0; top: 26px; font-size: 1rem; color: #6b645a; pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-22px) scale(.78); color: var(--gold); letter-spacing: .04em; }
.field::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #a4402c; }
.field.is-invalid label { color: #a4402c; }
.field__error { font-size: .8rem; color: #a4402c; margin-top: 6px; min-height: 0; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .88rem; color: #4a443b; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border: 1px solid rgba(22, 19, 15, .4); border-radius: 2px; display: grid; place-items: center; margin-top: 1px; cursor: pointer; transition: background-color .25s, border-color .25s; }
.check input::after { content: ''; width: 11px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform .3s var(--ease-out); margin-top: -3px; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check.is-invalid input { border-color: #a4402c; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.form__note { font-size: .8rem; color: #6b645a; }
.form-status { display: none; padding: 18px 20px; border-radius: 2px; font-size: .95rem; }
.form-status.is-error { display: block; background: #f6e3dc; color: #7c2d1d; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sent .form-success { display: grid; justify-items: center; gap: 16px; animation: fadeUp .8s var(--ease-out) both; }
.form-success svg { width: 72px; height: 72px; color: var(--gold); }
.form-success svg circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s .1s var(--ease-out) forwards; }
.form-success svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .8s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Prose (legal pages)
   ========================================================================== */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin: 48px 0 14px; }
.prose h3 { font-size: 1.35rem; margin: 30px 0 10px; font-weight: 600; }
.prose p, .prose ul { margin-bottom: 14px; color: #3b362f; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose address { font-style: normal; margin-bottom: 14px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb {
  position: fixed; inset: 0; z-index: 160; background: rgba(12, 10, 8, .96); color: var(--ivory);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s .45s;
}
.lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb__top, .lb__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.lb__counter { font-family: var(--caps); font-size: .8rem; letter-spacing: .2em; }
.lb__counter b { color: var(--gold-2); font-weight: 500; }
.lb__stage { position: relative; overflow: hidden; touch-action: pan-y; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); }
.lb__stage picture { max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.lb__img {
  max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 2px;
  transition: opacity .4s var(--ease), transform .55s var(--ease-out); user-select: none; -webkit-user-drag: none;
}
.lb__img.is-swapping { opacity: 0; transform: scale(.97); }
.lb__caption { font-family: var(--serif); font-size: 1.2rem; color: rgba(245, 240, 230, .85); max-width: 70ch; }
.lb__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ivory);
  border: 1px solid var(--line-light); transition: background-color .3s, color .3s, border-color .3s, transform .35s var(--ease-out);
}
.lb__btn:hover { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__prev, .lb__next { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; background: rgba(12, 10, 8, .4); }
.lb__prev { left: clamp(8px, 2vw, 28px); }
.lb__next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 640px) { .lb__prev, .lb__next { display: none; } }
.lb__loader { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold-2); border-right-color: transparent; animation: spin .9s linear infinite; opacity: 0; transition: opacity .3s; }
.lb.is-loading .lb__loader { opacity: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--stone-2); padding-top: clamp(72px, 9vw, 120px); position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1.1fr; } }
.footer-brand img { width: 170px; }
.footer-brand p { margin-top: 22px; max-width: 34ch; font-size: .95rem; }
.footer-title { font-family: var(--caps); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--ivory); opacity: .82; transition: opacity .3s; }
.footer-links a:hover { opacity: 1; }
.footer-contact { font-style: normal; display: grid; gap: 10px; }
.footer-contact a { color: var(--ivory); }
.footer-bottom {
  margin-top: clamp(56px, 7vw, 96px); padding: 26px 0 30px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .82rem;
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--ivory); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--stone-2); }
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: var(--ivory); display: grid; place-items: center; border: 1px solid var(--line-light);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), visibility 0s .4s, background-color .3s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* mobile sticky contact bar */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  transform: translateY(140%); transition: transform .5s var(--ease-out);
}
.mbar.is-visible { transform: none; }
.mbar .btn { min-height: 50px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.mbar .btn--dark { border-color: var(--ink); }
@media (min-width: 1080px) { .mbar { display: none; } }
@media (max-width: 1079px) { .to-top { display: none; } .site-footer { padding-bottom: 76px; } }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--ivory); padding: 120px var(--gutter) 60px; }
.notfound__num { font-family: var(--caps); font-size: clamp(7rem, 24vw, 16rem); line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--gold-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal='mask'] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal='mask'] img { transform: none; }
  .js [data-reveal='mask']::after { display: none; }
  .hero__slide img { transform: none !important; }
  .hero__title .line > span, .fade-up { transform: none; opacity: 1; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mnav, .mbar, .to-top, .progress, .cursor-label, .lb { display: none !important; }
  .ph img { opacity: 1 !important; }
}
