:root {
  --ink: #eef4ff;
  --muted: #91a2bd;
  --navy: #07162f;
  --navy-soft: #0b244a;
  --card: rgba(8, 25, 52, 0.78);
  --line: rgba(117, 149, 193, 0.2);
  --coral: #ff674f;
  --coral-soft: #ff9a73;
  --blue: #4ea5ff;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -12%, rgba(50, 103, 166, 0.3), transparent 38rem),
    radial-gradient(circle at 8% 70%, rgba(255, 103, 79, 0.08), transparent 28rem),
    linear-gradient(180deg, #081a38 0%, #050f22 72%, #040b18 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 16px;
  color: var(--navy);
  background: white;
  border-radius: 99px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  display: flex;
  min-height: 49vh;
  padding: 76px 0 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.language-switch {
  position: absolute;
  top: 24px;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #526681;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.language-switch button {
  padding: 7px 6px;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.language-switch button:hover,
.language-switch button:focus-visible,
.language-switch button[aria-pressed="true"] {
  color: white;
  border-color: var(--coral);
  outline: none;
}

.studio-logo {
  display: block;
  width: min(720px, 82vw);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 8px 24px rgba(31, 94, 160, .18));
}

.eyebrow, .legal-kicker {
  margin: 0 0 10px;
  color: var(--coral-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

.site-header h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.intro {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.projects { padding: 20px 0 100px; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.section-line { height: 1px; background: var(--line); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 43, 83, .76), rgba(6, 19, 41, .9));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.project-art {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background: #030a14;
}

.project-art::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 48%;
  background: linear-gradient(transparent, rgba(2, 8, 19, .9));
  pointer-events: none;
}

.project-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.project-card:hover .project-art img { transform: scale(1.015); }

.project-art-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 18px 24px 20px;
  text-align: left;
}

.project-art-title h3 {
  margin: 0;
  color: white;
  font-size: clamp(22px, 3vw, 34px);
  line-height: .95;
  letter-spacing: -.04em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .85);
}

.tharvion-card .project-art-title h3 {
  color: #f3cf78;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}

.transit-card .project-art-title h3 {
  color: #f18a3e;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.nexus-card .project-art-title h3 {
  color: #8edcff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-subtitle {
  display: flex;
  min-height: 44px;
  padding: 10px 20px;
  align-items: center;
  justify-content: center;
  color: #bcd3ed;
  border-top: 1px solid rgba(117, 149, 193, .22);
  border-bottom: 1px solid rgba(117, 149, 193, .16);
  background: rgba(8, 28, 57, .96);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.tharvion-card .project-subtitle { color: #e8ce8f; }
.transit-card .project-subtitle { color: #91c9f8; }
.nexus-card .project-subtitle { color: #ffc28e; }

.project-copy {
  position: relative;
  z-index: 2;
  padding: 24px 36px 38px;
  text-align: left;
}

.project-number {
  float: right;
  margin: 8px 0 0 20px;
  color: rgba(255,255,255,.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.project-copy p {
  min-height: 52px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe8f8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 13px var(--coral);
}

.project-detail-link {
  --project-button-start: #23486f;
  --project-button-end: #102943;
  --project-button-text: #eef5fc;
  --project-button-border: rgba(137, 174, 217, .44);
  --project-button-glow: rgba(65, 126, 196, .2);
  position: relative;
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  margin-top: 18px;
  padding: 10px 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  color: var(--project-button-text);
  border: 1px solid var(--project-button-border);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--project-button-start), var(--project-button-end));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 0 14px var(--project-button-glow),
    0 8px 18px rgba(0, 0, 0, .24);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.project-detail-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 62%);
  pointer-events: none;
}

.project-detail-link span {
  position: relative;
  transition: transform .18s ease;
}

.project-detail-link:hover,
.project-detail-link:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 0 22px rgba(65, 126, 196, .28),
    0 12px 24px rgba(0, 0, 0, .3);
}

.project-detail-link:hover span,
.project-detail-link:focus-visible span {
  transform: translateX(3px);
}

.project-detail-link:active {
  filter: brightness(.98);
  transform: translateY(0);
}

.project-detail-link:focus-visible {
  outline: 2px solid var(--project-button-border);
  outline-offset: 4px;
}

.transit-art {
  background: #020712;
}

.transit-art img { object-fit: cover; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0 36px;
  color: #60718a;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer p { margin: 0; }

.legal-links { display: flex; flex-wrap: wrap; gap: 20px; text-align: left; }
.legal-links a, .site-footer > a { text-decoration: none; transition: color .2s ease; }
.legal-links a:hover, .site-footer > a:hover { color: white; }

.legal-header {
  position: relative;
  padding: 58px 0 34px;
  text-align: center;
}

.legal-logo { width: min(470px, 75vw); margin-bottom: 18px; }
.back-link { display: inline-block; color: var(--muted); font-size: 13px; text-decoration: none; }
.back-link:hover { color: white; }

.legal-content {
  width: min(100%, 790px);
  margin: 0 auto 80px;
  padding: clamp(28px, 6vw, 64px);
  color: #c8d5e6;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(6, 19, 41, .78);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}

.legal-content h1 { margin-bottom: 58px; color: white; font-size: clamp(32px, 6vw, 52px); letter-spacing: -.04em; }
.legal-content section { padding-top: 30px; scroll-margin-top: 24px; }
.legal-content section + section { margin-top: 38px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 20px; color: white; font-size: 25px; line-height: 1.25; }
.legal-content h3 { margin: 30px 0 8px; color: #e9f1fb; font-size: 17px; }
.legal-content p, .legal-content address { font-size: 14px; }
.legal-content address { margin-bottom: 20px; font-style: normal; }
.legal-content a { color: #77baff; }
.legal-date { margin-top: 34px; color: var(--muted); }
.legal-footer { max-width: 790px; margin: 0 auto; }

.lang-en { display: none !important; }
html[data-language="en"] .lang-de { display: none !important; }
html[data-language="en"] .lang-en { display: revert !important; }

@media (max-width: 760px) {
  .page-shell { width: min(calc(100% - 22px), var(--max-width)); }
  .site-header { min-height: auto; padding: 86px 0 54px; }
  .language-switch { right: 4px; }
  .studio-logo { width: min(670px, 100%); }
  .project-grid { grid-template-columns: 1fr; }
  .nexus-card { width: auto; grid-column: auto; }
  .project-card { min-height: 470px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .legal-header { padding-top: 70px; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nexus-card { width: calc(50% - 12px); grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 440px) {
  .project-copy { padding: 20px 24px 30px; }
  .project-copy p { min-height: 0; }
  .legal-content { padding: 28px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
