.projects-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  align-items: center;
  min-height: min(750px, calc(100svh - 80px));
  padding: clamp(4.8rem, 10vw, 8.5rem) 0 clamp(4.8rem, 9vw, 7.5rem);
}

.projects-hero::before {
  position: absolute;
  z-index: -1;
  top: 6%;
  right: -18%;
  width: min(64vw, 830px);
  aspect-ratio: 1;
  content: "";
  background: radial-gradient(circle, rgba(135, 117, 235, .21), rgba(231, 226, 255, .1) 35%, transparent 68%);
}

.projects-hero .display-title { max-width: 720px; }

.projects-hero .lead { max-width: 585px; }

.project-console {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 1.45rem;
  border: 1px solid rgba(98, 70, 217, .19);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

.project-console::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(98, 70, 217, .045) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(98, 70, 217, .045) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.console-head,
.console-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.console-head p,
.console-bottom span {
  margin: 0;
  color: var(--muted);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.console-head b { color: var(--accent); font-size: .8rem; }

.depot-map {
  position: absolute;
  inset: 18% 7% 18%;
  width: 86%;
  height: 65%;
  overflow: visible;
}

.depot-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.depot-map .depot-base { stroke: #e5e1ef; stroke-width: 4; }
.depot-map .depot-route { stroke: var(--accent); stroke-width: 5; stroke-dasharray: 12 10; animation: route-dash 15s linear infinite; }
.depot-map .depot-route.alt { stroke: #ae9ff0; stroke-width: 3; stroke-dasharray: 6 9; animation-duration: 19s; animation-direction: reverse; }
.depot-map .depot-stop { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.depot-map .depot-stop.major { fill: var(--accent); stroke: #fff; stroke-width: 4; filter: drop-shadow(0 0 8px rgba(98, 70, 217, .4)); }

.depot-train {
  position: absolute;
  z-index: 3;
  top: 40%;
  left: 26%;
  width: 31px;
  height: 17px;
  border: 3px solid var(--accent);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 17px rgba(98, 70, 217, .2);
  animation: depot-train 7.4s var(--ease-out) infinite alternate;
}

.depot-train::before,
.depot-train::after { position: absolute; bottom: -7px; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--ink); }
.depot-train::before { left: 3px; }
.depot-train::after { right: 3px; }

.console-label {
  position: absolute;
  z-index: 3;
  padding: .42rem .55rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: .42rem;
  background: #fff;
  box-shadow: 0 8px 17px rgba(31, 24, 55, .07);
  font-size: .6rem;
  font-weight: 750;
}

.console-label.one { top: 25%; right: 8%; }
.console-label.two { bottom: 25%; left: 6%; }
.console-label.three { right: 13%; bottom: 20%; }

.console-bottom { position: absolute; right: 1.45rem; bottom: 1.3rem; left: 1.45rem; }
.console-bottom strong { font-size: .75rem; letter-spacing: -.025em; }

.depot-overview {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
  margin-top: 2.2rem;
}

.depot-overview article {
  min-height: 96px;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .82);
}

.depot-overview b { display: block; margin-bottom: .5rem; color: var(--accent); font-size: 1.5rem; letter-spacing: -.08em; line-height: 1; }
.depot-overview span { color: var(--muted); font-size: .63rem; font-weight: 700; line-height: 1.45; }

.project-strip {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.project-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-strip-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

.project-strip-item b { display: grid; place-items: center; flex: none; width: 27px; height: 27px; color: var(--accent); border: 1px solid var(--accent-pale); border-radius: 50%; background: #fff; font-size: .62rem; }

.project-depot { padding-top: clamp(5.5rem, 10vw, 8.5rem); }

.depot-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.7rem; }
.depot-head h2 { max-width: 620px; margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 760; letter-spacing: -.08em; line-height: .94; }
.depot-head h2 span { color: var(--accent); }
.depot-head > p { max-width: 345px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; }

.filter-chip {
  min-height: 35px;
  padding: 0 .78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .72rem;
  font-weight: 730;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.filter-chip:hover { border-color: var(--accent-pale); color: var(--accent); transform: translateY(-1px); }
.filter-chip[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 7px 16px rgba(98, 70, 217, .18); }
.filter-result { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 650; }

.project-list {
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.3rem 0 clamp(5.5rem, 10vw, 9rem);
}

.project-list::before {
  position: absolute;
  top: 4.1rem;
  bottom: 6rem;
  left: 2.1rem;
  width: 1px;
  content: "";
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 15px);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(290px, .7fr);
  gap: 1.6rem;
  align-items: stretch;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 22px rgba(31, 24, 55, .035);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease-out), opacity .25s ease;
}

.project-card:hover { z-index: 2; border-color: rgba(98, 70, 217, .35); box-shadow: var(--shadow); }
.project-card[hidden] { display: none; }

.project-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 49px;
  height: 49px;
  color: var(--accent);
  border: 1px solid var(--accent-pale);
  border-radius: 50%;
  background: var(--soft-violet);
  font-size: .71rem;
  font-weight: 800;
}

.project-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.project-copy .project-status { margin-bottom: .85rem; }
.project-copy h3 { margin: 0; font-size: clamp(1.9rem, 3.5vw, 3.25rem); font-weight: 760; letter-spacing: -.075em; line-height: .95; }
.project-copy h3 span { color: var(--accent); }
.project-copy > p:not(.project-status) { max-width: 560px; margin: 1.1rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.45rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .34rem .52rem; color: var(--muted); border: 1px solid var(--line); border-radius: .4rem; background: var(--soft); font-size: .62rem; font-weight: 730; }

.project-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.55rem; }
.project-links a { color: var(--accent); font-size: .75rem; font-weight: 760; text-decoration: none; transition: transform .2s ease; }
.project-links a:hover { transform: translateX(3px); }

.project-art {
  position: relative;
  min-height: 265px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--soft);
}

.underground-art { background: radial-gradient(circle at 80% 20%, rgba(135, 117, 235, .25), transparent 35%), linear-gradient(145deg, #eeebff, #faf9ff); }
.math-art { background: #201b34; }
.signal-art { background: linear-gradient(145deg, #fff8f2, #fff 58%, #f7f2ff); }

.underground-art::before,
.underground-art::after { position: absolute; content: ""; border: 1px solid rgba(98, 70, 217, .19); border-radius: 50%; }
.underground-art::before { width: 270px; height: 270px; top: -75px; right: -70px; }
.underground-art::after { width: 170px; height: 170px; bottom: -80px; left: -54px; }

.underground-map,
.math-graph,
.signal-grid-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.underground-map path { fill: none; stroke-linecap: round; }
.underground-map .map-base { stroke: rgba(98, 70, 217, .15); stroke-width: 17; }
.underground-map .map-route { stroke: var(--accent); stroke-width: 3.5; stroke-dasharray: 10 8; animation: route-dash 13s linear infinite; }
.underground-map .map-stop { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.underground-map .map-stop.main { fill: var(--accent); stroke: #fff; stroke-width: 4; }

.art-caption {
  position: absolute;
  z-index: 2;
  right: .9rem;
  bottom: .85rem;
  left: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.art-caption b { color: var(--accent); }

.art-switcher {
  position: absolute;
  z-index: 3;
  top: .9rem;
  right: .9rem;
  display: flex;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid rgba(98, 70, 217, .14);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 7px 16px rgba(31, 24, 55, .06);
}

.art-switcher button {
  padding: .35rem .42rem;
  color: var(--muted);
  border: 0;
  border-radius: .3rem;
  background: transparent;
  font-size: .56rem;
  font-weight: 800;
}

.art-switcher button[aria-pressed="true"] { color: #fff; background: var(--accent); }

.underground-art[data-view="takt"] .map-route { stroke: #8b78ed; stroke-dasharray: 3 7; animation-duration: 4s; }
.underground-art[data-view="fluss"] .map-route { stroke: var(--signal); stroke-width: 5; }

.math-orbit-large {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(218, 211, 255, .35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.math-orbit-large::before,
.math-orbit-large::after { position: absolute; top: 50%; left: 50%; content: ""; border: 1px solid rgba(218, 211, 255, .2); border-radius: 50%; transform: translate(-50%, -50%); }
.math-orbit-large::before { width: 92px; height: 92px; }
.math-orbit-large::after { width: 220px; height: 220px; }
.math-symbol { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; place-items: center; width: 65px; height: 65px; color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: .85rem; background: linear-gradient(145deg, #8c79f1, #5b40ca); font-size: 1.1rem; font-weight: 800; transform: translate(-50%, -50%); box-shadow: 0 0 0 11px rgba(135,117,235,.12); }
.math-dot { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #d6ceff; box-shadow: 0 0 13px #d6ceff; animation: math-orbit 7s linear infinite; }
.math-dot.two { width: 7px; height: 7px; animation-delay: -3.4s; }
.math-art .art-caption { color: #b8b0d0; }
.math-art .art-caption b { color: #d6ceff; }

.signal-grid-art {
  opacity: .75;
  background:
    linear-gradient(90deg, rgba(98, 70, 217, .06) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(98, 70, 217, .06) 1px, transparent 1px) 0 0 / 26px 26px;
}

.signal-pulse-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 14px rgba(231, 125, 53, .1), 0 0 0 42px rgba(231, 125, 53, .06), 0 0 0 76px rgba(98, 70, 217, .04);
  transform: translate(-50%, -50%);
}

.signal-pulse-art::before,
.signal-pulse-art::after { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; content: ""; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.signal-pulse-art::after { width: 4px; height: 4px; background: var(--warning); }
.signal-node { position: absolute; width: 13px; height: 13px; border: 2px solid var(--warning); border-radius: 50%; background: #fff; }
.signal-node.one { top: 27%; left: 22%; }
.signal-node.two { top: 28%; right: 20%; }
.signal-node.three { bottom: 21%; left: 29%; }
.signal-node.four { right: 28%; bottom: 22%; }
.signal-connection { position: absolute; top: 50%; left: 50%; width: 145px; height: 1px; background: rgba(231,125,53,.35); transform-origin: left; }
.signal-connection.one { transform: rotate(-146deg); }
.signal-connection.two { transform: rotate(-35deg); }
.signal-connection.three { transform: rotate(135deg); }
.signal-connection.four { transform: rotate(40deg); }

.project-card--large { grid-template-columns: 70px minmax(0, 1fr) minmax(350px, .86fr); min-height: 410px; }
.project-card--large .project-art { min-height: 340px; }

.archive-note {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.6rem;
  padding: 1.5rem 0 .5rem;
}

.archive-note > span { position: relative; z-index: 1; display: grid; place-items: center; width: 49px; height: 49px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 50%; background: var(--paper); font-size: 1.1rem; }
.archive-note h3 { margin: .25rem 0 .5rem; font-size: 1.35rem; letter-spacing: -.045em; }
.archive-note p { max-width: 560px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }

.project-method {
  padding: clamp(5.5rem, 9vw, 8.5rem) 0;
  background: var(--soft);
}

.method-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.method-grid h2 { max-width: 460px; margin: 0; font-size: clamp(2.4rem, 4.7vw, 4.4rem); font-weight: 760; letter-spacing: -.08em; line-height: .95; }
.method-grid h2 span { color: var(--accent); }
.method-copy { display: grid; gap: 1.4rem; }
.method-copy > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.78; }
.method-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.method-fact { padding: 1rem; border-top: 1px solid var(--line-strong); }
.method-fact b { display: block; margin-bottom: .6rem; color: var(--accent); font-size: .67rem; letter-spacing: .1em; }
.method-fact span { color: var(--muted); font-size: .77rem; font-weight: 650; line-height: 1.5; }

@keyframes depot-train { 0% { transform: translate(0, 0) rotate(-13deg); } 50% { transform: translate(132px, 18px) rotate(18deg); } 100% { transform: translate(199px, 73px) rotate(29deg); } }
@keyframes math-orbit { from { transform: rotate(0deg) translateX(111px) rotate(0deg); } to { transform: rotate(360deg) translateX(111px) rotate(-360deg); } }

@media (max-width: 920px) {
  .projects-hero { grid-template-columns: 1fr; min-height: 0; }
  .project-console { width: min(570px, 100%); min-height: 390px; margin-left: auto; }
  .project-card,
  .project-card--large { grid-template-columns: 55px 1fr; }
  .project-art { grid-column: 2; }
  .project-card--large .project-art { min-height: 300px; }
  .project-list::before { left: 1.9rem; }
  .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .projects-hero { padding-top: 4.2rem; }
  .project-console { min-height: 350px; }
  .depot-overview { grid-template-columns: 1fr 1fr 1fr; margin-top: 1.1rem; }
  .depot-overview article { min-height: 82px; padding: .65rem; }
  .depot-overview b { font-size: 1.22rem; }
  .depot-overview span { font-size: .57rem; }
  .console-label { display: none; }
  .project-strip-inner { grid-template-columns: 1fr; gap: .5rem; }
  .depot-head { align-items: start; flex-direction: column; gap: 1rem; }
  .depot-head > p { max-width: 560px; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .project-list::before { left: 1.55rem; }
  .project-card,
  .project-card--large { grid-template-columns: 45px 1fr; gap: 1rem; padding: 1.2rem; }
  .project-index { width: 39px; height: 39px; font-size: .61rem; }
  .project-art { min-height: 230px; }
  .project-card--large .project-art { min-height: 250px; }
  .project-copy h3 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .archive-note { grid-template-columns: 45px 1fr; gap: 1rem; }
  .archive-note > span { width: 39px; height: 39px; }
  .method-facts { grid-template-columns: 1fr; gap: 0; }
  .method-fact { display: grid; grid-template-columns: 5rem 1fr; align-items: start; gap: .8rem; }
  .method-fact b { margin: 0; }
}

@media (max-width: 420px) {
  .project-console { min-height: 320px; padding: 1rem; }
  .console-bottom { right: 1rem; bottom: 1rem; left: 1rem; }
  .project-card,
  .project-card--large { grid-template-columns: 1fr; }
  .project-list::before { display: none; }
  .project-index { display: none; }
  .project-art { grid-column: 1; }
  .archive-note { grid-template-columns: 1fr; }
  .archive-note > span { display: none; }
  .filter-group { width: 100%; }
  .filter-chip { flex: 1 1 auto; }
}
