/* ============================================================
   cinematic.css — Full-Screen Page System + Transitions
   ============================================================ */

/* ── Stage: the viewport container ──────────────────────── */
.cinematic-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

/* ── Individual Pages ────────────────────────────────────── */
.c-page {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* GPU compositing layers */
  will-change: transform, opacity, filter;
  backface-visibility: hidden;

  /* Default: hidden below */
  opacity: 0;
  transform: translateZ(-80px) scale(0.96);
  filter: blur(0px);
  pointer-events: none;
  transition: none; /* controlled via JS */
}

/* Active page */
.c-page.is-active {
  opacity: 1;
  transform: translateZ(0) scale(1);
  filter: blur(0px);
  pointer-events: all;
  z-index: 10;
}

/* Exiting upward (going forward) */
.c-page.is-exiting-up {
  opacity: 0;
  transform: scale(1.08) translateY(-3%) translateZ(60px);
  filter: blur(3px);
  z-index: 11;
}

/* Exiting downward (going backward) */
.c-page.is-exiting-down {
  opacity: 0;
  transform: scale(0.94) translateY(3%) translateZ(-40px);
  filter: blur(2px);
  z-index: 9;
}

/* Entering from below (going forward) */
.c-page.is-entering-up {
  opacity: 0;
  transform: translateZ(-80px) scale(0.94);
  filter: blur(0px);
  z-index: 10;
}

/* Entering from above (going backward) */
.c-page.is-entering-down {
  opacity: 0;
  transform: translateZ(80px) scale(1.06);
  filter: blur(3px);
  z-index: 10;
}

/* ── Page Backgrounds ────────────────────────────────────── */
.c-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Video background (Page 01) */
.c-page__bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Image fallback background */
.c-page__bg--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05); /* allows subtle parallax without revealing edges */
  transition: transform 12s ease-out;
}

.c-page.is-active .c-page__bg--img {
  transform: scale(1);
}

/* Dark overlay */
.c-page__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ── Content Layer ──────────────────────────────────────────── */
.c-page__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  padding: 0 3rem;
  padding-top: 5.5rem; /* always clears the fixed nav */
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-page__content::-webkit-scrollbar { display: none; }

/* ── Content Animations (fire after page lands) ──────────── */
.c-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.c-page.is-active .c-anim         { opacity: 1; transform: none; }
.c-page.is-active .c-anim-d1      { transition-delay: 0.15s; }
.c-page.is-active .c-anim-d2      { transition-delay: 0.3s;  }
.c-page.is-active .c-anim-d3      { transition-delay: 0.45s; }
.c-page.is-active .c-anim-d4      { transition-delay: 0.6s;  }
.c-page.is-active .c-anim-d5      { transition-delay: 0.75s; }

/* ── Page 01 — Hero ──────────────────────────────────────── */
.c-hero {
  background: var(--navy);
  color: var(--white);
}

.c-hero .c-page__overlay {
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.78) 0%,
    rgba(13, 27, 42, 0.55) 50%,
    rgba(13, 27, 42, 0.70) 100%
  );
}

.c-hero__content {
  max-width: 780px;
}

.c-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  color: var(--gold);
}

.c-hero__eyebrow-line {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.c-hero__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.c-hero__headline em {
  font-style: italic;
  color: var(--gold-light);
}

.c-hero__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.3vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 2.75rem;
}

.c-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.c-hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 2;
}

.c-hero__scroll-hint-line {
  width: 2rem;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.c-hero__scroll-hint-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scroll-tick 2s var(--ease-inout) infinite;
}

@keyframes scroll-tick {
  0%   { left: -100%; }
  50%  { left: 0%; }
  100% { left: 100%; }
}

/* ── Page 02 — Trust Stats ───────────────────────────────── */
.c-trust {
  background: var(--navy-mid);
}

.c-trust .c-page__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4rem;
}

.c-trust__heading {
  font-family: var(--font-serif);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.c-trust__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-white);
}

.stat:last-child::after { display: none; }

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat__value span { color: var(--gold); }

.stat__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cool-gray);
  font-weight: 500;
  margin-top: 0.25rem;
}

.stat__detail {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-top: 0.25rem;
}

/* ── Page 03 — About ─────────────────────────────────────── */
.c-about {
  background: var(--charcoal);
}

.c-about .c-page__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.c-about__text { max-width: 520px; }

.c-about__text p {
  font-weight: 300;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.85;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
}

.c-about__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1.75rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 1.6rem;
  bottom: 0;
  width: 1px;
  background: var(--border-gold);
}

.timeline-item:last-child::before { display: none; }

.timeline-item__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.timeline-item__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  min-width: 5rem;
}

.timeline-item__content {}

.timeline-item__event {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cool-gray);
  font-weight: 500;
}

.timeline-item__placeholder {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  margin-top: 0.25rem;
}

.c-about__visual {
  position: relative;
}

.c-about__img-wrap {
  position: relative;
  overflow: hidden;
}

.c-about__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,27,42,0.6) 100%);
  z-index: 1;
}

.c-about__img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.c-page.is-active .c-about__img-wrap img {
  transform: scale(1);
}

/* ── Page 04 — What We Do ────────────────────────────────── */
.c-services {
  background: var(--navy);
}

.c-services .c-page__content {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 6rem;
  align-items: center;
}

.c-services__intro { max-width: 320px; }

.c-services__intro p {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}

.c-services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* Eight services — compact cards so all fit on screen */
.c-services .service-card {
  padding: 1.5rem 1.75rem;
}

.c-services .service-card__num {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.c-services .service-card__title {
  margin-bottom: 0.5rem;
}

.c-services .service-card__text {
  font-size: 0.82rem;
  line-height: 1.6;
}

.service-card {
  padding: 2.25rem;
  border: 1px solid var(--border-white);
  position: relative;
  transition: border-color var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
  cursor: default;
}

.service-card:hover {
  background: rgba(201,168,76,0.05);
  border-color: var(--border-gold);
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(201,168,76,0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
  font-weight: 300;
}

/* ── Page 05 — Mission / Values / Vision ─────────────────── */
.c-mission {
  background: var(--navy-mid);
}

.c-mission .c-page__overlay {
  background: radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.06) 0%, transparent 65%);
}

.c-mission .c-page__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.c-mission__left { padding-top: 1rem; }
.c-mission__right { padding-top: 1rem; }

.c-mission__statement {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  margin: 1.25rem 0 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
}

.c-mission__support {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

.c-values {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.value-item {
  padding: 1rem 1.25rem;
  border-left: 1px solid var(--border-gold);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.value-item:hover {
  background: rgba(201,168,76,0.05);
  border-color: var(--gold);
}

.value-item__title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.value-item__text {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.52);
  font-weight: 300;
}

/* ── Page 06 — Management ────────────────────────────────── */
.c-management {
  background: var(--charcoal);
}

.c-management .c-page__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
}

.c-management__cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.mgmt-card {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--border-white);
  min-width: 320px;
  flex: 1;
  max-width: 420px;
  transition: border-color var(--dur-med), background var(--dur-med);
}

.mgmt-card:hover {
  border-color: var(--border-gold);
  background: rgba(201,168,76,0.04);
}

.mgmt-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.4rem;
}

.mgmt-card__info { flex: 1; }

.mgmt-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
  font-style: italic;
}

.mgmt-card__position {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mgmt-card__bio {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  font-style: italic;
}

/* ── Page 07 — CTA / Contact ─────────────────────────────── */
.c-cta {
  background: var(--navy);
}

.c-cta .c-page__overlay {
  background: radial-gradient(ellipse at 30% 60%, rgba(201,168,76,0.07) 0%, transparent 60%);
}

.c-cta .c-page__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.c-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.c-cta__support {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 400px;
}

.c-cta__address {
  font-size: 0.82rem;
  line-height: 2;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  border-top: 1px solid var(--border-white);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.c-cta__address strong {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Page Indicator (vertical dots) ─────────────────────── */
.page-indicator {
  position: fixed;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: flex-end;
}

.page-indicator__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  padding: 4px 0;
}

.page-indicator__label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0);
  font-weight: 500;
  text-transform: uppercase;
  transition: color var(--dur-fast), opacity var(--dur-fast);
  white-space: nowrap;
}

.page-indicator__item:hover .page-indicator__label {
  color: rgba(255,255,255,0.5);
}

.page-indicator__item.is-active .page-indicator__label {
  color: rgba(255,255,255,0);
}

.page-indicator__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background var(--dur-med) var(--ease-out),
              width var(--dur-med) var(--ease-out),
              height var(--dur-med) var(--ease-out),
              border-radius var(--dur-med) var(--ease-out);
  flex-shrink: 0;
}

.page-indicator__item.is-active .page-indicator__dot {
  width: 2px;
  height: 20px;
  border-radius: 1px;
  background: var(--gold);
}

.page-indicator__item:hover:not(.is-active) .page-indicator__dot {
  background: rgba(255,255,255,0.6);
}

/* ── Page Counter (top-right on hero) ────────────────────── */
.page-counter {
  position: fixed;
  top: 50%;
  right: 5.5rem;
  transform: translateY(-50%);
  z-index: 800;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  display: none;
}

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .c-page {
    opacity: 0;
    transform: none !important;
    filter: none !important;
    transition: opacity 0.2s ease !important;
  }
  .c-page.is-active {
    opacity: 1;
    pointer-events: all;
  }
  .c-page.is-exiting-up,
  .c-page.is-exiting-down {
    opacity: 0;
  }
  .c-anim { opacity: 1 !important; transform: none !important; }
  .c-about__img-wrap img { transform: scale(1) !important; }
  .c-page__bg--img { transform: scale(1) !important; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .c-page__content { padding: 0 2rem; }
  .c-trust__stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .c-about .c-page__content,
  .c-services .c-page__content,
  .c-mission .c-page__content,
  .c-cta .c-page__content { grid-template-columns: 1fr; gap: 2.5rem; }
  .c-about__visual { display: none; }
  .c-services__intro { max-width: 100%; }
}

@media (max-width: 768px) {
  .c-page__content { padding: 0 1.5rem; }
  .c-hero__content { max-width: 100%; }
  .c-hero__headline { font-size: clamp(2rem, 8vw, 3rem); }
  .c-hero__actions { flex-direction: column; }
  .c-trust__stats { grid-template-columns: repeat(2, 1fr); }
  .stat::after { display: none; }
  .c-services__grid { grid-template-columns: 1fr; }
  .c-mission__left, .c-mission__right { padding-top: 0; }
  .c-management__cards { flex-direction: column; }
  .mgmt-card { min-width: 0; max-width: 100%; }
  .page-indicator { right: 1rem; }
  .c-hero__scroll-hint { left: 1.5rem; bottom: 2rem; }
}

@media (max-width: 480px) {
  .c-page__content { padding: 0 1.25rem; }
  .c-trust__stats { grid-template-columns: 1fr 1fr; }
  .stat__value { font-size: 2.5rem; }
}
