/* ==========================================================================
   FLORIS LE — Portfolio
   Dark cinematic theme · shared styles for home.html + about.html
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #121211;
  --bg-3: #1a1a19;
  --fg: #ecebe6;
  --muted: #8a8983;
  --dim: #55544f;
  --line: rgba(236, 235, 230, 0.12);
  --accent: #0fa3b1;
  --error: #f0716b;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;

  --pad: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* Lenis (inlined from lenis@1.3.26/dist/lenis.css — saves a render-blocking request) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: #0a0a0a; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Sections / main that only receive focus from in-page links and the skip link */
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: #0a0a0a; font-size: 13px; font-weight: 500;
  transform: translateY(calc(-100% - 24px));
}
.skip:focus { transform: none; }

/* ── Small type helpers ─────────────────────────────────────────────────── */
.label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.label--num::before { content: '('; }
.label--num::after { content: ')'; }

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); vertical-align: middle;
}
.dot--pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Hidden until SplitText has measured lines (prevents a flash of unstyled text) */
.js [data-split], .js [data-fill] { visibility: hidden; }
.line-mask { padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ── Film grain ─────────────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: -100%; z-index: 90; pointer-events: none;
  width: 300%; height: 300%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.075;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -8%); }
  60% { transform: translate(-9%, 2%); }
  80% { transform: translate(7%, 7%); }
  100% { transform: translate(-2%, -5%); }
}

/* ── Loader / page curtain ──────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  pointer-events: none;
}
.no-js .loader { display: none; }
.loader__top { display: flex; justify-content: space-between; }
.loader__bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.loader__name {
  font-size: clamp(44px, 9vw, 150px); font-weight: 500; letter-spacing: -0.055em; line-height: 0.9;
  overflow: hidden;
}
.loader__name span { display: inline-block; }
.loader__count {
  font-size: clamp(44px, 9vw, 150px); font-weight: 300; letter-spacing: -0.05em; line-height: 0.9;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.loader__bar {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
}
.is-return .loader__name,
.is-return .loader__count,
.is-return .loader__top,
.is-return .loader__bar { visibility: hidden; }
.loader__mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0;
}

/* ── Custom cursor ──────────────────────────────────────────────────────── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 0; height: 0;
}
.cursor__ring {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(236, 235, 230, 0.55); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
              background 0.35s ease, border-color 0.35s ease, opacity 0.3s ease;
}
.cursor__label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: #0a0a0a; opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.45s var(--ease);
  white-space: nowrap;
}
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--fg); border-color: var(--fg); }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-hidden .cursor__ring { opacity: 0; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  mix-blend-mode: difference; color: #fff;
  transition: transform 0.7s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-hidden:focus-within { transform: none; } /* tabbing back into the hidden nav brings it back */
.nav__brand { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 6px; padding: 10px 0; margin: -10px 0; }
.nav__brand sup { font-size: 10px; font-weight: 500; opacity: 0.6; }
.nav__links { display: flex; gap: 36px; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.nav__clock { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* Rolling text link: text slides up, a copy slides in from below */
.roll {
  position: relative; display: inline-flex; overflow: hidden;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.2;
}
.roll span { display: block; transition: transform 0.6s var(--ease); }
.roll span + span { position: absolute; left: 0; top: 0; transform: translateY(105%); }
/* Hover effects only for real pointers — on touch screens :hover sticks after a tap */
@media (hover: hover) {
  .roll:hover span:first-child { transform: translateY(-105%); }
  .roll:hover span + span { transform: translateY(0); }
}
.roll.is-active::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
}

.nav__menu-btn { display: none; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--pad) calc(var(--pad) + 10px);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; gap: 4px; margin-bottom: 48px; }
.menu__link { font-size: clamp(48px, 15vw, 96px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; overflow: hidden; }
.menu__link span { display: block; }
.menu__link em { color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }

@media (max-width: 767px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__clock, .nav__cta { display: none; }
  .nav__menu-btn { display: block; padding: 12px; margin: -12px; } /* 44px tap target, same look */
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-circle {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: clamp(140px, 13vw, 200px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: #0a0a0a;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  overflow: hidden; isolation: isolate;
}
.btn-circle::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--fg); transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) { .btn-circle:hover::before { transform: translateY(0); } }
.btn-circle__inner { display: inline-flex; align-items: center; gap: 8px; }

.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-line svg { transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .btn-line:hover { background: var(--fg); color: #0a0a0a; border-color: var(--fg); }
  .btn-line:hover svg { transform: rotate(-45deg); }
}

.icon { width: 1em; height: 1em; flex: none; }

/* ── Shared section scaffolding ─────────────────────────────────────────── */
.section { padding: clamp(96px, 14vw, 200px) var(--pad); position: relative; }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.h-display {
  font-size: clamp(52px, 10.5vw, 196px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9;
  margin: 0;
}
.h-xl {
  font-size: clamp(44px, 7.4vw, 136px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.95;
  margin: 0;
}
.h-lg {
  font-size: clamp(34px, 4.6vw, 80px); font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  margin: 0;
}
.h-display em, .h-xl em, .h-lg em { letter-spacing: -0.02em; }

/* Big statement paragraph that "fills" while scrolling */
.statement {
  font-size: clamp(28px, 4vw, 64px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.08;
  margin: 0; max-width: 22ch;
}
.statement em { color: var(--accent); -webkit-text-stroke: 0.04em currentColor; paint-order: stroke fill; }

/* Image reveal + parallax */
.media { position: relative; overflow: hidden; background: var(--bg-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--parallax img { position: absolute; left: 0; top: -9%; height: 118%; }
/* Failed to load: fill the frame so the alt text isn't pushed out by the parallax offsets */
img.is-broken {
  position: static !important; width: 100% !important; height: 100% !important; transform: none !important;
  padding: 16px; font-size: 13px; color: var(--muted);
}

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 32px) 0;
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__group { display: inline-flex; align-items: center; }
.marquee__item {
  font-size: clamp(40px, 6.5vw, 112px); font-weight: 500; letter-spacing: -0.05em; line-height: 1;
  padding: 0 0.28em;
}
.marquee__item:nth-child(4n + 3) { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.marquee__star { width: clamp(22px, 3vw, 48px); height: auto; color: var(--accent); flex: none; }

/* ── Footer / contact ───────────────────────────────────────────────────── */
.footer { position: relative; overflow: hidden; }
.footer__cta {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px;
  padding: clamp(96px, 12vw, 180px) var(--pad) clamp(64px, 8vw, 120px);
}
.footer__cta > div > .label:first-child { display: block; margin-bottom: 28px; }
.footer__bottom {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer__bottom .label { display: block; margin-bottom: 8px; }
.footer__bottom a { display: inline-block; padding: 12px 0; margin: -12px 0; transition: color 0.2s ease; }
@media (hover: hover) { .footer__bottom a:hover { color: var(--accent); } }
.footer__bottom > :last-child { text-align: right; }
.footer__legal { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer__bottom .footer__legal a { padding: 4px 0; margin: -4px 0; } /* stacked on phones: tap areas must not overlap */
.footer__giant {
  display: flex; justify-content: space-between;
  font-size: 18.5vw; font-weight: 600; letter-spacing: -0.07em; line-height: 0.86;
  padding: 0.02em calc(var(--pad) * 0.4) 0.03em;
  overflow: hidden;
  color: var(--fg);
}
.footer__giant span { display: inline-block; }
.footer__giant .sp { width: 0.12em; }

@media (max-width: 767px) {
  .footer__cta { grid-template-columns: 1fr; }
  .footer__bottom { grid-template-columns: 1fr 1fr; }
  .footer__bottom > :last-child { text-align: left; }
  .footer__legal { justify-content: flex-start; }
}

/* ── Contact form (home footer) ─────────────────────────────────────────── */
.footer__cta.contact { display: block; }
.contact__head { margin-bottom: clamp(56px, 7vw, 112px); }
.contact__body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.contact__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact__aside p { margin: 0; color: var(--muted); font-size: 17px; max-width: 32ch; }
.contact__avail { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }

.cform { display: grid; gap: clamp(32px, 3.4vw, 48px); }
.cform[hidden], .cform__done[hidden] { display: none; }
.cform__trap { display: none; }
.cform__topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.cform__topics legend { padding: 0; margin-bottom: 16px; }
.cform__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--radio { position: relative; cursor: pointer; }
.chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip--radio:has(input:checked) { background: var(--fg); color: #0a0a0a; border-color: var(--fg); }
.chip--radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 3.4vw, 48px); }

.field { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.field .label, .cform__topics legend { display: flex; align-items: baseline; gap: 10px; }
.field__no { color: var(--accent); font-variant-numeric: tabular-nums; }
.field__req { color: var(--accent); margin-left: -6px; }
.field__ctl { position: relative; }
.field__input {
  display: block; width: 100%; margin: 0; padding: 4px 0 16px;
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--fg); font: inherit; font-size: clamp(20px, 1.9vw, 30px); letter-spacing: -0.03em; line-height: 1.3;
  outline: none; appearance: none;
}
.field__input::placeholder { color: #7a7973; opacity: 1; } /* 4.5:1 on --bg (--dim was 2.6:1) */
.field__input--area { resize: none; min-height: calc(2 * 1.3em + 20px); max-height: 40vh; overflow-y: auto; }
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--fg);
}
.field__line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--fg); transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease), background-color 0.3s ease;
}
.field:focus-within .field__line { transform: scaleX(1); }
.field.is-invalid .field__line { transform: scaleX(1); background: var(--error); }
.field__error { margin: 0; font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }

.cform__foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cform__note { margin: 0; font-size: 13px; color: var(--muted); max-width: 38ch; }
.cform__note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cform__status { margin: 12px 0 0; font-size: 14px; max-width: 44ch; }
.cform__status:empty { display: none; }
.cform__status.is-error { color: var(--error); }
.cform__status a { text-decoration: underline; text-underline-offset: 3px; }
.cform__submit {
  flex: none; width: auto; aspect-ratio: auto;
  padding: 22px 34px; border-radius: 14px; font-size: 15px;
}
.cform__submit::before { border-radius: inherit; }
.cform__submit .btn-circle__inner { gap: 12px; }
.cform__submit:disabled { cursor: progress; }
.cform__submit.is-sending .icon { visibility: hidden; }
.cform__submit.is-sending::after {
  content: ''; position: absolute; right: 34px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; border: 1.5px solid rgba(10, 10, 10, 0.25); border-top-color: #0a0a0a;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cform__done { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; outline: none; }
.cform__done .h-lg { margin: 0; max-width: 14ch; }

@media (max-width: 767px) {
  .contact__body, .cform__row { grid-template-columns: 1fr; }
  .cform__foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* ── Hero: full-bleed video in a camera viewfinder ──────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
.hero__zoom { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; }
/* iOS shows a play glyph when autoplay is blocked (e.g. Low Power Mode) — keep the poster clean */
.hero__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero__video::-webkit-media-controls { display: none !important; }
/* Scrim: nav + foot readable at the edges. Kept light in the middle: the negative words invert
   what's behind them, and every bit of darkening there bleaches their colours. */
.hero__frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.15) 30%, rgba(10,10,10,0.15) 62%, rgba(10,10,10,0.7) 100%);
}
/* Centred without a transform: a transform would isolate the title and switch off the negative words' blend */
.hero__title {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  margin: 0; padding: 0 var(--pad);
  font-size: clamp(48px, 9.6vw, 184px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9;
  color: #fff; text-shadow: 0 2px 40px rgba(0,0,0,0.25);
  pointer-events: none;
}
/* Lines clip vertically only (mask for the intro), words can still fly out sideways */
.hero__line { display: block; overflow: visible clip; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.hero__w { display: inline-block; }
/* Negative words: the inverse of the footage behind them. Heavier strokes than the white words,
   inverted colour needs more surface to read (the serif only comes in one weight → hairline stroke). */
.hero__w--neg { color: #fff; mix-blend-mode: difference; text-shadow: none; }
em.hero__w--neg { -webkit-text-stroke: 0.022em currentColor; paint-order: stroke fill; }
span.hero__w--neg { font-weight: 600; }
.hero__line--2 { text-align: right; }
.hero__line--3 { padding-left: 14vw; }
.hero__line em { letter-spacing: -0.03em; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--pad);
  mix-blend-mode: difference; color: #fff;
}
.hero__foot .label { color: inherit; opacity: 0.75; }
.hero__toggle { align-self: center; padding: 12px 0; margin: -12px 0; transition: opacity 0.3s ease; }
.hero__toggle[hidden] { display: none; }
@media (hover: hover) { .hero__toggle:hover { opacity: 1; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue__line { position: relative; width: 1px; height: 44px; background: rgba(255,255,255,0.25); overflow: hidden; }
.scroll-cue__line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: #fff;
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

@media (max-width: 767px) {
  .hero__title { font-size: clamp(40px, 13vw, 72px); }
  .hero__line--3 { padding-left: 8vw; } /* 14vw clips the full stop of "verschwinden." on phones */
}

/* ── Intro statement ────────────────────────────────────────────────────── */
.intro { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.intro__side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.intro__body { display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }
@media (max-width: 767px) { .intro { grid-template-columns: 1fr; } }

/* ── Horizontal gallery ─────────────────────────────────────────────────── */
.hs { position: relative; overflow: hidden; }
.hs__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hs__track {
  display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.hs__intro {
  flex: none; width: clamp(280px, 30vw, 520px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  height: var(--card-h);
  padding-right: clamp(16px, 4vw, 64px);
}
.hs__intro p { color: var(--muted); max-width: 30ch; margin: 0; }
.hs__nav { display: none; }
.hs { --card-h: min(64vh, 680px); }
.hcard { flex: none; margin: 0; width: min-content; } /* as wide as the photo, not the caption */
.hcard__media {
  height: var(--card-h); aspect-ratio: var(--ar, 0.5625);
  position: relative; overflow: hidden; background: var(--bg-3);
  cursor: pointer;
}
.hcard__media img {
  position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover;
  transition: filter 0.6s ease;
}
@media (hover: hover) { .hcard:hover .hcard__media img { filter: brightness(1.08); } }
.hcard__cap {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px;
  padding-top: 14px; font-size: 13px;
}
.hcard__cap > span { white-space: nowrap; }
.hcard__meta { margin-left: auto; } /* right-aligned; wraps below on narrow photos */
.hcard__no { color: var(--accent); font-variant-numeric: tabular-nums; }
.hcard__title { font-weight: 500; }
.hcard__meta { color: var(--muted); }
.hs__end {
  flex: none; height: var(--card-h); width: clamp(240px, 24vw, 400px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
  padding-left: clamp(16px, 3vw, 48px);
}
.hs__progress {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 32px; height: 1px; background: var(--line);
}
.hs__progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

@media (max-width: 767px) {
  .hs { --card-h: 62vh; }
  .hs__pin { height: auto; padding: 96px 0; }
  .hs__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 8px; }
  .hs__track::-webkit-scrollbar { display: none; }
  .hs__intro { width: 78vw; }
  .hcard, .hs__intro, .hs__end { scroll-snap-align: start; scroll-margin-left: var(--pad); }
  .hs__progress { display: none; }

  /* Swipe affordance: counter + progress + arrow buttons under the strip */
  .hs__nav {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
    padding: 20px var(--pad) 0;
  }
  .hs__count { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 4px; }
  .hs__count [data-hs-current] { color: var(--fg); }
  .hs__bar { position: relative; height: 1px; background: var(--line); overflow: hidden; }
  .hs__bar span {
    position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 20%);
    background: var(--fg); transform: translateX(var(--x, 0%));
  }
  .hs__btn {
    position: relative; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg);
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  }
  .hs__btn:disabled { opacity: 0.3; cursor: default; }
  .hs__btn--next { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
  .hs__btn--next.is-hint::after {
    content: ''; position: absolute; inset: -1px; border-radius: 50%;
    border: 1px solid var(--accent); animation: hs-ping 1.8s var(--ease) infinite;
  }
  .hs__btn--next.is-hint .icon { animation: hs-nudge 1.8s var(--ease-io) infinite; }
}
@keyframes hs-ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes hs-nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(4px); } }
.reduced .hs__pin { height: auto; padding: 120px 0; }
.reduced .hs__track { width: auto; overflow-x: auto; }

/* ── Services teaser (home) ─────────────────────────────────────────────── */
.offers { border-top: 1px solid var(--line); }
.offer {
  position: relative; display: grid; grid-template-columns: 80px 1fr 1fr 60px; align-items: center; gap: 24px;
  padding: clamp(24px, 3vw, 44px) 0; border-bottom: 1px solid var(--line);
  isolation: isolate; overflow: hidden;
}
.offer::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease);
}
.offer__no { color: var(--muted); font-size: 13px; transition: color 0.3s ease, transform 0.6s var(--ease); padding-left: 4px; }
.offer__title { font-size: clamp(32px, 5vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; transition: transform 0.6s var(--ease); }
.offer__desc { color: var(--muted); max-width: 36ch; transition: color 0.3s ease; }
.offer__arrow { justify-self: end; width: 36px; height: 36px; margin-right: 8px; transition: transform 0.6s var(--ease); }
.offer__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.offer__link {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg); font-size: 13px; font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.offer__link .icon { transition: transform 0.5s var(--ease); }
@media (hover: hover) {
  .offer:hover::before { transform: scaleY(1); }
  .offer:hover { color: #0a0a0a; }
  .offer:hover .offer__desc, .offer:hover .offer__no { color: #0a0a0a; }
  .offer:hover .offer__title { transform: translateX(16px); }
  .offer:hover .offer__arrow { transform: rotate(-45deg); }
  .offer:hover .offer__link { color: #0a0a0a; border-color: rgba(10, 10, 10, 0.25); }
  .offer .offer__link:hover { background: #0a0a0a; color: var(--fg); border-color: #0a0a0a; }
  .offer__link:hover .icon { transform: rotate(-45deg); }
}
@media (max-width: 767px) {
  .offer { grid-template-columns: 40px 1fr 32px; }
  .offer__desc { grid-column: 2 / 3; font-size: 14px; }
  .offer__arrow { grid-row: 1; grid-column: 3; width: 24px; height: 24px; }
}

/* ── Archive (list + grid) ──────────────────────────────────────────────── */
.archive__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.chip sup { font-size: 9px; margin-left: 3px; opacity: 0.7; }
@media (hover: hover) { .chip:hover { color: var(--fg); border-color: rgba(236,235,230,0.35); } }
.chip.is-active { background: var(--fg); color: #0a0a0a; border-color: var(--fg); }
.views { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; position: relative; }
.views button { position: relative; z-index: 1; font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 999px; color: var(--muted); transition: color 0.3s ease; }
.views button.is-active { color: #0a0a0a; }
.views__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--fg); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }

.alist { list-style: none; margin: 0; padding: 0; }
.alist__head, .arow {
  display: grid; grid-template-columns: 64px 2.2fr 1.2fr 1.2fr 80px; gap: 24px; align-items: center;
}
.alist__head { padding: 0 0 14px; }
.alist__head span:last-child, .arow__year { text-align: right; }
.arow {
  width: 100%; text-align: left; position: relative;
  padding: clamp(18px, 2vw, 26px) 0; border-top: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.35s ease;
}
.alist li:last-child .arow { border-bottom: 1px solid var(--line); }
.arow__title { font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.03em; color: var(--fg); transition: transform 0.6s var(--ease); }
.arow__no { font-size: 13px; font-variant-numeric: tabular-nums; }
.arow::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease);
}
.arow__title { transition: transform 0.6s var(--ease), color 0.35s ease; }
@media (hover: hover) {
  .arow:hover { color: var(--fg); }
  .arow:hover::after { transform: scaleX(1); transform-origin: left; }
  .arow:hover .arow__title { transform: translateX(14px); }
  .alist:hover .arow:not(:hover) .arow__title { color: var(--dim); }
}

.agrid { display: none; columns: 4 260px; column-gap: 16px; }
.agrid.is-active { display: block; }
.alist.is-hidden { display: none; }
.alist__head.is-hidden { display: none; }
.gcard { break-inside: avoid; margin: 0 0 28px; cursor: pointer; }
.gcard .media { border-radius: 2px; }
.gcard img { transition: transform 1s var(--ease); }
@media (hover: hover) { .gcard:hover img { transform: scale(1.04); } }
.gcard__cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; font-size: 13px; }
.gcard__cap span:last-child { color: var(--muted); }

@media (max-width: 767px) {
  .alist__head { display: none; }
  .arow { grid-template-columns: 36px 1fr auto; gap: 12px; }
  .arow__cat, .arow__loc { display: none; }
  .agrid { columns: 2; column-gap: 10px; }
  .gcard__cap { flex-direction: column; gap: 2px; }
}

/* Floating hover preview */
.preview {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: clamp(200px, 17vw, 300px); aspect-ratio: 3 / 4;
  margin: calc(clamp(200px, 17vw, 300px) * -0.66) 0 0 calc(clamp(200px, 17vw, 300px) * -0.5);
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 0.6s var(--ease);
}
.preview.is-visible { clip-path: inset(0 0 0 0); }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 180;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 22px var(--pad);
  visibility: hidden; opacity: 0;
}
.lb__top, .lb__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; }
.lb__count { font-variant-numeric: tabular-nums; color: var(--muted); }
.lb__stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 20px 0; touch-action: pan-y; }
.lb__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.lb__title { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.02em; }
.lb__info { color: var(--muted); }
.lb__nav { display: flex; gap: 8px; }
.lb__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) { .lb__btn:hover { background: var(--fg); color: #0a0a0a; border-color: var(--fg); } }
.lb__close { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.ahero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: end;
  padding: 140px var(--pad) clamp(40px, 5vw, 72px);
}
.ahero__text { display: flex; flex-direction: column; gap: 36px; padding-bottom: 8px; }
.ahero__sub { font-size: clamp(17px, 1.4vw, 21px); color: var(--muted); max-width: 34ch; margin: 0; }
.ahero__sub strong { color: var(--fg); font-weight: 500; }
.ahero__img { height: min(78vh, 60vw); width: 100%; margin: 0; }
.ahero__img img { object-position: 50% 30%; }
@media (max-width: 767px) {
  .ahero { grid-template-columns: 1fr; padding-top: 120px; }
  .ahero__img { height: 70vh; order: 2; }
}
/* Portrait tablets: two columns leave half the screen empty — stack like on phones */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .ahero { grid-template-columns: 1fr; }
  .ahero__img { height: 58vh; order: 2; }
}

.bio { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.bio__body { display: flex; flex-direction: column; gap: 48px; }
.bio__body .lead { color: var(--muted); font-size: clamp(18px, 1.6vw, 24px); max-width: 44ch; margin: 0; line-height: 1.45; }
@media (max-width: 767px) { .bio { grid-template-columns: 1fr; } }

.section--tight { padding-top: 0; }

/* Photo strip */
.strip { overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding-bottom: clamp(96px, 12vw, 180px); }
.strip__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.strip__row img { height: clamp(220px, 38vh, 420px); width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 3px; background: var(--bg-3); }
.strip__row img.is-wide { aspect-ratio: 16 / 9; }
.strip__cta { display: flex; justify-content: center; padding-top: 48px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 16px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 24px; }
.fact__value { font-size: clamp(64px, 11vw, 200px); font-weight: 500; letter-spacing: -0.07em; line-height: 0.85; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 32px; }
}

/* Stacking service cards */
.stack { display: flex; flex-direction: column; gap: 4vh; }
.scard {
  /* --h (card height, set in about.js): a card taller than the screen sticks by its bottom edge,
     so its lower part is seen before the next card slides over it. */
  position: sticky; top: calc(12vh + var(--i) * 28px);
  top: min(calc(12vh + var(--i) * 28px), calc(100svh - var(--h, 0px) - 24px));
  min-height: 74vh;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 3.4vw, 52px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
  transform-origin: 50% 0;
  overflow: hidden;
}
.scard__text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.scard__top { display: flex; justify-content: space-between; align-items: center; }
.scard__no { font-size: 13px; color: var(--accent); }
.scard__main { display: flex; flex-direction: column; gap: 22px; }
.scard__links { display: flex; flex-wrap: wrap; gap: 10px; }
.scard__text p { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 38ch; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 500; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.scard__visual { position: relative; border-radius: 12px; overflow: hidden; min-height: 320px; background: var(--bg-3); }
.scard__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; border-radius: inherit; }
@media (max-width: 767px) {
  .scard { grid-template-columns: 1fr; top: calc(10vh + var(--i) * 16px); top: min(calc(10vh + var(--i) * 16px), calc(100svh - var(--h, 0px) - 16px)); min-height: auto; }
  .scard__visual { min-height: 260px; }
}

/* Browser mockup (card 2) */
.mock {
  position: absolute; inset: 9% 8%;
  border-radius: 10px; overflow: hidden; background: #0a0a0a;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #161615; }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a38; }
.mock__url { margin-left: 10px; flex: 1; font-size: 10px; color: var(--muted); background: #0f0f0e; border-radius: 6px; padding: 4px 10px; }
.mock__page { position: relative; flex: 1; overflow: hidden; }
.mock__page img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.mock__h { position: absolute; left: 7%; bottom: 10%; font-size: clamp(22px, 3vw, 44px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; mix-blend-mode: difference; color: #fff; }
.mock__nav { position: absolute; left: 7%; right: 7%; top: 7%; display: flex; justify-content: space-between; font-size: 9px; font-weight: 600; color: #fff; mix-blend-mode: difference; }

/* Terminal mockup (card 3) */
.term {
  position: absolute; inset: 12% 9%;
  border-radius: 10px; background: #0c0c0b; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: clamp(11px, 1vw, 14px); line-height: 1.8;
  display: flex; flex-direction: column;
}
.term .mock__bar { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.06); }
.term__body { padding: 16px 18px; color: var(--muted); overflow: hidden; overflow-wrap: anywhere; }
.term__body b { color: var(--accent); font-weight: 400; }
@media (max-width: 767px) {
  .term { inset: 8% 5%; }                  /* more room so no terminal line gets clipped on small phones */
  .term__body { padding: 12px 14px; }
}
.term__body .ok { color: #7bd88f; }
.term__body .fg { color: var(--fg); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: var(--fg); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scard__visual--glow::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 10%;
  background: radial-gradient(circle, rgba(15,163,177,0.32), transparent 65%); filter: blur(20px);
}

/* ==========================================================================
   LEGAL (impressum.html, datenschutz.html) — static, no JS
   ========================================================================== */
.legal__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px var(--pad); }
.legal__back { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 0; margin: -12px 0; transition: color 0.2s ease; }
.legal { padding: clamp(56px, 9vw, 140px) var(--pad) clamp(96px, 12vw, 160px); }
.legal__head { display: flex; flex-direction: column; gap: 28px; margin-bottom: clamp(48px, 7vw, 96px); }
.legal__body { max-width: 68ch; }
.legal__body h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin: 56px 0 16px; scroll-margin-top: 24px; }
.legal__body h3 { font-size: 17px; font-weight: 500; margin: 28px 0 10px; }
.legal__body p, .legal__body li, .legal__body address { font-size: 16px; line-height: 1.65; color: var(--muted); }
.legal__body p, .legal__body address { margin: 0 0 14px; }
.legal__body address { font-style: normal; color: var(--fg); }
.legal__body ul, .legal__body ol { margin: 0 0 14px; padding-left: 1.2em; }
.legal__body li { margin-bottom: 6px; }
.legal__body strong { color: var(--fg); font-weight: 500; }
.legal__body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.legal__toc { columns: 2 260px; column-gap: 32px; }
.legal__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.legal__foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal__foot a { color: var(--fg); display: inline-block; padding: 12px 0; margin: -12px 0; transition: color 0.2s ease; }
@media (hover: hover) {
  .legal__back:hover, .legal__foot a:hover { color: var(--accent); }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-split], .js [data-fill] { visibility: visible; }
  .grain { display: none; }
}
