/* ============================================================
   Civara — emotional afro house for the dreamers
   Editorial one-pager. Self-hosted fonts, no external requests.
   ============================================================ */

/* ---------- Self-hosted fonts (latin subset, GDPR-friendly) ---------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrumentserif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrumentserif-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/archivo-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/archivo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/archivo-800.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --paper: #ECE6D8;
  --ink: #1A1613;
  --accent: #DC4632;
  --accent-dark: #C73A2A;
  --muted: #8A7E6C;
  --muted-2: #3A332C;
  --muted-3: #5C5346;
  --line: rgba(26, 22, 19, 0.25);
  --line-mid: rgba(26, 22, 19, 0.40);
  --line-strong: rgba(26, 22, 19, 0.55);
  --line-light: rgba(236, 230, 216, 0.30);
  --maxw: 1320px;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body {
  font-family: var(--sans);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

.page { position: relative; background: var(--paper); }

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

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }
section { scroll-margin-top: 24px; }

/* ---------- Film grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.13; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Keyframes ---------- */
@keyframes civ-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes civ-fl1 { 0%,100% { transform: translateY(0) scale(1.01) rotate(0deg); } 50% { transform: translateY(-12px) scale(1.05) rotate(0.7deg); } }
@keyframes civ-fl2 { 0%,100% { transform: translateY(0) scale(1.02) rotate(0deg); } 50% { transform: translateY(10px) scale(1.06) rotate(-0.6deg); } }
@keyframes civ-fl3 { 0%,100% { transform: translateY(0) scale(1.0) rotate(0deg); } 50% { transform: translateY(-7px) scale(1.045) rotate(0.4deg); } }
@keyframes civ-glow { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }

/* ---------- Shared eyebrow / index labels ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600;
}
.section-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.section-head__rule { flex: 1; height: 1px; background: var(--line-mid); }
.idx { font-weight: 700; color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 96vh; display: flex; flex-direction: column;
  padding: clamp(16px, 2.6vw, 30px) clamp(18px, 4vw, 46px) clamp(20px, 3vw, 38px);
}

.hero__nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
}
.hero__nav a { color: var(--ink); text-decoration: none; transition: color 0.25s ease; }
.hero__nav a:hover { color: var(--accent); }
.hero__nav-left { justify-self: start; }
.hero__nav-right { justify-self: end; }
.hero__brand {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  letter-spacing: 0; text-transform: none; color: var(--accent);
  line-height: 0.9; text-align: center;
}

.hero__stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0; perspective: 1300px;
}
.hero__frame { position: relative; width: min(560px, 84vw); height: min(620px, 58vh); }

.hero__glow {
  position: absolute; inset: -14% -8%; z-index: 0;
  background: radial-gradient(58% 54% at 62% 38%, rgba(232, 156, 92, 0.55), rgba(220, 70, 50, 0.18) 46%, transparent 72%);
  filter: blur(10px); animation: civ-glow 9s ease-in-out infinite; pointer-events: none;
}
.hero__shards {
  position: relative; z-index: 1; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(.2, .7, .2, 1);
  filter: drop-shadow(0 34px 56px rgba(60, 40, 30, 0.32));
}
.hero__shard {
  position: absolute; inset: 0; opacity: 1;
  background-image: url('../img/civara_1.webp');
  background-size: cover; background-position: 50% 24%;
  transform-origin: center; transition: opacity 0.5s ease;
}
.hero__shard--1 { animation: civ-fl1 9s ease-in-out infinite;  clip-path: polygon(26% 14%, 92% 36%, 50% 68%); }
.hero__shard--2 { animation: civ-fl2 11s ease-in-out infinite; clip-path: polygon(8% 50%, 42% 48%, 22% 82%); }
.hero__shard--3 { animation: civ-fl3 10s ease-in-out infinite; clip-path: polygon(40% 62%, 90% 58%, 60% 100%); }

.hero__bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  gap: clamp(20px, 4vw, 40px);
}
.hero__title-wrap { position: relative; justify-self: start; }
.hero__title,
.hero__title-echo {
  margin: 0; font-family: var(--serif); font-weight: 400; line-height: 0.8;
  letter-spacing: -0.015em; font-size: clamp(3.6rem, 12vw, 9.5rem);
}
.hero__title { position: relative; color: var(--accent); }
.hero__title-echo {
  position: absolute; left: 0; top: 0; color: rgba(220, 70, 50, 0.09);
  transform: translate(4px, 5px); pointer-events: none;
}
.hero__dots { display: flex; align-items: center; gap: 9px; padding-bottom: clamp(10px, 2vw, 22px); }
.hero__dot {
  display: block; height: 7px; width: 8px; border-radius: 100px;
  background: rgba(26, 22, 19, 0.28); cursor: pointer; border: 0; padding: 0;
  transition: width 0.4s ease, background 0.4s ease;
}
.hero__dot[aria-current="true"] { width: 28px; background: var(--accent); }
.hero__tagline {
  margin: 0; justify-self: end; max-width: 30ch; text-align: right;
  font-size: clamp(0.72rem, 1vw, 0.86rem); letter-spacing: 0.12em; line-height: 1.6;
  text-transform: uppercase; font-weight: 500; color: var(--ink);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
}
.marquee__track {
  display: inline-flex; white-space: nowrap;
  animation: civ-marquee 30s linear infinite; will-change: transform;
}
.marquee__group {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem); letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink); font-weight: 600;
}

/* ============================================================
   MEANING (two-word motif)
   ============================================================ */
.meaning { padding: clamp(54px, 9vw, 130px) clamp(18px, 4vw, 46px); }
.meaning__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.meaning__col { min-width: 0; }
.meaning__eyebrow {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
  color: var(--accent); margin-bottom: 6px;
}
.meaning__word {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.4rem, 9vw, 7rem); line-height: 0.86; color: var(--accent);
}
.meaning__word--italic { font-style: italic; }
.meaning__text {
  margin: 18px 0 0; font-size: clamp(0.74rem, 1vw, 0.9rem); letter-spacing: 0.1em;
  line-height: 1.7; text-transform: uppercase; font-weight: 500; color: var(--muted-2);
  max-width: 32ch;
}
.meaning__rule {
  width: clamp(60px, 9vw, 150px); height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.meaning__rule span { display: block; width: 100%; height: 2px; background: var(--accent); transform: rotate(-22deg); }

/* ============================================================
   ABOUT statement + portrait
   ============================================================ */
.about {
  padding: 0 clamp(18px, 4vw, 46px) clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line-strong);
}
.about__grid {
  max-width: var(--maxw); margin: 0 auto; padding-top: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(34px, 5vw, 72px); align-items: center;
}
.about__col { min-width: 0; }
.about__eyebrow {
  display: flex; align-items: center; gap: 16px; margin-bottom: clamp(22px, 3vw, 38px);
}
.about__eyebrow span:first-child {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; color: var(--muted);
}
.about__eyebrow .about__hairline { flex: 1; height: 1px; background: var(--line); }
.about__statement {
  margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.24; color: var(--ink);
}
.about__statement em { font-style: italic; }
.about__portrait {
  position: relative; min-width: 0; justify-self: end; width: 100%;
  max-width: 470px; height: clamp(440px, 64vh, 640px);
}
.about__photo {
  position: absolute; inset: 0;
  background-image: url('../img/civara_2.webp'); background-size: cover; background-position: 50% 24%;
  transform-origin: center; animation: civ-fl3 13s ease-in-out infinite;
  clip-path: polygon(0 0, 80% 0, 100% 13%, 100% 100%, 20% 100%, 0 87%);
  filter: drop-shadow(0 30px 50px rgba(60, 40, 30, 0.24));
}
.about__caption {
  position: absolute; left: 0; bottom: -26px;
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--ink);
}
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   LISTEN (dark CTA)
   ============================================================ */
.listen {
  background: var(--ink); color: var(--paper);
  padding: clamp(48px, 8vw, 108px) clamp(18px, 4vw, 46px);
}
.listen .section-head__rule { background: var(--line-light); }
.listen .section-head .eyebrow:not(.idx) { color: var(--paper); }
.listen__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
}
.listen__title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 0.92;
}
.listen__title em { font-style: italic; }

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--accent); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 17px 32px; border-radius: 100px;
  transition: transform 0.35s ease, background 0.35s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 46px); }
.contact .section-head .eyebrow:not(.idx) { color: var(--ink); }
.contact__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(30px, 5vw, 64px); align-items: end;
}
.contact__col { min-width: 0; }
.contact__title {
  margin: 0 0 16px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: 0.92; color: var(--ink);
}
.contact__sub {
  margin: 0; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6;
  color: var(--muted-3); max-width: 36ch;
}
.contact__col--right { display: flex; flex-direction: column; align-items: flex-start; }
.link-row__label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}

/* booking email — the single clear contact line */
.contact__email {
  display: inline-flex; flex-direction: column; gap: 7px;
  text-decoration: none; color: var(--ink);
}
.contact__email-value {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 4.4vw, 2.25rem); line-height: 1.05;
  letter-spacing: 0.005em;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 5px; text-decoration-color: var(--line);
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.contact__email:hover .contact__email-value { color: var(--accent); text-decoration-color: var(--accent); }

/* compact streaming / social icon row */
.socials {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(24px, 3.4vw, 38px);
}
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.social svg { display: block; }
.social:hover {
  color: var(--accent); border-color: var(--accent);
  background: rgba(220, 70, 50, 0.07); transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-strong);
  padding: clamp(42px, 5vw, 74px) clamp(18px, 4vw, 46px) clamp(22px, 3vw, 34px);
}
.footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.footer__col { min-width: 0; }
.footer__brand { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.8rem); color: var(--accent); line-height: 0.9; }
.footer__brand-sub {
  margin-top: 14px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); line-height: 1.9;
}
.footer__heading {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 13px; letter-spacing: 0.03em; }
.footer__links a { color: var(--ink); text-decoration: none; transition: color 0.25s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: clamp(34px, 5vw, 64px); padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid rgba(26, 22, 19, 0.3);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--muted);
}
.footer__made { display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   Legal pages (impressum / datenschutz)
   ============================================================ */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) clamp(18px, 4vw, 46px) clamp(60px, 8vw, 120px); }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--accent);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin-bottom: clamp(28px, 4vw, 44px);
}
.legal__back:hover { color: var(--accent-dark); }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 0.95; margin: 0 0 0.6em; color: var(--ink); }
.legal h2 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 2.4em 0 0.8em; }
.legal p, .legal li { font-size: 0.98rem; line-height: 1.75; color: var(--muted-3); }
.legal a { color: var(--ink); }
.legal a:hover { color: var(--accent); }
.legal .todo {
  background: rgba(220, 70, 50, 0.08); border-left: 2px solid var(--accent);
  padding: 2px 8px; color: var(--muted-2); font-style: italic;
}
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }

/* ============================================================
   Responsive (phones)
   ============================================================ */
@media (max-width: 640px) {
  .hero { min-height: 92vh; }
  .hero__frame { width: 88vw; height: 52vh; }
  .hero__bottom { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .hero__dots { padding-bottom: 0; }
  .hero__tagline { justify-self: start; text-align: left; max-width: 38ch; }

  .meaning__grid { grid-template-columns: 1fr; gap: clamp(34px, 9vw, 56px); }
  .meaning__rule { display: none; }

  .link-row { gap: 6px; }
  .link-row__value { font-size: 1.05rem; }
}

@media (max-width: 380px) {
  .hero__nav { font-size: 10px; letter-spacing: 0.16em; gap: 8px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__glow,
  .hero__shard,
  .about__photo,
  .marquee__track { animation: none !important; }
  .hero__shards { transition: none !important; }
  .marquee__track { white-space: normal; }
  * { transition-duration: 0.01ms !important; }
}
