@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Fraunces:ital,wght@0,300;0,600;1,300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@300;600&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Academic BMJ Color Theme */
  --navy: #003366; /* Deep navy - primary ink (BMJ blue) */
  --slate: #2c3e4f; /* Dark slate - secondary text */
  --steel: #4a5b68; /* Steel blue - tertiary */

  --sky-light: #e6f3f4; /* Lightest sky - BMJ teal light */
  --sky-pale: #d9eef0; /* Pale sky - slightly darker teal light */
  --sky-soft: #b8d8e8; /* Soft sky - blue light */

  --blue-bright: #0073b7; /* Bright academic blue - BMJ bright blue */
  --blue-cobalt: #005a8c; /* Cobalt - BMJ deep blue */
  --blue-deep: #003f66; /* Deep blue - darkest blue */

  --blue-muted: #5f8db0; /* Muted blue - kept similar */
  --blue-pale: #cbd2d9; /* Pale blue - light grey-blue borders */

  --white: #ffffff;
  --off-white: #f9fafc; /* Off-white for backgrounds */

  /* BMJ Functional mappings - keeping your variable names */
  --ink: var(--navy);
  --paper: var(--white);
  --cream: var(--sky-pale);
  --accent: #00a9b0; /* BMJ teal - primary accent */
  --accent-bright: #008a94; /* Darker teal for hover */

  --green: #2c7a4b; /* BMJ green */
  --blue: var(--blue-cobalt);
  --muted: var(--slate);
  --border: var(--blue-pale);

  /* Background variants - BMJ styled */
  --green-bg: #e8f3ec; /* Light green backgrounds */
  --yellow-bg: #fff6e6; /* Light yellow backgrounds */
  --red-bg: #fcf0f2; /* Light red backgrounds */
  --blue-bg: #e6f0f9; /* Light blue backgrounds */
  --teal-bg: var(--sky-light); /* Light teal backgrounds */

  /* blue-light */
  --blue-03: rgba(155, 183, 212, 0.03);
  --blue-05: rgba(155, 183, 212, 0.05);
  --blue-12: rgba(155, 183, 212, 0.12);
  --blue-15: rgba(155, 183, 212, 0.15);
  --blue-25: rgba(155, 183, 212, 0.25);
  --blue-30: rgba(155, 183, 212, 0.3);
  --blue-60: rgba(155, 183, 212, 0.6);

  /* blue-dark */
  --blue-dark-25: rgba(26, 95, 138, 0.25);
  --blue-dark-50: rgba(26, 95, 138, 0.5);

  /* green-mid */
  --green-mid-25: rgba(26, 122, 92, 0.25);
  --green-mid-50: rgba(26, 122, 92, 0.5);

  /* Overlay */
  --overlay-bg: rgba(0, 51, 102, 0.85); /* Navy overlay */
  --overlay-blur: 3px;

  --banner-bg: var(--white);
  --banner-border: var(--accent);
  --banner-radius: 8px;
  --banner-color: var(--navy);

  --button-bg: var(--accent);
  --button-hover: var(--accent-bright);
  --button-text: var(--white);

  /* Font sizes */
  --fs-xs: clamp(0.7rem, 0.8vw, 0.75rem);
  --fs-sm: clamp(0.8rem, 1vw, 0.875rem);
  --fs-base: clamp(0.95rem, 1.2vw, 1rem);
  --fs-md: clamp(1.05rem, 1.5vw, 1.125rem);
  --fs-lg: clamp(1.15rem, 2vw, 1.25rem);
  --fs-xl: clamp(1.3rem, 2.5vw, 1.5rem);
  --fs-2xl: clamp(1.6rem, 3vw, 1.875rem);
  --fs-3xl: clamp(1.8rem, 4vw, 2.25rem);
  --fs-4xl: clamp(2.2rem, 5vw, 3rem);
  --fs-5xl: clamp(2.8rem, 6vw, 4rem);
  --fs-10xl: clamp(4rem, 10vw, 6rem);
  --fs-xxl: clamp(6rem, 15vw, 12rem);
  --fs-huge: clamp(12rem, 20vw, 16rem);

  /* Tight (for headings, large text) */
  --ls-tightest: -0.04em;
  --ls-tighter: -0.02em;
  --ls-tight: -0.01em;

  /* Normal (for body, default) */
  --ls-normal: 0em;

  /* Slightly wide (small text, labels) */
  --ls-wide: 0.02em;
  --ls-wider: 0.05em;
  --ls-widest: 0.1em;

  /* Extreme wide (special UI, hero text) */
  --ls-huge: 0.2em;
  --ls-huger: 0.3em;
  --ls-massive: 0.5em;
}

/* Also show in very small screens regardless of orientation */
@media (max-width: 480px) {
  .orientation-notice {
    display: block;
  }
}

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
body {
  font-family: "Source Sans Pro", sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────
   SCREEN OVERLAY (mobile orientation warning)
───────────────────────────────────────── */
.screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(var(--overlay-blur));
}

.screen-banner {
  background: var(--banner-bg);
  border: 3px solid var(--banner-border);
  border-radius: var(--banner-radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: "Source Sans Pro", sans-serif;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--banner-color);
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}

.screen-banner .sb-icon {
  font-size: var(--fs-4xl);
  text-align: center;
  margin-bottom: 1rem;
}

.screen-banner .sb-dismiss {
  background: var(--button-bg);
  border: none;
  color: var(--button-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: var(--ls-widest);
  transition: background 0.15s;
  width: 100%;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.screen-banner .sb-dismiss:hover {
  background: var(--button-hover);
}

/* Shake animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--paper);
  padding: 1rem 3rem 1rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(155, 183, 212, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.header-logo-img {
  height: 84px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

header::before {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Fraunces", serif;
  font-size: var(--fs-xxl);
  font-weight: 600;
  color: var(--blue-05);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue-bright),
    transparent
  );
}

header h1 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: var(--fs-5xl);
  letter-spacing: var(--ls-tighter);
  margin-bottom: 0.5rem;
  position: relative;
}

header h1 span {
  color: var(--blue-bright);
}

header > p {
  color: var(--blue-pale);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  position: relative;
  padding-left: 1.5rem;
}

header > p::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue-bright);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hero-tagline {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--blue-bright);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  border-top: 1px solid rgba(155, 183, 212, 0.2);
  padding-top: 1rem;
  flex-wrap: wrap;
}

.hero-tagline span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-tagline span::before {
  content: "▶";
  font-size: var(--fs-xs);
  opacity: 0.6;
  color: var(--blue-bright);
}

/* ─────────────────────────────────────────
   CONTAINER
───────────────────────────────────────── */
.container {
  max-width: 900px;
  width: 95%;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  flex: 1;
}

/* ─────────────────────────────────────────
   CTAC INTRO BOX
───────────────────────────────────────── */
.ctac-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--paper);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.ctac-box::before {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  font-family: "Fraunces", serif;
  font-size: var(--fs-10xl);
  font-weight: 600;
  color: var(--blue-05);
  pointer-events: none;
  line-height: 1;
}

.ctac-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.5rem;
}

.ctac-box h2 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: var(--fs-3xl);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.ctac-box h2 em {
  font-style: italic;
  color: var(--blue-bright);
}

.ctac-pills {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ctac-pill {
  background: rgba(155, 183, 212, 0.1);
  border: 1px solid rgba(155, 183, 212, 0.22);
  border-radius: 8px;
  padding: 1rem 1.4rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  flex: 1;
  min-width: 180px;
}

.ctac-pill strong {
  display: block;
  color: var(--blue-pale);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* ─────────────────────────────────────────
   SECTION HEADINGS
───────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

.section-label .num {
  background: var(--navy);
  color: var(--paper);
  font-size: var(--fs-xs);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  letter-spacing: var(--ls-wider);
}

.section-label h3 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: var(--fs-2xl);
  letter-spacing: var(--ls-tight);
}

.section-label h3 em {
  font-style: italic;
  color: var(--blue-muted);
  font-size: var(--fs-md);
}

/* ─────────────────────────────────────────
   ACCORDION
───────────────────────────────────────── */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.acc-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.acc-item:hover {
  box-shadow: 0 4px 12px rgba(26, 95, 138, 0.1);
}

.acc-item.open {
  box-shadow: 0 4px 16px rgba(26, 95, 138, 0.15);
}

.acc-trigger {
  width: 100%;
  background: var(--sky-pale);
  border: none;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: var(--fs-sm);
  text-align: left;
  transition: background 0.2s;
}

.acc-trigger:hover {
  background: var(--sky-soft);
}

.acc-item.open .acc-trigger {
  background: var(--navy);
  color: var(--paper);
}

.acc-badge {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  flex-shrink: 0;
}

.badge-raw {
  background: var(--yellow-bg);
  color: var(--blue-deep);
  border: 1px solid var(--blue-pale);
}

.badge-factory {
  background: var(--red-bg);
  color: var(--blue-cobalt);
  border: 1px solid var(--blue-pale);
}

.badge-loss {
  background: var(--green-bg);
  color: var(--blue-deep);
  border: 1px solid var(--blue-pale);
}

.acc-item.open .badge-raw {
  background: rgba(155, 183, 212, 0.15);
  color: var(--blue-bright);
  border-color: var(--blue-30);
}

.acc-item.open .badge-factory {
  background: rgba(26, 95, 138, 0.2);
  color: var(--blue-bright);
  border-color: var(--blue-dark-25);
}

.acc-item.open .badge-loss {
  background: var(--blue-dark-25);
  color: var(--blue-bright);
  border-color: var(--blue-dark-50);
}

.acc-title {
  flex: 1;
  font-weight: 500;
}

.acc-arrow {
  font-size: var(--fs-sm);
  transition: transform 0.3s;
  opacity: 0.5;
  margin-left: auto;
}

.acc-item.open .acc-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.acc-body {
  display: none;
  padding: 1.4rem;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  animation: slideDown 0.25s ease;
}

.acc-item.open .acc-body {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   CONDITION LIST (inside accordion body)
───────────────────────────────────────── */
.condition-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.condition-item {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: var(--fs-sm);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--blue-pale);
}

.condition-item:last-child {
  border-bottom: none;
}

.condition-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.dot-raw {
  background: var(--blue-deep);
}

.dot-factory {
  background: var(--blue-cobalt);
}

.dot-loss {
  background: var(--blue-bright);
}

/* ─────────────────────────────────────────
   CLUE BOX
───────────────────────────────────────── */
.clue-box {
  background: var(--sky-light);
  border-left: 3px solid var(--blue-cobalt);
  border-radius: 0 6px 6px 0;
  padding: 0.7rem 1rem;
  font-size: var(--fs-sm);
  color: var(--slate);
  margin-top: 0.8rem;
  line-height: 1.6;
}

.clue-box strong {
  color: var(--navy);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}

/* ─────────────────────────────────────────
   CTAC CALLOUT
───────────────────────────────────────── */
.ctac-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--paper);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-top: 0.8rem;
}

.ctac-callout::before {
  content: "Guides";
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  background: var(--blue-bright);
  color: var(--navy);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  flex-shrink: 0;
  font-weight: 500;
  margin-top: 2px;
}

/* ─────────────────────────────────────────
   SUMMARY SECTION
───────────────────────────────────────── */
.summary-section {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  border-radius: 16px;
  padding: 2.5rem;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.summary-section::before {
  content: "∑";
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  font-family: "Fraunces", serif;
  font-size: var(--fs-xxl);
  font-weight: 600;
  color: var(--blue-05);
  pointer-events: none;
  line-height: 1;
}

.summary-section h3 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: var(--fs-xl);
  margin-bottom: 0.4rem;
  color: var(--blue-bright);
}

.summary-section > p {
  color: var(--blue-pale);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.summary-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(155, 183, 212, 0.12);
  border-radius: 10px;
  padding: 1.2rem;
}

.summary-col h4 {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-col h4.raw {
  color: var(--blue-bright);
}

.summary-col h4.factory {
  color: var(--blue-pale);
}

.summary-col h4.loss {
  color: var(--blue-bright);
}

.summary-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.summary-col li {
  font-size: var(--fs-sm);
  color: var(--blue-pale);
  line-height: 1.5;
  padding-left: 0.8rem;
  position: relative;
}

.summary-col li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.summary-question {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(155, 183, 212, 0.15);
  padding-top: 1.2rem;
  font-size: var(--fs-sm);
  color: var(--blue-pale);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.summary-question strong {
  color: var(--blue-bright);
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--paper);
  padding: 1rem 3rem 1rem;
  width: 100%;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(155, 183, 212, 0.2);
}

footer::after {
  position: absolute;
  left: 2rem;
  bottom: 0.5rem;
  font-family: "Fraunces", serif;
  font-size: var(--fs-10xl);
  font-weight: 600;
  color: var(--blue-05);
  pointer-events: none;
  line-height: 1;
}

footer p {
  color: var(--blue-pale);
  font-size: var(--fs-xs);
  text-align: center;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

footer p:first-child {
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--off-white);
}

/* ─────────────────────────────────────────
   FLOATING HOME BUTTON
───────────────────────────────────────── */
.home-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--paper);
  text-decoration: none;
  font-family: "DM Mono", monospace;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 20px rgba(10, 25, 47, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  border: 1px solid rgba(155, 183, 212, 0.15);
}

.home-btn::before {
  content: "←";
  color: var(--blue-bright);
  font-size: var(--fs-sm);
}

.home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10, 25, 47, 0.25);
  background: linear-gradient(135deg, var(--slate) 0%, var(--steel) 100%);
}

.home-btn:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .home-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    padding: 0.65rem 1rem;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 700px) {
  header {
    padding: 1rem 1.5rem;
  }
  header h1 {
    font-size: var(--fs-4xl);
  }
  .hero-tagline {
    gap: 1rem;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .ctac-pills {
    flex-direction: column;
  }
}

/* ─────────────────────────────────────────
   CENTREPIECE
───────────────────────────────────────── */
.centrepiece {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.centrepiece::before {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--blue-05);
  pointer-events: none;
  line-height: 1;
}

.centrepiece .cp-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.2rem;
}

.centrepiece blockquote {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-2xl);
  line-height: 1.5;
  color: var(--paper);
  max-width: 620px;
  margin: 0 auto 1.2rem;
}

.centrepiece blockquote em {
  color: var(--blue-bright);
}

.centrepiece p {
  font-size: var(--fs-sm);
  color: var(--blue-pale);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────
   FINAL MESSAGE
───────────────────────────────────────── */
.final-message {
  margin-top: 3rem;
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
  border-radius: 16px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.final-message::before {
  position: absolute;
  left: 50%;
  bottom: -4rem;
  transform: translateX(-50%);
  font-family: "Fraunces", serif;
  font-size: var(--fs-huge);
  font-weight: 600;
  color: var(--blue-05);
  pointer-events: none;
  line-height: 1;
}

.final-message .fm-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.final-message blockquote {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.6;
  color: var(--paper);
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.final-message p {
  color: var(--blue-pale);
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.fm-pills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.fm-pill {
  background: rgba(172, 197, 223, 0.1);
  border: 1px solid rgba(155, 183, 212, 0.2);
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--cream);
  letter-spacing: var(--ls-wider);
}

@media (max-width: 700px) {
  .centrepiece blockquote {
    font-size: var(--fs-lg);
  }
  .final-message blockquote {
    font-size: var(--fs-lg);
  }
}
