:root {
  --ink: #f6f1f7;
  --muted: #bdb3c1;
  --black: #070609;
  --violet: #a268c5;
  --violet-soft: #d1b2e0;
  --acid: #d8ffb3;
  --line: rgba(222, 202, 232, .19);
  --shadow: 0 30px 100px rgba(0, 0, 0, .56);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  color-scheme: dark;
  background: var(--black);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

::selection {
  color: white;
  background: rgba(159, 103, 200, .68);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: black;
  background: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.ambient,
.ambient > div {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.ambient-image {
  z-index: -4;
  inset: -4% !important;
  background: url("/assets/hero.webp") center / cover no-repeat;
  filter: brightness(.25) contrast(1.16) saturate(.62);
  transform: scale(1.04);
}

.ambient-light {
  z-index: -3;
  background:
    radial-gradient(circle at 20% 26%, rgba(175, 96, 211, .21), transparent 31rem),
    radial-gradient(circle at 82% 72%, rgba(98, 47, 119, .22), transparent 34rem),
    linear-gradient(90deg, rgba(5, 3, 7, .52), rgba(7, 4, 9, .3), rgba(5, 3, 7, .68));
  animation: breathe 10s ease-in-out infinite;
}

.ambient-grain {
  z-index: -2;
  opacity: .05;
  mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .3) 4px),
    radial-gradient(circle at 20% 20%, white 0 .5px, transparent .7px);
  background-size: auto, 5px 5px;
}

@keyframes breathe {
  50% { opacity: .8; transform: scale(1.012); }
}

.topbar,
main,
footer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 42px));
  margin-inline: auto;
}

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: block;
  width: 126px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .3);
}

.brand img {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: cover;
}

.back-link {
  color: #aaa0ae;
  text-decoration: none;
  text-transform: uppercase;
  font: 800 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .11em;
  transition: color .2s ease;
}

.back-link:hover,
.back-link:focus-visible { color: white; }

main { padding: clamp(52px, 8vh, 92px) 0 64px; }

.intro { max-width: 1080px; }

.eyebrow,
.role-kicker,
.role-number {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--violet-soft);
  font-size: .73rem;
}

.eyebrow i {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
  animation: pulse 1.7s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: .32; } }

.intro-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

h1,
h2 {
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.4rem, 8.4vw, 8rem);
  line-height: .88;
  letter-spacing: -.057em;
  font-weight: 950;
  text-shadow: 4px 4px 0 #000, 0 16px 48px rgba(0, 0, 0, .78);
}

.intro-line > div:first-child > p {
  max-width: 690px;
  margin: 25px 0 0;
  color: #d5cdd8;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(216, 255, 179, .2);
  border-radius: 999px;
  color: var(--acid);
  background: rgba(8, 7, 10, .65);
  font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.status span {
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
}

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(46px, 7vw, 78px);
}

.role-card {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 27px;
  color: white;
  background: #110c14;
  box-shadow: var(--shadow);
  isolation: isolate;
  text-decoration: none;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.role-card::before,
.role-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.role-card-conteur::before {
  background: url("/assets/morgue.webp") center / cover no-repeat;
}

.role-card-gerant::before {
  background: url("/assets/funeral.webp") center / cover no-repeat;
}

.role-card::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 5, 9, .25), rgba(8, 6, 10, .93) 62%),
    linear-gradient(110deg, rgba(84, 39, 103, .26), transparent 55%);
  transition: background .28s ease;
}

.role-card:hover,
.role-card:focus-visible {
  border-color: rgba(212, 181, 227, .48);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .7), 0 0 0 1px rgba(174, 111, 204, .13);
  transform: translateY(-6px);
}

.role-number {
  align-self: flex-start;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #d9cde0;
  background: rgba(7, 5, 9, .6);
  font-size: .65rem;
}

.role-content { max-width: 540px; }

.role-kicker {
  margin: 0 0 8px;
  color: var(--violet-soft);
  font-size: .68rem;
}

h2 {
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 950;
  text-shadow: 3px 3px 0 #000, 0 10px 28px rgba(0, 0, 0, .75);
}

.role-copy {
  margin: 17px 0 20px;
  color: #d2c9d5;
  font-size: .94rem;
}

.role-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-card li {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #c7bdca;
  background: rgba(8, 6, 10, .5);
  font-size: .67rem;
  font-weight: 760;
}

.role-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  color: white;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.role-action b {
  color: var(--violet-soft);
  font-size: 1rem;
  transition: transform .22s ease;
}

.role-card:hover .role-action b,
.role-card:focus-visible .role-action b {
  transform: translate(3px, -3px);
}

footer {
  padding: 5px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: #817684;
  font: 700 .65rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

footer span:last-child { text-align: right; }

@media (max-width: 820px) {
  .intro-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }
  .roles { grid-template-columns: 1fr; }
  .role-card { min-height: 450px; }
}

@media (max-width: 620px) {
  .topbar,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }
  .topbar { height: 66px; }
  .brand { width: 108px; }
  .brand img { height: 36px; }
  .back-link { font-size: .59rem; letter-spacing: .08em; }
  main { padding: 42px 0 48px; }
  .eyebrow { font-size: .64rem; }
  h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .intro-line > div:first-child > p { margin-top: 20px; font-size: .96rem; }
  .roles { margin-top: 38px; }
  .role-card {
    min-height: 420px;
    padding: 18px;
    border-radius: 22px;
  }
  h2 { font-size: clamp(2.65rem, 14vw, 4rem); }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  footer span:last-child { text-align: left; }
}

@media (hover: none), (pointer: coarse), (max-width: 720px) {
  .ambient-grain { display: none; }
  .ambient-light { animation: none; }
  .role-card {
    box-shadow: 0 22px 64px rgba(0, 0, 0, .5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
