/*
Theme Name: KHANVAS
Theme URI: https://khanvas.de/
Author: KHANVAS
Description: Atmospheric one-page WordPress theme for KHANVAS — heavy psychedelic / space / stoner rock. Haze / Signal / Drift.
Version: 1.9.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: khanvas
*/

:root {
  --bg: #0a0909;
  --paper: #d8c8b2;
  --muted: #9c8f82;
  --copper: #c56c3c;
  --ember: #ef8a46;
  --line: rgba(216, 200, 178, .18);
  --glass: rgba(10, 9, 9, .72);
  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
  letter-spacing: .01em;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .12;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.45) 0 .5px, transparent .65px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,.3) 0 .45px, transparent .6px);
  background-size: 8px 8px, 11px 11px; mix-blend-mode: soft-light;
}

.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 30px;
  background: linear-gradient(to bottom, rgba(6,6,7,var(--header-alpha, .72)), rgba(6,6,7,0));
  backdrop-filter: blur(2px);
}
body.admin-bar .site-header { top: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .18em; font-size: 12px; }
.brand img, .brand .custom-logo { width: 28px; height: 28px; object-fit: contain; filter: saturate(.75) brightness(1.15); }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; text-transform: uppercase; font-size: 10px; letter-spacing: .18em; color: rgba(240,229,214,.82); }
.site-nav a:hover, .site-nav a:focus { color: var(--ember); }
.nav-toggle { display: none; appearance: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 11px 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; background: var(--paper); margin: 6px 0; transition: transform .24s ease, opacity .24s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(4,4,5,.76) 0%, rgba(4,4,5,.22) 48%, rgba(4,4,5,.18) 72%, rgba(4,4,5,.4) 100%),
    linear-gradient(to top, rgba(4,4,5,.95) 0%, rgba(4,4,5,.04) 55%, rgba(4,4,5,.12) 100%),
    var(--hero-image);
  background-color: #050505;
  background-size: cover; background-position: center 44%; transform: scale(1.02);
}
.hero-content { position: relative; z-index: 3; padding: 0 6vw 8vh; max-width: 980px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .28em; font-size: 10px; color: var(--ember); }
.hero h1 { margin: .14em 0 0; font-size: clamp(76px, 17vw, 260px); line-height: .76; letter-spacing: -.075em; font-weight: 900; text-shadow: 0 3px 35px rgba(0,0,0,.45); }
.hero-copy { margin: 28px 0 30px; font-style: normal; font-weight: 500; font-size: clamp(18px, 2.1vw, 30px); line-height: 1.25; letter-spacing: .01em; max-width: 720px; }
.cta { display: inline-flex; gap: 16px; align-items: center; text-decoration: none; border: 1px solid rgba(239,138,70,.62); padding: 14px 18px; font-size: 10px; letter-spacing: .22em; transition: .25s ease; }
.cta:hover, .cta:focus { background: var(--ember); color: #17100c; }
.hero-mark { position: absolute; z-index: 2; right: 3vw; bottom: 4vh; width: min(11vw, 140px); opacity: .58; mix-blend-mode: screen; filter: sepia(.2) saturate(.8); }
.scroll-note { position: absolute; z-index: 3; right: 28px; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; font-size: 9px; letter-spacing: .27em; color: rgba(240,229,214,.45); }

.manifesto, .sound, .live, .archive, .contact { padding: 110px 7vw; }
.manifesto { border-bottom: 1px solid var(--line); }
.manifesto-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10vw; margin-top: 42px; align-items: start; }
h2 { margin: 0; font-size: clamp(50px, 7vw, 115px); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; }
.body-copy { max-width: 630px; font-size: clamp(19px, 1.9vw, 29px); line-height: 1.5; font-weight: 430; letter-spacing: -.01em; }
.body-copy p { margin-top: 0; }
.body-copy .muted { color: var(--muted); font-size: .62em; line-height: 1.6; }

 .sound { padding-top: 90px; }
.sound-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8vw; align-items: end; margin: 42px 0 52px; }
.sound-intro h2 { font-size: clamp(50px, 7vw, 110px); }
.sound-intro-copy { max-width: 650px; justify-self: end; }
.sound-intro-copy .sound-kicker { margin: 0 0 18px; color: var(--ember); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.sound-intro-copy p:last-child { margin: 0; color: var(--muted); line-height: 1.65; font-size: clamp(16px, 1.45vw, 21px); }
.media-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 1px; margin-top: 42px; background: var(--line); border: 1px solid var(--line); }
.video-feature, .sound-card { background: var(--bg); }
.video-feature { min-width: 0; padding: 34px; }
.media-head { display: grid; grid-template-columns: .55fr 1.45fr; gap: 24px; align-items: end; margin-bottom: 26px; }
.media-head .card-no { grid-column: 1 / -1; }
.media-head h2 { font-size: clamp(44px, 6.2vw, 96px); }
.media-head p { color: var(--muted); margin: 0; line-height: 1.55; max-width: 430px; justify-self: end; }
.video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: radial-gradient(circle at 74% 28%, rgba(197,108,60,.19), transparent 34%), #080707; border: 1px solid rgba(216,200,178,.13); overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.video-consent { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 34px; text-align: center; background: radial-gradient(circle at 75% 25%, rgba(197,108,60,.18), transparent 34%), #080707; }
.video-consent > span { color: var(--ember); font-size: 9px; letter-spacing: .26em; }
.video-consent > strong { font-size: clamp(24px, 3.4vw, 50px); line-height: .95; letter-spacing: -.04em; }
.video-consent > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.video-consent-button { appearance: none; border: 1px solid rgba(239,138,70,.68); background: transparent; color: var(--paper); padding: 13px 18px; font: inherit; font-size: 10px; letter-spacing: .2em; cursor: pointer; transition: .2s ease; }
.video-consent-button:hover, .video-consent-button:focus { background: var(--ember); color: #17100c; }
.video-privacy-link { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-decoration: underline; text-underline-offset: 3px; }
.media-placeholder { position: absolute; inset: 0; display: grid; align-content: center; gap: 12px; padding: 8%; text-align: center; }
.media-placeholder span, .live-empty span { font-size: 9px; letter-spacing: .28em; color: var(--ember); }
.media-placeholder strong, .live-empty strong { font-size: clamp(24px, 3vw, 48px); letter-spacing: -.035em; }
.media-placeholder small, .live-empty small { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ember); text-decoration: none; font-size: 10px; letter-spacing: .22em; }
.media-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--line); }
.sound-card { min-height: 310px; padding: 30px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.sound-card::after { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(197,108,60,.15); border-radius: 50%; right: -105px; top: -105px; }
.sound-card h3 { font-size: clamp(40px, 4.5vw, 72px); margin: auto 0 14px; letter-spacing: -.05em; }
.sound-card p { color: var(--muted); max-width: 390px; line-height: 1.55; }
.card-no { color: var(--copper); font-size: 10px; letter-spacing: .24em; }
.ghost-link { margin-top: 14px; font-size: 9px; letter-spacing: .2em; color: var(--ember); text-decoration: none; }
.muted-link { color: rgba(239,138,70,.45); }
.music-embed { margin-top: 10px; max-width: 100%; overflow: hidden; }
.music-embed iframe { width: 100% !important; max-height: 160px; border: 0; }

.visual-break {
  position: relative; min-height: 70vh; display: grid; place-items: center;
  background: linear-gradient(rgba(7,7,8,.45), rgba(7,7,8,.78)), var(--hero-image) center 36% / cover no-repeat;
  background-attachment: fixed; border-block: 1px solid var(--line);
}
.visual-copy { text-align: center; text-transform: uppercase; letter-spacing: .22em; font-size: 10px; }
.visual-copy strong { display: block; margin-top: 16px; font-size: clamp(30px, 6vw, 88px); letter-spacing: -.03em; color: rgba(242,225,205,.9); }


.live { border-bottom: 1px solid var(--line); }
.live-head { display: grid; grid-template-columns: 1fr .65fr; gap: 8vw; align-items: end; margin: 42px 0 62px; }
.live-head h2 { font-size: clamp(50px, 7vw, 110px); }
.live-head p { color: var(--muted); line-height: 1.6; max-width: 450px; }
.live-list { border-top: 1px solid var(--line); }
.live-event { display: grid; grid-template-columns: 190px 1fr auto; gap: 34px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.live-event time { color: var(--ember); letter-spacing: .14em; font-size: 12px; }
.live-event h3 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 46px); }
.live-event p { margin: 0; color: var(--muted); }
.event-link { border: 1px solid var(--line); padding: 11px 14px; text-decoration: none; color: var(--ember); font-size: 9px; letter-spacing: .18em; }
.live-empty { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(197,108,60,.08), transparent 35%); }

/* Archive image gallery */
.archive-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin: 0 0 76px;
}
.archive-gallery-item {
  position: relative;
  display: block;
  grid-column: span 4;
  overflow: hidden;
  min-height: 300px;
  border: 1px solid var(--line);
  background: #070606;
}
.archive-gallery-item:nth-child(1),
.archive-gallery-item:nth-child(5) { grid-column: span 8; }
.archive-gallery-item:nth-child(1) { min-height: 520px; }
.archive-gallery-item:nth-child(5) { min-height: 400px; }
.archive-gallery-item img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: saturate(.82) contrast(1.06);
  transform: scale(1.001);
  transition: transform .6s ease, filter .6s ease, opacity .35s ease;
}
.archive-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,6,6,.25));
  pointer-events: none;
}
.archive-gallery-item:hover img,
.archive-gallery-item:focus img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.08);
}
.archive-gallery-empty-note {
  margin: -34px 0 62px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.archive-head { display: grid; grid-template-columns: 1fr .7fr; gap: 8vw; align-items: end; margin: 42px 0 70px; }
.archive-head p { color: var(--muted); line-height: 1.6; max-width: 500px; }
.timeline { border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 210px 1fr; gap: 38px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.event time { color: var(--ember); letter-spacing: .14em; font-size: 12px; }
.event h3 { margin: 0 0 8px; font-size: clamp(26px, 3.3vw, 52px); font-weight: 650; }
.event p { color: var(--muted); margin: 0 0 16px; }

.contact { display: grid; grid-template-columns: .7fr 1fr; gap: 9vw; align-items: center; background: radial-gradient(circle at 20% 50%, rgba(197,108,60,.13), transparent 38%); border-top: 1px solid var(--line); }
.contact-symbol-wrap { display: grid; place-items: center; }
.contact-symbol-wrap img { width: min(450px, 70vw); filter: saturate(.7) contrast(1.1); opacity: .9; }
.contact-copy h2 { margin-top: 32px; }
.contact-copy > p { color: var(--muted); font-size: 20px; line-height: 1.5; }
.contact-email { display: inline-block; margin-top: 10px; color: var(--paper); text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.contact-email:hover, .contact-email:focus { color: var(--ember); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.socials a { border: 1px solid var(--line); padding: 12px 15px; font-size: 9px; letter-spacing: .18em; color: rgba(240,229,214,.72); text-decoration: none; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.socials a:hover, .socials a:focus { border-color: rgba(239,138,70,.65); color: var(--ember); transform: translateY(-1px); }
.micro { font-size: 11px !important; line-height: 1.5; max-width: 580px; }

.site-footer { display: flex; justify-content: space-between; gap: 22px; padding: 24px 30px 32px; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: .22em; color: rgba(240,229,214,.45); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ember); }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Inner pages, e.g. Impressum / Datenschutz */
.inner-shell { width: min(100% - 44px, 980px); margin: 0 auto; padding: 150px 0 90px; min-height: 80vh; }
.inner-shell h1 { font-size: clamp(48px, 9vw, 110px); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; margin: 0 0 48px; }
.inner-shell h2 { font-size: clamp(28px, 5vw, 54px); margin-top: 48px; }
.inner-shell p, .inner-shell li { color: var(--paper); line-height: 1.75; }
.inner-shell a { color: var(--ember); }

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { padding: 16px 18px; }
  .site-nav ul { gap: 13px; }
  .site-nav a { font-size: 8px; }
  .brand span { display: none; }
  .hero-content { padding: 0 22px 10vh; }
  .hero h1 { font-size: clamp(72px, 26vw, 150px); }
  .hero-copy { max-width: 85%; }
  .hero-mark { width: min(25vw, 105px); right: 4vw; bottom: 3vh; opacity: .38; }
  .scroll-note, .halo { display: none; }
  .manifesto, .sound, .live, .archive, .contact { padding: 82px 22px; }
  .manifesto-grid, .sound-intro, .live-head, .archive-head, .contact { grid-template-columns: 1fr; gap: 42px; }
  .sound-intro-copy { justify-self: start; }
  .media-grid { grid-template-columns: 1fr; }
  .media-head { grid-template-columns: 1fr; }
  .media-head p { justify-self: start; }
  .sound-card { min-height: 280px; }
  .archive-gallery { grid-template-columns: 1fr; gap: 10px; margin-bottom: 56px; }
  .archive-gallery-item,
  .archive-gallery-item:nth-child(1),
  .archive-gallery-item:nth-child(5) { grid-column: auto; min-height: 58vw; }
  .live-event, .event { grid-template-columns: 1fr; gap: 12px; }
  .event-link { justify-self: start; }
  .visual-break { min-height: 58vh; background-attachment: scroll; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; position: relative; z-index: 62; }
  .site-nav { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(7,6,6,.96); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .24s ease, visibility .24s ease, transform .24s ease; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 26px; text-align: center; }
  .site-nav a { font-size: 17px; letter-spacing: .2em; }
  body.nav-open { overflow: hidden; }
  .brand span { display: inline; }
}

@media (max-width: 560px) {
  .brand { font-size: 10px; }
  .hero-content { width: 100%; max-width: 100%; padding-left: 20px; padding-right: 20px; }
  .hero h1 {
    font-size: clamp(54px, 17.5vw, 78px);
    line-height: .82;
    letter-spacing: -.085em;
    white-space: nowrap;
    max-width: 100%;
  }
  .hero-copy { max-width: 100%; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 16.8vw; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: breathe 18s ease-in-out infinite alternate; }
  @keyframes breathe { from { transform: scale(1.02); } to { transform: scale(1.055); } }
}
