/* ==========================================================================
   FASER — single-page site
   Plain CSS, no build step. Upload index.html, style.css, script.js and the
   assets/ folder to the STRATO webspace root.
   ========================================================================== */

:root {
  color-scheme: dark;
  --paper: #f1f1ed;
  --line: rgba(255, 255, 255, .18);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --gutter: 4vw;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--paper);
  background: #000;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }

/* ---------- Shell + canvas ------------------------------------------------ */

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.fiber-canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  touch-action: none;
}

/* ---------- Top bar ------------------------------------------------------- */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 34px var(--gutter);
}

.brand { display: block; width: 104px; height: 32px; }
.brand img { display: block; width: 100%; height: auto; }

.nav-actions {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  height: 32px;
  padding-bottom: 1px;
}

.nav-actions a,
.nav-actions button,
.overlay-close {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  opacity: .72;
  transition: opacity .2s;
}

.nav-actions a:hover,
.nav-actions button:hover,
.overlay-close:hover,
.nav-actions a:focus-visible,
.nav-actions button:focus-visible,
.overlay-close:focus-visible { opacity: 1; }

:focus-visible { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 4px; }

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 7vh var(--gutter) 13vh;
  pointer-events: none;
}

.hero h1 {
  width: min(1540px, 94vw);
  margin: 0;
  font-size: clamp(62px, 8.5vw, 142px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.062em;
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .42);
}

.hero h1 span { display: block; white-space: nowrap; }

/* ---------- Overlays ------------------------------------------------------ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 4, .92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.012);
  transition: all .42s var(--ease-out);
}

.overlay:target,
.overlay.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.overlay-close {
  position: fixed;
  top: 28px;
  right: var(--gutter);
  z-index: 2;
  font-size: 30px;
  font-weight: 200;
}

/* Legal pages */

.legal-overlay {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #050505;
  /* Already opaque: a blur here only makes iOS Safari stutter. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.legal-content {
  width: min(820px, 100vw - 48px);
  min-height: 100%;
  margin: 0 auto;
  padding: 84px 0 72px;
}

.legal-content h2 {
  margin: 0 0 28px;
  font-size: clamp(42px, 7vw, 94px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.06em;
}


.legal-content h3 {
  margin: 26px 0 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-content h4 {
  margin: 18px 0 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.legal-content p {
  max-width: 680px;
  margin: 0 0 7px;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -.01em;
}

.legal-content a { color: #fff; text-underline-offset: 3px; }
.legal-content .impressum-email { display: block; width: fit-content; margin-top: 14px; }
.legal-content > :last-child { margin-bottom: 0; }

/* Sign in */

.sign-in-overlay { background: rgba(2, 2, 2, .86); }

.sign-in-card {
  width: min(380px, 100vw - 36px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(8, 8, 8, .82);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.sign-in-card > img { display: block; width: 92px; height: auto; margin-bottom: 38px; }

.sign-in-card label {
  display: block;
  margin-bottom: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(255, 255, 255, .2);
}

.password-row input {
  min-width: 0;
  height: 52px;
  padding: 0 15px;
  border: 0;
  outline: 0;
  color: #fff;
  background: none;
}

.password-row input::placeholder { color: rgba(255, 255, 255, .32); }

.password-row button {
  width: 82px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #070707;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  cursor: pointer;
}

.password-row button:disabled {
  color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05);
  cursor: default;
}

/* ---------- Legal pages: normal document scrolling ------------------------------
   A fixed, internally scrolling panel inside a scroll-locked page is unreliable
   on iOS Safari (long pages like the privacy policy stop responding). On legal
   pages the document itself scrolls instead, which works everywhere. */

body.legal-page {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #050505;
}

body.legal-page .site-shell {
  min-height: 0;
  overflow: visible;
  background: #050505;
}

body.legal-page .fiber-canvas,
body.legal-page .topbar,
body.legal-page .hero { display: none; }

body.legal-page .legal-overlay {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

/* Close button stays reachable while the page scrolls. */
body.legal-page .overlay-close { position: fixed; z-index: 20; }

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

@media (max-width: 900px) {
  .topbar { padding: 26px 24px; }
  .brand { width: 94px; }
  .nav-actions { gap: 20px; }
  .hero { padding: 72px 18px 140px; }
  .hero h1 {
    width: min(840px, 96vw);
    font-size: clamp(40px, 8.8vw, 76px);
    line-height: .96;
  }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; padding: 18px 15px; }
  .brand { width: 78px; height: 24px; }
  .nav-actions { gap: 13px; height: 24px; padding-bottom: 0; }
  .nav-actions a,
  .nav-actions button { font-size: 10px; letter-spacing: -.01em; }
  .hero { padding: 68px 9px 124px; }
  .hero h1 {
    width: 100%;
    font-size: clamp(31px, 9vw, 46px);
    line-height: .96;
    letter-spacing: -.057em;
    text-shadow: 0 3px 25px rgba(0, 0, 0, .64);
  }
  .overlay-close {
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    font-size: 32px;
    line-height: 1;
  }
  .legal-content {
    width: calc(100% - 30px);
    padding: 68px 0 calc(44px + env(safe-area-inset-bottom, 0px));
  }
  .legal-content h3 { letter-spacing: .07em; }
  .legal-content h2 { margin-bottom: 20px; }
  .legal-content h3 { margin-top: 22px; margin-bottom: 7px; }
  .legal-content p { font-size: 13px; line-height: 1.45; }
  .sign-in-card { width: min(350px, 100vw - 28px); padding: 20px; }
  .sign-in-card > img { margin-bottom: 34px; }
}

/* ---------- Phones: legal pages ------------------------------------------------ */

@media (max-width: 560px) {
  body.legal-page .overlay-close {
    background: rgba(5, 5, 5, .78);
    border-radius: 50%;
    -webkit-tap-highlight-color: transparent;
  }
  .legal-content h2 { font-size: clamp(36px, 11vw, 46px); line-height: .95; }
  .legal-content h3 { font-size: 12px; line-height: 1.35; }
  .legal-content h4 { margin: 16px 0 4px; font-size: 14px; }
  .legal-content p  { font-size: 13.5px; line-height: 1.45; margin-bottom: 7px; color: rgba(255, 255, 255, .78); max-width: none; }
  .legal-content a  { word-break: break-word; }
}

@media (max-width: 560px) and (orientation: landscape) {
  .legal-content { padding-top: 64px; }
}

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

/* ---------- Careers ------------------------------------------------------------
   Same document-scrolling shell as the legal pages (body.legal-page); only the
   inner layout differs. No filters yet: add them above .jobs when there are
   more positions. */

:root { --accent: #e0283c; }

.careers-content {
  width: min(1240px, 100vw - 8vw);
  margin: 0 auto;
  padding: 40px 0 56px;
}

.careers-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 17px;
  text-decoration: none;
}
.careers-back:hover span { text-decoration: underline; text-underline-offset: 4px; }

.careers-eyebrow {
  margin: 72px 0 12px;
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

.careers-title {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 54px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}

/* Job list */

.jobs { margin-top: 56px; }

.jobs-head,
.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 150px 250px 24px;
  align-items: center;
  column-gap: 24px;
}

.jobs-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  color: rgba(255, 255, 255, .6);
  font-size: 15px;
}

.job {
  min-height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  color: inherit;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, padding .25s var(--ease-out);
}
.job:hover, .job:focus-visible { background: rgba(255, 255, 255, .04); }
.job .job-title { font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.02em; }
.job .chev { justify-self: end; color: rgba(255, 255, 255, .7); transition: transform .25s var(--ease-out), color .2s; }
.job:hover .chev, .job:focus-visible .chev { color: var(--accent); transform: translateX(4px); }

.careers-apply {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  letter-spacing: -.01em;
}
.careers-apply a { color: #fff; text-underline-offset: 3px; }

/* Job detail */

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin: 32px 0 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .5);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.job-meta dt { margin-bottom: 3px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.job-meta dd { margin: 0; font-size: 16px; letter-spacing: -.01em; }

.job-body { max-width: 860px; margin-top: 32px; }
.job-body h3 {
  margin: 26px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.job-body h3:first-child { margin-top: 0; }
.job-body p, .job-body li {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.38;
  letter-spacing: -.01em;
}
.job-body p { margin: 0 0 6px; }
.job-body ul { margin: 0; padding: 0; list-style: none; }
.job-body li { position: relative; margin: 0 0 4px; padding-left: 22px; }
.job-body li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 10px; height: 1px;
  background: var(--accent);
}
.job-body strong { color: #fff; font-weight: 700; }
.job-body .careers-apply { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }

@media (max-width: 900px) {
  .careers-eyebrow { margin-top: 56px; }
  .jobs { margin-top: 40px; }
  .jobs-head { display: none; }
  .job {
    grid-template-columns: minmax(0, 1fr) 24px;
    row-gap: 6px;
    padding: 16px 0;
    min-height: 0;
  }
  .job > span:not(.job-title):not(.job-skyline) { grid-column: 1; color: rgba(255, 255, 255, .6); }
  .job .job-title { grid-column: 1; margin-bottom: 6px; }
  .job .chev { grid-column: 2; grid-row: 1 / span 4; }
}

@media (max-width: 560px) {
  .careers-content { width: calc(100% - 30px); padding: 20px 0 40px; }
  .careers-back { font-size: 15px; }
  .careers-eyebrow { margin-top: 44px; font-size: 13px; }
  .job-meta { gap: 10px 28px; margin-top: 24px; }
  .job-body p, .job-body li { font-size: 14.5px; line-height: 1.38; }
}

/* Join the team button (top nav): the frame hangs around the text, so the text
   sits on the same baseline and keeps the same spacing as the other links. */
.nav-actions a.nav-join {
  align-self: flex-end;
  padding: 6px 12px;
  margin: 0 -12px -7px;
  border: 1px solid var(--accent);
  color: var(--accent);
  line-height: normal;
  opacity: 1;
  transition: background .2s, color .2s;
}
.nav-actions a.nav-join:hover,
.nav-actions a.nav-join:focus-visible { background: var(--accent); color: #fff; }

@media (max-width: 560px) {
  .nav-actions a.nav-join { padding: 4px 6px; margin: 0 -6px -5px; }
}

/* Job page access gate ("More information soon") */
.job-locked .careers-eyebrow { margin-top: 72px; }
.gate-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -.01em;
}
.gate-form { width: min(380px, 100%); margin-top: 28px; }
.gate-form label {
  display: block;
  margin-bottom: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
}
.gate-error { margin: 12px 0 0; color: var(--accent); font-size: 14px; }
.gate-error[hidden] { display: none; }

@media (max-width: 900px) { .job-locked .careers-eyebrow { margin-top: 56px; } }
@media (max-width: 560px) {
  .job-locked .careers-eyebrow { margin-top: 44px; }
  .gate-note { font-size: 14.5px; }
}

/* City skyline rising from the job row's bottom line (Berlin for now).
   Sits behind the row text, so it never covers the job name. */
.job { position: relative; }
.job > span:not(.job-skyline), .job > .chev { position: relative; z-index: 1; }
.job-skyline {
  position: absolute;
  right: 46px;
  bottom: 0;
  width: 84px;
  aspect-ratio: 110 / 56;
  overflow: hidden;
  pointer-events: none;
  color: var(--accent);
}
.job-skyline svg { display: block; width: 100%; height: 100%; }
.job-skyline g {
  transform: translateY(58px);
  animation: skyline-rise .9s var(--ease-out) var(--d, 0s) forwards;
}
@keyframes skyline-rise { to { transform: translateY(0); } }

@media (max-width: 900px) {
  .job-skyline { right: 40px; width: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .job-skyline g { animation: none; transform: none; }
}

/* Laptop / desktop: header and rows share one grid, so the Location column is exactly
   as wide as its text and the skyline is centred between that text and the arrow. */
@media (min-width: 901px) {
  .jobs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 150px max-content 124px 24px;
    column-gap: 24px;
  }
  .jobs-head,
  .job {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    grid-template-rows: minmax(0, 1fr);
    column-gap: 24px;
  }
  .job .chev { grid-column: 6; grid-row: 1; }
  .job-skyline {
    position: relative;
    right: auto;
    bottom: auto;
    grid-column: 5;
    grid-row: 1;
    justify-self: center;
    align-self: end;
    width: 84px;
    margin-left: 12px; /* the arrow icon is narrower than its 24px column */
  }
}

/* Job description, blocky: smaller type, tight rhythm, two columns on wide screens. */
.job-body { margin-top: 20px; }
.job-body h3 { margin: 20px 0 6px; font-size: 11.5px; letter-spacing: .08em; }
.job-body p, .job-body li { font-size: 14px; line-height: 1.32; letter-spacing: -.005em; }
.job-body p { margin: 0 0 5px; }
.job-body li { margin: 0 0 2px; padding-left: 18px; }
.job-body li::before { top: .68em; width: 8px; }
.job-body .careers-apply { margin-top: 18px; padding-top: 12px; font-size: 14px; }
.job-meta { margin-top: 20px; padding: 10px 0; gap: 8px 44px; }
.job-meta dt { font-size: 12px; margin-bottom: 2px; }
.job-meta dd { font-size: 15px; }

@media (min-width: 901px) {
  .job-body { max-width: none; column-count: 2; column-gap: 64px; column-fill: balance; }
  .job-body h3 { break-after: avoid; }
  .job-body h3:first-child { margin-top: 0; }
  .job-body p, .job-body li { break-inside: avoid; }
  .job-body .careers-apply { column-span: all; }
}

@media (max-width: 560px) {
  .careers-content { padding-top: 16px; }
  .job-detail .careers-eyebrow { margin-top: 28px; }
  .job-detail .careers-title { font-size: 26px; }
  .job-body h3 { margin: 16px 0 5px; font-size: 11px; }
  .job-body p, .job-body li { font-size: 13.5px; line-height: 1.3; }
  .job-body li { margin-bottom: 1px; padding-left: 16px; }
  .job-body li::before { width: 7px; }
  .job-meta { gap: 6px 24px; margin-top: 16px; }
}

/* Job section headings: heavier (Arial has no weight above bold, so add a hairline stroke). */
.job-body h3 {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  -webkit-text-stroke: .45px currentColor;
  paint-order: stroke fill;
}
@media (max-width: 560px) { .job-body h3 { font-size: 12px; -webkit-text-stroke: .4px currentColor; } }

/* ---------- Round 3 client feedback (2026-10-16) ---------------------------- */

/* Landing footer: Imprint + Privacy Policy */
.site-footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  gap: 28px;
  padding: 0 var(--gutter) 30px;
}
.site-footer a { color: inherit; font-size: 12px; text-decoration: none; opacity: .55; transition: opacity .2s; }
.site-footer a:hover, .site-footer a:focus-visible { opacity: 1; }
@media (max-width: 900px) { .site-footer { padding: 0 24px 24px; } }
@media (max-width: 560px) { .site-footer { gap: 18px; padding: 0 15px calc(18px + env(safe-area-inset-bottom)); } .site-footer a { font-size: 10.5px; } }

/* Job page: one column, top to bottom, with a clear call to action */
@media (min-width: 901px) {
  .job-body { max-width: 760px; column-count: auto; column-gap: normal; }
}
.job-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 22px 0 0; }
.job-cta-note { color: rgba(255, 255, 255, .6); font-size: 14px; }
.job-cta-note a { color: #fff; text-underline-offset: 3px; }
.job-body .job-cta { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.btn-apply {
  display: inline-block;
  padding: 15px 30px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 16px;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-apply:hover, .btn-apply:focus-visible { background: #fff; border-color: #fff; color: #000; }
@media (max-width: 560px) { .btn-apply { display: block; width: 100%; text-align: center; } }

/* Careers page: own-opportunity call to action */
.careers-own { margin-top: 28px; }
.btn-own {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 560px; padding: 16px 20px;
  border: 1px solid var(--accent); color: #fff; font-size: 16px; letter-spacing: -.01em; text-decoration: none;
  transition: background .2s;
}
.btn-own strong { font-weight: 400; color: var(--accent); transition: color .2s; }
.btn-own svg { flex: none; color: var(--accent); transition: transform .25s var(--ease-out), color .2s; }
.btn-own:hover, .btn-own:focus-visible { background: var(--accent); }
.btn-own:hover strong, .btn-own:hover svg, .btn-own:focus-visible strong, .btn-own:focus-visible svg { color: #fff; }
.btn-own:hover svg { transform: translateX(4px); }

/* Own-opportunity: question as plain text, only the red part is the button */
.careers-own { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.careers-own .own-q { color: rgba(255, 255, 255, .85); font-size: 16px; letter-spacing: -.01em; }
.careers-apply .btn-own { color: var(--accent); gap: 40px; }

/* Own-opportunity button: same colours as "Send your application" */
.careers-apply .btn-own { background: var(--accent); border-color: var(--accent); color: #fff; padding: 15px 30px; transition: background .2s, color .2s, border-color .2s; }
.btn-own svg { color: #fff; }
.careers-apply .btn-own:hover, .careers-apply .btn-own:focus-visible { background: #fff; border-color: #fff; color: #000; }
.btn-own:hover svg, .btn-own:focus-visible svg { color: #000; }

/* Own-opportunity button: red outline, red text; white background on hover */
.careers-apply .btn-own { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-own svg { color: var(--accent); }
.careers-apply .btn-own:hover, .careers-apply .btn-own:focus-visible { background: #fff; border-color: #fff; color: var(--accent); }
.btn-own:hover svg, .btn-own:focus-visible svg { color: var(--accent); }

.job-eeo { margin-top: 28px; color: rgba(255, 255, 255, .45); font-size: 12px; line-height: 1.4; }
