/* Coming Soon — Figma node 4238:177 ("Main-Coming Soon") */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Suisse Intl";
  src: url("Suisse%20Intl/WOFF2/SuisseIntl-Regular.woff2") format("woff2"),
       url("Suisse%20Intl/TTF/SuisseIntl-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("Suisse%20Intl/WOFF2/SuisseIntl-Semibold.woff2") format("woff2"),
       url("Suisse%20Intl/TTF/SuisseIntl-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cs-bg: #f2f6f9;
  --cs-bg-centre: #e3e8eb;
  --cs-ink: #101214;
  --cs-muted: #86898c;
  --cs-accent: #006fed;

  --cs-font: "Suisse Intl", "Helvetica Neue", Arial, sans-serif;
  --cs-font-strong: var(--cs-font);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  /* The header takes the free space, so the intro stays anchored just above the footer */
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 0 40px;
  background: var(--cs-bg) radial-gradient(50% 50% at 50% 50%, var(--cs-bg-centre) 0%, var(--cs-bg) 100%) no-repeat;
  color: var(--cs-ink);
  font-family: var(--cs-font);
  font-size: 13px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }

/* Header */
.cs-logo {
  font-family: var(--cs-font-strong);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cs-ink);
}
.cs-logo:hover { color: var(--cs-accent); }

.cs-header { align-self: start; padding-top: 40px; }
.cs-main { padding-bottom: 56px; }
.cs-footer {
  align-self: end;
  display: grid;
  grid-template-columns: auto auto auto 1fr;   /* Contact, CV and Links together, button at the far end */
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
}

.cs-intro {
  font-size: 15px;
  line-height: 23px;
}
.cs-intro p + p { margin-top: 23px; }

/* Footer */
.cs-label { color: var(--cs-muted); }
.cs-links { list-style: none; color: var(--cs-accent); }
.cs-links a:hover { opacity: .7; }

/* CV card */
.cs-cv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 58, 88, .06);
}
.cs-cv-thumb {
  display: block;
  flex: none;
  border-radius: 4px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .12);
}

/* Music toggle: the padding is a bigger hit area, cancelled by the negative margin */
.cs-sound {
  position: relative;
  display: block;
  align-self: center;
  justify-self: end;
  margin: -12px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--cs-muted);
  line-height: 0;
  cursor: pointer;
  transition: color .2s ease;
}
.cs-sound[hidden] { display: none; }
.cs-sound:focus-visible { color: var(--cs-ink); outline: 2px solid var(--cs-accent); outline-offset: -2px; }

/* Frosted tooltip, to the left of the icon */
.cs-tip {
  --tip-from: 4px;
  position: absolute;
  top: 7px;
  right: calc(100% - 4px);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--cs-ink);
  font: 400 11px/14px var(--cs-font);
  white-space: nowrap;
  pointer-events: none;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(16, 18, 20, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--tip-from)) scale(.97);
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .9, .3, 1.2), visibility .2s;
}
.cs-sound:focus-visible .cs-tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* Hover only where a real pointer exists, so a tap doesn't leave it stuck on */
@media (hover: hover) {
  .cs-sound:hover { color: var(--cs-ink); }
  .cs-sound:hover .cs-tip {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
/* The icon shows what a click will do: while the music plays, it offers to mute */
.cs-sound-on { display: block; }
.cs-sound-off { display: none; }
.cs-sound[aria-pressed="true"] .cs-sound-off { display: block; }
.cs-sound[aria-pressed="true"] .cs-sound-on { display: none; }
.cs-tip-mute { display: none; }
.cs-sound[aria-pressed="true"] .cs-tip-mute { display: inline; }
.cs-sound[aria-pressed="true"] .cs-tip-unmute { display: none; }

/* While the browser holds the music back, the tooltip stays open as an invitation */
.cs-tip-hint, .cs-tip-tap { display: none; }
.cs-sound.is-waiting .cs-tip-hint { display: inline; }
.cs-sound.is-waiting .cs-tip-unmute { display: none; }
.cs-sound.is-waiting .cs-tip {
  top: 13px;
  padding: 0;
  border-radius: 0;
  color: var(--cs-muted);
  font: 400 9px/14px var(--cs-font);
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (hover: none) {
  .cs-tip-click { display: none; }
  .cs-tip-tap { display: inline; }
}

/* No mobile frame: drop the indent, stack the footer columns, keep left-aligned */
@media (max-width: 720px) {
  body { padding: 0 24px; }
  .cs-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
  .cs-sound { align-self: flex-start; }
  /* The button is at the left edge here, so the tooltip opens on its right */
  .cs-tip { --tip-from: -4px; right: auto; left: 100%; }
  .cs-sound.is-waiting .cs-tip { left: calc(100% - 4px); }
}

/* ---------- Page load: content rises in one piece after another, waves fade ---------- */
.cs-header,
.cs-intro p,
.cs-footer > * {
  animation: cs-appear .7s cubic-bezier(.2, .7, .2, 1) backwards;
}
.cs-intro p:nth-child(1)    { animation-delay: .12s; }
.cs-intro p:nth-child(2)    { animation-delay: .2s; }
.cs-footer > :nth-child(1)  { animation-delay: .32s; }
.cs-footer > :nth-child(2)  { animation-delay: .4s; }
.cs-footer > :nth-child(3)  { animation-delay: .48s; }
.cs-footer > :nth-child(4)  { animation-delay: .56s; }
.cs-waves { animation: cs-fade-in 2s ease-out .2s backwards; }

@keyframes cs-appear {
  from { opacity: 0; transform: translateY(8px); }
}
@keyframes cs-fade-in {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-header, .cs-intro p, .cs-footer > *, .cs-waves { animation: none; }
}

/* ---------- Background blobs ----------
   Soft colour pools that drift over the radial gradient, behind the waves.
   Each one fades as it moves, which is what shifts the colour. */
.cs-blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.cs-blobs i {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  /* Eased falloff over a very wide area, so no blob has a visible edge */
  background: radial-gradient(closest-side,
    rgba(var(--rgb), var(--a)) 0%,
    rgba(var(--rgb), calc(var(--a) * .86)) 20%,
    rgba(var(--rgb), calc(var(--a) * .56)) 45%,
    rgba(var(--rgb), calc(var(--a) * .22)) 70%,
    rgba(var(--rgb), calc(var(--a) * .05)) 88%,
    rgba(var(--rgb), 0) 100%);
  will-change: transform, opacity;
  animation:
    var(--path) var(--move) ease-in-out infinite alternate,
    cs-blob-tint var(--shift) ease-in-out infinite alternate;
  animation-delay: var(--start);
}
.cs-blobs i:nth-child(1) { --size: 110vmax; --rgb: 215, 229, 232; --a: .45; --path: cs-blob-a; --move: 46s; --shift: 29s; --start: -11s; top: -60%; left: -50%; }
.cs-blobs i:nth-child(2) { --size: 100vmax; --rgb: 224, 231, 235; --a: .5; --path: cs-blob-b; --move: 58s; --shift: 37s; --start: -23s; top: -20%; right: -55%; }
.cs-blobs i:nth-child(3) { --size: 95vmax; --rgb: 211, 228, 230; --a: .35; --path: cs-blob-c; --move: 52s; --shift: 33s; --start: -7s; bottom: -70%; left: -5%; }
.cs-blobs i:nth-child(4) { --size: 80vmax; --rgb: 242, 246, 249; --a: .6; --path: cs-blob-d; --move: 41s; --shift: 23s; --start: -31s; top: -15%; left: 5%; }

@keyframes cs-blob-tint { from { opacity: .45; } to { opacity: 1; } }
@keyframes cs-blob-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(22vw, 14vh, 0) scale(1.15); }
  to   { transform: translate3d(8vw, 30vh, 0) scale(.9); }
}
@keyframes cs-blob-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  50%  { transform: translate3d(-24vw, -16vh, 0) scale(.9); }
  to   { transform: translate3d(-10vw, 22vh, 0) scale(1.15); }
}
@keyframes cs-blob-c {
  from { transform: translate3d(0, 0, 0) scale(.95); }
  50%  { transform: translate3d(26vw, -20vh, 0) scale(1.2); }
  to   { transform: translate3d(-18vw, -8vh, 0) scale(1); }
}
@keyframes cs-blob-d {
  from { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-28vw, 18vh, 0) scale(1.25); }
  to   { transform: translate3d(20vw, -14vh, 0) scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-blobs i { animation: none; }
}

/* ---------- Waves (drawn by waves.js) ---------- */
.cs-waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
