/* ===================================================================
   Sivo Design — Custom Styles
   Hero SVG draw + blur fade-in, bento grid, architectural blueprint,
   unique section logo draw, light mode gold accents
   =================================================================== */

/* ── HERO ── */
.sv-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #0a0a0a;
}

.sv-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sv-hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sv-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(225, 186, 46, 0.10) 0%,
    rgba(10, 10, 10, 0.15) 40%,
    rgba(10, 10, 10, 0.45) 100%
  );
}

.sv-hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 700px;
}

/* Start hidden to prevent flash before GSAP runs */
.sv-hero__logo-draw {
  opacity: 0;
}
.sv-hero__title,
.sv-hero__subtitle {
  opacity: 0;
  filter: blur(20px);
}

/* Hero drawable SVG logo */
.sv-hero__logo-draw {
  width: clamp(200px, 35vw, 440px);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  will-change: filter, opacity, transform;
}

.sv-hero__logo-draw .sv-logo-path {
  fill: none;
}

.sv-hero__title {
  font-family: 'Matter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  will-change: filter, opacity, transform;
}

.sv-hero__subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  will-change: filter, opacity, transform;
}

/* Scroll indicator */
.sv-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sv-hero__scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.sv-hero__scroll-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e1ba2e;
  animation: sv-bounce 1.8s ease-in-out infinite;
}

@keyframes sv-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.4; }
}


/* ── BENTO GRID ── */
.sv-bento-section {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.sv-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 4px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.sv-bento__item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.sv-bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sv-bento__item:hover img {
  transform: scale(1.03);
}

.sv-bento__item--wide {
  grid-column: span 2;
}

.sv-bento__item--tall { grid-row: span 2; }
.sv-bento__item--short { grid-row: span 1; }


/* ── ARCHITECTURAL BLUEPRINT ── */
.sv-blueprint {
  position: relative;
  background: #fafaf8;
  min-height: 450px;
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: visible;
}

.sv-blueprint__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
}

.sv-blueprint__text {
  flex: 0 0 35%;
  max-width: 400px;
  position: relative;
  z-index: 2;
}

.sv-blueprint__label {
  display: block;
  font-family: 'field-gothic', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pf-heading);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.sv-blueprint__desc {
  font-family: 'Matter', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.7;
  color: var(--pf-text);
  margin: 0;
}

.sv-blueprint__svg-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 65%;
  max-width: 900px;
  aspect-ratio: 16/9;
  pointer-events: none;
}

.sv-blueprint__svg,
.sv-blueprint__svg-glow {
  position: absolute;
  width: 100%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
}

.sv-blueprint__svg path,
.sv-blueprint__svg-glow path {
  fill: none;
  stroke-dasharray: 9999;
  stroke-dashoffset: 9999;
}

.sv-blueprint__svg path {
  stroke: rgba(225, 186, 46, 0.5);
  stroke-width: 0.505072;
  will-change: stroke-dashoffset;
}

.sv-blueprint__svg-glow {
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.sv-blueprint__svg-glow path {
  stroke: #e1ba2e;
  stroke-width: 2;
  will-change: stroke-dashoffset;
}


/* ── UNIQUE SECTION BACKGROUND ── */
.pf-unique {
  position: relative;
  overflow: hidden;
}

.sv-unique__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Drawable SVG logo in unique section */
.sv-unique__logo-draw {
  width: clamp(500px, 65vw, 900px);
  height: auto;
  opacity: 0.04;
  user-select: none;
}

.sv-unique__logo-draw .sv-logo-path {
  fill: none;
}

.pf-unique .pf-unique__layer {
  position: relative;
  z-index: 1;
}


/* ── LIGHT MODE GOLD ACCENT OVERRIDES ── */

/* Phase numbers — darken for contrast on white */
.pf-light .pf-phase__num {
  color: #b89520;
}

/* Scope pills — gold shimmer */
.pf-light .pf-scope__item {
  border-color: rgba(225, 186, 46, 0.3);
  background: rgba(225, 186, 46, 0.04);
}

.pf-light .pf-scope__item::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(225, 186, 46, 0.08) 50%,
    transparent 100%
  );
}

/* Stats numbers — gold accent */
.pf-light .pf-stats__num {
  color: #c9a226;
}

/* Process intro heading accent */
.pf-light .pf-process-intro__heading::after {
  background: #e1ba2e;
}

/* CTA heading override for light mode */
.pf-light .pf-cta__heading {
  color: var(--pf-heading);
}

/* Overview heading em/strong accent */
.pf-light .pf-overview .pf-meta-pill__label {
  color: var(--pf-text-muted);
}


/* ── DESIGN SYSTEM — brand colour swatches ── */
.sv-swatch--gold {
  background: #e1ba2e;
  color: #1a1a1a;
}

.sv-swatch--black {
  background: #0a0a0a;
  color: #fff;
}

.sv-swatch--grey {
  background: #737882;
  color: #fff;
}


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sv-hero {
    min-height: 500px;
  }

  .sv-unique__logo-draw {
    width: 80vw;
    opacity: 0.03;
  }

  /* Bento grid: 2 columns on tablet */
  .sv-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .sv-bento__item--wide { grid-column: span 2; }
  .sv-bento { grid-auto-rows: 180px; }

  .sv-blueprint {
    flex-direction: column;
  }
  .sv-blueprint__text { flex: none; max-width: 100%; }
  .sv-blueprint__svg-wrap { aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .sv-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .sv-bento__item--wide { grid-column: span 1; }
  .sv-bento__item--tall { grid-row: span 1; }

  .sv-blueprint__svg-wrap { display: none; }
}

/* ── CTA background image ── */
.sv-cta {
  position: relative;
  overflow: hidden;
}
.sv-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sv-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(0.5);
}
.sv-cta .pf-cta__content {
  position: relative;
  z-index: 2;
}
