/* =========================================================
   DESIGN TOKENS, Confident Restraint · Editorial Senior
   Fraunces (display) + Inter (body)
   Version: 2.0, 2026-02
========================================================= */
:root {
  --bg: #f9f8f6;
  --bg-soft: #f2f0ec;
  --bg-card: #ffffff;
  --ink: #0e0e0c;
  --muted: #6b6960;
  --muted-lt: #a09d96;
  --accent: #1a4fd8;
  --border: #e4e2dc;
  --border-lt: #eeecea;

  --shadow-sm:
    0 1px 3px rgba(14, 14, 12, 0.06), 0 1px 2px rgba(14, 14, 12, 0.04);
  --shadow: 0 4px 16px rgba(14, 14, 12, 0.08), 0 1px 4px rgba(14, 14, 12, 0.04);
  --shadow-lg:
    0 12px 40px rgba(14, 14, 12, 0.1), 0 2px 8px rgba(14, 14, 12, 0.05);

  --max: 1160px;
  --measure: 68ch;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   RESET
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
h4,
h5 {
  font-family: var(--font-body);
  font-weight: 600;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}
h1 {
  font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}
h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
}
h4 {
  font-size: 1rem;
}
h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
}
p {
  margin: 0 0 1.1rem;
}

.lede,
.subheadline {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}
.case-section > .subheadline {
  text-align: left;
  margin-top: 1.25rem;
}

/* =========================================================
   LINKS
========================================================= */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover,
a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    background 150ms ease,
    transform 120ms var(--ease-out),
    box-shadow 150ms ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover,
.btn:focus {
  background: #222;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--muted-lt);
  transform: translateY(-1px);
}
.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}
.btn-wide {
  width: 100%;
  justify-content: center;
}
.case-cta {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0;
}
.text-link {
  display: block;
  margin-top: 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* =========================================================
   LAYOUT
========================================================= */
main,
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
section {
  padding: 4rem 0;
}
.case-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-lt);
}
.page-hero,
.case-hero {
  padding: 3.5rem 0 1.5rem;
}
.editorial {
  padding: 2.5rem 0;
}

/* =========================================================
   TEXT COLUMN, centring logic
========================================================= */
.text-column > h1,
.text-column > h2,
.text-column > h3,
.text-column > h4,
.text-column > h5,
.text-column > p,
.text-column > ul,
.text-column > ol,
.text-column > blockquote,
.text-column > .lede,
.text-column > .subheadline,
.page-hero > h1,
.page-hero > h2,
.page-hero > h3,
.page-hero > h4,
.page-hero > h5,
.page-hero > p,
.page-hero > ul,
.page-hero > ol,
.page-hero > .lede,
.page-hero > .subheadline,
.case-hero > h1,
.case-hero > h2,
.case-hero > h3,
.case-hero > h4,
.case-hero > h5,
.case-hero > p,
.case-hero > ul,
.case-hero > ol,
.case-hero > .lede,
.case-hero > .subheadline,
.case-section > h1,
.case-section > h2,
.case-section > h3,
.case-section > h4,
.case-section > h5,
.case-section > p,
.case-section > ul,
.case-section > ol,
.case-section > .lede,
.case-section > .subheadline,
.feature .content > p,
.feature .content > ul,
.feature .content > ol,
.feature .content > h1,
.feature .content > h2,
.feature .content > h3,
.feature .content > .lede,
.feature .content > .subheadline {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* headings centred */
.text-column > h1,
.text-column > h2,
.text-column > h3,
.text-column > h4,
.text-column > h5,
.text-column > .lede,
.text-column > .subheadline,
.page-hero > h1,
.page-hero > h2,
.page-hero > h3,
.page-hero > h4,
.page-hero > h5,
.page-hero > .lede,
.page-hero > .subheadline,
.case-hero > h1,
.case-hero > h2,
.case-hero > h3,
.case-hero > h4,
.case-hero > h5,
.case-hero > .lede,
.case-hero > .subheadline,
.case-section > h1,
.case-section > h2,
.case-section > h3,
.case-section > h4,
.case-section > h5,
.case-section > .lede,
.case-section > .subheadline,
.feature .content > h1,
.feature .content > h2,
.feature .content > h3,
.feature .content > h4,
.feature .content > h5,
.feature .content > .lede,
.feature .content > .subheadline {
  text-align: center;
}

/* body text left-aligned */
.text-column > p,
.text-column > ul,
.text-column > ol,
.text-column > blockquote,
.page-hero > p,
.page-hero > ul,
.page-hero > ol,
.page-hero > blockquote,
.case-hero > p,
.case-hero > ul,
.case-hero > ol,
.case-hero > blockquote,
.case-section > p,
.case-section > ul,
.case-section > ol,
.case-section > blockquote,
.feature .content > p,
.feature .content > ul,
.feature .content > ol {
  text-align: left;
}

/* pull-quote always centred regardless of section context */
p.pull-quote,
.case-section > p.pull-quote,
.text-column > p.pull-quote {
  text-align: center;
  max-width: 680px;
}

.case-section h3 {
  margin-top: 3.5rem;
}
.case-section h4 {
  margin-top: 2.5rem;
}
.case-section h3 + .subheadline {
  margin-top: -0.35rem;
}

/* =========================================================
   HEADER + NAV
========================================================= */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(249, 248, 246, 0.93);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border-lt);
}
.site-nav {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.nav-link {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color 130ms ease,
    background 130ms ease;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--bg-soft);
  text-decoration: none;
}
.nav-link.active {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   BREADCRUMBS
========================================================= */
.breadcrumbs {
  border-bottom: 1px solid var(--border-lt);
  background: rgba(249, 248, 246, 0.93);
}
.breadcrumbs .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs a:hover {
  color: var(--ink);
}
.breadcrumb-separator {
  opacity: 0.35;
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 1600;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
body.nav-open {
  overflow: hidden;
}

/* =========================================================
   TYPOGRAPHIC HERO (index)
========================================================= */
.hero-type {
  padding: 5.5rem 1.25rem 4.5rem;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border-lt);
  text-align: center;
}
.hero-type__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.05s forwards;
}
.hero-type__headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 2rem + 5.5vw, 7rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 auto 2rem;
  max-width: 13ch;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-out) 0.15s forwards;
}
.hero-type__headline em {
  font-style: italic;
  font-weight: 600;
  color: var(--muted);
}
.hero-type__body {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto 2.75rem;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-out) 0.25s forwards;
}
.hero-type__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto 2.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-out) 0.35s forwards;
}
.hero-type__stat {
  flex: 1;
  min-width: 130px;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
}
.hero-type__stat:last-child {
  border-right: none;
}
.hero-type__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.hero-type__stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.hero-type__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.75s var(--ease-out) 0.45s forwards;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Stats box: items start hidden; JS pops them in with stagger */
.hero-type__stat {
  /* Initial state for JS animation - keeps them visible if JS fails */
  will-change: opacity, transform;
}

/* =========================================================
   CHECKLIST
========================================================= */
.checklist {
  list-style: none;
  padding-left: 0;
  margin: 1rem auto 2.5rem;
  max-width: var(--measure);
}
.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.6rem 0;
  line-height: 1.6;
}
.checklist li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}
.case-section > .subheadline + .checklist {
  margin-top: 0.6rem;
}

/* =========================================================
   PULL QUOTE
========================================================= */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
  margin: 4rem auto;
  max-width: 680px;
  padding: 0 1rem;
  position: relative;
}
.pull-quote::before,
.pull-quote::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem auto;
  opacity: 0.4;
}

/* =========================================================
   KEY METRICS
========================================================= */
.key-metrics {
  margin: 2rem 0 2.5rem;
  padding: 2rem 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-lt);
  border-radius: 12px;
}
.case-hero .key-metrics {
  background: var(--bg-soft);
  border-color: transparent;
}
.metrics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.metrics-list li {
  text-align: center;
}
.metrics-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.metrics-list li span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
.key-metrics .checklist {
  margin: 1rem auto 0.25rem;
}
.key-metrics .checklist li {
  margin: 0.45rem 0;
}

/* =========================================================
   MEDIA
========================================================= */
.responsive-img {
  width: 100%;
  height: auto;
}
.case-media {
  margin: 2.5rem auto;
  max-width: var(--max);
}
.case-media img,
.case-media video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: block;
  /* Aspect ratio placeholder: image occupies space even before load */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-soft);
  border: 1px solid var(--border-lt);
}

/* For images with transparent backgrounds (e.g. app mockups) */
.case-media--transparent img {
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  border: none;
  aspect-ratio: auto;
}
.img-caption {
  margin-top: 0.6rem;
  margin-bottom: 4rem;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted-lt);
  line-height: 1.5;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.video-embed-vertical {
  position: relative;
  width: 100%;
  max-width: 320px; /* limita largura em desktop */
  margin: 0 auto; /* centraliza */
  aspect-ratio: 9 / 20; /* proporção vertical */
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: transparent;
}

.video-embed-vertical video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* mostra o vídeo inteiro, sem cortar */
}

/* Blur-up / reveal */
img.blur-up {
  filter: blur(20px);
  transform: scale(1.02);
  transition:
    filter 600ms ease-out,
    transform 600ms ease-out;
  will-change: filter, transform;
}
img.blur-up.blur-up-ready {
  filter: blur(0px);
  transform: scale(1);
}
/* =========================================================
   REVEAL SAFETY NET
   Elements are visible by default.
   JS adds .js to <html>, which activates the animation.
   If JS fails, everything stays visible.
========================================================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.js .reveal-group .reveal:nth-child(1) {
  transition-delay: 0ms;
}
html.js .reveal-group .reveal:nth-child(2) {
  transition-delay: 90ms;
}
html.js .reveal-group .reveal:nth-child(3) {
  transition-delay: 180ms;
}
html.js .reveal-group .reveal:nth-child(4) {
  transition-delay: 270ms;
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1rem;
}
.image-lightbox--open {
  display: flex;
}
.image-lightbox__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-lightbox__inner img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.image-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3100;
  transition: background 150ms ease;
}
.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.image-lightbox__close::before {
  content: "×";
  display: block;
  text-align: center;
}
@media (max-width: 640px) {
  .image-lightbox {
    justify-content: flex-start;
    padding: 0.75rem;
  }
  .image-lightbox__inner {
    width: 100%;
    max-width: none;
    height: 90vh;
    max-height: none;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .image-lightbox__inner img {
    height: 90vh;
    width: auto;
    max-height: 90vh;
    max-width: none;
    margin: 0;
    scroll-snap-align: start;
  }
}

/* =========================================================
   ABOUT
========================================================= */
.about-page .about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-photo {
  height: 420px;
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: 12px;
  position: sticky;
  top: 5rem;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border-radius: 10px;
}
.facts-grid .card-box strong {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

/* =========================================================
   CASE CARDS
========================================================= */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 860px) {
  .case-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.case-grid.case-grid--two {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 860px) {
  .case-grid.case-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.case-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--muted-lt);
}
.case-card__media {
  display: block;
  text-decoration: none;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.case-card__media img,
.case-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease-out);
}
.case-card:hover .case-card__media img,
.case-card:hover .case-card__media video {
  transform: scale(1.025);
}
.case-card__body {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.case-card__kicker {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 500;
  text-transform: uppercase;
}
.case-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.case-card__caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}
.case-card__caption strong {
  font-weight: 700;
  color: var(--ink);
}
.case-card__stats {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.case-card__stats li {
  border: 1px solid var(--border-lt);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  background: var(--bg);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.stat-label {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.case-card__actions {
  margin-top: auto;
  padding-top: 0.35rem;
}
.case-card__actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.case-quick-scan {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0.75rem auto 1.75rem;
  max-width: var(--measure);
}
.case-quick-scan .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  transition:
    border-color 130ms ease,
    color 130ms ease;
}
.case-quick-scan .pill:hover {
  border-color: var(--muted);
  color: var(--ink);
  text-decoration: none;
}

/* Home cases section */
.home-cases {
  padding-top: 3rem;
  border-top: none;
}
.home-cases .case-cta {
  margin: 1.25rem 0 2.5rem;
}
/* On home, wider aspect ratio for visual impact */
.home-cases .case-card__media {
  aspect-ratio: 16 / 9;
}
@media (min-width: 1024px) {
  .home-cases .case-card__media {
    aspect-ratio: 21 / 9;
  }
}
@media (min-width: 1280px) {
  .home-cases .text-column {
    max-width: 1100px;
  }
}

/* case-block heading labels */
.case-section :is(h4.case-block, h4.text-column) {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.case-section .checklist + p {
  margin-top: 1.25rem;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  border-top: 1px solid var(--border-lt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .social {
  display: flex;
  gap: 1.25rem;
}
.site-footer .social a {
  color: var(--muted);
  font-weight: 500;
  transition: color 130ms ease;
}
.site-footer .social a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* =========================================================
   COOKIE BANNER
========================================================= */
.cookie-banner {
  position: fixed;
  inset: auto 1.25rem 1.25rem 1.25rem;
  max-width: 460px;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  z-index: 2200;
  font-size: 0.875rem;
  line-height: 1.5;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-banner button {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  transition: background 130ms ease;
}
#cookie-accept-all {
  background: var(--ink);
  color: #fff;
  border: none;
}
#cookie-accept-all:hover {
  background: #222;
}
#cookie-reject {
  color: var(--muted);
}
#cookie-reject:hover {
  background: var(--bg-soft);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 960px) {
  .about-page .about-hero {
    grid-template-columns: 1fr;
  }
  .about-photo {
    position: static;
    height: 280px;
  }
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  .hero-type {
    padding: 3.5rem 1.25rem 2.5rem;
  }
  .hero-type__stats {
    max-width: 100%;
  }
  .hero-type__stat {
    min-width: 110px;
    padding: 1rem;
  }

  .site-header {
    padding-inline: 1rem;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 5.5rem 1.5rem 2rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--bg);
    z-index: 1400;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav .nav-link {
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1.1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-lt);
    color: var(--ink);
  }
  .site-nav .nav-link.active {
    color: var(--accent);
    font-weight: 700;
    background: none;
  }
  .site-nav .btn.btn-small {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
}

/* =========================================================
   UTILITIES
========================================================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   IMPACT PAGE — METRICS CLARITY
   Overrides for the structured metrics layout on impact.html
========================================================= */

/* ── 1. Category dividers (h5 used as group separators) ─────────
   Transform the tiny muted h5 labels into proper section dividers
   with horizontal decorative rules flanking the text.              */
.case-hero > h5 {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  margin: 3.75rem 0 0.5rem;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-lt);
  white-space: nowrap;
}
.case-hero > h5::before,
.case-hero > h5::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.8;
}

/* First h5 after h3 heading gets less top margin */
.case-hero > h3 + h5 {
  margin-top: 1.75rem;
}

/* ── 2. "Impact at a Glance" h3 centred ──────────────────────── */
.case-hero > h3 {
  text-align: center;
  margin-top: 3.5rem;
}

/* ── 3. Consecutive key-metrics: connect into visual groups ──────
   Cards within the same category share a border and sit flush
   against each other, conveying grouping without extra markup.    */
.case-hero .key-metrics {
  /* Tighter vertical breathing room within a group */
  margin-top: 0;
  margin-bottom: 0;
}

/* Space before the first card of each group (after h5 divider) */
.case-hero > h5 + .key-metrics {
  margin-top: 0.75rem;
}

/* Group consecutive cards together: remove gap, merge borders */
.case-hero > .key-metrics + .key-metrics {
  margin-top: -1px;
  border-top: 1px dashed var(--border-lt);
  border-radius: 0;
}
/* Round only the first card's top corners */
.case-hero > h5 + .key-metrics,
.case-hero > h3 + h5 + .key-metrics {
  border-radius: 12px 12px 0 0;
}
/* Round only the last card before a new h5 */
.case-hero > .key-metrics:has(+ h5),
.case-hero > .key-metrics:last-of-type {
  border-radius: 0 0 12px 12px;
}
/* Solo card (both top and bottom rounded) */
.case-hero > h5 + .key-metrics:has(+ h5) {
  border-radius: 12px;
}

/* Space between groups (after the last card before next h5) */
.case-hero > .key-metrics:has(+ h5) {
  margin-bottom: 0;
}

/* ── 4. h6 journey-context labels inside metric cards ────────── */
h6.key-metrics {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--border-lt);
  text-align: center;
}

/* ── 5. Multiple metrics-list inside one card: clear divider ─── */
.case-hero .key-metrics .metrics-list + .metrics-list {
  border-top: 1px solid var(--border-lt);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

/* ── 6. Summary / result card — highlighted with accent border ──
   The "34% → ~49%" card is the cumulative result of all above.   */
.case-hero > .key-metrics.impact-result {
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  margin-top: 0.75rem;
  background: var(--bg-card);
}
.case-hero > .key-metrics.impact-result .metrics-list li strong {
  color: var(--accent);
}

/* ── 7. Social Commerce card — standard solo ─────────────────── */
.case-hero > h5 + .key-metrics:has(+ h5) {
  border-radius: 12px;
}

/* ── 8. Overall maturity: slightly deemphasised ─────────────── */
.case-hero > .key-metrics.impact-overall {
  border-radius: 12px;
  margin-top: 0.75rem;
  background: var(--bg-soft);
  border-color: transparent;
}
.case-hero > .key-metrics.impact-overall .metrics-list li strong {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  color: var(--muted);
}

/* ─────────────────────────────────────────
   iPhone 16 Frame
───────────────────────────────────────── */
.iphone-frame {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.iphone-outer {
  position: relative;
  width: 320px;
  background: #1a1a1a;
  border-radius: 54px;
  padding: 14px;
  box-shadow:
    0 0 0 1px #3a3a3a,
    0 0 0 3px #1a1a1a,
    0 0 0 4px #444,
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.3);
}

.iphone-side-buttons {
  position: absolute;
  left: -4px;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iphone-btn-silent {
  width: 4px;
  height: 28px;
  background: #3a3a3a;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-vol {
  width: 4px;
  height: 48px;
  background: #3a3a3a;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-power {
  position: absolute;
  right: -18px;
  top: 40px;
  width: 4px;
  height: 72px;
  background: #3a3a3a;
  border-radius: 0 2px 2px 0;
}

.iphone-screen {
  background: #000;
  border-radius: 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.iphone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 0;
  height: 50px;
  background: #000;
  position: relative;
  flex-shrink: 0;
}

.iphone-time {
  font-size: 15px;
  font-weight: 600;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.3px;
}

.iphone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 0 0 2px #1a1a1a;
}

.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.iphone-video-container {
  flex: 1;
  background: #000;
  overflow: hidden;
  height: 560px;
}

.iphone-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iphone-homebar {
  height: 30px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.iphone-homebar::after {
  content: "";
  width: 120px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
