/* Homepage sections below the hero (contact block is shared with product pages) */

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 1rem; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem 2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: -2px -2px auto -2px;
  height: 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--c);
}
.pillar:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--c); }
.pillar__key {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: var(--mist);
  font: 700 var(--text-xs) var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pillar h3 { font-size: var(--text-xl); }
.pillar p { color: var(--ink-2); font-size: var(--text-sm); }

/* ---------- Products bento ---------- */
.bento { display: grid; gap: 1rem; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(250px, auto); }
  .tile--feature { grid-column: span 7; grid-row: span 2; }
  .tile--amber { grid-column: span 5; }
  .tile--teal { grid-column: span 5; }
  .tile--photo { grid-column: span 7; }
  .tile--white { grid-column: span 5; }
}
@media (min-width: 720px) and (max-width: 1079px) {
  .tile--feature, .tile--photo, .tile--white { grid-column: 1 / -1; }
}

.tile {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 260px;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.tile::after {
  /* pointer spotlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgb(255 255 255 / 0.35), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration);
}
.tile:hover { transform: translate(-5px, -5px); box-shadow: 8px 8px 0 var(--ink); }
.tile:hover::after { opacity: 1; }
.tile__index {
  font: 700 var(--text-xs) var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.tile__name { font: 700 var(--text-xl) / 1.05 var(--font-display); letter-spacing: -0.035em; }
.tile__text { max-width: 44ch; color: inherit; opacity: 0.9; }
.tile__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
}
.tile__icon--red { background: var(--red); color: var(--white); }
.tile__icon svg { width: 26px; height: 26px; }
.tile__go {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid currentColor;
  transition: transform var(--duration) var(--ease-spring), background-color var(--duration-fast), color var(--duration-fast);
}
.tile__go svg { width: 18px; height: 18px; }
.tile:hover .tile__go { transform: rotate(45deg) scale(1.08); background: var(--ink); color: var(--white); border-color: var(--ink); }

.tile--amber { background: var(--amber); }
.tile--teal { background: var(--teal); }
.tile--white { background: var(--white); }

/* Photo tiles: image under a navy scrim, text on top */
.tile--feature, .tile--photo { color: var(--white); background: var(--navy); justify-content: flex-end; }
.tile__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.tile--feature::before, .tile--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(21 34 60 / 0.05) 15%, rgb(21 34 60 / 0.78) 55%, rgb(21 34 60 / 0.96) 100%);
}
.tile:hover .tile__photo { transform: scale(1.05); }
.tile__body { display: flex; flex-direction: column; gap: 0.8rem; }
.tile--feature { min-height: 540px; }
.tile--feature .tile__name { font-size: var(--text-2xl); }
.tile--photo { min-height: 300px; }
.tile__badge {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font: 700 var(--text-xs) var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.tile__tags span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.4);
  font-size: var(--text-xs);
  backdrop-filter: blur(6px);
}
.tile--feature:hover, .tile--photo:hover { box-shadow: 8px 8px 0 var(--amber); }
.tile--feature .tile__go, .tile--photo .tile__go { color: var(--white); }
.tile--feature:hover .tile__go, .tile--photo:hover .tile__go { background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ---------- Industries ---------- */
.industries { position: relative; overflow: hidden; }
.tri--ind { --size: 380px; --tri: var(--navy-3); right: -90px; top: -60px; transform: rotate(18deg); }
.industries .wrap { position: relative; }
.ind-list { border-top: 1px solid var(--navy-line); }
.ind {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--navy-line);
}
.ind::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity var(--duration);
}
.ind > * { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .ind { grid-template-columns: 80px 1fr 1.4fr 170px; align-items: center; padding-inline: 1rem; }
  .ind__products { justify-content: flex-end; }
  .ind:hover::before { opacity: 1; }
}
.ind__num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c);
  color: var(--cf, var(--ink));
  font: 700 var(--text-sm) var(--font-display);
}
.ind h3 { font-size: var(--text-xl); align-self: center; }
.ind p { color: var(--on-navy-2); grid-column: 2; }
.ind__products { display: flex; flex-wrap: wrap; gap: 0.4rem; grid-column: 2; }
@media (min-width: 900px) { .ind p, .ind__products { grid-column: auto; } }
.ind__products a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--navy-line);
  font-size: var(--text-xs);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.ind__products a:hover { background: var(--c); color: var(--cf, var(--ink)); border-color: var(--c); }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .why-grid { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; } }
.why-aside { align-self: start; }
@media (min-width: 1000px) { .why-aside { position: sticky; top: 120px; } }
.why-aside h2 { font-size: var(--text-2xl); margin-top: 1.25rem; }
.why-aside p { margin-top: 1.25rem; color: var(--ink-2); font-size: var(--text-lg); max-width: 40ch; }
.why-quote {
  margin: 2rem 0 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--amber-soft);
  box-shadow: 6px 6px 0 var(--amber);
  font: 700 var(--text-lg) / 1.35 var(--font-display);
  letter-spacing: -0.015em;
}
.reasons { counter-reset: r; display: grid; gap: 0.75rem; }
.reason {
  counter-increment: r;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.3rem 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--duration-fast), transform var(--duration) var(--ease-out);
}
.reason:hover { border-color: var(--ink); transform: translateX(6px); }
.reason::before {
  content: counter(r, decimal-leading-zero);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 12px;
  background: var(--c);
  color: var(--cf, var(--ink));
  font: 700 var(--text-sm) var(--font-display);
}
.reason h3 { font-size: var(--text-lg); letter-spacing: -0.02em; align-self: end; }
.reason p { color: var(--ink-2); font-size: var(--text-sm); }

/* ---------- Engagement ---------- */
.tiers { position: relative; display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .tiers::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 8%;
    right: 8%;
    height: 4px;
    border-radius: 2px;
    background: var(--stripe);
  }
}
.tier {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}
.tier__step {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--c);
  color: var(--cf, var(--ink));
  font: 700 var(--text-lg) var(--font-display);
}
.tier h3 { font-size: var(--text-xl); margin-top: 1.25rem; }
.tier p { margin-top: 0.75rem; color: var(--ink-2); }
.tier__meta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: var(--mist);
  font-size: var(--text-xs);
  font-weight: 700;
}
.engage-note { margin-top: 2.5rem; text-align: center; color: var(--ink-2); }
.engage-note strong { color: var(--ink); }

/* ---------- Clients marquee ---------- */
.clients { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem); }
.clients__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.clients__head h2 { font-size: var(--text-xl); max-width: 22ch; }
.clients__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 1rem; }
.marquee__track { display: flex; gap: 1rem; width: max-content; animation: scroll 60s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track,
.clients.is-paused .marquee__track { animation-play-state: paused; }
.marquee-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 700 var(--text-xs) / 1 var(--font-body);
  cursor: pointer;
}
.marquee-toggle:hover { background: var(--amber); }
.marquee-toggle svg { width: 12px; height: 12px; }
.marquee-toggle[hidden] { display: none; }
@keyframes scroll { to { transform: translateX(calc(-50% - 0.5rem)); } }
.logo-chip {
  display: grid;
  place-items: center;
  width: 170px;
  height: 92px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--duration-fast);
}
.logo-chip img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter var(--duration), opacity var(--duration);
}
.logo-chip:hover { border-color: var(--ink); }
.logo-chip:hover img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Resources ---------- */
.posts { display: grid; gap: 1rem; }
@media (min-width: 860px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 220px;
  padding: 1.6rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--white);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.post:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--c); }
.post__kind {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--c);
  color: var(--cf, var(--ink));
  font: 700 var(--text-xs) var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post h3 { font-size: var(--text-lg); letter-spacing: -0.02em; }
.post time { margin-top: auto; font-size: var(--text-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.resources-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Contact (shared) ---------- */
.contact { padding-bottom: var(--space-section); }
.contact__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 3rem;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
  border-radius: calc(var(--radius-lg) + 6px);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}
@media (min-width: 1000px) { .contact__card { grid-template-columns: 1fr 1.1fr; } }
.tri--cta1 { --size: 300px; --tri: var(--red); z-index: -1; left: -90px; bottom: -110px; transform: rotate(-12deg); }
.tri--cta2 { --size: 140px; --tri: var(--amber); z-index: -1; left: 38%; top: -50px; transform: rotate(196deg); opacity: 0.9; }
.contact h2 { font-size: var(--text-2xl); margin-top: 1.25rem; }
.contact__lede { margin-top: 1.25rem; color: var(--on-navy-2); font-size: var(--text-lg); max-width: 40ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.offices { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 640px) { .offices { grid-template-columns: repeat(2, 1fr); } }
.office {
  padding: 1.4rem;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  background: rgb(29 44 74 / 0.85);
  backdrop-filter: blur(6px);
  font-size: var(--text-sm);
  color: var(--on-navy-2);
}
.office--hq { grid-column: 1 / -1; border-color: var(--amber); }
.office h3 { font: 700 var(--text-lg) var(--font-display); color: var(--on-navy); }
.office__role { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem; color: var(--amber); }
.office address { font-style: normal; margin-top: 0.85rem; }
.office ul { margin-top: 0.85rem; display: grid; gap: 0.25rem; }
.office a { color: var(--on-navy); text-decoration: none; }
.office a:hover { color: var(--amber); }

/* Slim CTA */
.contact__card--slim { align-items: center; box-shadow: 10px 10px 0 var(--accent, var(--red)); }
.contact__card--slim h2 { max-width: 20ch; }
@media (min-width: 1000px) {
  .contact__card--slim { grid-template-columns: 1.4fr auto; }
  .contact__card--slim .contact__actions { margin-top: 0; }
}

.section-more { margin-top: 2rem; }
.section--mist + .contact { padding-top: var(--space-section); }
