/* eidos.ai — home page: quote + case studies scroll sections */

:root {
  --e-night: #181631;
  --e-lavender: #a49eff;
  --e-lavender-soft: #dfddff;
  --e-beige: #f4f1ec;
  --e-rose: #cdaaad;
  --e-gradient: linear-gradient(90deg, #e1ccb3 0%, #d4a8ad 50%, #9d9ac8 100%);
}

/* styles that lived inside the removed Webflow case block, still used by expertises */
.hero-video { object-fit: cover; }
.video {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- hero scroll cue ---------- */
.e-scroll-cue {
  position: absolute;
  left: 80px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--e-night);
  opacity: .7;
}
.e-scroll-cue-line {
  position: relative;
  width: 56px;
  height: 1px;
  background: rgba(24, 22, 49, .25);
  overflow: hidden;
}
.e-scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--e-night);
  transform: translateX(-100%);
  animation: e-cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes e-cue {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- quote ---------- */
.e-quote {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--e-night);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 80px;
  overflow: hidden;
}
.e-quote-lines {
  position: absolute;
  right: -8%;
  top: 50%;
  width: 62%;
  transform: translateY(-50%);
  opacity: .16;
  pointer-events: none;
}
.e-quote-inner {
  position: relative;
  max-width: 1080px;
  width: 100%;
}
.e-quote-frame {
  position: absolute;
  inset: -40px -48px;
  border: 1px solid var(--e-lavender);
  pointer-events: none;
}
.e-quote-frame::before,
.e-quote-frame::after,
.e-quote-frame i::before,
.e-quote-frame i::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--e-lavender);
}
.e-quote-frame::before { left: -5px; top: -5px; }
.e-quote-frame::after { right: -5px; top: -5px; }
.e-quote-frame i::before { left: -5px; bottom: -5px; }
.e-quote-frame i::after { right: -5px; bottom: -5px; }
.e-quote-tag {
  position: absolute;
  left: -1px;
  top: -34px;
  padding: 6px 14px;
  background: var(--e-lavender);
  color: var(--e-night);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  white-space: nowrap;
}
.e-quote-state {
  position: absolute;
  right: 0;
  bottom: -34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--e-lavender);
  font-variant-numeric: tabular-nums;
}
.e-quote-kicker {
  display: block;
  margin-bottom: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--e-lavender);
}
.e-quote-text {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1.22;
  letter-spacing: -.01em;
}
.e-quote-text .w {
  display: inline-block;
  color: rgba(255, 255, 255, .18);
  transition: color .05s linear;
  will-change: color;
}
.e-quote-text .w.on { color: #fff; }
.e-quote-text .w.hl.on { color: var(--e-lavender); }
.e-quote-author {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(12px);
}
.e-quote-author img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.e-quote-author-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, .25);
}
.e-quote-author-name {
  font-size: 15px;
  line-height: 1.4;
}
.e-quote-author-name strong { display: block; font-weight: 600; }
.e-quote-author-name span { color: rgba(255, 255, 255, .6); }

/* ---------- case studies ---------- */
.e-cases {
  position: relative;
  width: 100%;
  background: var(--e-beige);
  overflow: hidden;
}
.e-cases-pin {
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 48px;
  box-sizing: border-box;
}
.e-cases-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 80px;
  margin-bottom: 36px;
}
.e-cases-title {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.05;
  margin: 0;
}
.e-cases-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 14px;
  white-space: nowrap;
}
.e-cases-count {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--e-night);
}
.e-cases-count span { color: rgba(24, 22, 49, .4); }
.e-cases-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--e-night);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--e-night);
  padding-bottom: 2px;
  transition: gap .2s ease;
}
.e-cases-all:hover { gap: 14px; }
.e-cases-all img { width: 18px; height: 18px; }
.e-cases-viewport { width: 100%; }
.e-cases-track {
  display: flex;
  gap: 32px;
  padding: 0 80px;
  width: max-content;
  will-change: transform;
}
.e-case {
  position: relative;
  flex: 0 0 auto;
  width: min(1040px, calc(100vw - 160px));
  height: min(560px, calc(100vh - 300px));
  min-height: 420px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--e-night);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  outline: 1px solid var(--e-night);
}
.e-case-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px 40px 56px;
  min-width: 0;
}
.e-case-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--e-lavender);
}
.e-case-index::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 48px;
  background: rgba(164, 158, 255, .5);
}
.e-case-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.25;
  margin: 20px 0 0;
}
.e-case-summary {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
  max-width: 38ch;
}
.e-case-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}
.e-case-metric-value {
  font-family: "DM Sans", sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  background: var(--e-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.e-case-metric-label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}
.e-case-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 40px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.e-case-cta img { width: 18px; height: 18px; transition: transform .2s ease; }
.e-case:hover .e-case-cta { background: #fff; color: var(--e-night); border-color: #fff; }
.e-case:hover .e-case-cta img { transform: translateX(4px); filter: invert(1); }
.e-case-media {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.e-case-media video {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.e-case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 22, 49, .55), rgba(24, 22, 49, 0) 30%);
  pointer-events: none;
}
.e-detect {
  position: absolute;
  border: 1px solid var(--e-lavender);
  pointer-events: none;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 1;
}
.e-case.is-active .e-detect { opacity: 1; transform: scale(1); }
.e-detect span {
  position: absolute;
  left: -1px;
  top: -25px;
  padding: 3px 9px;
  background: var(--e-lavender);
  color: var(--e-night);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.e-cases-progress {
  margin: 36px 80px 0;
  height: 1px;
  background: rgba(24, 22, 49, .18);
  position: relative;
}
.e-cases-progress i {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--e-night);
}

/* the original "Trusted by" used to sit under the hero; give it room */
.home-trusted { padding-top: 96px; }

@media (prefers-reduced-motion: reduce) {
  .e-scroll-cue-line::after { animation: none; }
  .e-quote-text .w { color: #fff; }
  .e-quote-author { opacity: 1; transform: none; }
  .e-detect { opacity: 1; transform: none; }
}

@media screen and (max-width: 991px) {
  .e-scroll-cue { left: 24px; }
  .e-quote { padding: 96px 40px; }
  .e-quote-frame { inset: -28px -24px; }
  .e-cases-head, .e-cases-progress { padding-left: 40px; padding-right: 40px; }
  .e-cases-progress { margin-left: 40px; margin-right: 40px; padding: 0; }
  .e-cases-track { padding: 0 40px; }
  .e-case { width: min(860px, calc(100vw - 80px)); grid-template-columns: 1fr 1fr; }
  .e-case-body { padding: 36px 28px 32px 36px; }
}

@media screen and (max-width: 767px) {
  .e-scroll-cue { display: none; }
  .e-quote { min-height: 0; padding: 88px 24px 104px; }
  .e-quote-frame { inset: -20px -12px; }
  .e-quote-tag { top: -30px; font-size: 12px; }
  .e-quote-state { bottom: -30px; font-size: 12px; }
  .e-quote-lines { display: none; }
  .e-quote-text { font-size: 30px; }
  .e-quote-author { margin-top: 32px; }
  .e-cases-pin {
    height: auto;
    min-height: 0;
    padding: 72px 0 56px;
  }
  .e-cases-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 24px;
    margin-bottom: 28px;
  }
  .e-cases-meta { padding-bottom: 0; }
  .e-cases-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .e-cases-viewport::-webkit-scrollbar { display: none; }
  .e-cases-track { gap: 16px; padding: 0 24px; transform: none !important; }
  .e-case {
    width: calc(100vw - 48px);
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto;
    scroll-snap-align: center;
  }
  .e-case-media { order: -1; height: 220px; }
  .e-case-media video { inset: 0; height: 100%; transform: none !important; }
  .e-case-media::after { background: linear-gradient(180deg, rgba(24, 22, 49, 0) 60%, rgba(24, 22, 49, .8)); }
  .e-case-body { padding: 24px 24px 28px; }
  .e-case-title { font-size: 22px; margin-top: 12px; }
  .e-case-summary { font-size: 14px; }
  .e-case-foot { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 24px; }
  .e-case-metric-value { font-size: 36px; }
  .e-cases-progress { margin: 28px 24px 0; }
  .home-trusted { padding-top: 64px; }
}
