/* SANalytics — landing page
   Brand: yellow #f3b824 throughout, near-black ink, accent pink hover.
   Dark code/terminal blocks are intentional contrast against the yellow page.
*/

:root {
  --yellow: #f3b824;
  --yellow-deep: #d99c0c;       /* hover / accents */
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-dim: #5a5a5a;
  --line: rgba(26, 26, 26, 0.18);
  --panel: #ffffff;             /* white cards on yellow */
  --terminal-bg: #14161b;       /* dark blocks */
  --terminal-ink: #e7ecf3;
  --pink: #ff65d6;
  --green: #4ade80;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--pink); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); border-bottom: 1px dashed var(--line); padding-bottom: 0.4em; }
h3 { font-size: 1.1rem; }
h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: var(--yellow);
  border-bottom: 1px solid var(--line);
}
.brand img {
  height: 90px;        /* ~3x previous size */
  display: block;
}
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { color: var(--pink); }
.nav-cta {
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: transparent;
}
.nav-cta:hover { background: var(--ink); color: var(--yellow) !important; }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .brand img { height: 48px; }
  .nav-toggle { display: flex; }

  .site-nav {
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 6px;
    padding-top: 2px;
    border-top: 1px solid var(--line);
    display: none;
  }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a {
    padding: 8px 4px;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-cta {
    background: var(--ink);
    color: var(--yellow) !important;
    border: 0;
    border-radius: 6px;
    margin-top: 6px;
    padding: 9px 12px;
    text-align: center;
    font-size: 0.95rem;
  }
  .site-nav a[aria-current="page"] {
    color: var(--ink);
    border-left: 3px solid var(--ink);
    padding-left: 10px;
  }
}

/* ---------- hero (yellow brand statement) ---------- */
.hero {
  background: var(--yellow);
  color: var(--ink);
  min-height: calc(100vh - 122px); /* fill viewport under taller header */
  display: flex;
  align-items: center;
  padding: 48px 28px;
}
.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero-headline {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(3.5rem, 11vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
}
.hero-headline span { display: block; }
.hero-mark {
  height: clamp(15rem, 44vw, 40rem);
  width: auto;
  display: block;
  justify-self: end;
  /* slow, gentle fade in on first paint */
  animation: hero-mark-fade 1800ms ease-out both;
}
@keyframes hero-mark-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; opacity: 1; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-mark {
    justify-self: center;
    /* fill most of the phone width — caps at ~22rem so larger phones don't blow it up */
    width: min(88vw, 22rem);
    height: auto;
  }
  .hero { min-height: 0; padding: 40px 16px 56px; }
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.kicker {
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 18px 0 24px;
}
.lead-h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  border: 0;
  padding: 0;
}

/* ---------- terminal / code blocks (kept dark for contrast) ---------- */
.terminal, .diagram {
  background: var(--terminal-bg);
  border: 1px solid var(--ink);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--terminal-ink);
  white-space: pre;
  box-shadow: 4px 4px 0 var(--ink);
}
.terminal code, .diagram code { font-family: inherit; }
.c-prompt { color: var(--pink); margin-right: 8px; }
.c-ok     { color: var(--green); margin-right: 8px; }
.c-dim    { color: #9aa3b2; }

/* ---------- bands / sections ---------- */
.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px;
}
.band-alt {
  /* slight tonal shift, still on the yellow palette */
  background: rgba(26, 26, 26, 0.04);
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band-contact { text-align: center; }
.band-contact a {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
}
.band-intro { padding-top: 64px; padding-bottom: 32px; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 880px) {
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
}

ul.dense { margin: 0; padding-left: 18px; }
ul.dense li { margin: 4px 0; color: var(--ink-soft); font-size: 0.92rem; }
ul.dense.two-col { columns: 2; column-gap: 32px; }
@media (max-width: 720px) { ul.dense.two-col { columns: 1; } }

/* ---------- audience strip (homepage, before pillars) ---------- */
.band-audiences { padding-bottom: 32px; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: 28px;
}
@media (max-width: 880px) { .audience-grid { grid-template-columns: 1fr; } }

.audience {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.audience:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}
.audience::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 6px;
  border-radius: 0 0 4px 4px;
  background: var(--ink);
}
.audience-local::before   { background: var(--ink); }
.audience-startup::before { background: var(--ink); }

.audience-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin: 0 0 14px;
}
.audience-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-weight: 600;
}
.audience h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.audience-local h3 .accent,
.audience-startup h3 .accent {
  /* reserved hook in case a sub-span is added later */
}
.audience p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ---------- service pillars (homepage) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}
.pillar:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}
.pillar-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
}
.pillar h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}
.pillar-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}
.pillar-points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.pillar-points li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.pillar-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--ink);
}

.band-contact .btn-primary { background: var(--ink); color: var(--yellow); }
.band-contact .btn-primary:hover { background: var(--pink); color: #fff; }

/* =====================================================================
   /what-do-you-need.html — business-wishes intake form
   ===================================================================== */
.form-hero {
  padding: clamp(48px, 8vw, 96px) 28px clamp(24px, 4vw, 40px);
}
.form-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.form-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 8px 0 18px;
}
.form-hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

.form-band {
  padding: 0 28px clamp(64px, 8vw, 120px);
}
.wish-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* invisible honeypot */
.hp { position: absolute; left: -9999px; top: -9999px; }

.row { display: flex; flex-direction: column; gap: 20px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.req { color: #c1121f; font-weight: 800; margin-left: 2px; }
.opt { color: var(--ink-dim); font-weight: 500; font-size: 0.85rem; }

.wish-form input[type="text"],
.wish-form input[type="email"],
.wish-form input[type="tel"],
.wish-form textarea {
  font: inherit;
  font-size: 1.02rem;
  background: #fffaf0;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: box-shadow 150ms ease, background-color 150ms ease;
}
.wish-form textarea {
  font-family: var(--sans);
  resize: vertical;
  min-height: 86px;
  line-height: 1.45;
}
.wish-form input:focus,
.wish-form textarea:focus {
  background: #fff;
  box-shadow: 4px 4px 0 var(--yellow);
}
.wish-form input::placeholder,
.wish-form textarea::placeholder {
  color: #9a9a9a;
  font-style: italic;
}

.field-sep { border: 0; border-top: 1px dashed var(--line); margin: 8px 0; }
.wish-prompt {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.how-soon { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms ease;
}
.radios label:has(input:checked) { background: var(--yellow); }
.radios input { accent-color: var(--ink); }

.btn-submit {
  background: var(--ink);
  color: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
}
.btn-submit:hover { background: var(--pink); color: #fff; }
.btn-submit:active { transform: translateY(1px); }

.form-fineprint {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 4px 0 0;
}

/* ----- file inputs ----- */
.field-file input[type="file"] {
  font: inherit;
  font-size: 0.95rem;
  background: #fffaf0;
  border: 2px dashed var(--ink);
  border-radius: 10px;
  padding: 14px;
  width: 100%;
  cursor: pointer;
}
.field-file input[type="file"]:hover { background: #fff5d6; }
.field-help {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-top: 2px;
}

/* ----- draft-restored banner ----- */
.draft-banner {
  max-width: 720px;
  margin: 0 auto 12px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 4px 4px 0 var(--ink);
}
.draft-clear {
  background: var(--ink);
  color: var(--yellow);
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.draft-clear:hover { background: var(--pink); color: #fff; }

/* ----- Calendly alternative ----- */
.calendly-alt {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
}
.calendly-or {
  display: inline-block;
  font-family: var(--mono);
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.calendly-text {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.calendly-link {
  display: inline-block;
  margin-top: 4px;
  background: var(--ink);
  color: var(--yellow);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid var(--ink);
  transition: background-color 150ms ease, color 150ms ease;
}
.calendly-link:hover { background: var(--pink); color: #fff; }

/* ----- /thanks.html ----- */
.thanks {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) 28px;
  text-align: center;
}
.thanks-figure {
  margin: 0 0 24px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink);
  aspect-ratio: 4/3;
}
.thanks-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thanks h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 6px 0 14px;
}
.thanks-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 12px;
}
.thanks-meta {
  font-size: 0.95rem;
  color: var(--ink-dim);
  margin: 0 auto 24px;
  max-width: 50ch;
}
.thanks .btn-primary { background: var(--ink); color: var(--yellow); }
.thanks .btn-primary:hover { background: var(--pink); color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  background: var(--yellow);
}

/* ---------- scroll fade in/out ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- modal (pattern-interrupt) ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(8, 9, 12, 0.78);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 50;
  animation: fade-in 1100ms ease-out;
}
.modal[hidden] { display: none; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  /* gradual rise + scale, with a hold at the start */
  0%   { opacity: 0;   transform: translateY(28px) scale(0.96); }
  35%  { opacity: 0.4; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1;   transform: translateY(0)    scale(1); }
}

.modal-card {
  background: #fff;
  color: var(--ink);
  width: min(96vw, 1200px);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border-top: 10px solid var(--yellow);
  animation: pop-in 1200ms cubic-bezier(.2,.7,.2,1);
}
.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}
@media (max-width: 760px) {
  .modal-grid { grid-template-columns: 1fr; }
}

.modal-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-media-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.modal-media-frame img,
.modal-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Riley's ear sits near the top of the photo — anchor close to the top
   but leave a sliver of headroom above the ear. */
#riley-interrupt .modal-media-frame img { object-position: 62% 12%; }
.modal-caption {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.4;
  margin: 0;
}

.modal-copy { display: flex; flex-direction: column; }
.modal-card .eyebrow { color: var(--yellow-deep); }
.modal-card h2 {
  border: 0; padding: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin-bottom: 16px;
  color: var(--ink);
  line-height: 1.15;
}
.modal-card .lead {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  max-width: 60ch;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: transparent; border: 0;
  font-size: 1.8rem; line-height: 1;
  color: #6b7280; cursor: pointer;
}
.modal-close:hover { color: var(--ink); }

.modal-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--pink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #d1d5db; }
.btn-ghost:hover { border-color: var(--ink); }

/* =====================================================================
   Dark page (what-we-work-with.html)
   Inverts the palette: black bg, white ink, yellow accent.
   ===================================================================== */
.page-dark {
  background: #0a0a0a;
  color: #f3f4f6;
}
/* Header band stays yellow (matches homepage) so the brand mark sits on
   its native color. The dark theme picks up below the header. */
.page-dark .site-header {
  background: var(--yellow);
  border-bottom: 1px solid var(--line);
}
.page-dark .site-nav a { color: var(--ink); }
.page-dark .site-nav a:hover { color: var(--pink); }
.page-dark .site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.page-dark .nav-cta {
  border-color: var(--ink);
  color: var(--ink) !important;
}
.page-dark .nav-cta:hover { background: var(--ink); color: var(--yellow) !important; }

.hero-dark {
  background: #0a0a0a;
  color: #fff;
  min-height: calc(100vh - 122px);
  display: flex;
  align-items: center;
  padding: 48px 28px;
}
.hero-headline-dark { color: #fff; }
.hero-headline-dark span:nth-child(2),
.hero-headline-dark span:nth-child(4) {
  /* punch yellow into alternate lines for that "pop" */
  color: var(--yellow);
}

.hero-counter {
  margin: 0;
  text-align: right;
  font-family: var(--mono);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-counter-num {
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--yellow);
  letter-spacing: -0.04em;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}
.hero-counter-label {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  margin-top: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94a3b8;
}
.hero-counter-sub {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-style: italic;
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0;
  color: var(--yellow);
  text-transform: none;
}
@media (max-width: 760px) {
  .hero-counter { text-align: left; align-items: flex-start; }
}

.band-dark {
  background: #0a0a0a;
  color: #e5e7eb;
  padding: 80px 28px 96px;
}
.band-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.band-dark h2 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.12);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}
.eyebrow-dark { color: var(--yellow); margin-bottom: 24px; }
.lead-dark {
  color: #cbd5e1;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 70ch;
}
.band-dark-contact { text-align: center; padding-bottom: 120px; }
.band-dark-contact h2 { border: 0; padding: 0; }
.band-dark-contact .lead-dark { margin: 0 auto 28px; }

.btn-yellow {
  display: inline-block;
  background: var(--yellow);
  color: #0a0a0a;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid var(--yellow);
  transition: transform 150ms ease, background-color 150ms ease;
}
.btn-yellow:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
  transform: translateY(-2px);
}

.site-footer-dark {
  background: #0a0a0a;
  border-top-color: rgba(255,255,255,0.08);
  color: #94a3b8;
}

/* ----- the cluster ----- */
.cluster-band { padding-top: 16px; padding-bottom: 96px; }
.logo-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 24px 0 32px;
}
/* Outer tile: handles cascade + hover flip */
.tile {
  position: relative;
  perspective: 700px;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 360ms cubic-bezier(.2,.8,.2,1),
    transform 420ms cubic-bezier(.2,.8,.2,1);
}
.tile.in { opacity: 1; transform: scale(1); }

/* Inner: rotates Y on hover so the back face shows the tool name */
.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);
}
.tile:hover .tile-inner,
.tile:focus-within .tile-inner { transform: rotateY(180deg); }

.tile-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

/* Front (logo or name fallback) */
.tile-front {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.tile-front img {
  display: block;
  width: 60%;
  height: 60%;
  max-width: 70%;
  max-height: 70%;
  filter: drop-shadow(0 0 12px rgba(0,0,0,0.6));
}

/* Back (tool name in brand yellow) */
.tile-back {
  background: var(--yellow);
  color: #0a0a0a;
  transform: rotateY(180deg);
  padding: 8px;
  text-align: center;
}
.tile-back span {
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.tile-t1 .tile-back span { font-size: 1rem; }
.tile-t2 .tile-back span { font-size: 0.82rem; }
.tile-t3 .tile-back span { font-size: 0.7rem; }

/* Text fallback front (brands not on simpleicons) */
.tile-text .tile-front {
  background: rgba(243,184,36,0.06);
  border-color: rgba(243,184,36,0.18);
  padding: 8px;
  text-align: center;
}
.tile-text .tile-front span {
  font-family: var(--mono);
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  word-break: break-word;
}
.tile-t1.tile-text .tile-front span { font-size: 0.95rem; }
.tile-t2.tile-text .tile-front span { font-size: 0.78rem; }
.tile-t3.tile-text .tile-front span { font-size: 0.68rem; }

/* tier sizes */
.tile-main { width: 152px; height: 152px; }
.tile-t1   { width: 116px; height: 116px; }
.tile-t2   { width:  86px; height:  86px; }
.tile-t3   { width:  64px; height:  64px; }

/* Main tiles: bigger image, brighter background, stronger border. */
.tile-main .tile-front {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 184, 36, 0.22);
}
.tile-main .tile-front img {
  width: 70%;
  height: 70%;
  max-width: 78%;
  max-height: 78%;
}
.tile-main .tile-back span { font-size: 1.1rem; }

@media (max-width: 720px) {
  .tile-main { width: 116px; height: 116px; }
  .tile-t1   { width:  92px; height:  92px; }
  .tile-t2   { width:  72px; height:  72px; }
  .tile-t3   { width:  56px; height:  56px; }
  .logo-cluster { gap: 10px; }
}

/* Cluster section titles (Main / secondary split) */
.cluster-title {
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  border: 0;
  padding: 0;
}
.cluster-title.secondary-title { margin-top: 80px; }
.cluster-sub { margin-bottom: 20px; }
.main-cluster { gap: 18px; padding: 8px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  .tile { opacity: 1; transform: none; transition: none; }
}
