/* Ted Thie portfolio
   Layout: a cobalt hero band, then paper sections on a 360px label column + content column,
   white cards for objects, a dark band for systems and findings, a dark contact footer.
   One look on purpose (no dark theme): every colour below is set explicitly. */

:root {
  /* Colour */
  --cobalt: #3F44B0;
  --cobalt-hover: #4C52C4;
  --paper: #F4F3F0;
  --card: #FFFFFF;
  --well: #E8E7E2;
  --tile: #E3E2DD;
  --ink: #15161A;
  --body: #3A3B40;
  --sub: #55565C;
  --line: #DCDBD6;
  --line-strong: #D2D1CB;
  --on-cobalt: #F4F3F0;
  --on-cobalt-sub: #DCE1FA;
  --on-cobalt-soft: #C9D2F7;
  --on-cobalt-line: rgba(244, 243, 240, .3);
  --on-cobalt-ghost: rgba(244, 243, 240, .4);
  --on-cobalt-fill: rgba(244, 243, 240, .16);
  --night: #15161A;
  --night-line: #3A3B42;
  --night-rule: #2D2E33;
  --night-sub: #C8C9CE;
  --night-faint: #A3A4AA;
  --periwinkle: #8FA4F5;
  --emr-teal: #007D79;
  --error: #B42318;
  --hero-bg:
    radial-gradient(55% 75% at 78% 8%, rgba(97, 166, 250, .30), transparent 70%),
    radial-gradient(45% 60% at 8% 100%, rgba(63, 68, 176, .35), transparent 70%),
    #0B0B0E;

  /* Type */
  --f-display: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-accent: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Space */
  --gutter: clamp(20px, 3.9vw, 56px);
  --section: clamp(72px, 8.4vw, 120px);
  --radius: 20px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.band--cobalt :focus-visible, .band--night :focus-visible, .site-footer :focus-visible { outline-color: var(--on-cobalt); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.accent { font-family: var(--f-accent); font-style: italic; font-weight: 400; font-size: 1.2em; letter-spacing: -0.005em; }
.label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.label--cobalt { color: var(--cobalt); }
.label--sub { color: var(--sub); }
.placeholder { background: var(--well); padding: 1px 6px; border-radius: 4px; color: var(--cobalt); }
.band--cobalt .placeholder, .outcome .placeholder { background: var(--on-cobalt-fill); color: var(--on-cobalt-soft); }

/* ---------- Bands ---------- */
.band { padding-inline: var(--gutter); }
.band--cobalt { background: var(--hero-bg); color: var(--on-cobalt); }
.band--night { background: var(--night); color: var(--on-cobalt); }

/* ---------- Header ---------- */
.site-header {
  padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.wordmark {
  min-height: 44px; display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em;
  text-decoration: none; color: var(--on-cobalt);
}
/* Logo: the animated >TT mark on its own. */
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand__logo { display: block; height: 40px; width: auto; }
@media (max-width: 560px) { .brand__logo { height: 32px; } }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--on-cobalt-ghost);
  display: inline-flex; align-items: center;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--on-cobalt);
  transition: border-color .15s, background-color .15s;
}
.nav a:hover { border-color: var(--on-cobalt); }
.nav a[aria-current="page"] { background: var(--on-cobalt); border-color: var(--on-cobalt); color: var(--cobalt); font-weight: 700; }

/* ---------- Two-column section ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px 64px;
}
.split > * { min-width: 0; }
.section { padding-block: var(--section); }
.section--tight-top { padding-top: 0; }
.ruled { border-top: 1px solid var(--line); padding-top: clamp(64px, 6.7vw, 96px); }
.stack { display: flex; flex-direction: column; gap: 48px; }

.h-section {
  margin: 0; font-family: var(--f-display);
  font-size: clamp(36px, 3.4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em;
}
.h-section .accent { display: inline; color: var(--cobalt); }
.band--night .h-section .accent { color: var(--periwinkle); }
.band--cobalt .h-section .accent, .outcome .h-section .accent { color: var(--on-cobalt-soft); }
.h-big {
  margin: 0; font-family: var(--f-display);
  font-size: clamp(40px, 3.9vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em;
}
.h-big .accent { color: var(--cobalt); }

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 760px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.65; color: var(--body); }
.prose p { margin: 0; }
.band--night .prose { color: var(--night-sub); }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.card p { margin: 0; font-size: 17px; line-height: 1.6; }
.card--outcome { box-shadow: inset 0 0 0 2px var(--cobalt); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--night); color: var(--on-cobalt);
  padding: 72px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 56px;
}
.site-footer__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.site-footer__sign { display: flex; flex-direction: column; gap: 28px; }
.footer-mark { display: block; align-self: flex-start; height: 40px; width: auto; }
.site-footer h2 { margin: 0; font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.site-footer h2 .accent { color: var(--periwinkle); }
.pill-button {
  min-height: 64px; padding: 0 32px; border-radius: 999px;
  background: var(--cobalt); color: var(--on-cobalt);
  display: inline-flex; align-items: center;
  font-size: 18px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere;
  transition: background-color .15s;
}
.pill-button:hover { background: var(--cobalt-hover); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--night-rule); padding-top: 24px;
  font-size: 14px; color: var(--night-faint);
}
.site-footer__base a { text-decoration: none; min-height: 24px; }
.site-footer__base a:hover { color: var(--on-cobalt); }

/* =========================================================
   HOME
   ========================================================= */
.hero-home { padding-bottom: 64px; display: flex; flex-direction: column; gap: 72px; }
.hero-home__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px 72px;
  align-items: end; margin-bottom: -72px;
}
.hero-home__copy { display: flex; flex-direction: column; gap: 40px; padding-bottom: 72px; min-width: 0; }
.hello {
  margin: 0; font-family: var(--f-display);
  font-size: clamp(54px, 6.7vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em;
}
.hello .accent { letter-spacing: -0.01em; }
/* All lines share one grid cell, so the box is as tall as the longest line and lines may wrap. */
.rotator {
  display: grid; overflow: hidden;
  margin-top: 20px;
  font-size: 0.4em; line-height: 1.3; font-weight: 600; letter-spacing: -0.025em;
  color: var(--on-cobalt-soft);
}
.rotator__line {
  grid-area: 1 / 1;
  transform: translateY(100%); opacity: 0;
}
.rotator__line .accent { color: var(--on-cobalt); }
.rotator__line.is-current { transform: translateY(0); opacity: 1; }
.rotator__line.is-leaving { transform: translateY(-100%); opacity: 0; }
.rotator__line.is-current, .rotator__line.is-leaving {
  transition: transform .6s cubic-bezier(.65, 0, .35, 1), opacity .6s cubic-bezier(.65, 0, .35, 1);
}
@media (prefers-reduced-motion: reduce) {
  .rotator__line.is-current, .rotator__line.is-leaving { transition: none; }
}
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.intro .label { color: var(--on-cobalt-soft); }
.intro p { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.avatar { width: 440px; height: 440px; }
.hero-facts {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px;
  border-top: 1px solid var(--on-cobalt-line); padding-top: 28px;
}
.hero-facts > div { display: flex; flex-direction: column; gap: 6px; }
.hero-facts dt, .fact-title { font-size: 15px; font-weight: 700; }
.hero-facts dd { margin: 0; font-size: 16px; line-height: 1.5; }
.hero-facts .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.hero-facts .links a { color: var(--on-cobalt); min-height: 24px; }

.work { padding-block: 96px var(--section); display: flex; flex-direction: column; gap: 32px; }
.work__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.work__head h2 { margin: 0; font-family: var(--f-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.work__head h2 .accent { color: var(--cobalt); }
.work__count { font-family: var(--f-mono); font-size: 13px; color: var(--sub); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 rgba(21, 22, 26, .06);
  transition: box-shadow .15s;
}
a.work-card:hover { box-shadow: 0 0 0 2px var(--cobalt); }
.work-card__media { position: relative; background: var(--tile); }
.work-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tag {
  display: inline-flex; align-items: center; min-height: 24px;
  padding: 0 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; white-space: nowrap;
}
/* The description always takes at least three lines, so every card's tags and link start at the same height. */
.work-card__body { flex: 1; padding: 28px 32px 32px; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; }
.work-card__n { font-family: var(--f-accent); font-style: italic; font-size: 56px; line-height: 0.9; color: var(--cobalt); }
.work-card__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.work-card h3 { margin: 0; font-family: var(--f-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.work-card p { margin: 0; min-height: calc(1.55em * 3); font-size: 16px; line-height: 1.55; color: var(--sub); }
.work-card__foot { padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.work-card__meta { margin-left: 4px; font-size: 14px; font-weight: 600; color: var(--cobalt); }
.work-card__meta .soon { color: var(--sub); font-weight: 500; }

/* =========================================================
   ABOUT
   ========================================================= */
.hero-about { padding-bottom: 64px; display: flex; flex-direction: column; gap: 72px; }
.hero-about .hero-home__copy { gap: 36px; }
.hero-about__name { display: flex; flex-direction: column; gap: 16px; }
.nickname { font-family: var(--f-mono); font-size: 15px; color: var(--on-cobalt-soft); }
.hero-about__lede { margin: 0; max-width: 760px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; }
.hero-about__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px;
  border-top: 1px solid var(--on-cobalt-line); padding-top: 28px;
}
.hero-about__cols > div { display: flex; flex-direction: column; gap: 8px; }
.hero-about__cols p { margin: 0; font-size: 16px; line-height: 1.65; }
.powers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.power { background: var(--card); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.power__n { font-family: var(--f-accent); font-style: italic; font-size: 44px; line-height: 1; color: var(--cobalt); }
.power h3 { margin: 0; font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.power p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--sub); }
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: var(--section); }
.photo { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--tile); }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .6));
  color: #FFFFFF; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; line-height: 1.4; text-transform: uppercase;
}
.photo-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo--wide > img { object-position: 42% 50%; }
.photo:nth-child(even) { margin-top: 48px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { font-family: var(--f-mono); font-size: 14px; color: var(--cobalt); padding-top: 4px; }
.timeline__what { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.timeline__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.timeline__org { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.timeline__role { font-size: 15px; font-weight: 600; color: var(--sub); }
.timeline p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--sub); }
.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.edu .card { padding: 32px; }
.edu__title { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.edu__where { font-size: 16px; line-height: 1.55; color: var(--sub); }

/* =========================================================
   CASE STUDY
   ========================================================= */
.cs-hero { padding-bottom: 280px; display: flex; flex-direction: column; gap: 88px; }
.cs-hero__grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-end; }
.cs-hero__title { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cs-hero__title .label { color: var(--on-cobalt-soft); }
.cs-hero h1 {
  margin: 0; font-family: var(--f-display);
  font-size: clamp(52px, 7.2vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -0.045em;
}
.cs-hero h1 .accent { letter-spacing: -0.01em; }
.cs-hero__sub { margin: 0; max-width: 820px; font-size: clamp(21px, 1.95vw, 28px); line-height: 1.3; font-weight: 500; color: var(--on-cobalt-sub); }
.cs-meta {
  flex: 1 1 260px; max-width: 320px; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
  border-left: 1px solid var(--on-cobalt-line); padding-left: 28px;
}
.cs-meta div { display: flex; flex-direction: column; gap: 2px; }
.cs-meta dt { font-size: 14px; font-weight: 700; }
.cs-meta dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--on-cobalt-sub); }
.cs-meta__pair { flex-direction: row !important; flex-wrap: wrap; gap: 16px 32px !important; }
.cs-shot { padding-inline: var(--gutter); margin-top: -232px; }
.cs-shot figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-shot img {
  width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; border-radius: 24px; background: var(--ink);
  box-shadow: 0 24px 64px -24px rgba(21, 22, 26, .35);
}
.cs-shot--screen img { aspect-ratio: 16 / 10; object-position: left top; background: var(--card); }
.cs-shot figcaption { color: var(--sub); }

.overview { padding-block: 96px 88px; }
.overview__body { display: flex; flex-direction: column; gap: 40px; max-width: 820px; }
.overview__lede { margin: 0; font-family: var(--f-display); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; }
.overview .label--cobalt { padding-top: 10px; }

.stats { margin-inline: var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 48px 32px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:last-child { padding-right: 0; }
.stat__n { font-family: var(--f-accent); font-style: italic; font-size: clamp(80px, 7.8vw, 112px); line-height: 0.9; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 17px; color: var(--sub); }

.system-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; }
.system-box { border: 1px solid var(--night-line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.system-box--key { background: var(--cobalt); border-color: var(--cobalt); }
.system-box .label { color: var(--periwinkle); }
.system-box--key .label { color: var(--on-cobalt-sub); }
.system-box__title { font-family: var(--f-display); font-size: 24px; font-weight: 700; }
.system-box__text { font-size: 16px; line-height: 1.55; color: var(--night-sub); }
.system-box--key .system-box__text { color: var(--on-cobalt-sub); }
.system-arrow { display: flex; align-items: center; justify-content: center; color: var(--periwinkle); font-size: 22px; }
.finding-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }

.decision-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.decision { background: var(--card); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.decision__head { display: flex; flex-direction: column; gap: 10px; }
.decision h3 { margin: 0; font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.decision dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.decision dl div { display: flex; flex-direction: column; gap: 4px; }
.decision dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--sub); }
.decision dt.is-chose { color: var(--cobalt); }
.decision dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sub); }
.decision dd.is-chose { color: var(--body); }

.shots-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot img { width: 100%; border-radius: var(--radius); background: var(--card); }
.shot figcaption { font-size: 17px; line-height: 1.55; color: var(--sub); }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: start; }
.compare__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); }
.compare__frame--after { box-shadow: 0 0 0 3px var(--cobalt); }
.compare__frame img { width: 100%; object-fit: cover; object-position: top; }
.compare--panels .compare__frame { background: #F4F4F4; }
.compare--panels .compare__frame img { aspect-ratio: 434 / 552; object-fit: contain; }
.compare--panels .compare__pill { top: auto; right: auto; bottom: 16px; left: 16px; }
.compare--square .compare__frame img { aspect-ratio: 1 / 1; }
.compare__pill {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em;
}
.compare__pill--right { left: auto; right: 16px; box-shadow: 0 0 0 1px var(--line); }
.compare__frame--after .compare__pill { background: var(--cobalt); color: var(--on-cobalt); box-shadow: none; }

.numbered { display: flex; flex-direction: column; gap: 32px; max-width: 760px; }
.numbered__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
.numbered__n { font-family: var(--f-accent); font-style: italic; font-size: 56px; line-height: 0.9; color: var(--cobalt); }
.numbered__item h3 { margin: 0; font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.numbered__item p { margin: 6px 0 0; font-size: 17px; line-height: 1.6; color: var(--sub); }

.outcome { background: var(--cobalt); color: var(--on-cobalt); padding-block: 112px; }
.outcome ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-width: 820px; }
.outcome li { padding: 20px 0; border-top: 1px solid var(--on-cobalt-line); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; }
.outcome li:last-child { border-bottom: 1px solid var(--on-cobalt-line); }
.outcome li.quote { font-family: var(--f-accent); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.4; color: var(--on-cobalt-soft); }

.next { padding-block: 96px var(--section); }
.next a {
  display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center;
  background: var(--card); border-radius: 28px; padding: 24px;
  text-decoration: none; color: var(--ink); transition: box-shadow .15s;
}
.next a:hover { box-shadow: 0 0 0 2px var(--cobalt); }
.next__text { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-left: clamp(0px, 1.7vw, 24px); }
.next__title { font-family: var(--f-display); font-size: clamp(38px, 3.9vw, 56px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.next img { flex: 1 1 300px; min-width: 0; max-width: 420px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }

/* ---------- Demo panels (interactive) ---------- */
.demo { background: var(--well); border-radius: 28px; padding: clamp(20px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 32px; }
.demo__row { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.demo__row--top { align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip__swatch { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.chip__num {
  min-width: 22px; height: 22px; border-radius: 50%;
  background: var(--well); color: var(--sub);
  font-family: var(--f-mono); font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.chip[aria-pressed="true"] .chip__num { background: var(--cobalt); color: var(--on-cobalt); }
.chip--swatched { padding-left: 10px; }

.token-list { display: flex; flex-direction: column; gap: 12px; font-family: var(--f-mono); font-size: 15px; }
.token-list__row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; }
.token-list__val { display: flex; align-items: center; gap: 8px; }
.token-list__chip { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.token-list__note { font-family: var(--f-body); font-size: 14px; line-height: 1.5; color: var(--sub); padding-top: 4px; }

/* Brand switcher mock */
.game {
  --t-surface: #FFFFFF; --t-ink: #15161A; --t-sub: #5A5B61; --t-muted: #EEEDE9; --t-primary: #3F44B0; --t-on-primary: #FFFFFF; --t-radius: 16px; --t-font: var(--f-body);
  background: var(--t-surface); color: var(--t-ink); border-radius: var(--t-radius); font-family: var(--t-font);
  padding: clamp(20px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 20px 48px -20px rgba(21, 22, 26, .35);
  transition: background-color .3s, color .3s, border-radius .3s;
}
.game__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.game__top strong { font-weight: 700; }
.game__top span:last-child, .game__hint, .game label, .game__scale { color: var(--t-sub); }
.game__q { font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; line-height: 1.35; }
.game label { font-size: 14px; }
.game__field { display: flex; flex-direction: column; gap: 6px; }
.shots-2--small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.shots-2--small img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--tile); }
.shots-2--small figcaption { font-size: 12px; }
.game input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--t-primary); }
.game__scale { display: flex; justify-content: space-between; font-size: 12px; }
.game__scale strong { font-size: 13px; color: var(--t-ink); }
.game__payout { background: var(--t-muted); border-radius: var(--t-radius); padding: 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: 14px; }
.game__hint { font-size: 13px; }
.game__cta { background: var(--t-primary); color: var(--t-on-primary); border-radius: var(--t-radius); min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }

/* Bill settler */
.till {
  background: var(--card); border-radius: 16px; padding: clamp(20px, 2.2vw, 32px);
  display: flex; flex-direction: column; gap: 20px; box-shadow: 0 20px 48px -20px rgba(21, 22, 26, .35);
}
.till__who { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.till__who strong { font-size: 18px; }
.till__id { font-family: var(--f-mono); font-size: 13px; color: var(--sub); }
.till__label { font-size: 15px; font-weight: 700; }
.till input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--emr-teal); }
.till__scale { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--sub); }
.till__scale strong { font-size: 15px; color: var(--ink); }
.till__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  min-height: 48px; padding: 0 18px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer;
}
.btn--primary { flex: 1 1 200px; border: 0; background: var(--emr-teal); color: #FFFFFF; font-weight: 700; }
.btn--primary:disabled { background: var(--night-faint); cursor: not-allowed; }
.ledger { display: flex; flex-direction: column; gap: 12px; font-family: var(--f-mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.ledger__row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; }
.ledger__row--muted { color: var(--sub); }
.ledger__row--total { border-bottom: 0; font-weight: 500; }
.ledger__label { padding-top: 12px; }
.ledger__balance { display: flex; justify-content: space-between; gap: 16px; padding-top: 4px; font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.ledger__balance span:last-child { color: var(--cobalt); }
.ledger__done { padding: 12px 16px; border-radius: 999px; background: var(--cobalt); color: var(--on-cobalt); font-family: var(--f-body); font-size: 15px; font-weight: 600; }
.ledger__empty { color: var(--sub); }
.ledger__note { font-family: var(--f-body); font-size: 14px; line-height: 1.5; color: var(--sub); padding-top: 4px; }

/* Journey stepper */
.journey figure { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.journey img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--card); box-shadow: 0 24px 64px -32px rgba(21, 22, 26, .35); }
.journey figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.journey__caption { display: flex; gap: 20px; align-items: baseline; flex: 1 1 320px; min-width: 0; }
.journey__n { font-family: var(--f-accent); font-style: italic; font-size: 56px; line-height: 0.9; color: var(--cobalt); }
.journey__title { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; display: block; }
.journey__text { font-size: 17px; line-height: 1.55; color: var(--sub); display: block; margin-top: 4px; }
.journey__nav { display: flex; gap: 8px; }
.round-btn {
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.round-btn--primary { border: 0; background: var(--cobalt); color: var(--on-cobalt); font-weight: 700; }
.round-btn--primary:hover { background: var(--cobalt-hover); }
.fine { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--sub); }

/* =========================================================
   NDA GATE
   ========================================================= */
.gate { padding-bottom: var(--section); display: flex; flex-direction: column; gap: 88px; }
.gate__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 48px 72px; align-items: center; }
.gate__copy { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.gate__copy .label { color: var(--on-cobalt-soft); }
.gate h1 { margin: 0; font-family: var(--f-display); font-size: clamp(52px, 6.7vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; }
.gate__lede { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--on-cobalt-sub); }
.gate form { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.gate label { font-size: 15px; font-weight: 700; }
.gate__field { display: flex; flex-wrap: wrap; gap: 8px; }
.gate input {
  flex: 1 1 220px; min-width: 0; min-height: 56px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--on-cobalt-ghost); background: var(--on-cobalt); color: var(--ink); font-size: 17px;
}
.gate input:focus-visible { outline: 3px solid var(--on-cobalt-soft); outline-offset: 2px; }
.gate button {
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--on-cobalt); font-size: 17px; font-weight: 700; cursor: pointer;
}
.gate button:disabled { opacity: .7; cursor: progress; }
.gate__msg { min-height: 24px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--on-cobalt); }
.gate__msg.is-error { font-weight: 600; }
.gate__help { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-cobalt-sub); }
.gate__help a { color: var(--on-cobalt); font-weight: 600; overflow-wrap: anywhere; }
.gate__preview { position: relative; border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 64px -24px rgba(21, 22, 26, .45); }
.gate__preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gate__lock {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(244, 243, 240, .92); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em;
}

/* =========================================================
   TRAILING CURSOR (added by js/site.js on desktop mice only)
   ========================================================= */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #FFFFFF; mix-blend-mode: difference;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: width .3s cubic-bezier(.2, .8, .2, 1), height .3s cubic-bezier(.2, .8, .2, 1), background-color .2s, opacity .2s;
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; }
.cursor.is-down { width: 8px; height: 8px; }
.cursor.is-card { width: 112px; height: 112px; background: var(--cobalt); mix-blend-mode: normal; box-shadow: 0 12px 32px -12px rgba(21, 22, 26, .45); }
.cursor.is-card.is-locked { background: var(--ink); }
.cursor.is-card.is-soon { background: var(--paper); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 32px -12px rgba(21, 22, 26, .3); }
.cursor__label {
  opacity: 0; transform: scale(.6);
  font-family: var(--f-body); font-size: 15px; font-weight: 700; line-height: 1.1; white-space: nowrap;
  color: var(--on-cobalt); transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.cursor.is-card .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-soon .cursor__label { color: var(--ink); }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }

/* Programmatic focus targets (skip-link target, revealed case-study title) need no ring */
[tabindex="-1"]:focus { outline: none; }

/* ---------- Screen presentation (reusable across case studies) ----------
   .stage   a rounded panel that holds screens, so they never sit raw on the page
   .screen  one framed screen: rounded, hairline edge, soft shadow
   .phone   a simple device frame for mobile screens
   Match the screen's mode to the band: light screens on paper, dark screens on night. */
.stage {
  --stage-bg: var(--well);
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 28px; background: var(--stage-bg);
  padding: clamp(16px, 3.4vw, 48px);
}
.stage--tagged { padding-top: clamp(44px, 4.6vw, 64px); }
.stage__tag {
  position: absolute; top: clamp(14px, 1.6vw, 22px); left: clamp(16px, 3.4vw, 48px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub);
}
.stage--after { box-shadow: inset 0 0 0 2px var(--cobalt); }
.stage--after .stage__tag { color: var(--cobalt); }
.stage--night {
  --stage-bg: #0B0B0E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.stage--night .stage__tag { color: var(--night-faint); }
.stage--glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 75% at 78% 8%, rgba(97, 166, 250, .30), transparent 70%),
    radial-gradient(45% 60% at 8% 100%, rgba(63, 68, 176, .35), transparent 70%);
}
.screen {
  position: relative; display: block; overflow: hidden;
  border-radius: 12px; background: #FBFAF8;
  box-shadow: 0 0 0 1px rgba(21, 22, 26, .08), 0 2px 4px rgba(21, 22, 26, .04), 0 28px 56px -30px rgba(21, 22, 26, .4);
}
.screen img, .shot .screen img { display: block; width: 100%; height: auto; border-radius: 0; background: none; }
.screen--dark { background: #09090B; box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 40px 80px -36px rgba(0, 0, 0, .85); }
.screen--v1 img { aspect-ratio: 2000 / 1210; object-fit: cover; object-position: top center; }
.phone {
  padding: 7px; border-radius: 42px; background: #1C1C21;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .75);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 35px; }

/* Before / after on stages of equal height */
.band--night .shot figcaption { color: var(--night-sub); }
.compare-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }

/* Hero: a dark desktop screen running off the stage, with the phone in front */
.stage--hero { aspect-ratio: 2.2 / 1; padding: 0; border-radius: 24px; box-shadow: 0 24px 64px -24px rgba(21, 22, 26, .45); }
.stage--hero .screen { position: absolute; left: 5%; top: 9%; width: 70%; }
.stage--hero .phone { position: absolute; left: 71%; top: 12%; width: 19%; }
.cs-shot .screen img, .cs-shot .phone img { aspect-ratio: auto; object-fit: fill; border-radius: 0; box-shadow: none; background: none; }
.cs-shot .phone img { border-radius: 35px; }
.hero-shots { position: relative; padding-right: 14%; }
.hero-shots__phone { position: absolute; right: 0; top: 16%; width: 20%; }
/* A 16:9 desktop screen is shorter, so the phone would hang below it: leave room for the caption */
.hero-shots--wide { margin-bottom: 3%; }
/* Several screens in one hero: the main one large, the rest in a grid beside it */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 24px); align-items: center; }
.hero-grid__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.hero-grid__side .screen { border-radius: 8px; }

/* Detail crop at the top of a decision card */
.decision__shot {
  margin: 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: #FBFAF8; box-shadow: 0 0 0 1px var(--line);
  display: flex; align-items: center; justify-content: center;
}
.decision__shot img { width: 100%; height: 100%; object-fit: contain; }

/* Stepper frames are framed screens at full width */
.journey figure > .screen img { border-radius: 0; box-shadow: none; background: none; }
.journey--app figure > .screen img { aspect-ratio: auto; }
.compare-stages--panels .screen { max-width: 434px; }

/* Screens shown without a panel: a label above, the "after" screen ringed in cobalt */
.screen-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); }
.screen-tag--after { color: var(--cobalt); }
.screen--after { box-shadow: 0 0 0 2px var(--cobalt), 0 28px 56px -30px rgba(21, 22, 26, .4); }

/* Click any screen to see it full size */
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.band--night [data-zoom]:focus-visible { outline-color: var(--periwinkle); }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; overflow: auto; overscroll-behavior: contain;
  background: rgba(13, 13, 16, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: clamp(56px, 6vw, 72px) clamp(12px, 3vw, 40px) 40px;
  display: flex; flex-direction: column; align-items: center; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(100%, 1800px); }
.lightbox__img { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); background: #FBFAF8; }
.lightbox__cap { font-size: 15px; line-height: 1.5; color: var(--night-sub); max-width: 820px; }
.lightbox__close {
  position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(21, 22, 26, .8); color: #FFFFFF;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox__close:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 2px; }
.lightbox__hint { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--night-faint); white-space: nowrap; }
html.lb-open { overflow: hidden; }
@media (max-width: 760px) {
  /* On phones, show the screen larger than the viewport and let people pan around it */
  .lightbox { align-items: flex-start; }
  .lightbox__fig { max-width: none; align-items: flex-start; }
  .lightbox__img { max-width: none; }
  .lightbox__hint { left: 16px; transform: none; top: 24px; }
  .lightbox__cap { position: sticky; left: 0; max-width: calc(100vw - 24px); }
}

/* Drag to compare light and dark */
.wipe { --pos: 50%; position: relative; cursor: ew-resize; touch-action: pan-y; user-select: none; }
.wipe__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.wipe img { -webkit-user-drag: none; pointer-events: none; }
.wipe__top img { width: 100%; height: 100%; }
.wipe__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px); background: #FFFFFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.wipe__knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.wipe__label {
  position: absolute; bottom: 14px; padding: 6px 10px; border-radius: 999px; pointer-events: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.wipe__label--light { left: 14px; background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px rgba(21, 22, 26, .12); }
.wipe__label--dark { right: 14px; background: #1A1A1D; color: #F4F5F7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.wipe__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.wipe__range:focus-visible ~ .wipe__handle .wipe__knob { outline: 3px solid var(--periwinkle); outline-offset: 3px; }

/* Semantic tokens as live swatches */
.tokens-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.tokens-head .fine { color: var(--night-faint); }
.tokens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 10px; }
.tok { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--night-line); border-radius: 12px; }
.tok__sw { grid-row: span 2; display: flex; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tok__sw span { flex: 1; }
.tok__name { font-family: var(--f-mono); font-size: 13px; color: var(--on-cobalt); overflow-wrap: anywhere; }
.tok__vals { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--night-faint); }

/* Forecast panel, coloured by MarketMind's own semantic tokens (set from JS) */
.mm {
  --mm-bg: #09090B; --mm-card: #131416; --mm-fg: #F4F5F7; --mm-muted: #1A1A1D; --mm-sub: #A4A4A8; --mm-primary: #61A6FA;
  --mm-onPrimary: #09090B; --mm-border: #28292C; --mm-input: #393A3F; --mm-success: #4ED589; --mm-warning: #FCB442; --mm-destructive: #FF6F69;
  background: var(--mm-card); color: var(--mm-fg); border: 1px solid var(--mm-border); border-radius: 12px;
  padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 20px 48px -20px rgba(21, 22, 26, .45);
  transition: background-color .3s, color .3s, border-color .3s;
}
.mm__eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mm-sub); }
.mm__q { margin: -8px 0 0; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.mm__sub { margin-top: -12px; font-size: 14px; color: var(--mm-sub); }
.mm__field { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--mm-border); padding-top: 16px; }
.mm__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mm__row label { font-size: 15px; font-weight: 500; }
.mm__val { font-family: var(--f-mono); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--mm-primary); }
.mm input[type="range"][data-unset] { accent-color: var(--mm-input); }
.mm__scale { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--mm-sub); }
.mm__scale strong { font-weight: 500; color: var(--mm-fg); text-align: center; white-space: nowrap; }
.mm__bands { display: flex; flex-direction: column; border: 1px solid var(--mm-border); border-radius: 8px; overflow: hidden; }
.mm__bands .mm__eyebrow { padding: 12px 14px; border-bottom: 1px solid var(--mm-border); }
.mm__band { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; font-size: 15px; font-weight: 500; }
.mm__band + .mm__band { border-top: 1px solid var(--mm-border); }
.mm__band small { display: block; font-size: 13px; font-weight: 400; color: var(--mm-sub); }
.mm__band strong { font-family: var(--f-mono); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mm__dot { width: 8px; height: 8px; border-radius: 50%; }
.mm__dot--bull { background: var(--mm-success); }
.mm__dot--partial { background: var(--mm-warning); }
.mm__dot--miss { background: var(--mm-destructive); }
.mm__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; border-top: 1px solid var(--mm-border); padding-top: 16px; }
.mm__btn {
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 0;
  background: var(--mm-primary); color: var(--mm-onPrimary); font-size: 15px; font-weight: 600; cursor: pointer;
}
.mm__btn:disabled { background: var(--mm-muted); color: var(--mm-sub); box-shadow: inset 0 0 0 1px var(--mm-border); cursor: not-allowed; }
.mm__hint { font-family: var(--f-mono); font-size: 13px; color: var(--mm-sub); }
.mm :focus-visible { outline-color: var(--mm-primary); }

/* Reveal */
.fc { display: flex; flex-direction: column; gap: 16px; }
.fc__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fc__badge { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.fc__badge--open { background: var(--card); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fc__net--open { color: var(--sub); }
.fc__line .fc__band, .fc__line .fc__mark--actual { transition: opacity .4s ease; }
.fc__line.is-pending .fc__band, .fc__line.is-pending .fc__mark--actual { opacity: 0; }
.fc__mark--you { transition: left .12s linear; }
.fc__badge--bull { background: #DDF2E4; color: #00602A; }
.fc__badge--partial { background: #FBEBD3; color: #7A4300; }
.fc__badge--miss { background: #FBE1E0; color: #AC1922; }
.fc__net { font-family: var(--f-mono); font-size: clamp(36px, 3.4vw, 48px); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.fc__net--up { color: #00602A; }
.fc__net--down { color: #AC1922; }
.fc__sub { margin-top: -6px; font-size: 15px; color: var(--sub); }
.fc__line { position: relative; height: 14px; margin: 36px 0 34px; border-radius: 3px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fc__band { position: absolute; top: 0; bottom: 0; }
.fc__band--partial { background: #F2C98F; }
.fc__band--bull { background: #7FCB98; }
.fc__mark { position: absolute; top: -6px; bottom: -6px; width: 2px; transform: translateX(-1px); }
.fc__mark > span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-mono); font-size: 13px; }
.fc__mark--you { background: var(--cobalt); }
.fc__mark--you > span { bottom: calc(100% + 4px); color: var(--cobalt); font-weight: 500; }
.fc__mark--actual { background: var(--ink); }
.fc__mark--actual > span { top: calc(100% + 4px); color: var(--ink); }
.fc__note { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.fc .btn { align-self: flex-start; }

/* ---------- Hiring intelligence ---------- */
/* Steppers whose screens differ in height: a fixed frame, screen pinned to the top on the product's own page colour */
.journey--fit figure > .screen { aspect-ratio: var(--fit-ratio, 1.385); background: #FAFAF7; }
.journey--fit figure > .screen img { width: 100%; height: 100%; object-fit: contain; object-position: top center; aspect-ratio: auto; }

/* Read the score */
.bands { display: flex; flex-direction: column; gap: 24px; }
.bands__top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; }
.bands__n { grid-row: span 2; font-family: var(--f-accent); font-style: italic; font-size: clamp(72px, 7vw, 104px); line-height: .85; color: var(--cobalt); font-variant-numeric: tabular-nums; min-width: 1.1em; text-align: center; }
.bands__top label { font-size: 15px; font-weight: 700; }
.bands input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--cobalt); }
.bands__scale { grid-column: 2; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: var(--sub); margin-top: -6px; }
.bands__card { background: var(--card); border-radius: 16px; padding: clamp(8px, 1.4vw, 16px) clamp(16px, 2vw, 28px); box-shadow: 0 20px 48px -24px rgba(21, 22, 26, .3); }
.bands__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 168px; gap: 10px 28px; align-items: center; padding: 16px 0; }
.bands__row + .bands__row { border-top: 1px solid var(--line); }
.bands__name { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.bands__target { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 12px; color: var(--sub); }
.bands__bar { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.bands__seg { position: relative; height: 10px; border-radius: 2px; opacity: .35; transition: opacity .15s, transform .15s; }
.bands__seg::after { content: attr(data-n); position: absolute; top: 14px; left: 0; right: 0; text-align: center; font-family: var(--f-mono); font-size: 11px; color: var(--sub); }
.bands__seg.is-on { opacity: 1; transform: scaleY(1.6); }
.bands__seg.is-on::after { color: var(--ink); font-weight: 500; transform: scaleY(.625); }
.bands__seg--G { background: #16A34A; } .bands__seg--A { background: #D97706; } .bands__seg--R { background: #DC2626; } .bands__seg--D { background: #15161A; }
.bands__chip { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.bands__chip b { min-width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; letter-spacing: 0; color: #FFFFFF; }
.bands__chip--G { background: #DCFCE7; color: #15803D; box-shadow: inset 0 0 0 1px #86EFAC; } .bands__chip--G b { background: #15803D; }
.bands__chip--A { background: #FEF3C7; color: #B45309; box-shadow: inset 0 0 0 1px #FCD34D; } .bands__chip--A b { background: #B45309; }
.bands__chip--R { background: #FEE2E2; color: #B91C1C; box-shadow: inset 0 0 0 1px #FCA5A5; } .bands__chip--R b { background: #B91C1C; }
.bands__chip--D { background: #15161A; color: #F4F3F0; } .bands__chip--D b { background: #F4F3F0; color: #15161A; }
.bands__sum { margin: 0; font-family: var(--f-display); font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .bands__row { grid-template-columns: minmax(0, 1fr) auto; }
  .bands__bar { grid-column: 1 / -1; grid-row: 2; margin-bottom: 14px; }
}

/* ---------- Alinkeo: mark a moment ---------- */
.lesson { --alk-navy: #1B2840; --alk-gold: #A89F6A; --alk-tint: #F3EFDF; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.lesson__left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lp { background: var(--alk-navy); color: #FFFFFF; border-radius: 16px; padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 48px -24px rgba(21, 22, 26, .45); }
.lp__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #C9CFDB; }
.lp__now { margin: 0; min-height: 3.9em; font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lp__track { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22); cursor: pointer; margin: 6px 0; }
.lp__track::before { content: ""; position: absolute; inset: -12px 0; }
.lp__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--alk-gold); }
.lp__marks { position: absolute; inset: 0; pointer-events: none; }
.lp__mark { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--alk-navy); }
.lp__mark--note { background: #DCE1FA; } .lp__mark--comment { background: #C8C9CE; } .lp__mark--question { background: var(--periwinkle); } .lp__mark--pin { background: #E3D38E; }
.lp__bar { display: flex; align-items: center; gap: 14px; }
.lp__play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--alk-gold); color: var(--alk-navy); font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lp__play:focus-visible, .lp__track:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.lp__time { font-family: var(--f-mono); font-size: 14px; color: #C9CFDB; font-variant-numeric: tabular-nums; }
.lp__time span { color: #FFFFFF; }

.moments { background: var(--card); border-radius: 16px; padding: 18px clamp(16px, 1.8vw, 22px); box-shadow: 0 20px 48px -28px rgba(21, 22, 26, .3); }
.moments__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.moments__count { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--well); font-family: var(--f-mono); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.moments__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.moments__list li + li { border-top: 1px solid var(--line); }
.moment { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 12px 4px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 8px; }
.moment:hover { background: #F7F6F2; }
.moment:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 0; }
.moment__text { font-size: 15px; line-height: 1.45; }
.moment__time { font-family: var(--f-mono); font-size: 12px; color: var(--sub); }
.moment__reply { grid-column: 2 / -1; font-size: 13px; line-height: 1.45; color: var(--sub); }
.moment__reply b { color: var(--ink); font-weight: 600; }
.moment.is-new { animation: momentIn .6s ease-out; }
@keyframes momentIn { from { background: var(--alk-tint); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .moment.is-new { animation: none; } }
.mo { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.mo--note { background: #E6E9F0; color: #1B2840; } .mo--comment { background: #ECEBE7; color: #3A3B40; } .mo--question { background: #E7E8FB; color: #3F44B0; } .mo--pin { background: #F1ECD6; color: #6B5F26; }
.moments__empty { font-size: 15px; color: var(--sub); padding: 8px 0; }

.tx { background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: 0 20px 48px -28px rgba(21, 22, 26, .3); }
.tx__search { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px 36px; gap: 8px; align-items: center; }
.tx__search input { min-height: 44px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #FFFFFF; }
.tx__search input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.tx__count { font-family: var(--f-mono); font-size: 12px; color: var(--sub); white-space: nowrap; min-width: 64px; text-align: right; }
.tx__step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--ink); font-size: 15px; cursor: pointer; }
.tx__step:hover:not(:disabled) { border-color: var(--ink); }
.tx__step:disabled { opacity: .4; cursor: default; }
.tx__step:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.tx__lines { position: relative; max-height: 468px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.tx__line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; width: 100%; padding: 10px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; font-size: 16px; line-height: 1.5; color: var(--body); cursor: pointer; }
.tx__line:hover { background: #F7F6F2; }
.tx__line:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; }
.tx__line[aria-current="true"] { background: var(--alk-tint); color: var(--ink); box-shadow: inset 3px 0 0 var(--alk-navy); }
.tx__t { font-family: var(--f-mono); font-size: 12px; color: var(--sub); }
.tx__dots { display: inline-flex; gap: 4px; }
.tx__dot { width: 8px; height: 8px; border-radius: 50%; }
.tx__dot--note { background: #8C9AB8; } .tx__dot--comment { background: #9A9BA1; } .tx__dot--question { background: var(--cobalt); } .tx__dot--pin { background: #A2903A; }
.tx__line mark { background: #FDE68A; color: inherit; border-radius: 3px; padding: 0 1px; }
.tx__line mark.is-hit { background: #F59E0B; color: #15161A; }
.tx__tools { margin: 2px 0 8px 64px; padding: 12px; border-radius: 12px; background: var(--alk-navy); color: #FFFFFF; display: flex; flex-direction: column; gap: 10px; }
.tx__stamp { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: #C9CFDB; }
.tx__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tx__act { min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tx__act:hover, .tx__act[aria-pressed="true"] { background: #FFFFFF; color: var(--alk-navy); border-color: #FFFFFF; }
.tx__act:focus-visible, .tx__save:focus-visible, .tx__cancel:focus-visible, .tx__compose input:focus-visible { outline: 3px solid var(--alk-gold); outline-offset: 2px; }
.tx__compose { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.tx__compose input { min-height: 40px; min-width: 0; border: 0; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); }
.tx__save { min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--alk-gold); color: var(--alk-navy); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tx__save:disabled { opacity: .5; cursor: not-allowed; }
.tx__cancel { min-height: 40px; padding: 0 10px; border: 0; background: none; color: #C9CFDB; font: inherit; font-size: 14px; cursor: pointer; }
.tx__note { font-size: 13px; line-height: 1.45; color: var(--sub); padding: 0 4px; }
@media (max-width: 960px) {
  .lesson { grid-template-columns: minmax(0, 1fr); }
  .lesson__left { display: contents; }
  .lp { order: 1; } .tx { order: 2; } .moments { order: 3; }
}
@media (max-width: 560px) {
  .tx__search { grid-template-columns: minmax(0, 1fr) 36px 36px; }
  .tx__search input { grid-column: 1 / -1; }
  .tx__count { text-align: left; }
  .tx__lines { max-height: 380px; }
  .tx__line { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; font-size: 15px; padding: 10px 6px; }
  .tx__tools { margin-left: 0; }
  .tx__compose { grid-template-columns: minmax(0, 1fr) auto; }
  .tx__cancel { grid-column: 1 / -1; justify-self: start; min-height: 32px; padding: 0; }
}

/* ---------- Trading simulator: trade the news ---------- */
.screen-tag--night { color: var(--night-faint); }
.screen-tag--lit { color: var(--periwinkle); }
.screen--lit { box-shadow: 0 0 0 2px var(--periwinkle), 0 40px 80px -36px rgba(0, 0, 0, .85); }
.fine--night { color: var(--night-faint); }
.demo__note { font-size: 13px; line-height: 1.45; color: var(--sub); }
.shots-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
@media (max-width: 760px) { .shots-pairs { grid-template-columns: minmax(0, 1fr); } }
.rt {
  --rt-bg: #314463; --rt-card: #2D3E5A; --rt-edge: #61A6FA; --rt-feed: #223348; --rt-ink: #FFFFFF; --rt-sub: #C9D3E6;
  --rt-up: #4ADE80; --rt-down: #FF7B7B; --rt-buy: #0F9514; --rt-sell: #B3261E;
  position: relative; display: grid; gap: 12px; padding: 14px; border-radius: 16px; background: var(--rt-bg); color: var(--rt-ink);
  font-family: var(--f-display); box-shadow: 0 30px 60px -30px rgba(21, 22, 26, .6);
}
.rt__card { background: var(--rt-card); border: 1.5px solid var(--rt-edge); border-radius: 12px; padding: 12px 16px; min-width: 0; }
.rt__h { display: block; font-size: 14px; font-weight: 600; color: var(--rt-sub); text-align: center; }
.rt__big { display: block; margin-top: 4px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.rt__big.is-up { color: var(--rt-up); } .rt__big.is-down { color: var(--rt-down); }
.rt__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 148px; gap: 12px; }
.rt__card--clock { position: relative; display: flex; align-items: center; justify-content: center; padding: 6px; }
.rt__ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.rt__ring circle { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3.5; }
.rt__ring .rt__ring-on { stroke: var(--rt-edge); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset .5s linear; }
.rt__clock { position: absolute; font-family: var(--f-mono); font-size: 14px; font-weight: 500; }
.rt__mid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; }
.rt__chart { position: relative; padding: 10px; min-height: 280px; }
.rt__chart svg { display: block; width: 100%; height: 100%; min-height: 260px; }
.rt__price { position: absolute; top: 14px; left: 18px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .35); font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.rt__flash { position: absolute; z-index: 1; left: calc(50% - 136px); top: 50%; transform: translate(-50%, -50%); width: min(92%, 440px); border: 1.5px solid var(--rt-edge); border-radius: 12px; background: #2F4466; overflow: hidden; text-align: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }
.rt__flash[hidden] { display: none; }
.rt__flash-h { display: block; padding: 10px; font-size: 18px; font-weight: 700; }
.rt__flash p { margin: 0; padding: 12px 16px; background: #6F8FB8; color: #FFFFFF; font-family: var(--f-body); font-size: 15px; line-height: 1.45; text-align: left; }
.rt__flash-bar { display: block; height: 6px; margin: 12px 16px 0; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.rt__flash-bar span { display: block; height: 100%; width: 0; background: var(--rt-edge); }
.rt__flash button { display: block; width: 100%; min-height: 44px; margin-top: 10px; border: 0; background: transparent; color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.rt__side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-width: 0; }
.rt__news ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 190px; overflow-y: auto; }
.rt__news li { padding: 10px 12px; border-radius: 10px; background: var(--rt-feed); font-family: var(--f-body); font-size: 13px; line-height: 1.45; color: #E6ECF7; }
.rt__news li.is-new { box-shadow: inset 0 0 0 1.5px var(--rt-edge); }
.rt__news .rt__empty { background: none; color: var(--rt-sub); text-align: center; }
.rt__pot svg { display: block; width: 100%; height: 72px; margin-top: 8px; }
.rt__bottom { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 18px; }
.rt__size { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rt__step { display: flex; align-items: center; gap: 14px; }
.rt__step button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--rt-edge); color: #FFFFFF; font-size: 22px; line-height: 1; cursor: pointer; }
.rt__step button:disabled { opacity: .4; cursor: default; }
.rt__step output { min-width: 3ch; text-align: center; font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rt__buy, .rt__sell { min-height: 60px; border: 0; border-radius: 10px; color: #FFFFFF; font: inherit; font-size: 20px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: filter .15s, transform .1s; }
.rt__buy { background: var(--rt-buy); } .rt__sell { background: var(--rt-sell); }
.rt__buy:hover:not(:disabled), .rt__sell:hover:not(:disabled) { filter: brightness(1.12); }
.rt__buy:active:not(:disabled), .rt__sell:active:not(:disabled) { transform: translateY(1px); }
.rt__buy:disabled, .rt__sell:disabled { opacity: .45; cursor: not-allowed; }
.rt button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.rt__over { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 16px; border-radius: 16px; background: rgba(20, 28, 44, .78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rt__over[hidden] { display: none; }
.rt__panel { width: min(100%, 440px); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; padding: clamp(20px, 3vw, 32px); border: 1.5px solid var(--rt-edge); border-radius: 16px; background: var(--rt-card); }
.rt__panel p { margin: 0; font-family: var(--f-body); font-size: 15px; line-height: 1.5; color: var(--rt-sub); }
.rt__panel-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.01em; }
.rt__score { font-size: clamp(34px, 4vw, 48px); font-weight: 600; font-variant-numeric: tabular-nums; }
.rt__score.is-up { color: var(--rt-up); } .rt__score.is-down { color: var(--rt-down); }
.rt__board { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.rt__board li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-family: var(--f-body); font-size: 14px; font-variant-numeric: tabular-nums; }
.rt__board li.is-you { box-shadow: inset 0 0 0 1.5px var(--rt-edge); font-weight: 700; }
.rt__go { min-height: 48px; padding: 0 28px; border: 0; border-radius: 10px; background: var(--rt-edge); color: #0E1A2E; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
@media (max-width: 860px) {
  .rt__mid { grid-template-columns: minmax(0, 1fr); }
  .rt__side { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: auto; }
  .rt__news ul { max-height: 120px; }
  .rt__flash { left: 50%; top: 40%; }
}
@media (max-width: 560px) {
  .rt { padding: 10px; gap: 10px; }
  .rt__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rt__card--clock { grid-column: 1 / -1; padding: 2px; }
  .rt__ring { width: 40px; height: 40px; }
  .rt__clock { font-size: 11px; }
  .rt__big { font-size: 16px; }
  .rt__chart { padding: 8px; }
  .rt__flash { top: 36%; }
  .rt__news ul { max-height: 92px; }
  .rt__pot svg { height: 44px; }
  .rt__card { padding: 10px 12px; }
  .rt__h { font-size: 13px; }
  .rt__chart, .rt__chart svg { min-height: 200px; }
  .rt__side { grid-template-columns: minmax(0, 1fr); }
  .rt__bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
  .rt__size { grid-column: 1 / -1; }
  .rt__buy, .rt__sell { min-height: 52px; font-size: 18px; }
}

/* ---------- Nishauri ---------- */
.phones-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 48px); align-items: center; max-width: 1040px; margin-inline: auto; }
.phones-3 .phone { padding: 6px; border-radius: 38px; }
.phones-3 .phone img { border-radius: 32px; }
.phones-3__lead { transform: translateY(-4%); }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 24px clamp(24px, 6vw, 96px); align-items: start; }
.phone-pair .shot, .phone-grid .shot { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.phone--after { box-shadow: 0 0 0 3px var(--cobalt), 0 40px 80px -30px rgba(0, 0, 0, .55); }
.phone-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 40px clamp(20px, 4vw, 56px); }
.phone-grid figcaption strong { color: var(--ink); font-weight: 600; }

.rs { --ni-navy: #1F255E; --ni-blue: #4057A2; --ni-deep: #131638; --ni-red: #973936; --ni-chip: #EEEEF5; --ni-teal: #41A592;
  display: grid; grid-template-columns: minmax(0, 360px) 48px minmax(0, 360px); justify-content: center; align-items: start; gap: 16px; }
.rs__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rs__arrow { align-self: center; justify-self: center; font-size: 28px; color: var(--sub); margin-top: 32px; }
.rs__phone { min-height: 560px; border-radius: 36px; background: #FFFFFF; padding: 26px 18px 22px; box-shadow: 0 0 0 7px #1C1C21, 0 0 0 8px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 16px; font-family: var(--f-body); color: #1B1C22; overflow: hidden; }
.rs__phone--clinic { padding-top: 0; }
.rs__hi { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1.05; color: var(--ni-navy); margin: 8px 0 0; letter-spacing: -0.01em; }
.rs__date { font-size: 15px; color: #8A8B92; }
.rs__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; }
.rs__appt { position: relative; border-radius: 22px; padding: 18px 18px 38px; color: #FFFFFF; background: linear-gradient(180deg, #23295E, #566A92); }
.rs__appt-who { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.rs__appt-when { margin-top: 4px; font-size: 14px; color: #E2E6F3; }
.rs__pill { display: inline-flex; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 13px; }
.rs__pill--wait { background: #F5C451; color: #3A2C00; }
.rs__pill--ok { background: #BDF0D9; color: #0D5B40; }
.rs__pill--no { background: #F6C9C7; color: #7A1E1B; }
.rs__resched { position: absolute; right: 14px; bottom: -20px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--ni-navy); font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 8px 20px rgba(31, 37, 94, .18); cursor: pointer; }
.rs__resched:disabled { color: #9A9CAE; cursor: default; }
.rs__note { margin: 26px 0 0; font-size: 14px; line-height: 1.5; color: #55565C; }
.rs__label { font-size: 15px; font-weight: 600; color: #3A3B40; }
.rs__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rs__chips--days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rs__day { min-width: 0; min-height: 64px; border: 0; border-radius: 14px; background: var(--ni-chip); color: #3A3B40; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rs__day b { font-size: 19px; font-weight: 500; }
.rs__day span { font-size: 12px; color: #7A7B82; }
.rs__time { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ni-chip); color: #3A3B40; font: inherit; font-size: 14px; cursor: pointer; }
.rs__day[aria-pressed="true"], .rs__time[aria-pressed="true"] { background: var(--ni-blue); color: #FFFFFF; }
.rs__day[aria-pressed="true"] span { color: #DCE1F5; }
.rs__reason { width: 100%; min-height: 72px; resize: none; border: 0; border-radius: 10px; background: #ECECEC; padding: 10px 12px; font: inherit; font-size: 14px; color: #1B1C22; }
.rs__go { min-height: 50px; border: 0; border-radius: 12px; background: var(--ni-blue); color: #FFFFFF; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.rs__go:disabled { opacity: .45; cursor: not-allowed; }
.rs__back { align-self: flex-start; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ni-blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rs__bar { margin: 0 -18px; padding: 30px 18px 16px; background: var(--ni-deep); color: #FFFFFF; font-family: var(--f-display); font-size: 19px; font-weight: 600; text-align: center; }
.rs__empty { margin: 40px 0 0; text-align: center; font-size: 15px; line-height: 1.5; color: #7A7B82; }
.rs__req { border-radius: 14px; background: #F4F4F6; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.rs__req-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.rs__req-top span:last-child { color: var(--ni-blue); }
.rs__kv { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #E2E2E6; font-size: 14px; }
.rs__kv span:first-child { color: #7A7B82; }
.rs__kv span:last-child { font-weight: 600; text-align: right; }
.rs__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.rs__ok, .rs__no { min-height: 46px; border: 0; border-radius: 12px; color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.rs__ok { background: var(--ni-blue); } .rs__no { background: var(--ni-red); }
.rs__done { font-size: 14px; font-weight: 600; text-align: center; padding: 10px; border-radius: 10px; }
.rs__done--ok { background: #E3F6EE; color: #0D5B40; } .rs__done--no { background: #FBE7E6; color: #7A1E1B; }
.rs button:focus-visible, .rs textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.rs__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.rs__foot .btn { flex: 0 0 auto; }
@media (max-width: 860px) {
  .rs { grid-template-columns: minmax(0, 360px); }
  .rs__arrow { transform: rotate(90deg); margin: 0; }
  .phone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
}
@media (max-width: 560px) {
  .phones-3 { gap: 8px; }
  .phones-3 .phone { padding: 3px; border-radius: 20px; }
  .phones-3 .phone img { border-radius: 17px; }
  .phone-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .phone-pair .phone { padding: 4px; border-radius: 24px; }
  .phone-pair .phone img { border-radius: 20px; }
  .phone-grid { grid-template-columns: minmax(0, 260px); }
  .rs__phone { min-height: 0; }
}

/* ---------- Jasiri Pulse ---------- */
.journey--phone figure { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: center; }
.journey--phone figure > .phone { width: 100%; }
.journey--phone .phone img { aspect-ratio: auto; object-fit: fill; border-radius: 35px; box-shadow: none; background: none; }
.journey--phone figcaption { flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; align-self: center; }
.journey--phone .journey__caption { flex: 0 0 auto; }
@media (max-width: 760px) {
  .journey--phone figure { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .journey--phone figure > .phone { max-width: 280px; }
}

.pl {
  --pl-cobalt: #002FF1; --pl-violet: #571CC4; --pl-fuchsia: #FF49F4; --pl-ink: #10132E; --pl-sub: #5B5F86; --pl-muted: #F4F5FB; --pl-ice: #E2E6FF; --pl-line: #E8E9F2;
  --pl-climb: linear-gradient(135deg, #571CC4, #002FF1); --pl-celebrate: linear-gradient(135deg, #002FF1, #571CC4 55%, #FF49F4);
  --pl-sans: 'Geist', var(--f-display); --pl-mono: 'Geist Mono', var(--f-mono);
  position: relative; width: 100%; max-width: 380px; min-height: 640px; justify-self: center; overflow: hidden;
  border-radius: 40px; background: #FFFFFF; color: var(--pl-ink); font-family: var(--pl-sans);
  box-shadow: 0 0 0 7px #1C1C21, 0 0 0 8px rgba(255, 255, 255, .12), 0 40px 80px -30px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column;
}
.pl__hero { position: relative; padding: 64px 22px 22px; color: #FFFFFF; background: var(--pl-climb); overflow: hidden; }
.pl__hero--celebrate { background: var(--pl-celebrate); padding-top: 96px; }
.pl__hero--plain { background: #1B1F3B; }
.pl__hero::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .1); }
.pl__kicker { display: block; font-family: var(--pl-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .9; }
.pl__title { display: block; margin-top: 8px; font-size: 34px; font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
.pl__meta { margin: 10px 0 0; font-size: 14px; line-height: 1.45; opacity: .92; }
.pl__body { flex: 1; padding: 20px 22px 0; display: flex; flex-direction: column; gap: 14px; }
.pl__fill { display: flex; justify-content: space-between; align-items: baseline; }
.pl__fill b { font-family: var(--pl-mono); font-size: 18px; font-weight: 600; }
.pl__fill span { font-size: 13px; color: var(--pl-sub); }
.pl__band { height: 8px; border-radius: 4px; background: var(--pl-ice); overflow: hidden; margin-top: 8px; }
.pl__band span { display: block; height: 100%; border-radius: 4px; background: var(--pl-climb); transition: width .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .pl__band span { transition: none; } }
.pl__facts { display: flex; flex-direction: column; }
.pl__fact { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--pl-line); font-size: 14px; }
.pl__fact:first-child { border-top: 0; }
.pl__fact dt, .pl__lab { font-family: var(--pl-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pl-sub); }
.pl__fact dd { margin: 0; text-align: right; }
.pl__fact dd.pl__num, .pl__num { font-family: var(--pl-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.pl__big { font-family: var(--pl-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; }
.pl__note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--pl-muted); font-size: 13px; line-height: 1.45; color: var(--pl-sub); }
.pl__note::before { content: "i"; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.pl__note--debt { background: #FFE5FD; color: #8A0F80; }
.pl__payfrom { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 2px solid var(--pl-cobalt); background: #F7F8FF; }
.pl__payfrom div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pl__payfrom small { font-size: 12px; color: var(--pl-sub); }
.pl__roster { display: flex; }
.pl__av { width: 30px; height: 30px; border-radius: 50%; margin-right: -8px; background: var(--pl-ice); color: var(--pl-violet); border: 2px solid #FFFFFF; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pl__av--you { background: var(--pl-cobalt); color: #FFFFFF; font-size: 9px; letter-spacing: 0.02em; }
.pl__foot { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--pl-line); margin-top: 16px; }
.pl__btn { min-height: 50px; border: 0; border-radius: 999px; background: var(--pl-cobalt); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.pl__btn--commit { background: var(--pl-climb); }
.pl__btn--soft { background: var(--pl-ice); color: var(--pl-violet); }
.pl__btn:disabled { opacity: .55; cursor: progress; }
.pl__btn:focus-visible { outline: 3px solid var(--pl-cobalt); outline-offset: 3px; }
.pl__check { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.pl__stk { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 8px; font-size: 14px; line-height: 1.5; color: var(--pl-sub); }
.pl__spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--pl-ice); border-top-color: var(--pl-cobalt); animation: plSpin .8s linear infinite; }
@keyframes plSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pl__spin { animation: none; border-top-color: var(--pl-ice); border-right-color: var(--pl-cobalt); } }
.pl-log__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: pl; }
.pl-log__list li { font-family: var(--f-body); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; color: var(--body); }
.pl-log__list li::before { counter-increment: pl; content: counter(pl); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.pl-log__list li b { display: block; color: var(--ink); font-weight: 600; }
.pl-log__list li.pl-log__empty { display: block; color: var(--sub); }
.pl-log__list li.pl-log__empty::before { content: none; }
@media (max-width: 960px) { .pl { min-height: 600px; } }

/* =========================================================
   Narrow screens
   ========================================================= */
@media (max-width: 1100px) {
  .hero-home__grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .avatar { width: 340px; height: 340px; }
  .gate__grid { grid-template-columns: minmax(0, 1fr); }
  .gate__preview { max-width: 640px; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .overview .label--cobalt { padding-top: 0; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .powers, .edu { grid-template-columns: minmax(0, 1fr); }
  .demo__row { grid-template-columns: minmax(0, 1fr); }
  .system-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .system-arrow { transform: rotate(90deg); min-height: 40px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat:first-child, .stat:last-child { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .cs-hero { padding-bottom: 180px; gap: 64px; }
  .cs-shot { margin-top: -132px; }
}
@media (max-width: 760px) {
  .hero-home, .hero-about { gap: 48px; }
  .hero-home__grid { margin-bottom: -48px; } /* avatar rests on the divider line */
  .hero-home__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-home__copy { padding-bottom: 24px; }
  .avatar { width: min(300px, 78vw); height: auto; aspect-ratio: 1; justify-self: center; }
  .hero-facts, .hero-about__cols { grid-template-columns: minmax(0, 1fr); }
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Three photos on a phone: the landscape drone shot across the top, the other two below */
  .photo-strip--3 .photo--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .photo-strip--3 .photo:nth-child(even) { margin-top: 0; }
  .photo-strip--3 .photo:nth-child(3) { margin-top: 32px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .work-card__body { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px; }
  .work-card__n { font-size: 44px; }
  .work-card h3 { font-size: 24px; }
  .cs-meta { max-width: none; border-left: 0; padding-left: 0; border-top: 1px solid var(--on-cobalt-line); padding-top: 24px; }
  .cs-hero { padding-bottom: 120px; gap: 48px; }
  .cs-shot { margin-top: -88px; }
  .cs-shot img { border-radius: 16px; }
  .next a { padding: 20px; }
  .next__text { padding-left: 0; }
  .numbered__item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .numbered__n, .journey__n { font-size: 44px; }
  .site-footer { padding-top: 56px; gap: 40px; }
  .pill-button { min-height: 56px; padding: 0 24px; font-size: 16px; }
  .gate { gap: 48px; }
  .hero-shots { padding-right: 18%; }
  .hero-shots__phone { width: 30%; top: 22%; }
  .hero-shots--wide { margin-bottom: 11%; }
  .hero-shots--wide .hero-shots__phone { width: 24%; top: 8%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { border-radius: 20px; }
  .screen { border-radius: 8px; }
}

/* =========================================================
   Reveal: in the manner of cuberto.com, words rise out
   of their own masks on load and as each section scrolls in;
   cards and rows rise, photos unclip from the bottom.
   Used on every page. js/site.js adds the classes (and marks case studies itself). The page head sets html.rv so
   nothing flashes before the script runs.
   ========================================================= */
.avatar-wrap { display: flex; align-items: flex-end; min-width: 0; }
.rv [data-split]:not(.rv-ready),
.rv [data-rise]:not(.rv-ready),
.rv [data-rise-kids]:not(.rv-ready),
.rv [data-clip-kids]:not(.rv-ready) { visibility: hidden; }
/* The negative margin and matching padding keep layout unchanged while
   giving descenders and italic overhang room inside the mask. */
.rv-w { display: inline-block; vertical-align: top; overflow: hidden; overflow: clip; margin: -0.2em; }
.rv-w > span {
  display: inline-block; padding: 0.2em;
  transform: translateY(120%);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--rv-d, 0ms) + var(--i, 0) * var(--rv-st, 40ms));
}
.is-in .rv-w > span { transform: none; }
.rv-rise {
  opacity: 0; transform: translateY(48px);
  transition: opacity .9s cubic-bezier(.33, 1, .68, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--rv-d, 0ms);
}
.rv-rise--pop { transform: translateY(72px) scale(.94); transform-origin: 50% 100%; }
.rv-rise.is-in { opacity: 1; transform: none; }
.rv-clip { clip-path: inset(100% 0 0 0 round 16px); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1) var(--rv-d, 0ms); }
.rv-clip > img { transform: scale(1.2); transition: transform 1.8s cubic-bezier(.16, 1, .3, 1) var(--rv-d, 0ms); }
.rv-clip.is-in { clip-path: inset(0 0 0 0 round 16px); }
.rv-clip.is-in > img { transform: none; }
.rv-init .rv-rise, .rv-init .rv-clip, .rv-init .rv-clip > img { transition: none !important; }
/* Work cards keep their quick hover ring, and the image settles from a slight zoom as the card rises. */
.work-card.rv-rise {
  transition: opacity .9s cubic-bezier(.33, 1, .68, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1), box-shadow .15s;
  transition-delay: var(--rv-d, 0ms), var(--rv-d, 0ms), 0s;
}
.work-card.rv-rise .work-card__media img { transform: scale(1.12); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1) var(--rv-d, 0ms); }
.work-card.rv-rise.is-in .work-card__media img { transform: none; }
.rv-init .work-card.rv-rise .work-card__media img { transition: none !important; }
/* Case studies: their reveal targets are marked by script, so the hero is hidden by selector until then. */
.rv .cs-hero .label:not(.rv-ready), .rv .cs-hero h1:not(.rv-ready), .rv .cs-hero__sub:not(.rv-ready),
.rv .cs-meta:not(.rv-ready), .rv .cs-shot:not(.rv-ready),
.rv .gate .label:not(.rv-ready), .rv .gate h1:not(.rv-ready), .rv .gate__lede:not(.rv-ready),
.rv .gate form:not(.rv-ready), .rv .gate__help:not(.rv-ready), .rv .gate__preview:not(.rv-ready) { visibility: hidden; }
/* The next-project card keeps its quick hover ring while it rises. */
.next a.rv-rise {
  transition: opacity .9s cubic-bezier(.33, 1, .68, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1), box-shadow .15s;
  transition-delay: var(--rv-d, 0ms), var(--rv-d, 0ms), 0s;
}
@media (max-width: 760px) { .avatar-wrap { justify-self: center; } }
/* Printing shows everything, including sections the reader never scrolled to. */
@media print {
  .rv [data-split], .rv [data-rise], .rv [data-rise-kids], .rv [data-clip-kids],
  .rv .cs-hero .label, .rv .cs-hero h1, .rv .cs-hero__sub, .rv .cs-meta, .rv .cs-shot,
  .rv .gate .label, .rv .gate h1, .rv .gate__lede, .rv .gate form, .rv .gate__help, .rv .gate__preview { visibility: visible !important; }
  .rv-w > span, .rv-rise, .rv-clip, .rv-clip > img, .work-card.rv-rise .work-card__media img { transform: none !important; opacity: 1 !important; clip-path: none !important; transition: none !important; }
}
