/* Entrana vanilla app — component styles on top of styles.css utilities */

html, body {
  margin: 0;
  background: #c2ccd3;
  font-family: Kanit, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100vh;
}

/* CTA — matches pagina/index.html RK button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  background: linear-gradient(123deg, #7a1a0a 7%, #e8341a 45%, #ff6a3d 100%);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 500;
  outline: 2px solid #fff;
  outline-offset: -3px;
  box-shadow: 0 4px 4px rgba(232, 52, 26, 0.3), 4px 4px 12px #b9280f inset;
  transition: transform 0.3s ease;
  border: 0;
  cursor: pointer;
}
.cta-btn:hover {
  opacity: 1;
  transform: scale(1.03);
}
.cta-btn--light {
  background: #fff;
  color: #0c0c0c;
  box-shadow: none;
  outline-color: #0c0c0c;
}
@media (min-width: 640px) {
  .cta-btn {
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
  }
}
@media (min-width: 768px) {
  .cta-btn {
    padding: 1rem 3rem;
    font-size: 1rem;
  }
}

/* Mobile menu */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.site-menu[hidden] { display: none !important; }
.site-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
}
.site-menu__panel {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 380px);
  height: 100%;
  padding: 1.5rem 2rem;
  background: #f5f4f0;
}
.site-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  align-self: flex-start;
  margin-bottom: 3rem;
  border: 0;
  background: none;
  font: inherit;
  color: #000;
  cursor: pointer;
}
.site-menu__nav {
  display: flex;
  flex-direction: column;
}
.site-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.025em;
}
.site-menu__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(0,0,0,.1);
}
.site-menu__foot span {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: rgba(0,0,0,.4);
}
.site-menu__foot a {
  font-size: 0.875rem;
  color: rgba(0,0,0,.7);
  text-decoration: none;
}

/* Glass cards */
.glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(47,47,47,.15);
}
@media (min-width: 640px) {
  .glass-card {
    border-radius: 36px;
  }
}
@media (min-width: 768px) {
  .glass-card {
    border-radius: 48px;
  }
}
.glass-card__stage {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.glass-card__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: url(#liquid-glass-refraction);
}
.glass-card.group:hover .glass-card__shine,
.glass-card:hover .glass-card__shine {
  background: rgba(255,255,255,.1);
}
.glass-card__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1.5px 2px rgba(255,255,255,.3), inset 0 -1px 2px rgba(0,0,0,.15);
}
.glass-card:hover .glass-card__shine {
  background: rgba(255,255,255,.1);
}

/* Core Services: content-sized card (no empty stretch) */
.glass-card--services {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  flex: none;
}
.glass-card--services .glass-card__content {
  height: auto !important;
  justify-content: flex-start !important;
}
@media (min-width: 640px) {
  .glass-card--services {
    width: 340px !important;
  }
}

/* Extra breathing room under hero card before About */
@media (min-width: 768px) {
  #hero .hero-bottom {
    padding-bottom: 3.5rem;
  }
}

/* Hero supporting copy — sized for readability over the video */
#hero .hero-lead {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  max-width: 22rem;
}
@media (min-width: 640px) {
  #hero .hero-lead {
    font-size: 1.25rem; /* 20px */
    max-width: 26rem;
  }
}
@media (min-width: 768px) {
  #hero .hero-lead {
    font-size: 1.375rem; /* 22px */
    max-width: 28rem;
  }
}

/* Hero title — strong presence on mobile and up */
#hero .hero-title {
  font-size: clamp(2rem, 7.5vw, 2.75rem); /* ~32–44px on small screens */
  line-height: 1.12;
}
@media (min-width: 768px) {
  #hero .hero-title {
    font-size: clamp(2.75rem, 4.5vw, 3.75rem); /* ~44–60px desktop */
  }
}

/* Form card: CSS glass over page background (no video canvas) */
.glass-card--static {
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  box-shadow:
    0 8px 32px rgba(12, 12, 12, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.glass-card--static .glass-card__shine {
  background: rgba(255, 255, 255, 0.08);
}
.glass-card--static:hover .glass-card__shine {
  background: rgba(255, 255, 255, 0.14);
}

/* Meet the Team showcase (matches original _B) */
.team-photo {
  opacity: 0;
  pointer-events: none;
}
.team-photo.is-active {
  opacity: 1;
}
.team-avatar {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.team-avatar__dot {
  opacity: 0;
}
.team-avatar.is-active .team-avatar__dot {
  opacity: 1;
}

/* Cases — sticky stack (port of rp from pagina/index.html) */
.page {
  /* Do NOT set overflow-x here — it breaks position:sticky for Case Studies */
  overflow: visible;
}
.cases-stack {
  display: block;
  position: relative;
}
.case-sticky {
  position: sticky;
  top: 0;
  height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* top / z-index refined per-card in JS (index * 28px) */
}
.case-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 40px;
  border: 2px solid rgba(12, 12, 12, 0.2);
  background: #c2ccd3;
  transform-origin: center top;
  will-change: transform;
  backface-visibility: hidden;
}
@media (min-width: 640px) {
  .case-card {
    padding: 2.5rem;
    border-radius: 50px;
    gap: 2.5rem;
  }
}
@media (min-width: 768px) {
  .case-card {
    padding: 3.5rem;
    border-radius: 60px;
    gap: 2.5rem;
  }
}
.case-card .num {
  flex: none;
  font-weight: 900;
  color: #0c0c0c;
  font-size: clamp(3rem, 10vw, 140px);
  line-height: 1;
}
.case-card .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(12, 12, 12, 0.5);
}
.case-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 500;
  color: #0c0c0c;
  max-width: 36rem;
}
.case-card p {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.625;
  color: rgba(12, 12, 12, 0.6);
  max-width: 36rem;
}
@media (min-width: 768px) {
  .case-card p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-card {
    will-change: auto;
    transform: none !important;
  }
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid rgba(12,12,12,.15);
  padding: 1.1rem 0;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #0c0c0c;
  font-size: 1rem;
  line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.625;
  color: rgba(12,12,12,.6);
}

/* Scroll reveal (port of Framer sS / whileInView) */
.reveal {
  opacity: 0;
  transform: translate3d(var(--reveal-x, 0px), var(--reveal-y, 30px), 0);
  transition:
    opacity var(--reveal-duration, 0.7s) cubic-bezier(0.25, 0.1, 0.25, 1) var(--reveal-delay, 0s),
    transform var(--reveal-duration, 0.7s) cubic-bezier(0.25, 0.1, 0.25, 1) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Scroll-linked character text (port of TB) */
.scroll-text-word {
  display: inline;
  white-space: nowrap;
}
.scroll-text-char {
  display: inline;
  opacity: 0.2;
}
[data-scroll-text] {
  display: block;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-wrap: pretty;
}

/* About section: avoid clipping large hero headings + reveals */
#about {
  overflow: visible;
}
#about .hero-heading {
  padding-top: 0.12em;
  padding-bottom: 0.08em;
  overflow: visible;
}
#about > .flex {
  min-width: 0;
  width: 100%;
}

@keyframes fade-slide-up-card {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-text-char {
    opacity: 1 !important;
  }
  .animate-\[fade-slide-up-card_900ms_cubic-bezier\(0\.16\,1\,0\.3\,1\)_both\] {
    animation: none !important;
  }
}