/* Speicherstadt – brick, canal water at night, lit warehouse windows */
/* Inter and Fraunces (SIL Open Font License 1.1, see fonts/), served from this site */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --night: #141c2b;
  --night-2: #1d2738;
  --brick: #c4552f;
  --brick-deep: #9c3f22;
  --lamp: #f3c46a;
  --copper: #4fa08b;
  --moon: #e6dcc0;

  --bg: #f7f3ec;
  --surface: #ffffff;
  --text: #1c2230;
  --muted: #5b6272;
  --line: #e4dccf;
  --accent: var(--brick);
  --shadow: 0 1px 2px rgb(28 34 48 / 6%), 0 8px 24px rgb(28 34 48 / 8%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161f;
    --surface: #182130;
    --text: #ece7dd;
    --muted: #a3a9b6;
    --line: #273246;
    --accent: #e0754e;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.serif { font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }

/* Top bar on the night sky */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 18px 20px;
  color: var(--moon);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.top nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; opacity: .85; }
.top nav a:hover { opacity: 1; background: rgb(255 255 255 / 8%); }
.lang { border: 1px solid rgb(230 220 192 / 35%); }

/* Hero: the warehouses at night */
.hero {
  position: relative; overflow: hidden; color: #f4efe4;
  background: linear-gradient(180deg, #0d1422 0%, var(--night) 55%, var(--night-2) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 120px 20px 0; max-width: 1120px; margin: 0 auto; }
.hero h1 {
  margin: 0; font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; max-width: 13em;
}
.hero h1 em { font-style: normal; color: var(--lamp); }
.hero p.lead { max-width: 36em; margin: 22px 0 0; font-size: clamp(17px, 2vw, 20px); color: #cfd3dc; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: 14px; padding: 5px 12px; border-radius: 999px;
  background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 12%); color: #e3dfd4;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  padding: 11px 18px; border-radius: 10px; font-size: 16px;
}
.btn-primary { background: var(--lamp); color: #2a1d08; }
.btn-primary:hover { background: #f7d388; }
.btn-ghost { border: 1px solid rgb(255 255 255 / 25%); color: #f4efe4; }
.btn-ghost:hover { background: rgb(255 255 255 / 8%); }
.skyline { display: block; width: 100%; height: auto; margin-top: -10px; }
.skyline .win { fill: #2a2018; }
.skyline .win.on { fill: var(--lamp); animation: glow 7s ease-in-out infinite; }
.skyline .win.on:nth-of-type(3n) { animation-delay: -2.3s; }
.skyline .win.on:nth-of-type(4n) { animation-delay: -4.1s; }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@media (prefers-reduced-motion: reduce) { .skyline .win.on { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 84px 0 0; }
.kicker { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 600; }
.intro { color: var(--muted); max-width: 40em; margin: 14px 0 0; }

/* Project cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 36px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); }
.card picture { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.card picture img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head img { width: 36px; height: 36px; border-radius: 9px; }
.card h3 { margin: 0; font-size: 21px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card .what { margin: 0; color: var(--muted); font-size: 16px; }
.card .links { margin-top: auto; display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.card .links a { position: relative; z-index: 1; text-decoration: none; }
.card .links a:hover { color: var(--accent); text-decoration: underline; }
.badge { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }

/* Together / principles */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 32px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.tile .ico { width: 30px; height: 30px; color: var(--accent); }
.tile h3 { margin: 12px 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* Story band */
.story {
  margin-top: 84px; padding: 56px 0; color: #e9e4d8;
  background:
    linear-gradient(90deg, rgb(20 28 43 / 96%), rgb(20 28 43 / 86%)),
    repeating-linear-gradient(0deg, var(--brick-deep) 0 22px, #7e321b 22px 24px);
}
.story .wrap { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; }
.story img { width: 120px; height: 120px; border-radius: 22px; }
.story p { margin: 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; max-width: 44em; }
@media (max-width: 640px) { .story .wrap { grid-template-columns: 1fr; } .story img { width: 84px; height: 84px; } }

footer { padding: 40px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .top, .hero-text { padding-left: 16px; padding-right: 16px; }
  .hero-text { padding-top: 96px; }
  .skyline { height: 200px; margin-top: 8px; }
  .top nav a.hide-sm { display: none; }
  .grid { grid-template-columns: 1fr; }
  section { padding-top: 64px; }
}
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }

/* Legal pages */
.hero-slim { min-height: 76px; }
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 24px; }
.legal h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 8px 0 24px; font-weight: 600; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal address { margin: 0 0 12px; color: var(--text); font-style: normal; }
.legal a { color: var(--accent); }
.legal .note, .legal .updated { color: var(--muted); font-size: 15px; }

/* Partner teaser on the home page and the partner page */
.more { margin: 24px 0 0; }
.split.pairs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.partner { padding-top: 32px; padding-bottom: 24px; }
.partner .back { margin: 0 0 28px; font-size: 15px; }
.partner h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; font-weight: 600; }
.partner h2 { margin: 48px 0 0; font-size: clamp(22px, 2.6vw, 26px); }
.partner h2 + p { margin-top: 10px; }
.partner > p:not(.kicker):not(.back) { max-width: 44em; }
.partner .split { margin-top: 18px; }
.partner p a:not(.btn) { color: var(--accent); }
