/* KRAFT & RAUM High-Fidelity Design System & Premium Animations */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;800&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');

:root {
  /* Color Tokens */
  --color-bg-light: #F4F1EA;
  --color-bg-dark: #121212;
  --color-text-dark: #1A1A1A;
  --color-text-light: #F4F1EA;
  --color-accent-gold: #C2A478;
  --color-border: #1A1A1A;
  --color-border-light: rgba(244, 241, 234, 0.2);
  
  /* 3D Offset Colors */
  --color-red: #E85F5C;
  --color-blue: #4278F5;
  --color-green: #34A853;

  /* Typography */
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Layout */
  --padding-container: 2.5rem;
  --link-height: 4rem;
  
  /* Advanced Animation Curves */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.9); /* beaucoup.alpha */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);       /* Custom Lerp style */
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);  /* back.out */
  
  --transition-fast: 250ms var(--ease-smooth);
  --transition-normal: 500ms var(--ease-expo);
  --transition-slow: 1000ms var(--ease-expo);
  --transition-elastic: 800ms var(--ease-elastic);
}

@media (max-width: 768px) {
  :root {
    --padding-container: 1.25rem;
  }
}

/* Global resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  scrollbar-color: var(--color-accent-gold) var(--color-bg-dark);
  scrollbar-width: thin;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Cursor (Signature Device) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.custom-cursor__circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--color-text-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  transition: width 0.4s var(--ease-elastic), height 0.4s var(--ease-elastic), border-color 0.4s var(--ease-smooth), background-color 0.4s var(--ease-smooth);
  will-change: width, height, transform;
}

.custom-cursor__text {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  opacity: 0;
  transition: opacity 0.3s var(--ease-smooth);
  pointer-events: none;
  white-space: nowrap;
}

/* Hover morph states for Custom Cursor */
.custom-cursor.is-hovered .custom-cursor__circle {
  width: 5rem;
  height: 5rem;
  background-color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.custom-cursor.is-hovered .custom-cursor__text {
  opacity: 1;
}

/* Hide native cursor for premium desktop feel */
@media (min-width: 1025px) {
  body, a, button, [role="button"], input[type="submit"] {
    cursor: none;
  }
}

/* Typography elements */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.container-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 1.25rem;
  padding: 0 var(--padding-container);
}

@media (max-width: 1024px) {
  .container-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.col-span-full {
  grid-column: 1 / -1;
}

.lg\:col-span-12 { grid-column: span 12; }
.lg\:col-span-11 { grid-column: span 11; }
.lg\:col-span-13 { grid-column: span 13; }
.lg\:col-start-7 { grid-column-start: 7; }
.lg\:col-end-19 { grid-column-end: 19; }

@media (max-width: 1024px) {
  .lg\:col-span-12, .lg\:col-span-11, .lg\:col-span-13 {
    grid-column: span 12;
  }
  .lg\:col-start-7, .lg\:col-end-19 {
    grid-column: 1 / -1;
  }
}

/* Base Preloader styles */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background-color: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: all;
  /* Clip-path reveal transition for preloader */
  clip-path: inset(0% 0% 0% 0%);
  transition: clip-path 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader--hidden {
  clip-path: inset(0% 0% 100% 0%);
  opacity: 0;
  pointer-events: none;
}

.loader__background {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__circle {
  position: absolute;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform-origin: center center;
  transform: scale(calc(1 + var(--i) * 0.9));
  transition: transform 1.2s var(--ease-expo);
}

.loader.is-loaded .loader__circle {
  transform: scale(0);
}

.loader__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader__sticker {
  width: 4.5rem;
  height: 4.5rem;
  animation: spin 20s linear infinite;
  color: var(--color-accent-gold);
}

.loader__brand {
  font-size: 2rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  margin-top: 1rem;
}

.loader__progress-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #777;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--padding-container);
  z-index: 100;
  mix-blend-mode: difference;
  color: var(--color-text-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.header__meta {
  display: flex;
  gap: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* Buttons System */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 3.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  border: none;
  transition: color var(--transition-fast);
}

.btn--stroke {
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
}

.btn__text {
  position: relative;
  z-index: 5;
}

.btn__layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.btn__layer--red { background: var(--color-red); z-index: 3; }
.btn__layer--blue { background: var(--color-blue); z-index: 2; }
.btn__layer--green { background: var(--color-green); z-index: 1; }

.btn:hover .btn__layer--red { transform: translate(4px, -4px); }
.btn:hover .btn__layer--blue { transform: translate(8px, -8px); }
.btn:hover .btn__layer--green { transform: translate(12px, -12px); }

/* Stacked buttons */
.btn--stacked {
  height: 4rem;
  font-weight: 600;
}

.btn--stacked .btn__layer--main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  z-index: 4;
  padding: 0 2rem;
}

.btn--stacked .btn__layer {
  left: 0;
  top: 0;
}

.btn--stacked:hover .btn__layer--red { transform: translate(3px, -3px); }
.btn--stacked:hover .btn__layer--blue { transform: translate(6px, -6px); }
.btn--stacked:hover .btn__layer--green { transform: translate(9px, -9px); }

/* Chapters */
.chapters {
  position: relative;
  width: 100%;
}

.chapter {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

/* Chapter 1: Cover (Hero) */
.chapter--cover {
  height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--padding-container);
  overflow: hidden;
  will-change: opacity, transform;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
  background-position: center center;
  pointer-events: none;
}

/* Decorative blueprint stickers */
.sticker {
  position: absolute;
  width: 6rem;
  height: 6rem;
  opacity: 0.15;
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

.sticker--top-left { top: 15%; left: 8%; }
.sticker--top-right { top: 18%; right: 10%; }
.sticker--bottom-left { bottom: 15%; left: 12%; }
.sticker--bottom-right { bottom: 18%; right: 8%; }

.sticker svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-text-dark);
}

.cover-hero {
  max-width: 64rem;
  position: relative;
  z-index: 5;
  will-change: transform, opacity;
}

.cover-hero__subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.cover-hero__title {
  font-size: 6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 1024px) {
  .cover-hero__title { font-size: 4rem; }
}

@media (max-width: 640px) {
  .cover-hero__title { font-size: 2.75rem; }
}

.cover-hero__line {
  display: block;
}

.cover-hero__line--center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Dynamic Video Capsule */
.cover-hero__video-container {
  display: inline-flex;
  width: 12rem;
  height: 4.5rem;
  border-radius: 9999px; /* Capsule shape starting state */
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  background-color: var(--color-border);
  will-change: width, height, border-radius, transform;
  /* CSS Variables animated via scroll script */
  --capsule-radius: 9999px;
  border-radius: var(--capsule-radius);
}

@media (max-width: 768px) {
  .cover-hero__video-container {
    width: 6rem;
    height: 2.5rem;
  }
}

.cover-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--video-scale, 1.3));
  will-change: transform;
}

.cover-hero__video-fallback {
  width: 100%;
  height: 100%;
  background: var(--color-accent-gold);
}

.cover-hero__descr {
  font-size: 1.125rem;
  margin-top: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  color: #555;
  letter-spacing: 0.02em;
}

.cover-arrow {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.2rem;
  height: 2.2rem;
  animation: bounce 2s infinite;
  transition: color var(--transition-fast);
}

.cover-arrow:hover {
  color: var(--color-accent-gold);
}

/* Chapter 2: Cinematic Reveal Zoom */
.chapter--reveal {
  min-height: 150vh;
  position: relative;
  background: var(--color-bg-dark);
  border-bottom: none;
}

.reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal-bg-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-dark);
  z-index: 1;
}

.reveal-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 2;
  /* Precise scroll-linked clip-path mask */
  clip-path: inset(var(--vertical-inset, 20%) var(--horizontal-inset, 30%) round var(--border-radius, 0.5rem));
  will-change: clip-path;
}

.reveal-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-dark);
}

.reveal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--reveal-scale, 1.1));
  will-change: transform;
}

.reveal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.45);
}

.reveal-overlay-content {
  position: absolute;
  left: var(--padding-container);
  bottom: var(--padding-container);
  max-width: 32rem;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reveal-overlay-title {
  font-size: 3.5rem;
  font-weight: 800;
}

@media (max-width: 768px) {
  .reveal-overlay-title {
    font-size: 2rem;
  }
}

.reveal-overlay-text {
  font-size: 1rem;
  color: rgba(244, 241, 234, 0.8);
}

.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
}

.text-stroke--white {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-light);
}

/* Chapter 3: Manifesto */
.chapter--manifesto {
  background-color: var(--color-bg-light);
  padding: 8rem 0;
}

.manifesto-grid {
  align-items: center;
}

.manifesto__titles {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  user-select: none;
}

.manifesto__title-row {
  position: relative;
  height: 5.5rem;
  overflow: visible;
}

@media (max-width: 768px) {
  .manifesto__title-row {
    height: 3.5rem;
  }
}

.manifesto__text-layer {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-border);
  transition: transform var(--transition-normal);
  transform: translate(0, 0);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .manifesto__text-layer { font-size: 3rem; }
}

.manifesto__text-layer:nth-child(1) { color: transparent; z-index: 4; }
.manifesto__text-layer:nth-child(2) { -webkit-text-stroke-color: var(--color-red); z-index: 3; }
.manifesto__text-layer:nth-child(3) { -webkit-text-stroke-color: var(--color-blue); z-index: 2; }
.manifesto__text-layer:nth-child(4) { -webkit-text-stroke-color: var(--color-green); z-index: 1; }

.manifesto__title-row:hover .manifesto__text-layer:nth-child(1) { transform: translate(0, 0); -webkit-text-stroke-color: var(--color-text-dark); color: var(--color-text-dark); }
.manifesto__title-row:hover .manifesto__text-layer:nth-child(2) { transform: translate(4px, -4px); }
.manifesto__title-row:hover .manifesto__text-layer:nth-child(3) { transform: translate(8px, -8px); }
.manifesto__title-row:hover .manifesto__text-layer:nth-child(4) { transform: translate(12px, -12px); }

.manifesto__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.manifesto__quote {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.4;
  color: #333;
  border-left: 2px solid var(--color-accent-gold);
  padding-left: 1.5rem;
}

.manifesto__body-text {
  font-size: 1rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Chapter 4: Projects (Stacked Cards) */
.chapter--projects {
  background-color: var(--color-bg-light);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.projects-header {
  margin-bottom: 3rem;
}

.projects-title {
  font-size: 3rem;
  text-transform: uppercase;
}

.projects-cards-wrapper {
  position: relative;
  width: 100%;
}

.project-stack {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.project-card {
  width: 100%;
  height: 80vh;
  position: relative;
  margin-top: -1px;
}

.project-card__sticky {
  position: sticky;
  /* Stacking offset calculations */
  top: calc(var(--card-index) * 2rem + 5rem);
  width: 100%;
  height: calc(80vh - var(--card-index) * 2rem);
  background-color: var(--card-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  /* Premium Depth Transformations calculated via Scroll JS */
  transform-origin: top center;
  transform: scale(var(--card-scale, 1));
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.project-card__link {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  width: 100%;
  height: 100%;
  position: relative;
}

/* Darkening shade overlay for stacked cards depth */
.project-card__shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  pointer-events: none;
  z-index: 8;
  opacity: var(--card-shade, 0);
  transition: opacity 0.1s ease-out;
  will-change: opacity;
}

.project-card__media {
  grid-column: 1 / 14;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .project-card__link {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .project-card__media {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

.project-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card__image-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  z-index: -1;
}

.project-card__link:hover .project-card__video {
  transform: scale(1.04);
}

.project-card__info {
  grid-column: 14 / -1;
  padding: 3rem;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .project-card__info {
    grid-column: 1 / -1;
    padding: 1.5rem;
  }
}

.project-card__index {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.project-card__category {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  margin-bottom: 0.5rem;
}

.project-card__name {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .project-card__name { font-size: 1.5rem; }
}

.project-card__meta {
  font-size: 0.875rem;
  opacity: 0.7;
}

.project-card__tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.project-card__tag {
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(244, 241, 234, 0.3);
  border-radius: 1rem;
  font-size: 0.75rem;
}

.projects-footer {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  padding: 0 var(--padding-container);
}

/* Sensory Mixer (tactile widget) */
.chapter--mixer {
  background-color: var(--color-bg-light);
  padding: 8rem 0;
}

.mixer-container {
  align-items: center;
}

.mixer__header {
  margin-bottom: 3rem;
}

.mixer__num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-accent-gold);
  margin-bottom: 0.5rem;
}

.mixer__title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.mixer__descr {
  color: #555;
}

.mixer__materials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.mixer-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.mixer-btn:hover, .mixer-btn.is-active {
  border-color: var(--color-border);
  background-color: rgba(0, 0, 0, 0.02);
}

.mixer-btn__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: transparent;
  transition: background-color var(--transition-fast);
}

.mixer-btn.is-active .mixer-btn__dot {
  background-color: var(--btn-color);
}

.mixer-btn__name {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.mixer__preview {
  display: flex;
  justify-content: center;
}

.mixer__display-wrapper {
  width: 100%;
  max-width: 25rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-light);
  overflow: hidden;
}

.mixer__canvas {
  position: relative;
  width: 100%;
  height: 25rem;
  border-bottom: 1px solid var(--color-border);
  background-color: #DDD;
  overflow: hidden;
}

.mixer__layer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: background var(--transition-normal);
}

.mixer__layer-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 60%;
  z-index: 2;
  transition: background var(--transition-normal), border var(--transition-normal);
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
}

[data-active="concrete"] .mixer__layer-bg {
  background: 
    radial-gradient(circle at 30% 20%, rgba(0,0,0,0.05) 0%, transparent 80%),
    linear-gradient(#8E8E90, #7B7B7D);
}

[data-active="wood"] .mixer__layer-bg {
  background: 
    repeating-linear-gradient(45deg, #3D2D1E 0px, #3D2D1E 10px, #352618 10px, #352618 20px);
}

[data-active="slate"] .mixer__layer-bg {
  background: 
    linear-gradient(135deg, #272C33, #1A1F24);
}

[data-active="brass"] .mixer__layer-bg {
  background: 
    linear-gradient(90deg, #A3875B, #C2A478, #A3875B);
}

[data-active="linen"] .mixer__layer-bg {
  background: 
    radial-gradient(#E2DDD5 20%, transparent 20%),
    radial-gradient(#D5CFC5 20%, transparent 20%);
  background-size: 10px 10px;
  background-position: 0 0, 5px 5px;
  background-color: #E2DDD5;
}

[data-active="concrete"] .mixer__layer-accent {
  background: #A3875B;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

[data-active="wood"] .mixer__layer-accent {
  background: #8E8E90;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

[data-active="slate"] .mixer__layer-accent {
  background: #E2DDD5;
}

[data-active="brass"] .mixer__layer-accent {
  background: #3D2D1E;
}

[data-active="linen"] .mixer__layer-accent {
  background: #272C33;
}

.mixer__svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  color: var(--color-text-dark);
  pointer-events: none;
}

.mixer__status {
  padding: 1.5rem;
}

.mixer__status-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mixer__status-desc {
  font-size: 0.875rem;
  color: #666;
}

/* Chapter 5: Dialogue (Pre-footer Form) */
.chapter--contact {
  background-color: var(--color-bg-light);
  padding: 8rem 0;
}

.contact-wrapper {
  justify-content: center;
}

.contact__header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__sticker {
  width: 4rem;
  height: 4rem;
  color: var(--color-accent-gold);
  margin-bottom: 1.5rem;
}

.contact__sticker svg {
  width: 100%;
  height: 100%;
  fill: none;
}

.contact__title {
  font-size: 3.5rem;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 400;
}

.contact__title strong {
  font-weight: 800;
}

@media (max-width: 768px) {
  .contact__title { font-size: 2.25rem; }
}

.contact__descr {
  margin-top: 1.5rem;
  color: #666;
  max-width: 28rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 0.5rem;
}

.form-group:focus-within {
  border-bottom-color: var(--color-border);
}

.form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
}

.form-input {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--color-text-dark);
  padding: 0.25rem 0;
  width: 100%;
}

.form-input:focus {
  outline: none;
}

.form-textarea {
  resize: none;
  field-sizing: content;
  min-height: 2.5rem;
}

.form-submit-container {
  margin-top: 1rem;
}

.form-feedback {
  font-size: 0.875rem;
  color: var(--color-green);
  text-align: center;
  margin-top: 1rem;
}

.form-feedback.hidden {
  display: none;
}

/* Typography Line Reveals (Split Text) */
.reveal-word-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.35em;
}

.reveal-word-inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.6s var(--ease-smooth);
  transition-delay: var(--delay, 0ms);
  will-change: transform;
}

.reveal-word-inner.is-visible {
  transform: translateY(0);
}

/* Footer Section */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  position: relative;
  padding: 6rem var(--padding-container);
  will-change: transform;
}

@media (max-width: 768px) {
  .footer__inner {
    padding-block: 4rem;
  }
}

.footer__circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.footer__circle {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%) scale(calc(1 + var(--i) * 0.9));
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.03);
  transform-origin: center center;
}

.footer__meta-row {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer__meta-row {
    flex-direction: column;
    text-align: center;
  }
}

.footer__links, .footer__socials {
  display: flex;
  gap: 2rem;
}

@media (max-width: 640px) {
  .footer__links, .footer__socials {
    flex-direction: column;
    gap: 1rem;
  }
}

.footer__meta-link {
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.footer__meta-link:hover {
  opacity: 1;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.3em;
}

/* Stacking Link plashkas in footer */
.footer-cards-container {
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  pointer-events: auto;
  z-index: 10;
}

.footer-card {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  min-height: var(--link-height);
  height: auto;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  background-color: var(--card-bg);
  border: 1px solid var(--color-border);
  color: var(--card-text);
  transition: transform var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast);
  transform-origin: center center;
}

.footer-card__link {
  display: flex;
  min-height: var(--link-height);
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  font-size: clamp(0.7rem, 0.9vw, 0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 100%;
  text-align: center;
}

/* Entrance reveal state */
.footer-card.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Stagger hover states */
.footer-card.is-visible:hover {
  transform: translateY(-0.35rem);
  filter: brightness(1.04);
  transition-delay: 0ms;
}

@media (max-width: 1180px) {
  .footer-cards-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-cards-container {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .footer-card__link {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Ticker bounce / spin helpers */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .custom-cursor {
    display: none !important;
  }
  
  [data-reveal-text] .reveal-word-inner {
    transform: none !important;
  }
  
  .loader__sticker, .sticker, .cover-arrow {
    animation: none !important;
  }
  
  .reveal-frame {
    clip-path: none !important;
  }
  
  .footer-card {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
