/* home.css – Homepage-only styles */

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('../assets/home-bg.jpg');
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-3xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.85) 50%,
    rgba(0,0,0,0.40) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-md);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: 0.02em;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: var(--sp-md);
}

.hero-title span { color: var(--color-accent); }

.hero-subtitle {
  font-size: var(--size-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-text);
  margin-bottom: var(--sp-xl);
}

.hero-actions { display: flex; gap: var(--sp-md); align-items: center; }

.hero-scroll {
  position: absolute;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--grey-text);
  font-size: var(--size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: var(--color-accent);
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════
   PILLARS  (Create / Innovate / Secure)
════════════════════════════════════ */
.pillars-strip {
  background: var(--grey-1);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-xl) 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  padding: 0 var(--sp-xl);
}

.pillar:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

/* .pillar-icon sizing now lives in components.css so it's
   shared with the services page methodology icons — see that
   file for the rule. */

.pillar h3 {
  font-size: var(--size-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.pillar p {
  font-size: var(--size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ════════════════════════════════════
   CENTRAL BAND  (jaguar bg — About + Selected Work)
════════════════════════════════════ */
.home-central-band {
  position: relative;
  isolation: isolate;
  background-image: url('../assets/home-central-bg.jpeg');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  padding: var(--sp-3xl) 0;
}

/* Parallax: the jaguar image holds still while the page scrolls
   past it. Desktop/laptop only — background-attachment: fixed is
   unreliable on iOS Safari and costs more on mobile than it's
   worth, so responsive.css turns it back to scroll under 992px. */
@media (min-width: 992px) {
  .home-central-band {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-central-band {
    background-attachment: scroll;
  }
}

.home-central-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(26, 28, 27, 0.82) 0%,
      rgba(26, 28, 27, 0.38) 28%,
      rgba(26, 28, 27, 0.32) 50%,
      rgba(26, 28, 27, 0.38) 72%,
      rgba(26, 28, 27, 0.82) 100%
    ),
    radial-gradient(
      ellipse 85% 55% at 50% 46%,
      transparent 0%,
      rgba(26, 28, 27, 0.25) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.home-central-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
  max-width: 640px;
  margin: 0 auto;
}

/* ════════════════════════════════════
   TEASER BOXES  (About / Work teasers)
════════════════════════════════════ */
.teaser-box {
  text-align: center;
}

.teaser-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: var(--sp-md);
  text-wrap: balance;
}

.teaser-box p {
  font-size: var(--size-lg);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
  color: var(--grey-text);
}

/* ════════════════════════════════════
   SERVICE CARD LINK RESET
   (cards on homepage are <a> elements)
════════════════════════════════════ */
a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.service-card:hover h3 {
  color: var(--color-accent);
}

/* ════════════════════════════════════
   ICON – digital marketing colour variant
════════════════════════════════════ */
.icon-digital-marketing {
  filter: invert(62%) sepia(99%) saturate(392%) hue-rotate(87deg) brightness(116%) contrast(103%) hue-rotate(180deg);
}

/* ════════════════════════════════════
   HERO TITLE – long variant
   (multi-word headline, scaled down)
════════════════════════════════════ */
.hero-title-long {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.05;
}

/* ════════════════════════════════════
   HERO SUBTITLE – normal case override
   (removes all-caps transform)
════════════════════════════════════ */
.hero-subtitle.normal-case {
  text-transform: none;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-size: var(--size-lg);
}

/* ════════════════════════════════════
   WHITESPACE – no-wrap utility
════════════════════════════════════ */
.whitespace-nowrap { white-space: nowrap; }

/* ════════════════════════════════════
   CLIENT QUOTE BANNER
   (moved from an inline style="" on the .cta-strip in
   index.html — a lighter, borderless variant of the
   standard CTA strip used to showcase a client quote)
════════════════════════════════════ */
.quote-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-lg);
  border-radius: var(--r-md);
}

.quote-text {
  color: var(--slate-200);
}

.quote-attribution {
  color: var(--slate-400);
}

/* ════════════════════════════════════
   GLITCH HEADING — hacker-terminal reveal
   "Vision to Execution" over the jaguar-eyes band.
   White-to-neon-green, sharp/stepped rather than a
   smooth RGB-split glitch — reads as a terminal boot
   flicker locking on to signal, not a VHS effect.
   Triggers when the site's existing scroll-reveal
   script adds .visible to the parent .fade-in element.
════════════════════════════════════ */
.glitch-heading {
  position: relative;
  display: inline-block;
  color: var(--white);
  opacity: 0;
}

.fade-in.visible .glitch-heading {
  animation: hackerReveal 0.85s steps(1, jump-end) forwards;
}

.glitch-heading::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--color-accent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.fade-in.visible .glitch-heading::before {
  animation: hackerSliceFlicker 0.85s steps(1, jump-end) forwards;
}

@keyframes hackerReveal {
  0%   { opacity: 0; color: var(--white); text-shadow: none; clip-path: inset(0 0 100% 0); transform: translateX(0); }
  6%   { opacity: 1; clip-path: inset(0 0 62% 0); transform: translateX(-4px); text-shadow: 0 0 6px rgba(255, 255, 255, 0.75); }
  13%  { clip-path: inset(40% 0 0 0); transform: translateX(3px); }
  20%  { clip-path: inset(0 0 0 0); transform: translateX(-2px); text-shadow: 0 0 2px rgba(255, 255, 255, 0.4); }
  30%  { color: var(--white); transform: translateX(0); }
  38%  { color: var(--color-accent); text-shadow: 0 0 18px rgba(var(--green-rgb), 0.85); transform: translateX(2px); }
  46%  { color: var(--white); text-shadow: 0 0 4px rgba(255, 255, 255, 0.5); transform: translateX(-1px); }
  55%  { color: var(--color-accent); text-shadow: 0 0 22px rgba(var(--green-rgb), 0.9); transform: translateX(0); }
  100% { opacity: 1; color: var(--color-accent); transform: translateX(0); clip-path: inset(0 0 0 0);
         text-shadow: 0 0 10px rgba(var(--green-rgb), 0.55), 0 0 28px rgba(var(--green-rgb), 0.3); }
}

@keyframes hackerSliceFlicker {
  0%   { opacity: 0; clip-path: inset(0 0 100% 0); }
  6%   { opacity: 0.9; clip-path: inset(45% 0 10% 0); }
  13%  { clip-path: inset(5% 0 55% 0); }
  20%  { opacity: 0; clip-path: inset(0 0 0 0); }
  38%  { opacity: 0.7; clip-path: inset(20% 0 30% 0); }
  46%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .glitch-heading,
  .fade-in.visible .glitch-heading,
  .fade-in.visible .glitch-heading::before {
    animation: none !important;
  }
  .glitch-heading { opacity: 1; color: var(--color-accent); }
  .glitch-heading::before { display: none; }
}