/* Citroën C3 YOU! — page-specific editorial direction.
   Shared project and Work transition systems remain untouched. */
:root {
  --c3-night: #080c10;
  --c3-panel: #0d141d;
  --c3-blue: #8faecc;
  --c3-white: #f2f5f7;
  --c3-muted: #aeb8c4;
  --c3-red: #c6384c;
}

.c3-hero {
  min-height: 660px;
  background: var(--c3-night);
}

.c3-hero .proj-hero-video-wrap {
  background: #101c2c;
}

.c3-hero video {
  object-position: center;
}

.c3-motion {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 24px;
  color: var(--c3-white);
  background: rgba(8,12,16,.6);
  backdrop-filter: blur(8px);
  font: 400 11px/1.2 var(--sans);
  cursor: pointer;
}
.c3-motion:focus-visible { outline: 2px solid var(--c3-white); outline-offset: 4px; }
.c3-motion[hidden] { display: none; }
.c3-hero-motion { position: absolute; z-index: 4; top: calc(var(--nav-h) + 20px); right: var(--gutter); }
.c3-breakdown-motion { margin-top: 14px; }

.c3-hero-still {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../assets/images/projects/citroen-c3/stage-final-1920.webp") center / cover no-repeat;
  opacity: 0;
  transition: opacity .42s ease;
  pointer-events: none;
}

html.c3-direct-entry .c3-hero-still {
  opacity: 1;
}

.c3-hero .proj-hero-vignette {
  z-index: 2;
}

.c3-hero .proj-hero-content {
  max-width: none;
  width: 100%;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) clamp(2.3rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(2rem, 5vw, 5rem);
}

.c3-hero-copy {
  max-width: 870px;
}

.c3-project-name {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin: 0 0 1.1rem;
  color: var(--c3-white);
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 500;
  letter-spacing: .02em;
}

.c3-project-name span {
  color: #9bb6d4;
  font-size: .72em;
  letter-spacing: .16em;
}

.c3-hero .proj-title {
  max-width: 900px;
  margin: 0;
  color: var(--c3-white);
  font-size: clamp(50px, 6.3vw, 108px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.c3-hero-description {
  margin: 1.25rem 0 0;
  color: rgba(242, 245, 247, .8);
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.45;
}

.c3-hero-details {
  display: grid;
  grid-template-columns: minmax(140px, .9fr) minmax(140px, .75fr) minmax(260px, 1.8fr) auto;
  gap: clamp(1.25rem, 3vw, 4rem);
  align-items: start;
  max-width: 1380px;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.c3-hero-details p {
  margin: 0;
  color: var(--c3-white);
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1.42;
}

.c3-hero-details span {
  display: block;
  margin-bottom: .42rem;
  color: var(--c3-blue);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.c3-margin-note {
  margin: 0;
  color: var(--c3-blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
}

.c3-intro,
.c3-transformation,
.c3-breakdown,
.c3-film,
.c3-credits {
  background: var(--c3-night);
  color: var(--c3-white);
}

.c3-intro {
  padding: clamp(7rem, 11vw, 12rem) 0 clamp(7rem, 11vw, 12rem);
}

.c3-intro-inner {
  display: grid;
  grid-template-columns: minmax(170px, .36fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}

.c3-intro-main {
  max-width: 880px;
}

.c3-intro h2,
.c3-section-heading h2,
.c3-breakdown h2,
.c3-film h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 78px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.c3-intro-main p {
  max-width: 760px;
  margin: 2rem 0 0;
  color: var(--c3-muted);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.65;
}

.c3-transformation {
  padding: 0 0 clamp(6rem, 9vw, 10rem);
}

.c3-section-heading {
  display: grid;
  grid-template-columns: 1.15fr .6fr;
  align-items: end;
  gap: clamp(2rem, 8vw, 10rem);
  padding-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.c3-section-heading h2 {
  max-width: 760px;
  margin-top: 1.4rem;
}

.c3-section-heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--c3-muted);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.6;
}

.c3-compare {
  width: 100%;
}

.c3-compare-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  background: #08111c;
  cursor: ew-resize;
  touch-action: pan-y;
}

.c3-compare-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.c3-compare-final {
  clip-path: inset(0 calc(100% - var(--c3-split)) 0 0);
}

.c3-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--c3-split);
  z-index: 3;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.86);
  pointer-events: none;
}

.c3-compare-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(18,31,46,.32);
  box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
}

.c3-compare-divider span::before,
.c3-compare-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid #fff;
}

.c3-compare-divider span::before {
  left: 10px;
  border-left: 1px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
}

.c3-compare-divider span::after {
  right: 10px;
  border-right: 1px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.c3-compare-label {
  position: absolute;
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 4;
  display: grid;
  gap: .35rem;
  width: clamp(150px, 16vw, 220px);
  padding: .78rem .95rem;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 16px;
  background: rgba(20,34,48,.30);
  box-shadow: 0 8px 28px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(11px) saturate(135%);
  backdrop-filter: blur(11px) saturate(135%);
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.45);
  pointer-events: none;
}

.c3-compare-label strong {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.c3-compare-label > span {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 400;
}

.c3-compare-label-base { right: clamp(1rem, 2vw, 2rem); }
.c3-compare-label-final { left: clamp(1rem, 2vw, 2rem); }

.c3-compare-range {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.c3-compare-frame:focus-within {
  outline: 2px solid var(--c3-white);
  outline-offset: -5px;
}

.c3-compare-caption-mobile { display: none; }

.c3-compare-caption {
  margin: 1.1rem var(--gutter) 0;
  color: #8996a6;
  font-size: 12px;
  line-height: 1.5;
}

.c3-breakdown {
  padding: clamp(5rem, 8vw, 9rem) 0;
  background: var(--c3-panel);
}

.c3-breakdown-inner {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 7vw, 9rem);
  align-items: center;
}

.c3-breakdown-copy {
  max-width: 470px;
}

.c3-breakdown h2 {
  margin-top: 1.4rem;
  font-size: clamp(36px, 3.8vw, 62px);
}

.c3-breakdown-copy > p:last-child {
  margin: 1.7rem 0 0;
  color: var(--c3-muted);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.65;
}

.c3-breakdown-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05080d;
}

.c3-breakdown-media p {
  margin: .8rem 0 0;
  color: #8795a6;
  font-size: 11px;
  letter-spacing: .02em;
}

.c3-film {
  padding: clamp(7rem, 11vw, 12rem) 0;
}

.c3-film-heading {
  display: grid;
  grid-template-columns: minmax(150px, .4fr) 1.2fr .65fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.c3-film h2 { font-size: clamp(48px, 5.5vw, 90px); }

.c3-film-heading > p:last-child {
  justify-self: end;
  margin: 0 0 .4rem;
  color: var(--c3-muted);
  font-size: clamp(15px, 1vw, 18px);
}

.c3-film-player {
  max-width: none;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.c3-credits {
  padding: clamp(3.5rem, 6vw, 7rem) 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.c3-credits-inner {
  display: grid;
  grid-template-columns: minmax(170px, .4fr) 1fr;
  gap: clamp(2rem, 7vw, 8rem);
}

.c3-credits h2 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 25px);
  font-weight: 400;
}

.c3-credits dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin: 0;
}

.c3-credits dl div { min-width: 0; }
.c3-credits dt {
  color: var(--c3-blue);
  font-size: 11px;
  letter-spacing: .06em;
}
.c3-credits dd {
  margin: .55rem 0 0;
  color: var(--c3-white);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.4;
}

.c3-cta {
  padding: clamp(7rem, 11vw, 11rem) 0;
  background: #101923;
}

.c3-cta .c3-margin-note { color: #a8bdd5; }
.c3-cta .proj-cta-title {
  max-width: 950px;
  margin-inline: auto;
  font-size: clamp(44px, 5.8vw, 94px);
}

@media (max-width: 1100px) {
  .c3-hero-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 730px;
    gap: 1.25rem 2rem;
  }
  .c3-breakdown-inner { gap: 3rem; }
}

@media (max-width: 900px) {
  .c3-hero video { transition: object-position 1.2s ease; }
  html.c3-direct-entry .c3-hero video,
  .c3-hero.c3-framed video { object-position: 68% center; }
  html.c3-direct-entry .c3-hero-still,
  .c3-hero.c3-framed .c3-hero-still { background-position: 68% center; }

  .c3-intro-inner,
  .c3-section-heading,
  .c3-breakdown-inner,
  .c3-credits-inner {
    grid-template-columns: 1fr;
  }
  .c3-intro,
  .c3-film { padding-block: 6.5rem; }
  .c3-intro-inner,
  .c3-section-heading,
  .c3-breakdown-inner,
  .c3-credits-inner { gap: 1.5rem; }
  .c3-intro-main p { margin-top: 1.5rem; }

  .c3-compare-frame { aspect-ratio: 4 / 3; cursor: default; }
  .c3-compare-image { object-position: 68% center; }
  .c3-compare-range { display: none; }
  .c3-compare-divider span { display: none; }
  .c3-compare-label {
    width: min(42vw, 170px);
    padding: .65rem .75rem;
  }
  .c3-compare-label strong { font-size: 10px; }
  .c3-compare-label > span { font-size: 11px; }
  .c3-compare-caption { margin-top: .85rem; }
  .c3-compare-caption-desktop { display: none; }
  .c3-compare-caption-mobile { display: inline; }
  .c3-film-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .c3-film-heading > p:last-child { justify-self: start; }
  .c3-credits dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .c3-hero { min-height: 700px; }
  .c3-hero .proj-hero-content {
    padding: calc(var(--nav-h) + 5rem) var(--gutter) 1.6rem;
    gap: 2rem;
  }
  .c3-hero .proj-title { font-size: clamp(42px, 10vw, 60px); }
  .c3-project-name {
    display: block;
    font-size: 13px;
  }
  .c3-project-name span { display: block; margin-top: .4rem; }
  .c3-hero-description { font-size: 14px; max-width: 300px; }
  .c3-hero-details {
    grid-template-columns: 1fr 1fr;
    gap: .9rem 1.2rem;
    padding-top: 1rem;
  }
  .c3-hero-details p { font-size: 11px; }
  .c3-hero-details p:nth-child(3) { grid-column: 1 / -1; }
  .c3-hero-details span { font-size: 9px; margin-bottom: .25rem; }

  .c3-intro,
  .c3-film { padding-block: 5.5rem; }
  .c3-intro h2,
  .c3-section-heading h2,
  .c3-breakdown h2 { font-size: clamp(37px, 9.6vw, 52px); }
  .c3-intro-main p { font-size: 16px; line-height: 1.6; }
  .c3-section-heading > p { font-size: 15px; }
  .c3-section-heading { padding-bottom: 2rem; }
  .c3-compare-frame { aspect-ratio: 4 / 5; }
  .c3-compare-caption { font-size: 11px; }
  .c3-breakdown { padding-block: 5.5rem; }
  .c3-breakdown-media video { aspect-ratio: 16 / 10; }
  .c3-film h2 { font-size: clamp(48px, 11vw, 68px); }
  .c3-credits dl { gap: 1.5rem; }
  .c3-credits dd { font-size: 14px; }
  .c3-cta .proj-cta-title { font-size: clamp(42px, 10vw, 58px); }

  html.c3-past-hero .proj-back {
    opacity: 0 !important;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c3-hero-motion { display: none; }
  .c3-hero-still { opacity: 1 !important; transition: none; }
  .c3-hero video { visibility: hidden; }
  .c3-compare-final { transition: none; }
  .c3-hero.c3-framed video { transition: none; }
}
