/* ==========================================================================
   Cleveland Website Design — main.css
   Mobile-first, no frameworks, no webfonts (system stack for performance)
   ========================================================================== */

:root {
  --navy: #0d1b2e;
  --navy-2: #13243c;
  --navy-3: #1b3354;
  --blue: #2f7df6;
  --blue-dark: #1d5fd0;
  --sky: #9cc3ff;
  --ink: #1f2937;
  --muted: #5b6776;
  --line: #e5eaf1;
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --gold: #f5a623;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 46, .10);
  --shadow-lg: 0 24px 60px rgba(13, 27, 46, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--navy); margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.wrap { width: min(1160px, 92%); margin-inline: auto; }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c4d2e6; }

.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 46em; }
.section--navy .lead { color: #c4d2e6; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: 0;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 125, 246, .35);
}
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue-dark); }
.section--navy .btn--ghost, .hero .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn--lg { padding: 18px 38px; font-size: 1.08rem; }

/* --- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 46, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none !important; }
.brand strong { color: #fff; font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; }
.brand span { color: var(--sky); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #d7e2f2;
  font-weight: 600;
  font-size: .95rem;
  padding: 9px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.09); }
.nav .nav-cta {
  background: var(--blue);
  color: #fff;
  margin-left: 8px;
  border-radius: 999px;
  padding: 10px 20px;
}
.nav .nav-cta:hover { background: var(--blue-dark); }

/* Services dropdown */
.nav-item-drop { position: relative; }
.nav-item-drop > a .chev { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-item-drop:hover .nav-drop,
.nav-item-drop:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(2px);
}
.nav-item-drop:hover > a .chev,
.nav-item-drop:focus-within > a .chev { transform: rotate(180deg); }
.nav-drop a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .92rem;
  color: #d7e2f2;
  white-space: nowrap;
}
.nav-drop a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-drop a.drop-all { border-top: 1px solid rgba(255,255,255,.1); margin-top: 6px; padding-top: 12px; color: var(--sky); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 10px 4vw 20px;
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px; font-size: 1.05rem; }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; }
  /* mobile: show services sub-links inline, indented */
  .nav-item-drop > a .chev { display: none; }
  .nav-drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 4px 18px;
    min-width: 0;
  }
  .nav-drop a { font-size: .95rem; padding: 9px 14px; white-space: normal; }
  .nav-drop a.drop-all { border-top: 0; margin-top: 0; padding-top: 9px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(47,125,246,.28), transparent 60%),
    radial-gradient(1100px 340px at 62% 102%, rgba(244,150,60,.13), transparent 65%),
    radial-gradient(700px 420px at -10% 110%, rgba(47,125,246,.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1a2f50 100%);
  color: #fff;
  padding: clamp(70px, 11vw, 140px) 0 clamp(56px, 8vw, 100px);
}
.hero h1 { color: #fff; max-width: 14em; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero .lead { color: #c4d2e6; margin: 18px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding: 0; list-style: none; }
.hero-points li { color: #aebfd8; font-size: .92rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* --- Logo wall ------------------------------------------------------------ */
.logo-wall { padding: 40px 0 48px; background: var(--white); border-bottom: 1px solid var(--line); }
.logo-wall p.label {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 26px;
}
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 48px;
}
.logo-grid img {
  height: 34px;
  width: auto;
  filter: grayscale(1) opacity(.6);
  transition: filter .25s ease;
}
.logo-grid img.logo-tall { height: 52px; }
.logo-grid img:hover { filter: none; }
@media (max-width: 640px) {
  .logo-grid { gap: 20px 28px; }
  .logo-grid img { height: 26px; }
  .logo-grid img.logo-tall { height: 40px; }
}

/* --- Cards / grids --------------------------------------------------------- */
.grid { display: grid; gap: 26px; margin-top: 46px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* --- Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 10px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.stat b { display: block; font-size: clamp(1.9rem, 4vw, 2.7rem); color: #fff; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--sky); font-size: .88rem; font-weight: 600; }

/* --- Testimonials ------------------------------------------------------------ */
.t-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.t-card .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 3px; margin-bottom: 14px; }
.t-card blockquote { margin: 0 0 20px; font-size: 1rem; color: var(--ink); flex: 1; }
.t-card cite { font-style: normal; }
.t-card cite b { display: block; color: var(--navy); }
.t-card cite span { color: var(--muted); font-size: .88rem; }

/* --- Portfolio / industries --------------------------------------------------- */
.industry-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 30px; padding: 0; margin: 36px 0 0; list-style: none; }
@media (max-width: 880px) { .industry-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industry-list { grid-template-columns: 1fr; } }
.industry-list li { padding: 12px 16px; background: var(--bg-soft); border-radius: 10px; font-weight: 600; color: var(--navy); font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.industry-list li::before { content: "→"; color: var(--blue); font-weight: 800; }

.client-cols { columns: 3; column-gap: 40px; margin-top: 30px; padding: 0; list-style: none; }
@media (max-width: 880px) { .client-cols { columns: 2; } }
@media (max-width: 560px) { .client-cols { columns: 1; } }
.client-cols li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .96rem; break-inside: avoid; }

/* --- CTA band ------------------------------------------------------------------ */
.cta-band {
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(47,125,246,.35), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 70px);
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4d2e6; max-width: 42em; margin: 0 auto 30px; }

/* --- Forms ----------------------------------------------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); }
.field label .req { color: #d33; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47,125,246,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
@media (max-width: 760px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }
.checks label { display: flex; align-items: center; gap: 9px; font-size: .93rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.checks input { width: 17px; height: 17px; accent-color: var(--blue); }

/* Honeypot — hidden from humans, visible to bots */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

.form-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }
.alert { border-radius: 10px; padding: 14px 18px; font-weight: 600; margin-bottom: 22px; }
.alert--error { background: #fdecec; color: #a12626; border: 1px solid #f3c6c6; }
.alert--ok { background: #e9f7ef; color: #1d6b3a; border: 1px solid #bfe5cd; }

/* --- Contact info blocks ------------------------------------------------------------ */
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .item .ico {
  flex: 0 0 46px; height: 46px; border-radius: 12px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.contact-info .item b { color: var(--navy); display: block; }
.contact-info .item span, .contact-info .item a { color: var(--muted); font-size: .95rem; }

/* --- Page hero (interior pages) ------------------------------------------------------ */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: clamp(54px, 8vw, 90px) 0;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #c4d2e6; max-width: 46em; font-size: 1.1rem; margin-bottom: 0; }

/* --- Map hero (Contact page) -------------------------------------------------------------- */
.page-hero--map { position: relative; overflow: hidden; }
.page-hero--map .wrap { position: relative; z-index: 2; }
.map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.map-bg iframe {
  position: absolute;
  top: -110px;
  left: -80px;
  width: calc(100% + 160px);
  height: calc(100% + 260px);
  border: 0;
  filter: grayscale(.55) saturate(.5) brightness(.5) contrast(.95);
}
.map-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,27,46,.93) 0%, rgba(13,27,46,.78) 45%, rgba(27,51,84,.62) 100%);
}

/* --- Photo hero (muted landmark photography) ------------------------------------------------ */
.page-hero--photo { position: relative; overflow: hidden; }
.page-hero--photo .wrap { position: relative; z-index: 2; }
.photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(.45) saturate(.6) brightness(.55) contrast(1.02);
}
.photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(13,27,46,.93) 0%, rgba(13,27,46,.76) 45%, rgba(27,51,84,.55) 100%);
}
.hero-credit {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  font-size: .62rem;
  letter-spacing: .03em;
  color: rgba(255,255,255,.45);
}
.hero-credit a { color: rgba(255,255,255,.45); }

/* --- Footer ----------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #aebfd8; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #aebfd8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  font-size: .85rem;
  color: #7d8fa9;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
.footer-brand strong { color: #fff; font-size: 1.15rem; display: block; margin-bottom: 10px; }

/* --- Utility ------------------------------------------------------------------------------ */
.mt-0 { margin-top: 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* --- Hero skyline (animated SVG of the Flats) ----------------------------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }

/* --- Hero photo background (muted Edgewater skyline + Ken Burns) ------------ */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/img/headers/cleveland-hero.webp');
  background-size: cover;
  background-position: center 38%;
  filter: grayscale(.4) saturate(.55) brightness(.42) contrast(1.05);
  animation: heroZoom 42s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12) translateX(-1.5%); }
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 360px at 60% 104%, rgba(244,150,60,.16), transparent 65%),
    linear-gradient(105deg, rgba(13,27,46,.94) 0%, rgba(13,27,46,.82) 42%, rgba(19,36,60,.55) 75%, rgba(27,51,84,.45) 100%);
}
/* faint drifting code fragments - visible only when you look for them */
.hero-code { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-code pre {
  position: absolute;
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  font-weight: 500;
  white-space: pre;
  color: rgba(156,195,255,.075);
  text-shadow: 0 0 12px rgba(156,195,255,.04);
  animation: codeDrift 11s ease-in-out infinite alternate;
  user-select: none;
}
.hero-code pre:nth-child(1) { top: 16%; right: 7%;  transform: rotate(-1.5deg); animation-duration: 12s; }
.hero-code pre:nth-child(2) { top: 48%; right: 24%; transform: rotate(1deg);    animation-duration: 9s;  animation-delay: 2s; color: rgba(245,166,35,.06); }
.hero-code pre:nth-child(3) { top: 12%; right: 34%; transform: rotate(.5deg);   animation-duration: 13s; animation-delay: 5s; font-size: 11px; color: rgba(156,195,255,.06); }
.hero-code pre:nth-child(4) { top: 66%; right: 9%;  transform: rotate(-1deg);   animation-duration: 10s; animation-delay: 3.5s; font-size: 11px; }
@keyframes codeDrift {
  from { translate: 0 0;      opacity: .75; }
  to   { translate: 0 -14px;  opacity: 1; }
}
@media (max-width: 880px) {
  .hero-code pre { display: none; }
  .hero-code pre:nth-child(1) { display: block; font-size: 10px; right: 4%; top: 10%; }
}
.hero .hero-credit { z-index: 2; }
.hero-skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(160px, 28vw, 360px);
  pointer-events: none;
  z-index: 1;
}
.hero-skyline svg { width: 100%; height: 100%; display: block; }
.sky-back { animation: skyDrift 60s ease-in-out infinite alternate; }
.sky-front { animation: skyDrift 38s ease-in-out infinite alternate-reverse; }
@keyframes skyDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-30px); }
}
.sky-light { animation: twinkle 4s ease-in-out infinite; }
.sky-light:nth-child(3n)  { animation-delay: 1.3s; }
.sky-light:nth-child(4n)  { animation-delay: 2.2s; }
.sky-light:nth-child(5n)  { animation-delay: 3.1s; }
@keyframes twinkle {
  0%, 100% { opacity: .9; }
  50% { opacity: .25; }
}
.sky-beacon { animation: beacon 2.6s ease-in-out infinite; }
@keyframes beacon {
  0%, 100% { opacity: 1; }
  50% { opacity: .15; }
}
.sky-refl { animation: shimmer 5s ease-in-out infinite; transform-origin: center bottom; }
.sky-refl:nth-child(2n) { animation-delay: 1.7s; }
.sky-refl:nth-child(3n) { animation-delay: 3.2s; }
@keyframes shimmer {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.75); }
}
@media (max-width: 720px) {
  .hero { padding-bottom: clamp(150px, 38vw, 220px); }
}

/* --- Logo marquee carousel -------------------------------------------------- */
.logo-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding-right: 64px;
  animation: marquee 36s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-track img {
  height: 34px;
  width: auto;
  flex: 0 0 auto;
  filter: grayscale(1) opacity(.6);
  transition: filter .25s ease, transform .25s ease;
}
.logo-track img.logo-tall { height: 54px; }
.logo-track img:hover { filter: none; transform: scale(1.08); }
@media (max-width: 640px) {
  .logo-track { gap: 40px; animation-duration: 26s; }
  .logo-track img { height: 26px; }
  .logo-track img.logo-tall { height: 42px; }
}

/* --- SVG card icons ----------------------------------------------------------- */
.card .icon svg { width: 26px; height: 26px; stroke: #fff; }

/* --- Interactive industry tiles ------------------------------------------------ */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 880px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
.industry-grid li { display: block; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
  text-decoration: none !important;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile.in-view { animation: tileIn .55s ease forwards; }
@keyframes tileIn {
  to { opacity: 1; transform: translateY(0); }
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(47,125,246,.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.tile:hover::after { transform: translateX(100%); }
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.tile .t-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.tile .t-ico svg { width: 20px; height: 20px; stroke: var(--blue); transition: stroke .25s ease; }
.tile:hover .t-ico { background: var(--blue); border-color: var(--blue); }
.tile:hover .t-ico svg { stroke: #fff; }
.tile .t-go {
  position: absolute;
  right: 14px;
  bottom: 16px;
  color: var(--blue);
  font-weight: 800;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s ease;
}
.tile:hover .t-go { opacity: 1; transform: translateX(0); }

/* --- FAQ accordions ----------------------------------------------------------------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 16px 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 800; font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq .faq-a p { margin: 0 0 10px; }

/* --- Contact info SVG icons ----------------------------------------------------------- */
.contact-info .item .ico svg { width: 22px; height: 22px; stroke: var(--blue); }
.icon-line { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); align-items: center; justify-content: center; margin-bottom: 12px; }
.icon-line svg { width: 22px; height: 22px; stroke: var(--blue); }

/* --- Headshot ---------------------------------------------------------------------- */
.headshot {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.bio-row { display: flex; gap: 22px; align-items: center; margin-bottom: 22px; }
.bio-row .headshot { flex: 0 0 132px; }

/* --- Article / longform pages -------------------------------------------------------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article-body h3 { font-size: 1.18rem; margin-top: 1.5em; }
.article-body p, .article-body li { color: #36404d; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: .4em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile { opacity: 1; transform: none; }
}
