:root {
  --bg: #06080c;
  --bg-soft: #0c1018;
  --text: #f1f3f8;
  --muted: #9ba3b5;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #88a6ff;
}

* {
  box-sizing: border-box;
}

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

#works,
#about,
#contact {
  scroll-margin-top: 6rem;
}

html,
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #101826, var(--bg) 45%);
  color: var(--text);
  scroll-behavior: smooth;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}

.hero,
main,
.footer,
.project-wrapper {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(12px);
  background: rgba(5, 8, 14, 0.82);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.hero {
  min-height: 88vh;
  display: grid;
  align-content: start;
  padding: clamp(9rem, 18vh, 12rem) 7vw 6rem;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.08;
  margin: 0.2rem 0 1rem;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.cta {
  display: inline-block;
  margin-top: 1.8rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.9rem 1.4rem;
}

.hero-gradient {
  position: absolute;
  width: 45vw;
  height: 45vw;
  min-width: 320px;
  min-height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  background: linear-gradient(130deg, rgba(88, 120, 255, 0.35), rgba(129, 255, 227, 0.1));
  right: -10vw;
  top: 5vh;
}

.section-title {
  padding: 4rem 7vw 1rem;
}

.section-title p {
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.section-title h2,
.about h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0 7vw 1.5rem;
}

.filter-bar button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.filter-bar .active {
  color: var(--text);
  border-color: var(--accent);
}

.project-grid {
  padding: 0 7vw 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: rgba(5, 8, 14, 0.7);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.project-lang-toggle {
  position: fixed;
  z-index: 20;
  top: 1.4rem;
  right: 2vw;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  margin: 0;
  padding: 2rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.project-card {
  position: relative;
  min-height: 430px;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #090c12;
}

.project-card-media {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(136, 166, 255, 0.13), transparent 65%), #070a10;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card-media img {
  transform: scale(1.035);
}

.project-card-content {
  min-height: 185px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, #111722, #090c12);
}

.project-card .meta {
  color: #ccd6ff;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-card p {
  color: #d6deef;
  line-height: 1.6;
  margin-bottom: 0;
}

.about {
  padding: 4rem 7vw 7rem;
  max-width: 1280px;
}

.about p {
  color: var(--muted);
  line-height: 1.9;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 2rem;
}

.studio-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.studio-meta article {
  min-height: 150px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.studio-meta span {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-meta h3 {
  margin: 0.7rem 0 0;
  font-size: 1.5rem;
}

.studio-meta a {
  color: var(--text);
  line-height: 1.9;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  overflow-wrap: anywhere;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 7vw;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer a {
  color: var(--muted);
  margin-right: 1rem;
  text-decoration: none;
}

.project-wrapper {
  padding: 8rem 7vw 5rem;
  max-width: 1320px;
  margin: 0 auto;
  --theme-accent: #88a6ff;
  --theme-accent-2: #f2b45f;
  position: relative;
  isolation: isolate;
}

.project-body {
  background: #070a10;
  transition: background-color 0.45s ease, color 0.45s ease;
}

.project-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

.project-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere-mote {
  position: absolute;
  width: clamp(80px, 13vw, 210px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 22%, transparent);
  opacity: .38;
  transform: rotate(12deg);
  animation: project-mote-drift 18s ease-in-out infinite alternate;
}

.atmosphere-mote-1 { left: 3%; top: 18%; }
.atmosphere-mote-2 { right: 5%; top: 27%; width: 8vw; animation-delay: -3s; }
.atmosphere-mote-3 { left: 19%; bottom: 4%; width: 6vw; animation-delay: -7s; }
.atmosphere-mote-4 { right: 22%; bottom: 10%; width: 12vw; animation-delay: -11s; }
.atmosphere-mote-5 { left: 48%; top: 8%; width: 4vw; animation-delay: -5s; }
.atmosphere-mote-6 { right: 38%; top: 57%; width: 7vw; animation-delay: -13s; }
.atmosphere-mote-7 { left: 7%; top: 69%; width: 3vw; animation-delay: -9s; }

@keyframes project-mote-drift {
  to { translate: 22px -16px; rotate: 9deg; }
}

.project-nav .nav-links {
  align-items: center;
}

.project-nav .nav-links a {
  color: var(--muted);
}

.project-hero {
  position: relative;
}

.project-visual {
  position: relative;
  min-height: min(610px, 64vh);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--project-accent) 18%, transparent), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.025) 80px),
    #070a10;
  isolation: isolate;
}

.project-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(4, 6, 10, 0.78));
  z-index: 4;
}

.visual-layer {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.16);
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.38));
}

.visual-layer-wide {
  inset: 7% 18% 14% 4%;
  width: 78%;
  height: 79%;
  object-fit: cover;
}

.visual-layer-figure {
  right: 3%;
  bottom: -3%;
  width: min(39%, 440px);
  max-height: 88%;
  object-fit: contain;
  border: 0;
  z-index: 2;
}

.visual-layer-card {
  right: 5%;
  top: 8%;
  width: min(23%, 250px);
  max-height: 72%;
  object-fit: contain;
  transform: rotate(4deg);
  z-index: 3;
}

.visual-layer-card:nth-of-type(3) {
  right: 21%;
  top: 20%;
  transform: rotate(-5deg);
}

.visual-layer-strip {
  left: 7%;
  bottom: 5%;
  width: min(64%, 760px);
  max-height: 26%;
  object-fit: contain;
  z-index: 3;
}

.visual-layer-mark {
  right: 4%;
  top: 5%;
  width: min(48%, 560px);
  max-height: 36%;
  padding: 0.6rem;
  object-fit: contain;
  background: rgba(5, 7, 11, 0.68);
  z-index: 3;
}

.project-headline {
  position: relative;
  margin: -5.5rem 3vw 0;
  padding: 1.5rem clamp(1.2rem, 3vw, 2.5rem);
  width: min(820px, 85%);
  z-index: 6;
  border-left: 4px solid var(--theme-accent);
  background: rgba(7, 10, 16, .88);
  backdrop-filter: blur(18px);
}

.project-headline h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
}

.project-meta {
  color: var(--theme-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.detail-block {
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.detail-block h3 {
  margin-top: 0;
}

.detail-block p {
  color: var(--muted);
  line-height: 1.7;
}

.project-signal {
  position: absolute;
  right: 1.3rem;
  top: 1.3rem;
  margin: 0;
  color: var(--theme-accent-2);
  font: 700 .65rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .14em;
}

.project-section-nav {
  position: sticky;
  top: 76px;
  z-index: 15;
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 2rem 0 1rem auto;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 45%, var(--line));
  background: rgba(5, 8, 13, .84);
  backdrop-filter: blur(14px);
  overflow-x: auto;
}

.section-nav-label,
.project-section-nav a {
  flex: 0 0 auto;
  padding: .7rem .8rem;
  color: var(--muted);
  font: 700 .68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-decoration: none;
}

.section-nav-label {
  color: var(--theme-accent);
  border-right: 1px solid var(--line);
  text-transform: uppercase;
}

.project-section-nav a:hover,
.project-section-nav a:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--theme-accent) 18%, transparent);
}

.project-lead {
  max-width: 780px;
  margin: 2rem 0 3.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.8;
}

.feature-stack {
  display: grid;
  gap: 1px;
  margin: 2rem 0 4rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.web-feature {
  position: relative;
  min-height: 320px;
  padding: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(135deg, rgba(17, 24, 38, 0.98), rgba(6, 8, 12, 0.98));
  overflow: hidden;
}

.web-feature:nth-child(even) .feature-copy {
  order: 2;
}

.web-feature:nth-child(even) .feature-art {
  order: 1;
}

.web-feature::after {
  content: attr(data-index);
  position: absolute;
  right: 2rem;
  top: 0.5rem;
  color: rgba(136, 166, 255, 0.08);
  font-size: clamp(6rem, 16vw, 13rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.feature-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.feature-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-wrapper .feature-kicker { color: var(--theme-accent); }

.web-feature h2 {
  margin: 0 0 1.2rem;
  max-width: 900px;
  font-size: clamp(1.7rem, 3.7vw, 3.2rem);
}

.feature-copy > p:not(.feature-kicker) {
  color: var(--muted);
  line-height: 1.85;
}

.feature-art {
  position: relative;
  z-index: 2;
  margin: 0;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(circle, rgba(136, 166, 255, 0.12), transparent 70%), #080b10;
}

.feature-art img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

.project-video {
  margin: 4rem 0 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 24, 38, 0.98), rgba(6, 8, 12, 0.98));
}

.project-video h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}

.project-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
}

.project-media {
  margin: 5rem 0 1rem;
  padding: clamp(1.3rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: rgba(8, 11, 17, .88);
}

.media-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.media-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.media-intro {
  color: var(--muted);
  line-height: 1.75;
}

.media-group + .media-group {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
}

.media-slide {
  appearance: none;
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-slide-frame {
  position: relative;
  height: 100%;
  margin: 0;
  padding: .6rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 36%, var(--line));
  background: #080b10;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.media-slide:hover .media-slide-frame,
.media-slide:focus-visible .media-slide-frame {
  transform: translateY(-5px);
  border-color: var(--theme-accent);
  box-shadow: 0 16px 36px rgba(0,0,0,.34), 0 0 22px color-mix(in srgb, var(--theme-accent) 12%, transparent);
}

.media-slide-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #030508;
}

.media-slide-frame figcaption {
  padding: .75rem .2rem .2rem;
  color: var(--muted);
  font: 600 .68rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lightbox-active { overflow: hidden; }

.lightbox.open {
  animation: lightbox-in .24s ease both;
}

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Out the Universe — tactile tabletop map */
body[data-project='out-the-universe']::before {
  background:
    linear-gradient(rgba(76,123,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,123,255,.08) 1px, transparent 1px),
    radial-gradient(circle at 72% 20%, rgba(240,82,145,.1), transparent 28%);
  background-size: 58px 58px, 58px 58px, auto;
  transform: perspective(700px) rotateX(4deg) scale(1.06);
}

.theme-out-the-universe .project-visual {
  background: linear-gradient(135deg, #13254c, #071021 48%, #3d1630);
  clip-path: polygon(0 0, 96% 0, 100% 8%, 100% 100%, 4% 100%, 0 92%);
}

.theme-out-the-universe .visual-layer-wide { object-fit: contain; filter: saturate(1.18) drop-shadow(0 30px 38px #000); }
.theme-out-the-universe .visual-layer-card { border: 4px solid #e7e2d5; box-shadow: 8px 10px 0 rgba(240,82,145,.45); }
.theme-out-the-universe .web-feature { background: linear-gradient(120deg, #101a31, #0a0d15 68%); }
.theme-out-the-universe .web-feature:nth-child(even) { background: linear-gradient(240deg, #281328, #0a0d15 68%); }
.theme-out-the-universe .feature-art { border: 6px solid #e8e1d4; transform: rotate(-1deg); box-shadow: 8px 8px 0 color-mix(in srgb, var(--theme-accent-2) 38%, transparent); }
.theme-out-the-universe .media-slide:nth-child(3n+2) .media-slide-frame { transform: rotate(.6deg); }
.theme-out-the-universe .media-slide:nth-child(3n) .media-slide-frame { transform: rotate(-.6deg); }
.theme-out-the-universe .atmosphere-mote { border-radius: 50%; box-shadow: inset 0 0 0 18px rgba(63,120,255,.025); }

/* Re: Out the Universe — LAN expedition terminal */
body[data-project='re-out-the-universe']::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(57,230,255,.025) 4px),
    linear-gradient(rgba(57,230,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,230,255,.055) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

.theme-re-out-the-universe .project-visual { background: radial-gradient(circle at 70% 42%, rgba(57,230,255,.2), transparent 26%), #020b0e; clip-path: polygon(0 0, 97% 0, 100% 6%, 100% 100%, 0 100%); }
.theme-re-out-the-universe .project-visual::before { content: 'ROOM_04 // SYNC READY // 04 PLAYERS'; position: absolute; z-index: 5; left: 1.4rem; top: 1.2rem; color: var(--theme-accent-2); font: 700 .68rem monospace; letter-spacing: .12em; }
.theme-re-out-the-universe .visual-layer-wide { object-fit: contain; opacity: .72; filter: hue-rotate(120deg) saturate(.7) contrast(1.2); }
.theme-re-out-the-universe .web-feature,
.theme-re-out-the-universe .project-video,
.theme-re-out-the-universe .project-media { background: rgba(2,13,17,.92); border-color: rgba(57,230,255,.24); }
.theme-re-out-the-universe .web-feature::before { content: 'ONLINE'; position: absolute; left: 1rem; top: 1rem; color: var(--theme-accent-2); font: 700 .62rem monospace; letter-spacing: .16em; }
.theme-re-out-the-universe .feature-art { border-color: rgba(57,230,255,.45); box-shadow: inset 0 0 40px rgba(57,230,255,.08); }
.theme-re-out-the-universe .media-slide-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 49%, rgba(57,230,255,.12) 50%, transparent 51%); background-size: 100% 7px; }
.theme-re-out-the-universe .atmosphere-mote { border-radius: 50%; box-shadow: 0 0 18px rgba(57,230,255,.12); }

/* Psycho Through — clinical record / game console */
body[data-project='psycho-through']::before {
  background:
    linear-gradient(rgba(102,207,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,207,255,.045) 1px, transparent 1px),
    linear-gradient(120deg, rgba(102,207,255,.09), transparent 42%);
  background-size: 26px 26px, 26px 26px, auto;
}

.theme-psycho-through .project-visual { background: linear-gradient(112deg, #d8e5e8 0 18%, #17394b 18% 62%, #0a1520 62%); clip-path: polygon(0 0, 100% 0, 100% 94%, 96% 100%, 0 100%); }
.theme-psycho-through .visual-layer-wide { filter: saturate(.7) contrast(1.06); }
.theme-psycho-through .visual-layer-figure { filter: drop-shadow(-18px 24px 0 rgba(8,25,35,.4)); }
.theme-psycho-through .web-feature { background: linear-gradient(100deg, #eef3f1 0 5px, #112534 5px 62%, #08101a); border-left: 4px solid var(--theme-accent-2); }
.theme-psycho-through .web-feature::before { content: 'CASE / ' attr(data-index); position: absolute; top: 1.2rem; left: 1.5rem; color: var(--theme-accent-2); font: 800 .64rem monospace; letter-spacing: .16em; }
.theme-psycho-through .feature-art { clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 8% 100%, 0 88%); }
.theme-psycho-through .feature-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(220,255,63,.18) 49%, transparent 54%); animation: psycho-scan 5s linear infinite; pointer-events: none; }
.theme-psycho-through .media-slide-frame { clip-path: polygon(0 0, 93% 0, 100% 8%, 100% 100%, 0 100%); border-left: 5px solid var(--theme-accent-2); }
@keyframes psycho-scan { from { translate: 0 -60%; } to { translate: 0 60%; } }

/* Versuch für Ketzerei — forbidden ceremonial card archive */
body[data-project='versuch-for-ketzerei'] { background: #090405; }
body[data-project='versuch-for-ketzerei']::before {
  background:
    repeating-conic-gradient(from 12deg at 78% 20%, rgba(214,171,84,.055) 0 1deg, transparent 1deg 12deg),
    radial-gradient(circle at 78% 20%, transparent 0 14%, rgba(169,31,47,.13) 14.2% 14.5%, transparent 15%);
}
.theme-versuch-for-ketzerei .project-visual { background: radial-gradient(circle at 64% 45%, #4b1017, #120608 48%, #050304 72%); border-color: rgba(214,171,84,.42); }
.theme-versuch-for-ketzerei .project-visual::before { content: ''; position: absolute; inset: 7%; border: 1px solid rgba(214,171,84,.35); clip-path: polygon(8% 0, 92% 0, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0 88%, 0 12%); }
.theme-versuch-for-ketzerei .visual-layer-figure { left: 8%; right: auto; width: min(48%, 530px); }
.theme-versuch-for-ketzerei .web-feature,
.theme-versuch-for-ketzerei .project-video,
.theme-versuch-for-ketzerei .project-media { background: linear-gradient(135deg, rgba(32,8,11,.97), rgba(6,3,4,.98)); border-color: rgba(214,171,84,.26); }
.theme-versuch-for-ketzerei .web-feature::before { content: '✦'; position: absolute; left: 1.2rem; top: 1rem; color: var(--theme-accent); font-size: 1.3rem; }
.theme-versuch-for-ketzerei .feature-art,
.theme-versuch-for-ketzerei .media-slide-frame { border: 1px solid #8f672d; box-shadow: inset 0 0 0 4px #16090b, inset 0 0 0 5px rgba(214,171,84,.35); }
.theme-versuch-for-ketzerei .media-slide-frame::before { content: '✦'; position: absolute; z-index: 2; right: 1rem; top: .8rem; color: var(--theme-accent); text-shadow: 0 0 10px #000; }
.theme-versuch-for-ketzerei .atmosphere-mote { border-radius: 50%; border-color: rgba(214,171,84,.18); }

/* The Way Home — illustrated travel scrapbook */
body[data-project='the-way-home'] { color: #173c3a; background: #f4ead8; }
body[data-project='the-way-home']::before {
  background:
    radial-gradient(circle, rgba(22,94,87,.09) 1.5px, transparent 1.7px),
    linear-gradient(120deg, rgba(239,106,98,.08), transparent 36%, rgba(54,169,157,.08));
  background-size: 26px 26px, auto;
}
body[data-project='the-way-home'] .noise { opacity: .06; }
body[data-project='the-way-home'] .project-nav { background: rgba(244,234,216,.88); border-color: rgba(23,60,58,.18); }
body[data-project='the-way-home'] .project-nav a,
body[data-project='the-way-home'] .logo,
body[data-project='the-way-home'] .lang-toggle { color: #173c3a; }
.theme-the-way-home .project-visual { border: 3px dashed #276f69; border-radius: 28px 8px 30px 12px; background: linear-gradient(150deg, #3ba99d 0 54%, #f6e7cc 54%); }
.theme-the-way-home .project-visual::after { background: linear-gradient(transparent, rgba(20,79,74,.38)); }
.theme-the-way-home .visual-layer { border: 0; filter: drop-shadow(8px 12px 0 rgba(23,60,58,.15)); }
.theme-the-way-home .project-headline { color: #173c3a; background: rgba(250,244,230,.94); border-left: 6px solid var(--theme-accent); border-radius: 4px 18px 4px 18px; box-shadow: 8px 8px 0 rgba(54,169,157,.22); }
.theme-the-way-home > .back-link { color: #173c3a; border-color: rgba(23,60,58,.36); background: rgba(250,244,230,.78); }
.theme-the-way-home .project-section-nav { background: rgba(250,244,230,.92); border: 2px dashed #2c8077; }
.theme-the-way-home .project-section-nav a,
.theme-the-way-home .section-nav-label,
.theme-the-way-home .project-lead,
.theme-the-way-home .feature-copy > p:not(.feature-kicker),
.theme-the-way-home .media-intro { color: #315a56; }
.theme-the-way-home .gallery-title { color: #173c3a; }
.theme-the-way-home .web-feature,
.theme-the-way-home .project-video,
.theme-the-way-home .project-media { color: #173c3a; background: #f8f0df; border: 3px dashed #2c8077; border-radius: 20px 7px 24px 10px; }
.theme-the-way-home .feature-stack { background: transparent; border: 0; gap: 1.4rem; }
.theme-the-way-home .web-feature:nth-child(even) { background: #e1f0e5; transform: rotate(.25deg); }
.theme-the-way-home .web-feature:nth-child(odd) { transform: rotate(-.2deg); }
.theme-the-way-home .web-feature::before { content: '●  ●  ●'; position: absolute; top: 1rem; left: 1rem; color: rgba(239,106,98,.65); letter-spacing: .4em; }
.theme-the-way-home .web-feature::after { color: rgba(54,169,157,.12); }
.theme-the-way-home .feature-art { background: #fff7e8; border: 3px dashed #ef6a62; border-radius: 46% 54% 43% 57% / 52% 45% 55% 48%; }
.theme-the-way-home .feature-list li { color: #234c48; background: rgba(54,169,157,.08); border-left-color: var(--theme-accent); }
.theme-the-way-home .feature-facts { background: rgba(23,60,58,.16); }
.theme-the-way-home .feature-facts dt,
.theme-the-way-home .feature-facts dd { color: #173c3a; background: #f8f0df; }
.theme-the-way-home .media-slide-frame { color: #173c3a; background: #fff8e9; border: 3px dashed #2c8077; border-radius: 14px 5px 18px 7px; }
.theme-the-way-home .media-slide-frame img { background: #fff8e9; border-radius: 8px; }
.theme-the-way-home .media-slide-frame figcaption { color: #315a56; }
.theme-the-way-home .atmosphere-mote { border: 3px dashed rgba(54,169,157,.18); border-radius: 48% 52% 43% 57%; }

.feature-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  color: #d6deef;
  line-height: 1.6;
}

.feature-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 2rem 0 0;
  background: var(--line);
}

.feature-facts dt,
.feature-facts dd {
  margin: 0;
  padding: 0.8rem 1rem;
  background: #0b1018;
}

.feature-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-facts dd {
  color: var(--text);
}

.slide-archive {
  margin-top: 3rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.slide-archive summary {
  padding: 1.2rem 1.4rem;
  color: var(--muted);
  cursor: pointer;
}

.slide-archive[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.slide-archive .media-stack {
  margin: 0;
  padding: 0 1.4rem 1.4rem;
}

.detail-block p + p {
  margin-top: 1rem;
}

.media-stack {
  margin-top: 2.4rem;
  display: grid;
  gap: 1rem;
}

.media-stack iframe,
.media-stack video,
.media-stack img {
  width: 100%;
  border: 1px solid var(--line);
  background: #000;
}

.media-stack iframe,
.media-stack video {
  aspect-ratio: 16 / 9;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 36vw);
  overflow-x: auto;
  gap: 0.8rem;
  padding-bottom: 0.3rem;
}

.gallery-section {
  min-width: 0;
}

.gallery-title {
  margin: 1.5rem 0 0.8rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: 0.02em;
}

.gallery img {
  cursor: zoom-in;
  height: 220px;
  object-fit: contain;
  background: #0a0d13;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  place-items: center;
  z-index: 30;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
}

.close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .nav {
    padding: 1rem 5vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .project-nav {
    flex-direction: row;
    align-items: center;
  }

  .project-nav .nav-links > a { display: none; }

  .hero {
    padding: 9.5rem 7vw 4rem;
  }

  .about-copy,
  .studio-meta {
    grid-template-columns: 1fr;
  }

  .project-wrapper {
    padding: 7.5rem 5vw 2.5rem;
  }

  .logo {
    max-width: 45vw;
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 0.65rem;
  }

  .nav-links a {
    font-size: 0.7rem;
  }

  .project-visual {
    min-height: 420px;
  }

  .project-headline {
    width: calc(100% - 1.2rem);
    margin: -3rem .6rem 0;
  }

  .project-signal {
    position: static;
    margin-bottom: .7rem;
  }

  .project-section-nav {
    top: 68px;
    width: 100%;
    margin-top: 1.2rem;
  }

  .section-nav-label { display: none; }

  .visual-layer-wide {
    inset: 6% 5% 24%;
    width: 90%;
    height: 70%;
  }

  .visual-layer-figure {
    width: 54%;
  }

  .visual-layer-mark {
    width: 62%;
  }

  .gallery {
    grid-auto-columns: 86vw;
  }

  .project-lang-toggle {
    top: 0.7rem;
    right: 0.7rem;
  }

  .web-feature {
    min-height: 0;
    padding: 2rem 1.3rem;
    grid-template-columns: 1fr;
  }

  .web-feature:nth-child(even) .feature-copy,
  .web-feature:nth-child(even) .feature-art {
    order: initial;
  }

  .web-feature::after {
    right: 0.5rem;
  }

  .feature-facts {
    grid-template-columns: 1fr;
  }

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

  .project-media { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere-mote,
  .theme-psycho-through .feature-art::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
