/* ============================================================
   ROTUVAL — Homepage Design B: Daylight Editorial
   Opposite of Cinema (A): light paper, serif headline, framed photo.
   ============================================================ */

.page-home-editorial {
  --ed-ink: #12130f;
  --ed-muted: #5c5f56;
  --ed-paper: #f6f4ec;
  --ed-paper-2: #ebe7db;
  --ed-lime: #b6cc4f;
  --ed-line: #d9d4c6;
  --ed-serif: 'Outfit', 'Space Grotesk', system-ui, sans-serif;
  --ed-sans: 'Outfit', 'Space Grotesk', 'Inter', system-ui, sans-serif;
  background: var(--ed-paper);
  color: var(--ed-ink);
}

/* Compare switcher */
.im-compare {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.28rem;
  max-width: calc(100vw - 1rem);
  background: rgba(18, 19, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.im-compare__link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-family: var(--ed-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(243, 243, 238, 0.7);
  white-space: nowrap;
}

.im-compare__link.is-active,
.im-compare__link:hover {
  background: var(--ed-lime);
  color: var(--ed-ink);
}

/* Dark ink header — white logo + stripe colors readable */
.page-home-editorial .lp-header {
  position: sticky !important;
  background: var(--ed-ink) !important;
  border-bottom: 1px solid rgba(246, 244, 236, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.page-home-editorial .lp-header.is-scrolled {
  position: sticky !important;
  background: var(--ed-ink) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

.page-home-editorial .lp-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.page-home-editorial .lp-header__logo img {
  filter: none !important;
  display: block;
  height: 2.15rem;
  width: auto;
}

.page-home-editorial .lp-header__nav a,
.page-home-editorial .lp-header__logo span {
  color: rgba(246, 244, 236, 0.88) !important;
}

.page-home-editorial .lp-header__nav a:hover,
.page-home-editorial .lp-header__nav a.is-active {
  color: var(--ed-lime) !important;
}

.page-home-editorial .lp-header__nav a::after {
  background: var(--ed-lime) !important;
}

.page-home-editorial .lp-header__toggle {
  color: #fff;
  border-color: rgba(246, 244, 236, 0.28);
}

.page-home-editorial .lp-header__cta {
  background: var(--ed-lime) !important;
  color: var(--ed-ink) !important;
}

.page-home-editorial .lp-header__cta:hover {
  background: #c5d96a !important;
  color: var(--ed-ink) !important;
}

/* Mobile open nav on dark header */
@media (max-width: 899px) {
  .page-home-editorial .lp-header__nav.is-open {
    background: var(--ed-ink);
    border-color: rgba(246, 244, 236, 0.12);
  }

  .page-home-editorial .lp-header__nav.is-open a {
    color: rgba(246, 244, 236, 0.92) !important;
  }
}

/* —— Editorial hero —— */
.ed-hero {
  position: relative;
  padding: 1.75rem 0 1.25rem;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(182, 204, 79, 0.18), transparent 60%),
    var(--ed-paper);
  overflow: hidden;
}

.ed-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 19, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 19, 15, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000, transparent 85%);
  pointer-events: none;
}

.ed-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 980px) {
  .ed-hero {
    min-height: 0;
    display: block;
    padding: 2rem 0 0.75rem;
  }

  .ed-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
  }
}

.ed-hero__eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--ed-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4a5a12;
}

.ed-hero__title {
  margin: 0 0 1.35rem;
  font-family: var(--ed-sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.8vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ed-ink);
}

.ed-hero__title em {
  font-style: normal;
  font-weight: 600;
  color: #3f4d10;
  background: linear-gradient(180deg, transparent 68%, rgba(182, 204, 79, 0.55) 68%);
}

.ed-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ed-muted);
}

.ed-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--ed-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ed-btn:hover {
  transform: translateY(-2px);
}

.ed-btn--ink {
  background: var(--ed-ink);
  color: #fff;
}

.ed-btn--ink:hover {
  background: #2a2c24;
}

.ed-btn--line {
  background: transparent;
  color: var(--ed-ink);
  border: 1px solid var(--ed-ink);
}

.ed-btn--line:hover {
  background: rgba(18, 19, 15, 0.04);
}

.ed-hero__points {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--ed-ink);
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ed-hero__points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.ed-hero__points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ed-hero__n {
  font-family: var(--ed-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4a5a12;
  padding-top: 0.15rem;
}

.ed-hero__points strong {
  display: block;
  font-family: var(--ed-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ed-ink);
}

.ed-hero__points em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ed-muted);
}

/* Stacked project cards — front/back cycle through every slide */
.ed-hero__visual {
  position: relative;
}

.ed-hero__cards {
  position: relative;
  width: min(100%, 28rem);
  height: clamp(20rem, 54vw, 30rem);
  margin-left: auto;
}

.ed-hero__card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--ed-ink);
  border: 1px solid var(--ed-ink);
  transition:
    left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.85s ease,
    filter 0.85s ease,
    opacity 0.85s ease;
}

.ed-hero__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-hero__card.is-front {
  z-index: 3;
  left: 0;
  top: 0;
  width: 78%;
  height: 92%;
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow:
    0 0 0 1px var(--ed-ink),
    10px 10px 0 0 var(--ed-lime);
  filter: none;
}

.ed-hero__card.is-back {
  z-index: 1;
  left: 40%;
  top: 12%;
  width: 56%;
  height: 76%;
  opacity: 1;
  transform: translateY(0) scale(0.98);
  box-shadow: 0 18px 40px rgba(18, 19, 15, 0.18);
  filter: brightness(0.9);
}

.ed-hero__card.is-waiting {
  z-index: 0;
  left: 40%;
  top: 12%;
  width: 56%;
  height: 76%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.92);
}

.ed-hero__cards.is-swapping .ed-hero__card.is-front {
  transform: translateY(-10px) scale(1.02);
}

.ed-hero__badge {
  position: absolute;
  right: -0.35rem;
  top: 1.15rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: var(--ed-lime);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(18, 19, 15, 0.12);
  pointer-events: none;
}

.ed-hero__badge span {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ed-hero__credit {
  margin: 0.75rem 0 0;
  font-family: var(--ed-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-muted);
  text-align: right;
}

/* Clients trust — ink band, single row, professional divider */
.ed-clients {
  background: var(--ed-ink);
  border-top: 0;
  border-bottom: 0;
  padding: 1.75rem 0 1.9rem;
}

.ed-clients--center .ed-clients__inner {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.ed-clients__label {
  margin: 0;
  font-family: var(--ed-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 244, 236, 0.42);
}

.ed-clients__logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.85rem, 2.2vw, 2.25rem);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ed-clients__logos::-webkit-scrollbar {
  display: none;
}

.ed-clients__item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 2.5rem;
}

.ed-clients__logo {
  display: block;
  height: clamp(1.65rem, 2.1vw, 2.15rem);
  width: auto;
  max-width: 7.25rem;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.58;
  transition: filter 0.22s ease, opacity 0.22s ease;
}

.ed-clients__logo:hover {
  filter: none;
  opacity: 1;
}

/* Service word strip — alternating neon / grey, clickable */
.ed-strip {
  background: var(--ed-ink);
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1px solid var(--ed-ink);
  border-bottom: 1px solid var(--ed-ink);
}

.ed-strip__track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: edStrip 36s linear infinite;
}

.ed-strip:hover .ed-strip__track {
  animation-play-state: paused;
}

.ed-strip__link {
  font-family: var(--ed-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ed-strip__link::after {
  content: '·';
  margin-left: 2rem;
  color: rgba(246, 244, 236, 0.35);
}

.ed-strip__link--neon {
  color: var(--ed-lime);
}

.ed-strip__link--muted {
  color: rgba(246, 244, 236, 0.42);
}

.ed-strip__link:hover {
  color: #fff;
  opacity: 1;
}

@keyframes edStrip {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* Soften dark cinema leftovers on shared sections */
.page-home-editorial .im-proofband {
  background: var(--ed-paper-2);
  color: var(--ed-ink);
  padding: 0.5rem 0 0;
}

.page-home-editorial .im-intro--atelier {
  border-top: 1px solid var(--ed-ink);
  background: var(--ed-paper);
  padding: 3.25rem 0 2rem;
}

.page-home-editorial .im-work {
  padding-top: 3rem;
}

.page-home-editorial .im-proofband__item {
  border-color: var(--ed-line);
  color: var(--ed-ink);
}

.page-home-editorial .im-proofband__item strong {
  color: var(--ed-ink);
}

.page-home-editorial .im-proofband__item span {
  color: var(--ed-muted);
}

.page-home-editorial .im-proofband__icon {
  background: var(--ed-ink);
  color: var(--ed-lime);
}

.page-home-editorial .im-intro--atelier .im-intro__text {
  font-family: var(--ed-sans);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.page-home-editorial .im-shead h2,
.page-home-editorial .im-contact h2,
.page-home-editorial .im-cta h2,
.page-home-editorial .im-faq__intro h2,
.page-home-editorial .im-caprow h3,
.page-home-editorial .im-pstep h3,
.page-home-editorial .im-sector h3,
.page-home-editorial .im-card h3,
.page-home-editorial .im-stat strong {
  font-family: var(--ed-sans) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  text-transform: none !important;
}

.page-home-editorial .im-cta {
  background: var(--ed-ink);
  color: var(--ed-paper);
}

.page-home-editorial .im-cta p {
  color: rgba(246, 244, 236, 0.65);
}

.page-home-editorial .im-cta .im-btn--ink {
  background: var(--ed-lime);
  color: var(--ed-ink);
}

.page-home-editorial .im-sticky-cta__btn {
  background: var(--ed-ink);
  color: #fff;
}

@media (max-width: 639px) {
  .ed-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ed-hero__cards {
    height: 20rem;
  }

  .ed-hero__card.is-front {
    width: 82%;
    height: 90%;
  }

  .ed-hero__card.is-back,
  .ed-hero__card.is-waiting {
    left: 36%;
    top: 16%;
    width: 58%;
    height: 72%;
  }

  .ed-hero__badge {
    right: 0.5rem;
    top: auto;
    bottom: 1rem;
  }

  .ed-clients--center {
    padding: 1.45rem 0 1.55rem;
  }

  .page-home-editorial .im-intro--atelier {
    padding-bottom: 0;
  }

  .page-home-editorial .im-work {
    padding-top: 2.5rem;
  }

  .ed-clients__logos {
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0 0.15rem;
  }

  .ed-clients__item {
    flex: 0 0 auto;
    min-width: 5rem;
  }

  .ed-clients__logo {
    height: 1.75rem;
    max-width: 6.5rem;
  }

  .im-compare {
    top: auto;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.has-sticky-cta .im-compare {
    bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-strip__track {
    animation: none;
  }

  .ed-hero__card {
    transition: none !important;
  }

  .ed-clients__logo {
    transition: none;
  }
}
