/* ============================================================
   MATTHIEU BRYAN
   Built to the Matthieu Bryan brand guidelines v2
   Poppins · 5-colour palette · 8px base unit · 20° slash
   ============================================================ */

:root {
  /* --- Brand palette (guidelines §03) --- */
  --chalk:    #FFFFFF;
  --onyx:     #100F0D;
  --pink:     #F233A4;
  --lavender: #E4BEE3;
  --forest:   #202A1F;

  /* --- Tints derived for rules, borders and muted copy --- */
  --onyx-70:  rgba(255,255,255,.70);
  --onyx-45:  rgba(255,255,255,.45);
  --onyx-15:  rgba(255,255,255,.15);
  --ink-70:   rgba(16,15,13,.70);
  --ink-45:   rgba(16,15,13,.45);
  --ink-12:   rgba(16,15,13,.12);

  /* --- 8px base unit (guidelines §05) --- */
  --u:   8px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-16: 128px;

  --margin: 48px;          /* digital page margin */
  --maxw: 1240px;
  --measure: 62ch;

  /* --- Type scale, proportional to the print scale --- */
  --t-display: clamp(2.75rem, 7vw, 5.5rem);
  --t-heading: clamp(2rem, 4.6vw, 3.5rem);
  --t-sub:     clamp(1.375rem, 2.4vw, 1.875rem);
  --t-body:    clamp(1rem, 1.1vw, 1.125rem);
  --t-label:   .8125rem;
  --t-micro:   .6875rem;

  --track-label: .28em;    /* guidelines §05 */
}

/* ------------------------------------------------------------ type
   Poppins self-hosted. No Google Fonts request: one less external
   dependency, faster first paint, and nothing breaks behind a firewall
   or on a network that blocks Google. Four weights, exactly the ones
   the guidelines specify (§04). */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
body {
  margin: 0;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--onyx);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.06; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------ layout */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--margin);
}
@media (max-width: 640px) { :root { --margin: 24px; } }

section { padding-block: clamp(var(--s-12), 11vw, 168px); }
.section--tight { padding-block: clamp(var(--s-8), 7vw, var(--s-12)); }

/* ------------------------------------------------------------ colour fields */
.field--onyx     { background: var(--onyx);     color: var(--chalk); }
.field--chalk    { background: var(--chalk);    color: var(--onyx); }
.field--forest   { background: var(--forest);   color: var(--chalk); }
/* Onyx on Electric Pink is 5.28:1 (AA at every size).
   White on Electric Pink is only 3.63:1 and fails for body copy. */
.field--pink     { background: var(--pink);     color: var(--onyx); }
.field--lavender { background: var(--lavender); color: var(--onyx); }

.field--onyx .muted, .field--forest .muted { color: var(--onyx-70); }
.field--chalk .muted, .field--lavender .muted, .field--pink .muted { color: var(--ink-70); }

/* ------------------------------------------------------------ the slash
   Guidelines §05: backslash, 20° from vertical, upper-right to lower-left. */
.slash {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: currentColor;
  transform: skewX(-20deg);
  flex: none;
}
.slash--pink { background: var(--pink); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: currentColor;
  opacity: .18;
}

/* ------------------------------------------------------------ labels */
.label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--t-label);
  font-weight: 300;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.label .slash { height: .95em; width: 2px; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--onyx);
  color: var(--chalk);
  border-bottom: 1px solid var(--onyx-15);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 76px;
  padding-block: var(--s-2);
}
.brand { display: flex; align-items: center; flex: none; }
/* Guidelines §02: never render the lockup below 120px wide.
   The wordmark is 1600×520, so 40px tall = 123px wide. */
.brand img { height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-3), 3vw, var(--s-6));
  margin-left: auto;
  margin-right: clamp(var(--s-3), 3vw, var(--s-6));
}
.nav a {
  text-decoration: none;
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--onyx-70);
  transition: color .18s ease;
  white-space: nowrap;
}
.nav a:hover, .nav a:focus-visible { color: var(--chalk); }
.nav a[aria-current="page"] { color: var(--chalk); }

/* Mobile: page links drop to their own full-width row rather than vanishing */
@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; min-height: 0; padding-block: var(--s-2) 0; }
  .brand img { height: 40px; }
  .nav {
    order: 3;
    width: 100%;
    margin: var(--s-2) 0 0;
    justify-content: center;
    gap: var(--s-3);
    padding-block: 14px;
    border-top: 1px solid var(--onyx-15);
  }
  .site-header .btn { padding: 12px 18px; font-size: var(--t-micro); }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: var(--pink);
  color: var(--chalk);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--chalk); color: var(--onyx); }
.btn--ghost {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: currentColor; color: var(--onyx); }
.field--pink .btn { background: var(--onyx); color: var(--chalk); }
.field--pink .btn:hover { background: var(--chalk); color: var(--onyx); }
.field--pink .btn--ghost { background: transparent; color: var(--onyx); }
.field--pink .textlink { color: var(--onyx); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap .18s ease, opacity .18s ease;
}
.textlink:hover, .textlink:focus-visible { gap: 16px; opacity: .72; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(var(--s-12), 13vw, 200px); position: relative; overflow: hidden; }
.hero h1 { font-size: var(--t-display); max-width: 16ch; }
.hero h1 .accent { color: var(--pink); }
.hero__sub {
  margin-top: var(--s-4);
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--onyx-70);
}
.hero__cta { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Oversized slash watermark, guidelines' most distinctive element */
.hero__mark {
  position: absolute;
  top: -20%;
  right: 7%;
  width: 44px;
  height: 150%;
  background: var(--pink);
  opacity: .22;
  transform: skewX(-20deg);
  pointer-events: none;
}
.hero__mark::after {
  content: "";
  position: absolute;
  top: 0;
  left: 84px;
  width: 14px;
  height: 100%;
  background: var(--pink);
  opacity: .55;
}
@media (max-width: 1100px) { .hero__mark { display: none; } }

/* ------------------------------------------------------------ headings */
.h-section { font-size: var(--t-heading); max-width: 20ch; }
.h-section--wide { max-width: 26ch; }
.lede {
  margin-top: var(--s-4);
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.65;
}

/* ------------------------------------------------------------ grids */
.grid { display: grid; gap: var(--s-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--s-6), 6vw, var(--s-12)); align-items: start; }
@media (max-width: 900px) {
  .grid--3, .grid--4, .grid--2, .grid--split { grid-template-columns: 1fr; }
  .grid { gap: var(--s-6); }
}

/* ------------------------------------------------------------ cost / feature cards */
.cost { padding-top: var(--s-3); border-top: 2px solid currentColor; }
.cost h3 {
  font-size: var(--t-sub);
  font-weight: 700;
  margin-bottom: 10px;
}
.cost p { font-weight: 300; line-height: 1.6; }

/* ------------------------------------------------------------ stats */
.stat { padding-top: var(--s-3); border-top: 1px solid var(--onyx-15); }
.stat__n {
  display: block;
  font-size: clamp(2.25rem, 4.4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--pink);
}
.stat__l {
  display: block;
  margin-top: 12px;
  font-size: var(--t-label);
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--onyx-70);
  line-height: 1.45;
}

/* ------------------------------------------------------------ client roll */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  align-items: center;
  margin-top: var(--s-4);
}
.clients li {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--onyx-45);
}

/* ------------------------------------------------------------ numbered steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--ink-12);
  align-items: start;
}
.field--onyx .step, .field--forest .step { border-top-color: var(--onyx-15); }
.step:last-child { border-bottom: 1px solid var(--ink-12); }
.field--onyx .step:last-child, .field--forest .step:last-child { border-bottom-color: var(--onyx-15); }
/* currentColor, not pink: pink at 13px fails contrast on the chalk and
   forest fields. The pink stays in the slash marks, which are decorative. */
.step::before {
  content: "0" counter(step);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: var(--track-label);
  color: currentColor;
  opacity: .55;
  padding-top: 8px;
}
.field--onyx .step::before { color: var(--pink); opacity: 1; }
.step h3 { font-size: var(--t-sub); font-weight: 500; margin-bottom: 8px; }
.step p { font-weight: 300; max-width: 56ch; }
.step__meta {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--t-label);
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: var(--s-1); }
  .step::before { padding-top: 0; }
}

/* ------------------------------------------------------------ checklist */
/* Absolute marker, not a grid column — inline children such as <strong>
   would otherwise each become their own grid item and break the rows. */
.checks { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.checks li {
  position: relative;
  padding-left: 26px;
  font-weight: 300;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 3px;
  height: .85em;
  background: var(--pink);
  transform: skewX(-20deg);
}
/* pink marker is invisible on the pink field */
.field--pink .checks li::before { background: var(--onyx); }

/* ------------------------------------------------------------ portrait slot */
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--onyx);
  position: relative;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  padding: var(--s-4);
  color: var(--onyx-45);
  font-size: var(--t-label);
  font-weight: 300;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.portrait__ph::after {
  content: "";
  width: 3px;
  height: 56px;
  background: var(--pink);
  transform: skewX(-20deg);
  justify-self: center;
}

/* ------------------------------------------------------------ pull quote */
.pull {
  font-size: clamp(1.375rem, 2.8vw, 2.125rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.015em;
  max-width: 24ch;
}

/* ------------------------------------------------------------ form */
.form { display: grid; gap: var(--s-3); max-width: 560px; }
.f-row { display: grid; gap: 10px; }
.f-row label {
  font-size: var(--t-label);
  font-weight: 300;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--onyx-70);
}
.form input[type="text"],
.form input[type="email"],
.form select {
  width: 100%;
  padding: 15px 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--chalk);
  background: transparent;
  border: 1px solid var(--onyx-15);
  border-radius: 0;
  transition: border-color .18s ease;
  appearance: none;
}
.form input::placeholder { color: var(--onyx-45); }
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--pink);
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23F233A4' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 48px;
  cursor: pointer;
}
.form select option { background: var(--onyx); color: var(--chalk); }

.f-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  cursor: pointer;
  font-weight: 300;
  font-size: .9375rem;
  color: var(--onyx-70);
  padding-block: var(--s-1);
}
.f-check input {
  appearance: none;
  width: 20px; height: 20px;
  margin: 2px 0 0;
  border: 1px solid var(--onyx-45);
  background: transparent;
  cursor: pointer;
  flex: none;
  transition: background .15s ease, border-color .15s ease;
}
.f-check input:checked { background: var(--pink); border-color: var(--pink); }
.f-check input:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.form__note {
  font-size: var(--t-label);
  font-weight: 300;
  color: var(--onyx-45);
  line-height: 1.55;
}
.form__status {
  font-size: .9375rem;
  font-weight: 400;
  padding: 14px 16px;
  display: none;
}
.form__status.is-ok  { display: block; background: rgba(242,51,164,.14); color: var(--chalk); box-shadow: inset 0 0 0 1px var(--pink); }
.form__status.is-err { display: block; background: rgba(255,255,255,.06); color: var(--chalk); box-shadow: inset 0 0 0 1px var(--onyx-45); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ------------------------------------------------------------ footer */
.site-footer {
  background: var(--onyx);
  color: var(--chalk);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--onyx-15);
}
.site-footer__brand img { height: 42px; }
.site-footer__tag {
  margin-top: var(--s-2);
  font-size: var(--t-label);
  font-weight: 300;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--onyx-45);
}
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a {
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 300;
  color: var(--onyx-70);
  transition: color .18s ease;
}
.site-footer__links a:hover { color: var(--chalk); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  padding-top: var(--s-3);
  font-size: var(--t-micro);
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--onyx-45);
}

/* ------------------------------------------------------------ misc */
.skip {
  position: absolute; left: -9999px;
  background: var(--pink); color: var(--chalk);
  padding: 12px 20px; z-index: 100; text-decoration: none;
  font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase;
}
.skip:focus { left: var(--margin); top: 12px; }

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

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   TALK MODAL — opened by every "Talk to Matthieu" button.
   Panel is Onyx so the existing .form styles apply unchanged.
   ============================================================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-4) 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal__scrim {
  position: fixed;
  inset: 0;
  background: rgba(16, 15, 13, .8);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: var(--onyx);
  color: var(--chalk);
  padding: var(--s-6) var(--s-4) var(--s-4);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
  overflow: hidden;
  animation: modalIn .18s ease-out both;
}
.modal__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--pink);
}
.modal__panel::after {
  content: "";
  position: absolute;
  top: -40px; right: -30px;
  width: 90px; height: 200px;
  background: var(--pink);
  opacity: .12;
  transform: skewX(-20deg);
  pointer-events: none;
}
.modal__title {
  font-size: var(--t-sub);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 var(--s-4);
  position: relative;
}
.modal__panel .form { max-width: none; position: relative; }
.modal__x {
  position: absolute;
  top: 16px; right: 14px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--chalk);
  font-family: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
  transition: opacity .15s ease;
}
.modal__x:hover, .modal__x:focus-visible { opacity: 1; }
.modal__x:focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
body.modal-open { overflow: hidden; }

@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal__panel { animation: none; } }

/* anchors clear the sticky header */
section[id] { scroll-margin-top: 90px; }
