/* ==========================================================================
   MotiZone case study — project-specific styles
   ========================================================================== */

.motizone {
  --motizone-bg: #141824;
  --motizone-bg-gradient: #152338;
  --motizone-text: #ebf7ff;
  --motizone-heading: #5090f1;
  --motizone-wrap: 68rem;

  color: var(--motizone-text);
  background-color: var(--motizone-bg);
}

/* — Header overlay on dark hero — */
body.case-study-page--motizone:has(.site-header) {
  padding-top: 0;
}

.case-study-page--motizone #main-content {
  margin-top: 0;
}

.case-study-page--motizone .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
}

@media (min-width: 48rem) {
  .case-study-page--motizone .site-header {
    position: fixed;
    background-color: transparent;
  }
}

/* — Shared — */
.motizone-wrap {
  max-width: var(--motizone-wrap);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.motizone-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--motizone-heading);
}

.motizone-heading--section {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.motizone-heading--small {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.65rem;
}

.motizone-heading--xl {
  font-size: clamp(2.5rem, 7vw, 4rem);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

/* — Bands — */
.motizone-band {
  padding-block: clamp(3rem, 8vw, 6rem);
  background-color: var(--motizone-bg);
}

.motizone-band--spacious {
  padding-block: clamp(4rem, 10vw, 7.5rem);
}

.motizone-band--gradient {
  background: linear-gradient(
    180deg,
    var(--motizone-bg) 0%,
    var(--motizone-bg-gradient) 50%,
    var(--motizone-bg) 100%
  );
  padding-top: clamp(4.5rem, 11vw, 7.5rem);
}

.motizone-band--hero {
  padding-top: calc(clamp(4rem, 10vw, 6rem) + var(--header-height, 4.5rem));
  padding-bottom: clamp(5rem, 12vw, 8rem);
}

.motizone-band--reflection {
  background: linear-gradient(
    160deg,
    #5090f1 0%,
    #6ba3f5 45%,
    #5090f1 100%
  );
  padding-block: clamp(4rem, 10vw, 7rem);
}

.motizone-band--reflection .motizone-heading,
.motizone-band--reflection .motizone-heading--section {
  color: #141824;
}

.motizone-band--reflection .motizone-reflection__text,
.motizone-band--reflection .motizone-reflection__link {
  color: #141824;
}

/* — Landing & overview — */
.motizone-hero__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(14rem, 38vh, 24rem);
  margin-bottom: clamp(4rem, 12vw, 8rem);
}

.motizone-hero__image {
  display: block;
  width: 100%;
  max-width: min(56rem, 96vw);
  height: auto;
}

.motizone-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid rgb(80 144 241 / 22%);
}

.motizone-meta {
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.motizone-meta__item {
  display: flex;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
  color: var(--motizone-text);
}

.motizone-meta__item dt {
  font-weight: 700;
}

.motizone-meta__item dd {
  margin: 0;
}

.motizone-heading#motizone-overview-heading,
.motizone-overview .motizone-heading {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

.motizone-overview__text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  max-width: 36rem;
  margin: 0;
}

/* — Problem Statement — */
.motizone-problem {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.motizone-problem__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.65;
  max-width: 28rem;
  margin: 0;
  color: var(--motizone-heading);
}

.motizone-problem__art {
  justify-self: center;
  max-width: min(22rem, 80%);
}

/* — Research — */
.motizone-research {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 8vw, 6rem);
}

.motizone-research__block p,
.motizone-research__note {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.motizone-research__label {
  font-weight: 700;
  margin-top: var(--space-sm) !important;
}

.motizone-list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.motizone-list li {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

.motizone-list--dash {
  list-style: none;
  padding-left: 0;
}

.motizone-list--dash li::before {
  content: "– ";
}

/* — Interview quotes — */
.motizone-interviews__inner {
  max-width: var(--motizone-wrap);
}

.motizone-quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 6.5rem);
  align-items: stretch;
}

.motizone-quote {
  width: min(48%, 30rem);
  text-align: left;
  opacity: 0;
  transform: translateY(2.25rem);
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.motizone-quote:nth-child(1),
.motizone-quote:nth-child(4),
.motizone-quote:nth-child(5) {
  align-self: flex-start;
}

.motizone-quote:nth-child(2),
.motizone-quote:nth-child(3) {
  align-self: flex-end;
}

.motizone-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motizone-quote > p:first-of-type {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.75vw, 1rem);
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 0.65rem;
  color: var(--motizone-text);
}

.motizone-quote__author {
  font-family: var(--font-heading);
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  font-style: normal;
  font-weight: 700;
  color: var(--motizone-heading);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .motizone-quote {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* — Brand — */
.motizone-band--gradient .motizone-wrap:has(.motizone-brand__top) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.motizone-brand__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  align-self: stretch;
  width: 100%;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.motizone-brand__logo {
  max-width: min(28rem, 92%);
  margin: 0;
}

.motizone-brand__text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  margin: 0;
  max-width: 36rem;
}

.motizone-brand__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  list-style: none;
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
  padding: 0;
}

.motizone-brand__tags li {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--motizone-heading);
}

.motizone-brand__tone {
  max-width: min(36rem, 58vw);
  margin: 0;
  width: 100%;
}

/* — Figures — */
.motizone-figure {
  margin: 0;
}

.motizone-figure__image {
  display: block;
  width: 100%;
  height: auto;
}

.motizone-figure--full {
  width: 100%;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* — Split columns — */
.motizone-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
}

.motizone-split__col p {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.motizone-split__col strong {
  font-weight: 800;
}

/* — Mockups — */
.motizone-mockups__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.motizone-mockups__notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.motizone-mockups__note .motizone-list {
  margin-bottom: 0;
}

.motizone-mockups__disclaimer {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  line-height: 1.5;
  margin: var(--space-sm) 0 0;
  opacity: 0.85;
}

.motizone-mockups__desktop-title {
  margin-top: clamp(1rem, 3vw, 2rem);
}

/* — Reflection — */
.motizone-reflection__text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.65;
  max-width: 56rem;
  margin: 0;
}

.motizone-reflection__nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xl);
  margin-top: clamp(3rem, 8vw, 6rem);
}

.motizone-reflection__link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  transition: opacity var(--transition-base);
}

.motizone-reflection__link:hover,
.motizone-reflection__link:focus-visible {
  opacity: 0.7;
}

.motizone-reflection__link:focus-visible {
  outline: 2px solid #141824;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 48rem) {
  .motizone-overview {
    grid-template-columns: minmax(0, 16rem) 1fr;
    gap: clamp(2rem, 6vw, 5rem);
  }

  .motizone-problem {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
  }

  .motizone-problem__art {
    justify-self: end;
    max-width: 100%;
  }

  .motizone-research {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .motizone-research__block--interviews {
    margin-top: clamp(4rem, 10vw, 7rem);
  }

  .motizone-brand__top {
    grid-template-columns: minmax(0, 28rem) 1fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .motizone-split {
    grid-template-columns: 1fr 1fr;
  }

  .motizone-mockups__row {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

@media (max-width: 47.99rem) {
  .motizone-quote {
    width: 100%;
    align-self: flex-start;
  }

  .motizone-brand__logo {
    max-width: min(22rem, 88%);
    margin-inline: auto;
  }

  .motizone-brand__text {
    text-align: center;
    margin-inline: auto;
  }

  .motizone-brand__tone {
    max-width: min(32rem, 88%);
  }

  .motizone-brand__tags {
    justify-content: center;
    text-align: center;
  }

  .motizone-brand__tags li {
    width: 100%;
  }
}
