/* aso.css — shared styles for the ASO pages (case studies + /festivals directory).
   Deliberately restrained: real numbers and names carry these pages, not decoration.
   Reuses the site brand tokens (Outfit / Inter Tight / Fraunces, indigo + orange). */

/* Wrap-safe highlighter: unlike Webflow's fixed-height border .highlight, this
   background gradient repeats cleanly on every wrapped line via box-decoration-break. */
.aso-mark {
  font-style: normal;
  background-image: linear-gradient(#ffd33291, #ffd33291);
  background-repeat: no-repeat;
  background-position: 0 center;
  background-size: 100% 0.92em; /* em-based band, centred on the glyph height */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 1px;
}

:root {
  --aso-ink: #0f0840;       /* headings (matches --heading-color) */
  --aso-body: #54506f;      /* body text (matches --body) */
  --aso-faint: #8a86a6;     /* captions / metadata */
  --aso-line: #e7e3f7;      /* hairlines */
  --aso-lavender: #f3f1ff;  /* section tint (matches --light-low) */
  --aso-card: #ffffff;
  --aso-grad-a: #4e2ff5;
  --aso-grad-b: #793aff;
  --aso-orange: #ffb459;
  --aso-max: 1000px;
}

.aso-body {
  margin: 0;
  color: var(--aso-body);
  background: #fff;
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.aso-body * { box-sizing: border-box; }

.aso-wrap { max-width: var(--aso-max); margin: 0 auto; padding: 0 24px; }

/* ---- top nav (mirrors index.html chrome, simplified) ---- */
.aso-nav {
  border-bottom: 1px solid var(--aso-line);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.aso-nav-inner {
  max-width: var(--aso-max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.aso-nav-logo img { height: 30px; width: auto; display: block; }
.aso-nav-links { display: flex; align-items: center; gap: 26px; }
.aso-nav-links a {
  color: var(--aso-ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
.aso-nav-links a:hover { color: var(--aso-grad-a); }
.aso-nav-cta {
  color: #fff !important; background-image: linear-gradient(to right, var(--aso-grad-a), var(--aso-grad-b));
  padding: 9px 18px; border-radius: 10px; font-weight: 600;
}
.aso-nav-cta:hover { color: var(--aso-ink) !important; background-image: linear-gradient(#ffb459, #ffb459); }
@media (max-width: 640px) { .aso-nav-links a:not(.aso-nav-cta) { display: none; } }

/* ---- breadcrumb ---- */
.aso-crumb { font-size: 14px; color: var(--aso-faint); margin: 26px 0 0; }
.aso-crumb a { color: var(--aso-faint); text-decoration: none; }
.aso-crumb a:hover { color: var(--aso-grad-a); text-decoration: underline; }
.aso-crumb span { margin: 0 8px; opacity: .6; }

/* ---- headings ---- */
.aso-h1 {
  font-family: "Outfit", sans-serif; color: var(--aso-ink);
  font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08; letter-spacing: -.01em; margin: 18px 0 8px;
}
.aso-h2 {
  font-family: "Outfit", sans-serif; color: var(--aso-ink);
  font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em;
  margin: 48px 0 14px;
}
.aso-h3 {
  font-family: "Outfit", sans-serif; color: var(--aso-ink);
  font-weight: 600; font-size: 1.15rem; margin: 30px 0 8px;
}
.aso-eyebrow {
  font-family: "Inter Tight", sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  color: var(--aso-grad-a); margin-top: 34px;
}
.aso-lede { font-size: 1.2rem; color: var(--aso-ink); line-height: 1.5; max-width: 64ch; }
.aso-serif { font-family: "Fraunces", Georgia, serif; font-style: italic; }

.aso-prose p { max-width: 68ch; margin: 0 0 18px; }
.aso-prose strong { color: var(--aso-ink); }
.aso-prose a { color: var(--aso-grad-a); }
.aso-prose ul { max-width: 68ch; padding-left: 20px; }
.aso-prose li { margin-bottom: 8px; }

/* ---- hero band ---- */
.aso-hero { padding: 8px 0 26px; }
/* Case-study hero image: a restrained, centred figure — never a full-bleed banner.
   Height-capped so tall phone screenshots and near-square maps both stay modest. */
.aso-hero-media { margin: 26px 0 0; text-align: center; }
.aso-hero-media img {
  width: auto; max-width: 100%; max-height: 380px; margin: 0 auto; display: inline-block;
  border: 1px solid var(--aso-line); border-radius: 16px;
}

/* ---- hero figure: image + key-stats side by side ---- */
.aso-hero-figure { display: flex; gap: 30px; align-items: center; margin: 26px 0 8px; }
.aso-hero-figure .aso-hero-media { margin: 0; flex: 0 0 auto; }
.aso-hero-figure .aso-hero-media img { max-width: 340px; max-height: 340px; }
.aso-hero-figure .aso-stats { flex: 1 1 auto; margin: 0; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) {
  .aso-hero-figure { flex-direction: column; align-items: stretch; gap: 20px; }
}

/* ---- key-stat strip ---- */
.aso-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--aso-line); border: 1px solid var(--aso-line);
  border-radius: 14px; overflow: hidden; margin: 30px 0;
}
.aso-stat { background: #fff; padding: 20px 22px; }
.aso-stat b {
  display: block; font-family: "Outfit", sans-serif; color: var(--aso-ink);
  font-weight: 600; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1;
}
.aso-stat span { display: block; margin-top: 6px; font-size: .82rem; color: var(--aso-faint); }
@media (max-width: 720px) { .aso-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- at-a-glance table ---- */
.aso-table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: .95rem; }
.aso-table td { padding: 11px 4px; border-bottom: 1px solid var(--aso-line); vertical-align: top; }
.aso-table td:first-child { color: var(--aso-faint); width: 42%; }
.aso-table td:last-child { color: var(--aso-ink); }
.aso-table a { color: var(--aso-grad-a); }

/* ---- pull quote ---- */
.aso-quote {
  margin: 26px 0; padding: 26px 30px; border-radius: 16px;
  background: var(--aso-lavender); border: 1px solid var(--aso-line);
}
.aso-quote p {
  font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; font-style: italic;
  color: var(--aso-ink); line-height: 1.5; margin: 0 0 14px; max-width: none;
}
.aso-quote cite { font-style: normal; font-size: .92rem; color: var(--aso-faint); }
.aso-quote cite strong { color: var(--aso-ink); font-weight: 600; }

/* ---- CTA row ---- */
.aso-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0; }
.aso-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 10px;
}
.aso-btn-primary {
  color: #fff; background-image: linear-gradient(to right, var(--aso-grad-a), var(--aso-grad-b));
}
.aso-btn-primary:hover { color: var(--aso-ink); background-image: linear-gradient(#ffb459, #ffb459); }
.aso-btn-ghost { color: var(--aso-ink); border: 2px solid var(--aso-ink); }
.aso-btn-ghost:hover { border-color: var(--aso-orange); background: var(--aso-orange); }

/* ---- footer (mirrors index.html footer, condensed) ---- */
.aso-footer { margin-top: 70px; border-top: 1px solid var(--aso-line); background: var(--aso-lavender); }
.aso-footer-inner {
  max-width: var(--aso-max); margin: 0 auto; padding: 40px 24px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.aso-footer .col { font-size: .9rem; line-height: 1.7; }
.aso-footer strong { color: var(--aso-ink); }
.aso-footer a { color: var(--aso-body); text-decoration: none; }
.aso-footer a:hover { color: var(--aso-grad-a); text-decoration: underline; }
.aso-footer .copy { width: 100%; padding-top: 20px; border-top: 1px solid var(--aso-line); color: var(--aso-faint); font-size: .82rem; }

/* ============ /festivals directory ============ */
.aso-dir-intro { max-width: 70ch; margin: 18px 0 10px; }
.aso-group-title {
  font-family: "Outfit", sans-serif; color: var(--aso-ink); font-weight: 600;
  font-size: 1.15rem; margin: 44px 0 4px; padding-bottom: 8px;
  border-bottom: 1px solid var(--aso-line);
}
.aso-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 22px; }
@media (max-width: 720px) { .aso-grid { grid-template-columns: 1fr; } }
.aso-fcard {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--aso-card); border: 1px solid var(--aso-line);
  border-radius: 16px; padding: 22px 24px;
}
.aso-fcard-head { display: flex; align-items: center; gap: 14px; }
.aso-fcard-logo {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px;
  object-fit: cover; background: #fff; border: 1px solid var(--aso-line);
}
.aso-fcard-name {
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.08rem;
  color: var(--aso-ink); line-height: 1.2; text-decoration: none;
}
a.aso-fcard-name:hover { color: var(--aso-grad-a); }
.aso-fcard-meta { font-size: .84rem; color: var(--aso-faint); margin-top: 2px; }
.aso-fcard-desc { font-size: .95rem; margin: 0; }
.aso-fcard-engage {
  font-size: .8rem; color: var(--aso-faint); line-height: 1.5;
  padding-top: 12px; border-top: 1px dashed var(--aso-line);
}
.aso-fcard-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 6px; }
.aso-fcard-links a { font-size: .85rem; font-weight: 500; color: var(--aso-grad-a); text-decoration: none; }
.aso-fcard-links a:hover { text-decoration: underline; }
.aso-fcard-badge {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--aso-grad-a);
  background: var(--aso-lavender); border: 1px solid var(--aso-line);
  padding: 2px 8px; border-radius: 20px;
}
.aso-dir-cta { text-align: center; margin: 56px 0 10px; }

/* Widen the hero widget on desktop only — grows leftward into the empty gap
   (right edge unchanged: base is width 210 / margin-left -183 → right edge -183+210). */
@media (min-width: 992px) {
  .hero-widget { width: 268px; margin-left: -241px; }
}

/* ============ homepage hero subhead (breadth line under the H1) ============ */
.hero-subhead {
  font-family: "Inter Tight", sans-serif; color: #54506f;
  font-size: 1.1rem; line-height: 1.5; max-width: 46ch; margin: 16px 0 4px;
}

/* ============ homepage "Trusted by" section ============ */
.trusted-section { padding: 64px 0; background: var(--light-low, #f3f1ff); }
.trusted-head { text-align: center; }
.trusted-eyebrow {
  font-family: "Inter Tight", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; font-size: .74rem; color: #4e2ff5;
}
.trusted-title {
  font-family: "Outfit", sans-serif; color: #0f0840; font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 0;
}
.trusted-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 20px 36px; margin: 34px auto 8px; max-width: 900px;
}
.trusted-logos img {
  height: 58px; width: auto; max-width: 130px; object-fit: contain;
  border-radius: 8px;
}
.trusted-seeall { text-align: center; margin-top: 8px; }
.trusted-seeall a { color: #4e2ff5; font-weight: 600; text-decoration: none; }
.trusted-seeall a:hover { text-decoration: underline; }
.trusted-quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1000px; margin: 40px auto 0;
}
@media (max-width: 860px) { .trusted-quotes { grid-template-columns: 1fr; } }
.trusted-quote {
  background: #fff; border: 1px solid #e7e3f7; border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column;
}
.trusted-quote p {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 1rem;
  color: #0f0840; line-height: 1.55; margin: 0 0 16px;
}
.trusted-quote cite { font-style: normal; font-size: .84rem; color: #8a86a6; margin-top: auto; }
.trusted-quote cite strong { color: #0f0840; font-weight: 600; }
.trusted-caselinks { text-align: center; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.trusted-caselinks a { color: #4e2ff5; font-weight: 600; text-decoration: none; font-size: .95rem; }
.trusted-caselinks a:hover { text-decoration: underline; }
