/* PRISMA — styles.css */

html {
  scroll-behavior: smooth;
}
html, body {
  width: 100%; background: #c2ccd3; color: #000;
  font-family: 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  margin: 0; padding: 0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Background video (parallax: stays fixed) --- */
.bg-video {
  position: fixed; top: 0; left: 0; display: block;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 1; pointer-events: none;
}
.glass-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

/* --- Sticky nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem;
  transition: background 300ms, backdrop-filter 300ms;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav__item {
  display: inline-flex; align-items: center; gap: 0.625rem;
  color: #000; background: none; border: 0; font: inherit; text-decoration: none;
  cursor: pointer; pointer-events: auto; transition: opacity 300ms;
}
.nav__item:hover { opacity: 0.6; }
.nav__label { font-size: 0.875rem; line-height: 1.25rem; letter-spacing: 0.025em; }
.nav__label--menu { display: none; }
.nav__dot { width: 8px; height: 8px; border-radius: 9999px; background: #000; }
.icon { flex: none; }
@media (min-width: 640px) { .nav { padding: 1.25rem 1.5rem; } .nav__label--menu { display: inline; } }
@media (min-width: 768px) { .nav { padding: 1.5rem 3rem; } }

/* --- Hero section --- */
.hero {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  width: 100%; min-height: 100vh; min-height: 100dvh;
  color: #000; pointer-events: none;
}
.rule { position: absolute; top: 0; bottom: 0; display: none; flex-direction: column; align-items: center; }
.rule--left  { left: 1.25rem; }
.rule--right { right: 1.25rem; }
.rule__seg { width: 1px; background: rgba(0, 0, 0, 0.2); }
.rule__seg--end { height: 15%; }
.rule__seg--mid { flex: 1 1 0%; }
.rule__plus { font-size: 0.75rem; line-height: 1; color: rgba(0, 0, 0, 0.4); padding: 0.25rem 0; }
@media (min-width: 768px) { .rule { display: flex; } }

.hero-bottom {
  position: relative; z-index: 2;
  margin-top: auto;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 5rem 1.25rem 1.5rem;
}
@media (min-width: 640px) { .hero-bottom { padding: 5rem 1.5rem 2rem; } }
@media (min-width: 768px) {
  .hero-bottom {
    flex: 1; margin-top: 0;
    flex-direction: row; align-items: stretch; justify-content: space-between;
    gap: 3rem; padding: 6rem 3rem 3rem;
  }
  .lede { align-self: flex-start; }
  .card { align-self: flex-end; }
}

/* --- Lede --- */
.lede { max-width: 28rem; }
.lede__logo { width: 120px; height: auto; margin-bottom: 1.25rem; display: block; }
.lede__title { font-size: 1.25rem; font-weight: 300; line-height: 1.25; letter-spacing: -0.025em; color: #000; }
.lede__body  { margin-top: 0.75rem; max-width: 340px; font-size: 0.75rem; line-height: 1.625; color: rgba(0, 0, 0, 0.6); }
@media (min-width: 640px)  { .lede__title { font-size: 1.5rem; }   .lede__body { font-size: 0.875rem; } .lede__logo { width: 140px; } }
@media (min-width: 768px)  { .lede__title { font-size: 1.875rem; } .lede__body { margin-top: 1rem; } .lede__logo { width: 160px; } }
@media (min-width: 1024px) { .lede__title { font-size: 2.25rem; } }

/* --- Chamfered button --- */
.chamfer {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: 240px; height: 44px; margin-top: 1.5rem; padding: 0 1.25rem;
  color: #000; text-decoration: none; pointer-events: auto; transition: opacity 300ms;
}
.chamfer:hover { opacity: 0.7; }
.chamfer__glass {
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.2);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.chamfer__outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chamfer__label { position: relative; font-size: 0.75rem; letter-spacing: 0.025em; }
.chamfer .icon { position: relative; }
@media (min-width: 640px) {
  .chamfer { width: 280px; height: 48px; padding: 0 1.5rem; }
  .chamfer__label { font-size: 0.875rem; }
  .chamfer__glass { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
}
.chamfer--contact .chamfer__glass { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
@media (min-width: 640px) { .chamfer--contact .chamfer__glass { background: rgba(255,255,255,0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255,255,255,0.2); } }
@media (min-width: 768px) { .chamfer { margin-top: 2rem; } }

/* --- Glass card --- */
.card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 360px; max-width: 100%; height: 420px;
  padding: 1.75rem;
  border-radius: 48px; overflow: hidden;
  background: transparent;
  border: 1px solid rgba(47, 47, 47, 0.15);
  pointer-events: auto;
  animation: fade-slide-up-card 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes fade-slide-up-card {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
#dup-video-container { position: absolute; left: 0; top: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#dup-image { position: absolute; inset: 0; width: 100%; height: 100%; filter: url(#liquid-glass-refraction); }
.card__frost {
  position: absolute; inset: 0; z-index: 1;
  border-radius: 48px; pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  transition: background 400ms;
}
.card.group:hover .card__frost { background: rgba(255, 255, 255, 0.1); }
.card__head, .card__body, .card__wave { position: relative; z-index: 2; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
              padding-bottom: 0.75rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.card__title { font-size: 1rem; font-weight: 500; letter-spacing: -0.025em; }
.card__index { font-size: 0.75rem; color: rgba(0, 0, 0, 0.4); }
.card__body { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.6rem; }
.finding__title { font-size: 0.8rem; font-weight: 600; letter-spacing: -0.025em; }
.finding__text { margin-top: 0.15rem; font-size: 0.68rem; line-height: 1.45; color: rgba(0, 0, 0, 0.5); }
.card__wave { display: block; width: 100%; height: auto; margin-top: 0.75rem; }
@media (min-width: 768px) {
  .card { height: 460px; padding: 2rem; }
  .card__head { padding-bottom: 1rem; } .card__title { font-size: 1.25rem; }
  .card__body { gap: 0.9rem; margin-top: 0.9rem; }
  .finding__title { font-size: 0.875rem; } .finding__text { font-size: 0.75rem; margin-top: 0.2rem; }
  .card__wave { margin-top: 1rem; }
}

/* ============================================
   SECTIONS — scrollable content below hero
   ============================================ */
.section {
  position: relative; z-index: 20;
  padding: 6rem 1.5rem;
}
@media (min-width: 768px) { .section { padding: 8rem 3rem; } }

.section--light { background: rgba(245, 244, 240, 0.95); }
.section--dark  { background: rgba(20, 20, 25, 0.92); color: #fff; }
.section--transparent { background: transparent; }
.section--accent { background: rgba(20, 20, 25, 0.95); color: #fff; }

.section__inner {
  max-width: 1100px; margin: 0 auto;
}
.section__inner--center { text-align: center; }

.section__tag {
  display: block; font-size: 0.75rem; letter-spacing: 0.05em;
  color: rgba(0,0,0,0.35); margin-bottom: 0.75rem;
}
.section--dark .section__tag, .section--accent .section__tag { color: rgba(255,255,255,0.35); }

.section__title {
  font-size: 1.5rem; font-weight: 300; letter-spacing: -0.025em; line-height: 1.2;
}
.section__title--large { font-size: 1.875rem; }
@media (min-width: 640px) { .section__title { font-size: 2rem; } .section__title--large { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section__title { font-size: 2.5rem; } .section__title--large { font-size: 3rem; } }

.section__subtitle {
  margin-top: 1rem; max-width: 540px; font-size: 0.875rem; line-height: 1.7;
  color: rgba(0,0,0,0.55);
}
.section__inner--center .section__subtitle { margin-left: auto; margin-right: auto; }
.section--dark .section__subtitle, .section--accent .section__subtitle { color: rgba(255,255,255,0.5); }

/* --- Grid --- */
.grid { display: grid; gap: 2rem; margin-top: 3rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Feature cards --- */
.feature {
  padding: 2rem; border-radius: 16px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 300ms, box-shadow 300ms;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.feature__icon { margin-bottom: 1.25rem; color: rgba(0,0,0,0.7); }
.feature__title { font-size: 1rem; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.feature__text { font-size: 0.8rem; line-height: 1.65; color: rgba(0,0,0,0.5); }

/* --- Steps --- */
.steps { display: flex; flex-direction: column; gap: 3rem; margin-top: 3rem; }
@media (min-width: 768px) { .steps { flex-direction: row; gap: 4rem; } }

.step { flex: 1; }
.step__num {
  font-size: 3rem; font-weight: 200; letter-spacing: -0.05em;
  color: rgba(0,0,0,0.12); line-height: 1; margin-bottom: 1rem;
}
.step__title { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.step__text { font-size: 0.8rem; line-height: 1.7; color: rgba(0,0,0,0.55); }

/* --- Channels --- */
.channel { text-align: center; padding: 2.5rem 1.5rem; }
.channel svg { margin: 0 auto 1.25rem; color: rgba(255,255,255,0.7); }
.channel__title { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.75rem; }
.channel__text { font-size: 0.8rem; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 300px; margin: 0 auto; }

/* --- Security --- */
.secure { padding: 2rem; border-radius: 16px; background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.06); }
.secure__title { font-size: 1rem; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.secure__text { font-size: 0.8rem; line-height: 1.65; color: rgba(0,0,0,0.5); }

/* --- Contact --- */
.contact-actions { margin-top: 2.5rem; display: flex; justify-content: center; }
.chamfer--contact { color: #fff; }

/* --- Footer --- */
.footer {
  position: relative; z-index: 20;
  background: #111; color: rgba(255,255,255,0.4);
  padding: 2rem 1.5rem;
}
.footer__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer__logo { width: 80px; height: auto; opacity: 0.4; filter: invert(1); }
.footer__copy { font-size: 0.75rem; }

/* ============================================
   REVEAL ANIMATIONS (scroll-triggered)
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0; transform: translateY(30px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 100ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 200ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 500ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 600ms; }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* --- Menu --- */
.menu { position: fixed; inset: 0; z-index: 50; visibility: hidden; pointer-events: none;
        transition: visibility 0s linear 500ms; }
.menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4);
                  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
                  opacity: 0; transition: opacity 500ms; }
.menu.is-open .menu__backdrop { opacity: 1; }
.menu__panel { position: absolute; top: 0; left: 0; display: flex; flex-direction: column;
               width: 100%; height: 100%; padding: 1.5rem 2rem; background: #f5f4f0;
               transform: translateX(-100%);
               transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.menu.is-open .menu__panel { transform: translateX(0); }
@media (min-width: 640px) { .menu__panel { width: 380px; padding: 1.5rem 2.5rem; } }
.menu__close { display: inline-flex; align-items: center; gap: 0.625rem; align-self: flex-start;
               margin-bottom: 3rem; background: none; border: 0; font: inherit; font-size: 0.875rem;
               color: #000; cursor: pointer; transition: opacity 300ms; }
.menu__close:hover { opacity: 0.6; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0;
              border-bottom: 1px solid rgba(0, 0, 0, 0.1); color: #000; text-decoration: none;
              opacity: 0; transform: translateY(20px); transition: opacity 500ms, transform 500ms; }
.menu__linkText { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.025em; transition: transform 300ms; }
.menu__link:hover .menu__linkText { transform: translateX(8px); }
.menu__arrow { opacity: 0; transform: translateX(8px); transition: opacity 300ms, transform 300ms; }
.menu__link:hover .menu__arrow { opacity: 1; transform: translateX(0); }
@media (min-width: 640px) { .menu__linkText { font-size: 1.875rem; } }
.menu.is-open .menu__link { opacity: 1; transform: translateY(0); }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 150ms; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 225ms; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 300ms; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 375ms; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 450ms; }
.menu__foot { margin-top: auto; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(0, 0, 0, 0.1);
              opacity: 0; transform: translateY(20px); transition: opacity 500ms, transform 500ms; }
.menu.is-open .menu__foot { opacity: 1; transform: translateY(0); transition-delay: 600ms; }
.menu__footLabel { display: block; margin-bottom: 0.75rem; font-size: 0.75rem; text-transform: uppercase;
                   letter-spacing: 0.025em; color: rgba(0, 0, 0, 0.4); }
.menu__mail { font-size: 0.875rem; color: rgba(0, 0, 0, 0.7); text-decoration: none; transition: color 300ms; }
.menu__mail:hover { color: #000; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
