/* gsmfin.com
 *
 * The product's own design system: graduated night grounds, warm ink,
 * ONE action hue (--spot) for anything you can press. Gain and loss
 * colours stay inside the product films, where they mean direction.
 * Newsreader is the brand's display face (the app's page titles), Geist
 * the body, Geist Mono the numbers. The page is dark because the
 * product is: a light page around dark films reads as two websites.
 *
 * Type is set in rem so the accessibility menu's text size scales all
 * of it. Radius rule: controls 8px, frames 14px, pills 999px.
 */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --bg0: #0a0b0c;
  --bg1: #0f1113;
  --bg2: #15171a;
  --bg3: #1b1e22;
  --ink: #ece9e1;
  --ink-2: #b4b1a7;
  --ink-3: #94918a;
  --rule: rgb(236 233 225 / 0.09);
  --rule-strong: rgb(236 233 225 / 0.16);
  --spot: #4e9cf5;
  --spot-hover: #77b3f8;
  --spot-ink: #0a0b0c;
  --focus: #77b3f8;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html.a11y-size-2 { font-size: 112.5%; }
html.a11y-size-3 { font-size: 125%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

body {
  margin: 0;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: rgb(78 156 245 / 0.35); color: var(--ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--spot); color: var(--spot-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ brand */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lockup .mark, .eyebrow .mark { aspect-ratio: 979 / 1365; }
.lockup .word { aspect-ratio: 1644 / 541; }
.lockup { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
svg use, .lockup svg, .eyebrow .mark { fill: currentColor; }
.lockup .mark { height: var(--h, 32px); width: auto; }
.lockup .word { height: calc(var(--h, 32px) * 0.396); width: auto; margin-left: calc(var(--h, 32px) * 0.122); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 8px;
  font: 600 0.9375rem/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--spot); color: var(--spot-ink); }
.btn-primary:hover { background: var(--spot-hover); }
.btn-quiet { color: var(--ink); border-color: var(--rule-strong); background: rgb(10 11 12 / 0.4); }
.btn-quiet:hover { border-color: rgb(236 233 225 / 0.32); background: rgb(236 233 225 / 0.04); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgb(10 11 12 / 0.72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav .lockup { --h: 34px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 10px; border-radius: 8px; font-size: 0.9rem; color: var(--ink-2); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: rgb(236 233 225 / 0.05); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.a11y-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 12px; border-radius: 8px;
  background: transparent; color: var(--ink-2); border: 1px solid var(--rule-strong);
  font: 500 0.875rem/1 var(--sans); cursor: pointer;
}
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { color: var(--ink); border-color: rgb(236 233 225 / 0.32); }
.a11y-btn svg { width: 18px; height: 18px; }

/* the menu */
.a11y-panel {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 74px; z-index: 60;
  width: min(340px, calc(100vw - 2 * var(--gutter)));
  padding: 18px; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--rule-strong);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font: 600 1rem/1.3 var(--sans); margin-bottom: 4px; }
.a11y-panel p { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 14px; }
.a11y-row { display: flex; gap: 6px; margin-bottom: 8px; }
.a11y-panel button {
  min-height: 42px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  background: var(--bg3); color: var(--ink); border: 1px solid var(--rule-strong);
  font: 500 0.875rem/1.2 var(--sans); text-align: left;
}
.a11y-panel .a11y-row button { flex: 1; text-align: center; }
.a11y-panel .a11y-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.a11y-panel .a11y-toggle::after { content: "Off"; font: 500 0.75rem/1 var(--mono); color: var(--ink-3); }
.a11y-panel button[aria-pressed="true"] { border-color: var(--spot); background: rgb(78 156 245 / 0.14); }
.a11y-panel .a11y-toggle[aria-pressed="true"]::after { content: "On"; color: var(--spot-hover); }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.a11y-foot a { font-size: 0.8125rem; color: var(--ink-2); }
.a11y-panel .a11y-reset { min-height: 36px; font-size: 0.8125rem; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 9vw, 112px) 0 0; }
.hero canvas[data-smoke] { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 20% 0%, transparent 40%, rgb(10 11 12 / 0.55) 100%),
    linear-gradient(to bottom, transparent 55%, var(--bg0) 100%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .mark { height: 22px; width: auto; color: var(--ink); }
.hero h1 {
  margin-top: 22px; max-width: 14ch;
  font: 400 clamp(2.9rem, 7vw, 5.6rem)/1.02 var(--display); letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero .lede { margin-top: 22px; max-width: 40rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); text-wrap: pretty; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font: 500 0.875rem/1.3 var(--sans); color: var(--ink-2);
}
.facts li { display: flex; align-items: baseline; gap: 8px; }
.facts b { font: 500 1.125rem/1 var(--mono); color: var(--ink); letter-spacing: -0.01em; }
.hero .film { margin-top: clamp(40px, 6vw, 72px); }

/* ------------------------------------------------------------ films */
.film { position: relative; }
.film .frame {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--rule-strong); background: var(--bg1);
  box-shadow: 0 40px 120px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.4);
  aspect-ratio: 16 / 10;
}
.film video, .film .frame > img { width: 100%; height: 100%; object-fit: cover; }
.film-btn {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px; cursor: pointer;
  background: rgb(10 11 12 / 0.72); color: var(--ink); border: 1px solid var(--rule-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 0.8125rem/1 var(--sans);
}
.film-btn:hover { background: rgb(10 11 12 / 0.88); }
.film-btn svg { width: 14px; height: 14px; }
.film-btn .i-play { display: none; }
.film-btn.is-paused .i-play { display: block; }
.film-btn.is-paused .i-pause { display: none; }
.film figcaption, .shot figcaption, .noedge figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--ink-3); }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(84px, 11vw, 148px) 0 0; }
.kicker { font: 600 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--spot-hover); }
.section h2 {
  margin-top: 16px; font: 400 clamp(2.1rem, 4.4vw, 3.4rem)/1.06 var(--display); letter-spacing: -0.015em;
  text-wrap: balance;
}
.sec-head { display: grid; grid-template-columns: 5fr 6fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .copy { color: var(--ink-2); max-width: 36rem; }
.sec-head .copy p + p { margin-top: 14px; }
.ticks { margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1.5px; background: var(--spot); }
.ticks b { color: var(--ink); font-weight: 600; }
.num { font-family: var(--mono); font-size: 0.95em; letter-spacing: -0.01em; color: var(--ink); }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(28px, 4vw, 44px); }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule-strong); background: var(--bg1); }

/* ------------------------------------------------------------ the desk (bento) */
.desk { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  grid-column: span 3; display: flex; flex-direction: column;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--rule);
}
.card.wide { grid-column: span 6; }
.card.third { grid-column: span 2; }
.card .pic { aspect-ratio: 1208 / 900; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--bg1); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card .body { padding: 22px 24px 26px; }
.card h3 { font: 600 1.125rem/1.3 var(--sans); letter-spacing: -0.005em; }
.card h3 .tag { margin-left: 8px; font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); vertical-align: 2px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 0.975rem; }

/* ------------------------------------------------------------ proof */
.proof { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.anatomy { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.anatomy > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.anatomy dt { display: flex; align-items: baseline; gap: 14px; }
.anatomy .big { font: 400 1.6rem/1 var(--mono); letter-spacing: -0.02em; }
.anatomy .what { font-size: 0.875rem; color: var(--ink-3); }
.anatomy dd { margin-top: 6px; color: var(--ink-2); font-size: 0.95rem; }
.verdict-line { margin-top: 22px; font: italic 400 1.35rem/1.45 var(--display); color: var(--ink); text-wrap: pretty; max-width: 30rem; }
.noedge { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.noedge figure img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule-strong); }

.proof .intro { margin-top: 18px; color: var(--ink-2); max-width: 34rem; }
.proof .anatomy { margin-top: 28px; }

/* ------------------------------------------------------------ sources */
.sources { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 4vw, 64px); }
.sources .intro { margin-top: 18px; color: var(--ink-2); }
.agency-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--rule); }
.agency-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font: 500 0.95rem/1.35 var(--mono); color: var(--ink); }
.agency-list li span { display: block; margin-top: 2px; font: 400 0.8125rem/1.4 var(--sans); color: var(--ink-3); }

/* ------------------------------------------------------------ access */
.access {
  margin-top: clamp(84px, 11vw, 148px);
  padding: clamp(40px, 6vw, 72px); border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgb(78 156 245 / 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--rule-strong);
  display: grid; grid-template-columns: 7fr 5fr; gap: 28px 48px; align-items: center;
}
.access h2 { margin-top: 12px; font: 400 clamp(2rem, 4vw, 3rem)/1.08 var(--display); }
.access p { margin-top: 14px; color: var(--ink-2); max-width: 34rem; }
.access .cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.access .mail { font-size: 0.9rem; color: var(--ink-3); }
.access .mail a { color: var(--ink-2); }

/* ------------------------------------------------------------ footer */
.foot { margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--rule); padding: 40px 0 56px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.foot .lockup { --h: 30px; }
.foot .fine { margin-top: 16px; max-width: 46rem; font-size: 0.8125rem; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.875rem; }
.foot nav a { color: var(--ink-2); }
.foot .copy-year { color: var(--ink-3); }

/* ------------------------------------------------------------ the statement page */
.doc { padding: clamp(56px, 8vw, 96px) 0 0; max-width: 46rem; }
.doc h1 { font: 400 clamp(2.4rem, 5vw, 3.6rem)/1.05 var(--display); letter-spacing: -0.015em; }
.doc h2 { margin-top: 40px; font: 600 1.2rem/1.3 var(--sans); }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 14px; }
.doc ul { margin-top: 12px; display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1.5px; background: var(--spot); }
.doc a { color: var(--ink); }
.doc .he { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule); font-family: var(--sans); }
.doc .meta { margin-top: 12px; font-size: 0.875rem; color: var(--ink-3); }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.a11y-still) .rise { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
  html.js:not(.a11y-still) .rise.in { opacity: 1; transform: none; }
  html.js:not(.a11y-still) .rise.d1 { transition-delay: 80ms; }
  html.js:not(.a11y-still) .rise.d2 { transition-delay: 160ms; }
  html.js:not(.a11y-still) .rise.d3 { transition-delay: 240ms; }
}

/* ------------------------------------------------------------ accessibility modes */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font { --display: var(--sans); }
html.a11y-font body { letter-spacing: 0.01em; line-height: 1.75; }
html.a11y-font .hero h1, html.a11y-font .section h2, html.a11y-font .access h2, html.a11y-font .doc h1 { font-weight: 600; letter-spacing: -0.01em; }
html.a11y-font .hero h1 em, html.a11y-font .verdict-line { font-style: normal; }
html.a11y-contrast {
  --bg0: #000; --bg1: #000; --bg2: #0b0b0b; --bg3: #141414;
  --ink: #fff; --ink-2: #f1f1f1; --ink-3: #dcdcdc;
  --rule: rgb(255 255 255 / 0.35); --rule-strong: rgb(255 255 255 / 0.6);
  --spot: #9ccbff; --spot-hover: #c4e0ff; --focus: #ffd400;
}
html.a11y-contrast .hero::after { background: rgb(0 0 0 / 0.55); }
html.a11y-contrast :focus-visible { outline-width: 3px; }

/* ------------------------------------------------------------ layout breakpoints */
@media (max-width: 1100px) {
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .sec-head, .split, .proof, .sources, .access { grid-template-columns: 1fr; }
  .card, .card.third { grid-column: span 6; }
  .noedge { grid-template-columns: 1fr; }
  .sources .intro { margin-top: 18px; color: var(--ink-2); }
.agency-list { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav .lockup { --h: 30px; }
  .a11y-btn .lbl { display: none; }
  .a11y-btn { padding: 0 10px; }
  .facts { gap: 10px 20px; }
  .film .frame { border-radius: 10px; }
  .film-btn { right: 8px; bottom: 8px; min-height: 32px; }
  .film-btn .lbl { display: none; }
  .film-btn { padding: 0 9px; }
}
@media (max-width: 400px) {
  .nav .btn-sm { padding: 0 10px; }
}
