/* ===== Flinnys – Styles ===== */
:root {
  --bg: #0d0d0d;
  --bg-2: #161514;
  --line: #2c2925;
  --text: #f4efe6;
  --muted: #b9b2a6;
  --accent: #E8B04B;   /* Akzentfarbe hier ändern */
  --display: 'Anton', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
  --ip: 0; /* intro scroll progress, 0..1, set by script.js */
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); overflow-x: hidden; }
a { color: var(--accent); }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; }
h2 { font-size: clamp(48px, 6vw, 80px); line-height: 1; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.center { text-align: center; align-items: center; }
.section { padding-top: 120px; padding-bottom: 60px; display: flex; flex-direction: column; gap: 40px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Film-grain texture, fixed over everything */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor-follow glow (desktop, fine pointer only) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,176,75,.16), transparent 68%);
  transform: translate(-9999px, -9999px) translate(-50%, -50%);
  pointer-events: none; z-index: 5; mix-blend-mode: screen; opacity: 0; transition: opacity .4s var(--ease);
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ===== Intro gate: scroll-scrubbed 3D scissors ===== */
.intro-pin { position: relative; height: 240vh; }
.intro-stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
  perspective: 1800px; z-index: 100; pointer-events: none;
  /* stays fully opaque through the whole pinned scroll (ip 0→1); once it un-sticks
     and has to physically scroll its own height away, it fades out over that same
     motion via --exit instead of sitting there already-invisible for a blank stretch */
  opacity: clamp(0, calc(1 - var(--exit, 0) * 1.4), 1);
}
.intro-bg {
  position: absolute; inset: 0; background:
    radial-gradient(circle at 72% 50%, rgba(232,176,75,.12), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(47,91,234,.08), transparent 50%),
    var(--bg);
}
.intro-content {
  position: absolute; inset: 0;
  transform: translateY(calc(var(--ip) * var(--ip) * 120px));
  will-change: transform;
}
.intro-wordmark {
  position: absolute; left: 7vw; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; text-align: left; z-index: 10; max-width: 50vw;
  opacity: clamp(0, calc((.9 - var(--ip)) * 6.67), 1);
  will-change: opacity;
}
.intro-wordmark > * { transform: scale(calc(1 - var(--ip) * .97)); transform-origin: left center; will-change: transform; }
.iw-line { font-family: var(--display); font-size: clamp(56px, 10vw, 150px); line-height: .9; letter-spacing: 2px; color: var(--text); text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.6); }
.iw-sub { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); }
.intro-hint {
  position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
  opacity: clamp(0, calc(1 - var(--ip) * 4), 1);
  animation: hint-bob 2.4s ease-in-out infinite;
}

.scissor-rig {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.55));
  overflow: visible; /* let the rotating rings swing past the photo's own frame without being clipped */
}
.blade-layer {
  transform-origin: 774.4px 342.72px;
  will-change: transform;
}
.blade-top { transform: rotateZ(calc(var(--ip) * -17deg)); }
.blade-bottom { transform: rotateZ(calc(var(--ip) * 17deg)); }
.ring-top { transform: rotateZ(calc(var(--ip) * 10.2deg)); }
.ring-bottom { transform: rotateZ(calc(var(--ip) * -10.2deg)); }
@media (pointer: fine) {
  .blade-layer { transition: transform .1s linear; }
}

@keyframes hint-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

body.reduced-motion .intro-pin { height: auto; }
body.reduced-motion .intro-stage { position: relative; height: 72vh; }
body.reduced-motion .intro-content,
body.reduced-motion .intro-wordmark { opacity: 1 !important; transform: none !important; filter: none !important; }
body.reduced-motion .intro-hint { display: none; }
body.reduced-motion .hero { margin-top: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .3s var(--ease), background .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { color: var(--bg); background: #f3c66d; }
.btn-ghost { border: 1.5px solid #3a3631; color: var(--text); font-weight: 600; }
.btn-sm { min-height: 40px; padding: 10px 20px; font-size: 14px; }

/* Header: fixed, fades/blurs in as intro closes */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  /* fades in only after .intro-stage (above, z-index 100) has itself faded out via --exit,
     so the two never overlap (that overlap used to show as a soft dark smudge) */
  opacity: clamp(0, calc((var(--exit, 0) - .7) * 3.34), 1);
  pointer-events: none;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
body.nav-ready .site-header { pointer-events: auto; background: rgba(13,13,13,.6); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,.07); }
body.reduced-motion .site-header { opacity: 1; pointer-events: auto; }
.nav { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--display); font-size: 30px; letter-spacing: 2px; color: var(--text); text-decoration: none; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-weight: 500; font-size: 15px; }
.nav nav a:not(.btn) { color: #cfc8bc; text-decoration: none; position: relative; }
.nav nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent); transition: right .3s var(--ease); }
.nav nav a:not(.btn):hover { color: var(--accent); }
.nav nav a:not(.btn):hover::after { right: 0; }

/* Hero */
main { position: relative; }
.hero { padding-top: calc(var(--header-h) + 50px); padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(64px, 9vw, 128px); line-height: .92; letter-spacing: 1px; display: flex; flex-direction: column; }
.lead { margin: 0; max-width: 460px; font-size: 19px; line-height: 1.6; color: var(--muted); }

/* Hero family illustration */
.hero-family { flex: 1 1 280px; min-width: 200px; display: flex; align-items: center; justify-content: center; }
.hero-family img { width: 100%; max-width: 360px; height: auto; display: block; animation: hero-family-float 7s ease-in-out infinite; }
@keyframes hero-family-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
body.reduced-motion .hero-family img { animation: none; }

/* Kinetic entrance for hero text */
.kinetic, .kinetic-line { opacity: 0; transform: translateY(26px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d) * .09s + .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }
body.reduced-motion .kinetic, body.reduced-motion .kinetic-line { opacity: 1; transform: none; animation: none; }

[data-tilt] { transition: transform .5s var(--ease); }

/* Marquee */
.marquee { background: var(--accent); color: var(--bg); transform: rotate(-2deg); width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; white-space: nowrap; width: max-content; font-family: var(--display); font-size: 34px; letter-spacing: 2px; animation: marquee 22s linear infinite; }
.marquee-track span { padding-right: 40px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
body.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

/* Services */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.section-head p { margin: 0; max-width: 380px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; perspective: 1600px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; transform: rotateX(8deg) rotateY(-6deg); box-shadow: 0 30px 50px rgba(0,0,0,.45); transition: transform .5s var(--ease), border-color .4s var(--ease); transform-style: preserve-3d; }
.card:hover { border-color: var(--accent); }
.icon { width: 52px; height: 52px; border-radius: 14px; background: #24221f; display: flex; align-items: center; justify-content: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.card h3 { font-size: 30px; letter-spacing: .5px; }
.card p { margin: 0; color: #a8a094; font-size: 15px; line-height: 1.55; flex-grow: 1; }
/* Salon */
.split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; padding-bottom: 100px; }
.salon-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* Contact */
.contact { border-top: 1px solid #24221f; background: #121110; }
.contact-grid { padding-top: 90px; padding-bottom: 90px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.contact-main { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.contact-col { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.6; color: #cfc8bc; }
.label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.legal { padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #8f877b; border-top: 1px solid #24221f; }
.legal a { color: #8f877b; }

/* Animations */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Full-bleed photo chapters (Dapper Dave's style) ===== */
.photo-chapter { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.photo-chapter .chapter-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.06); animation: chapter-zoom 16s ease-out forwards; }
.photo-chapter .chapter-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.05) 0%, rgba(13,13,13,.35) 45%, rgba(13,13,13,.94) 100%); }
.chapter-content { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px 100px; }
.chapter-content h2 { font-size: clamp(52px, 9vw, 128px); line-height: .94; max-width: 820px; }
.chapter-content p { margin: 18px 0 0; max-width: 460px; color: var(--muted); font-size: 18px; line-height: 1.6; }
@keyframes chapter-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
body.reduced-motion .photo-chapter .chapter-bg { animation: none; transform: none; }

/* Mobile */
@media (max-width: 760px) {
  :root { --header-h: 184px; } /* nav wraps to two rows on narrow screens, taller than desktop */
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav nav { gap: 16px; }
  .intro-pin { height: 190vh; }
  .intro-wordmark { left: 6vw; max-width: 80vw; }
  .photo-chapter { min-height: 80vh; }

  /* Family illustration sits behind the top of the headline instead of beside it */
  .hero { flex-wrap: nowrap; align-items: flex-start; gap: 16px; position: relative; }
  .hero-copy { flex: 1 1 100%; gap: 18px; position: relative; z-index: 2; }
  .hero h1 { font-size: clamp(34px, 11vw, 128px); }
  .lead { font-size: 15px; }
  .hero-family {
    position: absolute; top: calc(var(--header-h) + 6px); right: -10px; z-index: 1;
    width: 78%; min-width: 0; flex: none; justify-content: flex-end;
  }
  .hero-family img { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
