@font-face {
  font-family: "Chivo Black";
  src: url("Chivo-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --copper: #e8912d;
  --canvas: #fafafa;
  --heading: "Barlow Condensed", system-ui, sans-serif;
  --saab: "Chivo Black", Impact, sans-serif;
  --brand-size: clamp(3.25rem, 12vw, 7.5rem);
  /* Hauteur du bloc Saab + Workshop (2 lignes × 0.82) */
  --title-h: calc(var(--brand-size) * 0.82 * 2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: #fff;
  font-family: var(--heading);
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: hidden;
  /* Intro : fond plein, photo invisible */
  background-color: #071221;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #071221;
  /* Cadrage : entrée Saab + escalier rouge */
  background-position: 42% 48%;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .hero__media {
    background-position: 45% 42%;
  }
}

/* Fin d’intro : la photo apparaît (devinée sous le voile) */
.hero--photo .hero__media {
  opacity: 1;
  transform: scale(1.04);
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 48%;
}

@media (min-width: 640px) {
  .hero__img {
    object-position: 45% 42%;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Voile fort : photo atelier juste devinée une fois révélée */
  background: linear-gradient(
    180deg,
    rgb(7 18 33 / 0.82) 0%,
    rgb(7 18 33 / 0.72) 40%,
    rgb(7 18 33 / 0.88) 100%
  );
  opacity: 0;
  transition: opacity 1.4s ease 0.15s;
}

.hero--photo .hero__veil {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.25rem 6rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero__content {
    padding: 8rem 2rem 7rem;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.hero__wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero__stage {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* —— Slot partagé : compteur (diamètre = hauteur Saab→Workshop) puis marque —— */
.title-slot {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  /* hauteur = bloc marque ; diamètre jauge via --dial (posé en JS, fallback CSS) */
  --dial: var(--title-h);
  height: var(--dial);
  min-height: var(--dial);
}

.gauge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--dial);
  height: var(--dial);
  margin-left: calc(var(--dial) / -2);
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  filter: blur(0);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.65s ease,
    visibility 0s linear 0.75s;
}

.gauge.is-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.88);
  filter: blur(10px);
  pointer-events: none;
}

.gauge__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Invisible pendant l’intro — n’apparaît qu’après le compteur */
.brand {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  margin: 0;
  width: max-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--saab);
  font-size: var(--brand-size);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 8px 36px rgb(0 0 0 / 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s ease,
    visibility 0s linear 0s;
}

.brand.is-in {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  filter: blur(0);
  pointer-events: auto;
}

.brand__line {
  display: block;
}

.meta {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 3.1s forwards;
}

.meta__text {
  text-align: center;
}

@media (min-width: 640px) {
  .meta {
    margin-top: 2rem;
  }
}

.meta__bar {
  width: 0.25rem;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 999px;
  background: var(--copper);
}

.meta__eyebrow {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.meta__title {
  margin: 0.375rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

@media (min-width: 640px) {
  .meta__eyebrow,
  .meta__title {
    font-size: 1.125rem;
    letter-spacing: 0.26em;
  }
}

.meta__address {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.9);
}

@media (min-width: 640px) {
  .meta__address {
    font-size: 1rem;
  }
}

.soon {
  margin: 2rem 0 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 3.35s forwards;
}

.hours {
  list-style: none;
  margin: 1.25rem auto 0;
  padding: 0;
  max-width: 26rem;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 3.55s forwards;
}

.hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.88);
}

.hours li:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.hours li span:last-child {
  color: rgb(255 255 255 / 0.7);
}

.hero__wave {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 72px;
  transform: translateY(1px);
}

@media (min-width: 640px) {
  .hero__wave svg {
    height: 100px;
  }
}

@media (min-width: 768px) {
  .hero__wave svg {
    height: 120px;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .hero__veil {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .gauge {
    display: none !important;
  }

  .brand {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
    position: relative !important;
    pointer-events: auto !important;
  }

  .meta,
  .soon,
  .hours {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .title-slot {
    height: auto;
    min-height: 0;
  }
}
