/*
  Mastercard design system: faithful preview spec.
  Source: source/claude-design-systems/mastercard/project/README.md (the guide) and tokens.json.
  Values without a comment come from the guide. "from live site" means measured from
  reference/mastercard-live-01.jpg to 05.jpg (1440 wide). "guess" means neither source gives it.
*/

:root {
  /* Colour roles (guide section 2 and 9) */
  --c-bg: #F3F0EE;            /* Canvas Cream */
  --c-surface: #FCFBFA;       /* Lifted Cream */
  --c-surface-2: #F4F4F4;     /* Soft Bone */
  --c-inverse: #141413;       /* Ink Black footer */
  --c-on-inverse: #FFFFFF;
  --c-fg: #141413;            /* Ink Black headings */
  --c-fg-2: #141413;          /* guide 9: body text is Ink Black at weight 450 (Charcoal #262627 is an alternate) */
  --c-muted: #696969;         /* Slate Gray */
  --c-border: #D1CDC7;        /* Dust Taupe */
  --c-accent: #141413;        /* primary CTA is Ink Black; Signal Orange is kept for consent only */
  --c-on-accent: #F3F0EE;     /* cream text on ink pill, not pure white */
  --c-accent-hover: #141413;  /* guide: no hover variant on the ink pill */
  --c-link: #3860BE;          /* Link Blue */
  /* tokens.json focus-ring, plus a solid 2px ink ring so focus passes 3:1 on cream (guess) */
  --c-focus: 0 0 0 2px #141413, 0 0 0 6px rgba(207, 69, 0, 0.24);

  /* Type families: MarkForMC is proprietary; Sofia Sans is the guide's own fallback */
  --f-display: "MarkForMC", "Sofia Sans", Arial, sans-serif;
  --f-body: "MarkForMC", "Sofia Sans", Arial, sans-serif;
  --f-mono: "MarkOffcForMC", ui-monospace, Menlo, monospace;
  --f-features: normal;

  /* Type roles (guide section 3 table) */
  --t-display-size: 64px; --t-display-weight: 500; --t-display-lh: 1; --t-display-track: -0.02em;
  --t-h2-size: 36px; --t-h2-weight: 500; --t-h2-lh: 44px; --t-h2-track: -0.02em;
  --t-h3-size: 24px; --t-h3-weight: 500; --t-h3-lh: 1.2; --t-h3-track: -0.02em;
  --t-lead-size: 18px; --t-lead-weight: 450; --t-lead-lh: 1.4;   /* tokens.json text-lg "featured body" */
  --t-body-size: 16px; --t-body-weight: 450; --t-body-lh: 1.4;
  --t-small-size: 14px; --t-small-weight: 450; --t-small-lh: 1.43; /* footer link 14px / ~20px */
  --t-label-size: 14px; --t-label-weight: 700; --t-label-track: 0.04em; --t-label-case: uppercase; --t-label-font: var(--f-body);
  --t-button-size: 16px; --t-button-weight: 500; --t-button-track: -0.02em; --t-button-case: none;
  --t-nav-size: 16px; --t-nav-weight: 500;

  /* Layout and spacing (guide section 5, tokens.json spacing) */
  --s-container: 1240px;      /* guide range 1200 to 1280; from live site: content runs x 100 to 1340 at 1440 */
  --s-gutter: 36px;           /* tokens container-gutter-desktop */
  --s-section: 104px;         /* tokens section-y-desktop */
  --s-section-sm: 64px;       /* guide: 48 to 64px compact padding */
  --s-stack: 24px;            /* guide silent: 8px scale step */
  --s-grid-gap: 32px;         /* guide silent: 8px scale step */
  --s-list-gap: 12px;         /* from live site: footer links on a 32px pitch */

  /* Shape and depth (guide sections 5 and 6) */
  --r-sm: 20px; --r-md: 40px; --r-lg: 64px; --r-pill: 9999px;
  --shadow-1: rgba(0, 0, 0, 0.04) 0px 4px 24px 0px;
  --shadow-2: rgba(0, 0, 0, 0.08) 0px 24px 48px 0px;
  --border-w: 1.5px;          /* pill buttons; hairlines elsewhere are set per component */

  /* Components */
  --nav-height: 80px;         /* 16px padding + 48px search button + 16px */
  --nav-bg: #FFFFFF; --nav-border: transparent; --nav-radius: 999px; --nav-inset: 24px;
  --btn-height: 40px;         /* guide 8: no button below 40px; from live site the outlined pill is 40px tall */
  --btn-pad-x: 24px; --btn-radius: 20px;
  --btn-primary-bg: #141413; --btn-primary-fg: #F3F0EE; --btn-primary-border: #141413; --btn-primary-hover-bg: #141413;
  --btn-secondary-bg: #FFFFFF; --btn-secondary-fg: #141413; --btn-secondary-border: #141413; --btn-secondary-hover-bg: #FFFFFF;
  --btn-hover-transform: none;
  --btn-active-transform: scale(0.97);  /* guide: "subtle inward-shrink"; amount is a guess */
  --btn-transition: 150ms ease;         /* guess: guide has no motion family */
  --card-bg: #FCFBFA; --card-border: transparent; --card-radius: 40px; --card-pad: 40px; --card-shadow: none; --card-media-radius: 40px;
  --tag-bg: #FFFFFF; --tag-fg: #141413; --tag-radius: 999px; --tag-pad: 8px 20px;
  --field-bg: #FFFFFF; --field-border: rgba(20, 20, 19, 0.5); --field-radius: 999px; --field-height: 48px;
  --list-marker-colour: #CF4500;        /* Signal Orange eyebrow dot */
  --list-divider: 1px solid #E7E1DC;    /* tokens border-soft */
  --quote-size: 36px; --quote-font: var(--f-display); --quote-weight: 500; --quote-lh: 44px; /* guide silent: H2 scale */
  --stat-size: 64px; --stat-weight: 500; --stat-colour: #141413; --stat-font: var(--f-display); /* guide silent: H1 scale */
  --cta-bg: #141413; --cta-fg: #FFFFFF; --cta-radius: 40px;
  --footer-bg: #141413; --footer-fg: #FFFFFF; --footer-border: transparent;
  --media-radius: 40px; --media-shadow: none;

  /* System extras used by x- components */
  --x-orange: #F37338;        /* Light Signal Orange: orbital arcs only */
  --x-signal: #CF4500;        /* Signal Orange: eyebrow dot, consent */
  --x-whisper: #E8E2DA;       /* ghost watermark cream */
  --x-taupe: #D1CDC7;         /* Dust Taupe */
  --x-media-dark: #2B2B2B;    /* guide: dark behind video */
  --x-footer-muted: #B3B3B1;  /* from live site: footer column headers and small print (Slate Gray fails AA on ink) */
}

@media (max-width: 1023px) { :root { --s-gutter: 28px; --s-section: 72px; --t-display-size: 48px; } }
@media (max-width: 767px)  { :root { --s-gutter: 20px; --s-section: 52px; --s-section-sm: 48px; --t-display-size: 40px; --t-display-lh: 1.05; } }

html { scroll-padding-top: 128px; }
body { overflow-x: clip; }

/* Visually hidden text */
.x-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Eyebrow: accent dot + uppercase label (guide 1 and 3) */
.x-eyebrow { display: inline-flex; align-items: center; gap: 8px; line-height: 14px; color: var(--c-fg); }
.x-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x-signal); flex: none; } /* dot size: guess */

/* External link marker */
.x-ext::after { content: "\2197"; margin-left: 6px; font-size: 0.9em; }

/* ---------- Floating pill nav (guide 4, Navigation) ---------- */
.x-nav { position: sticky; top: 0; z-index: 20; pointer-events: none; }
.x-nav .x-nav__bar { pointer-events: auto; width: min(100% - 32px, 1284px); /* from live site: pill spans x 78 to 1362 */ margin-inline: auto; padding-inline: 40px; gap: 24px; }
.x-nav nav { flex: 1; display: flex; justify-content: center; }
.x-nav .c-nav__links { margin: 0; gap: 48px; }
.x-nav .c-nav__links a { color: var(--c-fg); letter-spacing: -0.03em; line-height: 16px; display: inline-flex; align-items: center; min-height: 48px; }
.x-nav .c-nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.x-nav .c-nav__actions { margin-left: 0; align-items: center; gap: 8px; }

.x-mark { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.x-mark__circles { position: relative; width: 52px; height: 32px; flex: none; } /* from live site: mark 52 x 32 */
.x-mark__circles::before, .x-mark__circles::after { content: ""; position: absolute; top: 0; width: 32px; height: 32px; border-radius: 50%; }
/* Deliberately not the brand's red and yellow: Ink and Light Signal Orange keep the circle motif without the trademark */
.x-mark__circles::before { left: 0; background: var(--c-fg); }
.x-mark__circles::after { right: 0; background: var(--x-orange); mix-blend-mode: multiply; }

/* Icon-only circle buttons (guide 4, Buttons) */
.x-icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--c-fg); background: transparent; color: var(--c-fg); cursor: pointer; padding: 0; flex: none; }
.x-icon-btn svg { width: 18px; height: 18px; }
.x-icon-btn.is-40 { width: 44px; height: 44px; } /* from live site: carousel arrows ~44px; guide minimum 40px */

/* Menu: hamburger opens a full-screen overlay (works without JavaScript) */
.x-menu { display: none; }
.x-menu > summary { list-style: none; }
.x-menu > summary::-webkit-details-marker { display: none; }
.x-menu__panel { position: fixed; inset: 0; z-index: -1; background: var(--c-bg); padding: 136px var(--s-gutter) 48px; overflow-y: auto; }
.x-menu__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.x-menu__panel a { display: flex; align-items: center; min-height: 56px; font-size: var(--t-h3-size); font-weight: 500; letter-spacing: -0.02em; color: var(--c-fg); text-decoration: none; border-bottom: 1px solid var(--x-taupe); }
.x-menu[open] > summary .x-menu__open, .x-menu:not([open]) > summary .x-menu__close { display: none; }

@media (max-width: 1023px) {
  .x-menu { display: block; }
  .x-nav .c-nav__links { display: flex; gap: 32px; }
  .x-nav .c-nav__links li:nth-child(n+4) { display: none; } /* guide: tablet shows 2 to 3 links */
}
@media (max-width: 767px) {
  .x-nav .x-nav__bar { padding-inline: 16px 8px; width: calc(100% - 24px); }
  .x-nav nav { display: none; }
  .x-nav .c-nav__actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.x-hero { padding-top: 56px; overflow-x: clip; position: relative; } /* top spacing: from live site */
.x-hero__title { max-width: 640px; }

/* Orbit stage: oversized circular portrait, outlined orbit circle, neighbouring slides peeking at the edges */
.x-stage { --p: clamp(300px, 44.5vw, 640px); position: relative; height: calc(var(--p) + 150px); margin-top: 112px; } /* from live site: 640px circle at 1440 */
.x-stage__main { position: absolute; left: calc(var(--p) * 0.1125); top: 0; width: var(--p); }
.x-stage__ring { position: absolute; left: calc(var(--p) * 0.9375); top: 0; width: calc(var(--p) * 0.8625); aspect-ratio: 1; border: 1px solid var(--x-orange); border-radius: 50%; pointer-events: none; } /* from live site: 552px ring overlapping the portrait */
.x-stage__caption { margin-top: 32px; display: grid; gap: 12px; max-width: 420px; }
.x-stage__controls { position: absolute; right: 0; top: 36px; display: flex; gap: 16px; } /* from live site */
.x-stage__controls .x-icon-btn { border-color: var(--c-fg); }
.x-stage__peek { position: absolute; width: 440px; aspect-ratio: 1; top: calc(var(--p) * 0.55); } /* from live site: next and previous slides cut by the viewport edge */
.x-stage__peek.is-prev { right: calc(100% + (100vw - 100%) / 2 - 85px); }
.x-stage__peek.is-next { left: calc(100% + (100vw - 100%) / 2 - 85px); }
@media (max-width: 1023px) { .x-stage__peek { display: none; } }
@media (max-width: 767px) {
  .x-stage { height: auto; margin-top: 48px; display: grid; gap: 24px; justify-items: center; }
  .x-stage__main { position: relative; left: auto; width: min(100%, 320px); }
  .x-stage__ring { display: none; } /* guide 8: orbital lines removed on mobile */
  .x-stage__controls { position: static; order: 2; }
}

/* Circular portrait with docked satellite CTA (guide 4, Service / Solution Portrait Card) */
.x-portrait { position: relative; }
.x-portrait > .c-ph { border-radius: 50%; }
.x-satellite { position: absolute; left: calc(85.36% - 28px + 6px); top: calc(85.36% - 28px + 6px); width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; color: var(--c-fg); display: grid; place-items: center; text-decoration: none; transition: transform var(--btn-transition); }
.x-satellite svg { width: 20px; height: 20px; }
.x-satellite:active { transform: scale(0.95); }

/* Image placeholders shaped the way the system crops (guide 4, Image Treatment) */
.x-photo { background: var(--x-whisper); color: #555555; padding: 24px; text-align: center; line-height: 1.4; } /* cream-tinted placeholder; Granite text */
.x-photo--circle { --ph-ratio: 1 / 1; border-radius: 50%; padding: 18%; }
.x-photo--stadium { border-radius: 9999px; padding-inline: 18%; }
.x-photo--dark { background: var(--x-media-dark); color: var(--c-bg); }

/* ---------- Lifted cream panel: paper laid on paper (guide 2 and 7) ---------- */
.x-panel { position: relative; background: var(--c-surface); margin-inline: 24px; border-radius: 40px; overflow: clip; } /* margin: from live site */
@media (max-width: 767px) { .x-panel { margin-inline: 8px; border-radius: 32px; } } /* guess */

/* Large statement heading that fills from Dust Taupe to Ink as it scrolls in (from live site) */
.x-statement { font-family: var(--f-display); font-size: clamp(44px, 7.8vw, 112px); font-weight: 500; line-height: 1.07; letter-spacing: -0.02em; color: var(--c-fg); max-width: 8.2em; } /* from live site: 112px on a 120px pitch; inside the guide's 72 to 128px ghost range */
.x-statement-sub { margin-top: 40px; max-width: 600px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .x-reveal { animation: x-ink linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
@keyframes x-ink { from { color: var(--x-taupe); } to { color: var(--c-fg); } }

/* Ghost watermark text behind portraits (guide 4) */
.x-ghost { position: absolute; z-index: 0; font-family: var(--f-display); font-size: 128px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--x-whisper); white-space: nowrap; pointer-events: none; user-select: none; }

/* Orbit: a single service portrait with a concentric orbit ring and an arc running in from the edge */
.x-orbit { --p: 340px; --ring: calc(var(--p) * 1.29); position: relative; display: grid; justify-items: center; margin-top: 120px; } /* portrait 340px: guide 260 to 340px; ring ratio from live site */
.x-orbit__stage { position: relative; width: var(--ring); height: var(--ring); display: grid; place-items: center; z-index: 1; }
.x-orbit__stage::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--x-orange); border-radius: 50%; pointer-events: none; }
.x-orbit .x-portrait { width: var(--p); }
.x-orbit__arc { position: absolute; z-index: 0; top: -260px; right: calc(50% + var(--ring) / 2); width: 900px; height: calc(260px + var(--ring) / 2); color: var(--x-orange); pointer-events: none; overflow: visible; }
.x-orbit__arc path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.x-orbit__ghost { top: 36%; left: calc(50% + var(--ring) / 2 + 120px); }
.x-orbit__caption { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: center; text-align: center; margin-top: 24px; max-width: 360px; }
@media (max-width: 767px) {
  .x-orbit { --p: min(240px, 70vw); --ring: var(--p); margin-top: 64px; }
  .x-orbit__stage::before, .x-orbit__arc { display: none; } /* guide 8: no orbital lines on mobile */
  .x-orbit__ghost { font-size: 72px; left: 40%; top: 18%; }
}

/* Outlined pill card: stadium outline holding a stadium photo and a short block (from live site, guide "Pill Carousel Card" radius) */
.x-pills { list-style: none; padding: 0; margin: 128px 0 0; display: grid; gap: 80px; } /* from live site */
.x-pill-card { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; max-width: 1176px; margin-inline: auto; padding: 40px; border: 1px solid rgba(243, 115, 56, 0.45); border-radius: 1000px; } /* outline colour: from live site, Light Signal Orange at reduced strength */
.x-pill-card .c-ph { --ph-ratio: 10 / 7; }
.x-pill-card__body { display: grid; gap: 16px; justify-items: start; padding-right: 64px; }
.x-pill-card__body .c-btn { margin-top: 16px; }
.x-pill-card.is-flipped .x-pill-card__media { order: 2; }
.x-pill-card.is-flipped .x-pill-card__body { padding: 0 0 0 120px; }
@media (max-width: 1023px) {
  .x-pill-card { grid-template-columns: 1fr; gap: 32px; border-radius: 40px; padding: 32px; } /* guide: pill or 40px corners */
  .x-pill-card.is-flipped .x-pill-card__media { order: 0; }
  .x-pill-card__body, .x-pill-card.is-flipped .x-pill-card__body { padding: 0 8px 8px; }
}
@media (max-width: 767px) { .x-pills { margin-top: 72px; gap: 32px; } .x-pill-card { padding: 16px 16px 24px; } }

/* ---------- Two-up asymmetric split: large headline left, support right (guide 5) ---------- */
.x-split { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); gap: 32px; align-items: start; } /* from live site: support column starts at x 868 */
.x-split__aside { display: grid; gap: 32px; justify-items: start; padding-top: 4px; }
@media (max-width: 767px) { .x-split { grid-template-columns: 1fr; gap: 24px; } }

/* Hero media frame: 40px stadium with a play button (guide 4) */
.x-media { position: relative; margin-top: 96px; }
.x-media > .c-ph { --ph-ratio: 2 / 1; place-items: end start; padding: 32px 40px; text-align: left; } /* 2:1 keeps height near 70% of a 900px viewport */
.x-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 80px; height: 80px; border-radius: 50%; border: 0; background: #FFFFFF; color: var(--c-fg); display: grid; place-items: center; cursor: pointer; }
.x-play svg { width: 24px; height: 24px; margin-left: 4px; }
.x-play:focus-visible { box-shadow: 0 0 0 3px var(--x-media-dark), 0 0 0 6px #FFFFFF; }
@media (max-width: 767px) { .x-media { margin-top: 48px; } .x-media > .c-ph { --ph-ratio: 4 / 5; padding: 24px; } .x-play { width: 64px; height: 64px; } }

/* ---------- Footer (guide 4, Footer) ---------- */
.x-footer { margin-top: var(--s-section); padding-block: 48px 148px; font-weight: 450; }
.x-footer :focus-visible { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 6px rgba(207, 69, 0, 0.5); }
.x-footer__title { font-family: var(--f-display); font-size: 20px; font-weight: 500; line-height: 24px; letter-spacing: -0.01em; color: #FFFFFF; max-width: 280px; } /* from live site: the headline is 20px, two lines */
.x-footer .c-footer__cols { margin-top: 36px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.x-footer details > summary { list-style: none; cursor: default; }
.x-footer details > summary::-webkit-details-marker { display: none; }
.x-footer .c-footer__cols h3 { font-size: 12px; font-weight: 700; line-height: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--x-footer-muted); }
.x-footer .c-footer__cols ul { margin-top: 24px; gap: 13px; }
.x-footer .c-footer__cols a { display: inline-flex; align-items: center; gap: 10px; min-height: 20px; }
.x-footer .c-footer__cols a:hover, .x-footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.x-footer .c-footer__cols svg { width: 16px; height: 16px; flex: none; }
.x-footer__bottom { margin-top: 56px; padding-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.3); display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; color: var(--x-footer-muted); }
.x-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.x-footer__legal li + li::before { content: "\00B7"; padding-inline: 6px; }
.x-footer__end { margin-left: auto; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.x-country { position: relative; display: inline-flex; }
.x-country select { appearance: none; font: inherit; font-size: 14px; color: #FFFFFF; background: var(--c-inverse); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; min-height: 40px; width: 294px; padding: 0 48px 0 16px; cursor: pointer; } /* width: from live site */
.x-country select:focus-visible { outline: none; box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 6px rgba(207, 69, 0, 0.5); }
.x-country svg { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; pointer-events: none; color: #FFFFFF; }
.x-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.x-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #FFFFFF; }
.x-social svg { width: 18px; height: 18px; }
@media (max-width: 1023px) { .x-footer .c-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .x-footer { padding-block: 48px 96px; }
  .x-footer .c-footer__cols { grid-template-columns: 1fr; gap: 0; }
  .x-footer details { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
  .x-footer details > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
  .x-footer details > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid #FFFFFF; border-bottom: 1.5px solid #FFFFFF; rotate: 45deg; translate: 0 -3px; }
  .x-footer details[open] > summary::after { rotate: 225deg; translate: 0 3px; }
  .x-footer .c-footer__cols ul { margin: 0 0 24px; }
  .x-footer__end { margin-left: 0; }
  .x-country select { width: 100%; min-width: 0; }
  .x-country { width: 100%; }
}
.x-footer .c-footer__cols a.x-ext { gap: 0; }
@media (max-width: 767px) { .x-footer__bottom { margin-top: 0; border-top: 0; padding-top: 40px; } }
