:root {
  --ink: #141513;
  --black: #000;
  --white: #fff;
  --pink: #fa5d98;
  --display: "Lacquer", "Marker Felt", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mobile-first spacing (390px design) */
  --gutter: 18px;
  --edge: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--edge);
}
.site-header .logo { width: 112px; height: auto; }
/* Language switch: "fr | EN" — current language in pink */
.lang-switch {
  margin: 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}
.lang-switch a { color: var(--white); text-decoration: none; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--pink); }
.lang-switch .sep { color: #666; margin: 0 0.15em; }
.lang-switch [aria-current] { color: var(--pink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 var(--gutter);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__panel {
  position: relative;
  background: var(--white);
  width: 100%;
  aspect-ratio: 354 / 152.68;
  overflow: hidden;
}

/* Slideshow: slides stack and cross-fade */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- Selected work ---------- */
.work {
  background: var(--pink);
  padding: var(--gutter) var(--gutter) 48px;
  display: grid;
  gap: 24px;
}
.work__row { display: grid; gap: 24px; }

.tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  height: 269px;
}
.tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.tile--film { height: 173px; background: var(--black); }
.tile--film video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.tile--materials {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
/* Same crop of the brand artwork as the Figma frame */
.tile--materials > img {
  inset: auto;
  left: -215.29%;
  top: -125.15%;
  width: 511.51%;
  height: 350.26%;
  object-fit: fill;
}
.tile--materials p {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.3;
}

.tile--keychain { background: #f4f4f4; }
.tile--keychain > img {
  inset: auto;
  left: -20.09%;
  top: -32.05%;
  width: 128.87%;
  height: 164.12%;
  object-fit: fill;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--black);
  padding: 48px var(--edge) 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 32px;
  color: var(--pink);
}
.contact p {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.35;
}
.contact a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.contact a:hover, .contact a:focus-visible { color: var(--white); }
a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- Tablet (834px design) ---------- */
@media (min-width: 600px) {
  :root { --edge: 32px; }

  .site-header { padding: 32px var(--edge); }
  .site-header .logo { width: 128px; }

  .hero__panel { width: 66.9%; aspect-ratio: 558 / 249.11; }

  .work { padding: 18px 18px 64px; gap: 28px; }
  .work__row { gap: 20px; }
  .work__row--featured { grid-template-columns: 464fr 314fr; }
  .work__row--gallery  { grid-template-columns: repeat(3, 1fr); }

  .tile { height: 220px; }
  .tile--film, .tile--materials { height: 330px; }
  .tile--materials p { font-size: 21px; }

  .contact { flex-direction: row; gap: 40px; padding: 64px var(--edge); }
  .contact h2 { font-size: 36px; flex: 0 0 auto; min-width: 210px; white-space: nowrap; }
  .contact p { font-size: 28px; }
}

/* ---------- Desktop (1440px design) ---------- */
@media (min-width: 1100px) {
  /* 52px sides at 1440, content capped at 1336px on wider screens */
  :root { --edge: max(52px, calc((100% - 1336px) / 2)); }

  .site-header { padding: 48px var(--edge); }
  .site-header .logo { width: 152px; }
  .lang-switch { font-size: 30px; }

  .hero { padding: 0 var(--edge); }
  .hero__panel { width: 72.4%; aspect-ratio: 967 / 432; }

  .work { padding: 48px var(--edge) 96px; gap: 48px; }
  .work__row { gap: 24px; }
  .work__row--featured { grid-template-columns: 816fr 504fr; }

  .tile { height: 340px; }
  .tile--film, .tile--materials { height: 412px; }
  .tile--materials {
    justify-content: flex-start;
    padding: 142px 64px 32px 59px;
  }
  .tile--materials p { font-size: 25px; max-width: 328px; }

  .contact { gap: 72px; padding: 96px var(--edge); }
  .contact h2 { font-size: 40px; flex: 0 0 384px; }
  .contact p { font-size: 32px; }
  .contact a { color: var(--white); }
  .contact a:hover, .contact a:focus-visible { color: var(--pink); }
}
