/* =========================================================
   elmi — Y2K chrome, minimal
   Colors, fonts and the chrome gradients live in variables
   so they're easy to change in one place.
   ========================================================= */
:root {
  --bg: #ecedef;
  --bg-top: #f6f7f8;
  --ink: #0d0d0f;
  --muted: #6c6f76;
  --line: rgba(13, 13, 15, 0.1);
  --white-line: rgba(255, 255, 255, 0.85);

  /* Dark chrome: dark top and bottom with a bright "horizon" band in the
     middle — how a polished metal sphere reflects sky and ground. */
  --chrome-dark: linear-gradient(
    180deg,
    #24262b 0%,
    #7d828b 40%,
    #f5f6f8 50%,
    #5c6069 58%,
    #1b1c20 100%
  );
  /* Light chrome, for use on dark backgrounds */
  --chrome-light: linear-gradient(
    180deg,
    #ffffff 0%,
    #c7cad0 40%,
    #6e727a 50%,
    #e6e8eb 62%,
    #a3a8b0 100%
  );
  /* A moving white glint we lay over chrome text */
  --glint: linear-gradient(
    110deg,
    transparent 42%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 58%
  );

  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-pixel: "Geist Pixel", "Geist", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* "clip" hides sideways overflow (from the tilted marquee) without
   creating a scroll container, so smooth scrolling still works. */
html, body { overflow-x: clip; }

body {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 40%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink);
  color: #fff;
  clip-path: inset(0 0 0 0); /* GSAP animates the bottom edge up to "wipe" it away */
}
.loader-mark {
  font-family: var(--font-pixel);
  font-size: 56px;
  line-height: 1;
  background: var(--chrome-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.loader-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #8a8e96;
}

/* ---------- Film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none; /* clicks pass straight through */
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 var(--gutter);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  /* Three columns: empty | name | button. The two outer columns are equal
     (1fr each), so the name sits exactly in the middle. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 7px;
  border-radius: 999px;
  /* Frosted glass: see-through white + blur of whatever is behind */
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--white-line);
  box-shadow: 0 10px 30px -12px rgba(20, 22, 30, 0.18);
}
.brand {
  grid-column: 2; /* the middle column */
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em; /* same tight spacing as the big wordmark */
}
/* At small sizes the full chrome's white band washes the letters out,
   so the nav uses a darker version with a softer highlight. */
.brand.chrome-text {
  background-image:
    var(--glint),
    linear-gradient(180deg, #2a2c31 0%, #555a63 42%, #aeb3bb 52%, #3a3d44 62%, #121315 100%);
}
.nav-inner .button { justify-self: end; } /* push the button to the right edge */

/* "ZURICH 14:32:07" live clock on the left of the nav */
.nav-clock {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  gap: 10px;
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}
.clock-time {
  color: var(--ink);
  /* Every digit gets the same width, so the time doesn't jiggle each second */
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(180deg, #4a4e57 0%, #1a1b1f 55%, #0b0b0d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35), /* glossy top edge */
    0 1px 2px rgba(0, 0, 0, 0.25),
    0 10px 24px -8px rgba(0, 0, 0, 0.35);
  transition: filter 0.3s;
}
/* inline-block lets JS fix its width during the scramble */
.scramble-text { display: inline-block; white-space: nowrap; overflow: hidden; }
.button:hover { filter: brightness(1.2); }
.button-label { display: inline-flex; align-items: center; gap: 8px; pointer-events: none; }
.arrow { transition: transform 0.4s var(--ease-out); }
.button:hover .arrow { transform: translateX(4px); }

.button-small { padding: 10px 18px; font-size: 14px; }
.button-large { padding: 18px 32px; font-size: 17px; }

/* ---------- Shared bits ---------- */
/* Chrome text: the gradient is painted only inside the letters
   (background-clip: text), and the glint layer slides across. */
.chrome-text,
.wordmark,
.card-num {
  background-image: var(--glint), var(--chrome-dark);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glint 5s var(--ease-out) infinite;
}
@keyframes glint {
  0%   { background-position: 160% 0, 0 0; }
  60%  { background-position: -60% 0, 0 0; }
  100% { background-position: -60% 0, 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100svh;
  padding: 120px var(--gutter); /* same space top and bottom = true middle */
  display: flex;
  align-items: center; /* vertical middle */
  justify-content: center; /* horizontal middle */
  text-align: center; /* center each line of the headline */
}

.hero-title {
  position: relative;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 112px);
  line-height: 1.02;
  /* "ch" = width of one character. A cap of 18 wraps the headline onto 3 lines. */
  max-width: 18ch;
  margin: 0 auto;
  letter-spacing: -0.02em;
}
.hero-title-ghost { visibility: hidden; }
.hero-title-live { position: absolute; inset: 0; }

/* ---------- Manifesto ---------- */
.manifesto {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px var(--gutter) 120px;
}
.manifesto-text p {
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 0.7em;
}
.kicker {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 3.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 34ch; /* wide enough for 2 lines */
  text-wrap: balance; /* make both lines roughly the same length */
  margin: 80px auto 0; /* auto left/right = centered block */
  text-align: center;
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  margin: 40px -8vw;
  padding: 30px 0;
  background: var(--ink);
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; }
.marquee span,
.marquee b {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  white-space: nowrap;
  padding: 0 28px;
  background: var(--chrome-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.marquee b { padding: 0 8px; }

/* ---------- What we do ---------- */
.offer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 160px var(--gutter) 120px;
}
.offer-head { margin-bottom: 56px; }
.section-title {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card-wrap { perspective: 1000px; }
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  height: 100%;
  min-height: 380px;
  padding: 32px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* stack everything from the top */
  gap: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.4));
  border: 1px solid var(--white-line);
  box-shadow:
    0 0 0 1px var(--line),
    0 30px 60px -30px rgba(20, 22, 30, 0.3);
  transform-style: preserve-3d;
}
/* A soft light that follows the cursor (JS updates --mx and --my) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.9), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-num {
  font-family: var(--font-pixel);
  font-size: clamp(72px, 9vw, 128px);
  line-height: 0.85;
}
/* Small status text in the card's top-right corner */
.card-status {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card p { color: var(--muted); max-width: 40ch; }

/* Title stays under the number; the description drops to the bottom.
   flex: 1 lets the body fill the card's leftover height, and
   margin-top: auto pushes the paragraph down into that space. */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body p { margin-top: auto; }

/* ---------- Closing CTA ---------- */
.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wordmark {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(120px, 30vw, 420px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 24px 0 20px;
  filter: drop-shadow(0 24px 30px rgba(20, 22, 30, 0.18));
}
.cta-tagline {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 2.4vw, 32px);
  text-wrap: balance; /* on narrow screens, keeps any extra lines even */
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer a:hover { color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 110px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 320px; }
}
@media (max-width: 480px) {
  .button-small .button-label { font-size: 13px; }
  .button-small { padding: 9px 14px; }
  .brand { font-size: 22px; }
  /* Not enough room on phones: keep the time, hide the city */
  .clock-city { display: none; }
  .nav-clock { margin-left: 8px; }
}
