/* =================================================================
   BD GROUP AUTOMOBILES — "NOIR & CHROMA"
   Editorial noir gallery · the cars are the colour · live-wire red
   ================================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* visible keyboard focus (mouse/touch users keep the clean look) */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- TOKENS ---------- */
:root {
  --bg:        #0b0b0d;
  --bg-2:      #111114;
  --panel:     #15151a;
  --line:      rgba(239,233,223,0.12);
  --ink:       #efe9df;   /* warm bone */
  --ink-soft:  #b6b0a6;
  --ink-dim:   #6f6a62;
  --red:       #e8203a;   /* BD live-wire red */
  --red-deep:  #b3122a;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-accent:  'Fraunces', Georgia, serif;

  --pad: clamp(1.15rem, 5vw, 6rem);
  --maxw: 1500px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- BASE ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden): hidden makes <body> a scroll container, which breaks
     position:sticky on .works__pin and makes the portfolio drift diagonally */
  overflow-x: clip;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

::selection { background: var(--red); color: #fff; }

/* ---------- GRAIN ---------- */
/* Kept fully inside the viewport (inset:0). A fixed element wider than the
   viewport is NOT clipped by body{overflow-x:clip} and causes horizontal
   scroll on mobile — so we animate background-position, not transform. */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%,100%{background-position:0 0} 20%{background-position:-7px 5px}
  40%{background-position:5px -4px} 60%{background-position:-4px 7px} 80%{background-position:7px -5px}
}

/* ---------- TYPOGRAPHY HELPERS ---------- */
em { font-style: italic; }
.accent, em.accent, .r em, .line .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}
.dot {
  display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--red); margin-right: 0.55em; vertical-align: 0.05em;
  box-shadow: 0 0 14px var(--red);
}

/* =================================================================
   PRELOADER
   ================================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg); display: grid; place-items: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(78vw, 460px); text-align: center; }
.preloader__mark {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 7rem); line-height: 1; letter-spacing: -0.03em;
  display: flex; justify-content: center; align-items: baseline; gap: 0.04em;
}
.preloader__slash { color: var(--red); transform: skewX(-12deg); }
.preloader__bar {
  margin: 1.6rem 0 0.8rem; height: 2px; width: 100%;
  background: var(--line); overflow: hidden; border-radius: 2px;
}
.preloader__fill { display: block; height: 100%; width: 0%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.preloader__meta {
  display: flex; justify-content: space-between;
  font-size: 0.7rem; letter-spacing: 0.22em; color: var(--ink-dim);
}

/* =================================================================
   CUSTOM CURSOR
   ================================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color .3s;
  display: grid; place-items: center; mix-blend-mode: difference;
}
.cursor.is-hover { width: 64px; height: 64px; background: transparent; border: 1px solid var(--ink); mix-blend-mode: normal; }
.cursor.is-label { width: 78px; height: 78px; background: var(--red); border-color: var(--red); mix-blend-mode: normal; }
.cursor.is-down { transform: translate(-50%,-50%) scale(0.8); }
.cursor__label {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: scale(0.5); transition: opacity .25s, transform .25s;
}
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* =================================================================
   HEADER / NAV
   ================================================================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s, backdrop-filter .4s;
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-solid {
  background: rgba(11,11,13,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand__logo {
  height: 38px; width: auto; border-radius: 7px;
  background: #fff; padding: 5px 8px;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.04) rotate(-1deg); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__link {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  position: relative; overflow: hidden; padding: 0.2em 0;
}
.nav__link span { display: inline-block; transition: transform 0.45s var(--ease); }
.nav__link:not(.nav__link--cta)::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav__link:not(.nav__link--cta):hover::before { transform: scaleX(1); transform-origin: left; }
.nav__link--cta {
  border: 1px solid var(--ink); border-radius: 100px; padding: 0.55em 1.2em;
  font-weight: 600; transition: background 0.4s, color 0.4s, border-color .4s;
}
.nav__link--cta:hover { background: var(--red); border-color: var(--red); color: #fff; }

.burger { display: none; background: none; border: none; cursor: pointer; width: 48px; height: 48px; padding: 0; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 700;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem var(--pad) 2.5rem;
  padding-top: max(5rem, env(safe-area-inset-top));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  transform: translateY(-100%); transition: transform 0.7s var(--ease);
  visibility: hidden;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__link {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 11vw, 4rem); line-height: 1.18;
  display: flex; align-items: baseline; gap: 0.6rem; padding: 0.32em 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__link i { font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--red); font-weight: 600; }
.mobile-menu__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.4rem; color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.04em; }
.mobile-menu__foot a { color: var(--red); }

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1em 1.9em; border-radius: 100px;
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em;
  overflow: hidden; isolation: isolate; will-change: transform;
  border: 1px solid transparent; transition: color 0.4s var(--ease), border-color .4s;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--ink); transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn--solid { background: var(--red); color: #fff; }
.btn--solid::before { background: var(--ink); }
.btn--solid:hover { color: var(--bg); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost::before { background: var(--red); }
.btn--ghost:hover { color: #fff; border-color: var(--red); }
.btn:hover::before { transform: translateY(0); }
.btn--block { width: 100%; padding: 1.15em; }

/* =================================================================
   SECTION HEADS / SHARED
   ================================================================= */
.section-kicker {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1.6rem; display: flex; align-items: center;
}
.section-head { padding: 0 var(--pad); max-width: var(--maxw); margin: 0 auto; }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: end; }
.showroom__note { color: var(--ink-soft); max-width: 42ch; font-size: 0.98rem; padding-bottom: 0.4rem; }

.section-title, .palette__title, .atelier__title, .manifeste__lead, .works__title {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.04;
}
.section-title { font-size: clamp(2.4rem, 6.5vw, 5.2rem); }
.section-title .r, .palette__title .r, .atelier__title .r, .manifeste__lead .r {
  display: block; padding: 0.06em 0;
}

/* Reveal primitives (transform/opacity only — never clip text) */
.reveal, .reveal-img, .r, .line .w, .metier__item, .process__step, .car {
  opacity: 0;
}
.reveal { transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.r { transform: translateY(110%) rotate(2deg); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.r.is-in { opacity: 1; transform: none; }
.reveal-img { transform: translateY(40px) scale(0.985); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal-img.is-in { opacity: 1; transform: none; }

/* =================================================================
   MEDIA FRAMES (the image golden-rules live here)
   ================================================================= */
.media-frame {
  position: relative; width: 100%; overflow: hidden;
  background: #050506; border-radius: 6px;
}
.media-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}
.ratio-34 { aspect-ratio: 3 / 4; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-11 { aspect-ratio: 1 / 1; }
.media-frame img[data-parallax] { height: 116%; top: -8%; position: relative; will-change: transform; }

/* image hover zoom where interactive */
.work__media img, .car__media img, .chip__img img {
  transition: transform 1.1s var(--ease), filter 0.6s;
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative; min-height: 100svh; padding: 8.5rem var(--pad) 0;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 78% 18%, rgba(232,32,58,0.16), transparent 60%),
    radial-gradient(70% 60% at 8% 90%, rgba(232,32,58,0.08), transparent 60%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow { 0%{opacity:0.6} 100%{opacity:1} }
.hero__ghost {
  position: absolute; right: -3%; bottom: -8%;
  font-family: var(--font-display); font-weight: 800; font-size: 46vw;
  line-height: 0.8; color: rgba(239,233,223,0.035); letter-spacing: -0.05em;
  user-select: none; pointer-events: none; will-change: transform;
}
.hero__stroke { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
#heroStroke {
  stroke-dasharray: 1800; stroke-dashoffset: 1800;
  filter: drop-shadow(0 0 18px rgba(232,32,58,0.55));
}
.is-loaded #heroStroke { animation: drawStroke 1.9s var(--ease) 0.5s forwards; }
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

.hero__grid {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; flex: 1;
}
.hero__kicker { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 9.5rem); line-height: 1.05;
  letter-spacing: -0.035em; margin-bottom: 1.6rem;
}
.hero__title .line { display: block; overflow: visible; padding: 0.02em 0; }
.hero__title .w { display: inline-block; transform: translateY(120%); opacity: 0; }
.is-loaded .hero__title .w { animation: wordUp 1s var(--ease) forwards; }
.is-loaded .hero__title .line:nth-child(1) .w { animation-delay: 0.55s; }
.is-loaded .hero__title .line:nth-child(1) .w.accent { animation-delay: 0.65s; }
.is-loaded .hero__title .line:nth-child(2) .w { animation-delay: 0.75s; }
.is-loaded .hero__title .line:nth-child(3) .w { animation-delay: 0.85s; }
@keyframes wordUp { to { transform: none; opacity: 1; } }
.hero__title .accent { color: var(--ink); }
.hero__sub { max-width: 46ch; color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.18rem); margin-bottom: 2.2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__feature { position: relative; }
.hero__frame {
  position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden;
  clip-path: inset(0 0 100% 0); will-change: clip-path, transform;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
}
.is-loaded .hero__frame { animation: frameReveal 1.3s var(--ease) 0.7s forwards; }
@keyframes frameReveal { to { clip-path: inset(0 0 0 0); } }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__frame-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  background: rgba(11,11,13,0.6); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.5em 1em; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink);
}

.hero__ticker {
  position: relative; z-index: 2;
  margin: clamp(2rem,5vh,4rem) calc(var(--pad) * -1) 1rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0.85rem 0; overflow: hidden;
}
.ticker__track {
  display: flex; align-items: center; gap: 1.4rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  letter-spacing: -0.01em; width: max-content;
  animation: tick 26s linear infinite;
}
.ticker__track .sep { color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

.hero__scroll {
  position: absolute; bottom: 1.4rem; right: var(--pad); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll-line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content:''; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--red); animation: scrollDown 1.8s ease-in-out infinite; }
@keyframes scrollDown { 0%{transform:translateY(-100%)} 100%{transform:translateY(300%)} }

/* =================================================================
   MANIFESTO
   ================================================================= */
.manifeste { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.manifeste__index { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2.5rem; }
.manifeste__index span { color: var(--red); }
.manifeste__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.manifeste__lead { font-size: clamp(2rem, 5.2vw, 4.4rem); }
.manifeste__lead em { color: var(--ink); }
.manifeste__body { margin-top: 1.8rem; max-width: 50ch; color: var(--ink-soft); font-size: clamp(1rem,1.3vw,1.14rem); }
.manifeste__signs { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; }
.manifeste__signs i { display: inline-block; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
.manifeste__media figcaption { margin-top: 0.9rem; font-size: 0.8rem; color: var(--ink-dim); letter-spacing: 0.03em; font-style: italic; font-family: var(--font-accent); }

/* =================================================================
   MÉTIER
   ================================================================= */
.metier { padding: clamp(4rem, 9vh, 7rem) 0; }
.metier .section-head { margin-bottom: 3.5rem; }
.metier__list { max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--line); }
.metier__item {
  position: relative; display: grid;
  grid-template-columns: auto 1.3fr 1fr auto; align-items: center; gap: 2rem;
  padding: clamp(1.6rem, 3.2vw, 2.8rem) var(--pad);
  border-bottom: 1px solid var(--line);
  transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease), background .5s;
  overflow: hidden;
}
.metier__item.is-in { opacity: 1; transform: none; }
.metier__item::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--red); transform: translateY(100%); transition: transform 0.6s var(--ease);
}
.metier__item:hover::before { transform: translateY(0); }
.metier__item:hover { color: #fff; }
.metier__item:hover .metier__no { color: rgba(255,255,255,0.55); }
.metier__item:hover .metier__desc { color: rgba(255,255,255,0.92); }
.metier__item:hover .metier__tags span { border-color: rgba(255,255,255,0.45); color: #fff; }
.metier__item:hover .metier__arrow { transform: translate(6px,-6px); color:#fff; }
.metier__no { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink-dim); }
.metier__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.06; }
.metier__desc { color: var(--ink-soft); font-size: 0.96rem; max-width: 44ch; transition: color .4s; }
.metier__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start; }
.metier__tags span { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 100px; padding: 0.4em 0.85em; color: var(--ink-soft); transition: color .4s, border-color .4s; }
.metier__arrow { font-size: 1.6rem; transition: transform 0.5s var(--ease), color .4s; color: var(--ink-soft); }

/* =================================================================
   WORKS — pinned horizontal film strip
   ================================================================= */
.works { position: relative; background: var(--bg-2); }
.works__intro {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; padding: clamp(4rem,9vh,7rem) var(--pad) 2.5rem; max-width: var(--maxw); margin: 0 auto;
}
.works__title { font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1.06; }
.works__title em { color: var(--red); }
.works__hint { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }

.works__pin { position: relative; height: 100vh; overflow: hidden; }
.works__track {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: 0 var(--pad); will-change: transform;
}
.work {
  position: relative; flex: 0 0 auto; width: min(clamp(260px, 30vw, 400px), 54vh);
  align-self: center; opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.work.is-in { opacity: 1; transform: none; }
.work--tall { align-self: flex-start; margin-top: 5vh; }
.work--wide { width: min(clamp(340px, 42vw, 560px), 66vh); align-self: flex-end; margin-bottom: 5vh; }
.work__media { box-shadow: 0 30px 60px -28px rgba(0,0,0,0.75); }
.work:hover .work__media img { transform: scale(1.06); }
.work__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.work__no { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--ink-dim); }
.work__swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line), 0 0 18px -2px var(--c); }
.work__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin-top: 0.2rem; line-height: 1.1; }
.work__treat { color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.15rem; }

.work--end { width: clamp(280px, 30vw, 420px); align-self: center; }
.work__end {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem;
  border-left: 1px solid var(--line); padding-left: 2rem;
}
.work__end p { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }

/* =================================================================
   PALETTE
   ================================================================= */
.palette { padding: clamp(4.5rem, 11vh, 8rem) 0; overflow: hidden; }
.palette__head { padding: 0 var(--pad); max-width: var(--maxw); margin: 0 auto 3rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; }
.palette__title { font-size: clamp(2.2rem, 6vw, 4.8rem); }
.palette__title em { color: var(--red); }
.palette__body { color: var(--ink-soft); max-width: 42ch; padding-bottom: 0.4rem; }

.palette__marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.palette__track { display: flex; gap: 1.5rem; width: max-content; animation: paletteScroll 45s linear infinite; padding: 0 0.75rem; }
.palette:hover .palette__track { animation-play-state: paused; }
@keyframes paletteScroll { to { transform: translateX(-50%); } }
.chip { flex: 0 0 auto; width: clamp(230px, 24vw, 300px); }
.chip__img { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #050506; position: relative; }
.chip__img::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--c) 60%, transparent)); mix-blend-mode: soft-light; }
.chip__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s var(--ease); }
.chip:hover .chip__img img { transform: scale(1.05); }
.chip figcaption { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; }
.chip figcaption::before { content:''; width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: 0 0 auto; box-shadow: 0 0 12px -1px var(--c); }
.chip figcaption b { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.chip figcaption span { color: var(--ink-dim); font-size: 0.78rem; margin-left: auto; }

/* =================================================================
   SHOWROOM
   ================================================================= */
.showroom { padding: clamp(4.5rem, 11vh, 8rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.showroom .section-head { padding: 0; margin-bottom: 3.5rem; }
.showroom__list { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 6rem); }
.car { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.car.is-in { opacity: 1; transform: none; }
.car--rev .car__media { order: 2; }
.car__media { box-shadow: 0 40px 80px -34px rgba(0,0,0,0.8); }
.car:hover .car__media img { transform: scale(1.04); }
.car__badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.45em 0.9em; border-radius: 100px;
}
.car__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.car__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.9rem); letter-spacing: -0.025em; line-height: 1.05; }
.car__price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--red); white-space: nowrap; }
.car__price i { font-style: normal; font-size: 0.62em; color: var(--ink-soft); }
.car__line { color: var(--ink-soft); margin: 1rem 0 1.4rem; font-size: 1rem; }
.car__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; }
.car__specs li { font-size: 0.92rem; display: flex; flex-direction: column; gap: 0.1rem; border-left: 2px solid var(--red); padding-left: 0.8rem; }
.car__specs span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.car__thumb { margin-top: 1.6rem; width: 46%; max-width: 200px; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: #050506; border: 1px solid var(--line); }
.car__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1s var(--ease); }
.car:hover .car__thumb img { transform: scale(1.05); }

/* =================================================================
   ATELIER / PROCESS
   ================================================================= */
.atelier { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(4.5rem, 11vh, 8rem) var(--pad); max-width: var(--maxw); margin: 0 auto; }
.atelier__title { font-size: clamp(2.2rem, 6vw, 4.6rem); margin-bottom: 2.5rem; }
.atelier__title em { color: var(--red); }
.process { display: flex; flex-direction: column; }
.process__step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.5rem 0; border-top: 1px solid var(--line); transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.process__step.is-in { opacity: 1; transform: none; }
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__no { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--red); line-height: 1; }
.process__step h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.35rem; }
.process__step p { color: var(--ink-soft); font-size: 0.94rem; max-width: 48ch; }

/* =================================================================
   CONTACT
   ================================================================= */
.contact { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--pad); overflow: hidden; background: var(--bg-2); }
.contact__bg { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; overflow: hidden; }
.contact__ghost { font-family: var(--font-display); font-weight: 800; font-size: 28vw; color: rgba(239,233,223,0.03); letter-spacing: -0.04em; white-space: nowrap; will-change: transform; }
.contact__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.8rem, 9vw, 7rem); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.contact__title .line { display: block; padding: 0.02em 0; }
.contact__title .accent { color: var(--red); }
.contact__sub { color: var(--ink-soft); max-width: 50ch; font-size: clamp(1rem,1.3vw,1.15rem); margin-bottom: 3rem; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; max-width: 760px; margin-bottom: 3.5rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 1.4rem 0 0.6rem; font-size: 1.02rem; color: var(--ink); resize: none;
  transition: border-color 0.4s;
}
.field label { position: absolute; left: 0; top: 1.4rem; color: var(--ink-dim); pointer-events: none; transition: transform 0.35s var(--ease), color 0.35s, font-size .35s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field input:focus ~ label, .field textarea:focus ~ label,
.field input:not(:placeholder-shown) ~ label, .field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-1.35rem); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red);
}
.contact__form .btn--block { grid-column: 1 / -1; }

.contact__direct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact__card { display: flex; flex-direction: column; gap: 0.35rem; border: 1px solid var(--line); border-radius: 10px; padding: 1.3rem 1.4rem; transition: border-color 0.4s, background 0.4s, transform .4s; }
a.contact__card:hover { border-color: var(--red); background: rgba(232,32,58,0.07); transform: translateY(-3px); }
.contact__card-k { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.contact__card-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem,1.6vw,1.18rem); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { border-top: 1px solid var(--line); }
.footer__marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.footer__track { display: flex; gap: 1.4rem; align-items: center; width: max-content; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: -0.02em; color: var(--ink); animation: tick 30s linear infinite; }
.footer__track b { color: var(--red); }
.footer__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 2.5rem var(--pad); max-width: var(--maxw); margin: 0 auto; }
.footer__brand img { height: 44px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer__nav a { font-size: 0.85rem; color: var(--ink-soft); transition: color 0.3s; display: inline-block; padding: 0.5em 0.35em; }
.footer__nav a:hover { color: var(--red); }
.footer__meta { text-align: right; font-size: 0.8rem; color: var(--ink-dim); display: flex; flex-direction: column; gap: 0.25rem; }
.footer__meta a { color: var(--red); font-weight: 600; font-size: 0.92rem; }
.footer__copy { color: var(--ink-dim); }
.footer__credit { color: var(--ink-dim); }
.footer__credit a { color: var(--ink-soft); font-weight: 600; transition: color 0.3s; }
.footer__credit a:hover { color: var(--red); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; }
  .hero__feature { max-width: 460px; }
  .hero { padding-top: 7rem; }
  .manifeste__grid, .palette__head, .section-head--split { grid-template-columns: 1fr; }
  .metier__item { grid-template-columns: auto 1fr; grid-template-areas: "no name" "no desc" "tags tags"; gap: 0.5rem 1.5rem; }
  .metier__main { grid-area: name; }
  .metier__desc { grid-area: desc; margin-top: 0.6rem; }
  .metier__tags { grid-area: tags; margin-top: 1rem; }
  .metier__arrow { display: none; }
  .atelier { grid-template-columns: 1fr; }
  .atelier__media { max-width: 460px; }
  .car, .car--rev .car__media { grid-template-columns: 1fr; order: unset; }
  .car--rev .car__media { order: 0; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero__scroll { display: none; }

  /* hero: flow top-to-bottom (no forced vertical centering that buried the
     image) and give the photo clear separation from the CTAs */
  .hero { justify-content: flex-start; padding-bottom: 3rem; }
  .hero__grid { gap: clamp(3.5rem, 14vw, 5.5rem); }
  .hero__feature { max-width: 100%; margin-inline: auto; }
  /* show the WHOLE photo (no crop): let the frame take the image's natural
     height instead of a fixed aspect ratio */
  .hero__frame { aspect-ratio: auto; }
  .hero__frame img { height: auto; object-fit: contain; }
  .contact__form { grid-template-columns: 1fr; }
  .contact__direct { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__meta { text-align: center; }
  .car__specs { grid-template-columns: 1fr; }

  /* works: native horizontal swipe instead of scroll-pin */
  .works__pin {
    position: relative; height: auto; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
  }
  .works__track {
    position: relative; height: auto; transform: none !important;
    padding: 0 var(--pad) 1rem; align-items: stretch;
  }
  /* cards are revealed by horizontal swipe — guarantee they're never stuck hidden */
  .work { width: 78vw; align-self: center !important; margin: 0 !important; scroll-snap-align: start; opacity: 1; transform: none; }
  .work--wide { width: 88vw; }
  .work--end { width: 72vw; }

  /* palette: replace infinite auto-scroll (runs forever on touch, can't pause)
     with a user-controlled native swipe */
  .palette__marquee { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; -webkit-mask-image: none; mask-image: none; }
  .palette__track { animation: none; width: max-content; }
  .chip { width: clamp(160px, 62vw, 240px); scroll-snap-align: start; }
  /* the duplicated loop chips are only needed for the CSS marquee — hide on touch */
  .palette__track .chip[aria-hidden="true"] { display: none; }

  body { cursor: auto; }
}

@media (max-width: 420px) {
  .hero { padding-top: 6.5rem; }
  .hero__title { font-size: clamp(2.6rem, 13vw, 3.8rem); }
  .hero__ghost { font-size: 60vw; right: -6%; bottom: -6%; }
  .contact__ghost { font-size: 34vw; }
  .car__badge { top: 10px; right: 10px; font-size: 0.62rem; padding: 0.4em 0.8em; }
  .car__specs { gap: 0.8rem 1.2rem; }
  .process__step { gap: 0.9rem; }
  .footer__track { font-size: clamp(1.4rem, 7vw, 2.2rem); }
}

/* very small phones (iPhone SE / older) */
@media (max-width: 360px) {
  :root { --pad: 1rem; }
  .hero__title { font-size: clamp(2.3rem, 12vw, 3.2rem); }
  .mobile-menu__link { font-size: clamp(2rem, 10vw, 3rem); }
}

/* short / landscape phones — reclaim vertical space */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 5.5rem; padding-bottom: 2rem; }
  .hero__grid { gap: 1.5rem; }
  .mobile-menu { justify-content: flex-start; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .hero__title .w, .r, .reveal, .reveal-img, .metier__item, .process__step, .car, .work { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .ticker__track, .palette__track, .footer__track { animation: none !important; }
  .hero__frame { clip-path: none !important; }
}
