/* ============================================================
   Fanny Thiel — Champagne · Berlin
   Editorial one-pager · design system
   ============================================================ */

/* ---- Fonts ---- */
/* Lokal gehostet (DSGVO) — variable Fonts, keine Google-Server */
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:300 700;font-display:swap;src:url('fonts/cormorant-garamond.woff2') format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:300 700;font-display:swap;src:url('fonts/cormorant-garamond-italic.woff2') format('woff2')}
@font-face{font-family:'Jost';font-style:normal;font-weight:100 900;font-display:swap;src:url('fonts/jost.woff2') format('woff2')}

/* ---- Tokens ---- */
:root {
  --paper:      #f5f1e8;   /* warm off-white */
  --paper-2:    #efe8da;   /* deeper paper — alt sections / cards */
  --paper-3:    #e8e0cf;   /* hairline-card hover */
  --ink:        #201e1a;   /* deep anthracite */
  --ink-2:      #34302a;
  --ink-soft:   #6c655a;   /* muted body */
  --line:       rgba(32,30,26,.14);
  --line-2:     rgba(32,30,26,.28);

  /* champagne / gold accent (tweakable) */
  --accent:     #d4c19c;
  --accent-deep: #b39b66;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 5vw, 6rem);

  --ease: cubic-bezier(.22,.61,.36,1);

  /* type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--ink); }

/* ---- Type helpers ---- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: .9em;
}
.eyebrow::before {
  content: "";
  width: 2.4em;
  height: 1px;
  background: var(--accent-deep);
  opacity: .8;
}
.eyebrow.center::after {
  content: "";
  width: 2.4em;
  height: 1px;
  background: var(--accent-deep);
  opacity: .8;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.01em; }

.section-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 500;
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 400; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
/* Anchor jumps: pull the section's own big padding partly behind the fixed nav,
   so the heading lands ~50px under the bar and the previous section never peeks. */
section[id] { scroll-margin-top: calc(120px - clamp(3.7rem, 7.3vw, 6.7rem)); }
#hero { scroll-margin-top: 0; }
.section-pad { padding-block: clamp(3.7rem, 7.3vw, 6.7rem); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  --p: 0; /* scroll progress 0..1, set by JS for a smooth scroll-linked reveal */
  padding: calc(1.5rem - var(--p) * 0.45rem) var(--gutter);
}
/* frosted glass: readable from the first pixel, densifies to solid paper on scroll */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) calc(58% + var(--p) * 42%), transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) calc(var(--p) * 100%), transparent);
  pointer-events: none;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.wordmark span { color: var(--accent-deep); }
.wordmark-logo { display: block; width: clamp(128px, 13vw, 160px); height: auto; stroke: currentColor; stroke-width: 0.35; stroke-linejoin: round; paint-order: stroke fill; }

.nav-links { display: flex; gap: 2.1rem; align-items: center; }
.nav-links a {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 400; color: var(--ink-2); white-space: nowrap;
  position: relative; padding-block: .3rem;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent-deep); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: .15rem;
  font-size: .74rem; letter-spacing: .1em; font-weight: 400;
  color: var(--ink-soft);
}
.lang-toggle button {
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink-soft);
  padding: .2rem .15rem; letter-spacing: .1em; transition: color .3s var(--ease);
}
.lang-toggle button.active { color: var(--ink); }
.lang-toggle .sep { opacity: .4; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--sans); font-weight: 400;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .95em 1.6em; cursor: pointer; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(.3em); }

.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn-sm { padding: .75em 1.25em; font-size: .72rem; }

/* mobile menu trigger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: 0; padding: .4rem;
}
.nav-burger span { width: 26px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  gap: 1.2rem;
  opacity: 0; pointer-events: none; transform: translateY(-2%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); font-weight: 500;
  border-bottom: 1px solid var(--line); padding-block: .5rem;
}
.mobile-menu a .idx { font-family: var(--sans); font-size: .8rem; color: var(--accent-deep); letter-spacing: .2em; margin-right: 1rem; vertical-align: super; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1fr; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
  min-height: 100svh;
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 10rem var(--gutter) 4rem;
  position: relative; z-index: 2;
}
.hero-eyebrow { margin-bottom: 2rem; }

/* hero wordmark logo (MAGICH) */
.hero-logo { display: block; color: var(--ink); margin-bottom: 2.4rem; }
.hero-logo svg { display: block; width: clamp(220px, 30vw, 360px); height: auto; }
@media (max-width: 980px){ .hero-logo svg { width: clamp(200px, 52vw, 300px); } }
.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 7.2rem);
  font-weight: 500; line-height: .98;
  letter-spacing: -.015em;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--ink); position: relative; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero h1 .line > span { display: inline-block; }
.hero-sub { margin-top: 2rem; max-width: 40ch; }
.hero-actions { margin-top: 2.8rem; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: auto; padding-top: 3rem;
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .6em; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-deep); }

.hero-visual { position: relative; overflow: hidden; }
/* Ultrawide fix: cap hero image column width relative to viewport height so the portrait never gets over-cropped */
@media (min-width: 1500px){ .hero-grid { grid-template-columns: 1fr minmax(0, calc(100svh * .75)); } }

.hero-visual image-slot { width: 100%; height: 100%; }
.hero-visual .vline {
  position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); z-index: 3;
}

/* scroll cue */
.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 1.8rem; z-index: 4;
  display: flex; align-items: center; gap: .8rem;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}
.scroll-cue .bar { width: 46px; height: 1px; background: var(--ink-soft); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent-deep); transform: translateX(-100%); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateX(-100%)} 50%{transform:translateX(0)} 100%{transform:translateX(100%)} }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-portrait { position: relative; }
.about-portrait image-slot { width: 100%; height: clamp(420px, 56vw, 660px); }
.about-portrait .tag {
  position: absolute; bottom: -1px; left: -1px; background: var(--paper);
  padding: 1rem 1.4rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.about-copy .section-title { margin: 1.5rem 0 1.8rem; }
.about-copy p + p { margin-top: 1.2rem; }
.about-sign {
  margin-top: 2.6rem; display: flex; gap: 3rem; flex-wrap: wrap; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.about-sign .stat .n { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 500; }
.about-sign .stat .n em { color: var(--accent-deep); font-style: italic; }
.about-sign .stat .l { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem; }

/* ============================================================
   EXPERIENCES
   ============================================================ */
.exp { background: var(--paper-2); }
.exp-head { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-bottom: clamp(3rem, 6vw, 5rem); }
.exp-head .exp-intro { display: flex; flex-direction: column; gap: 1.1rem; }
.exp-head .exp-intro .lead { margin: 0; max-width: 54ch; }
@media (max-width: 820px){ .exp-head { grid-template-columns: 1fr; } }

.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.exp-card {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper-2); padding: clamp(2rem, 3.2vw, 3rem);
  display: flex; flex-direction: column; min-height: 320px;
  position: relative; cursor: pointer;
  transition: background .5s var(--ease);
}
.exp-card:hover { background: var(--paper-3); }
.exp-card .num {
  font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--accent-deep);
  letter-spacing: .1em; margin-bottom: 1.6rem; font-weight: 500; line-height: 1;
}
.exp-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.15rem); font-weight: 500; }
.exp-card .desc { margin-top: 1rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 42ch; flex: 1; }
.exp-card .format {
  margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.exp-card .format .fmt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.exp-card .format .go {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .5em;
  opacity: 0; transform: translateX(-.4em); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.exp-card:hover .format .go { opacity: 1; transform: none; }
/* last card spans full width when odd */
.exp-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(2rem,5vw,5rem); min-height: 220px; }
.exp-card.wide .desc { margin-top: 0; }
.exp-card.wide .body { flex: 1; }
.exp-card.wide .format { border-top: 0; padding-top: 0; margin-top: 0; flex-direction: column; align-items: flex-end; gap: 1rem; min-width: 200px; }
@media (max-width: 900px){
  .exp-grid { grid-template-columns: 1fr; }
  .exp-card.wide { flex-direction: column; align-items: flex-start; }
  .exp-card.wide .format { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; padding-top: 1.2rem; border-top: 1px solid var(--line); }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-head { text-align: center; max-width: 760px; margin: 0 auto clamp(3.5rem, 7vw, 5.5rem); display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.process-head .lead { max-width: 34ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 5vw, 5rem); }
.step { text-align: center; display: flex; flex-direction: column; align-items: center; }
.step .dot {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(3rem, 4.5vw, 4rem); line-height: 1; color: var(--accent-deep);
  margin-bottom: 1.2rem; transition: transform .5s var(--ease), color .5s var(--ease);
}
.step:hover .dot { transform: translateY(-4px); color: var(--ink); }
.step h3 { font-size: 1.7rem; font-weight: 500; }
.step p { margin-top: .8rem; color: var(--ink-soft); font-size: 1rem; max-width: 30ch; }
@media (max-width: 720px){ .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--paper-2); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem,5vw,4rem); flex-wrap: wrap; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.6rem, 1.2vw, 1rem);
  grid-auto-flow: dense;
}
.gallery-grid image-slot { width: 100%; }
.g-tall { grid-column: span 2; grid-row: span 2; }
.g-tall image-slot { height: 100%; min-height: 420px; }
.g-wide { grid-column: span 4; }
.g-wide image-slot { height: clamp(200px, 26vw, 300px); }
.g-sq { grid-column: span 2; }
.g-sq image-slot { height: clamp(200px, 26vw, 300px); }
.g-feature image-slot { height: clamp(300px, 40vw, 460px); }
.g-tallmatch { grid-row: span 2; }
.g-tallmatch image-slot { height: 100%; min-height: 420px; }
@media (max-width: 820px){ .g-tallmatch { grid-row: auto; } .g-tallmatch image-slot { min-height: 0; height: clamp(180px, 40vw, 260px); } }
@media (max-width: 820px){
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-tall, .g-wide, .g-sq { grid-column: span 1; grid-row: auto; }
  .g-tall image-slot { min-height: 0; height: clamp(180px,40vw,260px); }
}

/* ============================================================
   MAISONS
   ============================================================ */
.maisons-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.maisons-head .lead { margin-top: 1.2rem; }
.maisons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.maison { display: flex; flex-direction: column; }

/* slideshow */
.maison-slider { position: relative; overflow: hidden; }
.maison-slides { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.maison-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.maison-slide.is-active { opacity: 1; pointer-events: auto; }
.maison-slide image-slot { width: 100%; height: 100%; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1; padding-bottom: 3px;
  color: var(--ink); background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease), background .3s var(--ease); z-index: 4;
}
.maison-slider:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow.prev { left: .7rem; } .slider-arrow.next { right: .7rem; }
.slider-arrow:hover { background: var(--paper); }
.slider-dots { position: absolute; bottom: .8rem; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; z-index: 4; }
.slider-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: color-mix(in srgb, var(--paper) 50%, transparent); box-shadow: 0 0 0 1px rgba(32,30,26,.15);
  transition: background .3s var(--ease), width .3s var(--ease);
}
.slider-dots button.active { background: var(--paper); width: 18px; border-radius: 100px; }

/* logo cover — sits over the first photo (which shows through the 50% veil)
   and slides aside when the slideshow starts */
.maison-cover {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  cursor: pointer;
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
.maison-cover.out { transform: translateX(-102%); opacity: 0; pointer-events: none; }
/* composite cover image (logo + veil baked into one PNG) — full bleed, no extra veil */
.maison-cover--img { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.maison-cover-logo { height: clamp(58px, 7vw, 82px); width: auto; max-width: 70%; object-fit: contain; display: block; }
.maison-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.maison-desc { color: var(--ink-soft); font-size: 1rem; max-width: 42ch; margin-top: 1.4rem; }
.maison-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 1rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); }
.maison-link .arrow { transition: transform .35s var(--ease); }
.maison-link:hover .arrow { transform: translateX(.35em); }
@media (max-width: 720px){ .maisons-grid { grid-template-columns: 1fr; } }

/* Touch-Scrollen über Bildern erlauben (mobile) */
image-slot::part(image) { touch-action: pan-y pinch-zoom; }

/* ============================================================
   CLIENTS (logo wall)
   ============================================================ */
.clients-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.clients-head .eyebrow.center::after, .clients-head .lead { } /* hooks */
.clients-head .lead { max-width: 46ch; }
.clients-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.client {
  background: var(--paper); min-height: clamp(120px, 13vw, 150px);
  display: grid; place-items: center; padding: 1.6rem 1.4rem;
}
.client-logo {
  display: block; width: auto; max-width: 82%;
  height: var(--logo-h, clamp(36px, 4.4vw, 48px));
  object-fit: contain; object-position: center;
  opacity: .9;
}
/* per-logo optical balancing */
.client-logo.l-bluelobster { --logo-h: clamp(24px, 2.8vw, 31px); }
.client-logo.l-degussa     { --logo-h: clamp(32px, 3.9vw, 43px); }
.client-logo.l-impari      { --logo-h: clamp(30px, 3.7vw, 40px); }
.client-logo.l-vbki        { --logo-h: clamp(44px, 5.2vw, 58px); }
.client-logo.l-vorona      { --logo-h: clamp(58px, 6.8vw, 78px); }
.client-logo.l-qog         { --logo-h: clamp(34px, 4.2vw, 46px); }
.client-logo.l-bba         { --logo-h: clamp(42px, 5.0vw, 56px); }
.client-logo.l-asisi       { --logo-h: clamp(26px, 3.1vw, 34px); }
.client-logo.l-hiphop      { --logo-h: clamp(26px, 3.1vw, 34px); }
/* legacy text wordmark (fallback) */
.client-wm {
  font-family: var(--sans); font-weight: 400;
  font-size: .92rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.3; text-wrap: balance;
  transition: color .4s var(--ease);
}
.client:hover .client-wm { color: var(--ink); }
/* Aufklapp-Button für Kunden-Logos (nur mobil sichtbar) */
.clients-toggle-wrap { display: none; text-align: center; margin-top: 1.4rem; }
.clients-toggle { appearance: none; background: none; border: 1px solid var(--line-2); padding: .85rem 1.6rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; font-family: inherit; }
.clients-toggle .less { display: none; }
.clients-toggle.open .less { display: inline; }
.clients-toggle.open .more { display: none; }
@media (max-width: 760px){
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client:has(.l-vorona) { display: none; }
  .clients-grid.collapsed .client:nth-child(n+6) { display: none; }
  .clients-toggle-wrap { display: block; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.contact-copy .section-title { margin: 1.4rem 0 1.8rem; }
.contact-channels { margin-top: 2.6rem; display: flex; flex-direction: column; }
.contact-channels a, .contact-channels .chan {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0; border-top: 1px solid var(--line);
  transition: color .3s var(--ease);
}
.contact-channels a:last-child { border-bottom: 1px solid var(--line); }
.contact-channels .ck { display: inline-flex; align-items: center; gap: .7rem; }
.contact-channels .ck svg { width: 17px; height: 17px; color: var(--accent-deep); flex: none; }
.contact-channels .k { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.contact-channels .v { font-family: var(--serif); font-size: 1.35rem; }
.contact-channels a:hover .v { color: var(--accent-deep); }

/* form */
.form { display: flex; flex-direction: column; gap: 1.6rem; }
.field { position: relative; display: flex; flex-direction: column; }
.field label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: .7rem;
}
.field input, .field textarea {
  font-family: var(--sans); font-weight: 300; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: .7rem 0; transition: border-color .4s var(--ease);
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 60%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); }
.field.invalid input, .field.invalid textarea { border-color: #b3503e; }
.field .err { font-size: .74rem; color: #b3503e; margin-top: .5rem; height: 0; overflow: hidden; opacity: 0; transition: opacity .3s, height .3s; }
.field.invalid .err { height: 1.2em; opacity: 1; }
.form-foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: .6rem; }
.form-note { font-size: .8rem; color: var(--ink-soft); }

.form-success {
  display: none; flex-direction: column; gap: 1rem; align-items: flex-start;
  padding: 2.5rem 0;
}
.form-success.show { display: flex; animation: rise .7s var(--ease) both; }
.form-success .mark { width: 3rem; height: 3rem; border: 1px solid var(--accent-deep); border-radius: 50%; display: grid; place-items: center; color: var(--accent-deep); }
.form-success h3 { font-size: 2rem; font-weight: 500; }
.form-success p { color: var(--ink-soft); max-width: 38ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3rem,6vw,4.5rem); }
.footer .wordmark { font-size: 2.2rem; }
.footer-meta { text-align: right; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); line-height: 2; white-space: nowrap; }
.footer-meta a:hover { color: var(--ink); }
@media (max-width: 760px){
  .footer-grid { flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
  .footer-meta { text-align: center; white-space: normal; }
}

/* ============================================================
   IMAGE SLOT theming
   ============================================================ */
image-slot::part(frame) { background: var(--paper-3); }
image-slot::part(ring) { border-color: var(--line-2); border-width: 1px; }
.hero-visual image-slot::part(frame) { background: var(--paper-2); }

/* ============================================================
   REVEAL animations
   ============================================================ */
/* Reveals are progressive enhancement: content is VISIBLE by default so it can
   never be hidden if JS/observer timing fails (e.g. in the bundled file). The
   animation is only armed once JS adds .reveal-on to <html>. */
.reveal { opacity: 1; transform: none; }
.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* Hero entrance — pure CSS animation so content is never stuck hidden by JS */
.hero h1 .line > span { transform: translateY(110%); opacity: 0; animation: heroRise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(1) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .28s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .41s; }
@keyframes heroRise { to { transform: none; opacity: 1; } }
.hero-fade { opacity: 0; transform: translateY(20px); animation: heroFade 1s var(--ease) .55s forwards; }
@keyframes heroFade { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .line > span, .hero-fade { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .scroll-cue .bar::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  /* einheitlicher, kompakterer Abschnitts-Rhythmus auf mobil */
  .section-pad { padding-block: 3.5rem; }
  section[id] { scroll-margin-top: calc(96px - 3.5rem); }
  .about-sign { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; order: -1; }
  .hero-visual image-slot { height: auto; aspect-ratio: 696 / 1053; max-height: 82svh; width: 100%; display: block; }
  .hero-copy { padding-top: 2.8rem; padding-bottom: 3.5rem; min-height: auto; }
  .hero { min-height: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-burger { display: flex; }
  .nav-right { gap: 1rem; }
}

@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 720px) { .footer .wordmark span { display: none; } }
