@font-face { font-family: 'Neue Haas Display'; src: url('fonts/NeueHaasDisplay-Roman.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neue Haas Display'; src: url('fonts/NeueHaasDisplay-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Neue Haas Display'; src: url('fonts/NeueHaasDisplay-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Neue Haas Display'; src: url('fonts/NeueHaasDisplay-Black.woff') format('woff'); font-weight: 900; font-display: swap; }

:root {
  --font: 'Neue Haas Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --blue: #0133cc;
  --red: #ff1a1a;
  --white: #ffffff;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
}

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

html { background: var(--blue); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--blue);
  -webkit-font-smoothing: antialiased;
}

/* ── Shared ──────────────────────────────────────────────────── */
/* Rob■Design wordmark, assembled from the Figma layers (905:3438): 117 × 43 */
.brand {
  position: relative;
  display: block;
  width: 117.1px;
  height: 43.3px;
  color: var(--white);
}
.brand img { position: absolute; display: block; max-width: none; }
.brand-rob { left: 0; top: 0; }
.brand-design { left: 50.4px; top: 20px; }
.brand-dot {
  position: absolute;
  left: 38.54px;
  top: 11.59px;
  width: 18.8px;
  height: 18.5px;
  background: var(--red);
  transition: transform 0.6s var(--spring);
}
.brand:hover .brand-dot { transform: rotate(90deg) scale(1.12); }
.brand:focus-visible { outline: 2px solid currentColor; outline-offset: 8px; border-radius: 6px; }

/* Language switch fade: the page dims before reloading in the other language */
html.is-leaving body { opacity: 0; transition: opacity 0.2s ease; }

/* The red full stop: a square sized to the font's own period (0.171em × 0.168em) */
.dot {
  display: inline-block;
  width: 0.171em;
  height: 0.168em;
  margin: 0 0.032em;
  transform-origin: 50% 100%;
}
.dot-spin { display: block; width: 100%; height: 100%; background: var(--red); }
/* Hop: crouch, jump and spin, squash on landing, settle */
.dot.is-hopping { animation: dotHop 1.15s both; }
.dot.is-hopping .dot-spin { animation: dotSpin 1.15s both; }
@keyframes dotHop {
  0% { transform: none; }
  12% { transform: scale(1.3, 0.7); animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1); }
  48% { transform: translateY(-1.15em) scale(0.9, 1.15); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  70% { transform: scale(1.4, 0.6); }
  82% { transform: translateY(-0.18em) scale(0.95, 1.05); }
  92% { transform: scale(1.05, 0.95); }
  100% { transform: none; }
}
@keyframes dotSpin {
  0%, 12% { transform: none; }
  70%, 100% { transform: rotate(360deg); }
}

/* "Book an intro call here" */
.book-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.book-text { position: relative; }
.book-text::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.book-arrow { width: 36px; height: 36px; flex-shrink: 0; transition: transform 0.5s var(--spring); }
.book-link:hover .book-text::after, .book-link:focus-visible .book-text::after { transform: scaleX(1); transform-origin: left; }
.book-link:hover .book-arrow { transform: rotate(45deg) scale(1.08); }
.book-link:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 8px; }

/* ── Hero (Figma 905:3427) ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* the photo + headline stack sits a little above the middle, as in the Figma frame */
  padding: 0 clamp(20px, 5vw, 75px) clamp(60px, 19svh, 166px);
  overflow: hidden;
}
.hero-logo { position: absolute; top: clamp(28px, 7.6svh, 65px); left: clamp(20px, 6.7vw, 101px); }

/* EN / DE */
.lang-switch {
  position: absolute;
  top: clamp(28px, 7.6svh, 65px);
  right: clamp(20px, 3.9vw, 59px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang-switch a {
  position: relative;
  z-index: 1;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  transition: color 0.35s var(--ease-out);
}
.lang-switch a[aria-current] { color: var(--blue); }
.lang-switch a:not([aria-current]):hover { color: rgba(255, 255, 255, 0.7); }
.lang-switch a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.lang-indicator {
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--white);
  transform: translateX(calc(var(--at, 0) * 100%));
  transition: transform 0.5s var(--spring);
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity, filter;
}
.hero-me { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; }
.hero-photo {
  display: block;
  width: clamp(88px, 8.2vw, 124px);
  height: auto;
  aspect-ratio: 124 / 155;
  border-radius: 20px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}
.hero-name { font-size: clamp(17px, 1.46vw, 22px); letter-spacing: 0.01em; }
.hero-title {
  margin-top: clamp(28px, 4.8vw, 73px);
  font-size: clamp(34px, 7.28vw, 132px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.018em;
  text-align: center;
  white-space: nowrap;
}
.hero-word { display: inline-block; }
.hero-book { position: absolute; right: clamp(4px, 3.9vw, 59px); bottom: clamp(88px, 17.9svh, 154px); }

/* Scroll prompt: a red dot that keeps dropping down a line */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6svh, 51px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.4s;
}
.scroll-cue-track { position: relative; width: 1px; height: 44px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.scroll-cue-dot {
  position: absolute;
  left: -2.5px; top: 0;
  width: 6px; height: 6px;
  background: var(--red);
  animation: cueDrop 1.8s var(--ease-out) infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-8px); opacity: 0; }
  20% { opacity: 1; }
  70%, 100% { transform: translateY(44px); opacity: 0; }
}
.scroll-cue:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; border-radius: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-word, .hero-logo, .lang-switch, .hero-me, .hero-book, .scroll-cue-label {
    animation: rise 1.1s var(--ease-out) backwards;
    animation-delay: calc(0.15s + var(--i, 0) * 0.08s);
  }
  .hero-logo, .lang-switch { --i: -1; }
  .hero-me { --i: -0.5; }
  .hero-book, .scroll-cue-label { --i: 4; }
}
@keyframes rise { from { opacity: 0; filter: blur(12px); transform: translateY(0.3em); } }

@media (max-width: 640px) {
  .hero { padding-bottom: 120px; }
  .hero-title { font-size: 14vw; white-space: normal; }
  .hero-book { right: 50%; transform: translateX(50%); bottom: 132px; font-size: 20px; }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  padding: clamp(80px, 9vw, 137px) clamp(20px, 4vw, 61px) 40px clamp(20px, 6.35vw, 96px);
}
.footer-top, .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer-title { font-size: clamp(28px, 2.65vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -0.028em; }
.footer-links { display: flex; gap: 32px; font-size: 17px; font-weight: 500; }
.footer-bottom { margin-top: 44px; align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 17px; font-weight: 400; letter-spacing: -0.018em; }
.footer-bottom .book-link { margin-right: -20px; }

.footer-links a, .footer-legal a { position: relative; color: inherit; text-decoration: none; }
.footer-links a::after, .footer-legal a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.footer-links a:hover::after, .footer-legal a:hover::after,
.footer-links a:focus-visible::after, .footer-legal a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.footer-links a:focus-visible, .footer-legal a:focus-visible { outline: none; }

@media (max-width: 640px) {
  .footer-bottom .book-link { margin: 0 0 0 -20px; font-size: 20px; }
}
