/* ============================================================
   INDEX.CSS — FLWLESS 2.0 — Section styles
   ============================================================ */


/* ============================================================
   01 HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,13,12,0.2) 0%,
    rgba(14,13,12,0.0) 40%,
    rgba(14,13,12,0.72) 80%,
    rgba(14,13,12,0.96) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(60px, 8vw, 120px);
  padding-top: 120px;
}

.hero-tag {
  margin-bottom: 20px;
  color: var(--c-accent);
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(3.8rem, 10vw, 10.5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 14ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Scroll hint — bottom right */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: var(--pad-x);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}


/* ============================================================
   02 ABOUT
   ============================================================ */

.about {
  padding: clamp(80px, 10vw, 160px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-headline {
  color: var(--c-ink);
}

.about-body {
  max-width: 52ch;
}

.about-stat-row {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--c-line);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.about-stat-label {
  color: var(--c-ink-3);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-body  { max-width: 100%; }
}


/* ============================================================
   RULE
   ============================================================ */

.rule {
  height: 1px;
  background: var(--c-line);
  margin: 0 auto;
}


/* ============================================================
   03 SECTORS
   ============================================================ */

.sectors {
  padding: clamp(80px, 10vw, 160px) 0;
}

.sectors-headline {
  color: var(--c-ink);
  margin-bottom: clamp(48px, 6vw, 88px);
}

.sectors-list {
  display: flex;
  flex-direction: column;
}

.sector-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 3vw, 40px) var(--pad-x);
  border-top: 1px solid var(--c-line);
  transition: background 220ms ease;
}

.sector-item:last-child {
  border-bottom: 1px solid var(--c-line);
}

.sector-item:hover {
  background: var(--c-bg-2);
}

.sector-number {
  color: var(--c-ink-3);
  flex-shrink: 0;
}

.sector-name {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sector-desc {
  max-width: 52ch;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.sector-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  padding: 6px 12px;
}

@media (max-width: 860px) {
  .sector-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sector-tags {
    justify-content: flex-start;
  }
}


/* ============================================================
   04 ENVIRONMENT — Gaussian Splat
   ============================================================ */

.environment {
  padding: clamp(80px, 10vw, 160px) 0 0;
}

.environment-headline {
  color: var(--c-ink);
  margin-bottom: 20px;
}

.environment-sub {
  max-width: 52ch;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* Splat stage */
.splat-stage {
  position: relative;
}

.splat-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  background: var(--c-bg-2);
  overflow: hidden;
  position: relative;
}

/* When the actual splat is embedded, it fills this frame */
.splat-frame iframe,
.splat-frame canvas,
.splat-frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Placeholder state */
.splat-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-2);
}

/* Subtle grid texture on placeholder */
.splat-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
}

.splat-placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: var(--pad-x);
}

.splat-icon {
  color: var(--c-accent);
  opacity: 0.8;
}

.splat-placeholder-label {
  color: var(--c-ink);
}

.splat-placeholder-body {
  max-width: 38ch;
}

.splat-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--c-accent-dim);
  color: var(--c-accent);
  margin-top: 8px;
}

/* Caption bar below splat */
.splat-caption {
  padding: 16px var(--pad-x);
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-2);
  color: var(--c-ink-3);
}

/* ============================================================
   SPLAT POSTER — click-to-activate overlay
   ============================================================ */

.splat-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splat-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
  filter: brightness(0.72);
}

.splat-poster:hover .splat-poster-img {
  transform: scale(1.03);
  filter: brightness(0.55);
}

.splat-poster-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  pointer-events: none;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.splat-poster:hover .splat-poster-cta {
  transform: scale(1.04);
}

.splat-poster-icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(240,237,232,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  background: rgba(14,13,12,0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 300ms ease, border-color 300ms ease;
}

.splat-poster:hover .splat-poster-icon {
  background: rgba(200,180,154,0.15);
  border-color: var(--c-accent);
}

.splat-poster-label {
  color: var(--c-ink);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.splat-poster-sub {
  color: var(--c-ink-2);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* Hide poster once activated */
.splat-frame.is-live .splat-poster {
  display: none;
}


/* ============================================================
   05 TECHNOLOGY
   ============================================================ */

.tech {
  padding: clamp(80px, 10vw, 160px) 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.tech-headline {
  color: var(--c-ink);
  position: sticky;
  top: clamp(100px, 12vw, 140px); /* stays in view while right column scrolls */
}

.tech-right {
  display: flex;
  flex-direction: column;
}

.tech-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--c-line);
}

.tech-item:last-child {
  border-bottom: 1px solid var(--c-line);
}

.tech-item-marker {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  margin-top: 8px;
  flex-shrink: 0;
}

.tech-item-title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: 14px;
}

@media (max-width: 860px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tech-headline {
    position: static;
  }
}


/* ============================================================
   06 WORK — full-bleed cinematic showcase
   ============================================================ */

.work {
  padding: 0;
  /* No section padding — showcase is full-bleed */
}

/* ---- Showcase container ---- */
.work-showcase {
  position: relative;
  width: 100%;
  height: 72svh;
  min-height: 480px;
  max-height: 780px;
  overflow: hidden;
  background: var(--c-bg);
}

/* ---- Slides ---- */
.work-slides {
  position: absolute;
  inset: 0;
}

.work-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.work-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Image fills slide, subtle zoom on active */
.work-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 6000ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.work-slide.is-active .work-slide-media img {
  transform: scale(1.0);
}

/* Dark gradient over image */
.work-slide-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(14,13,12,0.82) 0%, rgba(14,13,12,0.0) 55%),
    linear-gradient(to bottom, rgba(14,13,12,0.2)  0%, rgba(14,13,12,0.5) 100%);
}

/* ---- Overlay UI ---- */
.work-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(80px, 10vw, 120px) var(--pad-x) clamp(40px, 6vw, 72px);
  pointer-events: none;
}

.work-ui > * { pointer-events: auto; }

/* Top label */
.work-ui-top .eyebrow-row {
  margin-bottom: 0;
}

/* Bottom row */
.work-ui-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* ---- Title track ---- */
.work-ui-titles {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.work-title-track {
  position: relative;
}

.work-title-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);

  /* Hidden state */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.work-title-item.is-active {
  position: relative; /* takes up space */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Previous: exits upward */
.work-title-item.is-exit {
  position: absolute;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.work-title-index {
  color: var(--c-accent);
}

.work-title-name {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--c-ink);
}

.work-title-sector {
  color: var(--c-ink-2);
  margin-top: 4px;
}

.work-title-cta {
  color: var(--c-accent);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 220ms ease;
}

.work-title-item:hover .work-title-cta {
  gap: 14px;
}

/* ---- Nav: dots + arrows ---- */
.work-ui-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

.work-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(240,237,232,0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 300ms ease, transform 300ms ease;
}

.work-dot.is-active {
  background: var(--c-ink);
  transform: scale(1.5);
}

.work-arrows {
  display: flex;
  gap: 8px;
}

.work-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240,237,232,0.18);
  background: rgba(14,13,12,0.3);
  color: var(--c-ink);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.work-arrow:hover {
  background: rgba(14,13,12,0.6);
  border-color: rgba(240,237,232,0.4);
}

.work-arrow:active {
  transform: scale(0.92);
}

/* ---- Progress bar ---- */
.work-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(240,237,232,0.08);
  z-index: 3;
}

.work-progress-bar {
  height: 100%;
  background: var(--c-accent);
  width: 0%;
  transform-origin: left;
  /* Width animated by JS */
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .work-showcase {
    height: 75svh;
    min-height: 460px;
    max-height: none;
  }
  .work-slide-media::after {
    background:
      linear-gradient(to bottom, rgba(14,13,12,0.1) 0%, rgba(14,13,12,0.75) 60%, rgba(14,13,12,0.92) 100%);
  }
  .work-ui {
    padding-bottom: 40px;
  }
  .work-ui-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .work-ui-nav {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  .work-dots {
    flex-direction: row;
  }
  .work-title-name {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }
}


/* ============================================================
   LEGACY CLASS COMPAT (keep old PHP partials working if any)
   ============================================================ */

.home-container1  { display: block; }
.home-container2,
.home-container4  { display: none; }
.home-container3,
.home-container5  { display: block; }
.footer-container1 { display: block; }
.footer-container2, .footer-container4 { display: none; }
.footer-container3, .footer-container5 { display: block; }
