/* Homepage mock layout — loaded on index.html only. Other pages unchanged. */

.page-home {
  /* Match site tokens — one orange system sitewide */
  --mock-accent: var(--accent);
  --mock-accent-bright: var(--accent);
  --mock-bar: var(--bone);
  /* framed-grid-layout tokens */
  --fg-line: rgba(15, 23, 42, 0.12);
  --fg-line-strong: var(--accent);
  --fg-corner: 18px;
  --fg-texture: rgba(15, 23, 42, 0.03);
}

/* ── staggered-word-reveal (agent-skills) ── */
.page-home .word-reveal { visibility: visible; }
html.js .page-home .word-reveal[data-word-reveal]:not(.is-ready) { opacity: 0; }
.page-home .word-reveal__word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--word-index) * 0.07s);
}
.page-home .word-reveal.is-visible .word-reveal__word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
  html.js .page-home .word-reveal[data-word-reveal]:not(.is-ready),
  .page-home .word-reveal__word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── animation-on-scroll (replay on scroll in/out) ── */
.page-home .animate-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.75s ease-out,
    transform 0.75s ease-out;
  transition-delay: var(--aos-delay, 0ms);
}
.page-home .animate-on-scroll.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .page-home .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-home .home-mock-services {
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, var(--fg-texture) 11px 12px),
    #fff;
}
.page-home .home-mock-svc-card {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

/* ── Hero (mock) — full-bleed photo, readable left column, sparks visible right ── */
.page-home .home-mock-hero {
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  background-color: #f8f6f3;
  background-image:
    linear-gradient(
      102deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.94) 28%,
      rgba(255, 255, 255, 0.78) 42%,
      rgba(255, 255, 255, 0.42) 54%,
      rgba(255, 255, 255, 0.14) 66%,
      rgba(255, 255, 255, 0) 78%
    ),
    url('photos/fab-shop-sparks.jpg');
  background-size: cover, cover;
  background-position: center, 72% 42%;
  background-repeat: no-repeat;
  min-height: clamp(420px, 54vh, 580px);
  display: flex;
  align-items: center;
}
.page-home .home-mock-hero .animate-on-scroll {
  opacity: 1;
  transform: none;
}
.page-home .home-mock-hero::before,
.page-home .home-mock-hero::after {
  display: none;
}
.page-home .home-mock-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 38rem;
  width: 100%;
  padding: 28px 32px 32px 0;
}
.page-home .home-mock-hero-inner::before {
  content: '';
  position: absolute;
  inset: -12px -24px -12px -32px;
  z-index: -1;
  border-radius: var(--r-lg);
  background: linear-gradient(
    95deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.88) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}
.page-home .home-mock-services::before {
  display: none;
}
.page-home .home-mock-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 20px;
}
.page-home .home-mock-headline {
  font-family: 'Lexend', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 12em;
}
.page-home .home-mock-headline-line { display: block; }
.page-home .home-mock-headline .accent { color: var(--mock-accent); }
.page-home .home-mock-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  max-width: 40ch;
  margin: 0 0 28px;
}
.page-home .home-mock-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  width: 100%;
}
.page-home .home-mock-bid-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.28);
}
.page-home .home-mock-bid-cta svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.page-home .home-mock-bid-cta-note {
  margin: 0;
  font-size: 13px;
  color: var(--mute);
  max-width: 36ch;
}
.page-home .home-mock-bid-cta-note a {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--line);
}

/* ── Credentials bar (mock) ── */
.page-home .home-mock-cred {
  background: var(--mock-bar);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin-top: 0;
}
.page-home .home-mock-cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
}
.page-home .home-mock-cred-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 20px var(--pad);
  border-right: 1px solid var(--line);
  background: #fff;
  transition: background 0.2s ease;
}
.page-home .home-mock-cred-item:hover {
  background: var(--bone);
}
.page-home .home-mock-cred-item:last-child { border-right: none; }
.page-home .home-mock-cred-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--mock-accent);
}
.page-home .home-mock-cred-icon svg { width: 28px; height: 28px; }
.page-home .home-mock-cred-kicker {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mock-accent);
  margin-bottom: 4px;
}
.page-home .home-mock-cred-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.page-home .home-mock-cred-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  margin-top: 2px;
}
.page-home .home-mock-cred-text a { color: inherit; border-bottom: 1px solid transparent; }
.page-home .home-mock-cred-text a:hover { border-bottom-color: var(--mock-accent); }

/* ── Services strip (mock) ── */
.page-home .home-mock-services {
  padding: 56px 0 64px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.page-home .home-mock-services::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  top: 48px;
  right: 4%;
  background: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.06) 1px, transparent 0) 0 0/12px 12px;
  pointer-events: none;
}
.page-home .home-mock-services .container { position: relative; z-index: 1; }
.page-home .home-mock-services .section-head {
  grid-template-columns: 1fr;
  align-items: start;
  margin-bottom: 32px;
}
.page-home .home-mock-services h2 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.03em;
  text-transform: none;
}
.page-home .home-mock-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.page-home .home-mock-svc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.page-home .home-mock-svc-card:hover {
  border-color: var(--mock-accent);
  box-shadow: var(--shadow-md);
  transform: none;
}
.page-home .home-mock-svc-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.page-home .home-mock-svc-body { padding: 20px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.page-home .home-mock-svc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.page-home .home-mock-svc-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--mock-accent);
  margin-bottom: 0;
}
.page-home .home-mock-svc-title {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}
.page-home .home-mock-svc-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--mute);
  flex: 1;
  margin-bottom: 14px;
}
.page-home .home-mock-svc-link {
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mock-accent);
}

/* ── Below mock: rest of home content ── */
.page-home .home-continued {
  border-top: 1px solid var(--line);
  padding-top: 0;
  margin-top: 8px;
}
.page-home .home-continued-label { display: none; }
.page-home .home-continued .section-head h2,
.page-home .home-continued .section-head-dark h2 {
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-home .home-continued .why-item,
.page-home .home-continued .faq-item {
  border-color: var(--line);
}
.page-home .home-continued .home-why-section {
  padding-top: 56px;
}
/* Why block: photo supports copy/cards — not a full-height column */
.page-home .home-continued .why-grid--home {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}
.page-home .home-continued .why-grid__media {
  max-width: 340px;
  align-self: center;
  border-radius: var(--r-card);
  overflow: hidden;
  border-left: 3px solid var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
@media (min-width: 901px) {
  .page-home .home-continued .why-grid--home {
    align-items: center;
  }
}
.page-home .home-continued .why-grid__photo {
  aspect-ratio: 4 / 3 !important;
  max-height: min(300px, 38vh);
  width: 100%;
}
.page-home .home-continued .why-grid__photo .ph-img {
  object-position: center 35%;
}
.page-home .home-continued .section-head--left {
  grid-template-columns: 1fr;
  max-width: 52ch;
  margin-bottom: 36px;
}
@media (max-width: 900px) {
  .page-home .home-continued .why-grid--home {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .page-home .home-continued .why-grid__media {
    max-width: none;
  }
  .page-home .home-continued .why-grid__photo {
    max-height: 200px;
    aspect-ratio: 16 / 7 !important;
  }
}
.page-home .home-continued .lede-on-dark {
  color: rgba(255, 255, 255, 0.72);
  max-width: none;
}
.page-home .home-continued .why-list--tiles {
  border: none;
  gap: 16px;
}
.page-home .home-continued .why-item--tile {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.page-home .home-continued .why-item--tile:hover {
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: var(--accent);
}
.page-home .home-continued .why-num {
  color: var(--accent-on-dark);
}
.page-home .home-continued .why-h {
  font-size: clamp(17px, 1.5vw, 20px);
}
.page-home .home-continued .why-p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 52ch;
}
@media (prefers-reduced-motion: reduce) {
  .why-item--tile {
    transition: none;
  }
  .why-item--tile:hover {
    transform: none;
  }
}
.page-home .home-continued .faq-item {
  border-radius: var(--r-card);
}
.page-home .home-continued .recent-card:hover,
.page-home .home-continued .brand-cell:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.page-home .home-continued .brand-strip {
  border-top: none;
  padding-top: 40px;
}
.page-home .home-continued .brand-strip-head--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}
.page-home .home-continued .brand-strip-head--stacked h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  max-width: 28ch;
}
.page-home .home-continued .brand-strip-head--stacked p {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .page-home .home-mock-hero {
    min-height: 0;
    padding: 56px 0 48px;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.75) 100%),
      url('photos/fab-shop-sparks.jpg');
    background-position: center, center 30%;
  }
  .page-home .home-mock-hero-inner { max-width: none; }
  .page-home .home-mock-cred-grid { grid-template-columns: 1fr 1fr; }
  .page-home .home-mock-cred-item:nth-child(2) { border-right: none; }
  .page-home .home-mock-cred-item { border-bottom: 1px solid var(--line); }
  .page-home .home-mock-svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-home .home-mock-cred-grid { grid-template-columns: 1fr; }
  .page-home .home-mock-svc-grid { grid-template-columns: 1fr; }
}
