/* Creative homepage — front-page.php */

.site-main--home {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home-landing {
  color-scheme: dark;
  background: #080808;
  color: #e8e4df;
}

body.home-landing .site-header__inner {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.4) 100%);
}

body.home-landing .site-header__logo,
body.home-landing .site-header__logo:hover,
body.home-landing .site-header__title {
  color: #f4f0eb;
}

body.home-landing .site-nav__list a {
  color: rgba(244, 240, 235, 0.88);
}

body.home-landing .site-nav {
  background: #080808;
}

body.home-landing .site-nav__list a:hover,
body.home-landing .site-nav__list .current-menu-item > a {
  color: var(--accent);
}

body.home-landing .site-header__menu-toggle {
  color: #f4f0eb;
}

.home {
  --home-font-display: 'Black Ops One', system-ui;
  --home-accent: var(--accent);
  --home-orange: #ed851d;
  --home-blue: #3662e3;
  --home-cream: #f4f0eb;
  --home-muted: #9a9a9a;
  --home-text-soft: #ececec;
  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: clip;
  font-family: var(--font-body);
}

.home__grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.home__cursor {
  position: fixed;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 133, 29, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

body.home-landing.has-home-cursor .home__cursor {
  opacity: 1;
}

.home__progress {
  position: fixed;
  left: clamp(0.65rem, 2vw, 1.1rem);
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: min(40vh, 220px);
  background: rgba(255, 255, 255, 0.08);
  z-index: 35;
  border-radius: 2px;
}

.home__progress span {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--home-accent);
  border-radius: inherit;
  transition: height 0.12s linear;
}

/* ——— Hero ——— */
.home-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  overflow: hidden;
}

.home-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 82% 72% at 50% 45%, #000 18%, transparent 78%);
}

.home-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.home-hero__glow--a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: 12%;
  left: 8%;
  background: rgba(237, 133, 29, 0.16);
  animation: homeFloatA 14s ease-in-out infinite;
}

.home-hero__glow--b {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  bottom: 8%;
  right: 6%;
  background: rgba(54, 98, 227, 0.12);
  animation: homeFloatB 18s ease-in-out infinite;
}

@keyframes homeFloatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -18px); }
}

@keyframes homeFloatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 14px); }
}

.home-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.home-particle {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.home-particle__shape {
  width: 100%;
  height: 100%;
}

.home-particle__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-particle__geom {
  fill: var(--p-fill, rgba(244, 240, 235, 0.06));
  stroke: var(--p-border, rgba(244, 240, 235, 0.5));
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.home-particle__motion {
  width: 100%;
  height: 100%;
}

.home-particle--rotate .home-particle__motion {
  animation: homeParticleSpin var(--spin-dur, 32s) linear infinite;
}

.home-particle--breathe .home-particle__shape {
  animation: homeParticleBreathe var(--breathe-dur, 4.5s) ease-in-out infinite;
}

@keyframes homeParticleSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes homeParticleBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

.home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-hero__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 240, 235, 0.5);
}

body.home-landing .home-hero__title,
body.home-landing .home-hero__title-line,
body.home-landing .home-hero__title-char {
  font-family: var(--home-font-display);
  font-weight: 400;
  font-style: normal;
}

.home-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 1.35rem;
  font-size: clamp(2.35rem, 9.5vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: #fff;
}

.home-hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.28em;
  line-height: 1.15;
}

.home-hero__title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1em) rotateX(40deg);
  animation: homeCharIn 0.9s var(--home-ease) forwards;
  animation-delay: calc(var(--line-i, 0) * 0.18s + var(--char-i, 0) * 0.045s + 0.12s);
}

@keyframes homeCharIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.home-hero__lead {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(232, 228, 223, 0.78);
}

.home-hero__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.home-hero__scroll {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 235, 0.42);
}

.home-hero__scroll-line {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(244, 240, 235, 0.5), transparent);
  animation: homeScrollPulse 2s ease-in-out infinite;
}

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

/* ——— Reveal ——— */
[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.9s var(--home-ease),
    transform 0.9s var(--home-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Story ——— */
.home-story {
  padding: clamp(5rem, 14vh, 9rem) clamp(1.25rem, 6vw, 4rem);
}

.home-story__inner {
  max-width: 46rem;
  margin-inline: auto;
}

.home-story__chapter {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.home-story__headline {
  margin: 0 0 1.5rem;
  font-family: var(--home-font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
}

.home-story__headline em {
  font-style: normal;
  color: rgba(244, 240, 235, 0.55);
}

.home-story__body {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  color: rgba(232, 228, 223, 0.72);
}

/* ——— Capabilities ——— */
.home-capabilities {
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 5vw, 3rem) clamp(5rem, 12vh, 7rem);
}

.home-capabilities__head {
  max-width: 40rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.home-capabilities__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 240, 235, 0.45);
}

.home-capabilities__title {
  margin: 0;
  font-family: var(--home-font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
}

.home-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.85rem, 2.5vw, 1.25rem);
  max-width: 72rem;
  margin-inline: auto;
}

.home-cap-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.35s var(--home-ease);
}

.home-cap-card:hover {
  border-color: rgba(237, 133, 29, 0.35);
  background: rgba(237, 133, 29, 0.04);
}

.home-cap-card__num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--home-accent);
}

.home-cap-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--home-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.home-cap-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(232, 228, 223, 0.65);
}

/* ——— Marquee ——— */
.home-marquee {
  padding: 1.5rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.home-marquee__track {
  display: flex;
  width: max-content;
  animation: homeMarquee 28s linear infinite;
}

.home-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-right: clamp(1.5rem, 4vw, 3rem);
}

.home-marquee__item {
  font-family: var(--home-font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

@keyframes homeMarquee {
  to { transform: translateX(-50%); }
}

/* ——— CTA ——— */
.home-cta {
  padding: clamp(5rem, 14vh, 9rem) clamp(1.25rem, 5vw, 3rem) clamp(6rem, 16vh, 10rem);
}

.home-cta__inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.home-cta__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--home-accent);
}

.home-cta__title {
  margin: 0 0 1rem;
  font-family: var(--home-font-display);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.home-cta__desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(232, 228, 223, 0.68);
}

/* ——— Buttons ——— */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #0a0a0a;
  background: #f4f0eb;
  transition:
    transform 0.35s var(--home-ease),
    background 0.35s ease,
    color 0.35s ease;
}

.home-btn:hover {
  text-decoration: none;
  background: var(--home-accent);
  color: #fff;
}

.home-btn--lg {
  padding: 0.95rem 1.85rem;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__glow--a,
  .home-hero__glow--b,
  .home-hero__scroll-line,
  .home-marquee__track,
  .home-particle--rotate .home-particle__motion,
  .home-particle--breathe .home-particle__shape {
    animation: none;
  }

  .home-particle {
    will-change: auto;
  }

  .home-hero__title-char {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .home__cursor {
    display: none;
  }
}
