/* ================================================================
   KENO KNIPPER — Portfolio Stylesheet
   Palette: #000, #111, #1a1a1a, #222, #fff, #ccc, #888, #59ff00
   ================================================================ */

@font-face {
  font-family: 'HelveticaCond';
  src: url('files/font/HelveticaCom-BoldCondensed.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {

  --black: #000;
  --bg: #fff;
  --card: #f5f5f5;
  --card-hover: #ebebeb;
  --border: #e0e0e0;
  --white: #111;
  --gray: #777;
  --light: #444;
  --accent: #59ff00;
  --accent-dim: rgba(89, 255, 0, 0.15);
  --accent-glow: rgba(89, 255, 0, 0.4);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-headline: 'HelveticaCond', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #f0f0f0;
  overflow-y: scroll;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p {
  font-family: var(--font-mono);
}

::selection {
  background: var(--accent);
  color: var(--black);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
  background: var(--accent);
  border-radius: 0;
  border: none;
  filter: url(#edgeRoughness);
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4de600;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}
a:hover { opacity: 0.8; }

img, video { display: block; max-width: 100%; }

/* --- Video Audio Toggle --- */
.video-audio-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  padding: 0;
  opacity: 0.8;
}

.video-audio-toggle:hover {
  transform: scale(1.1);
  opacity: 1;
}

.video-audio-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Container relative positioning for the toggle */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Custom Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 1;
  z-index: 20;
}

.video-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  transition: height 0.2s ease;
}

.video-progress-container:hover {
  height: 8px;
}

.video-progress-filled {
  height: 100%;
  background: var(--accent);
  border-radius: 0;
  width: 0%;
  position: relative;
}

.video-progress-filled::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.video-progress-container:hover .video-progress-filled::after {
  transform: translateY(-50%) scale(1);
}

.video-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.video-controls-left,
.video-controls-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.video-control-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  opacity: 0.8;
}

.video-control-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
  opacity: 1;
}

.video-control-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-time {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  user-select: none;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.video-volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  transform-origin: left;
  overflow: hidden;
}

.video-volume-container:hover .video-volume-slider {
  width: 70px;
  opacity: 1;
  overflow: visible;
}

/* Styled range input for volume */
.video-volume-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0;
  outline: none;
  margin: 0;
  cursor: pointer;
}

.video-volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-volume-slider input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--accent);
}

.video-volume-slider input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.video-volume-slider input[type="range"]::-moz-range-thumb:hover {
  background: var(--accent);
}

/* --- Navigation --- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav--scrolled {
  padding: 14px 40px;
  background: var(--bg);
  border-bottom-color: var(--border);
}

.nav__logo {
  font-family: 'HelveticaCond', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.nav__logo span {
  color: var(--black);
  display: inline-block;
  background: var(--accent);
  padding: 1px 6px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  z-index: 1001;
  position: relative;
}
.burger::after {
  display: none;
}

.burger__line {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.burger--open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open .burger__line:nth-child(2) { opacity: 0; }
.burger--open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop links */
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__link {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  transition: color 0.3s, transform 0.4s var(--ease);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu--open .mobile-menu__link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu--open .mobile-menu__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu--open .mobile-menu__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu--open .mobile-menu__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu--open .mobile-menu__link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu--open .mobile-menu__link:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu__link {
  position: relative;
  display: inline-block;
}
.mobile-menu__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  filter: url(#edgeRoughness);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu__link:hover { color: var(--black); }
.mobile-menu__link:hover::after { opacity: 1; }

/* --- Hero / Crash-Cut Logo --- */

.hero-scroll {
  position: relative;
  height: 250vh;
}

.hero-scroll__sticky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Mobile browser address bar fix */
  overflow: hidden;
  background: var(--bg);
  will-change: transform;
}

.hero-scroll__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 10;
  pointer-events: none;
  will-change: contents;
}

/* Typo overlays */
.hero-scroll__typo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  z-index: 1;
  will-change: opacity, transform;
  padding-top: 180px; /* More space for Nav */
  padding-bottom: 40px; /* Less space bottom */
}

.hero-scroll__typo--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll__word {
  font-family: var(--font-headline);
  font-size: 20vw;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.85;
  white-space: nowrap;
  user-select: none;
  padding: 0 10px; /* Slight padding for background box */
}

.hero-scroll__word--accent {
  background: var(--accent);
  color: var(--black);
  text-shadow: none;
}

/* Scroll hint */
.hero-scroll__hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
  z-index: 20;
  background: var(--accent);
  padding: 8px 16px;
  animation: heroHintBounce 2s ease-in-out infinite;
}

.hero-scroll__hint--hidden {
  opacity: 0;
}

.hero-scroll__hint-line {
  display: none;
}

.hero-scroll__hint span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes heroHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__name--glitch {
  font-family: var(--font-mono) !important;
  animation: glitch-skew 10s infinite linear alternate-reverse;
}

.hero__name--glitch .title-char {
  display: inline;
  animation: char-font-swap 8s infinite steps(1);
  transition: color 0.1s;
}

.hero__name--glitch .title-char:nth-child(2n)   { animation-delay: -0.3s; }
.hero__name--glitch .title-char:nth-child(3n)   { animation-delay: -0.7s; }
.hero__name--glitch .title-char:nth-child(5n)   { animation-delay: -1.2s; }
.hero__name--glitch .title-char:nth-child(7n)   { animation-delay: -1.8s; }
.hero__name--glitch .title-char:nth-child(11n)  { animation-delay: -2.4s; }

@keyframes char-font-swap {
  0%, 100% { font-family: var(--font-mono); font-weight: 700; font-style: normal; }
}

@keyframes glitch-skew {
  0%, 95%  { transform: skewX(0); }
  96%      { transform: skewX(-2deg); }
  97%      { transform: skewX(1.5deg); }
  98%      { transform: skewX(-1deg); }
  99%      { transform: skewX(0.5deg); }
  100%     { transform: skewX(0); }
}



.hero__sub {
  margin-top: 24px;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.hero__sub span {
  color: var(--black);
  display: inline-block;
  background: var(--accent);
  padding: 1px 6px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;


  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float-hint 2s ease-in-out infinite;
}

.hero__scroll-hint .line {
  width: 2px;
  height: 40px;
  background: var(--accent);
  position: relative;
  filter: url(#edgeRoughness);
}

.hero__scroll-hint .line::before,
.hero__scroll-hint .line::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
}

.hero__scroll-hint .line::before {
  width: 4px;
  height: 4px;
  top: -2px;
  left: -1px;
  animation: scribble-dot 0.8s ease-in-out infinite alternate;
}

.hero__scroll-hint .line::after {
  width: 3px;
  height: 3px;
  bottom: 0;
  left: -0.5px;
  opacity: 0.6;
  animation: scribble-dot 1.2s ease-in-out infinite alternate-reverse;
}

@keyframes scribble-dot {
  0% { transform: translate(-1px, 0) scale(1); }
  50% { transform: translate(1px, -1px) scale(1.2); }
  100% { transform: translate(0, 1px) scale(0.9); }
}

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

.hero__sub  { position: relative; z-index: 2; }

/* --- Button Edge Trace --- */

.btn--edge-trace {
  position: relative;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  overflow: visible;
}

@media (hover: hover) {
  .btn--edge-trace:hover {
    border-color: transparent;
    color: var(--black);
    transform: translateY(-2px);
  }
}

.btn__edge-svg {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  overflow: visible;
}

.btn__edge-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-dashoffset: var(--perimeter);
  stroke-dasharray: var(--perimeter);
  transition: stroke-dashoffset 0.5s var(--ease);
}

@media (hover: hover) {
  .btn--edge-trace:hover .btn__edge-path {
    stroke-dashoffset: 0;
  }
  .btn--edge-trace:hover .btn__edge-dots {
    opacity: 1;
  }
}

.btn__edge-dots {
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.15s;
}

/* --- Section Shared --- */

.section {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  background: var(--accent);
  padding: 2px 8px;
}

.section__title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section__desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* --- Slideshow / Work Section --- */

.work {
  padding: 120px 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.work__slideshow {
  margin-top: 0;
}

/* --- Stacking Cards --- */

.cards {
  padding: 120px 40px 200px;
  max-width: 1000px;
  margin: 0 auto;
}

.cards__list {
  position: relative;
}

.card {
  position: sticky;
  top: 120px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 48px;
  margin-bottom: 24px;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
  transform-origin: top center;
  overflow: visible;
}

/* Card edge-trace SVG (same pattern as buttons) */
.card .btn__edge-svg { inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.card .btn__edge-path { stroke-dashoffset: var(--perimeter); }
.card .btn__edge-dots { opacity: 0; }
@media (hover: hover) {
  .card:hover { border-color: transparent; }
  .card:hover .btn__edge-path { stroke-dashoffset: 0; }
  .card:hover .btn__edge-dots { opacity: 1; }
}

.card__number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent);
  padding: 2px 8px;
}

.card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--light);
  letter-spacing: 0.04em;
  transition: border-color 0.3s, color 0.3s;
}

@media (hover: hover) {
  .card:hover .tag {
    border-color: var(--accent);
    color: var(--black);
  }
}

/* --- Contact Form --- */

.contact {
  padding: 120px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}

.form__group {
  position: relative;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #555;
}

.form__input:focus,
.form__textarea:focus {
  border-color: transparent;
}

/* Form input edge-trace SVG (triggered via JS on focus) */
.form__group .btn__edge-svg { inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); }
.form__group .btn__edge-path { stroke-dashoffset: var(--perimeter); }
.form__group--focus .btn__edge-path { stroke-dashoffset: 0; }
.form__group .btn__edge-dots { opacity: 0; }
.form__group--focus .btn__edge-dots { opacity: 1; }

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* --- Topic Pills (footer form) --- */

.form__topic-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,0,0,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form__topic-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 20px;
  border-radius: 0;
  border: 1.5px solid var(--black);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  letter-spacing: 0.03em;
}

.form__topic-pill:hover {
  background: rgba(0,0,0,0.08);
}

.form__topic-pill--active {
  background: var(--black);
  color: var(--accent);
  border-color: var(--black);
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: visible;
  white-space: nowrap;
  max-width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #4de600;
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  cursor: default;
}

.btn--primary.btn--loading,
.btn--primary.btn--loading:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  transform: none;
  opacity: 0.85;
}

.btn--primary.btn--sent,
.btn--primary.btn--sent:hover,
.btn--primary.btn--error,
.btn--primary.btn--error:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  transform: none;
}

.btn--primary .btn__edge-path {
  stroke: var(--black);
  stroke-width: 2;
  opacity: 0.3;
}

.btn--primary:hover .btn__edge-path {
  stroke-dashoffset: 0;
  opacity: 0.5;
}

.btn--primary .btn__edge-dots {
  fill: var(--black);
  opacity: 0;
}

.btn--primary:hover .btn__edge-dots {
  opacity: 0.3;
}


/* --- Footer --- */

.footer {
  padding: 60px 40px;
  background: var(--accent);
  text-align: center;
}

.footer__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.06em;
}

.footer__text span { color: var(--black); opacity: 0.5; }

/* --- Cookie Consent Banner --- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--accent);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.03em;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner__text a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.cookie-banner__btn--accept {
  background: var(--black);
  color: var(--accent);
}

.cookie-banner__btn--accept:hover {
  background: #222;
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.cookie-banner__btn--reject:hover {
  background: rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    text-align: center;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}

/* --- Scroll Reveal Animations --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* --- Divider / Accent Line --- */

.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 60px;
}

/* --- Work Stack / Cards --- */

.work-stack {
  margin-top: 48px;
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.work-stack--expanded {
  min-height: auto;
  cursor: default;
}

.work-stack__container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 380px;
}

.work-stack--expanded .work-stack__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
  width: 100%;
  height: auto;
  max-width: 1400px;
  padding: 0 40px;
}

.work-stack__item {
  position: absolute;
  width: 288px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all 0.6s var(--ease);
  cursor: pointer;
  transform-origin: center center;
}

.work-stack--expanded .work-stack__item {
  position: relative;
  width: 100%;
  transform: rotate(var(--rotation, 0deg)) !important;
  top: auto !important;
  left: auto !important;
}

.work-stack--expanded .work-stack__item--landscape {
  grid-column: span 2;
}

@media (hover: hover) {
  .work-stack__item:hover {
    opacity: 1;
  }
  .work-stack--expanded .work-stack__item:hover {
    z-index: 20;
    transform: rotate(calc(var(--hover-tilt, 3) * 1deg)) scale(1.04) !important;
    transition: transform 0.35s var(--ease-bounce);
  }
  .work-stack--expanded .work-stack__item:hover .work-stack__img {
    transform: scale(1.02);
  }
}

.work-stack__img-wrapper {
  display: block;
  position: relative;
  width: 100%;
  overflow: visible;
  background: transparent;
  border: none;
}

.work-stack--expanded .work-stack__img-wrapper {
  position: relative;
  background: transparent;
}

.work-stack__img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
  opacity: 1;
}

.work-stack--expanded .work-stack__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: auto;
}


.work-stack__edge-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.work-stack__info {
  padding: 16px 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.work-stack--expanded .work-stack__info {
  opacity: 1;
}

.work-stack__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  display: inline-block;
  background: var(--accent);
  padding: 4px 8px;
  width: fit-content;
}

.work-stack__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 4px;
}

/* "Tap to explore" CTA overlaying collapsed stack */
.work-stack__cta {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  background: var(--accent);
  padding: 4px 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.4s var(--ease);
  white-space: nowrap;
  pointer-events: none;
  animation: cta-pulse 2.5s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.work-stack--expanded .work-stack__cta {
  display: none;
}

/* Extra spacing below collapsed stack for footer breathing room */
.work-stack {
  margin-bottom: 40px;
}
.work-stack--expanded {
  margin-bottom: 40px;
}

/* Sub-stack (merged projects mini-stack within grid) */
.work-stack__sub-stack {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: visible;
  box-sizing: border-box;
  padding: 24px 24px 8px;
}

.work-stack__sub-stack-pile {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: visible;
  box-sizing: border-box;
}

.work-stack__sub-stack-card {
  position: absolute;
  inset: 14% 15%;
  overflow: visible;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.work-stack__sub-stack-card .work-stack__img-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.work-stack__sub-stack-card .work-stack__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(0.96);
  transform-origin: center center;
}

.work-stack__sub-stack-card .work-stack__edge-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.work-stack__sub-stack-card:nth-child(1) { transform: rotate(-1.25deg); z-index: 3; }
.work-stack__sub-stack-card:nth-child(2) { transform: rotate(1.25deg) translate(1px, -3px); z-index: 2; }
.work-stack__sub-stack-card:nth-child(3) { transform: rotate(-0.75deg) translate(-1px, -6px); z-index: 1; }

@media (hover: hover) {
  .work-stack__sub-stack:hover .work-stack__sub-stack-card:nth-child(1) { transform: rotate(-2.4deg) translate(-2px, 1px); }
  .work-stack__sub-stack:hover .work-stack__sub-stack-card:nth-child(2) { transform: rotate(2deg) translate(3px, -4px); }
  .work-stack__sub-stack:hover .work-stack__sub-stack-card:nth-child(3) { transform: rotate(-1.2deg) translate(-2px, -8px); }
}

.work-stack__sub-stack > .work-stack__info {
  position: relative;
  text-align: center;
  padding: 12px 4px 0;
  opacity: 1;
}

.work-stack__sub-stack > .work-stack__info .work-stack__title {
  font-size: 0.95rem;
}


/* --- Nav scroll hide/show on direction --- */
.nav--hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.nav {
  transition: border-color 0.4s var(--ease), padding 0.4s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}

/* Nav color on scroll direction: green when scrolling up, white when scrolling down */
.nav--scroll-up {
  background: var(--accent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav--scroll-up .nav__link { color: var(--black); }
.nav--scroll-up .nav__link:hover { color: var(--black); opacity: 0.6; }
.nav--scroll-up .nav__logo { color: var(--black); }
.nav--scroll-up .nav__logo span { background: var(--black); color: var(--accent); }
.nav--scroll-up .burger { background: var(--black); }
.nav--scroll-up .burger__line { background: var(--accent); }
.nav--scroll-down {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* --- Project Hero Headline --- */
.project-hero-headline {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: 80px;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.project-hero-headline__canvas-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-headline canvas {
  display: block;
  width: 100%;
  height: auto;
}

.project-content__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.project-sticker {
  position: absolute;
  right: 3vw;
  top: 50%;
  transform: translateY(-50%) rotate(-28deg);
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.6vw, 1.1rem);
  line-height: 1.25;
  padding: clamp(8px, 1vw, 14px) clamp(12px, 1.6vw, 22px);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

.project-switcher {
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.project-switcher__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 6px 10px;
  background: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 1;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-switcher__link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.project-switcher__arrow,
.project-switcher__label {
  color: #fff;
  line-height: 1;
}

.project-switcher__arrow {
  font-size: 1.15em;
}

.project-hero-credits {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.06em;
  padding: 12px 40px 24px;
  max-width: 1150px;
  margin: 0 auto;
  background: var(--black);
  display: inline-block;
}

.project-hero-credits span,
.project-hero-credits {
  color: #fff;
}

.project-hero-credits span {
  color: var(--white);
  background: transparent;
  padding: 0;
  font-size: 11px;
  margin-right: 8px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .project-hero-headline {
    padding-top: 64px;
  }
  .project-sticker {
    font-size: clamp(0.6rem, 2.5vw, 0.85rem);
    right: 2vw;
  }
  .project-switcher {
    width: calc(100% + 32px);
    margin-left: -16px;
    gap: 10px;
    margin-bottom: 14px;
  }
  .project-switcher__link {
    font-size: 10px;
    padding: 6px 8px;
    gap: 8px;
  }
  .project-hero-credits {
    padding: 8px 16px 16px;
  }
}

@media (max-width: 480px) {
  .project-switcher__link {
    font-size: 9px;
    padding: 5px 7px;
    gap: 6px;
  }
}

/* --- Project Detail --- */

.project-content {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 40px 120px;
}

/* Sub-hero section — full-width content block replacing slideshow */
.project-sub-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 80px;
  background: var(--card);
  overflow: hidden;
}

.project-sub-hero__media {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.project-sub-hero__media--video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-sub-hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.project-sub-hero__split .project-sub-hero__media {
  aspect-ratio: 16/9;
  object-fit: cover;
  height: 100%;
}

@media (max-width: 768px) {
  .project-sub-hero__split {
    grid-template-columns: 1fr;
  }
}

/* Project credits line between title and slideshow */
.project-credits {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.06em;
  padding: 0;
  width: fit-content;
  max-width: min(85vw, calc(100% - 8vw));
  margin: 0 4vw 24px 4vw;
  text-align: left;
  z-index: 10;
  position: relative;
  background: transparent;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.project-credits span {
  color: var(--black);
  background: transparent;
  padding: 0;
  font-size: 11px;
  margin-right: 8px;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: var(--black);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.project-person-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
}

.project-person-link:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .project-credits {
    max-width: calc(100% - 32px);
    margin: 0 16px 20px 16px;
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.5;
  }

  .project-credits span {
    font-size: 9px;
    margin-right: 6px;
  }
}

@media (max-width: 480px) {
  .project-credits {
    font-size: 9px;
    padding: 0;
  }

  .project-credits span {
    font-size: 8px;
  }
}

/* EdgePortfolio slideshow container — 85vw width */
.project-slideshow-ep {
  position: relative;
  width: 85vw;
  margin-left: calc(50% - 42.5vw);
  aspect-ratio: 16/9;
  margin-bottom: 0;
  z-index: 2;
}

.project-slideshow-ep .ep-wrapper {
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16/9;
}

.project-slideshow-ep .ep-wrapper img,
.project-slideshow-ep .ep-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}


.project-slideshow-ep .ep-wrapper button {
  font-size: 22px !important;
  width: 48px !important;
  height: 28px !important;
  background: var(--accent) !important;
  border-radius: 0 !important;
  border: none !important;
  color: var(--black) !important;
  position: relative;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
  opacity: 0.9;
}

.project-slideshow-ep .ep-wrapper button::before {
  display: none;
}

.project-slideshow-ep .ep-wrapper button:hover {
  opacity: 1;
  background: #4de600 !important;
}

/* Audio toggle inside slideshow — match gallery style (bottom-right) */
.project-slideshow-ep .ep-wrapper button.video-audio-toggle {
  position: absolute !important;
  bottom: 1rem !important;
  right: 1rem !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--accent) !important;
  /* Remove display: flex !important so JS can hide it via inline style */
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  opacity: 0.8;
}

.project-slideshow-ep .ep-wrapper button.video-audio-toggle:hover {
  background: transparent !important;
  transform: scale(1.1);
  opacity: 1;
}

.project-slideshow-ep .ep-wrapper button.video-audio-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Slideshow caption — below the slideshow */
.project-slideshow__caption {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(7px, 1.5vw, 11px);
  font-weight: bold;
  color: var(--gray);
  letter-spacing: 0.06em;
  opacity: 0.6;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
  text-align: center;
}

/* Project gallery — matches slideshow width */
.project-gallery {
  width: 85vw;
  max-width: none;
  margin-left: calc(50% - 42.5vw);
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 48px;
}

/* Gallery row patterns — flexbox for equal-height scaling */
.project-gallery__row {
  display: flex;
  gap: 5px;
  width: 100%;
}

.project-gallery__item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.project-gallery__item img,
.project-gallery__item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--card);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.project-gallery__item:has(img:not(.loaded)),
.project-gallery__item:has(video:not(.loaded)) {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.project-gallery__item img.loaded,
.project-gallery__item video.loaded {
  opacity: 1;
}

.project-gallery__item video.loaded {
  cursor: pointer;
}

.project-gallery__item--playing video.loaded {
  cursor: default;
}

@media (hover: hover) {
  .project-gallery__item:hover img.loaded,
  .project-gallery__item:hover video.loaded {
    opacity: 0.85;
  }
}

/* Edge-style loading indicator */
.edge-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  z-index: 1;
  transition: opacity 0.4s var(--ease);
}
.edge-loader--done {
  opacity: 0;
  pointer-events: none;
}
.edge-loader svg {
  width: 40px;
  height: 40px;
  animation: edge-loader-spin 1.2s linear infinite;
}
.edge-loader circle {
  fill: none;
  stroke: var(--black);
  stroke-width: 2;
  stroke-dasharray: 80;
  stroke-dashoffset: 60;
  stroke-linecap: square;
  filter: url(#edgeRoughness);
}
@keyframes edge-loader-spin {
  to { transform: rotate(360deg); }
}
.edge-loader--slideshow {
  position: absolute;
  inset: 0;
  min-height: 0;
}

/* Fallback: bare img/video without __item wrapper (legacy markup) */
.project-gallery > img,
.project-gallery > video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--card);
  cursor: pointer;
}

/* Gallery meta container */
.project-gallery__meta {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

/* Gallery caption */
.project-gallery__caption {
  font-family: var(--font-mono);
  font-size: clamp(7px, 1.5vw, 11px);
  color: var(--black);
  letter-spacing: 0.04em;
  opacity: 1;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--accent);
  padding: 0 4px;
}

/* Gallery Item Credits Overlay */
.gallery-item-credits {
  font-family: var(--font-mono);
  font-size: clamp(5px, 1vw, 8px);
  color: var(--black);
  letter-spacing: 0.06em;
  display: inline-block;
  white-space: nowrap;
  opacity: 1;
  background: transparent;
  padding: 0;
}

.gallery-item-credits span {
  margin-right: 6px;
  background: transparent;
  color: var(--black);
  padding: 0;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: var(--black);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.project-slideshow__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 2px;
  margin-bottom: 15px;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.project-slideshow__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--black);
  letter-spacing: 0.04em;
  opacity: 1;
  background: transparent;
  padding: 2px 8px;
}

.project-slideshow__credits {
  margin: 0;
  background: transparent;
  padding: 0;
  color: var(--black);
}

.project-slideshow__credits span {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--black);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

/* --- More Projects Page — per-project sections --- */

.more-projects__section {
  margin-bottom: 80px;
}

.more-projects__intro {
  width: 85vw;
  margin-left: calc(50% - 42.5vw);
  margin-bottom: 80px;
}

.more-projects__intro-card {
  background: var(--accent);
  color: var(--black);
  padding: 48px;
  transform: rotate(-1deg);
  transition: transform 0.5s var(--ease);
}

.more-projects__intro-text {
  font-size: 1.24rem;
  line-height: 1.8;
  color: rgba(0,0,0,0.7);
}

.more-projects__intro-text + .more-projects__intro-text {
  margin-top: 20px;
}

@media (hover: hover) {
  .more-projects__intro-card:hover {
    transform: rotate(0deg) scale(1.01);
  }
}

.more-projects__header {
  position: relative;
  width: 85vw;
  margin-left: calc(50% - 42.5vw);
  margin-bottom: 28px;
}

.more-projects__title {
  margin: 0;
  width: 100%;
}

.more-projects__title-text {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.96rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.92;
  color: #fff;
  background: #000;
  padding: 0.08em 0.035em 0.12em;
  transform-origin: left center;
  white-space: nowrap;
  will-change: transform;
  overflow: visible;
}

.more-projects__sticker {
  position: absolute;
  top: 57%;
  right: -14px;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center center;
  background: var(--accent);
  color: var(--black);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(89, 255, 0, 0.3);
  pointer-events: none;
  white-space: nowrap;
}

.more-projects__gallery {
  margin-bottom: 0;
}

/* Gallery overlay (project page) */
.project-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.project-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.project-overlay__content {
  max-width: 85vw;
  max-height: 85vh;
  position: relative;
}

.project-overlay__content img,
.project-overlay__content video {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.project-overlay__meta {
  position: absolute;
  top: 100%;


  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.project-overlay__caption {
  font-family: var(--font-mono);
  font-size: clamp(7px, 1.5vw, 11px);
  color: var(--black);
  letter-spacing: 0.04em;
  opacity: 1;
  background: var(--accent);
  padding: 2px 8px;
}

.project-overlay__credits {
  font-family: var(--font-mono);
  font-size: clamp(7px, 1.5vw, 11px);
  color: var(--black);
  letter-spacing: 0.06em;
  display: inline-block;
  background: transparent;
  padding: 0;
}

.project-overlay__credits span {
  margin-right: 6px;
  background: transparent;
  color: var(--black);
  padding: 0;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: var(--black);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.project-overlay__close {
  position: absolute;
  top: 100px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--black);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 201;
}

.project-overlay__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s var(--ease);
  z-index: 201;
}

.project-overlay__nav:hover { opacity: 1; }
.project-overlay__nav--prev { left: 24px; }
.project-overlay__nav--next { right: 24px; }

/* --- Project Slideshow Dots --- */

.project-slideshow__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0;
  z-index: 10;
  pointer-events: auto;
}

.project-slideshow__dot {
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease);
}

.project-slideshow__dot--active {
  background: var(--accent);
}

/* --- Project Detail Cards (Problem / Plan / Umsetzung) --- */

.project-cards {
  margin-bottom: 48px;
}

.project-cards__list {
  position: relative;
}

.project-card {
  position: sticky;
  top: 120px;
  background: var(--accent);
  border: none;
  padding: 48px;
  margin-bottom: 24px;
  transition: transform 0.5s var(--ease);
  transform-origin: top center;
  color: var(--black);
}

.project-card:nth-child(1) { transform: rotate(-2deg); }
.project-card:nth-child(2) { transform: rotate(1.5deg); }
.project-card:nth-child(3) { transform: rotate(-1deg); }

@media (hover: hover) {
  .project-card:hover {
    transform: rotate(0deg) scale(1.01);
  }
}

.project-card__number {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--black);
  padding: 2px 8px;
}

.project-card__title {
  font-family: var(--font-headline);
  font-size: 1.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--black);
}

.project-card__text {
  color: rgba(0,0,0,0.7);
  font-size: 1.24rem;
  line-height: 1.8;
}

/* --- About Hero with Portrait --- */

.about-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-hero__portrait {
  position: relative;
  width: 280px;
  height: 350px;
}

.about-hero__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.3);
  transition: filter 0.5s var(--ease);
}

.about-hero__portrait:hover .about-hero__portrait-img {
  filter: grayscale(0);
}

.about-hero__portrait-frame {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent);
  pointer-events: none;
  filter: url(#edgeRoughness);
}

.about-hero__text {
  max-width: 600px;
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-hero__portrait {
    width: 200px;
    height: 250px;
    margin: 0 auto;
  }
  .about-hero__text {
    max-width: 100%;
  }
}

/* --- About Page --- */

.about-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.about-content__intro {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--light);
  line-height: 1.7;
  margin-bottom: 80px;
  max-width: 700px;
}

.about-content__intro strong {
  color: var(--white);
  font-weight: 600;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.about-grid--single {
  grid-template-columns: 1fr;
  width: 100%;
  margin-left: 0;
  padding-inline: 0;
  box-sizing: border-box;
  gap: 0;
}

.about-grid--single > div,
.about-grid--single .about-grid__text {
  width: 100%;
  max-width: none;
}

.about-grid__section-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--accent);
  padding: 2px 8px;
}

.about-grid__text {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
}

.about-grid__list {
  list-style: none;
}

.about-grid__list li {
  font-size: 0.95rem;
  color: var(--light);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.about-grid__list li span {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* --- Legal Pages --- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 40px 120px;
}

.legal h1 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--white);
}

.legal p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal a {
  color: var(--black);
  text-decoration: none;
  background: var(--accent);
  padding: 1px 4px;
}

/* --- Footer Extended --- */

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.04em;
  transition: opacity 0.3s var(--ease);
}

.footer__links a:hover {
  opacity: 0.6;
}

.footer__social {
  display: flex;
  gap: 16px;
  list-style: none;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.footer__social a:hover {
  transform: scale(1.1);
  opacity: 0.7;
}

/* --- Fullscreen Footer with Contact --- */

.footer--fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  padding: 120px 40px 30px;
  position: relative;
  overflow: hidden;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  gap: 32px;
  z-index: 2;
  min-width: 0;
}

.footer__headline {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  background: var(--black);
  display: inline-block;
  padding: 4px 16px;
  width: fit-content;
  align-self: flex-start;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer__contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--black);
  transition: opacity 0.3s var(--ease);
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

.footer__contact-link:hover {
  opacity: 0.6;
}

.footer__contact-link svg {
  flex-shrink: 0;
}

.footer__social--large {
  gap: 24px;
  display: none;
}

.footer__social--large a {
  width: 48px;
  height: 48px;
}

.footer__form-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  border: none;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  flex-wrap: wrap;
}

.footer__form-toggle:hover {
  background: var(--black);
  color: #fff;
}

.footer__form-toggle svg {
  transition: transform 0.3s var(--ease);
}

.footer__form-toggle--open svg {
  transform: rotate(180deg);
}

.footer__form-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
  width: 100%;
  max-width: min(600px, 100%);
}

.footer__form-wrapper--open {
  opacity: 1;
}

.footer__form-wrapper .form {
  padding-top: 24px;
}

.footer__form-wrapper .btn--primary {
  width: 100%;
  white-space: normal;
  text-align: center;
  background: var(--black);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer__form-wrapper .btn--primary:hover,
.footer__form-wrapper .btn--primary:active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  transform: none;
}

.footer__form-wrapper .btn--primary.btn--loading,
.footer__form-wrapper .btn--primary.btn--loading:hover,
.footer__form-wrapper .btn--primary.btn--error,
.footer__form-wrapper .btn--primary.btn--error:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  transform: none;
  opacity: 1;
}

.footer__form-wrapper .btn--primary.btn--sent,
.footer__form-wrapper .btn--primary.btn--sent:hover {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  transform: none;
}

.footer__form-wrapper .form__input,
.footer__form-wrapper .form__textarea {
  background: rgba(0,0,0,0.06);
  border-color: var(--black);
  color: var(--black);
}

.footer__form-wrapper .form__input::placeholder,
.footer__form-wrapper .form__textarea::placeholder {
  color: rgba(0,0,0,0.5);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.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;
}

.footer__bottom {
  grid-column: 1 / -1;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 2;
}

.footer__bottom .footer__links {
  justify-content: flex-start;
}

.footer__bottom .footer__social {
  gap: 16px;
}


/* --- Page Header (for sub-pages) --- */

.page-header {
  padding: 160px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  background: var(--accent);
  padding: 2px 8px;
}

.page-header__title {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-header__desc {
  font-size: 1rem;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.7;
}

/* --- Back Link --- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color 0.3s var(--ease);
}

.back-link {
  position: relative;
  display: inline-flex;
}
.back-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  filter: url(#edgeRoughness);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.back-link:hover { color: var(--black); opacity: 1; }
.back-link:hover::after { opacity: 1; }

/* --- Project CTA Button (below subhero/slideshow) --- */

.project-cta-btn-wrapper {
  display: flex;
  justify-content: center;
  margin: 48px 0 56px;
  margin-top: 30px;
}

.project-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--black);
  border: none;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  opacity: 0.95;
}

.project-cta-btn:hover {
  opacity: 1;
  transform: scale(1.03);
}

body.overlay-active .project-cta-btn {
  opacity: 0;
  pointer-events: none;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav--scrolled { padding: 12px 24px; }
  .nav__links { display: none; }
  .burger { display: flex; }

  .hero { padding: 100px 24px 60px; }
  .section, .work, .cards, .contact { padding: 80px 24px; }

  .card { padding: 32px 24px; }

  .form__row { grid-template-columns: 1fr; }

  .work-stack__container { width: 85vw; max-width: 700px; height: 260px; padding: 0 24px; }
  .work-stack__item { width: 280px; }
  .work-stack--expanded .work-stack__item { width: 280px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-content { padding: 60px 24px 80px; }
  .legal { padding: 120px 24px 80px; }
  .page-header { padding: 120px 24px 40px; }
  .project-content { padding: 0 16px 80px; }
  .project-content__gallery { grid-template-columns: 1fr; }
  .project-card { padding: 32px 24px; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }

  /* 20% smaller text on mobile */
  .project-card__title { font-size: 1.56rem; }
  .project-card__text { font-size: 0.99rem; }
  .project-card__number { font-size: 13px; }
  .more-projects__intro-card { padding: 32px 24px; }
  .more-projects__intro-text { font-size: 0.99rem; }
  .project-sticker {
    transform: translateY(-50%) rotate(-28deg) scale(0.88);
    transform-origin: center center;
    right: 1vw;
  }
  .more-projects__sticker {
    transform: translateY(-50%) rotate(45deg) scale(0.86);
    transform-origin: center center;
    right: -8px;
  }
  .project-content__body { font-size: 1rem; }
  .project-content__lead { font-size: 1.1rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer--fullscreen { grid-template-columns: 1fr; padding: 100px 24px 24px; }
  .footer__contact { gap: 24px; }
  .footer__headline { max-width: 100%; }
  .footer__contact-link { width: 100%; }
  .footer__form-toggle { width: 100%; justify-content: space-between; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer__bottom .footer__social { justify-content: center; }
  .footer__bottom .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__name { font-size: 2.6rem; }
  .hero__sub { font-size: 0.8rem; }
  .card { padding: 24px 20px; }
  .work-stack { min-height: 400px; }
  .work-stack__container { width: 90vw; max-width: 320px; height: 220px; }
  .work-stack__item { width: 208px; }
  .project-sticker {
    transform: translateY(-50%) rotate(-28deg) scale(0.76);
    right: -1vw;
  }
  .more-projects__sticker {
    transform: translateY(-50%) rotate(45deg) scale(0.72);
    right: -2px;
  }
  .footer--fullscreen { padding: 96px 16px 20px; }
  .footer__headline { font-size: clamp(2rem, 12vw, 2.8rem); }
  .footer__contact-link { font-size: 13px; }
  .footer__form-toggle { padding: 12px 16px; }
}

/* Work Stack Grid Responsive */
@media (max-width: 1200px) {
  .work-stack--expanded .work-stack__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .work-stack--expanded .work-stack__container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
  }
  .work-stack--expanded .work-stack__item--landscape {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .work-stack--expanded .work-stack__container {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }
  .work-stack--expanded .work-stack__item,
  .work-stack--expanded .work-stack__item:hover {
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transform: none !important;
  }
  .work-stack--expanded .work-stack__item--landscape {
    grid-column: span 1;
  }
  .work-stack--expanded .work-stack__img-wrapper {
    display: block !important;
    width: 100%;
  }
  .work-stack--expanded .work-stack__info {
    opacity: 1;
    padding: 8px 4px 4px;
  }
  .work-stack--expanded .work-stack__sub-stack {
    max-width: 400px;
    width: 100%;
    padding: 18px 18px 6px;
  }
  /* Stack single-image rows; keep slim-pair rows side-by-side */
  .project-gallery__row { flex-direction: column; }
  .project-gallery__item { flex: 0 0 auto !important; width: 100%; }
  .project-gallery__row--ss { flex-direction: row; }
  .project-gallery__row--ss .project-gallery__item { flex: 1 1 0 !important; width: auto; }
  .project-gallery {
    width: 100%;
    margin-left: 0;
    padding: 0;
  }
}

/* --- Hero project cover thumbnails (session-random, scroll-driven) --- */

.hero-cover {
  position: absolute;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transform: rotate(var(--rot, 0deg)) translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-cover--visible {
  opacity: 1;
  transform: rotate(var(--rot, 0deg)) translateY(0);
}

.hero-cover img {
  display: block;
  width: clamp(30px, 12vw, 150px);
  height: auto;
  user-select: none;
}

@media (max-width: 1023px) {
  .hero-cover--desktop { display: none; }
}

/* --- Scroll Labels (green sticker tags on scroll animations) --- */

.scroll-label {
  position: absolute;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.4vw, 0.95rem);
  line-height: 1.25;
  padding: clamp(5px, 0.8vw, 10px) clamp(8px, 1.2vw, 16px);
  pointer-events: none;
  z-index: 25;
  max-width: clamp(120px, 20vw, 240px);
  opacity: 0;
  transform: rotate(var(--rot, 0deg)) translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  user-select: none;
}

.scroll-label--visible {
  opacity: 1;
  transform: rotate(var(--rot, 0deg)) translateY(0);
}

/* --- About Scroll Sequence --- */

.about-scroll {
  position: relative;
  height: 250vh;
  margin-top: -80px;
  z-index: 0;
}

.about-scroll__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.about-scroll__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 10;
  pointer-events: none;
}

/* About page — programme icons */
.about-programmes {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.about-programmes__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 24px;
}
.about-programmes__grid img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}
.about-programmes__grid img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* About page — CV Section */
.about-cv {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.about-cv__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .about-cv__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.about-cv__column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-cv__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 0;
  border-left: none;
}
.about-cv__date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--black);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  background: var(--accent);
  padding: 1px 6px;
  width: fit-content;
}
.about-cv__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-cv__content strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.about-cv__content p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}
.about-cv__detail {
  font-size: 0.85rem !important;
  color: var(--gray) !important;
}
.about-cv__link {
  font-size: 0.85rem;
  color: var(--black);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.about-cv__link:hover {
  opacity: 0.7;
}
.about-cv__workshops {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-cv__workshops li {
  font-size: 0.9rem;
  color: var(--gray);
  padding-left: 16px;
  position: relative;
}
.about-cv__workshops li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--black);
}

.about-cv__download {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

.about-cv__download-btn,
.about-cv__download-btn:visited,
.about-cv__download-btn:hover,
.about-cv__download-btn:focus,
.about-cv__download-btn:active {
  background: var(--black);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: var(--black);
}

.about-cv__download-btn:hover {
  background: #111;
  border-color: #111;
}

.about-cv__download-btn * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
