/* ==========================================================================
   Goose TraffIQ — Design Tokens
   ========================================================================== */
:root{
  /* Colour — Goose TraffIQ brand: light, warm neutrals with teal as ink and salmon as accent */
  --bg:            #F1F2F2;
  --bg-panel:      #FFFFFF;
  --bg-panel-2:    #F6EEEC;
  --bg-panel-3:    #EDF2F1;
  --border:        #E0E3E3;
  --border-soft:   #E8EAEA;
  --text:          #1A3839;
  --text-muted:    #5C726F;
  --text-dim:      #8B9C99;
  --text-dim-on-dark: #A8B8B5;   /* lighter variant of text-dim, for use on dark teal backgrounds */
  --accent:        #F26B64;   /* brand salmon — fills, glows, large elements */
  --accent-text:   #B03D36;   /* darker salmon — meets contrast for text/links on light bg */
  --accent-dim:    #C9564F;
  --accent-soft:   #1A3839;   /* teal, used sparingly as secondary/data colour */
  --accent-ink:    #FFFFFF;
  --bg-warm:       #F7F2EA;   /* warm off-white, for alternating section rhythm */

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --max-w: 1240px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
[id]{ scroll-margin-top: 100px; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; color: var(--text-muted); }
a{ color: inherit; text-decoration: none; }
img,svg{ display:block; max-width:100%; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor: pointer; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.eyebrow::before{
  content:"";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(242,107,100,0.55);
  flex-shrink:0;
}

section{ padding: 84px 0; border-top: 1px solid var(--border-soft); }
section.no-border{ border-top: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: var(--accent-text);
  color: var(--accent-ink);
}
.btn-primary:hover{ background: var(--accent); }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent-text); }
.btn-lg{ padding: 16px 32px; font-size: 15.5px; }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(241,242,242,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
}
.brand{ display:flex; align-items:center; }
.brand-logo{ height: 58px; width: auto; display:block; }
.footer-brand .brand-logo{ height: 62px; }

.nav-links{ display:flex; align-items:center; gap: 36px; }
.nav-links a{
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; background:none; border:none; color:var(--text); }

@media (max-width: 880px){
  .brand-logo{ height: 42px; }
  .nav-cta{ gap: 12px; }
  .nav-cta .btn-primary{ padding: 11px 16px; font-size: 13px; }
  .nav-links{
    position:fixed; inset: 65px 0 0 0; height: calc(100vh - 65px); height: calc(100dvh - 65px);
    background: var(--bg); flex-direction:column; justify-content:flex-start;
    padding: 36px 28px; gap: 22px; transform: translateX(100%);
    transition: transform .25s ease, visibility .25s ease; border-top: 1px solid var(--border-soft);
    overflow-y: auto; visibility: hidden;
  }
  .nav-links.open{ transform: translateX(0); visibility: visible; }
  .nav-links a{ font-size: 18px; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-ghost{ display:none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center;
}
.hero h1{ font-size: clamp(38px, 5.2vw, 62px); }
.hero .lede{ font-size: 18px; max-width: 480px; color: var(--text-muted); }
.hero-cta{ display:flex; gap:14px; margin-top: 32px; flex-wrap:wrap; }
.hero-stats{
  display:flex; gap: 36px; margin-top: 56px; flex-wrap:wrap;
}
.hero-stats div{ font-family: var(--font-mono); }
.hero-stats strong{
  display:block; font-family: var(--font-display); font-size: 26px; color: var(--text);
}
.hero-stats span{ font-size: 12.5px; color: var(--text-dim); text-transform:uppercase; letter-spacing:.06em; }

/* Homepage hero — bold full-bleed dark treatment */
.hero-dark{
  background: radial-gradient(140% 100% at 15% -10%, #234B49 0%, #1A3839 45%, #12302E 100%);
  color: #F7F4EE;
}
.hero-dark .eyebrow{ color: var(--accent); }
.hero-dark .eyebrow::before{ box-shadow: 0 0 14px 3px rgba(242,107,100,0.65); }
.hero-dark h1{ color: #FFFFFF; }
.hero-dark p, .hero-dark .lede{ color: rgba(247,244,238,0.72); }
.hero-dark .breadcrumb{ color: var(--text-dim-on-dark); }
.hero-dark .breadcrumb a{ color: rgba(247,244,238,0.78); }
.hero-dark .breadcrumb a:hover{ color: var(--accent); }
.hero-dark .hero-stats strong{ color: #FFFFFF; }
.hero-dark .hero-stats span{ color: var(--text-dim-on-dark); }
.hero-dark .btn-ghost{ color: #F7F4EE; border-color: rgba(247,244,238,0.3); }
.hero-dark .btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }
.hero-dark .signal-graphic{
  background: rgba(247,244,238,0.05);
  border: 1px solid rgba(247,244,238,0.14);
}
.hero-dark .signal-graphic::before{
  background: radial-gradient(circle at 30% 20%, rgba(242,107,100,0.28), transparent 60%);
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); }
.section-head p{ font-size: 16.5px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }

/* ==========================================================================
   Feature grid / cards
   ========================================================================== */
.grid{ display:grid; gap: 22px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-5{ grid-template-columns: repeat(5, 1fr); }

.card{
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 30px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover{ border-color: var(--accent-dim); transform: translateY(-3px); background: var(--bg-panel-2); }
.card .icon{
  width: 42px; height:42px; border-radius: 50%;
  background: var(--bg-panel-3); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px; color: var(--accent);
}
.card h3{ font-size: 18px; margin-bottom: 8px; }
.card p{ font-size: 14.5px; margin-bottom: 0; }
.card .tag{
  display:inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; text-transform:uppercase; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 4px 11px; margin-bottom: 16px;
}
.card-link{
  display:inline-flex; align-items:center; gap:6px; margin-top:18px;
  font-size: 13.5px; font-weight:600; color: var(--accent-text);
}
.cross-links-row{ display:flex; flex-wrap:wrap; gap: 12px 28px; }
@media (max-width: 640px){
  .cross-links-row{ flex-direction: column; gap: 14px; }
}

/* Service landing cards — centered icon layout, whole card is a link */
.card-service{
  text-align:center; display:flex; flex-direction:column; align-items:center;
  box-shadow: 0 6px 20px -10px rgba(26,56,57,0.18);
  border-color: var(--border-soft);
}
.card-service:hover{
  box-shadow: 0 14px 32px -12px rgba(26,56,57,0.28);
  border-color: var(--accent);
}
.card-service .icon{
  margin-left:auto; margin-right:auto; width:52px; height:52px;
  background: var(--bg-panel-2); border-color: var(--accent-dim);
}
.card-service h3{ font-size:16.5px; }
.card-service p{ font-size:13.5px; }
.card-service .card-link{ margin-left:auto; margin-right:auto; }

@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .grid-5{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .grid-5{ grid-template-columns: 1fr; }
  section{ padding: 60px 0; }
}

/* ==========================================================================
   Signal motif (signature element)
   ========================================================================== */
.signal-graphic{
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 40px;
  aspect-ratio: 1 / 1;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.signal-graphic::before{
  content:""; position:absolute; inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(242,107,100,0.14), transparent 60%);
}
.pulse-dot{
  width: 12px; height:12px; border-radius:50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(242,107,100,0.6);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(242,107,100,0.55); }
  70%{ box-shadow: 0 0 0 16px rgba(242,107,100,0); }
  100%{ box-shadow: 0 0 0 0 rgba(242,107,100,0); }
}

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stat-strip{
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 44px 0;
}
.stat-strip .grid{ grid-template-columns: repeat(4,1fr); text-align:center; }
.stat-strip strong{ display:block; font-family: var(--font-display); font-size: 34px; color: var(--accent-text); }
.stat-strip span{ font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing:.06em; }
@media (max-width: 700px){ .stat-strip .grid{ grid-template-columns: repeat(2,1fr); gap: 32px; } }

/* Bold salmon variant — used once on the homepage for a moment of punch */
.stat-strip.bold{
  background: #F26B64;
  border-top: none; border-bottom: none;
}
.stat-strip.bold strong{ color: var(--text); }
.stat-strip.bold span{ color: rgba(26,56,57,0.78); }

/* Winding road banner — full-width illustrative road with geese walking it */
.winding-road-banner{
  position: relative;
  width: 100%;
  aspect-ratio: 2200 / 682;
  overflow: hidden;
}
.winding-road-svg{
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  width: 100%;
  height: 100%;
  display: block;
}
.winding-road-goose{
  position: absolute;
  width: auto;
  z-index: 1;
  filter: drop-shadow(0 2px 3px rgba(26,56,57,0.18));
}
@media (max-width: 700px){
  .winding-road-banner{ aspect-ratio: 2200 / 900; }
}

/* ==========================================================================
   Split / process rows
   ========================================================================== */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; }
.split.reverse .split-media{ order:2; }
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; } .split.reverse .split-media{ order:0; } }

.checklist li{
  display:flex; gap:12px; padding: 10px 0; border-top: 1px solid var(--border-soft);
  font-size: 15px; color: var(--text);
}
.checklist li:first-child{ border-top:none; }
.checklist li::before{
  content:""; width: 6px; height: 6px; margin-top:9px; border-radius:50%; background: var(--accent); flex-shrink:0;
}

/* ==========================================================================
   Quote / testimonial
   ========================================================================== */
.quote-block{
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 56px;
}
.quote-block p.quote{
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text); line-height:1.35; margin-bottom: 28px;
}
.quote-attr{ display:flex; align-items:center; gap:14px; }
.quote-attr .avatar{
  width: 44px; height:44px; border-radius:50%; background: var(--bg-panel-3);
  border: 1px solid var(--border); display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-text);
}
.quote-attr strong{ display:block; font-size: 14.5px; }
.quote-attr span{ font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   Real photography — full-bleed band + framed photo (replaces SVG in some spots)
   ========================================================================== */
.photo-band{
  position:relative;
  min-height: 420px;
  display:flex; align-items:center;
  background-size:cover; background-position:center;
  border-radius: var(--radius-l);
  overflow:hidden;
  color:#fff;
}
.photo-band::before{
  content:"";
  position:absolute; top:0; right:0; bottom:0; left:0;
  background: linear-gradient(115deg, rgba(15,36,35,0.90), rgba(15,36,35,0.58) 55%, rgba(15,36,35,0.22));
}
.photo-band-content{ position:relative; z-index:1; max-width:520px; padding: 48px; }
.photo-band .eyebrow{ color: var(--accent); }
.photo-band h2{ color:#fff; }
.photo-band p{ color: rgba(247,244,238,0.82); }
@media (max-width: 640px){
  .photo-band{ min-height: 320px; }
  .photo-band-content{ padding: 32px; }
}

.photo-frame{
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  overflow:hidden;
  aspect-ratio: 4/3;
}
.photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 64px;
  text-align:center;
}
.cta-band h2{ font-size: clamp(26px,3vw,36px); margin-bottom: 14px; }
.cta-band p{ max-width: 520px; margin-left:auto; margin-right:auto; }
.cta-band .hero-cta{ justify-content:center; }

/* Bold dark variant — bookends the homepage with the hero */
.cta-band-dark{
  background: radial-gradient(140% 160% at 85% 110%, #234B49 0%, #1A3839 45%, #12302E 100%);
  border-color: rgba(247,244,238,0.1);
}
.cta-band-dark h2{ color: #FFFFFF; }
.cta-band-dark p{ color: rgba(247,244,238,0.72); }
.cta-band-dark .btn-ghost{ color: #F7F4EE; border-color: rgba(247,244,238,0.3); }
.cta-band-dark .btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ padding: 72px 0 36px; border-top: 1px solid var(--border-soft); }
.footer-top{ display:grid; grid-template-columns: 1fr 2.6fr; gap: 64px; margin-bottom: 56px; align-items: start; }
.footer-links-group{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-brand p{
  max-width: 320px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}
.footer-col h4{
  display: inline-block;
  font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em;
  color: var(--accent-text); background: var(--bg-panel-2); border-radius: 999px;
  padding: 5px 14px; margin: 0 0 18px -14px; font-weight:600; white-space: nowrap;
}
.footer-col li{ margin-bottom: 12px; }
.footer-col a{ font-size: 14.5px; color: var(--text-muted); transition: color .15s ease; }
.footer-col a:hover{ color: var(--accent-text); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 28px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-muted); flex-wrap:wrap; gap: 12px;
}
.footer-bottom a{ color: var(--text-muted); }
.footer-bottom a:hover{ color: var(--text); }
.footer-socials{ display:flex; gap:16px; }

@media (max-width: 880px){
  .footer-top{ grid-template-columns: 1fr; gap: 40px; }
  .footer-links-group{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px){
  .footer-links-group{ grid-template-columns: 1fr; }
  .cta-band{ padding: 40px 26px; }
  .quote-block{ padding: 32px; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in{ opacity: 1; transform: translateY(0) scale(1); }
.grid .reveal:nth-child(1){ transition-delay: 0s; }
.grid .reveal:nth-child(2){ transition-delay: .08s; }
.grid .reveal:nth-child(3){ transition-delay: .16s; }
.grid .reveal:nth-child(4){ transition-delay: .24s; }
.grid .reveal:nth-child(5){ transition-delay: .32s; }
.grid .reveal:nth-child(6){ transition-delay: .4s; }
.grid .reveal:nth-child(7){ transition-delay: .48s; }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-hero{ padding: 68px 0 56px; }
.page-hero h1{ font-size: clamp(32px, 4.4vw, 50px); max-width: 760px; }
.page-hero p{ font-size: 17px; max-width: 560px; }
.breadcrumb{ font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); margin-bottom: 18px; letter-spacing: .04em; }
.breadcrumb a{ color: var(--text-dim); }
.breadcrumb a:hover{ color: var(--accent-text); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full{ grid-column: 1 / -1; }
label{ display:block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
input, select, textarea{
  width:100%; background: var(--bg-panel-2); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 12px 14px; color: var(--text);
  font-family: var(--font-body); font-size: 16px;
}
input:focus, select:focus, textarea:focus{ outline: 2px solid var(--accent-dim); outline-offset: 1px; border-color: var(--accent-dim); }
textarea{ resize: vertical; min-height: 120px; }
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }

/* visible keyboard focus */
a:focus-visible, button:focus-visible{ outline: 2px solid var(--accent-dim); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Dashboard collage — layered product screenshots with hover zoom
   ========================================================================== */
.dashboard-collage{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.dashboard-shot{
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: 0 30px 70px -24px rgba(26,56,57,0.35), 0 0 0 1px var(--border);
  transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s ease;
}
.dashboard-shot img{ display:block; width:100%; height:auto; }
.dashboard-shot:hover{
  box-shadow: 0 50px 110px -20px rgba(26,56,57,0.45), 0 0 0 1px var(--border);
  z-index: 40;
}
.dashboard-chrome{
  height: 26px; display:flex; align-items:center; gap:6px; padding: 0 12px;
  background: var(--bg-panel-3); border-bottom: 1px solid var(--border);
}
.dashboard-chrome i{ width:8px; height:8px; border-radius:50%; background: var(--border); display:block; }

.dashboard-shot-a{ left:0; top:4%; width:74%; transform-origin: left center; z-index:1; }
.dashboard-shot-b{ right:0; top:0; width:38%; transform-origin: right top; z-index:2; }
.dashboard-shot-c{ left:12%; bottom:0; width:44%; transform-origin: left bottom; z-index:3; }
.dashboard-shot-d{ right:2%; bottom:8%; width:34%; transform-origin: right bottom; z-index:4; }

.dashboard-shot-a:hover{ transform: scale(1.3); }
.dashboard-shot-b:hover, .dashboard-shot-c:hover, .dashboard-shot-d:hover{ transform: scale(1.55); }

@media (max-width: 860px){
  .dashboard-collage{ aspect-ratio:auto; display:flex; flex-direction:column; gap:14px; }
  .dashboard-shot{ position:static; width:100% !important; }
  .dashboard-shot:hover{ transform:none; }
}

/* ==========================================================================
   Warm section background + decorative dashed-line texture
   (inspired by flowing dashed-line motifs elsewhere in the brand's road banner)
   ========================================================================== */
.bg-warm{ background: var(--bg-warm); }

.decorative-lines{
  position: relative;
}
.decorative-lines::before{
  content: "";
  position: absolute; top:0; right:0; bottom:0; left:0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='260' viewBox='0 0 440 260'%3E%3Cpath d='M-20,60 C60,20 140,100 220,60 C300,20 380,100 460,60' stroke='%23F26B64' stroke-width='2' fill='none' stroke-dasharray='6 10' opacity='0.3'/%3E%3Cpath d='M-20,140 C60,180 140,100 220,140 C300,180 380,100 460,140' stroke='%23F26B64' stroke-width='2' fill='none' stroke-dasharray='6 10' opacity='0.22'/%3E%3Cpath d='M-20,210 C60,175 140,245 220,210 C300,175 380,245 460,210' stroke='%23F26B64' stroke-width='2' fill='none' stroke-dasharray='6 10' opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 440px 260px;
  pointer-events: none;
  z-index: 0;
}
.decorative-lines > .container{ position: relative; z-index: 1; }

/* Circular photo with overlapping icon badge */
.circle-photo-badge{
  position: relative;
  width: 140px; height: 140px;
  margin: 0 auto 22px;
}
.circle-photo-badge img{
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--bg-panel-2);
}
.circle-photo-badge .badge{
  position: absolute; bottom: 2px; right: 2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--text); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--bg-panel);
}

/* Two-tone heading helper */
.tone-accent{ color: var(--accent-text); }
/* On dark hero backgrounds, the brighter accent already has strong contrast — override back to it there */
.video-hero-content .tone-accent,
.image-hero-content .tone-accent,
.hero-dark .tone-accent,
.photo-hero-h1 .tone-accent,
.cta-band-dark .tone-accent{ color: var(--accent); }

/* Screenshots "peeking" from the bottom of a hero into the section below */
.hero-peek{ position: relative; height: 0; z-index: 5; }
.hero-peek .container{ position: relative; }
.hero-peek-shot{
  position: absolute; top: -64px; width: 200px;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 50px -14px rgba(18,48,46,0.4);
  border: 4px solid #FFFFFF;
}
.hero-peek-shot img{ width: 100%; display: block; }
@media (max-width: 880px){
  .hero-peek-shot{ display: none; }
}

/* Full-width video hero (Cytrix product page) */
.video-hero{
  position: relative;
  min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.video-hero video{
  position: absolute; top:0; right:0; bottom:0; left:0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: brightness(1.35) contrast(1.03);
}
.video-hero::before{
  content: "";
  position: absolute; top:0; right:0; bottom:0; left:0;
  background: linear-gradient(100deg, rgba(15,36,35,0.93), rgba(15,36,35,0.68) 42%, rgba(15,36,35,0.12));
  z-index: 1;
}
.video-hero-content{ position: relative; z-index: 2; max-width: 620px; }
.video-hero-content h1{ font-size: clamp(40px, 5.6vw, 66px); color: #FFFFFF; }
.video-hero-content .eyebrow{ font-size: 15px; }
.video-hero-content .lede{ font-size: 20px; margin-top: 14px; }
.video-hero .eyebrow{ color: var(--accent); }
.video-hero .lede{ color: rgba(247,244,238,0.82); }
@media (max-width: 700px){
  .video-hero{ min-height: 480px; }
}

/* Services hub: 6 cards fill 2 complete rows — centre the truck alone in row 3 */
.truck-wrapper{ display:flex; align-items:flex-end; justify-content:center; height:100%; grid-column: 2 / 3; }
@media (max-width: 980px){
  .truck-wrapper{ display: none; }
}

/* Full-width image hero (photo background, text overlaid) — same pattern as .video-hero */
.image-hero{
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-l);
}
.image-hero img.bg-photo{
  position: absolute; top:0; right:0; bottom:0; left:0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.image-hero::before{
  content: "";
  position: absolute; top:0; right:0; bottom:0; left:0;
  background: linear-gradient(100deg, rgba(15,36,35,0.93), rgba(15,36,35,0.72) 42%, rgba(15,36,35,0.32));
  z-index: 1;
}
.image-hero-content{ position: relative; z-index: 2; max-width: 560px; padding: 48px; }
.image-hero-content .eyebrow{ color: var(--accent); }
.image-hero-content h2{ color: #FFFFFF; font-size: clamp(28px, 3.4vw, 40px); }
.image-hero-content p{ color: rgba(247,244,238,0.82); }
.image-hero-content .checklist li{ color: rgba(247,244,238,0.9); border-top-color: rgba(247,244,238,0.18); }
.image-hero-content .checklist li::before{ background: var(--accent); }
@media (max-width: 700px){
  .image-hero{ min-height: 480px; }
  .image-hero-content{ padding: 28px; }
}

/* Auto-scrolling photo marquee — pauses on hover, hovered image enlarges */
.photo-marquee{
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  padding: 130px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.photo-marquee-track{
  display: flex;
  gap: 20px;
  width: max-content;
  animation: photo-marquee-scroll 28s linear infinite;
}
.photo-marquee:hover .photo-marquee-track{
  animation-play-state: paused;
}
.photo-marquee-item{
  flex-shrink: 0;
  width: 300px;
  height: 220px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.photo-marquee-item:hover{
  box-shadow: 0 20px 40px -14px rgba(18,48,46,0.4);
}

/* Marquee lightbox — click any image to see it centred and full-size,
   regardless of where it sits in the scrolling strip */
.marquee-lightbox-overlay{
  position: fixed; inset: 0;
  background: transparent;
  display: none; align-items: center; justify-content: center;
  z-index: 500; padding: 40px;
  pointer-events: none;
}
.marquee-lightbox-overlay.open{ display: flex; }
.marquee-lightbox-overlay img{
  max-width: min(900px, 90vw);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
}
.photo-marquee-item img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
@keyframes photo-marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (max-width: 640px){
  .photo-marquee-item{ width: 220px; height: 160px; }
}

/* Outlined button variant with strong contrast, matching .btn's hover behaviour */
.btn-outline-dark{
  background: var(--bg-panel);
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-outline-dark:hover{
  background: var(--text);
  color: #FFFFFF;
  border-color: var(--text);
}

/* Generic hover-to-enlarge affordance, reusing the marquee lightbox JS */
.hover-enlarge{ cursor: zoom-in; }

/* Full-width photo-hero heading sizing — matches .video-hero-content h1's scale,
   for the plain photo-background heroes (Installation, Count/Classification/WIM, Support) */
.photo-hero-h1{ font-size: clamp(36px, 5vw, 58px); max-width: 760px; }
