/* Selenite Labs — feuille de style unique
   Palette minérale : selenite est un gypse translucide dont les fibres
   parallèles conduisent la lumière. D'où le champ de fibres et l'absence
   de couleur d'accent : la lumière est l'accent. */

:root {
  --stone:  #EDEEF1;
  --satin:  #F8F9FA;
  --ink:    #14161A;
  --muted:  #6E747E;
  --fiber:  rgba(20, 22, 26, 0.10);
  --fiber-lit: rgba(20, 22, 26, 0.30);
  --edge:   rgba(20, 22, 26, 0.13);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 1180px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- barre de navigation ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237, 238, 241, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--edge);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 58px;
}

.brand {
  font-family: var(--display);
  font-variation-settings: "wdth" 118, "wght" 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.navlinks {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
}

.navlinks a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s ease;
}

.navlinks a:hover,
.navlinks a:focus-visible { color: var(--ink); }

/* ---------- héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 12vh, 8rem);
  padding-bottom: clamp(3rem, 8vh, 5.5rem);
  border-bottom: 1px solid var(--edge);
}

.fieldwork {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fieldwork span {
  position: absolute;
  inset: 0;
  display: block;
}

/* fibres au repos */
.fieldwork .base {
  background-image: repeating-linear-gradient(
    90deg,
    var(--fiber) 0 1px,
    transparent 1px 9px
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 68%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 68%, transparent);
}

/* la lumière qui traverse les fibres */
.fieldwork .beam {
  background-image: repeating-linear-gradient(
    90deg,
    var(--fiber-lit) 0 1px,
    transparent 1px 9px
  );
  -webkit-mask-image: linear-gradient(102deg, transparent 0%, #000 38%, #000 56%, transparent 100%);
  mask-image: linear-gradient(102deg, transparent 0%, #000 38%, #000 56%, transparent 100%);
  -webkit-mask-size: 48% 100%;
  mask-size: 48% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: -60% 0;
  mask-position: -60% 0;
  animation: travel 11s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes travel {
  0%   { mask-position: -60% 0; -webkit-mask-position: -60% 0; }
  100% { mask-position: 160% 0; -webkit-mask-position: 160% 0; }
}

/* halo derrière le mot */
.fieldwork .bloom {
  background: radial-gradient(
    58% 62% at 22% 44%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0) 72%
  );
}

.hero__inner { position: relative; z-index: 1; }

.eyebrow {
  color: var(--muted);
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 122, "wght" 650;
  font-size: clamp(3.1rem, 13.5vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
}

.wordmark em {
  display: block;
  font-style: normal;
  font-variation-settings: "wdth" 122, "wght" 300;
}

.lead {
  max-width: 34ch;
  font-size: clamp(1.12rem, 2.1vw, 1.42rem);
  line-height: 1.42;
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  color: var(--ink);
}

/* bande d'identité */
.facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 8vw, 5rem);
  background: var(--edge);
  border: 1px solid var(--edge);
}

.facts div {
  background: var(--satin);
  padding: 1.1rem 1.25rem 1.25rem;
}

.facts dt {
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.facts dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

/* ---------- sections éditoriales ---------- */

.band {
  border-bottom: 1px solid var(--edge);
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}

.band:last-of-type { border-bottom: 0; }

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 880px) {
  .cols {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
  }
}

.cols > h2 {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.prose { max-width: 62ch; }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose p {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
}

.prose h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 600;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  margin: 2.4rem 0 0.6rem;
}

.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.prose ul { margin: 0 0 1.15rem; padding-left: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }

/* liste des domaines de travail */
.craft {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--edge);
}

.craft li {
  border-bottom: 1px solid var(--edge);
  padding: 1.35rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .craft li {
    grid-template-columns: 13.5rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
  }
}

.craft strong {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.craft span { color: var(--muted); font-size: 0.98rem; }

/* ---------- contact ---------- */

.mailto {
  font-family: var(--display);
  font-variation-settings: "wdth" 112, "wght" 500;
  font-size: clamp(1.5rem, 4.6vw, 2.9rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 2px solid var(--edge);
  padding-bottom: 0.12em;
  display: inline-block;
  transition: border-color 0.2s ease;
  word-break: break-word;
}

.mailto:hover,
.mailto:focus-visible { border-color: var(--ink); }

/* ---------- pied de page ---------- */

.foot {
  border-top: 1px solid var(--edge);
  padding-top: 2.25rem;
  padding-bottom: 2.75rem;
  color: var(--muted);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.foot a { text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--ink); }

.footlinks { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ---------- pages internes ---------- */

.pagehead {
  padding-top: clamp(3rem, 9vw, 5.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--edge);
}

.pagehead h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118, "wght" 620;
  font-size: clamp(2.1rem, 6.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.032em;
  margin: 0.8rem 0 0;
}

.stamp { color: var(--muted); margin-top: 1.4rem; }

/* ---------- accessibilité ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--stone);
  padding: 0.6rem 1rem;
  z-index: 50;
}

.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fieldwork .beam { animation: none; -webkit-mask-position: 34% 0; mask-position: 34% 0; }
  * { transition-duration: 0.01ms !important; }
}
