/* ============================================================
   HOME PAGE — home.css
   ============================================================ */

/* ── Hero ── */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #fff;
  overflow: hidden;
}

/* Particle canvas — full-screen background */
#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Two-column inner wrapper */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 32px;
  align-items: center;
}

/* ── Eyebrow tag ── */
.hero-eyebrow-tag {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #9aa3b5;
  margin-bottom: 18px;
}

/* Left: text */
.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 36px;
}

/* "Welcome to" */
.hero-title .line-1 {
  display: block;
  font-size: clamp(30px, 4vw, 63px);
  font-weight: 800;
  font-style: normal;
  color: #2D3436;
  letter-spacing: -0.025em;
  margin-bottom: 0;
  white-space: nowrap;
}

/* "The Phoenix Next" — must stay on one line */
.hero-title .line-2 {
  margin-top: 10px;
  display: block;
  font-size: clamp(30px, 4.3vw, 68px);
  font-weight: 800;
  font-style: normal;
  color: var(--red);
  letter-spacing: -0.025em;
  line-height: 1.06;
  white-space: nowrap;
}

/* ── Shutter character animation ── */
@keyframes hCharIn {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: blur(0); }
}
@keyframes hSliceLR {
  0%   { transform: translateX(-102%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(102%);  opacity: 0; }
}
@keyframes hSliceRL {
  0%   { transform: translateX(102%);  opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(-102%); opacity: 0; }
}

/* Wrapper clips the sweeping slices */
.h-char {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

/* Space between words */
.h-space {
  display: inline-block;
  width: 0.28em;
}

/* Main character fades in after slices finish sweeping */
.h-char-main {
  display: inline;
  opacity: 0;
  animation: hCharIn 0.65s ease forwards;
}

/* Shared slice styles */
.h-slice {
  position: absolute;
  inset: 0;
  font: inherit;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  animation-duration: 0.52s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

/* Top strip — left→right, brand tint */
.h-slice-t {
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation-name: hSliceLR;
  color: rgba(0, 30, 95, 0.55);
}

/* Middle strip — right→left, same color */
.h-slice-m {
  clip-path: polygon(0 35%, 100% 35%, 100% 65%, 0 65%);
  animation-name: hSliceRL;
  color: rgba(0, 30, 95, 0.35);
}

/* Bottom strip — left→right, brand tint */
.h-slice-b {
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation-name: hSliceLR;
  color: rgba(0, 30, 95, 0.55);
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Outline button for white background */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
}
.btn-hero-outline:hover {
  background: rgba(0, 30, 95, 0.07);
}

/* ── Interactive Selector ── */
@keyframes hsSlideIn {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-selector {
  position: relative;
  display: flex;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 12px;
}

.hs-option {
  position: relative;
  flex: 1 1 0%;
  min-width: 54px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid #2a2a2a;
  overflow: hidden;
  background-color: #18181b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
  opacity: 0;
  transition: flex 0.7s ease-in-out,
              border-color 0.4s ease,
              box-shadow 0.7s ease-in-out;
}

.hs-option.active {
  flex: 7 1 0%;
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.50);
}

/* Gradient overlay — visible only on active panel */
.hs-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hs-option.active .hs-shadow {
  opacity: 1;
}

/* Label row at the bottom of each panel */
.hs-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}

/* Icon circle */
.hs-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30,30,30,0.88);
  backdrop-filter: blur(8px);
  border: 2px solid #444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.30);
}

.hs-info { overflow: hidden; white-space: nowrap; }

.hs-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sans);
  line-height: 1.25;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hs-desc {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 400;
  margin-top: 2px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease 0.06s, transform 0.6s ease 0.06s;
}

.hs-option.active .hs-title,
.hs-option.active .hs-desc {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero responsive ── */

/* Tablet landscape */
@media (max-width: 1100px) {
  .hero-inner { padding: 90px 24px 60px; gap: 20px; }
  .hero-selector { height: 400px; }
  .hero-title .line-1,
  .hero-title .line-2 { white-space: normal; }
}

/* Tablet portrait — stack vertically */
@media (max-width: 860px) {
  .home-hero { min-height: auto; padding-bottom: 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 110px 24px 40px;
    gap: 28px;
    text-align: center;
  }
  .hero-eyebrow-tag { text-align: center; }
  .hero-title .line-1,
  .hero-title .line-2 { white-space: normal; }
  .hero-btns { justify-content: center; }
  .hero-selector { height: 340px; }
  .hs-option { min-width: 46px; }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-inner { padding: 100px 16px 36px; }
  .hero-selector { height: 260px; border-radius: 8px; }
  .hs-option { min-width: 38px; }
  .hs-label { padding: 0 10px; gap: 6px; bottom: 12px; }
  .hs-icon { width: 34px; height: 34px; }
  .hs-icon svg { width: 16px; height: 16px; }
  .hs-title { font-size: 13px; }
  .hs-desc { font-size: 11px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn,
  .hero-btns .btn-hero-outline { width: 200px; justify-content: center; }
}

/* Extra small */
@media (max-width: 380px) {
  .hero-selector { height: 210px; }
  .hs-option { min-width: 30px; }
  .hs-icon { width: 28px; height: 28px; }
  .hs-icon svg { width: 14px; height: 14px; }
}

/* ── Pillars ── */
.home-pillars {
  background: var(--red);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.pillar-block {
  padding: 52px 44px; border-right: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.pillar-block:last-child { border: none; }
.pillar-block:hover { background: rgba(255,255,255,.06); }
.pillar-icon { font-size: 38px; display: block; margin-bottom: 18px; }
.pillar-block h3 { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 12px; }
.pillar-block p { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.7; font-weight: 300; }

/* ── Story video ── */
.story-video-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.story-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

/* On tablet and mobile use a landscape ratio so video isn't too tall */
@media (max-width: 1100px) {
  .story-video { aspect-ratio: 3/2; }
}
@media (max-width: 768px) {
  .story-video { aspect-ratio: 16/9; }
  .story-video-wrap { border-radius: 12px; }
}

/* ── Prog header flex ── */
.prog-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 44px; flex-wrap: wrap; gap: 20px;
}

/* ── Full banner ── */
.full-banner {
  position: relative; height: 480px; overflow: hidden;
  display: flex; align-items: center;
}
.full-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,20,20,.86) 0%, rgba(20,20,20,.4) 65%, transparent 100%);
}
.banner-content { position: relative; z-index: 2; }

/* ── Why ── */
.feature-list { display: flex; flex-direction: column; }
.why-img-block { position: relative; }
.why-main-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.why-main-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.why-stat-card {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--red); color: #fff;
  padding: 26px 30px; border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,30,95,.25);
}
.wsc-num { font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: 1; }
.wsc-lbl { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; line-height: 1.4; }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--white); border-radius: 14px; padding: 36px;
  box-shadow: var(--shadow-sm); border-top: 3px solid var(--red);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testi-stars { color: var(--red); font-size: 16px; letter-spacing: 3px; margin-bottom: 18px; }
.testi-quote {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--mid); line-height: 1.78; margin-bottom: 26px;
}
.testi-author { display: flex; align-items: center; gap: 13px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.testi-author span  { font-size: 12px; color: var(--soft); }

/* ── Photo grid ── */
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 270px 270px;
  gap: 12px;
}
.photo-cell { overflow: hidden; border-radius: 10px; position: relative; cursor: zoom-in; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.photo-cell:hover img { transform: scale(1.06); }
.photo-cell.large { grid-row: span 2; }
.photo-hover {
  position: absolute; inset: 0; background: rgba(0,30,95,0);
  transition: background .3s;
}
.photo-cell:hover .photo-hover { background: rgba(0,30,95,.18); }

/* ── Final CTA ── */
.final-cta {
  position: relative; padding: 120px 0; overflow: hidden;
}
.final-cta img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.final-cta-overlay {
  position: absolute; inset: 0; background: rgba(0,30,95,.88);
}
.final-cta-content {
  position: relative; z-index: 2; max-width: 680px; margin: 0 auto;
}
.final-cta-content p {
  font-size: 17px; color: rgba(255,255,255,.78);
  line-height: 1.75; font-weight: 300;
}

/* ── Responsive ── */

/* (canvas hero has no extra responsive overrides here — handled above) */

/* Tablet landscape (1100px) */
@media (max-width: 1100px) {
  .why-main-img img { aspect-ratio: 3/2; }
  .why-stat-card    { left: -10px; bottom: -10px; }
  .photo-grid { grid-template-rows: 220px 220px; }
}

/* Tablet portrait (900px) */
@media (max-width: 900px) {
  .home-pillars { grid-template-columns: 1fr; }
  .pillar-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .photo-cell.large { grid-row: span 1; }
  .why-stat-card {
    position: relative; bottom: auto; left: auto;
    margin-top: 20px; display: inline-block; border-radius: 10px;
  }
  .full-banner { height: auto; padding: 72px 0; }
  .final-cta   { padding: 80px 0; }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  /* Video below text on mobile */
  .story-video-wrap { order: 2; }
  /* Why image */
  .why-main-img img { aspect-ratio: 16/9; max-height: 260px; }
  .why-stat-card {
    display: block; width: 100%; padding: 18px 20px; border-radius: 10px;
  }
  .wsc-num { font-size: 24px; }
  .full-banner { padding: 56px 0; }
  .final-cta   { padding: 64px 0; }
  .final-cta-content .btn { width: 100%; justify-content: center; }
  .final-cta-content .d-flex { flex-direction: column; align-items: stretch !important; }
}

/* Small mobile (540px) */
@media (max-width: 540px) {
  .photo-grid { grid-template-columns: 1fr; }
  .pillar-block { padding: 32px 24px; }
  .full-banner { padding: 48px 0; }
  .banner-content h2 { font-size: clamp(22px, 6vw, 32px); }
  .photo-cell { height: 200px; }
  .final-cta { padding: 52px 0; }
}


