@import url("assets/colors_and_type.css");

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-sans);
  background: var(--midnight-blue);
  color: var(--just-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.deck {
  width: 100%;
}

.slide {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
}

body.single-slide .slide {
  display: none;
}

body.single-slide .slide.is-qa-target {
  display: grid;
}

.slide-inner {
  width: min(1240px, calc(100vw - 96px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.slide-inner--deliverables {
  padding: 56px 0;
}

.slide-inner--deliverables .slide-head {
  margin-bottom: 36px;
}

/* ---- Color variants ---- */

.slide--hero,
.slide--dark {
  background: var(--midnight-blue);
  color: var(--just-white);
}

.slide--paper {
  background: var(--just-white);
  color: var(--midnight-blue);
}

.slide--orange {
  background: var(--clementine);
  color: var(--midnight-blue);
}

.slide--eggplant {
  background: var(--eggplant);
  color: var(--just-white);
}

.slide--final {
  background: var(--ghost-pepper);
  color: var(--midnight-blue);
}

/* ---- Hero slide ---- */

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 7, 61, .18), rgba(12, 7, 61, .92)),
    url("assets/CCR-Euroshop-Still-04.webp") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 100, 39, .38), transparent 28%),
    linear-gradient(180deg, rgba(12, 7, 61, .14), rgba(12, 7, 61, .94));
}

.brand-mark {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 66px;
  height: auto;
  z-index: 3;
  transform: translateX(-50%);
}

.hero-inner {
  padding-top: 132px;
  align-self: end;
}

/* ---- Case banner slides ---- */

.slide--case {
  background: var(--midnight-blue);
  align-items: end;
}

.slide--case .slide-inner {
  padding-bottom: 96px;
  padding-top: 0;
}

.slide--case::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 7, 61, .06) 0%, rgba(12, 7, 61, .92) 70%),
    linear-gradient(90deg, rgba(12, 7, 61, .72) 0%, rgba(12, 7, 61, .14) 60%),
    var(--case-img, none) center / cover no-repeat;
}

.case-topline {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.case-topline > span {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

/* ---- Typography ---- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clementine);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--ghost-pepper);
}

.eyebrow--dark {
  color: var(--midnight-blue);
}

.eyebrow--pepper {
  color: var(--ghost-pepper);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

h1 {
  max-width: 12ch;
  font-size: clamp(72px, 9.5vw, 172px);
  line-height: .86;
  margin-bottom: 36px;
}

h2 {
  font-size: clamp(44px, 5.5vw, 96px);
  line-height: .9;
  margin-bottom: 0;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: clamp(26px, 2.4vw, 40px);
  line-height: .96;
  margin-bottom: 14px;
}

h4 {
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ghost-pepper);
}

.hero-sub {
  max-width: 52ch;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.22;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 0;
}

/* ---- Split layout ---- */

.split {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 92px;
  align-items: start;
}

.copy-stack {
  max-width: 760px;
}

.copy-stack p {
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.32;
  margin-bottom: 28px;
  text-wrap: pretty;
}

.copy-stack p:not(.lede) {
  color: var(--midnight-80);
}

.lede {
  font-size: clamp(26px, 2.4vw, 38px) !important;
  line-height: 1.18 !important;
  color: var(--midnight-blue) !important;
  font-weight: 600;
}

/* ---- Statement slides ---- */

.statement {
  text-align: center;
  max-width: 1120px;
}

.statement h2 {
  margin-inline: auto;
}

.statement p:not(.eyebrow) {
  max-width: 760px;
  margin: 32px auto 0;
  font-size: clamp(24px, 2.3vw, 38px);
  line-height: 1.22;
}

/* ---- Slide head ---- */

.slide-head {
  margin-bottom: 52px;
}

.slide-head h2 {
  max-width: 13ch;
}

/* ---- How we work grid (4 cols) ---- */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ghost-pepper);
  border-bottom: 2px solid var(--ghost-pepper);
}

.reason-grid article {
  min-height: 280px;
  padding: 28px 26px 30px;
  border-right: 1px solid rgba(105, 255, 140, .28);
}

.reason-grid article:last-child {
  border-right: 0;
}

.reason-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--clementine);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: .9;
}

.reason-grid h3 {
  font-size: clamp(23px, 1.9vw, 32px);
  line-height: 1;
  margin-bottom: 12px;
}

.reason-grid p {
  font-size: 18px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .76);
  margin: 0;
}

/* ---- Deliverables grid (3 cols) ---- */

.del-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .14);
}

.del-grid--eggplant {
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .18);
}

.del-card {
  padding: 32px 28px 36px;
  background: var(--midnight-blue);
  min-height: 220px;
}

.del-card--eggplant {
  background: var(--eggplant);
}

.del-card__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  line-height: .9;
  color: var(--clementine);
  margin-bottom: 16px;
}

.del-card--eggplant .del-card__num {
  color: var(--ghost-pepper);
}

.del-card h3 {
  font-size: clamp(20px, 1.7vw, 28px);
  margin-bottom: 10px;
}

.del-card p {
  font-size: 17px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.del-card__tag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ghost-pepper);
  opacity: .72;
}

.del-card--eggplant .del-card__tag {
  color: var(--ghost-pepper);
  opacity: .9;
}

/* ---- Stats strip (orange slide) ---- */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--midnight-blue);
  border-bottom: 2px solid var(--midnight-blue);
  margin-top: 48px;
}

.stats-strip--dark {
  border-color: var(--ghost-pepper);
}

.stat {
  display: grid;
  align-content: center;
  padding: 42px 30px;
  border-right: 2px solid var(--midnight-blue);
}

.stats-strip--dark .stat {
  border-right-color: rgba(105, 255, 140, .3);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 7.5vw, 120px);
  line-height: .82;
  letter-spacing: -.04em;
}

.stat span {
  margin-top: 16px;
  max-width: 18ch;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 700;
}

.stats-strip--dark .stat strong {
  color: var(--ghost-pepper);
}

/* ---- Line list ---- */

.line-list {
  border-top: 2px solid var(--midnight-blue);
}

.slide--paper .line-list {
  border-top-color: var(--midnight-blue);
}

.line-list p {
  margin: 0;
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.32;
  padding: 26px 0;
  border-bottom: 1px solid var(--midnight-12);
  text-wrap: pretty;
}

.line-list span {
  color: var(--clementine);
  font-weight: 800;
}

/* ---- Final slide ---- */

.final-mark {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: min(38vw, 520px);
  opacity: .18;
}

.cta-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 18px 32px;
  background: var(--midnight-blue);
  color: var(--just-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--midnight-blue);
  transition: background 160ms, color 160ms;
}

.cta-btn:hover {
  background: transparent;
  color: var(--midnight-blue);
}

/* ---- Nav controls ---- */

.deck-controls {
  position: fixed;
  z-index: 20;
  right: 18px;
  top: 18px;
  display: grid;
  grid-template-columns: auto 160px auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(12, 7, 61, .76);
  color: var(--just-white);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}

.deck-controls button {
  border: 0;
  padding: 9px 12px;
  background: var(--clementine);
  color: var(--midnight-blue);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.deck-controls button:disabled {
  opacity: .38;
  cursor: default;
}

.deck-controls button:focus-visible {
  outline: 2px solid var(--ghost-pepper);
  outline-offset: 2px;
}

.progress {
  height: 4px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ghost-pepper);
  transition: width 180ms var(--ease-out);
}

#slideCounter {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
}

/* ---- Deep-dive slides ---- */

.slide-inner--deep {
  padding: 64px 0;
}

.deep-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.deep-content h2 {
  font-size: clamp(34px, 3.4vw, 58px);
  margin-bottom: 20px;
}

.deep-content p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.48;
  color: rgba(255, 255, 255, .80);
  margin-bottom: 14px;
}

.deep-bts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.deep-bts--2col {
  grid-template-columns: repeat(2, 1fr);
}

.deep-bts img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.deep-embed {
  position: relative;
  padding-top: 56.25%;
}

.deep-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.del-model {
  width: 100%;
  height: 420px;
  position: relative;
}

.del-model model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
}

/* ---- Responsive ---- */

@media (max-width: 1100px) {
  .slide-inner {
    width: calc(100vw - 48px);
    max-width: 920px;
    padding: 80px 0;
  }

  h1 { font-size: clamp(56px, 14vw, 120px); }
  h2 { font-size: clamp(40px, 9vw, 72px); }

  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .reason-grid,
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .del-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .deep-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .del-model {
    height: 300px;
  }
}

@media (max-width: 720px) {
  html { scroll-snap-type: none; }

  .slide { min-height: auto; }

  .slide-inner {
    width: calc(100vw - 48px);
    padding: 64px 0 132px;
  }

  .brand-mark { width: 54px; }
  .hero-inner { padding-top: 110px; }

  .reason-grid,
  .stats-strip,
  .del-grid {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .reason-grid article,
  .del-card,
  .stat {
    min-height: auto;
    min-width: 0;
  }

  .stat {
    border-right: 0;
    border-bottom: 2px solid rgba(0, 0, 0, .18);
  }

  .stat:last-child { border-bottom: 0; }

  .deck-controls {
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 8px;
    right: 12px;
    left: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    padding: 10px;
  }

  .deck-controls button {
    width: 100%;
    min-width: 0;
    padding: 9px 6px;
    font-size: 10px;
    letter-spacing: .08em;
  }

  #slideCounter { display: none; }
}

@media (max-width: 540px) {
  .slide-inner {
    width: calc(100vw - 32px);
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .deck-controls {
    left: 8px;
    right: auto;
    width: calc(100vw - 16px);
    max-width: 374px;
  }
}
