/* =============================================================
   A Plus Nursing — site-wide stylesheet
   Used by every page. Token names are local to this project; we
   pull colour & type direction from the brand spec, not the design
   system's --tokens (because the brief overrides typography).
   ============================================================= */

:root {
  /* Brand */
  --purple:        #35234D;
  --purple-deep:   #261739;
  --purple-soft:   #F4F1F8;
  --purple-line:   #E4DEEC;

  --magenta:       #B31166;
  --magenta-700:   #7C0B46;
  --magenta-soft:  #FCF1F6;

  /* Neutrals */
  --off-white:     #FAF8F4;
  --cream:         #F4EFE8;
  --cream-deep:    #E8E0D2;
  --charcoal:      #1F1A24;
  --ink-2:         #4A4452;
  --ink-3:         #7A7482;
  --line:          #E7E1DA;
  --line-soft:     #EFEAE2;
  --white:         #FFFFFF;

  /* Status */
  --success:       #2E8B57;
  --success-soft:  #E4F3EB;

  --container:     1280px;
  --container-wide: 1360px;
  --container-narrow: 880px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reveal / motion ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal-in { opacity: 1; transform: translateY(0); }
.reveal-stagger-child {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-child 700ms var(--ease) forwards;
}
@keyframes reveal-child {
  to { opacity: 1; transform: translateY(0); }
}
[data-hero-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
[data-hero-reveal].reveal-in { opacity: 1; transform: translateY(0); }

.reduce-motion .reveal,
.reduce-motion .reveal-stagger-child,
.reduce-motion [data-hero-reveal] {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
.sr { position: absolute; left: -9999px; }

/* ===== Typography ===== */
/* One typeface (DM Sans), hierarchy via weight + size + tracking.
   Display = 700 with tight negative tracking. UI = 500–600. Body = 400. */
.display, h1, h2, h3 {
  font-family: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.028em;
  margin: 0;
  line-height: 1.08;
}
h1 { font-size: 56px; letter-spacing: -0.034em; line-height: 1.02; }
h2 { font-size: 40px; letter-spacing: -0.03em;  line-height: 1.06; }
h3 { font-size: 24px; letter-spacing: -0.022em; line-height: 1.2;  }
h4 { font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--charcoal); margin: 0; letter-spacing: -0.012em; }
p  { margin: 0; color: var(--ink-2); }

.eyebrow {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); }

/* ===== Utility bar (above header) — phone, email, NDIS badge ===== */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
}
.utility-bar {
  background: var(--purple);
  color: var(--white);
  font-size: 13.5px;
  border-bottom: 1px solid var(--purple-deep);
}
.utility-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.utility-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  opacity: 0.92;
  transition: opacity 160ms var(--ease);
  white-space: nowrap;
}
.utility-bar a:hover { opacity: 1; }
.utility-bar .sep { opacity: 0.35; }
.utility-bar svg { display: block; }
.utility-spacer { flex: 1; }
.utility-bar .states { opacity: 0.75; font-size: 13px; letter-spacing: 0.02em; }
.ndis-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--purple);
  padding: 5px 16px 5px 5px;
  border-radius: var(--r-pill);
  height: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ndis-badge img {
  height: 36px; width: 36px; border-radius: 50%;
  object-fit: cover;
  object-position: 18% 50%;
  display: block;
}
.ndis-badge .txt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* ===== Main header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.logo-lockup { display: inline-flex; align-items: center; height: 44px; }
.logo-lockup img { height: 44px; width: auto; }

.main-nav { display: flex; justify-content: center; gap: 26px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 10px 2px;
  transition: color 120ms var(--ease);
  position: relative;
}
.main-nav a:hover { color: var(--magenta); }
.main-nav a.active {
  color: var(--magenta);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--magenta);
  border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--r-md);
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  letter-spacing: -0.005em;
}
.btn-solid { background: var(--magenta); color: var(--white); }
.btn-solid:hover { background: var(--magenta-700); }
.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-ghost {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-link {
  color: var(--magenta);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1.5px solid var(--magenta);
  border-radius: 0;
  padding: 14px 4px;
  background: none;
}
.btn-link:hover { color: var(--magenta-700); border-color: var(--magenta-700); }
.btn-lg { padding: 16px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

/* ===== Containers / sections ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 40px; }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.bg-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.bg-cream { background: var(--cream); }
section.bg-purple { background: var(--purple); color: var(--white); }
section.bg-purple h1, section.bg-purple h2, section.bg-purple h3, section.bg-purple h4 { color: var(--white); }
section.bg-purple p { color: rgba(255,255,255,0.78); }
section.bg-purple .eyebrow { color: var(--magenta); }

/* ===== Pills, badges, trust marks ===== */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--purple);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px 8px 14px;
  border-radius: var(--r-pill);
}
.pill .dot {
  width: 8px; height: 8px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(179,17,102,0.18);
}
.pill .sep { color: var(--ink-3); margin: 0 2px; opacity: 0.6; }

.check-row {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}
.check-row .check { color: var(--magenta); display: inline-flex; }
.checks { display: flex; gap: 32px; flex-wrap: wrap; }

/* ===== Section headers ===== */
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 17px; }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px; flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover { border-color: var(--purple-line); }
.card a.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--magenta);
  font-weight: 600;
  font-size: 14px;
  margin-top: 18px;
}
.card a.card-link:hover { color: var(--magenta-700); }
.card a.card-link svg { transition: transform 200ms var(--ease); }
.card:hover a.card-link svg { transform: translateX(4px); }

.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--magenta-soft);
  color: var(--magenta);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon.dark {
  background: var(--purple-soft);
  color: var(--purple);
}

.card h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.012em; }
.card h4 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Stats bar ===== */
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 44px 0;
}
.stat { padding-left: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  font-family: inherit;
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.038em;
  color: var(--purple);
}
.stat .label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-grid h5 {
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  padding: 6px 0;
  transition: color 160ms var(--ease);
}
.footer-grid a:hover { color: var(--white); }

.footer-brand img { height: 44px; margin-bottom: 22px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 340px; }

.footer-acknowledgement {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.footer-acknowledgement .flags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}
.footer-acknowledgement .flag-svg {
  display: block;
  width: 56px;
  height: auto;
  border-radius: 2px;
  outline: 1px solid rgba(255,255,255,0.18);
}
.footer-acknowledgement p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 880px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  gap: 24px;
  flex-wrap: wrap;
}

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 0; }
label.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
label.field-label .req { color: var(--magenta); }
.input, .textarea, .select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: all 160ms var(--ease);
}
.radio-card:hover { border-color: var(--purple-line); }
.radio-card.is-on, .radio-card[aria-pressed="true"] {
  border-color: var(--magenta);
  background: var(--magenta-soft);
  color: var(--magenta-700);
}

/* ===== Hero shared bits ===== */
.hero {
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(179,17,102,0.05), transparent 70%),
    linear-gradient(180deg, var(--off-white) 0%, var(--cream) 100%);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.14  0 0 0 0 0.22  0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.7;
}
.hero > * { position: relative; }
.hero-narrow {
  padding: 64px 0 56px;
}
.page-hero {
  background: var(--cream);
  padding: 80px 0 64px;
}
.page-hero .pill { background: var(--white); }
.page-hero h1 { margin-top: 22px; margin-bottom: 18px; }
.page-hero p.lede { max-width: 640px; }
.page-hero .hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Image-slot frame ===== */
.image-frame {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.image-frame image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.image-frame .ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 30% 35%, rgba(179,17,102,0.10), transparent 60%),
    radial-gradient(50% 50% at 80% 80%, rgba(53,35,77,0.16), transparent 60%),
    linear-gradient(160deg, #EFE5DC 0%, #E6D9CB 100%);
  display: flex; align-items: flex-end;
  padding: 20px 24px;
  pointer-events: none;
}
.image-frame .ph .note {
  font-family: inherit;
  font-size: 12px;
  color: rgba(31,26,36,0.55);
  max-width: 280px;
  line-height: 1.45;
}
.image-frame .ph .note b {
  color: var(--purple);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

/* ===== Service tile ===== */
.tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
  position: relative;
  min-height: 280px;
}
.tile:hover { border-color: var(--purple-line); transform: translateY(-2px); }
.tile-num {
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  color: var(--magenta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tile h3 { font-size: 24px; }
.tile-list { list-style: none; padding: 0; margin: 8px 0 0; }
.tile-list li {
  padding: 6px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tile-list li:first-child { border-top: 0; }
.tile-list li::before {
  content: "—";
  color: var(--ink-3);
  margin-right: 10px;
  opacity: 0.5;
}
.tile-cta { margin-top: auto; }
.tile-cta a.btn-link svg,
.card a.card-link svg {
  transition: transform 220ms var(--ease);
}
.tile:hover .tile-cta a.btn-link svg,
.tile:hover .tile-cta a.btn-link {
  transform: translateX(3px);
}

/* ===== Testimonials ===== */
/* (Kept in CSS for future use; not currently used on the homepage.) */
.testimonial-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
  margin-bottom: 40px;
}
.testimonial-tab {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: color 200ms var(--ease), background 200ms var(--ease);
  letter-spacing: -0.005em;
}
.testimonial-tab:hover { color: var(--charcoal); }
.testimonial-tab.is-on {
  background: var(--purple);
  color: var(--white);
}

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-grid > * { display: none; }
.testimonial-grid[data-tab="participants"] > [data-audience="participants"],
.testimonial-grid[data-tab="facilities"]   > [data-audience="facilities"]   { display: flex; }

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
  position: relative;
  min-height: 280px;
}
.quote-card:hover { border-color: var(--purple-line); transform: translateY(-2px); }
.quote-card .glyph {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 0.6;
  color: var(--magenta);
  height: 18px;
  letter-spacing: -0.04em;
}
.quote-card .body {
  font-size: 17px;
  line-height: 1.5;
  color: var(--charcoal);
  letter-spacing: -0.015em;
  font-weight: 500;
  flex: 1;
}
.quote-card .attribution {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.quote-card .attribution .name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}
.quote-card .attribution .role {
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ===== Social row in footer ===== */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== Instagram grid ===== */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ig-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--cream);
  display: block;
  transition: transform 220ms var(--ease);
}
.ig-tile:hover { transform: translateY(-3px); }
.ig-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ig-tile .ig-ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 30% 35%, rgba(179,17,102,0.10), transparent 60%),
    radial-gradient(50% 50% at 80% 80%, rgba(53,35,77,0.16), transparent 60%),
    linear-gradient(160deg, #EFE5DC 0%, #E6D9CB 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  pointer-events: none;
}
.ig-tile .ig-ph .icon {
  align-self: flex-start;
  width: 22px; height: 22px;
  color: var(--purple);
  opacity: 0.6;
}
.ig-tile .ig-ph .note {
  font-size: 11px;
  color: rgba(31,26,36,0.55);
  line-height: 1.45;
  max-width: 200px;
}
.ig-tile .ig-ph .note b {
  display: block;
  color: var(--purple);
  font-weight: 600;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.ig-tile .ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 40%, rgba(38,23,57,0.78) 100%);
  color: var(--white);
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.ig-tile:hover .ig-overlay { opacity: 1; }
.ig-tile .ig-overlay .caption {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-tile .ig-overlay .meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ig-tile .ig-icon-badge {
  position: absolute;
  top: 14px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--magenta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 880px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  padding: 0;
  transition: background 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.footer-social a:hover {
  background: var(--magenta);
  color: var(--white);
  transform: translateY(-1px);
}
.ticker-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  position: relative;
}
.ticker-mask {
  position: relative;
  overflow: hidden;
}
.ticker-mask::before,
.ticker-mask::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.ticker-mask::before { left: 0;  background: linear-gradient(90deg, var(--white), transparent); }
.ticker-mask::after  { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: ticker-slide 80s linear infinite;
}
.ticker-band:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.015em;
  white-space: nowrap;
  padding: 0 28px;
}
.ticker-item .mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--magenta);
  opacity: 0.85;
}
.ticker-item .mark svg { display: block; width: 100%; height: 100%; }

/* ===== FAQ accordion ===== */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 17px;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
  letter-spacing: -0.01em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .plus {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--magenta-soft);
  color: var(--magenta);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: transform 200ms var(--ease);
}
details[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  padding-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 720px;
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--purple);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(179,17,102,0.35), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--white); font-size: 36px; letter-spacing: -0.02em; line-height: 1.1; }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 12px; max-width: 520px; font-size: 16px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--purple); border-color: var(--white); }

/* ===== Breadcrumb ===== */
.crumbs {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--magenta); }
.crumbs .sep { opacity: 0.4; }

/* ===== Floating sticky mobile CTA ===== */
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; left: 16px; right: 16px; bottom: 16px;
    z-index: 60;
    display: flex; gap: 8px;
  }
  .mobile-cta .btn { flex: 1; box-shadow: 0 10px 24px rgba(38,23,57,0.25); }
}
.mobile-cta { display: none; }
@media (max-width: 760px) { .mobile-cta { display: flex; } }

/* ===== Responsive trim ===== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :nth-child(4) { grid-column: span 3; }
}
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  section { padding: 64px 0; }
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .utility-bar .states { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 36px; }
}


/* ===== Case-study cards (home: "How the work shows up") ===== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
  min-height: 300px;
}
.case-card:hover { border-color: var(--purple-line); transform: translateY(-2px); }
.case-card .case-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  padding: 6px 12px;
  background: var(--magenta-soft);
  border-radius: var(--r-pill);
}
.case-card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.case-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 880px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ===== Long-form (privacy etc.) ===== */
.longform { max-width: 760px; margin: 0 auto; }
.longform h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}
.longform h2:first-of-type { margin-top: 0; }
.longform p,
.longform ul {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.longform ul { padding-left: 20px; }
.longform ul li { margin-bottom: 8px; }
.longform a { color: var(--magenta); border-bottom: 1px solid currentColor; }
.longform strong { color: var(--charcoal); font-weight: 600; }
.longform .updated {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 32px;
  padding: 6px 12px;
  background: var(--cream);
  border-radius: var(--r-pill);
}

/* ===== 404 ===== */
.notfound {
  text-align: center;
  padding: 120px 0 160px;
}
.notfound .glyph {
  font-family: inherit;
  font-size: 140px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--purple);
  margin-bottom: 8px;
}
.notfound h1 { margin-bottom: 14px; }
.notfound p { font-size: 17px; max-width: 480px; margin: 0 auto 32px; }

/* ===== Coverage state cards (service-areas) ===== */
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.coverage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.coverage-card .case-tag { /* reuse tag styling */
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 6px 12px;
  background: var(--purple-soft);
  border-radius: var(--r-pill);
}
.coverage-card h3 { font-size: 28px; letter-spacing: -0.025em; }
.coverage-card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.coverage-card ul { list-style: none; padding: 0; margin: 0; }
.coverage-card ul li {
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.coverage-card ul li:first-child { border-top: 0; }
@media (max-width: 880px) { .coverage-grid { grid-template-columns: 1fr; } }
