/* ============================================================
   CHOOSE YOUR BOAT — digital card
   Reproduced 1:1 from Figma node 18:4303 (390 x 844).
   Every internal metric is expressed in `em` against a single
   anchor font-size, so the whole composition scales as one
   unit and stays pixel-exact at the 390px design width.
   ============================================================ */

/* ---------- Fonts (self-hosted, Google Fonts Instrument Serif) ---------- */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-Regular.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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-Regular-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-Italic.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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/InstrumentSerif-Italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #998877;          /* Figma #987 */
  --paper: #ffffff;
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.95s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2 { margin: 0; font-size: inherit; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

figure { margin: 0; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   MOBILE — exact reproduction of the 390 x 844 frame.
   `--anchor` is the composition width; 16px at 390px wide.
   ============================================================ */
.card {
  --anchor: min(100vw, 430px);
  font-size: calc(var(--anchor) / 390 * 16);
  width: var(--anchor);
  padding: 3.6875em 0 2.4375em;      /* 59px top / 39px bottom */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.panel { display: contents; }

/* ---------- Logo lockup (252 x 171) ---------- */
.brand { width: 15.75em; display: flex; flex-direction: column; align-items: center; }
.brand__mark { display: block; width: 34.817%; }              /* 87.74 / 252 — se met à l échelle avec le lockup */
.brand__text { display: block; width: 100%; margin-top: 10.155%; }  /* 25.59 / 252 — idem */
.brand__svg { display: block; width: 100%; height: auto; color: var(--ink); }

/* ---------- Contact block (290 wide, from y=261) ---------- */
.contact {
  width: 18.125em;                   /* 290px */
  margin-top: 1.9375em;              /* 31px below the lockup */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;                        /* 8px */
}
.eyebrow {
  margin: 0;
  font-size: 1em;                    /* 16px */
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.shots {
  width: 100%;
  display: flex;
  justify-content: space-between;    /* 140 + 10 + 140 = 290 */
}
.shot {
  width: 8.75em;                     /* 140px */
  height: 15em;                      /* 240px */
  overflow: hidden;
  border-radius: 3.125em 0 3.125em 0; /* 50px, mirrored per card */
}
.shot--a { border-radius: 0 3.125em 0 3.125em; }
.shot__media { display: block; width: 100%; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- e-mail / phone pills ---------- */
.coords { width: 100%; display: flex; gap: 0.5em; }
.coords__col { flex: 1 1 0; display: flex; flex-direction: column; gap: 0.5em; }

.pill {
  font-size: 1.5em;                  /* 24px — all pill metrics scale from here */
  line-height: 1;
  height: 1.75em;                    /* 42px */
  padding: 0.3333em;                 /* 8px */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  border: 1px solid var(--ink);
  border-radius: 1em 0 1em 0;        /* 24px, mirrored per pill */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.45s var(--e-soft);
}
.pill--a { border-radius: 0 1em 0 1em; }
.pill--site  { border-radius: 1em; font-style: italic; }   /* the two site links are italic in Figma */

/* warm fill that wipes in on hover / focus */
.pill::before,
.social::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.55s var(--e-out);
  z-index: -1;
}
.pill:focus-visible { outline: 1px solid var(--ink); outline-offset: 0.1667em; }
.pill:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.pill:focus-visible { color: var(--paper); }

/* ---------- Site links (251 wide, from y=659) ---------- */
.links {
  width: 15.6875em;                  /* 251px */
  margin-top: 2.125em;               /* 34px below the contact block */
  display: flex;
  flex-direction: column;
  gap: 1em;                          /* 16px */
}
.link { display: flex; flex-direction: column; gap: 0.4375em; }  /* 7px */
.link .pill { width: 100%; }

/* ---------- social links (same petal language as the pills) ---------- */
.socials { display: flex; justify-content: center; gap: 0.5em; }
.social {
  width: 2.75em;                        /* 44px — comfortable touch target */
  height: 2.75em;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0.875em 0 0.875em 0;   /* mirrored per item, like the pills */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.45s var(--e-soft);
}
.social--a { border-radius: 0 0.875em 0 0.875em; }
.social svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.social:focus-visible { outline: 1px solid var(--ink); outline-offset: 0.25em; color: var(--paper); }
.social:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }

/* ============================================================
   DESKTOP — same composition, opened into two columns.
   ============================================================ */
@media (min-width: 900px) {
  .card {
    /* Même colonne verticale que sur mobile. La composition fait 57.94em de
       haut ; on cale l'échelle sur la hauteur de la fenêtre pour qu'elle tienne
       entièrement, sans défilement. Le plafond de 20px l'empêche de devenir
       démesurée sur un très grand écran. */
    font-size: min(20px, calc(100vh / 59.5));
    width: 24.375em;               /* 390px à l'échelle de référence */
  }
}

/* ============================================================
   MOTION
   Initial states apply only when JS is present (.js on <html>),
   so a no-JS visitor always sees the finished composition.
   ============================================================ */

/* pointer parallax — set from JS, composited on their own layers */
/* Only the boat mark drifts with the pointer. It is now a separate element,
   exported from Figma on its own — the wordmark cannot be dragged along. */
.brand__mark {
  transform: translate3d(calc(var(--px, 0) * -8px), calc(var(--py, 0) * -8px), 0);
  will-change: transform;
}

/* --- logo: the boat mark blooms in; the wordmark never moves at all --- */
.js .brand__mark .brand__svg {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s var(--e-out), transform 1.15s var(--e-out);
}
.js .brand.in .brand__mark .brand__svg { opacity: 1; transform: none; }

/* --- hover: only where a real pointer exists --- */
@media (hover: hover) and (pointer: fine) {
  .pill:hover,
  .social:hover { color: var(--paper); }
  .pill:hover::before,
  .social:hover::before { transform: scaleX(1); transform-origin: 0 50%; }

}

/* --- respect the system preference --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .brand__mark { transform: none !important; }
}
