:root {
  --nx-marine: #02243A;
  --nx-marine-clair: #06334F;
  --nx-abysse: #011827;
  --nx-blanc: #FFFFFF;
  --nx-texte: #EAF2F7;
  --nx-brume: #B9CCD8;
  --nx-voile: #86A2B3;
  --nx-corail: #FF7E66;
  --nx-encre: #023C5F;
  --nx-corail-vif: #FF685F;
  --nx-font-display: 'Instrument Serif', 'Times New Roman', serif;
  --nx-font-text: 'Manrope', system-ui, sans-serif;
  --nx-display-font: var(--nx-font-display);
  --nx-display-weight: 400;
  --nx-display-size: clamp(46px, 7vw, 88px);
  --nx-display-line: 1.02;
  --nx-display-tracking: -0.01em;
  --nx-display-color: var(--nx-blanc);
  --nx-lead-font: var(--nx-font-text);
  --nx-lead-weight: 400;
  --nx-lead-size: clamp(16px, 1.6vw, 20px);
  --nx-lead-line: 1.5;
  --nx-lead-tracking: 0;
  --nx-lead-color: var(--nx-brume);
  --nx-wordmark-font: var(--nx-font-text);
  --nx-wordmark-weight: 800;
  --nx-wordmark-size: 17px;
  --nx-wordmark-line: 1;
  --nx-wordmark-tracking: 0.06em;
  --nx-wordmark-color: var(--nx-blanc);
  --nx-label-font: var(--nx-font-text);
  --nx-label-weight: 500;
  --nx-label-size: 13px;
  --nx-label-line: 1.4;
  --nx-label-tracking: 0.2em;
  --nx-label-color: var(--nx-voile);
  --nx-link-font: var(--nx-font-text);
  --nx-link-weight: 500;
  --nx-link-size: 13px;
  --nx-link-line: 1.5;
  --nx-link-tracking: 0.02em;
  --nx-link-color: var(--nx-corail);
  --nx-link-decoration: underline;
  --nx-small-font: var(--nx-font-text);
  --nx-small-weight: 400;
  --nx-small-size: 13px;
  --nx-small-line: 1.5;
  --nx-small-tracking: 0;
  --nx-small-color: var(--nx-voile);
  --nx-space-1: 4px;
  --nx-space-2: 8px;
  --nx-space-3: 12px;
  --nx-space-4: 16px;
  --nx-space-5: 24px;
  --nx-space-6: 28px;
  --nx-space-7: 40px;
  --nx-space-8: 48px;
  --nx-space-9: 72px;
  --nx-space-10: 80px;
  --nx-motion-intro: 2s;
  --nx-motion-intro-easing: linear;
  --nx-motion-reveal: 700ms;
  --nx-motion-reveal-easing: cubic-bezier(.2, .7, .2, 1);
  --nx-motion-comet: 5.5s;
  --nx-motion-comet-easing: linear;
  --nx-motion-breathe: 9s;
  --nx-motion-breathe-easing: ease-in-out;
  --nx-motion-ui: 600ms;
  --nx-motion-ui-easing: cubic-bezier(.2, .7, .2, 1);
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  background: var(--nx-abysse);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--nx-texte);
  font-family: var(--nx-font-text);
  background: radial-gradient(1100px 700px at 28% 55%, var(--nx-marine-clair) 0%, var(--nx-marine) 52%, var(--nx-abysse) 100%) var(--nx-marine);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1, p { margin: 0; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding:
    max(var(--nx-space-8), env(safe-area-inset-top))
    max(var(--nx-space-9), env(safe-area-inset-right))
    max(var(--nx-space-8), env(safe-area-inset-bottom))
    max(var(--nx-space-9), env(safe-area-inset-left));
  overflow: hidden;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--nx-space-4);
}

.word {
  font-family: var(--nx-wordmark-font);
  font-weight: var(--nx-wordmark-weight);
  font-size: var(--nx-wordmark-size);
  line-height: var(--nx-wordmark-line);
  letter-spacing: var(--nx-wordmark-tracking);
  color: var(--nx-wordmark-color);
}

.label {
  font-family: var(--nx-label-font);
  font-weight: var(--nx-label-weight);
  font-size: var(--nx-label-size);
  line-height: var(--nx-label-line);
  letter-spacing: var(--nx-label-tracking);
  text-transform: uppercase;
  color: var(--nx-label-color);
}

.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--nx-space-10);
  align-items: center;
  padding-block: var(--nx-space-8);
}

.mark {
  position: relative;
  isolation: isolate;
  width: clamp(176px, 26vw, 340px);
  aspect-ratio: 1;
  border-radius: 24px;
}

.mark::before {
  content: '';
  position: absolute;
  inset: -26%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 126, 102, .2), rgba(255, 126, 102, 0));
  animation: breathe var(--nx-motion-breathe) var(--nx-motion-breathe-easing) infinite;
}

.mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mark-anim + .mark-still { display: none; }

.mark.is-replayable { cursor: pointer; }
.mark:focus { outline: none; }
.mark:focus-visible { outline: 2px solid var(--nx-corail); outline-offset: 8px; }

.slogan {
  font-family: var(--nx-display-font);
  font-weight: var(--nx-display-weight);
  font-size: var(--nx-display-size);
  line-height: var(--nx-display-line);
  letter-spacing: var(--nx-display-tracking);
  color: var(--nx-display-color);
}

.slogan .reveal { display: block; }

.lead {
  margin-top: var(--nx-space-6);
  max-width: 31ch;
  font-family: var(--nx-lead-font);
  font-weight: var(--nx-lead-weight);
  font-size: var(--nx-lead-size);
  line-height: var(--nx-lead-line);
  letter-spacing: var(--nx-lead-tracking);
  color: var(--nx-lead-color);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--nx-space-3) var(--nx-space-5);
  font-family: var(--nx-small-font);
  font-weight: var(--nx-small-weight);
  font-size: var(--nx-small-size);
  line-height: var(--nx-small-line);
  letter-spacing: var(--nx-small-tracking);
  color: var(--nx-small-color);
}

.link {
  font-family: var(--nx-link-font);
  font-weight: var(--nx-link-weight);
  letter-spacing: var(--nx-link-tracking);
  color: var(--nx-link-color);
  text-decoration-line: var(--nx-link-decoration);
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 126, 102, .55);
  text-underline-offset: .3em;
  transition: text-decoration-color var(--nx-motion-ui) var(--nx-motion-ui-easing);
}

.link:hover,
.link:focus-visible {
  text-decoration-color: var(--nx-corail);
  text-decoration-thickness: 2px;
}

.link:focus { outline: none; }
.link:focus-visible { outline: 2px solid var(--nx-corail); outline-offset: 4px; border-radius: 2px; }

.mail { position: relative; }

.copied {
  position: absolute;
  left: 0;
  bottom: calc(100% + var(--nx-space-2));
  font-family: var(--nx-label-font);
  font-weight: var(--nx-label-weight);
  font-size: var(--nx-label-size);
  line-height: var(--nx-label-line);
  letter-spacing: var(--nx-label-tracking);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nx-label-color);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--nx-motion-ui) var(--nx-motion-ui-easing);
}

.copied.is-visible { opacity: 1; }

.reveal { animation: reveal var(--nx-motion-reveal) var(--nx-motion-reveal-easing) both; }
.r1 { animation-delay: calc(var(--nx-motion-intro) - 400ms); }
.r2 { animation-delay: calc(var(--nx-motion-intro) - 250ms); }
.r3 { animation-delay: calc(var(--nx-motion-intro) + 300ms); }

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes breathe {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50% { opacity: .95; transform: scale(1.04); }
}

@media (pointer: coarse) {
  .link { padding-block: 10px; }
}

@media (max-width: 899px) {
  .page {
    padding:
      max(var(--nx-space-6), env(safe-area-inset-top))
      max(var(--nx-space-5), env(safe-area-inset-right))
      max(var(--nx-space-6), env(safe-area-inset-bottom))
      max(var(--nx-space-5), env(safe-area-inset-left));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--nx-space-6);
    align-content: center;
  }

  .mark { width: clamp(176px, 40vw, 260px); }

  .foot {
    flex-direction: column;
    gap: var(--nx-space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .mark::before { animation: none; opacity: .75; }
  .mark .mark-anim { display: none; }
  .mark .mark-anim + .mark-still { display: block; }
  .link, .copied { transition: none; }
}
