@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-4.001-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  /* night defaults; sky.js sets the colours of the moment before the first paint */
  --fg: #f2f4f8;
  --muted: #8ea3c9;
  --focus: #f2f4f8;
  --btn-bg: rgba(255, 255, 255, 0.07);
  --btn-fg: #f2f4f8;
  --btn-border: rgba(255, 255, 255, 0.22);
  --btn-hover: rgba(255, 255, 255, 0.13);
  --sky-0: #061127;
  --sky-1: #0a1a36;
  --sky-2: #0d2144;
  --water-0: #0c1f40;
  --water-1: #081630;
  --water-2: #050c1c;
  --water-3: #040915;
  --haze: rgba(140, 178, 240, 0.09);
  --aurora: rgba(0, 0, 0, 0);
  --doc-0: #061127;
  --doc-1: #08152e;
  --doc-muted: #b9c3d6;
  --glow: 220px;
  --wband: 120px;
  --wband2: 250px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --hero-shift: 1.5vh;
  background: var(--sky-0);
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

::selection { background: rgba(255, 138, 61, 0.4); color: #fff; }

a { color: inherit; }

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

.home {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(70% 45% at 28% 0%, var(--aurora), rgba(0, 0, 0, 0) 70%),
    radial-gradient(85% 30% at 50% var(--water, 76vh), var(--haze), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg,
      var(--sky-0) 0%,
      var(--sky-1) calc(var(--water, 76vh) - var(--glow)),
      var(--sky-2) calc(var(--water, 76vh) - 6px),
      var(--water-0) calc(var(--water, 76vh) + 10px),
      var(--water-1) calc(var(--water, 76vh) + var(--wband)),
      var(--water-2) calc(var(--water, 76vh) + var(--wband2)),
      var(--water-3) 100%);
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 0 20px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  transform: translateY(var(--hero-shift));
}

.headline {
  margin: 0;
  font-size: clamp(2.75rem, 1.5rem + 4vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.headline .letters,
.headline .line { display: block; }
.headline .line-sub {
  margin-top: 0.3em;
  color: var(--muted);
  font-size: 0.5em;
  letter-spacing: -0.025em;
}
.headline .word { display: inline-block; white-space: nowrap; }
.headline .ch { display: inline-block; }
.headline .ch-tight { margin: 0 -0.085em; }
.js .headline .ch { opacity: 0; }

.cta-wrap { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.js .cta-wrap { opacity: 0; pointer-events: none; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.cta svg { flex: none; transition: transform 200ms var(--ease-out); }

.cta-apps { display: none; margin: 0; }
.js .cta-apps { display: inline-grid; place-items: center; padding: 0 18px; }
.cta-apps .lbl {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: opacity 220ms ease, filter 220ms ease, transform 260ms var(--ease-out);
}
.cta-apps .lbl-back,
.cta-apps[aria-expanded="true"] .lbl-show { opacity: 0; filter: blur(4px); transform: scale(0.94); }
.cta-apps[aria-expanded="true"] .lbl-back { opacity: 1; filter: none; transform: none; }
.hero-stage:not(:has(.app)) + .cta-wrap .cta-apps { display: none; }

.hero-stage { position: relative; display: grid; place-items: center; }
.apps {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, calc(100vw - 24px));
  transform: translate(-50%, -50%);
  visibility: hidden;
}
.apps.is-on { visibility: visible; }
.app-list {
  --gap: clamp(8px, 2.4vw, 28px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-list > li { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); min-width: 0; }
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px 8px;
  border-radius: 24px;
  color: var(--fg);
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.js .app { opacity: 0; }
.app-icon {
  display: grid;
  place-items: center;
  width: clamp(58px, 3.2vw + 34px, 76px);
  aspect-ratio: 1;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 23%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 14px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform 220ms var(--ease-out);
}
.app-icon img { display: block; width: 100%; height: 100%; }
.app-name { font-size: 16px; font-weight: 600; letter-spacing: -0.014em; line-height: 1.25; }
.app-text {
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
  letter-spacing: -0.004em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.app-text-short { display: none; }
.leave { position: fixed; inset: 0; z-index: 20; overflow: hidden; }
.leave i { position: absolute; opacity: 0; backface-visibility: hidden; }
/* the top of the app's page: its hero gradient and halftone, lined up with the viewport */
.leave-blau-weisse-stickers i,
.leave-blau-weisse-stickers.is-full {
  background-color: #0850a3;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 1.1px, transparent 1.7px),
    linear-gradient(180deg, #0a5ab0 0%, #0850a3 55%, #003f8a 100%);
  background-size: 16px 16px, 100vw 100vh;
}

a.app:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
a.app:active .app-icon { transform: scale(0.96); }
.cta:active { transform: scale(0.97); }
.cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.bird-hit {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 45%;
  background: transparent;
  cursor: pointer;
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
.bird-hit:focus-visible { outline: 2px dashed var(--focus); outline-offset: 4px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  line-height: 1;
  letter-spacing: -0.004em;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  padding: 10px 9px;
  border-radius: 999px;
  color: rgba(242, 244, 248, 0.74);
  color: color-mix(in srgb, var(--fg) 74%, transparent);
  font-weight: 450;
  text-decoration: none;
  transition: color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.site-footer a[aria-current="page"],
.foot-achv[aria-expanded="true"] { color: var(--fg); }
.foot-gh svg { display: block; }
.foot-sep { width: 1px; height: 12px; margin: 0 8px; background: currentColor; opacity: 0.2; }
.foot-break { display: none; }
.foot-lang { display: inline-flex; }
.site-footer .foot-lang a {
  padding-left: 6px;
  padding-right: 6px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: rgba(242, 244, 248, 0.46);
  color: color-mix(in srgb, var(--fg) 46%, transparent);
}
html[lang="de"] .site-footer .foot-lang a[hreflang="de"],
html:not([lang="de"]) .site-footer .foot-lang a[hreflang="en"] { color: var(--fg); }
@media (max-width: 559px) {
  .site-footer a { padding-top: 8px; padding-bottom: 8px; }
  .foot-gh { order: 1; }
  .foot-sep-1 { order: 2; }
  .foot-lang { order: 3; }
  .foot-break { display: block; order: 4; flex-basis: 100%; height: 0; }
  .foot-achv { order: 5; }
  .foot-sep-3 { order: 6; }
  .foot-legal { order: 7; }
  .foot-privacy { order: 8; }
  .foot-sep-2 { display: none; }
}
.site-footer a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.home .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 0 12px max(10px, env(safe-area-inset-bottom));
  pointer-events: none; /* the water underneath stays interactive */
}
/* soft darkening, so the water's dots never flicker through the links */
.home .site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: calc(100% + 64px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--water-3) 78%);
  pointer-events: none;
}
.home .site-footer a { pointer-events: auto; }

@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--btn-hover); }
  .cta-contact:hover svg { transform: translateX(2px); }
  .cta-apps[aria-expanded="true"]:hover .lbl-back svg { transform: translateX(-2px); }
  a.app:hover .app-icon { transform: translateY(-3px) scale(1.03); }
  .site-footer a:hover { color: var(--fg); }
}

.cta-contact {
  border-color: rgba(242, 244, 248, 0.94);
  background: rgba(242, 244, 248, 0.94);
  color: #0c0e13;
  font-weight: 550;
}
.cta-contact:focus-visible { outline-color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .cta-contact:hover { border-color: #fff; background: #fff; }
}

@media (max-width: 639px) {
  .home { --hero-shift: -1vh; }
  .headline { font-size: 3.15rem; }
  .app-icon { width: 54px; margin-bottom: 10px; }
  .app-name { font-size: 14.5px; }
  .app-text { font-size: 12.5px; }
  .app-text-full { display: none; }
  .app-text-short { display: block; }
}

.feathers { position: fixed; inset: 0; visibility: hidden; pointer-events: none; }
.feathers.is-on { visibility: visible; }
.fl {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  max-width: 10.5em;
  margin: 0;
  color: rgba(242, 244, 248, 0.78);
  color: color-mix(in srgb, var(--fg) 78%, transparent);
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: -0.004em;
  text-align: center;
  opacity: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}
.fl-rank { font-weight: 600; }
.fl-gold .fl-rank { color: #f3d68e; }
.fl-silver .fl-rank { color: #e8edf3; }
.fl-bronze .fl-rank { color: #edb98d; }
.fl-own .fl-rank { color: #ffb07a; }
.fl-chart { color: rgba(242, 244, 248, 0.62); color: color-mix(in srgb, var(--fg) 62%, transparent); }
.fl-dim { color: rgba(242, 244, 248, 0.5); color: color-mix(in srgb, var(--fg) 50%, transparent); }
@media (min-width: 640px) {
  .achv-rows { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (max-width: 639px) {
  .fl { display: none; }
}
.achv-rows {
  position: absolute;
  left: 50%;
  top: calc(var(--water, 76vh) + 18px);
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  color: rgba(242, 244, 248, 0.76);
  color: color-mix(in srgb, var(--fg) 76%, transparent);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.ar {
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 16px;
  margin: 0;
  opacity: 0;
  transform: translateY(5px);
  filter: blur(3px);
  transition: opacity 260ms ease, transform 260ms var(--ease-out), filter 260ms ease;
}
.is-landed .ar { opacity: 1; transform: none; filter: none; transition-duration: 600ms, 800ms, 600ms; }
.is-landed .ar:nth-child(2) { transition-delay: 80ms; }
.is-landed .ar:nth-child(3) { transition-delay: 160ms; }
.is-landed .ar:nth-child(4) { transition-delay: 240ms; }
.ar-where { min-width: 9em; color: rgba(242, 244, 248, 0.5); color: color-mix(in srgb, var(--fg) 50%, transparent); text-align: right; white-space: nowrap; }
.ar b { font-weight: 600; }
.t-gold { color: #f3d68e; }
.t-silver { color: #e8edf3; }
.t-bronze { color: #edb98d; }
.t-own { color: #ffb07a; }
@media (max-width: 639px) {
  .achv-rows { top: calc(var(--water, 77vh) + 9px); font-size: 11.5px; line-height: 1.38; text-align: center; }
  .ar { display: block; }
  .ar-where { min-width: 0; text-align: center; }
  .ar-where::after { content: " · "; }
}
@media (max-width: 639px) and (max-height: 700px) {
  .achv-rows { top: calc(var(--water, 77vh) + 6px); font-size: 11px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .ar { transform: none; filter: none; }
}
html:not(.js) .feathers:target { visibility: visible; }
html:not(.js) .feathers:target .ar { opacity: 1; transform: none; filter: none; }

.clients {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--water, 76vh);
  bottom: calc(50px + env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  color: rgba(242, 244, 248, 0.66);
  color: color-mix(in srgb, var(--fg) 66%, transparent);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 400ms;
}
.clients.is-on { visibility: visible; transition-delay: 0s; }
.clients-title {
  margin: 0;
  color: rgba(242, 244, 248, 0.56);
  color: color-mix(in srgb, var(--fg) 56%, transparent);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.004em;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 38px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}
.logos li { line-height: 1; }
.logo { display: block; fill: currentColor; }
.logo-daimler { width: 5.44em; height: 0.69em; }
.logo-deloitte { width: 3.83em; height: 0.72em; }
.logo-kpmg { width: 3.35em; height: 1.35em; }
.logo-computacenter { width: 3.25em; height: 1.66em; }
.logo-word { font-size: 0.86em; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.clients-title,
.logos li { opacity: 0; transform: translateY(6px); filter: blur(4px); transition: opacity 300ms ease, transform 300ms var(--ease-out), filter 300ms ease; }
.clients.is-on .clients-title,
.clients.is-on .logos li { opacity: 1; transform: none; filter: none; transition-duration: 600ms, 800ms, 600ms; }
.clients.is-on .logos li:nth-child(1) { transition-delay: 90ms; }
.clients.is-on .logos li:nth-child(2) { transition-delay: 160ms; }
.clients.is-on .logos li:nth-child(3) { transition-delay: 230ms; }
.clients.is-on .logos li:nth-child(4) { transition-delay: 300ms; }
.clients.is-on .logos li:nth-child(5) { transition-delay: 370ms; }
.achv-on .clients { visibility: hidden; }
.achv-on .clients .clients-title,
.achv-on .clients .logos li { opacity: 0; }
@media (max-width: 559px) {
  .clients { bottom: calc(80px + env(safe-area-inset-bottom)); gap: 11px; }
  .logos { max-width: 330px; gap: 10px 24px; font-size: 14px; }
}
@media (max-height: 520px) {
  .clients { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .clients-title, .logos li { transform: none; filter: none; }
}

/* lang.js sets .l10n-pending until i18n.js has put in the German text */
.l10n-pending .site-footer { visibility: hidden; }
html[lang="de"] .l-en,
html:not([lang="de"]) .l-de { display: none !important; }

.doc {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--doc-0) 0, var(--doc-1) 100%);
  font-size: 16px;
  line-height: 1.65;
}

.doc-header {
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 24px 0;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: -10px;
  padding: 10px;
  border-radius: 999px;
  color: var(--doc-muted);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: color 150ms ease;
}
.back svg { transition: transform 200ms var(--ease-out); }
.back:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .back:hover { color: var(--fg); }
  .back:hover svg { transform: translateX(-2px); }
}

.doc-main {
  flex: 1;
  width: 100%;
  max-width: 688px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.doc h1 {
  margin: 0 0 12px;
  font-size: clamp(2.125rem, 1.6rem + 2vw, 2.875rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.doc .lede {
  margin: 0 0 48px;
  color: var(--doc-muted);
}

.doc h2 {
  margin: 44px 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.doc h3 {
  margin: 26px 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.4;
}

.doc p,
.doc ul,
.doc address {
  margin: 0 0 14px;
  font-style: normal;
}

.doc ul { padding-left: 1.25em; }
.doc li { margin: 0 0 6px; }
.doc li::marker { color: var(--doc-muted); }
.doc strong { font-weight: 600; }

.doc-main a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--doc-muted);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 150ms ease;
}
.doc-main a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
@media (hover: hover) and (pointer: fine) {
  .doc-main a:hover { text-decoration-color: var(--fg); }
}

.doc .note {
  margin-top: 48px;
  color: var(--doc-muted);
  font-size: 14px;
}

.doc .site-footer {
  padding: 0 16px max(20px, env(safe-area-inset-bottom));
}
.doc .site-footer a { color: var(--doc-muted); }
.doc .site-footer .foot-lang a { color: color-mix(in srgb, var(--doc-muted) 62%, transparent); }
.doc .site-footer a[aria-current="page"] { color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  .doc .site-footer a:hover { color: var(--fg); }
}

@media (max-width: 639px) {
  .doc { font-size: 15.5px; }
  .doc-header { padding-left: 20px; padding-right: 20px; }
  .doc-main { padding: 36px 20px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .cta svg, .back svg, .app-icon { transition: none; }
  .cta-apps .lbl { transition: opacity 160ms ease; transform: none !important; filter: none !important; }
}

/* Contact card; radii are concentric (card = row / 2 + padding) */
.contact {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.contact[hidden] { display: none; }

.contact-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 12, 0.42);
  background: radial-gradient(120% 90% at 50% 45%, rgba(2, 5, 12, 0.3), rgba(2, 5, 12, 0.58));
}

.contact-card {
  --row: 40px;
  --pad: 8px;
  --ink: #f4f5f7;
  --ink-2: rgba(244, 245, 247, 0.7);
  --ink-3: rgba(244, 245, 247, 0.46);
  --fill: rgba(255, 255, 255, 0.055);
  --fill-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.075);
  --accent: #ff8a3d;
  position: relative;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: calc(var(--row) / 2 + var(--pad));
  background-color: rgb(24 27 34 / 0.94);
  background-color: color-mix(in oklab, color-mix(in oklab, #181b21 84%, var(--sky-1)) 93%, transparent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 180px);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 20px 48px -16px rgba(0, 0, 0, 0.55),
    0 56px 120px -40px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  outline: none;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(408px, calc(100vw - 34px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: var(--pad);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.contact-inner::-webkit-scrollbar { display: none; }

.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.contact-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--row);
  margin: 0;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;
  white-space: nowrap;
}
.title-arrow {
  position: absolute;
  top: 50%;
  right: 17px;
  margin-top: -7px;
  opacity: 0;
  pointer-events: none;
}

/* sits 12px from both edges, so its circle shares the centre of the card's corner */
.contact-close {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: calc(var(--row) - 8px);
  height: calc(var(--row) - 8px);
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.contact-close::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.contact-close:active { transform: scale(0.92); }

.contact-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  height: calc(var(--row) + 12px);
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.18);
}
.contact-address {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.016em;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: text-decoration-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.contact-copy {
  flex: none;
  display: grid;
  height: var(--row);
  padding: 0 15px 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.006em;
  cursor: pointer;
  transition: background-color 150ms ease, color 200ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.contact-copy[data-state="done"] { color: #6ee7a0; }

.contact-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 2px;
  padding: 0 16px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.003em;
  white-space: nowrap;
}
.contact-or::before,
.contact-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.field { display: block; min-width: 0; }
.field input,
.field textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid transparent;
  border-radius: calc(var(--row) / 2);
  background: var(--fill);
  color: var(--ink);
  caret-color: var(--accent);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.008em;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input { height: var(--row); padding: 0 15px; text-overflow: ellipsis; }
.field textarea { min-height: 116px; padding: 9px 15px; resize: none; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.field [aria-invalid="true"],
.field [aria-invalid="true"]:focus { border-color: rgba(252, 165, 165, 0.5); }
/* browser autofill keeps the dark look */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--accent);
  box-shadow: inset 0 0 0 40px #2a2d34;
  transition: background-color 100000s 0s, border-color 150ms ease;
}

/* honeypot for bots — never visible to people */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-status {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-left: 16px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: -0.003em;
  transition: color 200ms ease;
}
.contact-status a {
  color: var(--ink-2);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(244, 245, 247, 0.25);
  text-underline-offset: 2px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.contact-status[data-tone="error"] { color: #fca5a5; }
.contact-status[data-tone="ok"] { color: #86efac; }

.contact-send {
  flex: none;
  display: grid;
  height: var(--row);
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 16px -6px rgba(0, 0, 0, 0.5);
  color: #0c0e12;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.008em;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.contact-send:disabled { background: rgba(255, 255, 255, 0.075); box-shadow: none; color: rgba(244, 245, 247, 0.38); cursor: default; }
.contact-send[data-state="sending"] { background: #e2e5ea; color: #0c0e12; }
.contact-send[data-state="done"] { background: #22c55e; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 16px -6px rgba(34, 197, 94, 0.5); color: #ffffff; }
.contact-copy:active,
.contact-send:active:not(:disabled) { transform: scale(0.97); }

.contact .lbl {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out);
}
.contact [data-state] > .lbl:not(.lbl-idle),
.contact [data-state="sending"] > .lbl-idle,
.contact [data-state="done"] > .lbl-idle { opacity: 0; filter: blur(4px); transform: scale(0.96); }
.contact [data-state="sending"] > .lbl.lbl-sending,
.contact [data-state="done"] > .lbl.lbl-done { opacity: 1; filter: none; transform: none; }

.spinner {
  width: 13px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.contact-card :is(button, a):focus-visible { outline: 2px solid rgba(244, 245, 247, 0.85); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  .contact-close:hover { background: var(--fill-hover); color: var(--ink); }
  .contact-address:hover { text-decoration-color: var(--ink-3); }
  .contact-copy:hover { background: rgba(255, 255, 255, 0.15); }
  .field input:hover:not(:focus),
  .field textarea:hover:not(:focus) { background: rgba(255, 255, 255, 0.07); }
  .contact-send[data-state="idle"]:not(:disabled):hover { background: #ffffff; }
  .contact-status a:hover { color: var(--ink); text-decoration-color: var(--ink-2); }
}

/* phones: the card sits at the top so the keyboard never covers it; bigger touch targets */
@media (max-width: 559px) {
  .contact { align-items: flex-start; padding-top: max(12px, env(safe-area-inset-top)); }
  .contact-card { --row: 44px; }
  .contact-title { font-size: 16px; }
  .field textarea { min-height: 112px; padding-top: 11px; }
}
/* narrow phones: Copy becomes an icon button, so the whole address stays readable */
@media (max-width: 439px) {
  .contact-copy { width: var(--row); padding: 0; }
  .contact-copy .lbl-text { display: none; }
}
@media (max-width: 374px) { /* "Name (optional)" needs about 155px per field */
  .contact-fields { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  .contact-address { font-size: 15px; }
}
@media (max-width: 339px) {
  .contact-address { font-size: 14px; }
}
/* 16px keeps iOS from zooming into the page when a field gets focus */
@media (pointer: coarse) {
  .field input, .field textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact .lbl, .contact-send, .contact-copy, .contact-close, .contact-address,
  .field input, .field textarea, .contact-status { transition: none; }
  .spinner { animation-duration: 1.6s; }
}
