/* ---------- Merfinity ---------- */
:root {
  --ink: #2b3a44;          /* headings */
  --text: #6b7780;         /* body text */
  --deep: #0b1d2a;         /* top bar / footer */
  --sea: #1d6f8f;
  --foam: #e9f5f8;
  --white: #fff;
  --head: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --logo: "Kaushan Script", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 300 18px/1.75 var(--body);
  letter-spacing: .015em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 700; color: var(--ink); }

.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.wrap-narrow { width: min(680px, 100% - 48px); margin-inline: auto; }

/* ---------- top social bar ---------- */
.topbar { background: var(--deep); }
.topbar__inner { display: flex; gap: 10px; padding: 16px 0; }
.social {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: #dfe9ee; color: var(--deep);
  transition: background .2s, transform .2s;
}
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social:hover { background: #fff; transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 980px);
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(5, 20, 34, .55), rgba(5, 20, 34, 0) 22%),
    linear-gradient(to top, rgba(5, 20, 34, .5), rgba(5, 20, 34, 0) 35%);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  position: relative; z-index: 3;
}
.nav__brand {
  font: 700 21px/1 var(--head);
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
}
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font: 700 14px/1 var(--head);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav__links a:hover { border-color: currentColor; }
.lang { display: flex; align-items: center; gap: 4px; font: 700 13px/1 var(--head); }
.lang span { opacity: .5; }
.lang button {
  background: none; border: 0; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: .08em; padding: 4px 2px; opacity: .55;
}
.lang button.is-active { opacity: 1; }
.nav__toggle { display: none; }

.hero__content {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px 90px;
}
.logo {
  margin: 0;
  font: 400 clamp(84px, 15vw, 210px)/1.05 var(--logo);
  letter-spacing: .01em;
  text-shadow: 0 6px 30px rgba(0, 25, 45, .35);
  animation: float 7s ease-in-out infinite;
}
.hero__tag {
  margin: 1.1em 0 .25em;
  font: 600 clamp(20px, 2.4vw, 28px)/1.3 var(--body);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero__cta {
  font: 600 clamp(20px, 2.4vw, 28px)/1.3 var(--body);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.hero__cta:hover { border-color: transparent; }
.hero__down {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 40px; color: #fff;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes bob { 50% { transform: translateY(6px); } }

/* rising bubbles */
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bubbles i {
  position: absolute; bottom: -40px;
  width: var(--s, 10px); height: var(--s, 10px);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .55);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), rgba(255,255,255,.04) 60%);
  animation: rise var(--d, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  opacity: 0;
}
.bubbles i:nth-child(1) { --x: 8%;  --s: 9px;  --d: 13s; --delay: -2s; }
.bubbles i:nth-child(2) { --x: 18%; --s: 16px; --d: 17s; --delay: -9s; }
.bubbles i:nth-child(3) { --x: 31%; --s: 7px;  --d: 11s; --delay: -5s; }
.bubbles i:nth-child(4) { --x: 64%; --s: 12px; --d: 15s; --delay: -1s; }
.bubbles i:nth-child(5) { --x: 73%; --s: 6px;  --d: 10s; --delay: -7s; }
.bubbles i:nth-child(6) { --x: 82%; --s: 18px; --d: 19s; --delay: -12s; }
.bubbles i:nth-child(7) { --x: 91%; --s: 8px;  --d: 12s; --delay: -4s; }
.bubbles i:nth-child(8) { --x: 45%; --s: 10px; --d: 16s; --delay: -14s; }
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate(14px, -55vh); }
  90%  { opacity: .7; }
  100% { transform: translate(-6px, -110vh); opacity: 0; }
}

/* ---------- intro ---------- */
.intro { text-align: center; padding: 120px 0 130px; }
.intro h2 {
  margin: 0 0 .9em;
  font: 700 24px/1.4 var(--head);
  color: var(--ink);
  letter-spacing: .01em;
}
.intro p { margin: 0; }

/* ---------- full-bleed image bands ---------- */
.band {
  position: relative;
  display: grid; place-items: center;
  min-height: 720px;
  padding: 120px 0;
  color: var(--white);
  text-align: center;
  background: var(--bg) center / cover no-repeat;
  isolation: isolate;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 24, 38, .38);
}
.band--tall { min-height: 820px; }
.band__title {
  margin: 0 0 .45em;
  font: 700 clamp(46px, 7vw, 82px)/1.08 var(--head);
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}
.band p { margin: 0 0 1.6em; font-weight: 400; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.band strong { color: inherit; }

/* ---------- features ---------- */
.features { padding: 110px 0 120px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature h3 {
  margin: 2.2em 0 .9em;
  font: 700 19px/1.45 var(--body);
  color: var(--ink);
}
.feature p { margin: 0; font-size: 17px; }

.shot {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; cursor: zoom-in; background: var(--foam);
  aspect-ratio: 1 / 1; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.shot span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px; color: #fff;
  font: 600 13px/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(4, 22, 36, .7));
  opacity: 0; transition: opacity .3s;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot:hover span, .shot:focus-visible span { opacity: 1; }

.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px 40px; margin-top: 100px; }
.btn {
  display: inline-block;
  padding: 18px 34px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font: 400 16px/1 var(--body);
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--deep); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 130px; }
.faq h2 { text-align: center; margin: 0 0 1.4em; font: 700 24px/1.4 var(--head); color: var(--ink); }
.faq details { border-top: 1px solid #dde4e8; }
.faq details:last-of-type { border-bottom: 1px solid #dde4e8; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 40px 20px 0; position: relative;
  font: 600 18px/1.4 var(--body); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font: 300 28px/1 var(--body); color: var(--sea); transition: rotate .25s;
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 22px; }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: #9fb3c0; padding: 56px 0 40px; }
.footer__social { display: flex; gap: 12px; margin-bottom: 28px; }
.footer__social a {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--deep);
}
.footer__social svg { width: 16px; height: 16px; fill: currentColor; }
.footer__copy { text-align: center; color: #dfe9ee; margin: 0; font-weight: 400; }
.footer__legal { text-align: center; margin: 6px 0 0; font-size: 14px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 4vmin;
  background: rgba(3, 14, 22, .92);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 92vh; width: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 14px; right: 20px;
  background: none; border: 0; color: #fff; cursor: pointer;
  font: 300 44px/1 var(--body);
}

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.features__grid .reveal:nth-child(2) { transition-delay: .12s; }
.features__grid .reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- language switch (EN/DE) ---------- */
html[lang="de"] .en, html:not([lang="de"]) .de { display: none !important; }
.nav__links a.is-active { border-color: currentColor; }

/* ---------- sub page banner ---------- */
.banner {
  position: relative; isolation: isolate;
  min-height: 400px;
  display: flex; flex-direction: column;
  color: #fff;
  background: var(--deep) var(--bg, none) center / cover no-repeat;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(5, 20, 34, .55), rgba(5, 20, 34, .35));
}
.banner--plain { min-height: 260px; }
.banner__title {
  flex: 1; display: grid; place-items: center;
  margin: 0; padding: 0 24px 60px; text-align: center;
  font: 700 clamp(26px, 6.5vw, 60px)/1.1 var(--head);
  letter-spacing: .03em; text-transform: uppercase;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .35);
}
.banner__title, .history__title, .press__title, .band__title, .dev__lead { hyphens: auto; overflow-wrap: anywhere; }

/* ---------- development ---------- */
.dev { padding: 90px 0 120px; }
.dev__lead {
  margin: 0 0 90px; text-align: center;
  font: 700 24px/1.4 var(--head); color: var(--ink);
  letter-spacing: .03em; text-transform: uppercase;
}
.mode { margin-bottom: 90px; }
.mode h2 { margin: 0 0 .3em; font: 700 28px/1.3 var(--head); color: var(--ink); }
.mode > p { margin: 0 0 .4em; }
.watch { display: inline-block; font-weight: 700; color: var(--sea); text-decoration: none; margin-bottom: 1.4em; }
.watch:hover { text-decoration: underline; }
.mode__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; }
.mode h3 { margin: 0 0 .5em; font: 700 17px/1.4 var(--body); color: var(--ink); }
.mode ul, .milestone ul { margin: 0; padding-left: 1.2em; }
.mode li { margin: .25em 0; font-size: 16.5px; }
.mode li::marker { color: var(--sea); }

.history { border-top: 1px solid #dde4e8; padding-top: 80px; }
.history__title {
  margin: 0 0 60px; text-align: center;
  font: 700 clamp(24px, 4vw, 42px)/1.2 var(--head); color: var(--ink);
  letter-spacing: .03em; text-transform: uppercase;
}
.milestone { display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin-bottom: 56px; align-items: start; }
.milestone h3 { margin: 0 0 .5em; font: 700 20px/1.3 var(--head); color: var(--ink); }
.milestone ul { list-style: none; padding: 0; }
.milestone li { margin: .3em 0; font-size: 16.5px; }

/* wide screenshots (news, gallery, history) */
.shot--wide { aspect-ratio: 16 / 10; }

/* ---------- news ---------- */
.news { padding: 90px 0 120px; }
.post { text-align: center; margin-bottom: 110px; }
.post__date { margin: 0 0 .4em; font: 600 13px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #93a3ad; }
.post__title { margin: 0 0 .8em; font: 700 24px/1.35 var(--head); color: var(--ink); letter-spacing: .02em; }
.post__text { text-align: left; }
.post .shot { margin-top: 26px; }
.more { font-weight: 700; color: var(--sea); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- jobs ---------- */
.jobs { padding: 90px 0 120px; text-align: center; }
.jobs__where { margin: 0; font: 600 14px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #93a3ad; }
.jobs__status { margin: .5em 0 .6em; font: 700 30px/1.3 var(--head); color: var(--ink); }
.jobs a { color: var(--sea); font-weight: 700; }
.jobs__about { margin-top: 90px; text-align: left; }
.jobs__about h3 { font: 700 22px/1.3 var(--head); color: var(--ink); text-align: center; }
.jobs__about .shot { margin-top: 30px; }

/* ---------- press kit ---------- */
.press { padding: 90px 0 120px; }
.press__grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
.facts { position: sticky; top: 24px; }
.facts dl { margin: 0 0 28px; }
.facts dt { font-weight: 700; color: var(--ink); font-size: 16px; }
.facts dd { margin: 0 0 16px; font-size: 16px; }
.facts a { color: var(--sea); }
.facts__social { display: flex; gap: 8px; margin-top: 4px !important; }
.btn--full { display: block; text-align: center; padding: 16px 12px; font-size: 14px; }
.press__title { margin: 0 0 .6em; font: 700 clamp(34px, 4vw, 46px)/1.1 var(--head); color: var(--ink); text-transform: uppercase; letter-spacing: .03em; }
.press__body h3 { margin: 2.2em 0 .7em; font: 700 22px/1.3 var(--head); color: var(--ink); }
.press__body a { color: var(--sea); }
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logo-tile { display: grid; place-items: center; padding: 28px; background: var(--foam); }
.logo-tile--dark { background: var(--deep); }
.logo-tile img { max-height: 90px; width: auto; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery--key { grid-template-columns: 1fr; }

/* ---------- 404 ---------- */
.hero--404 { min-height: 80vh; }

/* ---------- legal pages ---------- */
.legal { padding: 70px 0 110px; }
.legal h2 { font: 700 22px/1.3 var(--head); color: var(--ink); margin: 2em 0 .5em; }
.legal h2:first-of-type { margin-top: 0; }
.legal mark { background: #fff3c4; color: var(--ink); padding: 0 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav__toggle span { width: 26px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: -16px; right: -16px;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 10px 24px 20px;
    background: rgba(8, 28, 42, .96);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .lang { padding-top: 14px; }
}
@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr; gap: 70px; max-width: 560px; margin-inline: auto; }
  .band { min-height: 600px; padding: 90px 0; }
  .intro { padding: 90px 0 100px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .wrap-narrow { width: calc(100% - 32px); }
  body { font-size: 17px; }
  .buttons { flex-direction: column; align-items: stretch; text-align: center; margin-top: 70px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mode__lists { grid-template-columns: 1fr; }
  .milestone { grid-template-columns: 1fr; gap: 18px; }
  .press__grid { grid-template-columns: 1fr; gap: 48px; }
  .facts { position: static; }
  .banner { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
