/* Shared page-section layout patterns (hero band, trusted-by row, process steps,
   industries grid, CTA band, footer), reused across the homepage, Services, and
   future pages. Originally named home.css while only the homepage existed; kept
   the "hp-" class prefix for now to avoid a repo-wide rename mid-build, but this
   is the shared cross-page layer per Design System §11, not homepage-only. Note it
   here rather than silently letting the name drift from what the file actually holds.

   Page-level layout is the one place layout is allowed to be page-specific, actual
   component styling always stays in css/components/*.css. */

/* Page-level layout for shared sections, not part of the reusable component library. */

.hp-section{ padding:var(--space-9) 0; border-bottom:1px solid var(--border-subtle); }
.hp-section:last-of-type{ border-bottom:none; }
.hp-eyebrow{ font-size:13px; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; color:var(--accent-interactive); margin:0 0 var(--space-3); }
.hp-title{ font-family:var(--font-display); font-weight:600; font-size:32px; margin:0 0 var(--space-2); letter-spacing:-0.01em; }
.hp-desc{ color:var(--text-secondary); max-width:640px; margin:0 0 var(--space-7); }
.hp-grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-5); }
.hp-grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-6); }
@media (max-width:1024px){ .hp-grid-3{ grid-template-columns:repeat(2,1fr); } .hp-grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .hp-grid-3, .hp-grid-4{ grid-template-columns:1fr; } }

/* Plain page hero, for inner pages that don't need the live-state hero (that's
   homepage-only, per the Live Command Center spec). Kept minimal on purpose:
   restraint over spectacle, per Design System §17. */
.hp-page-hero{ padding:var(--space-9) 0 var(--space-7); max-width:720px; }
.hp-page-hero h1{ font-family:var(--font-display); font-weight:600; font-size:clamp(32px,4.5vw,52px); line-height:1.1; letter-spacing:-0.02em; margin:0 0 var(--space-4); }
.hp-page-hero p{ font-size:18px; color:var(--text-secondary); margin:0; }

/* Hero */
.hp-hero{ padding:var(--space-10) 0 var(--space-9); }
.hp-hero__grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:var(--space-8); align-items:center; }
@media (max-width:1024px){ .hp-hero__grid{ grid-template-columns:1fr; } }
.hp-hero__visual{
  aspect-ratio:4/3; border-radius:12px; position:relative; overflow:hidden;
  background:radial-gradient(circle at 30% 20%, var(--media-glow), transparent 55%), linear-gradient(160deg, var(--media-gradient-a), var(--media-gradient-b));
  border:1px solid var(--border-subtle);
  display:flex; align-items:center; justify-content:center;
}
.hp-hero__frame{
  width:70%; aspect-ratio:16/9; border:1.5px solid var(--accent-interactive); border-radius:6px;
  box-shadow:0 0 0 4000px var(--hero-scrim) inset, 0 0 40px var(--media-glow);
  display:flex; align-items:center; justify-content:center;
}
.hp-hero__rec{ display:flex; align-items:center; gap:6px; font-size:11px; font-weight:600; letter-spacing:0.05em; color:var(--accent-interactive); }
.hp-hero__rec .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent-interactive); animation:hp-pulse 1.6s ease-in-out infinite; }
@keyframes hp-pulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }

/* Trusted by */
/* Trusted by, continuous left-to-right scrolling marquee. The track's
   content gets duplicated once via JS (js/core/marquee.js) so the loop is
   seamless regardless of how many CMS-managed names are in the list. */
.hp-trusted-marquee{ overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hp-trusted-marquee__track{ display:flex; gap:var(--space-8); align-items:center; width:max-content; animation:hp-marquee 28s linear infinite; }
.hp-trusted-marquee__track span{ font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--text-secondary); opacity:0.7; white-space:nowrap; }
.hp-trusted-marquee__logo{ height:44px; width:auto; object-fit:contain; opacity:0.9; transition:opacity 150ms ease-out; }
.hp-trusted-marquee:hover .hp-trusted-marquee__logo{ opacity:1; }
@keyframes hp-marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .hp-trusted-marquee__track{ animation:none; flex-wrap:wrap; width:auto; } }
.hp-trusted-marquee:hover .hp-trusted-marquee__track{ animation-play-state:paused; }

/* Why choose us */
.hp-value{ display:flex; gap:var(--space-4); align-items:flex-start; }
.hp-value__icon{ width:40px; height:40px; border-radius:8px; background:var(--accent-subtle); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.hp-value__icon svg{ width:20px; height:20px; color:var(--accent-interactive-hover); }
.hp-value h4{ font-size:16px; font-weight:600; margin:0 0 4px; }
.hp-value p{ font-size:14px; color:var(--text-secondary); margin:0; }

/* Process */
.hp-process{ display:flex; gap:var(--space-6); counter-reset:step; }
@media (max-width:900px){ .hp-process{ flex-direction:column; } }
.hp-process__step{ flex:1; position:relative; padding-top:var(--space-6); }
.hp-process__step::before{
  counter-increment:step; content:counter(step, decimal-leading-zero);
  font-family:var(--font-display); font-size:13px; font-weight:600; color:var(--accent-interactive);
  position:absolute; top:0; left:0;
}
.hp-process__step h4{ font-size:16px; margin:0 0 6px; }
.hp-process__step p{ font-size:14px; color:var(--text-secondary); margin:0; }

/* Industries */
.hp-industries{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); }
@media (max-width:768px){ .hp-industries{ grid-template-columns:repeat(2,1fr); } }
.hp-industry{ display:flex; align-items:center; gap:10px; padding:var(--space-4); border:1px solid var(--border-subtle); border-radius:10px; font-size:14px; }
.hp-industry svg{ width:18px; height:18px; color:var(--accent-interactive); flex-shrink:0; }

/* CTA band */
.hp-cta{ background:var(--surface-elevated); border-radius:16px; padding:var(--space-8); text-align:center; }
.hp-cta h2{ font-family:var(--font-display); font-size:32px; font-weight:600; margin:0 0 var(--space-3); }
.hp-cta p{ color:var(--text-secondary); margin:0 0 var(--space-6); }

/* Legal content (Privacy, Terms), plain prose typography, no card treatment */
.legal-content{ max-width:720px; padding-bottom:var(--space-9); }
.legal-content h2{ font-size:22px; margin:var(--space-7) 0 var(--space-3); }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p, .legal-content li{ color:var(--text-secondary); font-size:15px; line-height:1.7; margin:0 0 var(--space-3); }
.legal-content ul{ padding-left:20px; }
.legal-content strong{ color:var(--text-primary); }
.legal-updated{ font-size:13px; color:var(--text-secondary); margin-bottom:var(--space-7); }

/* Case study detail page */
.cs-hero{ position:relative; aspect-ratio:21/9; border-radius:12px; overflow:hidden; margin-bottom:var(--space-7);
  background:radial-gradient(circle at 30% 20%, var(--media-glow), transparent 55%), linear-gradient(160deg, var(--media-gradient-a), var(--media-gradient-b)); }
.cs-meta{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-5); padding:var(--space-6) 0; border-top:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle); margin-bottom:var(--space-7); }
@media (max-width:768px){ .cs-meta{ grid-template-columns:repeat(2,1fr); } }
.cs-meta__label{ font-size:11px; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-secondary); margin-bottom:4px; }
.cs-meta__value{ font-family:var(--font-display); font-size:15px; font-weight:500; }
.cs-block{ max-width:720px; margin-bottom:var(--space-8); }
.cs-block h2{ font-family:var(--font-display); font-size:24px; margin:0 0 var(--space-3); }
.cs-block p{ color:var(--text-secondary); font-size:16px; line-height:1.7; }
.cs-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); margin-bottom:var(--space-8); }
@media (max-width:768px){ .cs-gallery{ grid-template-columns:repeat(2,1fr); } }
.cs-gallery__item{ aspect-ratio:4/3; border-radius:8px; background:linear-gradient(150deg,var(--media-gradient-a),var(--media-gradient-b)); }
.cs-results{ display:flex; gap:var(--space-8); flex-wrap:wrap; margin-bottom:var(--space-8); }
.cs-results__value{ font-family:var(--font-display); font-size:36px; font-weight:600; color:var(--accent-interactive); }
.cs-results__label{ font-size:13px; color:var(--text-secondary); }

/* Contact page */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-8); align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info__item{ display:flex; gap:var(--space-4); align-items:flex-start; margin-bottom:var(--space-6); }
.contact-info__icon{ width:40px; height:40px; border-radius:8px; background:var(--accent-subtle); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info__icon svg{ width:20px; height:20px; color:var(--accent-interactive-hover); }

/* 404 */
.error-page{ min-height:50vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:var(--space-10) 0; }
.error-page__code{ font-family:var(--font-display); font-size:96px; font-weight:600; color:var(--accent-interactive); line-height:1; margin:0 0 var(--space-4); }

/* Live page */
.live-schedule{ display:flex; flex-direction:column; gap:var(--space-3); }
.live-schedule__row{ display:flex; justify-content:space-between; align-items:center; padding:var(--space-4); border:1px solid var(--border-subtle); border-radius:10px; }
.live-schedule__time{ font-family:var(--font-display); color:var(--accent-interactive); font-weight:600; font-size:14px; min-width:80px; }
.alp-footer{ padding:var(--space-8) 0 var(--space-6); background:var(--surface-elevated); }
.alp-footer__grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:var(--space-6); }
@media (max-width:768px){ .alp-footer__grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .alp-footer__grid{ grid-template-columns:1fr; } }
.alp-footer__grid .alp-nav__logo img{ height:44px; }
@media (max-width:480px){ .alp-footer__grid .alp-nav__logo img{ height:32px; } }
.alp-footer__grid h4{ font-family:var(--font-display); font-size:14px; font-weight:600; margin:0 0 var(--space-3); }
.alp-footer__grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.alp-footer__grid a{ text-decoration:none; color:var(--text-secondary); font-size:14px; }
.alp-footer__grid a:hover{ color:var(--accent-interactive); }
.alp-footer__bottom{ margin-top:var(--space-8); padding-top:var(--space-5); border-top:1px solid var(--border-subtle); display:flex; justify-content:space-between; color:var(--text-secondary); font-size:13px; flex-wrap:wrap; gap:var(--space-3); }

/* Footer socials, match the theme's foreground color by default (white in
   Broadcast, black in Studio), switch to the brand accent color on hover. */
.alp-footer__social{ display:flex; gap:14px; margin-top:var(--space-5); }
.alp-footer__social a{
  color:var(--text-primary); display:flex; align-items:center; justify-content:center;
  width:32px; height:32px; border-radius:50%; border:1px solid var(--border-subtle);
  transition:color 150ms ease-out, border-color 150ms ease-out;
}
.alp-footer__social a:hover{ color:var(--accent-interactive); border-color:var(--accent-interactive); }
.alp-footer__social svg{ width:16px; height:16px; }
@media (max-width:480px){
  .alp-footer__social{ gap:10px; }
  .alp-footer__social a{ width:28px; height:28px; }
  .alp-footer__social svg{ width:14px; height:14px; }
}

/* Portfolio filter bar */
.hp-filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:var(--space-6); }
.hp-filter-btn{
  background:transparent; border:1px solid var(--border-strong); color:var(--text-secondary);
  border-radius:20px; padding:8px 16px; font-size:13px; font-family:var(--font-body); cursor:pointer;
  transition:all var(--duration-fast) ease-out;
}
.hp-filter-btn:hover{ border-color:var(--accent-interactive); color:var(--accent-interactive); }
.hp-filter-btn.is-active{ background:var(--accent-interactive); border-color:var(--accent-interactive); color:var(--color-black-950); font-weight:600; }
.hp-portfolio-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-5); }
@media (max-width:1024px){ .hp-portfolio-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .hp-portfolio-grid{ grid-template-columns:1fr; } }
.hp-portfolio-grid[data-filtering] alp-card[hidden]{ display:none; }

/* Contact layout */
.hp-contact-grid{ display:grid; grid-template-columns:1.2fr 0.8fr; gap:var(--space-8); align-items:start; }
@media (max-width:900px){ .hp-contact-grid{ grid-template-columns:1fr; } }
.hp-contact-info{ display:flex; flex-direction:column; gap:var(--space-5); }
.hp-contact-info-item{ display:flex; gap:14px; align-items:flex-start; }
.hp-contact-info-item svg{ width:20px; height:20px; color:var(--accent-interactive); flex-shrink:0; margin-top:2px; }
.hp-contact-info-item h4{ font-size:14px; font-weight:600; margin:0 0 2px; }
.hp-contact-info-item p, .hp-contact-info-item a{ font-size:14px; color:var(--text-secondary); margin:0; text-decoration:none; }
.hp-contact-visual{
  aspect-ratio:4/3; border-radius:12px; margin-top:var(--space-5);
  background:radial-gradient(circle at 30% 20%, var(--media-glow), transparent 55%), linear-gradient(160deg, var(--media-gradient-a), var(--media-gradient-b));
  border:1px solid var(--border-subtle); display:flex; align-items:center; justify-content:center;
  color:var(--text-secondary); font-size:13px;
}
.hp-contact-map{
  aspect-ratio:4/3; border-radius:12px; margin-top:var(--space-5);
  overflow:hidden; border:1px solid var(--border-subtle);
}
.hp-contact-map iframe{ display:block; filter:var(--map-filter, none); }
:root[data-theme="broadcast"] .hp-contact-map{ --map-filter:invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9); }

/* Legal / prose pages */
.hp-prose{ max-width:720px; }
.hp-prose h2{ font-family:var(--font-display); font-size:22px; font-weight:600; margin:var(--space-7) 0 var(--space-3); }
.hp-prose h2:first-child{ margin-top:0; }
.hp-prose p{ color:var(--text-secondary); font-size:15px; line-height:1.7; margin:0 0 var(--space-4); }
.hp-prose ul{ color:var(--text-secondary); font-size:15px; line-height:1.7; padding-left:20px; margin:0 0 var(--space-4); }
.hp-prose li{ margin-bottom:8px; }

/* 404 */
.hp-404{ text-align:center; padding:var(--space-10) 0; max-width:480px; margin:0 auto; }
.hp-404__code{ font-family:var(--font-display); font-size:96px; font-weight:600; color:var(--accent-interactive); line-height:1; margin:0 0 var(--space-4); }
.hp-404 h1{ font-family:var(--font-display); font-size:26px; font-weight:600; margin:0 0 var(--space-3); }
.hp-404 p{ color:var(--text-secondary); margin:0 0 var(--space-6); }

/* Insights */
.hp-insight-meta{ display:flex; gap:12px; font-size:12px; color:var(--text-secondary); margin-bottom:var(--space-3); }
.hp-newsletter{ display:flex; gap:12px; max-width:420px; flex-wrap:wrap; }
.hp-newsletter input{
  flex:1; min-width:200px; background:var(--surface-card); border:1px solid var(--border-strong); border-radius:8px;
  padding:11px 14px; color:var(--text-primary); font-family:var(--font-body); font-size:15px;
}
.hp-newsletter input:focus{ outline:none; border-color:var(--accent-interactive); }

/* Stats, count-up animated on scroll into view (js/core/count-up.js) */
.hp-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--space-6); text-align:center; }
.hp-stat{ display:flex; flex-direction:column; gap:4px; }
.hp-stat__value{ font-family:var(--font-display); font-weight:700; font-size:clamp(32px,4vw,48px); color:var(--accent-interactive); line-height:1; }
.hp-stat__label{ font-size:14px; color:var(--text-secondary); }
@media (max-width:640px){ .hp-stats{ grid-template-columns:repeat(2,1fr); gap:var(--space-7); } }

/* Related case studies, a static grid, image with a bold title overlaid on
   the lower-left, no motion, that treatment is reserved for the gallery
   lightbox only (see css/components/lightbox.css). */
.hp-related-tile{
  position:relative; aspect-ratio:4/3; border-radius:12px; overflow:hidden;
  display:block; text-decoration:none; background:linear-gradient(150deg, var(--media-gradient-a), var(--media-gradient-b));
}
.hp-related-tile__bg{ position:absolute; inset:0; background:linear-gradient(150deg, var(--media-gradient-a), var(--media-gradient-b)); }
.hp-related-tile::after{ content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(0,0,0,0.75), transparent 55%); }
.hp-related-tile__title{
  position:absolute; bottom:14px; left:14px; right:14px; z-index:1;
  color:#fff; font-family:var(--font-display); font-weight:700; font-size:16px; line-height:1.3;
}
