@font-face { font-family: "Sero Pro"; src: url("/fonts/SeroPro-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sero Pro"; src: url("/fonts/SeroPro.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sero Pro"; src: url("/fonts/SeroPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sero Pro"; src: url("/fonts/SeroPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sero Pro"; src: url("/fonts/SeroPro-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #08142a;
  --navy-2: #0e1e3b;
  --red: #ef3f54;
  --red-soft: #ff6b7c;
  --red-deep: #cc2a3e;
  --ink: #08142a;
  --sky-text: #26324a;
  --on-navy: #eef1f6;
  --on-navy-2: #a9b4c9;
  --rule: rgba(169, 180, 201, .22);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --col: min(100% - 2 * var(--pad), 76rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

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

html {
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #3a4a6a var(--navy);
}

body {
  margin: 0;
  font-family: "Sero Pro", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  color: var(--on-navy);
  background: var(--navy);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red-deep); color: #fff; }

a { color: inherit; }
img, svg { display: block; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hero: the sky ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: #c9ced8;
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 29% 50%;
  transform-origin: 70% 40%;
  animation: drift 60s ease-in-out infinite alternate;
}

/* light scrim under the copy + fall into navy at the foot */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(66% 58% at 30% 48%, rgba(248, 248, 246, .6), rgba(248, 248, 246, 0) 72%),
    linear-gradient(180deg, rgba(8, 20, 42, 0) 62%, rgba(8, 20, 42, .55) 84%, var(--navy) 100%);
}

.hero__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
  mix-blend-mode: multiply;
  transform-origin: 30% 80%;
  animation: dissipate 16s cubic-bezier(.45, 0, .2, 1) 3.6s forwards;
}

.hero__trail--m { display: none; }

.trail {
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s var(--ease-out) .35s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
/* after drawing, the trail slowly spreads and dissolves like flare smoke */
@keyframes dissipate {
  0%   { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  35%  { opacity: .8; filter: blur(4px); }
  100% { opacity: 0; filter: blur(22px); transform: translate3d(-1.5%, -3%, 0) scale(1.06); }
}
@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(-1.6%, -1%, 0); }
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--col);
  margin-inline: auto;
  padding: clamp(1.1rem, 3vw, 2.25rem) 0 0;
}

.bar__logo { display: block; text-decoration: none; }
.bar__logo img { width: clamp(150px, 16vw, 230px); height: auto; }

.bar__link {
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: .01em;
  color: #fff;
  text-decoration: none;
  padding: .6rem 1.15rem .65rem;
  border-radius: 999px;
  background: rgba(8, 20, 42, .82);
  transition: background-color .3s var(--ease-out);
}
.bar__link:hover { background: var(--red-deep); }

.hero__copy {
  align-self: center;
  width: var(--col);
  margin-inline: auto;
  padding: 0 0 clamp(5rem, 14vh, 9rem);
}

.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.25rem, 9.2vw, 8.5rem);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--navy);
  text-wrap: balance;
}

.hero__sub {
  margin: clamp(.9rem, 2vw, 1.5rem) 0 0;
  max-width: 24ch;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.6vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--sky-text);
  text-wrap: balance;
}

/* ---------- Kontakt ---------- */

.contact {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  scroll-margin-top: 1rem;
}

.contact__inner {
  width: var(--col);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.contact__title {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: .95;
  letter-spacing: -.03em;
  color: #fff;
}

.contact__mail {
  display: inline-block;
  font-weight: 500;
  font-size: clamp(1.4rem, 3.1vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
  transition: color .25s var(--ease-out), text-decoration-color .25s var(--ease-out);
}
.contact__mail:hover { color: var(--red-soft); text-decoration-color: var(--red-soft); }

.contact__addr {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-navy-2);
}
.contact__addr strong { font-weight: 700; color: var(--on-navy); }

.reg {
  margin: 0;
  padding-top: .35rem;
  font-variant-numeric: tabular-nums lining-nums;
}

.reg__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--rule);
}
.reg__row:last-of-type { border-bottom: 1px solid var(--rule); }

.reg dt {
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .08em;
  color: var(--on-navy-2);
}

.reg dd {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reg__val {
  font-weight: 500;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: .02em;
  color: #fff;
}

.copy {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgba(169, 180, 201, .6);
  background: transparent;
  border: 1px solid rgba(169, 180, 201, .16);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.copy svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round;
  flex: none;
}
.copy .i-check { display: none; }
.copy.is-copied .i-copy { display: none; }
.copy.is-copied .i-check { display: block; stroke-width: 2; }
.copy:hover { color: #fff; border-color: rgba(239, 63, 84, .7); background: rgba(239, 63, 84, .1); }
.copy:active { transform: translateY(1px); }
.copy.is-copied { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }

.foot {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: var(--col);
  margin: 0 auto;
  padding: 1.75rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: .9375rem;
  color: var(--on-navy-2);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 82svh; }
  .hero__sky img { object-position: 40% 50%; }
  .bar__logo img { width: 188px; }
  .hero__trail--d { display: none; }
  .hero__trail--m { display: block; }
  .hero::before {
    background:
      radial-gradient(150% 52% at 28% 40%, rgba(248, 248, 246, .86), rgba(248, 248, 246, 0) 74%),
      linear-gradient(180deg, rgba(8, 20, 42, 0) 66%, rgba(8, 20, 42, .55) 86%, var(--navy) 100%);
  }
  .bar__link { font-size: 1rem; padding: .55rem 1rem .6rem; }
  .hero__copy { padding-bottom: 7rem; }
  .hero__title { font-size: clamp(3.25rem, 15vw, 4.5rem); }
  .reg__row { grid-template-columns: 4.6rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sky img { animation: none; transform: none; }
  .trail { animation: none; stroke-dashoffset: 0; }
  .hero__trail { animation: none; }
}
