/* =========================================
   FONTS — Self-hosted from /fonts/
   ========================================= */

/* Climate Crisis */
@font-face {
  font-family: 'Climate Crisis';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/climate-crisis/climate-crisis-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Climate Crisis';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/climate-crisis/climate-crisis-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Newsreader — Normal 200 */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/newsreader/newsreader-200-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/newsreader/newsreader-200-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Newsreader — Normal 400 */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader/newsreader-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Newsreader — Italic 200 */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/newsreader/newsreader-200-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url('/fonts/newsreader/newsreader-200-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Newsreader — Italic 400 */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader/newsreader-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — Variable (300, 400, 700) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --bg: #f5f0e8;
  --fg: #0a0a0a;
  --inv-bg: #0a0a0a;
  --inv-fg: #f5f0e8;
  --hot: #ff2200;
  --bone: #e0d8cc;
  --mid: #8a8478;
  --smoke: #1a1a1a;
}

/* =========================================
   RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  overflow-x: hidden;
}

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--hot);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  z-index: 9999;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.skip-link:focus {
  top: 16px;
}

/* Focus-visible styles */
:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 2px;
}

/* =========================================
   SECTION 1: HERO
   ========================================= */
.s1 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
  position: relative;
  overflow: hidden;
}

.s1-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid);
  position: relative;
  z-index: 10;
}

.s1-center {
  text-align: center;
  position: relative;
  z-index: 5;
}
.s1-title {
  font-family: 'Climate Crisis', cursive;
  font-size: clamp(30px, 10.5vw, 184px);
  line-height: 0.85;
  color: var(--fg);
  position: relative;
  display: inline-block;
}
.s1-title::after {
  content: 'KATWERK';
  position: absolute;
  inset: 0;
  color: var(--hot);
  clip-path: inset(45% 0 45% 0);
  animation: slice-move 6s ease-in-out infinite;
}
@keyframes slice-move {
  0%, 100% { clip-path: inset(45% 0 45% 0); transform: translateX(0); }
  25% { clip-path: inset(20% 0 70% 0); transform: translateX(6px); }
  50% { clip-path: inset(65% 0 25% 0); transform: translateX(-4px); }
  75% { clip-path: inset(35% 0 55% 0); transform: translateX(3px); }
}
.s1-sub {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(24px, 3vw, 40px);
  margin-top: 24px;
  color: var(--mid);
}

.s1-bottom {
  display: flex;
  justify-content: center;
  gap: 48px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid);
  position: relative;
  z-index: 10;
}
.s1-bottom a {
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.s1-bottom a:hover { color: var(--hot); }
.s1-bottom a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--hot);
  transition: width 0.3s;
}
.s1-bottom a:hover::after { width: 100%; }

.scroll-arrow {
  position: absolute;
  bottom: 80px;
  left: 32px;
  font-size: 36px;
  color: var(--hot);
  animation: arrow-bounce 2s ease infinite;
  z-index: 10;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* =========================================
   SECTION 2: ABOUT (INVERTED)
   ========================================= */
.s2 {
  background: var(--inv-bg);
  color: var(--inv-fg);
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}
.s2-number {
  position: absolute;
  top: -40px;
  right: 32px;
  font-family: 'Climate Crisis', cursive;
  font-size: clamp(180px, 24vw, 300px);
  color: #141414;
  line-height: 1;
  user-select: none;
}
.s2-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}
.s2-label {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.s2-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--hot);
}
.s2-heading {
  font-family: 'Newsreader', serif;
  font-weight: 200;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.2;
  margin-bottom: 40px;
}
.s2-heading em {
  font-style: italic;
  color: var(--hot);
}
.s2-body {
  font-size: 13px;
  line-height: 2.1;
  color: #6a6a6a;
  max-width: 560px;
}
.s2-body strong {
  color: var(--inv-fg);
  font-weight: 400;
}
.s2-img {
  width: 400px;
  height: 520px;
  overflow: hidden;
  position: relative;
}
.s2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05) brightness(0.95);
  transition: filter 0.6s;
}
.s2-img:hover img {
  filter: grayscale(0%) contrast(1.05) brightness(1);
}
.s2-img::before {
  content: '\201CCLASSICALLY TRAINED. CLUB FORGED.\201D';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--inv-fg);
  background: linear-gradient(to top, var(--inv-bg), transparent);
  z-index: 2;
}

/* =========================================
   SECTION 3: RELEASES — Glitch grid
   ========================================= */
.s3-releases {
  padding: 80px 32px 120px;
  border-top: 3px solid var(--fg);
  border-bottom: 3px solid var(--fg);
  position: relative;
}
.s3-releases-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bone);
}
.s3-releases-title {
  font-family: 'Climate Crisis', cursive;
  font-size: clamp(32px, 5vw, 64px);
}
.s3-releases-count {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--mid);
  text-transform: uppercase;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.r-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bone);
  transition: transform 0.4s, z-index 0s;
}
.r-card:nth-child(1) { transform: rotate(-0.4deg); }
.r-card:nth-child(2) { transform: rotate(0.3deg); }
.r-card:nth-child(3) { transform: translateY(8px) rotate(0.6deg); }
.r-card:nth-child(4) { transform: rotate(-0.5deg); }
.r-card:nth-child(5) { transform: translateY(-4px) rotate(0.4deg); }
.r-card:nth-child(6) { transform: rotate(-0.3deg); }
.r-card:nth-child(7) { transform: translateY(6px) rotate(-0.7deg); }
.r-card:nth-child(8) { transform: rotate(0.5deg); }
.r-card:nth-child(9) { transform: translateY(-3px) rotate(-0.4deg); }

.r-card:hover {
  transform: scale(1.08) rotate(0deg) !important;
  z-index: 10;
  box-shadow: 0 0 40px rgba(255, 34, 0, 0.35);
}
.r-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.3) brightness(0.7);
  transition: filter 0.4s;
}
.r-card:hover img {
  filter: grayscale(0%) contrast(1.1) brightness(1) saturate(1.2);
}
.r-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}
.r-card:hover .r-card-overlay { opacity: 1; }
.r-card-overlay h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--inv-fg);
}
.r-card-overlay span {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--hot);
  text-transform: uppercase;
  margin-top: 4px;
}
.r-card-overlay .r-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #888;
  margin-top: 2px;
}
.r-card-links {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.r-card:hover .r-card-links {
  opacity: 1;
  transform: translateX(0);
}
.r-card-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245,240,232,0.15);
  color: var(--inv-fg);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.r-card-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}
.r-card-links a:hover {
  background: var(--hot);
  border-color: var(--hot);
  color: #fff;
}

/* =========================================
   SECTION 4: GALLERY
   ========================================= */
.s4-gallery {
  padding: 80px 0 100px;
  background: var(--inv-bg);
  color: var(--inv-fg);
}
.s4-gallery-header {
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
}
.s4-gallery-title {
  font-family: 'Climate Crisis', cursive;
  font-size: clamp(32px, 5vw, 64px);
  color: var(--inv-fg);
}
.s4-gallery-sub {
  font-size: 11px;
  letter-spacing: 3px;
  color: #555;
  text-transform: uppercase;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px;
}
.gallery-row {
  display: flex;
  gap: 4px;
}
.g-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #111;
  min-width: 0;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(65%) contrast(1.2) brightness(0.7);
  transition: all 0.5s cubic-bezier(0.25, 0, 0.25, 1);
}
.g-item:hover img {
  filter: grayscale(0%) contrast(1.05) brightness(1);
  transform: scale(1.04);
}
.g-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.g-item:hover::after {
  border-color: var(--hot);
}

.g-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #333;
  background: #111;
  border: 1px dashed #222;
}

/* =========================================
   SECTION 5: CONNECT
   ========================================= */
.s5 {
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}

.s5-heading {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(48px, 7vw, 96px);
  text-align: center;
  margin-bottom: 4px;
  color: var(--fg);
}
.s5-sub {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--mid);
  text-align: center;
  margin-bottom: 64px;
}

.connect-channels {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ch-link {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--bone);
  text-decoration: none;
  color: var(--fg);
  transition: all 0.3s;
  position: relative;
}
.ch-link:first-child {
  border-top: 1px solid var(--bone);
}
.ch-link::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--hot);
  transform: scaleY(0);
  transition: transform 0.3s;
  transform-origin: bottom;
}
.ch-link:hover::before {
  transform: scaleY(1);
}
.ch-link:hover {
  padding-left: 12px;
}

.ch-label {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.3s;
}
.ch-link:hover .ch-label {
  color: var(--hot);
}

.ch-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.ch-link:hover .ch-name {
  color: var(--fg);
}

.ch-arrow {
  font-size: 18px;
  color: var(--bone);
  transition: all 0.3s;
}
.ch-link:hover .ch-arrow {
  color: var(--hot);
  transform: translateX(4px);
}

.ch-link-email {
  margin-top: 20px;
  border-top: 1px solid var(--bone);
}

/* EPK download */
.ch-epk {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  border: 2px solid var(--fg);
  transition: all 0.35s;
}
.ch-epk:hover {
  background: transparent;
  color: var(--fg);
  border-color: var(--hot);
}
.ch-epk-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bg);
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.35s;
}
.ch-epk:hover .ch-epk-icon {
  border-color: var(--hot);
  color: var(--hot);
  animation: arrow-bounce 1s ease infinite;
}
.ch-epk-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ch-epk-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.ch-epk-detail {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.ch-epk:hover .ch-epk-detail {
  opacity: 0.8;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  border-top: 3px solid var(--fg);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--mid);
  text-transform: uppercase;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .s2-layout {
    grid-template-columns: 1fr;
  }
  .s2-img {
    width: 100%;
    height: 400px;
  }
  .release-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .r-card:nth-child(3),
  .r-card:nth-child(5),
  .r-card:nth-child(7) {
    transform: rotate(-0.4deg);
  }
  .gallery-row {
    flex-wrap: wrap;
  }
  .gallery-row .g-item {
    flex-basis: 45% !important;
    flex-grow: 1 !important;
  }
}
@media (max-width: 600px) {
  .s1-bottom { gap: 24px; }
  .release-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   LIGHTBOX
   ========================================= */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: none;
  border: 1px solid rgba(245,240,232,0.2);
  color: #f5f0e8;
  font-size: 18px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  z-index: 9010;
}
.lb-close { top: 20px; right: 20px; font-size: 22px; }
.lb-prev { top: 50%; left: 16px; transform: translateY(-50%); }
.lb-next { top: 50%; right: 16px; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  border-color: var(--hot);
  color: var(--hot);
}
.lb-prev:disabled, .lb-next:disabled { opacity: 0.15; cursor: default; }
