/* ==========================================================================
   freddykhuti.fr — système éditorial
   Parti pris : rayon 0, aucune ombre, un seul accent, la typographie porte tout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices auto-hébergées
   Si les fichiers woff2 sont absents, la pile de repli système prend le relais
   sans casser la mise en page.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo Var";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Var";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Univers chromatiques */
  --ink: #0b0b0c;
  --ink-fg: #f4f1ea;
  --ink-muted: #8a8a85;
  --paper: #f2efe9;
  --paper-fg: #111112;
  --paper-muted: #6e6b64;

  --accent: #ff4a1c;
  --error: #ff6b63;
  --success: #4fd39a;

  /* Familles */
  --sans: "Archivo Var", Archivo, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono Var", "JetBrains Mono", ui-monospace, "Cascadia Mono",
    Consolas, "Liberation Mono", monospace;

  /* Flèche maison. U+2192 n'existe ni dans Archivo ni dans JetBrains Mono :
     le glyphe tombait sur une police système, différente selon le contexte,
     donc deux dessins pour la même flèche. Celle-ci est dessinée une fois et
     prend la couleur du texte. */
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M0.8 6h21.2M16.8 1.2 21.9 6l-5.1 4.8'/%3E%3C/svg%3E");

  /* Rythme */
  --wrap: 1240px;
  --gutter: 1.5rem;
  --head-h: 4.5rem;
  --section-y: clamp(5rem, 11vw, 9rem);

  /* Échelle typographique */
  /* Calibré pour que « CONCEPTEUR » tienne dans 9 colonnes sur 12, y compris
     avec la pile système en repli, qui est plus large qu'Archivo. */
  --t-giant: clamp(2.75rem, 9.2vw, 7.75rem);
  --t-section: clamp(2.25rem, 6.5vw, 5rem);
  /* Pour les titres logés dans une colonne étroite (à propos, contact) :
     à la taille pleine ils débordent ou se cassent n'importe où. */
  --t-section-sm: clamp(1.875rem, 4.6vw, 3.5rem);
  --t-work: clamp(1.75rem, 4.6vw, 3.75rem);
  --t-lede: clamp(1.0625rem, 1.6vw, 1.375rem);
  --t-meta: 0.75rem;

  /* Courbes */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Chaque panneau redéfinit fond, texte et filet pour tout ce qu'il contient. */
.panel {
  background: var(--bg);
  color: var(--fg);
}
.panel--ink,
:root {
  --bg: var(--ink);
  --fg: var(--ink-fg);
  --muted: var(--ink-muted);
}
.panel--paper {
  --bg: var(--paper);
  --fg: var(--paper-fg);
  --muted: var(--paper-muted);
}
.panel {
  --rule: color-mix(in srgb, currentColor 16%, transparent);
  --rule-soft: color-mix(in srgb, currentColor 9%, transparent);
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--ink-fg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul,
ol {
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Éléments partagés
   -------------------------------------------------------------------------- */
.wrap {
  width: min(var(--wrap), 100% - 10vw);
  margin-inline: auto;
}

/* Étiquette monospace : le fil conducteur du système. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__num {
  color: var(--accent);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-head {
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.section-title {
  margin-top: 2.5rem;
  font-size: var(--t-section);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.link-arrow::after,
.btn::after,
.work__arrow,
.arrow {
  display: inline-block;
  flex: none;
  width: 1.75em;
  height: 0.85em;
  background-color: currentColor;
  -webkit-mask: var(--arrow) no-repeat center / contain;
  mask: var(--arrow) no-repeat center / contain;
}
.arrow--up {
  /* Pivotée, la flèche occupe en hauteur ce qu'elle occupait en largeur :
     il faut la raccourcir pour qu'elle tienne dans la ligne de texte. */
  width: 1.15em;
  height: 0.6em;
  vertical-align: -0.12em;
  transform: rotate(-90deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s;
}
.link-arrow::after {
  content: "";
  transition: transform 0.35s var(--ease);
}
.link-arrow:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.link-arrow:hover::after {
  transform: translateX(0.4rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.2rem;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.btn::after {
  content: "";
  transition: transform 0.35s var(--ease);
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
}
.btn:hover::after {
  transform: translateX(0.4rem);
}

/* Révélation au scroll */
.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   5. En-tête
   -------------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--ink-fg);
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}
.masthead.is-on-paper {
  background: var(--paper);
  color: var(--paper-fg);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--wrap), 100% - 10vw);
  height: var(--head-h);
  margin-inline: auto;
}

/* Marque typographique : hérite de currentColor, bascule donc toute seule. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: currentColor;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.3s;
}
/* La lettre reprend la couleur du fond de l'en-tête, le carré la couleur du
   texte : l'ensemble s'inverse tout seul au passage sur fond papier. */
.brand__mark span {
  color: var(--ink);
}
.masthead.is-on-paper .brand__mark span {
  color: var(--paper);
}
.brand:hover .brand__mark {
  background: var(--accent);
}
.brand__name {
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}
.masthead__nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.68;
  transition: opacity 0.25s, color 0.25s;
}
.masthead__nav a:hover {
  opacity: 1;
  color: var(--accent);
}
.masthead__nav i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--accent);
}

.masthead__progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.masthead__progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 5.5vw, 4.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: end;
}
.hero__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: clamp(2.5rem, 7vw, 5rem);
}

.hero__title {
  grid-column: 1 / 10;
  font-size: var(--t-giant);
  /* La seconde ligne est en contour : sans couleur de trait explicite, elle
     hérite du currentColor transparent et disparaît. */
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero__line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.is-ready .hero__line > span {
  transform: none;
}
.hero__line--indent {
  padding-left: 0.42em;
}
.hero__line--indent > span {
  color: transparent;
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: var(--fg);
}

.hero__portrait {
  grid-column: 10 / -1;
  grid-row: 2 / span 2;
  align-self: end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.6s var(--ease), transform 0.9s var(--ease);
}
.hero__portrait:hover img {
  filter: none;
  transform: scale(1.03);
}

.hero__foot {
  grid-column: 1 / 10;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.hero__lede {
  flex: 1 1 22rem;
  max-width: 34rem;
  font-size: var(--t-lede);
  color: var(--muted);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  animation: blink 2.4s steps(1, end) infinite;
}
@keyframes blink {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0.25;
  }
}

/* --------------------------------------------------------------------------
   7. Projets
   -------------------------------------------------------------------------- */
.works {
  padding-block: var(--section-y);
}
.works__list {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
}
.work {
  border-bottom: 1px solid var(--rule);
}
/* Le nom prend sa largeur naturelle et reste collé au numéro ; la méta est
   repoussée contre la marge droite. Deux blocs aux extrémités, du vide au
   milieu : c'est la respiration voulue, pas un accident de grille. */
.work__link {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, auto) minmax(0, 1fr) 2rem;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: padding-left 0.6s var(--ease);
}
.work:hover .work__link,
.work__link:focus-visible {
  padding-left: 1.5rem;
}
/* Placement explicite : sans lui, le passage à trois colonnes en mobile
   renvoie la flèche avant le numéro et pousse le nom hors cadre. */
.work__num {
  grid-area: 1 / 1;
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.work__name {
  grid-area: 1 / 2;
  font-size: var(--t-work);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease);
}
.work:hover .work__name,
.work__link:focus-visible .work__name {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
}
.work__meta {
  grid-area: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  justify-self: end;
  max-width: 32ch;
  text-align: right;
}
.work__tagline {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.work__stack {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.work__arrow {
  grid-area: 1 / 4;
  justify-self: end;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.45s var(--ease), color 0.3s;
}
.work:hover .work__arrow,
.work__link:focus-visible .work__arrow {
  transform: translateX(0.4rem);
  color: var(--accent);
}

/* Capture qui suit le curseur. Aucun ancêtre ne doit porter de transform,
   sinon le position: fixed se recale sur lui. */
.work__shot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: min(26vw, 380px);
  border: 1px solid var(--rule);
  background: var(--bg);
  pointer-events: none;
  opacity: 0;
  /* Décalée à droite du curseur, sinon elle recouvre le nom qu'on survole. */
  transform: translate3d(var(--px, 50vw), var(--py, 50vh), 0) translate(1.25rem, -50%)
    scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.55s var(--ease);
  will-change: transform;
}
.work:hover .work__shot,
.work:focus-within .work__shot {
  opacity: 1;
  transform: translate3d(var(--px, 50vw), var(--py, 50vh), 0) translate(1.25rem, -50%)
    scale(1);
}
/* Placement instantané à l'entrée du pointeur, sans traversée d'écran. */
.work__shot.is-snap {
  transition: opacity 0.35s var(--ease);
}
.work__shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. À propos
   -------------------------------------------------------------------------- */
.about {
  padding-block: var(--section-y);
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.about__bio {
  grid-column: 1 / 6;
  align-self: start;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.about__title {
  grid-column: 6 / -1;
  margin-top: 0;
  font-size: var(--t-section-sm);
  text-align: right;
}
.skills {
  grid-column: 6 / -1;
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}
.skills li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 1.125rem;
  transition: color 0.3s, padding-left 0.4s var(--ease);
}
.skills li:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}
.skills li span {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Contact
   -------------------------------------------------------------------------- */
.contact {
  padding-block: var(--section-y);
}
.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.contact__aside {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.contact__aside .section-title {
  margin-top: 0;
  font-size: var(--t-section-sm);
}
.contact__text {
  font-size: var(--t-lede);
  color: var(--muted);
  max-width: 26rem;
  text-wrap: pretty;
}
.contact__form-col {
  grid-column: 7 / -1;
}

.form-banner {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid currentColor;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.form-banner--success {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 10%, transparent);
}
.form-banner--error {
  color: var(--error);
  background: color-mix(in srgb, var(--error) 10%, transparent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form__label {
  font-family: var(--mono);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: color-mix(in srgb, currentColor 35%, transparent);
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.contact-form__textarea {
  resize: vertical;
  min-height: 8rem;
}
/* Autofill : Chrome impose un fond blanc, on le neutralise sur fond encre. */
.contact-form__input:-webkit-autofill,
.contact-form__input:-webkit-autofill:hover,
.contact-form__input:-webkit-autofill:focus,
.contact-form__textarea:-webkit-autofill,
.contact-form__textarea:-webkit-autofill:hover,
.contact-form__textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink-fg);
  -webkit-box-shadow: 0 0 0 1000px var(--ink) inset;
  caret-color: var(--ink-fg);
  transition: background-color 9999s ease-out 0s;
}
.contact-form__error {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--error);
}
.contact-form__error--global {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--error);
  background: color-mix(in srgb, var(--error) 10%, transparent);
  font-size: 0.8125rem;
}
.contact-form__submit {
  align-self: flex-start;
}
.contact-form__consent {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 34rem;
}
.cf-turnstile {
  min-height: 65px;
}

/* --------------------------------------------------------------------------
   10. Pied de page
   -------------------------------------------------------------------------- */
.footer {
  padding-block: 2.5rem 3rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__inner a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   11. Adaptation aux petits écrans
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero__title,
  .hero__foot {
    grid-column: 1 / -1;
  }
  .hero__portrait {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 2.5rem;
    max-width: 18rem;
  }
  .hero__portrait img {
    aspect-ratio: 4 / 5;
  }

  .about__bio,
  .about__title,
  .skills {
    grid-column: 1 / -1;
  }
  .about__title {
    text-align: left;
    order: -1;
  }
  .about__bio {
    margin-top: 2rem;
  }

  .contact__aside,
  .contact__form-col {
    grid-column: 1 / -1;
  }
  .contact__form-col {
    margin-top: 3rem;
  }

  /* Sous 1024 px : deux colonnes, la méta sous le nom, la flèche sous le
     numéro. Chaque cellule est placée à la main. */
  .work__link {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    align-items: center;
    row-gap: 0.9rem;
  }
  .work__meta {
    grid-area: 2 / 2;
    align-items: flex-start;
    justify-self: start;
    max-width: 46ch;
    text-align: left;
  }
  .work__arrow {
    grid-area: 2 / 1;
    justify-self: start;
    align-self: start;
    font-size: 1.25rem;
  }
}

@media (max-width: 899px), (hover: none) {
  /* Sans survol possible, la capture reprend sa place dans le flux. */
  .work__shot {
    position: static;
    width: 100%;
    margin-top: 1.5rem;
    opacity: 1;
    transform: none;
    will-change: auto;
  }
  .work:hover .work__shot,
  .work:focus-within .work__shot {
    transform: none;
  }
  .work__link {
    padding-bottom: 1.25rem;
  }
  .work {
    padding-bottom: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --head-h: 4rem;
    --gutter: 1rem;
  }
  .wrap,
  .masthead__inner {
    width: min(var(--wrap), 100% - 2.5rem);
  }
  .brand__name {
    display: none;
  }
  .masthead__nav {
    gap: 1rem;
  }
  .masthead__nav i {
    display: none;
  }

  /* En flex, le nom et le rôle forment deux blocs anonymes qui se cassent
     n'importe où et isolent le « / ». En bloc, le texte s'écoule normalement. */
  .hero__eyebrow {
    display: block;
  }
  .hero__eyebrow::after {
    display: none;
  }

  .hero__line--indent {
    padding-left: 0.25em;
  }
  .hero__foot {
    flex-direction: column;
    align-items: stretch;
  }
  /* En colonne, le flex-basis de 22rem devient une hauteur : il creusait
     300 px de vide sous la phrase d'accroche. */
  .hero__lede {
    flex: 0 0 auto;
  }
  .hero__portrait {
    max-width: 12rem;
  }

  .work__link {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: space-between;
  }
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   12. Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__line > span {
    transform: none;
  }
  .work__shot {
    transition: opacity 0.01ms;
  }
}
