/* SolideSache, holding page.
   Black page, the DACH map in the middle, small Helvetica in the four corners. */

@font-face {
  font-family: "Heros Web";
  src: url("../fonts/heros-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Heros Web";
  src: url("../fonts/heros-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #000000;
  --chalk: #E4E4E0;
  --smoke: #8B8A85;
  --graphite: #262625;
  --helvetica: "Helvetica Neue", "Heros Web", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 2.4vw, 32px);
  --col-gap: clamp(12px, 1.6vw, 24px);
  --section-space: clamp(64px, 11vh, 136px);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--helvetica);
  font-size: 0.8125rem;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid var(--chalk); outline-offset: 4px; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

/* ---------- holding page ---------- */

.soon {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "tl tr"
    "stage stage"
    "bl br";
  gap: 20px var(--gutter);
  padding: var(--gutter);
}

.corner--tl { grid-area: tl; }
.corner--tr { grid-area: tr; justify-self: end; text-align: right; }
.corner--bl { grid-area: bl; align-self: end; }
.corner--br { grid-area: br; justify-self: end; align-self: end; text-align: right; }

.wordmark { font-weight: 700; letter-spacing: -0.02em; }
.corner--tl,
.corner--bl { color: var(--smoke); }

/* ---------- the map ---------- */

.stage {
  grid-area: stage;
  display: grid;
  place-items: center;
  min-height: 0;
}
.map {
  --name-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem);
  position: relative;
  height: min(74svh, 108vw);
  aspect-ratio: 1000 / 1290;
}
.map-canvas { display: block; width: 100%; height: 100%; }
.map-name {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: var(--name-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* the name is wiped in from the left once the routes are out */
.map-name span {
  display: inline-block;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.9);
  clip-path: inset(-20% 100% -20% 0);
  animation: wipe 0.9s cubic-bezier(0.7, 0, 0.2, 1) 2.7s forwards;
}
.map-claim {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--name-size) * 0.62 + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.9);
}
/* a line grows out from the middle, then the text appears under it */
.map-claim::before {
  content: "";
  display: block;
  width: calc(var(--name-size) * 5.4);
  max-width: 80vw;
  height: 1px;
  margin: 0 auto 10px;
  background: var(--chalk);
  transform: scaleX(0);
  animation: grow 0.7s cubic-bezier(0.2, 0.7, 0.1, 1) 3.3s forwards;
}
.map-claim span { display: block; text-align: center; opacity: 0; animation: show 0.8s ease 3.7s forwards; }

@keyframes wipe { to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes show { to { opacity: 1; } }

@media (max-width: 560px) {
  .map { height: min(70svh, 108vw); }
}

@media (prefers-reduced-motion: reduce) {
  .map-name span { clip-path: none; animation: none; }
  .map-claim::before { transform: none; animation: none; }
  .map-claim span { opacity: 1; animation: none; }
}

/* ---------- what we do ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding: var(--section-space) var(--gutter);
  border-top: 1px solid var(--graphite);
}
.about .lead {
  grid-column: 1 / span 6;
  font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 30ch;
}
.about .lead-more {
  grid-column: 1 / span 6;
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--smoke);
}
.services {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 6vh, 64px);
  border-top: 1px solid var(--graphite);
}
.services li {
  padding: 0.12em 0 0.1em;
  border-bottom: 1px solid var(--graphite);
  font-size: clamp(2.25rem, 1rem + 5.6vw, 7.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

/* service names on one line on small phones */
@media (max-width: 460px) {
  .services li { font-size: 7.6vw; }
}

/* ---------- contact ---------- */

.contact {
  padding: var(--section-space) var(--gutter);
  border-top: 1px solid var(--graphite);
}
.contact-label {
  margin: 0 0 clamp(16px, 3vh, 32px);
  font-size: 1.3125rem;
  font-weight: 400;
  color: var(--smoke);
}
/* the address fills the width; page.js sets the size */
.contact-mail {
  display: block;
  font-size: 9vw;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.contact-mail span { display: inline-block; }
.contact-mail:hover { text-decoration: none; color: var(--smoke); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem var(--col-gap);
  margin: clamp(32px, 6vh, 64px) 0 0;
  font-size: 1.0625rem;
}
.facts dt { font-size: 0.8125rem; color: var(--smoke); margin-bottom: 0.25rem; }
.facts dd { margin: 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--graphite);
  color: var(--smoke);
}
.site-footer ul { display: flex; gap: 0.4rem 1.4rem; flex-wrap: wrap; }
.site-footer a:hover { color: var(--chalk); }

@media (max-width: 760px) {
  .about .lead,
  .about .lead-more { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- imprint and privacy ---------- */

.plain {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--gutter);
  font-size: 1.0625rem;
  line-height: 1.5;
}
.plain-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(48px, 10vh, 96px);
  font-size: 0.8125rem;
}
.plain h1 { margin: 0 0 1.4em; font-size: clamp(2rem, 1.1rem + 3.2vw, 3.25rem); line-height: 1; letter-spacing: -0.025em; font-weight: 700; }
.plain h2 { margin: 2.2em 0 0.4em; font-size: 0.8125rem; font-weight: 400; color: var(--smoke); }
.plain p { margin: 0 0 0.8em; }
.plain ul { margin: 0 0 0.8em; padding-left: 1.1em; list-style: disc; }
.plain li { margin-bottom: 0.4em; }
.plain li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.plain-links { display: flex; gap: 18px; }
.plain p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.plain-foot { margin-top: clamp(64px, 12vh, 120px); padding-top: 14px; border-top: 1px solid var(--graphite); font-size: 0.8125rem; color: var(--smoke); }
