/* TAQUAR homepage layout. Shared shell tokens live in site-shell.css. */

.home-page {
  min-width: 0;
  overflow-x: clip;
  background: var(--taquar-canvas);
}

.home-hero,
.home-section,
.home-market,
.home-scope {
  padding-block: clamp(72px, 8vw, 122px);
}

.home-hero {
  min-height: calc(100dvh - 77px);
  display: grid;
  align-items: center;
  padding-block: clamp(32px, 4vw, 56px);
  background: var(--taquar-canvas);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 4vw, 56px);
}

.home-hero-copy,
.home-copy,
.home-heading,
.home-scope-heading {
  min-width: 0;
}

.home-hero-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-eyebrow {
  margin: 0 0 22px;
  color: var(--taquar-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: none;
  margin: 0;
  color: #3f3f3f;
  font-size: clamp(3rem, 4vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.home-hero h1 span,
.home-copy h2 span {
  display: block;
}

.home-lede {
  max-width: 46ch;
  margin: 30px 0 0;
  color: var(--taquar-muted);
  font-size: clamp(1.1rem, 1.5vw, 1.36rem);
  line-height: 1.55;
}

.home-link {
  color: #3f3f3f;
  font-size: 0.94rem;
  text-decoration: none;
}

.home-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  border-bottom: 1px solid #3f3f3f;
  padding-bottom: 6px;
  transition: gap 180ms ease;
}

.home-link-arrow:hover {
  gap: 18px;
  border-color: var(--taquar-accent);
}

.home-link-arrow:hover span:last-child {
  color: var(--taquar-accent);
}

.home-hero-media,
.home-media {
  width: 100%;
  margin: 0;
}

.home-hero-media {
  max-width: none;
  justify-self: stretch;
  position: relative;
  overflow: hidden;
}

.home-hero-media video,
.home-media video,
.home-hero-media img,
.home-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #3f3f3f;
  filter: grayscale(0.12) contrast(0.96);
}

.home-hero-media video { aspect-ratio: 0.9 / 1; }

.home-hero-media img {
  aspect-ratio: 0.9 / 1;
  object-position: center;
  animation: home-hero-breathe 2s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
  will-change: transform;
}

.home-hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 30%, rgba(255, 106, 0, 0.12) 48%, transparent 66%);
  content: "";
  pointer-events: none;
  transform: translateX(-115%);
  animation: home-hero-sweep 16s ease-in-out infinite;
}

@keyframes home-hero-breathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.018) translate3d(0, -0.35%, 0); }
  100% { transform: scale(1.035) translate3d(0, 0.45%, 0); }
}

@keyframes home-hero-sweep {
  0%, 38% { opacity: 0; transform: translateX(-115%); }
  50% { opacity: 1; }
  62%, 100% { opacity: 0; transform: translateX(115%); }
}

.home-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
}

/* Keep the homepage media rhythm moving left, right, left after the hero. */
.home-split-grid--media-left .home-copy {
  grid-column: 2;
  grid-row: 1;
}

.home-split-grid--media-left .home-media {
  grid-column: 1;
  grid-row: 1;
}

.home-about { background: var(--taquar-paper); }
.home-intelligence { background: var(--taquar-canvas); }
.home-why { background: var(--taquar-gray-deep); }

.home-copy {
  max-width: 570px;
  padding-top: 2px;
}

.home-copy h2,
.home-heading h2,
.home-scope-heading h2 {
  margin: 0;
  color: #3f3f3f;
  font-size: clamp(2.55rem, 3.9vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.home-copy h2 { max-width: 12ch; }

.home-prose {
  max-width: 54ch;
  margin-top: 32px;
}

.home-prose p,
.home-scope-heading > p:last-child,
.home-heading > p,
.home-scope-item p {
  color: var(--taquar-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.62;
}

.home-prose p { margin: 0 0 17px; }
.home-prose p:last-child { margin-bottom: 0; }

.home-market { background: var(--taquar-gray); }

.home-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.home-heading h2 { max-width: 14ch; }
.home-heading > p { max-width: 52ch; margin: 22px 0 0; }

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--taquar-line);
}

.home-stat {
  min-width: 0;
  min-height: 210px;
  padding: 28px 22px 18px 0;
  border-right: 1px solid var(--taquar-line);
}

.home-stat + .home-stat { padding-left: 22px; }
.home-stat:last-child { border-right: 0; }

.home-stat strong {
  display: block;
  color: #3f3f3f;
  font-size: clamp(2.25rem, 3.8vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.95;
}

.home-stat p {
  max-width: 24ch;
  margin: 25px 0 0;
  color: var(--taquar-muted);
  font-size: 0.86rem;
  line-height: 1.52;
}

.home-scope { background: var(--taquar-paper); }
.home-scope-heading { max-width: 760px; }
.home-scope-heading h2 { max-width: 12ch; }
.home-scope-heading > p:last-child { max-width: 60ch; margin: 22px 0 0; }

.home-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 6vw, 88px);
  margin-top: 52px;
  border-top: 1px solid var(--taquar-line);
}

.home-scope-item {
  min-width: 0;
  min-height: 180px;
  padding: 25px 0 30px;
  border-bottom: 1px solid var(--taquar-line);
}

.home-scope-item h3 {
  margin: 0;
  color: #3f3f3f;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.home-scope-item p { max-width: 42ch; margin: 18px 0 0; }

.home-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 34px;
}

.home-benefits p {
  min-width: 0;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--taquar-line);
  color: var(--taquar-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.home-benefits p:nth-last-child(-n + 2) { border-bottom: 1px solid var(--taquar-line); }

@media (max-width: 980px) {
  .home-hero { min-height: auto; }
  .home-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr); gap: 38px; }
  .home-hero h1 { font-size: clamp(3rem, 5.4vw, 4.4rem); }
  .home-split-grid { gap: 42px; }
  .home-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stat:nth-child(2) { border-right: 0; }
  .home-stat:nth-child(n + 3) { border-top: 1px solid var(--taquar-line); }
}

@media (max-width: 760px) {
  .home-hero,
  .home-section,
  .home-market,
  .home-scope { padding-block: 68px; }
  .home-hero-grid,
  .home-split-grid { grid-template-columns: 1fr; gap: 42px; }
  .home-hero-copy { max-width: 650px; }
  .home-hero h1 { max-width: 15ch; font-size: clamp(3.2rem, 13vw, 5rem); }
  .home-hero-media { max-width: none; justify-self: stretch; }
  .home-hero-media video,
  .home-media video,
  .home-hero-media img,
  .home-media img { aspect-ratio: 1.25 / 1; }
  .home-split-grid--media-left .home-copy,
  .home-split-grid--media-left .home-media {
    grid-column: auto;
    grid-row: auto;
  }
  .home-copy h2,
  .home-heading h2,
  .home-scope-heading h2 { font-size: clamp(2.55rem, 11vw, 4.3rem); }
  .home-scope-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .home-scope-item { min-height: 0; }
  .home-benefits { grid-template-columns: 1fr; }
  .home-benefits p:nth-last-child(-n + 2) { border-bottom: 0; }
  .home-benefits p:last-child { border-bottom: 1px solid var(--taquar-line); }
}

@media (prefers-reduced-motion: reduce) {
  .home-link-arrow { transition: none; }
  .home-hero-media img,
  .home-hero-media::after { animation: none; }
}
