/* Base theme shared with the Major Giving demo (mhmg-demo). */

:root {
  --color-black: 0 0 0;
  --color-white: 255 255 255;
  --color-off-white: 249 248 248;
  --color-black-dark: 30 30 36;
  --color-black-light: 71 68 72;
  --color-brand-gold: 251 189 49;
  --color-blue-light: 37 187 219;
  --color-blue-dark: 4 75 127;
  --color-green-light: 1 121 94;
  --color-green-dark: 0 89 64;
  --color-red: 230 41 40;
  --color-blue: 34 101 153;
  --color-orange: 231 111 81;
  --color-yellow: 255 203 105;

  --focus-ring: 2px solid rgb(var(--color-red));
  --focus-shadow: 0 0 0 2px rgb(var(--color-white));

  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-family-h: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-size-xsmall: calc((12 / 16) * 1rem);
  --font-size-small: calc((14 / 16) * 1rem);
  --font-size-body: 1rem;
  --font-size-ui: calc((18 / 16) * 1rem);
  --font-size-h6: calc((18 / 16) * 1rem);
  --font-size-h5: calc((24 / 16) * 1rem);
  --font-size-h4: calc((34 / 16) * 1rem);
  --line-height-body: 1.4;

  --card-radius: 16px;
  --card-border: 1px solid rgb(var(--color-black) / 0.1);
  --radius-brand: 12px 6px 12px 6px;
  --radius-media: 28px 12px 28px 12px;

  --page: 1180px;
  --shell: 820px;
  --gutter: clamp(32px, 8vw, 64px);
  --header-h: 66px;

  --shadow-sm: 0 1px 2px rgb(var(--color-black) / 0.05);
  --shadow-md: 0 2px 6px rgb(var(--color-black) / 0.07), 0 14px 30px -18px rgb(var(--color-black) / 0.35);
  --shadow-lg: 0 4px 12px rgb(var(--color-black) / 0.08), 0 30px 60px -28px rgb(var(--color-black) / 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: rgb(var(--color-white));
  color: rgb(var(--color-black-dark));
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-inline-size: 100%; }

:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-family-h);
  font-weight: 600;
  line-height: 1;
  margin: 0;
}

:focus-visible {
  box-shadow: var(--focus-shadow);
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.Wrap {
  inline-size: min(100% - var(--gutter), var(--page));
  margin-inline: auto;
}

.Wrap--narrow { inline-size: min(100% - var(--gutter), var(--shell)); }

/* ---------- Header ---------- */

.Header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  background: rgb(var(--color-blue-light));
  color: rgb(var(--color-white));
  transition: box-shadow 300ms;
}

.Header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(var(--color-blue-dark) / 0.7); }

.Header__inner {
  display: flex;
  align-items: center;
  gap: 15px;
  block-size: var(--header-h);
}

.Logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-inline-size: 0;
  gap: 14px;
  margin-inline-end: auto;
  color: rgb(var(--color-white));
  text-decoration: none;
}

.Logo__mark {
  inline-size: 44px;
  block-size: 44px;
  flex: 0 0 auto;
}

.Logo__mark svg { inline-size: 100%; block-size: 100%; display: block; }

.Logo__text { display: grid; min-inline-size: 0; }

.Logo__name {
  font-family: var(--font-family-h);
  font-size: var(--font-size-h6);
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.Logo__sub {
  font-size: var(--font-size-xsmall);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.82);
}

.Nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.Nav__link {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.9);
  font-size: var(--font-size-small);
  font-weight: 500;
  text-decoration: none;
  transition: background 240ms, color 240ms;
}

.Nav__link:hover { background: rgb(255 255 255 / 0.16); color: rgb(var(--color-white)); }

.Nav__link.is-current {
  background: rgb(255 255 255 / 0.2);
  color: rgb(var(--color-white));
}

.Header__cta { margin-inline-start: 10px; }

.Menu {
  display: none;
  inline-size: 42px;
  block-size: 42px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: rgb(var(--color-white));
  transition: background 240ms;
}

.Menu:hover { background: rgb(255 255 255 / 0.24); }

.Menu svg { inline-size: 20px; block-size: 20px; }

.Menu__close { display: none; }
.Menu[aria-expanded='true'] .Menu__open { display: none; }
.Menu[aria-expanded='true'] .Menu__close { display: block; }

.Drawer {
  display: grid;
  grid-template-rows: 0fr;
  background: rgb(var(--color-blue-light));
  transition: grid-template-rows 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.Drawer.is-open { grid-template-rows: 1fr; }

.Drawer__inner { overflow: hidden; }

.Drawer__links {
  display: grid;
  gap: 2px;
  padding-block: 4px 18px;
}

.Drawer__links a {
  padding: 12px 4px;
  border-block-start: 1px solid rgb(255 255 255 / 0.22);
  color: rgb(var(--color-white));
  font-family: var(--font-family-h);
  font-size: var(--font-size-h6);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.Button {
  --button-background-1: rgb(var(--color-brand-gold));
  --button-background-2: color-mix(in srgb, rgb(var(--color-white)) 20%, rgb(var(--color-brand-gold)));
  --button-border: transparent;
  --button-color: rgb(var(--color-black-dark));
  align-items: center;
  background: linear-gradient(
    to right,
    var(--button-background-2) 0%,
    var(--button-background-2) 50%,
    var(--button-background-1) 50%,
    var(--button-background-1) 100%
  );
  background-position: calc(100% + 5px) 50%;
  background-size: calc(200% + 20px) 100%;
  border: 2px solid var(--button-border);
  border-radius: var(--radius-brand);
  color: var(--button-color);
  display: inline-flex;
  font-size: var(--font-size-ui);
  font-weight: 500;
  gap: 12px;
  justify-content: center;
  min-block-size: 50px;
  max-inline-size: fit-content;
  padding: 0 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 300ms ease-in-out, border 300ms, color 300ms;
}

.Button:hover { background-position: -5px 50%; }

.Button svg { inline-size: 16px; block-size: 16px; fill: currentColor; flex: 0 0 auto; }

.Button--secondary {
  --button-background-1: rgb(var(--color-green-light));
  --button-background-2: color-mix(in srgb, rgb(var(--color-black)) 20%, rgb(var(--color-green-light)));
  --button-color: rgb(var(--color-white));
}

.Button--ghost {
  --button-background-1: rgb(var(--color-white));
  --button-background-2: rgb(var(--color-off-white));
  --button-border: rgb(var(--color-black) / 0.1);
}

.Button--sm {
  min-block-size: 42px;
  padding: 0 16px;
  font-size: var(--font-size-small);
  gap: 8px;
}

.Button--block {
  inline-size: 100%;
  max-inline-size: none;
}

/* ---------- Backdrop (hero) ---------- */

.Backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.Backdrop__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(var(--color-white)) 0%, rgb(var(--color-off-white)) 100%);
}

.Backdrop__wash { position: absolute; inset: -20%; }

.Backdrop__wash span {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.Backdrop__wash span:nth-child(1) {
  inline-size: 58vmax; block-size: 58vmax;
  inset-block-start: -20%; inset-inline-end: -14%;
  background: radial-gradient(circle at 50% 50%,
    rgb(var(--color-blue-light) / 0.18) 0%,
    rgb(var(--color-blue-light) / 0.05) 44%,
    rgb(var(--color-blue-light) / 0) 70%);
  animation: drift-a 58s ease-in-out infinite;
}

.Backdrop__wash span:nth-child(2) {
  inline-size: 50vmax; block-size: 50vmax;
  inset-block-end: -18%; inset-inline-start: -12%;
  background: radial-gradient(circle at 50% 50%,
    rgb(var(--color-brand-gold) / 0.22) 0%,
    rgb(var(--color-brand-gold) / 0.07) 44%,
    rgb(var(--color-brand-gold) / 0) 70%);
  animation: drift-b 72s ease-in-out infinite;
}

.Backdrop__wash span:nth-child(3) {
  inline-size: 44vmax; block-size: 44vmax;
  inset-block-end: 4%; inset-inline-end: -8%;
  background: radial-gradient(circle at 50% 50%,
    rgb(var(--color-green-light) / 0.12) 0%,
    rgb(var(--color-green-light) / 0.04) 46%,
    rgb(var(--color-green-light) / 0) 72%);
  animation: drift-a 84s ease-in-out infinite reverse;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(5%, 5%, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-6%, -4%, 0) scale(0.94); }
}

.Backdrop__globes span,
.Promise__globe {
  position: absolute;
  display: block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><g fill='none' stroke='%23044B7F' stroke-width='1.5'><circle cx='110' cy='110' r='100'/><ellipse cx='110' cy='110' rx='33' ry='100'/><ellipse cx='110' cy='110' rx='67' ry='100'/><path d='M10 110h200'/><ellipse cx='110' cy='72' rx='92.5' ry='12'/><ellipse cx='110' cy='148' rx='92.5' ry='12'/><ellipse cx='110' cy='40' rx='71.4' ry='9'/><ellipse cx='110' cy='180' rx='71.4' ry='9'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  will-change: transform;
}

.Backdrop__globes span:nth-child(1) {
  inline-size: min(64vmin, 660px);
  aspect-ratio: 1;
  inset-block-end: -26vmin;
  inset-inline-start: -18vmin;
  opacity: 0.07;
  animation: globe-a 96s ease-in-out infinite;
}

.Backdrop__globes span:nth-child(2) {
  inline-size: min(38vmin, 400px);
  aspect-ratio: 1;
  inset-block-start: -12vmin;
  inset-inline-end: -10vmin;
  opacity: 0.055;
  animation: globe-b 124s ease-in-out infinite;
}

@keyframes globe-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-3%, -2%, 0) scale(1.06); }
}

@keyframes globe-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.04); }
  50%      { transform: translate3d(3%, 3%, 0) scale(0.96); }
}

.Backdrop__rule {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 30%;
  background: linear-gradient(to top, rgb(var(--color-white)) 0%, rgb(var(--color-white) / 0) 100%);
}

.Backdrop__sheen {
  position: absolute;
  inset: -35%;
  background: linear-gradient(
    104deg,
    rgb(255 255 255 / 0) 36%,
    rgb(255 255 255 / 0.7) 50%,
    rgb(255 255 255 / 0) 64%
  );
  animation: sheen 42s ease-in-out infinite;
  will-change: transform;
}

@keyframes sheen {
  0%, 100% { transform: translate3d(-12%, 0, 0); opacity: 0.4; }
  50%      { transform: translate3d(12%, 0, 0); opacity: 0.7; }
}

/* ---------- Hero ---------- */

.Hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.Hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 80px);
  padding-block: clamp(48px, 9vh, 104px) clamp(64px, 10vh, 112px);
}

.Hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 15px;
  border-radius: var(--radius-brand);
  background: rgb(var(--color-blue-dark));
  color: rgb(var(--color-white));
  font-size: var(--font-size-xsmall);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.Hero__eyebrow::before {
  content: '';
  inline-size: 7px; block-size: 7px;
  border-radius: 50%;
  background: rgb(var(--color-brand-gold));
}

.Hero__title {
  font-size: clamp(2.5rem, 1.45rem + 3.7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-block: 24px 0;
  text-wrap: balance;
}

.Hero__title em {
  font-style: normal;
  color: rgb(var(--color-green-light));
}

.Word {
  display: inline-block;
  opacity: 0;
  animation: word-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes word-in {
  from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.Hero__lede {
  max-inline-size: 48ch;
  margin: 22px 0 0;
  color: rgb(var(--color-black-dark));
  font-size: var(--font-size-ui);
  line-height: 1.55;
  text-wrap: pretty;
}

.Hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 32px;
}

.Facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px 24px;
  margin: 38px 0 0;
  padding: 24px 0 0;
  border-block-start: var(--card-border);
}

.Fact { display: grid; gap: 4px; margin: 0; }

.Fact dt {
  font-size: var(--font-size-small);
  color: rgb(var(--color-black-light));
  line-height: 1.4;
}

.Fact dd {
  order: -1;
  margin: 0;
  font-family: var(--font-family-h);
  font-size: var(--font-size-h5);
  font-weight: 600;
  line-height: 1.1;
  color: rgb(var(--color-green-dark));
  font-variant-numeric: tabular-nums;
}

.Hero__media { position: relative; }

.Hero__frame {
  position: relative;
  aspect-ratio: 1 / 1.02;
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgb(var(--color-off-white));
}

.Hero__frame img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 40% 50%;
  animation: settle 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.Hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, rgb(var(--color-blue-light) / 0.14) 0%, rgb(var(--color-blue-light) / 0) 22%),
    linear-gradient(to top, rgb(var(--color-black) / 0.24) 0%, rgb(var(--color-black) / 0) 40%);
  box-shadow: inset 0 0 0 1px rgb(var(--color-black) / 0.08);
  pointer-events: none;
}

.Annot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.Annot.is-off { visibility: hidden; }

.Annot__spot {
  position: absolute;
  inline-size: 18px;
  block-size: 18px;
  margin: -9px 0 0 -9px;
  border: 3px solid rgb(var(--color-white));
  border-radius: 50%;
  background: rgb(var(--color-brand-gold));
  box-shadow: 0 2px 8px rgb(var(--color-black) / 0.35);
  animation: spot-in 600ms 1100ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.Annot__spot::before,
.Annot__spot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid rgb(var(--color-brand-gold));
  border-radius: 50%;
  animation: spot-ping 2.6s 1.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.Annot__spot::after { animation-delay: 2.9s; }

@keyframes spot-in {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spot-ping {
  0%   { opacity: 0.9; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(3.2); }
}

.Annot__line {
  position: absolute;
  inline-size: 0;
  border-inline-start: 2px dashed rgb(var(--color-white) / 0.95);
  filter: drop-shadow(0 1px 2px rgb(var(--color-black) / 0.4));
  transform-origin: top center;
  animation: line-in 600ms 1300ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes line-in {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.Annot__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  inline-size: min(258px, 58%);
  margin: 0;
  padding: 12px 16px 12px 12px;
  border: var(--card-border);
  border-radius: var(--card-radius);
  background: rgb(var(--color-white) / 0.96);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: float-in 800ms 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.Annot__card:hover { transform: translateY(-3px); }
.Annot:has(.Annot__card:hover) .Annot__spot { transform: scale(1.25); transition: transform 300ms; }

.Annot__icon {
  inline-size: 40px;
  block-size: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius-brand);
  background: rgb(var(--color-blue));
  color: rgb(var(--color-white));
}

.Annot__icon svg { inline-size: 21px; block-size: 21px; }

.Annot__title {
  display: block;
  font-family: var(--font-family-h);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: 1.25;
}

.Annot__sub {
  display: block;
  margin-block-start: 3px;
  font-size: var(--font-size-xsmall);
  line-height: 1.45;
  color: rgb(var(--color-black-light));
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}

.Tribute {
  position: absolute;
  inset-block-start: clamp(20px, 3.4vw, 36px);
  inset-inline-end: clamp(-30px, -2.2vw, -14px);
  display: grid;
  gap: 3px;
  min-inline-size: 238px;
  padding: 14px 18px 13px;
  border-radius: var(--radius-brand);
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0) 55%),
    rgb(var(--color-blue));
  color: rgb(var(--color-white));
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), var(--shadow-lg);
  rotate: 2deg;
  animation: float-in 900ms 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: rotate 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.Tribute:hover { rotate: 0deg; transform: scale(1.03); }

.Tribute__label {
  font-size: var(--font-size-xsmall);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.72);
  transition: opacity 300ms;
}

.Tribute__label.is-swapping { opacity: 0; }

.Tribute__name {
  display: flex;
  align-items: center;
  min-block-size: 1.4em;
  font-family: var(--font-family-h);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.Tribute__caret {
  inline-size: 2px;
  block-size: 1.05em;
  margin-inline-start: 3px;
  background: rgb(var(--color-brand-gold));
  animation: caret 1s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.Tribute__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 8px;
  padding-block-start: 9px;
  border-block-start: 1px solid rgb(255 255 255 / 0.22);
  font-size: var(--font-size-small);
  font-weight: 600;
  color: rgb(var(--color-brand-gold));
}

.Tribute__go svg {
  inline-size: 14px; block-size: 14px;
  fill: currentColor;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.Tribute:hover .Tribute__go svg { transform: translateX(4px); }

/* ---------- Ribbon ---------- */

.Ribbon {
  display: flex;
  align-items: stretch;
  border-block: var(--card-border);
  background: rgb(var(--color-white));
  overflow: hidden;
}

.Ribbon__label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 clamp(16px, 3vw, 28px);
  background: rgb(var(--color-green-light));
  color: rgb(var(--color-white));
  font-size: var(--font-size-xsmall);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.Ribbon__label::before {
  content: '';
  inline-size: 8px; block-size: 8px;
  border-radius: 50%;
  background: rgb(var(--color-brand-gold));
  box-shadow: 0 0 0 0 rgb(var(--color-brand-gold) / 0.6);
  animation: beacon 2.4s ease-out infinite;
}

@keyframes beacon {
  0%   { box-shadow: 0 0 0 0 rgb(var(--color-brand-gold) / 0.6); }
  70%, 100% { box-shadow: 0 0 0 9px rgb(var(--color-brand-gold) / 0); }
}

.Ribbon__track {
  flex: 1 1 auto;
  min-inline-size: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
}

.Ribbon__list {
  display: flex;
  inline-size: max-content;
  animation: marquee 48s linear infinite;
}

.Ribbon:hover .Ribbon__list { animation-play-state: paused; }

.Ribbon__set { display: flex; }

.Ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  white-space: nowrap;
}

.Ribbon__item svg {
  inline-size: 16px; block-size: 16px;
  color: rgb(var(--color-blue-light));
}

.Ribbon__place {
  font-family: var(--font-family-h);
  font-size: var(--font-size-h6);
  font-weight: 600;
}

.Ribbon__people {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgb(var(--color-green-light) / 0.09);
  color: rgb(var(--color-green-dark));
  font-size: var(--font-size-small);
  font-variant-numeric: tabular-nums;
}

.Ribbon__people strong { font-weight: 700; }

.Ribbon__people svg { inline-size: 15px; block-size: 15px; color: currentColor; }

.Ribbon__item--total .Ribbon__place { color: rgb(var(--color-green-dark)); }

.Ribbon__item--total .Ribbon__people {
  background: rgb(var(--color-brand-gold) / 0.2);
  color: rgb(var(--color-black-dark));
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ---------- Sections ---------- */

.Section { padding-block: clamp(64px, 10vw, 112px); }

.Section--tint { background: rgb(var(--color-off-white)); }

.Section--follow { padding-block-start: clamp(40px, 6vw, 72px); }

.Head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-block-end: clamp(28px, 4vw, 44px);
}

.Head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.Head__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: var(--font-size-xsmall);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--color-green-light));
}

.Head__tag::before {
  content: '';
  inline-size: 20px;
  block-size: 2px;
  background: rgb(var(--color-brand-gold));
  transform-origin: left center;
  transition: transform 800ms 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.Reveal:not(.is-in) .Head__tag::before { transform: scaleX(0); }

.Head__title {
  max-inline-size: 18ch;
  font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.Head__sub {
  max-inline-size: 42ch;
  margin: 0;
  color: rgb(var(--color-black-light));
  font-size: var(--font-size-ui);
  line-height: 1.5;
  text-wrap: pretty;
}

.Reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease-out, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}

.Reveal.is-in { opacity: 1; transform: translateY(0); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Promise ---------- */

.Promise {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5.5vw, 68px);
  border-radius: 24px;
  background: rgb(var(--color-blue-dark));
  color: rgb(var(--color-white));
  overflow: hidden;
  isolation: isolate;
}

.Promise::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 78%) var(--my, 18%),
    rgb(var(--color-blue-light) / 0.2), rgb(var(--color-blue-light) / 0) 62%);
  transition: background 120ms;
  pointer-events: none;
}

.Promise::after {
  content: '';
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -12%;
  inline-size: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--color-blue-light) / 0.34), transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.Promise__globe {
  inset-block-end: -34%;
  inset-inline-start: -14%;
  inline-size: 56%;
  aspect-ratio: 1;
  opacity: 0.12;
  filter: brightness(0) invert(1);
  z-index: -1;
  animation: globe-a 96s ease-in-out infinite;
}

.Promise__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: var(--font-size-xsmall);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--color-brand-gold));
}

.Promise__tag::before {
  content: '';
  inline-size: 20px;
  block-size: 2px;
  background: rgb(var(--color-brand-gold));
}

.Promise__title {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3rem);
  line-height: 1.04;
  margin-block: 16px 20px;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.Promise__title em {
  font-style: normal;
  color: rgb(var(--color-brand-gold));
}

.Promise__desc {
  margin: 0 0 14px;
  max-inline-size: 50ch;
  color: rgb(255 255 255 / 0.86);
  font-size: var(--font-size-body);
  line-height: 1.6;
  text-wrap: pretty;
}

.Promise__desc:last-of-type { margin-block-end: 0; }

.Promise__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.Promise__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius-brand);
  background: rgb(255 255 255 / 0.08);
  transition: background 300ms, border-color 300ms, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.Promise__item:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(var(--color-brand-gold) / 0.55);
  transform: translateX(4px);
}

.Promise__icon {
  inline-size: 44px;
  block-size: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius-brand);
  background: rgb(var(--color-brand-gold) / 0.16);
  color: rgb(var(--color-brand-gold));
}

.Promise__icon svg { inline-size: 22px; block-size: 22px; }

.Promise__name {
  display: block;
  font-family: var(--font-family-h);
  font-size: var(--font-size-h6);
  font-weight: 600;
  line-height: 1.2;
}

.Promise__text {
  display: block;
  margin-block-start: 5px;
  font-size: var(--font-size-small);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.8);
}

.Kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.Kind { position: relative; }

.Kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.Kind span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: 42px;
  padding: 0 16px;
  border: 2px solid rgb(var(--color-black) / 0.1);
  border-radius: var(--radius-brand);
  background: rgb(var(--color-white));
  font-size: var(--font-size-small);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 220ms, background 220ms, color 220ms, transform 220ms;
}

.Kind span::before {
  content: '';
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  border: 1.5px solid rgb(var(--color-black) / 0.3);
  transition: background 220ms, border-color 220ms, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.Kind span:hover { border-color: rgb(var(--color-green-light) / 0.45); transform: translateY(-1px); }

.Kind input:checked + span {
  border-color: rgb(var(--color-green-light));
  background: rgb(var(--color-green-light) / 0.08);
  color: rgb(var(--color-green-dark));
}

.Kind input:checked + span::before {
  border-color: rgb(var(--color-green-light));
  background: rgb(var(--color-green-light));
  transform: scale(1.15);
}

.Kind input:focus-visible + span {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.Pick__input { position: relative; }

.Pick__input input,
.Pick__select select {
  inline-size: 100%;
  min-block-size: 50px;
  padding: 12px 64px 12px 14px;
  border: 2px solid rgb(var(--color-black) / 0.1);
  border-radius: var(--radius-brand);
  background: rgb(var(--color-white));
  font-size: var(--font-size-body);
  line-height: 1.4;
  transition: border-color 200ms, box-shadow 200ms;
}

.Pick__input input { font-family: var(--font-family-h); font-weight: 600; font-size: var(--font-size-h6); }
.Pick__input input::placeholder { font-family: var(--font-family); font-weight: 400; font-size: var(--font-size-body); color: rgb(var(--color-black-light) / 0.5); }

.Pick__input input:hover,
.Pick__select select:hover { border-color: rgb(var(--color-black) / 0.18); }

.Pick__input input:focus,
.Pick__select select:focus {
  border-color: rgb(var(--color-green-light));
  box-shadow: 0 0 0 4px rgb(var(--color-green-light) / 0.12);
  outline: none;
}

.Pick__count {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 50%;
  translate: 0 -50%;
  font-size: var(--font-size-xsmall);
  font-weight: 500;
  color: rgb(var(--color-black-light) / 0.7);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.Pick__count.is-near { color: rgb(var(--color-orange)); }

.Pick__select select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  font-weight: 500;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23017964' d='m12 15.5-5-5L8.4 9 12 12.7 15.6 9 17 10.5l-5 5Z'/></svg>") no-repeat right 12px center / 16px 16px,
    rgb(var(--color-white));
  cursor: pointer;
}

.Quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-block-start: 10px;
}

.Quick__label {
  font-size: var(--font-size-xsmall);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--color-black-light));
}

.Quick__chip {
  padding: 6px 12px;
  border: 1px dashed rgb(var(--color-black) / 0.22);
  border-radius: 999px;
  background: none;
  font-size: var(--font-size-small);
  color: rgb(var(--color-black-dark));
  transition: border-color 200ms, background 200ms, color 200ms;
}

.Quick__chip:hover {
  border-style: solid;
  border-color: rgb(var(--color-green-light) / 0.5);
  background: rgb(var(--color-green-light) / 0.08);
  color: rgb(var(--color-green-dark));
}

.Wall {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 68px) clamp(18px, 4vw, 48px);
  border-radius: var(--radius-media);
  background: rgb(196 178 150);
  box-shadow: inset 0 0 0 1px rgb(var(--color-black) / 0.06), var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
  perspective: 1000px;
}

.Wall__photo {
  position: absolute;
  inset: -6px;
  z-index: -2;
  background: url('img/wall.jpg') center / cover no-repeat;
  filter: saturate(0.95) brightness(1.04);
}

.Wall::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 30% 10%, rgb(255 244 222 / 0.35), transparent 70%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgb(70 50 30 / 0.28) 100%);
}

.Wall__light {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: linear-gradient(115deg, rgb(255 250 235 / 0) 30%, rgb(255 250 235 / 0.4) 48%, rgb(255 250 235 / 0) 64%);
  animation: sheen 26s ease-in-out infinite;
  pointer-events: none;
}

.Plaque {
  position: relative;
  inline-size: min(100%, 430px);
  margin: 0;
  padding: 26px 26px 24px;
  border-radius: 8px;
  background:
    linear-gradient(165deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0) 42%),
    linear-gradient(180deg, rgb(38 110 184), rgb(26 86 152));
  color: rgb(var(--color-white));
  box-shadow:
    0 0 0 7px rgb(226 229 233),
    0 0 0 8px rgb(var(--color-black) / 0.18),
    0 3px 0 8px rgb(150 154 160),
    0 36px 50px -18px rgb(40 26 12 / 0.65),
    0 14px 24px -12px rgb(40 26 12 / 0.45);
  overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.Plaque__screw {
  position: absolute;
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(250 250 250), rgb(150 155 160) 70%);
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.35);
}

.Plaque__screw::after {
  content: '';
  position: absolute;
  inset: 4px 1.5px auto;
  block-size: 1px;
  background: rgb(0 0 0 / 0.35);
  rotate: 35deg;
}

.Plaque__screw:nth-child(1) { inset-block-start: 9px; inset-inline-start: 9px; }
.Plaque__screw:nth-child(2) { inset-block-start: 9px; inset-inline-end: 9px; }
.Plaque__screw:nth-child(3) { inset-block-end: 9px; inset-inline-start: 9px; }
.Plaque__screw:nth-child(4) { inset-block-end: 9px; inset-inline-end: 9px; }

.Plaque__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-family-h);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.Plaque__logo {
  inline-size: 34px;
  block-size: 34px;
  flex: 0 0 auto;
}

.Plaque__logo svg { display: block; inline-size: 100%; block-size: 100%; }

.Plaque__title {
  margin-block: 12px 16px;
  padding-block: 8px;
  border-radius: 4px;
  background: rgb(var(--color-white));
  color: rgb(26 86 152);
  font-family: var(--font-family-h);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
}

.Plaque__rows {
  display: grid;
  gap: 6px;
  margin: 0;
}

.Plaque__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.Plaque__row dt {
  font-size: var(--font-size-small);
  font-weight: 600;
  color: rgb(255 255 255 / 0.9);
}

.Plaque__row dd {
  min-block-size: 36px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 6px 12px;
  border-radius: 3px;
  background: rgb(var(--color-white));
  color: rgb(var(--color-black-dark));
  font-family: var(--font-family-h);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#plaque-name { font-size: var(--font-size-h6); }

#plaque-name.is-empty {
  color: rgb(var(--color-black-light) / 0.45);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: var(--font-size-small);
  font-style: italic;
}

.Plaque__glint {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, rgb(255 255 255 / 0) 42%, rgb(255 255 255 / 0.45) 50%, rgb(255 255 255 / 0) 58%);
  transform: translateX(-70%);
  pointer-events: none;
}

.Plaque.is-engraved .Plaque__glint { animation: glint 1100ms cubic-bezier(0.22, 0.61, 0.36, 1); }

@keyframes glint {
  from { transform: translateX(-70%); }
  to   { transform: translateX(70%); }
}

.Letter {
  display: inline-block;
  white-space: pre;
  animation: letter-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes letter-in {
  from { opacity: 0; transform: translateY(4px); filter: blur(3px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- FAQ ---------- */

.Faq {
  border: var(--card-border);
  border-radius: var(--card-radius);
  background: rgb(var(--color-white));
  overflow: hidden;
}

.Qa + .Qa { border-block-start: var(--card-border); }

.Qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  inline-size: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  text-align: start;
  font-family: var(--font-family-h);
  font-size: var(--font-size-h6);
  font-weight: 600;
  line-height: 1.3;
  transition: color 220ms, background 220ms;
}

.Qa__q:hover { color: rgb(var(--color-green-dark)); background: rgb(var(--color-off-white)); }

.Qa__q:focus-visible { outline-offset: -4px; }

.Qa__icon {
  position: relative;
  inline-size: 32px;
  block-size: 32px;
  flex: 0 0 auto;
  border: 2px solid rgb(var(--color-black) / 0.1);
  border-radius: 50%;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms, border-color 300ms;
}

.Qa__icon::before,
.Qa__icon::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 12px;
  block-size: 2px;
  border-radius: 2px;
  background: rgb(var(--color-black-dark));
  translate: -50% -50%;
}

.Qa__icon::after { rotate: 90deg; }

.Qa.is-open .Qa__icon {
  transform: rotate(45deg);
  background: rgb(var(--color-brand-gold));
  border-color: rgb(var(--color-brand-gold));
}

.Qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.Qa.is-open .Qa__a { grid-template-rows: 1fr; }

.Qa__a > div { overflow: hidden; }

.Qa__a p {
  max-inline-size: 66ch;
  margin: 0;
  padding: 0 24px 24px;
  color: rgb(var(--color-black-light));
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 360ms, transform 460ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.Qa.is-open .Qa__a p { opacity: 1; transform: translateY(0); transition-delay: 90ms; }

.Note {
  display: flex;
  gap: 12px;
  margin-block-start: 20px;
  padding: 18px 20px;
  border: 1px solid rgb(var(--color-brand-gold) / 0.5);
  border-radius: var(--card-radius);
  background: rgb(var(--color-brand-gold) / 0.1);
  line-height: 1.5;
}

.Note svg {
  inline-size: 18px; block-size: 18px;
  flex: 0 0 auto;
  margin-block-start: 3px;
  color: rgb(var(--color-orange));
}

.Note a {
  color: rgb(var(--color-green-dark));
  font-weight: 600;
  text-decoration-color: rgb(var(--color-green-dark) / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms;
}

.Note a:hover { text-decoration-color: currentColor; }

/* ---------- Footer ---------- */

.Footer {
  background: rgb(var(--color-blue-light));
  color: rgb(var(--color-white));
}

.Footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-block: 40px 30px;
}

.Footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.Footer__links a {
  color: rgb(255 255 255 / 0.9);
  font-size: var(--font-size-small);
  font-weight: 500;
  text-decoration-color: transparent;
  text-decoration-line: underline;
  text-underline-offset: 3px;
  transition: color 220ms, text-decoration 220ms;
}

.Footer__links a:hover { color: rgb(var(--color-white)); text-decoration-color: currentColor; }

.Footer__base {
  padding-block: 18px 22px;
  border-block-start: 1px solid rgb(255 255 255 / 0.3);
  font-size: var(--font-size-xsmall);
  color: rgb(255 255 255 / 0.85);
  text-align: center;
}

@supports (animation-timeline: view()) {
  .Film {
    animation: film-grow linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }

  @keyframes film-grow {
    from { scale: 0.9; }
    to   { scale: 1; }
  }
}

