/* ═══════════════════════════════════════════════════════════════════════
   site.css — the whole stylesheet for the Zerion coming-soon site.
   Every colour, size and timing is a token in :root.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── fonts (self-hosted, no third-party requests) ─────────────────────── */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-latin-800.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 800; font-display: swap; src: url('/assets/fonts/playfair-latin-italic-800.woff2') format('woff2'); }

/* ── tokens ───────────────────────────────────────────────────────────── */

:root {
  --bg:           #08090b;
  --bg-raised:    #101216;
  --text:         #f2f3f5;
  --text-soft:    #a8adb7;   /* 7.2:1 on --bg */
  --text-faint:   #7a808a;

  --brand:        #2563eb;
  --brand-bright: #4f86ff;
  --brand-a20:    rgba(37, 99, 235, 0.20);
  --brand-a35:    rgba(37, 99, 235, 0.35);
  --ok:           #34d399;

  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);
  --glass:        rgba(255, 255, 255, 0.06);
  --glass-hover:  rgba(255, 255, 255, 0.12);

  --font:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --gutter:       clamp(1.25rem, 0.9rem + 1.7vw, 2.5rem);
  --wrap:         1180px;
  --wrap-narrow:  760px;

  /* Header: tall at the top of the page, compact once scrolled. The logo
     only ever changes height — its width follows from the image's own
     aspect ratio, so it can never be squashed or stretched. */
  --header-h:       88px;
  --header-h-small: 64px;
  --logo-h:         38px;
  --logo-h-small:   28px;

  --radius:       18px;
  --radius-pill:  999px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --dur:          320ms;
  color-scheme: dark;
}

@media (max-width: 600px) {
  :root {
    --header-h: 72px;
    --header-h-small: 58px;
    --logo-h: 30px;
    --logo-h-small: 24px;
  }
}

/* ── base ─────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1; outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

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

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 400;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--brand-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 600 0.95rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 0 var(--brand-a35), 0 10px 30px -10px var(--brand-a35);
}
.btn--primary:hover {
  background: var(--brand-bright);
  box-shadow: 0 0 0 6px var(--brand-a20), 0 14px 40px -10px var(--brand-a35);
}

.btn--glass {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: var(--glass-hover); border-color: rgba(255, 255, 255, 0.3); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--text-soft);
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.icon-btn:hover { color: var(--text); background: var(--glass); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-btn svg .fill { fill: currentColor; stroke: none; }

/* ── header ───────────────────────────────────────────────────────────── */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    -webkit-backdrop-filter var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out);
}
.header.is-scrolled {
  background: rgba(8, 9, 11, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height var(--dur) var(--ease-out);
}
.header.is-scrolled .header__inner { height: var(--header-h-small); }

.header__logo {
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}
.header__logo img {
  height: var(--logo-h);
  width: auto;
  aspect-ratio: 583 / 176;
  transition: height var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.header.is-scrolled .header__logo img { height: var(--logo-h-small); }
.header__logo:hover img { opacity: 0.85; }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.header__actions .btn { min-height: 42px; padding: 0.6rem 1.2rem; }
.header__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.header__link:hover { color: var(--text); background: var(--glass); }
@media (max-width: 420px) { .header__link { display: none; } }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; }

/* Fallback when WebGL is unavailable: a static version of the same glow. */
.hero__bg {
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(40% 40% at 78% 70%, rgba(79, 134, 255, 0.14), transparent 70%),
    var(--bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__canvas.is-ready { opacity: 1; }

/* The photo that the cursor "spotlight" reveals. --x / --y / --r / --a are
   driven from site.js; the mask is pure CSS, so this costs no canvas work. */
.hero__reveal {
  --x: 50%;
  --y: 50%;
  --r: 0px;
  --a: 0;
  position: absolute;
  inset: -4%;
  background: url('/assets/img/photo/burg-hohenzollern/dsc05951-1600.webp') center 40% / cover no-repeat;
  opacity: var(--a);
  filter: brightness(1.35) saturate(1.15) contrast(1.05);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 38%, rgba(0, 0, 0, 0.7) 58%, rgba(0, 0, 0, 0.25) 80%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 38%, rgba(0, 0, 0, 0.7) 58%, rgba(0, 0, 0, 0.25) 80%, transparent 100%);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  will-change: transform, opacity;
}
@media (max-width: 760px) {
  .hero__reveal { background-image: url('/assets/img/photo/burg-hohenzollern/dsc05951-760.webp'); }
}

/* A thin glass ring that sits on the edge of the spotlight. */
.hero__lens {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  opacity: var(--a, 0);
  pointer-events: none;
  transform: translate3d(var(--lx, -999px), var(--ly, -999px), 0);
  will-change: transform, opacity;
}
.hero__lens::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--r, 0px) * 1.25);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 60px -10px rgba(79, 134, 255, 0.45), inset 0 0 40px -10px rgba(79, 134, 255, 0.35);
  transform: translate(-50%, -50%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__fade {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  pointer-events: none;
}
.hero__content a { pointer-events: auto; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(8, 9, 11, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}
.status__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.status__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: ping 2s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: clamp(4.2rem, 1.2rem + 13vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--sans { font-family: var(--font); font-weight: 800; }
.hero__line--serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: -0.04em;
  text-shadow: none;
}
/* The gradient sits on each letter (not the line) so it survives the
   per-letter transforms and filters. The horizontal padding/negative margin
   pair widens each letter's paint box so the italic overhang is not clipped. */
.hero__line--serif .ch {
  padding-inline: 0.1em;
  margin-inline: -0.1em;
  background: linear-gradient(180deg, #ffffff 15%, #c3d3ff 55%, var(--brand-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Each letter lifts and glows as the cursor gets close (--p: 0 → 1, set
   in site.js). The intro animation lives on the same element, so the
   hover lift is applied via `translate`, which composes with `transform`. */
.ch {
  --p: 0;
  display: inline-block;
  translate: 0 calc(var(--p) * -0.09em);
  filter: drop-shadow(0 0 calc(var(--p) * 28px) rgba(79, 134, 255, calc(var(--p) * 0.9)));
  transition: translate 0.2s linear, filter 0.2s linear;
}

.hero__sub {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: var(--text-soft);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.scroll-cue {
  position: absolute;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-left: -22px;
  border-radius: 50%;
}
.scroll-cue span {
  position: relative;
  width: 22px; height: 36px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color var(--dur) var(--ease-out);
}
.scroll-cue span::after {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text-soft);
  animation: wheel 1.8s var(--ease-out) infinite;
}
.scroll-cue:hover span { border-color: rgba(255, 255, 255, 0.4); }
@keyframes wheel {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (max-height: 640px) { .scroll-cue { display: none; } }

/* ── intro animations ─────────────────────────────────────────────────── */

@keyframes blurRise {
  from { opacity: 0; transform: translateY(0.35em) scale(0.96); filter: blur(14px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.hero__title .ch {
  animation: blurRise 1.1s var(--ease-out) both;
  animation-delay: calc(0.25s + var(--i) * 0.055s);
}
.intro { animation: fadeUp 1s var(--ease-out) both; animation-delay: var(--d, 0s); }

/* After the intro, drop the letter animation so hover filters apply cleanly. */
.hero__title.is-settled .ch { animation: none; }

.no-js .hero__title .ch,
.no-js .intro { animation: none; }

/* ── contact section ──────────────────────────────────────────────────── */

.contact {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem) clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

/* A blueprint grid that is only visible around a glow — the glow drifts on
   its own and follows the cursor while it is over the section. */
.contact__bg {
  --gx: 70%;
  --gy: 30%;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.contact__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(420px circle at var(--gx) var(--gy), #000, transparent 75%);
  mask-image: radial-gradient(420px circle at var(--gx) var(--gy), #000, transparent 75%);
}
.contact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(37, 99, 235, 0.16), transparent 70%);
}

.contact__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.contact__title {
  max-width: 17ch;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.word { display: inline-block; }
.word--accent { position: relative; color: var(--brand-bright); }
.swoosh {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.28em;
  overflow: visible;
  fill: none;
  stroke: var(--brand-bright);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 1.1s var(--ease-out) 0.9s;
}
.word--accent.is-in .swoosh,
.no-js .swoosh { stroke-dashoffset: 0; }

.clock {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(16, 18, 22, 0.6);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}
.clock__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 0 rgba(79, 134, 255, 0.6);
  animation: breathe 2.4s ease-in-out infinite;
}
.clock__time { color: var(--text); font-variant-numeric: tabular-nums; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 134, 255, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(79, 134, 255, 0); }
}

/* ── scroll reveal ── */

.reveal {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html:not(.no-js) .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
}

/* ── bento grid ── */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.tile--wide { grid-column: span 2; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--wide { grid-column: auto; }
}

.tile {
  --mx: -500px;
  --my: -500px;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%),
    var(--bg-raised);
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition:
    transform 0.5s var(--ease-out),
    border-color var(--dur) var(--ease-out),
    opacity 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: 0s, 0s, var(--d, 0s), var(--d, 0s);
}
html:not(.no-js) .tile.reveal:not(.is-in) { transform: perspective(1000px) translateY(30px); }

/* Inner light that follows the pointer. */
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(79, 134, 255, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
/* Border light: tracks the pointer across the whole grid, so neighbouring
   tiles catch the edge of the glow too. Drawn as a 1px ring via masking. */
.tile::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(122, 162, 255, 0.95), rgba(79, 134, 255, 0.25) 40%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.bento:hover .tile::after { opacity: 1; }
.tile:hover::before { opacity: 1; }
.tile:focus-within { border-color: rgba(79, 134, 255, 0.5); }

.tile__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(79, 134, 255, 0.22), rgba(37, 99, 235, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.tile:hover .tile__icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px -8px rgba(79, 134, 255, 0.6);
}

.ico {
  width: 24px; height: 24px;
  fill: none;
  stroke: #dfe8ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.ico .fill { fill: #dfe8ff; stroke: none; }

/* Mail: the envelope tips forward, as if being sent. */
.ico--mail { transition: transform 0.45s var(--ease-out); }
.ico--mail .flap { transition: stroke 0.3s; }
.tile:hover .ico--mail { transform: translate(2px, -2px) rotate(-10deg); }
.tile:hover .ico--mail .flap { stroke: #9dbbff; }

/* Phone: rings. */
.ico--phone .wave { opacity: 0; transition: opacity 0.3s; }
.tile:hover .ico--phone { animation: ring 0.9s ease-in-out; }
.tile:hover .ico--phone .wave--2 { opacity: 1; transition-delay: 0.1s; }
.tile:hover .ico--phone .wave--1 { opacity: 1; transition-delay: 0.25s; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  45% { transform: rotate(-9deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}

/* Instagram: the lens focuses. */
.ico--insta .lens { transform-origin: 12px 12px; transition: transform 0.5s var(--ease-out); }
.tile:hover .ico--insta .lens { transform: scale(0.7); }

/* Pin: hops. */
.tile:hover .ico--pin { animation: hop 0.7s var(--ease-out); }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  70% { transform: translateY(1px); }
}

.tile__label {
  margin-top: 1.75rem;
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tile__value {
  margin-top: 0.35rem;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tile--wide .tile__value { font-size: clamp(1.2rem, 0.95rem + 1.1vw, 1.9rem); }

/* The tile's main link covers the whole tile, so every tile is one big
   click target. The copy button sits above it. */
.tile__link { outline: none; }
.tile__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 22px;
}
.tile__link:focus-visible::after { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

.tile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.tile__hint { color: var(--text-soft); font-size: 0.88rem; }
.tile__link--small {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out);
}
.tile:hover .tile__link--small { color: var(--text); }
.tile__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text-soft);
  transition: transform 0.45s var(--ease-out), background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.tile:hover .tile__arrow {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: rotate(-45deg);
}

/* Copy-to-clipboard button. */
.copy {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-height: 38px;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--text);
  font: 600 0.85rem/1 var(--font);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.copy:hover { background: var(--glass-hover); border-color: rgba(255, 255, 255, 0.3); }
.copy__icon {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.copy__icon--done {
  position: absolute;
  left: 0.8rem;
  opacity: 0;
  transform: scale(0.4);
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}
.copy.is-copied { border-color: rgba(52, 211, 153, 0.5); color: var(--ok); background: rgba(52, 211, 153, 0.08); }
.copy.is-copied .copy__icon--copy { opacity: 0; transform: scale(0.4); }
.copy.is-copied .copy__icon--done { opacity: 1; transform: none; stroke-dashoffset: 0; transition: transform 0.35s var(--ease-out), opacity 0.2s, stroke-dashoffset 0.4s var(--ease-out) 0.1s; }

/* ── map tile ── */

.tile--map { overflow: hidden; }
.tile--map > :not(.map) { position: relative; }
.map {
  position: absolute;
  inset: 0 0 0 38%;
  z-index: -1;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.map__roads {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-linecap: round;
  transition: transform 1.2s var(--ease-out);
}
.map__roads .base path { stroke: rgba(255, 255, 255, 0.1); stroke-width: 7; }
.map__roads .base .minor { stroke: rgba(255, 255, 255, 0.05); stroke-width: 3.5; }
/* Traffic: short streaks of light travelling along the main roads. */
.map__roads .traffic path {
  stroke: rgba(140, 175, 255, 0.85);
  stroke-width: 2;
  stroke-dasharray: 14 90;
  animation: traffic 4s linear infinite;
}
.map__roads .traffic path:nth-child(2) { animation-duration: 5.5s; animation-direction: reverse; }
.map__roads .traffic path:nth-child(3) { animation-duration: 4.6s; animation-delay: -2s; }
@keyframes traffic { to { stroke-dashoffset: -208; } }
.map::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at 58% 52%, rgba(37, 99, 235, 0.28), transparent 70%);
}
.tile--map:hover .map__roads { transform: scale(1.06); }

.map__pin {
  position: absolute;
  left: 58%;
  top: 52%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(79, 134, 255, 0.25), 0 0 24px 4px rgba(79, 134, 255, 0.6);
}
.map__pin::before,
.map__pin::after,
.map__pin span {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(122, 162, 255, 0.7);
  animation: ripple 3s var(--ease-out) infinite;
}
.map__pin::after { animation-delay: 1s; }
.map__pin span { animation-delay: 2s; }
@keyframes ripple {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(7); opacity: 0; }
}

@media (max-width: 620px) {
  .map { inset: 0 0 0 20%; opacity: 0.8; }
  .tile { padding: 1.25rem; min-height: 0; }
  .tile__label { margin-top: 1.25rem; }
  .tile--wide .tile__value, .tile__value { font-size: clamp(1rem, 4.5vw, 1.3rem); }
}

/* ── services marquee ── */

.marquee {
  display: flex;
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  min-width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: flex;
  align-items: center;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  transition: color 0.4s var(--ease-out), -webkit-text-stroke-color 0.4s var(--ease-out);
}
.marquee__track li:nth-child(even) {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: -0.01em;
}
.marquee__track li::after {
  content: '✦';
  margin-inline: clamp(1.25rem, 2.5vw, 2.25rem);
  color: var(--brand-bright);
  font-family: var(--font);
  font-style: normal;
  font-size: 0.45em;
  -webkit-text-stroke: 0;
}
.marquee__track li:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  border-top: 1px solid var(--line);
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } }

.faq__intro { position: sticky; top: calc(var(--header-h-small) + 2rem); }
@media (max-width: 860px) { .faq__intro { position: static; } }
.faq__title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.faq__title em { color: var(--brand-bright); }
.faq__lead { max-width: 30ch; margin: 1.25rem 0 1.75rem; color: var(--text-soft); }

.faq__list { display: grid; gap: 0.75rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item[open] { border-color: rgba(79, 134, 255, 0.45); background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 70%), var(--bg-raised); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.45s var(--ease-out), background-color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.6px;
  margin: -0.8px 0 0 -5.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__a { padding: 0 1.4rem 1.35rem; color: var(--text-soft); }
.faq__item[open] .faq__a { animation: faqOpen 0.5s var(--ease-out); }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ── pause-all-motion toggle (WCAG 2.2.2) ─────────────────────────────── */

.motion-paused *,
.motion-paused *::before,
.motion-paused *::after { animation-play-state: paused !important; }

/* ── legal pages & 404 ────────────────────────────────────────────────── */

.legal {
  position: relative;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.legal__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(45% 55% at 30% 30%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(79, 134, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.back-link:hover { color: var(--text); transform: translateX(-3px); }

.legal__title {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}
.legal__title em { color: var(--brand-bright); }

.prose {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 18, 22, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-soft); }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 0.75rem 0 1rem; padding-left: 1.25rem; list-style: disc; color: var(--text-soft); }
.prose li + li { margin-top: 0.3rem; }
.prose li::marker { color: var(--brand-bright); }
.prose .prose__stand { margin-bottom: 1.5rem; color: var(--text-faint); font-size: 0.88rem; }
.prose strong { color: var(--text); }
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--brand-bright);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease-out);
}
.prose a:hover { color: var(--brand-bright); }

.legal--center { display: grid; place-items: center; min-height: 100%; text-align: center; }
.legal--center .legal__title { margin-bottom: 1rem; }
.legal__lead { margin-bottom: 2rem; color: var(--text-soft); }
.error-code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(6rem, 3rem + 14vw, 12rem);
  line-height: 1;
  background: linear-gradient(100deg, #fff 10%, var(--brand-bright) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

/* ── footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 2rem var(--gutter);
}
.footer__logo img { height: 26px; width: auto; aspect-ratio: 583 / 176; opacity: 0.9; }
.footer__copy { color: var(--text-faint); font-size: 0.86rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; }
.footer__legal a,
.motion-toggle {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.footer__legal a:hover,
.motion-toggle:hover { color: var(--text); background: var(--glass); }
.motion-toggle { border: 0; background: none; font-family: var(--font); line-height: inherit; cursor: pointer; }
.motion-toggle[aria-pressed="true"] { color: var(--brand-bright); }

@media (max-width: 760px) {
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { margin-top: -0.25rem; }
}

/* ── reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .status__dot::after, .scroll-cue span::after, .clock__dot,
  .map__roads path, .map__pin::before, .map__pin::after, .map__pin span { animation: none !important; }
  .marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; min-width: 0; flex-wrap: wrap; justify-content: center; }
  .marquee__track[aria-hidden] { display: none; }
}
